  /* Layout: Apple-style glass. A luminous gradient ground with soft color orbs; every panel is frosted glass
     (blur + thin highlight border + large radius). Poster cards in a grid, a blurred-poster detail sheet. */
  :root {
    --bg: #0f1220; --bg2: #171b2e; --orb1: rgba(227,176,75,.28); --orb2: rgba(90,110,220,.26); --orb3: rgba(212,99,60,.20);
    --glass: rgba(255,255,255,.07); --glass2: rgba(255,255,255,.11); --glass-line: rgba(255,255,255,.14); --glass-hi: rgba(255,255,255,.22);
    --fg: #f4f1e8; --muted: #a3a9bd; --accent: #e8b84f; --accent-ink: #1f1706; --ember: #e0714b; --ok: #8fcf7a; --shadow: 0 18px 50px rgba(0,0,0,.45); --sheet: #171b2a; --sheet2: #222838; --sheet-line: #2f3650;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', Roboto, system-ui, sans-serif;
    color-scheme: dark;
  }
  @media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
      --bg: #eef0f7; --bg2: #f7f4ec; --orb1: rgba(232,184,79,.45); --orb2: rgba(120,140,240,.35); --orb3: rgba(230,120,80,.28);
      --glass: rgba(255,255,255,.55); --glass2: rgba(255,255,255,.75); --glass-line: rgba(255,255,255,.9); --glass-hi: rgba(255,255,255,1);
      --fg: #1b1e2e; --muted: #5b6179; --accent: #b07a10; --accent-ink: #fffdf7; --ember: #c2512c; --ok: #4e8d3c; --shadow: 0 18px 50px rgba(40,50,90,.18); --sheet: #ffffff; --sheet2: #f3f4f8; --sheet-line: #e4e6ee;
      color-scheme: light;
    }
  }
  :root[data-theme="light"] {
    --bg: #eef0f7; --bg2: #f7f4ec; --orb1: rgba(232,184,79,.45); --orb2: rgba(120,140,240,.35); --orb3: rgba(230,120,80,.28);
    --glass: rgba(255,255,255,.55); --glass2: rgba(255,255,255,.75); --glass-line: rgba(255,255,255,.9); --glass-hi: rgba(255,255,255,1);
    --fg: #1b1e2e; --muted: #5b6179; --accent: #b07a10; --accent-ink: #fffdf7; --ember: #c2512c; --ok: #4e8d3c; --shadow: 0 18px 50px rgba(40,50,90,.18); --sheet: #ffffff; --sheet2: #f3f4f8; --sheet-line: #e4e6ee;
    color-scheme: light;
  }
  * { box-sizing: border-box; }
  [hidden] { display: none !important; }   /* the menu sets display:flex; keep the hidden attribute authoritative */
  html { -webkit-text-size-adjust: 100%; }
  body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-ui); font-size: 16px; line-height: 1.45; min-height: 100%; }
  body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(900px 600px at 15% -10%, var(--orb1), transparent 60%),
                radial-gradient(800px 700px at 95% 20%, var(--orb2), transparent 60%),
                radial-gradient(700px 500px at 50% 110%, var(--orb3), transparent 60%),
                linear-gradient(180deg, var(--bg2), var(--bg)); }
  button { font-family: inherit; cursor: pointer; color: inherit; }
  button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
  .glass { background: var(--glass); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow); border-radius: 22px; }

  /* sticky header: wordmark + menu only */
  .top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; padding-block: 8px 6px; }
  .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 20px; }
  .wordmark { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: .02em; line-height: 1; white-space: nowrap; }
  .wordmark b { color: var(--accent); }
  .labtag { font-family: var(--font-ui); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; border-radius: 8px; padding: 3px 6px; margin-left: 8px; vertical-align: 6px; }
  .menuwrap { position: relative; }
  .iconbtn { width: 40px; height: 40px; padding: 0; font-size: 20px; display: grid; place-items: center; border-radius: 12px; }
  .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; border-radius: 16px; z-index: 40; display: flex; flex-direction: column; gap: 2px; }
  .mi { background: transparent; border: none; border-radius: 11px; padding: 10px 12px; text-align: left; font-size: 15px; font-weight: 600; color: var(--fg); width: 100%; }
  .mi:hover { background: var(--glass2); }

  /* search panel: in the flow, not fixed */
  .searchpanel { margin-top: 8px; padding: 14px 14px 12px; border-radius: 20px; position: relative; z-index: 20; }
  .searchwrap { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; margin-top: 10px; }
  .fieldwrap { flex: 1 1 220px; min-width: 0; position: relative; }
  .field { display: flex; align-items: center; gap: 8px; background: var(--glass2); border: 1px solid var(--glass-line); border-radius: 14px; padding: 2px 6px 2px 12px; }
  /* autocomplete: opaque sheet tokens so it stays readable over the filters in both themes */
  .ac { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 25; padding: 6px; border-radius: 16px; max-height: min(60vh, 440px); overflow-y: auto;
    background: var(--sheet); border: 1px solid var(--sheet-line); box-shadow: var(--shadow); }
  .ac-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; cursor: pointer; }
  .ac-row.on, .ac-row:hover { background: var(--sheet2); }
  .ac-thumb { width: 30px; height: 44px; border-radius: 6px; overflow: hidden; background: var(--sheet2); flex: 0 0 auto; display: grid; place-items: center; font-size: 16px; }
  .ac-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .ac-text { flex: 1; min-width: 0; }
  .ac-title { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ac-title mark { background: transparent; color: var(--accent); }
  .ac-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ac-side { font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
  .ac-side b { font-weight: 800; }
  .ac-foot { font-size: 12.5px; color: var(--muted); padding: 6px 8px 2px; }
  .field span { opacity: .7; }
  .search { flex: 1; min-width: 0; width: 100%; background: transparent; border: none; color: var(--fg); font: inherit; font-size: 16px; padding: 10px 4px; }
  .search::placeholder { color: var(--muted); }
  .search:focus { outline: none; }
  .actions { display: flex; gap: 8px; flex: 0 0 auto; }
  @media (max-width: 560px) { .fieldwrap { flex-basis: 100%; } .actions { width: 100%; } .actions .btn { flex: 1; } }
  .btn { background: var(--accent); color: var(--accent-ink); border: none; border-radius: 12px; padding: 11px 16px; font-weight: 700; font-size: 15px; white-space: nowrap; }
  .btn:disabled { opacity: .5; cursor: default; }
  .btn2 { background: var(--glass2); border: 1px solid var(--glass-line); border-radius: 12px; padding: 8px 12px; font-size: 13.5px; font-weight: 600; color: var(--fg); white-space: nowrap; }
  .btn2.danger { color: var(--ember); }
  .btn2.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
  .tagline { color: var(--muted); font-size: 13px; padding: 0 2px; }
  /* medium toggle: Movies | Books */
  .mediumseg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; margin-bottom: 10px; }
  .mediumseg .chip { padding: 8px 14px; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
  .mediumseg .chip small { font-size: 12px; font-weight: 600; opacity: .75; }
  .mediumseg .chip.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
  .about { margin-top: 10px; padding: 14px 16px; border-radius: 18px; }
  .about h5 { margin: 0 0 6px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .about p { margin: 0; font-size: 14.5px; line-height: 1.5; }

  .note { font-size: 13.5px; color: var(--muted); padding: 6px 6px 0; }
  .note.accent { color: var(--accent); }
  .note.warn { color: var(--ember); }
  .pulse { animation: pulse 1.6s infinite; }
  @keyframes pulse { 0%,100% { opacity: .5 } 50% { opacity: 1 } }
  @media (prefers-reduced-motion: reduce) { .pulse { animation: none; } .card, .card img { transition: none !important; } }

  /* filters */
  .filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-block: 12px 6px; }
  .seg { display: flex; gap: 4px; padding: 4px; border-radius: 16px; flex-wrap: wrap; }
  .chip { background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 7px 11px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
  .chip:hover { color: var(--fg); }
  .chip.on { background: var(--glass2); color: var(--fg); border-color: var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-hi); }
  .chip.on.acc { background: var(--accent); color: var(--accent-ink); }
  .more { margin-left: auto; }
  .panel { margin-top: 10px; padding: 16px 18px 14px; }
  .panel h5 { margin: 0 0 8px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
  .panel .group { margin-bottom: 14px; }
  .panel .group:last-child { margin-bottom: 0; }
  .emchips { display: flex; gap: 6px; flex-wrap: wrap; }
  .agechips .em { min-width: 44px; justify-content: center; padding-left: 10px; padding-right: 10px; }
  .em { background: var(--glass2); border: 1px solid var(--glass-line); border-radius: 999px; padding: 6px 12px 6px 9px; font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--fg); }
  .em .e { font-size: 15px; }
  .em.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
  .em.faith.on { background: #3f63b5; color: #fff; }   /* Marian blue: faith tags are good news, never the warning color */
  .count { color: var(--muted); font-size: 13.5px; padding: 10px 6px 0; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .sort { display: flex; gap: 4px; }
  .sort .chip { padding: 5px 9px; font-size: 12.5px; }

  /* grid */
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; padding-block: 12px 40px; }
  @media (min-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); } }
  .card { position: relative; border-radius: 20px; overflow: hidden; cursor: pointer; aspect-ratio: 2 / 3; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow); transition: transform .18s ease; min-width: 0; }
  .card:hover { transform: translateY(-4px) scale(1.01); }
  .card:focus-visible { outline: 3px solid var(--accent); }
  .card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
  .card:hover img { transform: scale(1.04); }
  /* Title card: stands in when a title has no real poster or cover yet */
  .tcard { position: absolute; inset: 0; container-type: inline-size; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6cqw; padding: 11cqw; text-align: center; color: #fff; background: linear-gradient(160deg, hsl(var(--h) 42% 36%), hsl(var(--h) 48% 17%)); }
  .tcard::before { content: ""; position: absolute; inset: 5cqw; border: 1px solid rgba(255,255,255,.35); border-radius: 4cqw; pointer-events: none; }
  .tcard b { font: 600 13cqw/1.12 Georgia, "Times New Roman", serif; letter-spacing: .01em; overflow-wrap: anywhere; }
  .tcard span { font-size: 6.5cqw; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
  .tcard i { font: 600 46cqw/1 Georgia, "Times New Roman", serif; font-style: normal; opacity: .55; }
  .card .tcard.mini { justify-content: flex-start; padding-top: 24cqw; }
  .ac-thumb, .alt .p { position: relative; }
  .card .art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 64px; }
  .card .art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, var(--orb1), transparent 60%), radial-gradient(circle at 80% 80%, var(--orb2), transparent 60%); z-index: -1; }
  .card .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,10,20,.92) 0%, rgba(8,10,20,.55) 32%, transparent 62%); pointer-events: none; }
  .card .pill { position: absolute; top: 10px; left: 10px; padding: 5px 9px; border-radius: 10px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(20,22,36,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18); }
  .card .status { position: absolute; top: 10px; right: 10px; padding: 4px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(224,113,75,.75); backdrop-filter: blur(10px); }
  .card .foot { position: absolute; left: 12px; right: 12px; bottom: 11px; color: #fff; }
  .card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; line-height: 1.2; text-wrap: balance; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
  .card .by { font-size: 12.5px; color: rgba(255,255,255,.82); margin: -3px 0 6px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
  .card .mini { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
  .card .ems { font-size: 15px; letter-spacing: 1px; }
  .card .sc { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 9px; background: rgba(255,255,255,.14); }
  .sc.pos { color: #ffd98a; } .sc.neg { color: #ffb093; }
  .empty { color: var(--muted); padding: 40px 0; text-align: center; }

  /* gauge */
  .gauge { margin-top: 8px; }
  .gauge .lab { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
  .gauge .bar { position: relative; height: 10px; border-radius: 6px; background: linear-gradient(90deg, rgba(224,113,75,.9) 0%, rgba(224,113,75,.25) 46%, rgba(232,184,79,.25) 54%, rgba(232,184,79,.95) 100%); }
  .gauge .tick { position: absolute; left: 50%; top: -4px; width: 2px; height: 18px; background: var(--muted); opacity: .5; border-radius: 2px; }
  .gauge .dot { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 4px 14px rgba(0,0,0,.35); }
  .gauge .score { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
  .gauge .score small { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
  .score small em { display: block; font-style: normal; font-size: 12px; opacity: .85; margin-top: 2px; }
  .basis { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
  .pos { color: var(--accent); } .neg { color: var(--ember); }

  /* detail */
  .overlay { position: fixed; inset: 0; z-index: 50; overflow-y: auto; background: rgba(10,12,22,.6); }
  .overlay .bg { position: fixed; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) saturate(140%) brightness(.55); z-index: -1; }
  .sheet { max-width: 920px; margin: 4vh auto 8vh; padding: 20px; position: relative; min-width: 0;
    background: var(--sheet); backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid var(--sheet-line); box-shadow: var(--shadow); }
  .sheet .tile, .sheet .guide, .sheet .em:not(.on), .sheet .btn2 { background: var(--sheet2); border-color: var(--sheet-line); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  .sheet .meter .dots i { background: var(--sheet2); border-color: var(--sheet-line); }
  .sheet .meter .dots i.f { background: var(--accent); border-color: transparent; }
  .sheet .meter.warm .dots i.f { background: var(--ember); }
  .sheet .vpill { background: var(--sheet2); border-color: var(--sheet-line); }
  .sheet .poster { background: var(--sheet2); }
  .sheet .btn2.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
  @media (max-width: 620px) { .sheet { margin: 10px 8px 6vh; padding: 14px; border-radius: 22px; } }
  .close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; padding: 0; font-size: 18px; display: grid; place-items: center; }
  .hero { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; }
  @media (max-width: 620px) { .hero { grid-template-columns: 1fr; } .hero .poster { width: 60%; margin: 0 auto; } }
  .poster { border-radius: 16px; overflow: hidden; aspect-ratio: 2 / 3; background: var(--glass2); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 56px; }
  .poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .hero h2 { margin: 6px 56px 2px 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
  .meta { color: var(--muted); font-size: 14px; }
  .vpill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 12px; font-weight: 800; font-size: 14px; margin-top: 10px; background: var(--glass2); border: 1px solid var(--glass-line); }
  .vpill.rec, .vpill.acc { color: var(--ok); } .vpill.guid { color: var(--accent); } .vpill.caut { color: var(--accent); } .vpill.not, .vpill.avoid { color: var(--ember); }
  .statuspill { display: inline-block; margin-left: 6px; padding: 5px 9px; border-radius: 10px; font-size: 12px; font-weight: 700; color: #fff; background: var(--ember); }
  .glance { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 16px; }
  .tile { padding: 12px 12px 10px; border-radius: 16px; min-width: 0; }
  .tile .k { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
  .tile .v { font-size: 20px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; line-height: 1.2; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .tile .v.sm { font-size: 15px; font-weight: 700; }
  .sec { margin-top: 18px; }
  .sec h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
  .why { margin: 0; font-size: 15.5px; line-height: 1.5; }
  .flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
  .flag { font-size: 13px; color: var(--ember); border: 1px solid rgba(224,113,75,.5); background: rgba(224,113,75,.1); border-radius: 10px; padding: 4px 10px; }
  .meters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
  @media (max-width: 620px) { .meters { grid-template-columns: 1fr; } }
  .meter { display: flex; align-items: center; gap: 10px; font-size: 14px; min-width: 0; }
  .meter .e { width: 24px; text-align: center; font-size: 17px; flex: 0 0 auto; }
  .meter .n { flex: 1; color: var(--fg); }
  .meter .dots { display: flex; gap: 4px; }
  .meter .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--glass2); border: 1px solid var(--glass-line); display: inline-block; }
  .meter .dots i.f { background: var(--accent); border-color: transparent; }
  .meter.warm .dots i.f { background: var(--ember); }
  .meter .nv { color: var(--muted); font-size: 12.5px; }
  .guide { padding: 14px 16px; border-radius: 16px; font-size: 15px; line-height: 1.5; border-left: 3px solid var(--accent); }
  .src { color: var(--muted); font-size: 12.5px; margin-top: 16px; }
  .editbar { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }

  .demand { margin-top: 10px; padding: 14px 16px; }
  .demand table { width: 100%; border-collapse: collapse; font-size: 14px; }
  .demand td { padding: 6px 0; border-top: 1px solid var(--glass-line); vertical-align: top; }
  .demand td.n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; padding-left: 12px; }
  .tablewrap { overflow-x: auto; }
  footer { color: var(--muted); font-size: 12.5px; padding-block: 10px 40px; }

  /* ---- app shell: slim header, views, floating tab bar ---- */
  .top { position: static; padding-block: 14px 2px; }
  .top { scroll-snap-align: start; }
  .tabs, .fab { background: var(--sheet); border-color: var(--sheet-line); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .fab.on { background: var(--accent); }
  .tab.on { background: var(--sheet2); }
  .top .wordmark { font-size: 30px; }
  main.wrap { padding-bottom: 130px; }
  .vh { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 12px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; justify-content: center; gap: 10px; pointer-events: none; padding-inline: 14px; }
  .tabs { pointer-events: auto; display: flex; gap: 2px; padding: 5px; border-radius: 999px; }
  .tab { background: transparent; border: none; border-radius: 999px; padding: 7px 10px 6px; min-width: 66px; display: grid; justify-items: center; gap: 1px; font-size: 11px; font-weight: 600; color: var(--muted); }
  .tab .i { font-size: 19px; line-height: 1.15; filter: grayscale(1) opacity(.75); }
  .tab.on { background: var(--glass2); color: var(--fg); box-shadow: inset 0 1px 0 var(--glass-hi); }
  .tab.on .i { filter: none; }
  .fab { pointer-events: auto; width: 58px; height: 58px; border-radius: 50%; font-size: 22px; display: grid; place-items: center; padding: 0; color: var(--fg); }
  .fab.on { background: var(--accent); color: var(--accent-ink); }
  .toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: min(92vw, 440px); padding: 10px 16px; border-radius: 14px; font-size: 14px; font-weight: 600;
    background: var(--sheet); border: 1px solid var(--sheet-line); box-shadow: var(--shadow); }

  /* ---- Explore: carousels that snap sideways, rows that settle gently when scrolling down ---- */
  html.snap { scroll-snap-type: y proximity; scroll-padding-top: 8px; }
  .row { scroll-snap-align: start; margin-top: 18px; }
  .rowhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 2px 8px; }
  .rowhead h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
  .rowhead small { color: var(--muted); font-size: 13px; white-space: nowrap; }
  .track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding: 4px 16px 16px; margin-inline: -16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .track::-webkit-scrollbar { display: none; }
  .hcard { flex: 0 0 min(80vw, 320px); scroll-snap-align: start; border-radius: 20px; overflow: hidden; cursor: pointer; background: var(--sheet); border: 1px solid var(--sheet-line); box-shadow: 0 10px 28px rgba(0,0,0,.18); display: flex; flex-direction: column; min-width: 0; }
  .hcard:focus-visible { outline: 3px solid var(--accent); }
  .hcard .im { position: relative; height: 230px; background: var(--sheet2); display: flex; align-items: center; justify-content: center; font-size: 54px; overflow: hidden; }
  .hcard .im .bgimg { position: absolute; left: -24px; top: -24px; width: calc(100% + 48px); height: calc(100% + 48px); max-width: none; object-fit: cover; filter: blur(18px) brightness(.72) saturate(1.2); }
  .hcard .im .fg { position: absolute; top: 12px; bottom: 12px; left: 50%; transform: translateX(-50%); height: calc(100% - 24px); width: auto; max-width: calc(100% - 24px); object-fit: contain; border-radius: 8px; box-shadow: 0 8px 22px rgba(0,0,0,.45); }
  .lrow .th, .alt .p, .ac-thumb, .sheet .poster { position: relative; }
  .lrow .th img, .alt .p img, .ac-thumb img, .sheet .poster img { position: absolute; inset: 0; }
  .hcard .bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
  .hcard h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.2; }
  .vline { font-size: 13.5px; font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .vline .v.rec, .vline .v.acc { color: var(--ok); } .vline .v.guid, .vline .v.caut { color: var(--accent); } .vline .v.not, .vline .v.avoid { color: var(--ember); }
  .vline .m { color: var(--muted); font-weight: 600; }
  .hcard .why3 { margin: 0; font-size: 14px; line-height: 1.45; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hcard .acts { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
  .hcard .acts .btn { flex: 1; padding: 9px 12px; font-size: 14px; }
  .savebtn { background: var(--sheet2); border: 1px solid var(--sheet-line); border-radius: 12px; padding: 8px 12px; font-size: 13.5px; font-weight: 700; color: var(--fg); white-space: nowrap; }
  .savebtn.on { color: var(--ok); border-color: currentColor; }
  .sortlab { color: var(--muted); font-size: 12.5px; margin-right: 4px; align-self: center; }
  .sort { align-items: center; flex-wrap: wrap; }

  /* ---- Search & filter page ---- */
  .browsehead { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 2px 8px; }
  .browsehead h2 { margin: 0; font-size: 21px; font-weight: 800; }
  .linkbtn { background: none; border: none; color: var(--accent); font-weight: 700; font-size: 14.5px; padding: 4px; }
  .fgroup { margin-top: 16px; }
  .fgroup h5 { margin: 0 2px 8px; font-size: 14.5px; font-weight: 700; }
  .fgroup h5 small { color: var(--muted); font-weight: 600; margin-left: 4px; }
  .browsebar { position: sticky; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 15; margin-top: 22px; }
  .btn.big { width: 100%; padding: 14px; font-size: 16px; border-radius: 999px; box-shadow: var(--shadow); }

  /* ---- Results: a list, easier to compare than posters ---- */
  .reshead { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; }
  .reshead h2 { flex: 1; margin: 0; font-size: 19px; font-weight: 800; min-width: 0; }
  .list { display: flex; flex-direction: column; gap: 10px; padding-block: 10px 30px; }
  .lrow { display: flex; gap: 12px; padding: 10px; border-radius: 18px; cursor: pointer; background: var(--sheet); border: 1px solid var(--sheet-line); min-width: 0; align-items: flex-start; }
  .lrow:focus-visible { outline: 3px solid var(--accent); }
  .lrow .th { flex: 0 0 66px; height: 99px; border-radius: 10px; overflow: hidden; background: var(--sheet2); display: grid; place-items: center; font-size: 26px; }
  .lrow .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .lrow .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .lrow h3 { margin: 0; font-size: 16.5px; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lrow .one { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .lrow .savebtn { align-self: center; padding: 8px 10px; }

  /* ---- My Family ---- */
  .fcard { padding: 18px; border-radius: 22px; background: var(--sheet); border: 1px solid var(--sheet-line); box-shadow: var(--shadow); }
  .fcard h3 { margin: 0 0 4px; font-size: 19px; font-weight: 800; }
  .fcard p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
  .kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 12px; }
  .kid { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; background: var(--sheet); border: 1px solid var(--sheet-line); cursor: pointer; min-width: 0; text-align: left; color: var(--fg); width: 100%; }
  .avatar { flex: 0 0 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; background: var(--accent); color: var(--accent-ink); }
  .kid b { display: block; font-size: 16px; } .kid span { color: var(--muted); font-size: 13px; }
  .seclabel { margin: 22px 2px 8px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
  .kidform label { display: block; font-size: 14.5px; font-weight: 700; margin: 16px 0 8px; }
  .kidform input[type=text] { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--sheet-line); background: var(--sheet2); color: var(--fg); }
  .stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--sheet2); border: 1px solid var(--sheet-line); border-radius: 12px; padding: 4px; }
  .stepper button { width: 40px; height: 40px; border: none; background: transparent; font-size: 22px; font-weight: 700; color: var(--accent); border-radius: 9px; }
  .stepper output { min-width: 44px; text-align: center; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }

  /* ---- Detail: content cards, alternatives, folding sections ---- */
  .lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
  .lot { padding: 12px 14px; border-radius: 16px; background: var(--sheet2); border: 1px solid var(--sheet-line); }
  .lot .n { font-weight: 700; font-size: 14.5px; display: flex; gap: 8px; align-items: center; }
  .lot .lv { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
  .lot .dots { display: flex; gap: 4px; }
  .lot .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--sheet); border: 1px solid var(--sheet-line); display: inline-block; }
  .lot .dots i.f { background: var(--accent); border-color: transparent; }
  .lot.warm .dots i.f { background: var(--ember); }
  .alts { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .alts::-webkit-scrollbar { display: none; }
  .alt { flex: 0 0 124px; scroll-snap-align: start; cursor: pointer; min-width: 0; background: none; border: none; padding: 0; text-align: left; color: var(--fg); }
  .alt .p { aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: var(--sheet2); display: grid; place-items: center; font-size: 34px; }
  .alt .p img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .alt b { display: block; font-size: 13.5px; line-height: 1.25; margin-top: 6px; }
  .alt span { font-size: 12.5px; color: var(--muted); }
  details.fold { margin-top: 14px; border-top: 1px solid var(--sheet-line); padding-top: 12px; }
  details.fold summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; }
  details.fold summary::after { content: "›"; color: var(--muted); font-size: 20px; line-height: 1; transition: transform .15s; }
  details.fold[open] summary::after { transform: rotate(90deg); }
  .sheet button.em { cursor: pointer; }
  .heroacts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
  @media (prefers-reduced-motion: reduce) { html.snap { scroll-snap-type: none; } }

  /* ---- Today: one finite set of picks a day, one big card at a time (after Dreambeans), ends with "caught up" ---- */
  .todayhead { padding-block: 10px 4px; display: grid; gap: 6px; max-width: 560px; margin: 0 auto; }
  .eyebrow { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
  .todayh { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 9vw, 46px); line-height: 1; text-wrap: balance; }
  .askbar { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 16px; border-radius: 16px; font-size: 15px; color: var(--muted); text-align: left; margin-top: 8px; }
  .askbar b { color: var(--fg); font-weight: 700; }
  #feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 560px; margin: 16px auto 0; padding-bottom: 120px; }
  .feedwait { color: var(--muted); text-align: center; padding: 60px 0; }
  .fc { border-radius: 24px; overflow: hidden; background: var(--sheet); border: 1px solid var(--sheet-line); box-shadow: var(--shadow); min-width: 0; }
  .fc-im { position: relative; height: clamp(300px, 88vw, 420px); overflow: hidden; cursor: pointer; background: var(--sheet2); }
  .fc-im .bgimg { position: absolute; left: -30px; top: -30px; width: calc(100% + 60px); height: calc(100% + 60px); max-width: none; object-fit: cover; filter: blur(22px) brightness(.7) saturate(1.25); }
  .fc-im .fg { position: absolute; top: 18px; bottom: 18px; left: 50%; transform: translateX(-50%); height: calc(100% - 36px); width: auto; max-width: calc(100% - 120px); object-fit: contain; border-radius: 10px; box-shadow: 0 14px 34px rgba(0,0,0,.5); }
  .fc-im .tcard { inset: 18px 70px 18px 18px; border-radius: 12px; }
  .fc-kind { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(10,12,20,.6); color: #fff; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
  .rail { position: absolute; right: 12px; top: 12px; display: grid; gap: 8px; }
  .rb { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(10,12,20,.5); color: #fff; font-size: 17px; display: grid; place-items: center; padding: 0; }
  .rb.on { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
  .fc-bd { padding: 16px 18px 18px; display: grid; gap: 9px; }
  .fc-for { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
  .fc-t { margin: 0; font-family: var(--font-display); font-size: 31px; line-height: 1.04; font-weight: 700; text-wrap: balance; cursor: pointer; overflow-wrap: anywhere; }
  .fc-by { color: var(--muted); font-size: 14px; margin-top: -5px; }
  .fc-stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--sheet-line); border-radius: 16px; overflow: hidden; margin-block: 2px; }
  .st { padding: 10px 14px; display: grid; gap: 1px; background: var(--sheet2); min-width: 0; }
  .st + .st { border-left: 1px solid var(--sheet-line); }
  .st .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
  .st b { font-size: 25px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
  .st.pos b { color: var(--ok); } .st.neg b { color: var(--ember); }
  .st .s { font-size: 13px; color: var(--muted); }
  .fc-why { margin: 0; font-size: 14px; font-weight: 700; color: var(--accent); }
  .fc-txt { margin: 0; font-size: 15px; line-height: 1.5; }
  .fc-talk { margin: 0; font-size: 14px; line-height: 1.45; padding: 10px 12px; border-radius: 12px; background: var(--sheet2); border-left: 3px solid var(--accent); }
  .fc-go { justify-self: start; padding-left: 0; }
  .fc.seen .fc-im { filter: grayscale(.6) brightness(.8); }
  .fc-gone { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--sheet); border: 1px dashed var(--sheet-line); color: var(--muted); font-size: 14px; }
  .fc-hello { padding: 20px; display: grid; gap: 8px; }
  .fc-hello h2 { margin: 0; font-family: var(--font-display); font-size: 28px; line-height: 1.05; }
  .fc-hello p { margin: 0; color: var(--muted); }
  .caught { text-align: center; padding: 18px 12px 4px; display: grid; justify-items: center; gap: 6px; }
  .cu-mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 24px; font-weight: 800; }
  .caught h2 { margin: 6px 0 0; font-family: var(--font-display); font-size: 31px; line-height: 1.05; }
  .caught p { margin: 0; color: var(--muted); max-width: 36ch; }
  .tune { padding: 18px; display: grid; gap: 10px; }
  .tune h3 { margin: 0; font-size: 18px; font-weight: 800; }
  .tune p { margin: 0; color: var(--muted); font-size: 14px; }
  .tune form { display: flex; gap: 8px; }
  .tune input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--glass-line); background: var(--glass2); color: var(--fg); }
  .learned { display: flex; gap: 6px; flex-wrap: wrap; }
  .learned .em { cursor: pointer; }
  .learned .x { opacity: .6; font-weight: 800; }
  .earlier h2 { margin: 6px 2px 0; font-size: 19px; font-weight: 800; }
  .earlier .list { padding-top: 8px; padding-bottom: 0; }
  .rb svg { width: 21px; height: 21px; fill: currentColor; }

  /* ---- For You: one review per screen. Poster full width on top, review over a dark fade, the page snaps card to card ---- */
  html.fy { scroll-snap-type: y mandatory; }
  html.fy .top, html.fy .todayhead { display: none; }
  html.fy main.wrap { max-width: none; padding: 0; }
  #feed { display: block; max-width: 560px; margin: 0 auto; padding: 0; }
  article.fc { position: relative; height: 100vh; height: calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); min-height: 460px; border: none; border-radius: 0; box-shadow: none;
    background: #12141f; color: #fff; scroll-snap-align: start; scroll-snap-stop: always; }
  .fc-im { position: absolute; inset: 0 0 auto 0; height: auto; aspect-ratio: 2 / 3; }
  .fc-im::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 90px; background: linear-gradient(to bottom, rgba(18,20,31,.72), rgba(18,20,31,0)); pointer-events: none; }
  .fc-im .bgimg { display: none; }
  .fc-im .fg { top: 0; bottom: 0; left: 0; transform: none; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; box-shadow: none; }
  .fc-im .tcard { inset: 0; border-radius: 0; }
  .fc-kind { display: none; }
  article.fc .rail { top: 84px; bottom: auto; z-index: 3; }
  .fy-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 470px; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(18,20,31,0), rgba(18,20,31,.9) 36%, #12141f 56%); }
  .fy-top { position: absolute; left: 16px; right: 16px; top: 12px; z-index: 2; display: flex; justify-content: space-between; align-items: baseline; pointer-events: none; font-size: 13px; font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.6); font-variant-numeric: tabular-nums; }
  .fy-top { gap: 12px; }
  .fy-name { font-family: var(--font-display); font-size: 28px; line-height: 1.1; font-weight: 700; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fy-top span + span { flex: none; }
  article.fc .fc-bd { position: absolute; left: 16px; right: 16px; bottom: 102px; z-index: 2; margin: 0; padding: 0; background: none; border-radius: 0; display: grid; gap: 7px; text-shadow: 0 1px 10px rgba(18,20,31,.8); }
  article.fc .fc-for { color: #f0c668; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 52px; }
  .tab { white-space: nowrap; }
  article.fc .fc-t { font-size: 28px; line-height: 1.02; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .fy-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-shadow: none; }
  .fy-stats > div { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 6px 10px; display: flex; align-items: baseline; gap: 7px; min-width: 0; }
  .fy-stats b { font-size: 21px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .fy-stats span { font-size: 11.5px; line-height: 1.2; color: #d5d8e6; min-width: 0; }
  .fy-stats .pos b { color: #a6e08f; } .fy-stats .neg b { color: #ffb093; }
  article.fc .fc-why { color: #f0c668; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  article.fc .fc-txt { font-size: 14px; line-height: 1.4; color: #eceef6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .fc-vt { margin: 0; font-size: 12.5px; line-height: 1.3; color: #d5d8e6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fc-vt b { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #f0c668; margin-right: 4px; }
  @media (max-height: 720px) { article.fc .fc-txt { -webkit-line-clamp: 1; } }
  .fy-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
  article.fc .fc-go { color: #f0c668; font-size: 13.5px; padding: 4px 0; }
  /* "Who's watching?" bar: fixed over the top of the For You feed; picking people filters the feed to titles that fit all of them */
  .watchbar { position: fixed; z-index: 35; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 8px); width: min(560px, 100%); padding: 0 10px; pointer-events: none; }
  .wb-in { pointer-events: auto; padding: 6px 6px 6px; border-radius: 18px; background: rgba(18,20,31,.62); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255,255,255,.16); box-shadow: 0 8px 24px rgba(0,0,0,.35); color: #fff; }
  .wb-row { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .wb-row::-webkit-scrollbar { display: none; }
  .wb-q { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #f0c668; padding: 0 6px 5px; }
  .wb-c { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
  .wb-c.on { background: #f0c668; color: #1f1706; border-color: transparent; }
  .wb-c:focus-visible { outline: 2px solid #f0c668; outline-offset: 2px; }
  html.fy.wb .fy-top { top: 84px; }
  html.fy.wb article.fc .rail { top: 136px; }
  html.fy.wb .fc-im::after { height: 170px; }
  .fy-swipe { display: flex; align-items: center; gap: 4px; color: #d5d8e6; white-space: nowrap; }
  .fy-swipe svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: swipeup 1.4s ease-in-out infinite; }
  @keyframes swipeup { 0%, 100% { transform: translateY(3px); opacity: .55; } 50% { transform: translateY(-3px); opacity: 1; } }
  #feed .fc-gone { height: 100vh; height: calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); border: none; border-radius: 0; scroll-snap-align: start; flex-direction: column; justify-content: center; text-align: center; padding: 24px; }
  .fy-end { scroll-snap-align: start; min-height: 100vh; min-height: 100svh; padding: 28px 16px 130px; display: grid; gap: 22px; align-content: start; }
  .swipehint { display: none; }
  @media (max-height: 600px) { article.fc .fc-txt { display: none; } article.fc .rail { top: 60px; gap: 6px; } }
  @media (prefers-reduced-motion: reduce) { .fy-swipe svg { animation: none; } html.fy { scroll-snap-type: none; } }
  .rb.plus svg { width: 24px; height: 24px; }

  /* watchlist banner: drops from the top edge, like a system notice */
  :root { --kneg: #d64357; --kpos: #4cb36a; --kempty: rgba(255,255,255,.12); }
  @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --kneg: #c02c43; --kpos: #2f8f4c; --kempty: #e6e8f0; } }
  :root[data-theme="light"] { --kneg: #c02c43; --kpos: #2f8f4c; --kempty: #e6e8f0; }
  .wlbanner { position: fixed; left: 0; right: 0; top: 0; z-index: 70; padding: calc(env(safe-area-inset-top, 0px) + 16px) 20px 16px; background: var(--sheet); color: var(--fg);
    border-bottom: 1px solid var(--sheet-line); box-shadow: 0 10px 30px rgba(0,0,0,.25); text-align: center; display: grid; gap: 2px; transform: translateY(-110%); transition: transform .28s ease; }
  .wlbanner.show { transform: translateY(0); }
  .wlbanner b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
  .wlbanner span { font-size: 14.5px; color: var(--muted); }
  @media (prefers-reduced-motion: reduce) { .wlbanner { transition: none; } }

  /* preferences: Particle-style rows, "−  knob  +", the knob fills a quarter per tap, red for less and green for more */
  .knob { position: relative; width: 28px; height: 28px; border-radius: 50%; flex: 0 0 28px; display: grid; place-items: center;
    background: conic-gradient(var(--kc, var(--kpos)) var(--kp, 0%), var(--kempty) 0); border: 1px solid var(--sheet-line); }
  .knob.full i { font-style: normal; font-weight: 900; font-size: 15px; color: #fff; line-height: 1; }
  .prow { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--sheet-line); min-width: 0; }
  .prow:last-child { border-bottom: none; }
  .prow .pi { flex: 0 0 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--sheet2); font-size: 16px; }
  .prow .pn { flex: 1; min-width: 0; display: grid; }
  .prow .pn b { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
  .prow .pn small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
  .prow .pn small.neg { color: var(--kneg); } .prow .pn small.pos { color: var(--kpos); }
  .pm { width: 34px; height: 34px; border-radius: 50%; border: none; background: transparent; color: var(--muted); font-size: 22px; font-weight: 600; line-height: 1; padding: 0; display: grid; place-items: center; }
  .pm:hover { background: var(--sheet2); color: var(--fg); }
  .pm:disabled { opacity: .3; cursor: default; }
  .pgroup { padding: 4px 14px; border-radius: 18px; background: var(--sheet); border: 1px solid var(--sheet-line); }
  .pgroup + .seclabel { margin-top: 18px; }
  .psum { display: grid; gap: 0; padding: 2px 14px; border-radius: 18px; background: var(--sheet); border: 1px solid var(--sheet-line); }
  .psum button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 2px; border: none; background: none; text-align: left; font-size: 15.5px; font-weight: 700; border-bottom: 1px solid var(--sheet-line); color: var(--fg); }
  .psum button:last-child { border-bottom: none; }
  .psum button span.n { margin-left: auto; color: var(--muted); font-weight: 600; }
  .psum button.on { color: var(--accent); }
  .psearch { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--sheet-line); background: var(--sheet2); color: var(--fg); }
  .scopes { display: flex; gap: 6px; flex-wrap: wrap; }
  .phead { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; }
  .phead h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
  .plead { color: var(--muted); margin: 0 2px 12px; max-width: 60ch; }
  #v-prefs { max-width: 620px; margin: 0 auto; padding-bottom: 120px; }
  #v-prefs .tune { margin-top: 18px; }
  .kw { display: flex; gap: 6px; flex-wrap: wrap; }
  #prefSheet .prow .pn b { font-size: 14.5px; }

  /* stats line used on library rows: Age first, Soul second, then the verdict */
  .vline .ag { color: var(--fg); font-weight: 800; }
  .vline .sl { font-weight: 800; }
  .vline .sl.pos { color: var(--ok); } .vline .sl.neg { color: var(--ember); }
  .vline .sep { color: var(--muted); font-weight: 400; }
  .hero .fc-stats { margin-top: 12px; max-width: 360px; }

  /* How Lumen reviews */
  .method { display: grid; gap: 14px; max-width: 720px; margin: 0 auto; padding-bottom: 120px; }
  .method .blk { padding: 18px 20px; border-radius: 22px; background: var(--sheet); border: 1px solid var(--sheet-line); }
  .method h2 { margin: 0 0 8px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
  .method p { margin: 0 0 10px; line-height: 1.55; max-width: 66ch; }
  .method p:last-child { margin-bottom: 0; }
  .method ul, .method ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; line-height: 1.5; }
  .method li b { font-weight: 800; }
  .method .lede { font-family: var(--font-display); font-size: 26px; line-height: 1.15; font-weight: 700; margin: 4px 2px 2px; text-wrap: balance; }
  .method .tiers { display: grid; gap: 6px; }
  .method .tiers div { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; line-height: 1.45; }
  .method .src { display: grid; gap: 10px; }
  .method .src div b { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
