/* ideas-1018 — Research → Examples, the IDEAS LIBRARY (public/ideas.js). Its own stylesheet, loaded after brief.css:
   the cards ARE "This week" cards (.br-card / .br-title / .br-why / .br-hook); this file adds only the thumbnail row,
   the examples-only line, the end of the list and the one-player dialog. The client skin's tokens only. */
.il-list { gap: var(--cs-3, 12px); }
.il-card .br-kind { flex-wrap: wrap; }
.il-new { color: var(--ink-3); font-weight: 500; }
.il-nohook { margin: 2px 0 0; padding: 10px 12px; border-radius: var(--cr-sm, 12px); border: 1px dashed var(--rule-strong); color: var(--ink-2); font-size: var(--ct-sm, 13.5px); line-height: 1.45; }
/* Stats on the picture: views, then how far it beat the creator's usual. Tabular figures so columns line up. */
.il-thumb-cap.il-stat { font-variant-numeric: tabular-nums; line-height: 1.3; }
.il-thumb-cap.il-stat > span { display: block; overflow: hidden; text-overflow: ellipsis; }
.il-thumb-cap.il-stat b { font-weight: 700; }
/* Three thumbnails, images only — no player while scrolling. */
.il-ex { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.il-thumb { position: relative; display: block; min-height: 44px; padding: 0; border: 0; border-radius: var(--cr-sm, 12px); overflow: hidden; background: var(--wash); cursor: pointer; aspect-ratio: 9 / 14; }
.il-thumb img, .il-thumb-blank { display: block; width: 100%; height: 100%; object-fit: cover; }
.il-thumb-blank { background: var(--wash); }
.il-play { position: absolute; left: 50%; top: 42%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: rgba(0, 0, 0, .55); }
.il-play::after { content: ""; position: absolute; left: 14px; top: 10px; border-style: solid; border-width: 8px 0 8px 12px; border-color: transparent transparent transparent #fff; }
.il-thumb-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 6px 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); color: #fff; font-size: 12px; line-height: 1.25; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.il-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.il-acts .br-ex-btn { min-height: 44px; }
.il-save.is-on { background: var(--wash); border-color: var(--ink-2); }
.il-say { margin: 0; color: var(--ink-2); font-size: var(--ct-sm, 13.5px); min-height: 0; }
.il-say:empty { display: none; }
.il-card.is-passed { padding: 12px 16px; background: var(--paper-2, var(--paper)); }
.il-passed { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--ink-2); font-size: var(--ct-sm, 13.5px); }
.il-passed .linkish { min-height: 44px; }
.il-more-wrap { display: flex; justify-content: center; padding: 8px 0 4px; }
.il-more { min-width: 180px; }
.il-end { margin: 4px 0 0; padding: 12px 14px; border-radius: var(--cr-sm, 12px); background: var(--wash); color: var(--ink-2); font-size: var(--ct-sm, 13.5px); line-height: 1.5; }
.il-saved { border: 1px solid var(--rule); border-radius: var(--cr-lg, 22px); padding: 0 16px; background: var(--paper); }
.il-saved > summary { min-height: 48px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--ink); }
.il-saved[open] > summary { border-bottom: 1px solid var(--rule); margin-bottom: 12px; }
.il-saved .br-list { padding-bottom: 16px; }
.il-saved-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--wash); color: var(--ink-2); font-size: 12px; display: inline-grid; place-items: center; }
.il-staff { border-top: 1px solid var(--rule); padding-top: 10px; }
/* "3 examples · avg 1.2M views · up to 4.1× their usual" and the Stats toggle that opens one row per example. */
.il-sum, .il-fig, .il-st-id { font-variant-numeric: tabular-nums; }
.il-stats { margin-top: 2px; }
.il-stats > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; color: var(--ink-2); font-size: var(--ct-sm, 13.5px); line-height: 1.4; }
.il-stats > summary::-webkit-details-marker { display: none; }
.il-stats > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.il-stats-t { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent-ink, var(--accent)); font-weight: 600; }
.il-stats-t::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.il-stats[open] .il-stats-t::after { transform: rotate(-135deg) translateY(-2px); }
p.il-sum { margin: 0; color: var(--ink-2); font-size: var(--ct-sm, 13.5px); line-height: 1.4; }
.il-st-list { list-style: none; margin: 0; padding: 4px 0 6px; display: grid; gap: 10px; }
.il-st-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: var(--ct-sm, 13.5px); line-height: 1.45; color: var(--ink); }
.il-st-n { width: 22px; height: 22px; border-radius: 11px; background: var(--wash); color: var(--ink-2); font-size: 12px; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.il-st-body { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.il-st-id { color: var(--ink-3); font-size: var(--ct-xs, 12px); }
.il-st-id code { font-family: ui-monospace, monospace; }
/* The one player: a dialog over the page, one iframe, nothing autoplays. */
body.il-player-on { overflow: hidden; }
/* ov1021-E3 (AI-Aiden #7): the backdrop is opaque and the caption + stats sit on a solid panel — nothing on the page shows through */
.il-player { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: #0a0d12; overflow-y: auto; }
.il-player-panel { width: min(380px, 100%); display: grid; gap: 8px; padding: 10px; border-radius: var(--cr-md, 16px); background: #151b23; }
.il-player-bar { display: flex; align-items: center; gap: 12px; color: #fff; }
.il-player-who { margin: 0; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.il-player-yt { color: #fff; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
.il-player-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.il-player-x:focus-visible, .il-player-yt:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.il-player iframe { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 76vh; border: 0; border-radius: var(--cr-sm, 12px); background: #000; }
.il-player-t { margin: 0; color: rgba(255, 255, 255, .8); font-size: 13px; line-height: 1.4; }
.il-player-s { margin: 0; color: rgba(255, 255, 255, .8); font-size: 13px; line-height: 1.4; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .il-acts .br-ex-btn { flex: 1 1 0; padding: 0 .5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .il-card { animation: il-in .18s ease-out both; }
  @keyframes il-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
/* ideaspolish-1019 — the "?" beside the heading (client F5); one heading at 1440 (F8): on a wide screen the page
   title "Examples" and its line say this already, and the topbar carries the "?"; the Undo target (F6); the Saved tab. */
.il-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: nowrap; }
.il-top > div { flex: 1 1 auto; min-width: 0; }
.il-top .il-help { flex: none; min-width: 44px; min-height: 44px; }
@media (min-width: 901px) { body.cl-research .il-top { display: none; } }
.il-passed .linkish { min-width: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; }
.il-saved-tab { display: grid; gap: var(--cs-3, 12px); margin-bottom: var(--cs-4, 16px); }
.il-saved-h { display: flex; align-items: center; gap: 8px; }
[data-il-saved-body].il-has-saved ~ [data-kz-body] .kzf-empty { display: none; }
/* ov1021-C: ideas already seen — the honest end, the link to them, the quiet "Seen" tag (monochrome) */
.il-seen-show { display: inline-flex; align-items: center; min-height: 44px; margin: 4px 0 0; padding: 0 4px; font-size: var(--ct-sm, 13.5px); }
.il-seen { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
.il-seen-h { font-size: var(--ct-md, 16px); margin: 0 0 10px; }
.il-seen-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--rule-strong); color: var(--ink-3); font-size: 12px; font-weight: 500; vertical-align: 1px; }
.il-card.is-seen { background: var(--paper-2, var(--paper)); }
.il-caught { margin-bottom: 4px; }
/* ov1021-F (AI-Aiden #2): under "all caught up", the unseen ideas the (default) filter keeps back — quiet, not the reason */
.il-fmore { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; color: var(--ink-2); font-size: var(--ct-sm, 13.5px); }
.il-fmore-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: inherit; }
.il-fmore-why { flex: 1 1 100%; padding: 0 4px; }
/* ov1021-D (AI-Aiden #5): the Filter on Examples — a bar under the heading row (shown at every width; .il-top is phone
   only), its panel inline in the page (the Research panel's rows, not floating over the feed), and each example's type
   on its thumbnail. Monochrome: ink on paper, the one azure for the interactive edge. */
.il-fbar { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.il-fbtn { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
/* Studio Ink 11-04: Filter is a secondary control, not the page's main action: paper pill, ink text (a1-client-tester). */
.il-fbtn.btn-pill { background: var(--paper); color: var(--ink); border-color: var(--rule-strong); }
.il-fbtn.btn-pill:hover { background: var(--wash); color: var(--ink); border-color: var(--ink-3); }
.il-fbtn.btn-pill.is-on { border-color: var(--accent); }
.il-fbtn.is-on { border-color: var(--accent); }
.il-fn { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--wash); color: var(--ink); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.kzf-fl.il-fpanel { position: static; width: min(420px, 100%); box-shadow: none; }
.il-fpanel .il-fl-row { min-height: 44px; }
.il-fpanel .il-fl-fixed { cursor: default; color: var(--ink-2); }
.il-fpanel .il-fl-fixed input[type="checkbox"] { opacity: .6; }
.il-fpanel .kzf-fl-acts .btn { min-height: 44px; }
.il-fempty { margin: 0; }
.il-thumb-type { position: absolute; left: 6px; top: 6px; max-width: calc(100% - 12px); padding: 2px 7px; border-radius: 9px; background: rgba(0, 0, 0, .66); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ov1021-E4 (AI-Aiden #8): at 1440 one 680 px column left half the screen empty. From 1200 px the ideas page lifts the
   This-week cap (for .il only) and its lists run in two columns; below that, one column as before. */
@media (min-width: 1200px) {
  .br.il { max-width: 1180px; }
  .il .br-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

/* client-1021b: Saved → "Your scripts", script cards in the Ideas card look (client.js clSavedScriptsHtml). */
.cl-sv + [data-il-saved-body] .il-saved-tab { margin-top: 1.5rem; }
.cl-sv-state { margin: .35rem 0 .1rem; color: var(--ink-2); font-size: 13px; font-weight: 600; line-height: 1.35; }   /* round 2: its own line, never over the title */
.cl-sv-read { margin: .6rem 0 0; }
.cl-sv-read > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--accent-ink, var(--accent)); list-style: none; }
.cl-sv-read > summary::-webkit-details-marker { display: none; }
.cl-sv-read > summary::after { content: "▾"; margin-left: .4rem; font-size: .85em; }
.cl-sv-read[open] > summary::after { content: "▴"; }
.cl-sv-read > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.cl-sv-read .cl-beats { margin-top: .4rem; }
/* ── c1021b-fav: "From your favorites" on top of Ideas (public/ideas-fav.js). One row of portrait cards that scrolls
   INSIDE itself (never the page); the pictures carry it, everything else stays quiet. ── */
.ilf { display: grid; gap: var(--cs-2, 8px); margin: 0 0 var(--cs-4, 16px); padding: var(--cs-4, 16px); border: 1px solid var(--rule); border-radius: var(--cr-lg, 22px); background: var(--paper); min-width: 0; }
.ilf-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.ilf-h { font-size: var(--ct-lg, 20px); }
.ilf-edit { min-height: 44px; white-space: nowrap; }
.ilf-row { list-style: none; margin: 0 calc(-1 * var(--cs-4, 16px)); padding: 2px var(--cs-4, 16px) 6px; display: grid; grid-auto-flow: column; grid-auto-columns: 136px;
  gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--cs-4, 16px); max-width: none; min-width: 0; }
.ilf-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
@media (min-width: 900px) { .ilf-row { grid-auto-columns: 160px; } }
.ilf-pic { position: relative; aspect-ratio: 3 / 4; border-radius: var(--cr-sm, 12px); overflow: hidden; background: var(--wash); }
.ilf-pic img, .ilf-blank { display: block; width: 100%; height: 100%; object-fit: cover; }
.ilf-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; padding: 22px 8px 7px; background: linear-gradient(transparent, rgba(0, 0, 0, .74)); color: #fff; font-size: 12px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ilf-cap b, .ilf-cap span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ilf-cap b { font-weight: 650; }
/* fixround (#9): a long @ wraps to two lines instead of being cut at 390 */
.ilf-cap b { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ilf-t { margin: 0; color: var(--ink); font-size: var(--ct-sm, 13.5px); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ilf-acts { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.ilf-acts .br-ex-btn, .ilf-acts .btn { min-height: 44px; width: 100%; justify-content: center; display: inline-flex; align-items: center; text-decoration: none; box-sizing: border-box; }
.ilf-watch:focus-visible, .ilf-make:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ilf-say { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.ilf-say:empty { display: none; }
.ilf-nudge { margin: 0 0 var(--cs-3, 12px); color: var(--ink-2); font-size: var(--ct-sm, 13.5px); line-height: 1.5; }
.ilf-nudge .linkish { min-height: 44px; }
@media (prefers-reduced-motion: no-preference) { .ilf-row { scroll-behavior: smooth; } }
.cl-sv-card .br-kind::before { display: none; }
