/* ---------- design tokens ----------
   Light by default, dark on request or by system setting. Color means something:
   blue = act, teal = rising, amber = time window, red = falling or too late, three fixed age colors. */
:root {
  --bg: #EEF1F5; --panel: #FFFFFF; --panel-2: #F3F5F9; --line: #DCE1EA; --line-2: #C9D0DC;
  --text: #141A26; --muted: #556074; --faint: #66707F;
  --accent: #2747D9; --accent-ink: #FFFFFF; --rbx: #0B66C3; --usd: #16773A; --up: #0A7466; --down: #C42F43; --warn: #8F5400; --amber: #F2A100;
  /* Age and compare colors: checked with the dataviz validator (CVD-safe, both modes). Always shown with labels. */
  --kid: #D95926; --tween: #1BAF7A; --teen: #2A78D6; --adult: #C2477A;
  --s1: #2A78D6; --s2: #EB6834; --s3: #1BAF7A; --s4: #4A3AA7;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Lexend", system-ui, -apple-system, sans-serif;
  --radius: 14px; --radius-lg: 20px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 26, 38, .06), 0 8px 24px -12px rgba(20, 26, 38, .18);
  --header: 60px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121722; --panel: #192030; --panel-2: #212A3C; --line: #2B3548; --line-2: #3A465C;
  --text: #EAEEF6; --muted: #A1AABD; --faint: #8C95A9;
  --accent: #8098FF; --accent-ink: #0E1530; --rbx: #5DB2FF; --usd: #5ED58A; --up: #3CCFB4; --down: #FF6B7E; --warn: #FFC15A; --amber: #FFB534;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  --kid: #D95926; --tween: #199E70; --teen: #3987E5; --adult: #D55181;
  --s1: #3987E5; --s2: #D95926; --s3: #199E70; --s4: #9085E9;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121722; --panel: #192030; --panel-2: #212A3C; --line: #2B3548; --line-2: #3A465C;
    --text: #EAEEF6; --muted: #A1AABD; --faint: #8C95A9;
    --accent: #8098FF; --accent-ink: #0E1530; --rbx: #5DB2FF; --usd: #5ED58A; --up: #3CCFB4; --down: #FF6B7E; --warn: #FFC15A; --amber: #FFB534;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
    --kid: #D95926; --tween: #199E70; --teen: #3987E5; --adult: #D55181;
    --s1: #3987E5; --s2: #D95926; --s3: #199E70; --s4: #9085E9;
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--body); letter-spacing: -0.005em; }
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.num, .mono { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- shell ---------- */
.top { position: sticky; top: 0; z-index: 20; height: var(--header); display: flex; align-items: center; gap: 18px; padding: 0 24px;
       background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.mark { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); position: relative; transform: rotate(-8deg); }
.mark::after { content: ""; position: absolute; right: -4px; top: -4px; width: 11px; height: 11px; border-radius: 3px; background: var(--kid); transform: rotate(20deg); }
.tabs { display: flex; align-items: center; gap: 2px; }
.tabs > a, .more summary { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .tabs > a:hover, .more summary:hover { color: var(--text); background: var(--panel-2); } }
.tabs > a.on, .more summary.on { color: var(--text); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.more { position: relative; }
.more-menu { position: absolute; top: 44px; left: 0; min-width: 210px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; }
.more-menu a { padding: 9px 12px; border-radius: 8px; color: var(--muted); font-weight: 700; font-size: 14px; }
.more-menu a.on { background: var(--panel-2); color: var(--text); } @media (hover: hover) { .more-menu a:hover { background: var(--panel-2); color: var(--text); } }
.search { position: relative; flex: 1; max-width: 460px; margin-left: auto; }
.search input { width: 100%; height: 40px; padding: 0 36px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }
.search input::placeholder { color: var(--faint); }
.kbd { position: absolute; right: 10px; top: 9px; font: 700 12px/20px var(--body); color: var(--faint); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; pointer-events: none; }
.results { position: absolute; left: 0; right: 0; top: 46px; z-index: 30; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: none; max-height: 70vh; overflow: auto; box-shadow: var(--shadow); padding: 6px; }
.results.open { display: block; }
.results .grp { font-weight: 700; font-size: 13px; color: var(--muted); padding: 8px 8px 4px; }
.res { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 10px; }
.res.sel { background: var(--panel-2); } @media (hover: hover) { .res:hover { background: var(--panel-2); } }
.res img, .res .ph { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }
.res small { color: var(--muted); display: block; }
.health { font-size: 13px; color: var(--muted); white-space: nowrap; }
.health b { color: var(--text); }
.health .bad { color: var(--down); }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; display: grid; place-items: center; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.bottom { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 700; transition: .2s; z-index: 60; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

main.busy { opacity: .55; transition: opacity .15s; pointer-events: none; }
main { padding: 26px 28px 80px; min-width: 0; max-width: 1320px; margin: 0 auto; outline: none; }
h1 { font: 800 30px/1.1 var(--display); letter-spacing: -.025em; margin: 0 0 6px; }
h2 { font: 700 17px/1.3 var(--display); letter-spacing: -.01em; color: var(--text); margin: 0 0 12px; }
h2 .flat, h2 small { font: 400 14px var(--body); color: var(--muted); letter-spacing: 0; }
.sub { color: var(--muted); margin: 0 0 22px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.head .sub { margin: 0; }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 999px; cursor: pointer; min-height: 36px; }
@media (hover: hover) { .seg button:hover { color: var(--text); } }
.seg button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08), inset 0 0 0 1px var(--line); }
select { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; min-height: 40px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile .k { color: var(--muted); font-size: 13px; }
.tile .v { font: 800 26px/1.15 var(--display); margin-top: 4px; letter-spacing: -.02em; }
.tile .d { font-size: 13px; margin-top: 2px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; container-type: inline-size; }
.card.wide { grid-column: 1 / -1; }

.list { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 28px 40px minmax(0, 1fr) 90px 70px 64px; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; }
@media (hover: hover) { .row:hover { background: var(--panel-2); } }
.row .rk { color: var(--faint); font-size: 13px; text-align: right; }
.row img, .ph { width: 40px; height: 40px; border-radius: 10px; background: var(--panel-2); object-fit: cover; }
.row .nm { overflow: hidden; }
.row .nm div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.row .nm small { color: var(--muted); font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .pl { text-align: right; }
.row .ch { text-align: right; font-size: 13px; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--faint); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); color: var(--muted); margin-left: 6px; vertical-align: 1px; }
.pill.new { background: color-mix(in srgb, var(--amber) 22%, transparent); color: var(--warn); }

.alert { display: flex; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 10px; }
@media (hover: hover) { .alert:hover { background: var(--panel-2); } }
.alert img { width: 32px; height: 32px; border-radius: 8px; }
.alert .t { flex: 1; min-width: 0; }
.alert small { color: var(--muted); }
.kind { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.kind.spike { color: var(--down); background: color-mix(in srgb, var(--down) 14%, transparent); }
.kind.climb { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.kind.milestone { color: var(--warn); background: color-mix(in srgb, var(--amber) 20%, transparent); }

.bars .b { display: grid; grid-template-columns: 170px 1fr 90px 60px; gap: 10px; align-items: center; padding: 5px 0; font-size: 14px; }
.bars .track { height: 8px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.bars .fill { height: 100%; background: var(--accent); border-radius: 4px; }

.game-head { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; }
.game-head img { width: 88px; height: 88px; border-radius: 20px; object-fit: cover; }
.meta { color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.meta a { color: var(--accent); font-weight: 700; }
.chartbox { position: relative; height: 300px; }
.desc { white-space: pre-wrap; color: var(--muted); font-size: 14px; max-height: 320px; overflow: auto; }
.upd { border-top: 1px solid var(--line); padding: 10px 0; font-size: 14px; }
.upd:first-child { border-top: 0; }
.upd ins { text-decoration: none; color: var(--up); display: block; }
.upd del { color: var(--down); display: block; }
.empty { color: var(--muted); padding: 30px; text-align: center; }
.loading { color: var(--muted); padding: 30px 0; }

.brief-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
.brief-list a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--muted); }
.brief-list a.on { background: var(--panel-2); color: var(--text); } @media (hover: hover) { .brief-list a:hover { background: var(--panel-2); color: var(--text); } }
.md { max-width: 760px; line-height: 1.65; }
.md h1 { font-size: 26px; } .md h2 { font-size: 18px; margin-top: 28px; }
.md table { border-collapse: collapse; font-size: 14px; } .md td, .md th { border: 1px solid var(--line); padding: 4px 8px; }

@container (max-width: 520px) {
  .row { grid-template-columns: 22px 34px minmax(0, 1fr) 58px 60px; gap: 8px; }
  .row .sp { display: none; }
  .row img, .row .ph { width: 34px; height: 34px; }
}
.results { container-type: inline-size; }

/* ---------- tablet and phone ---------- */
@media (max-width: 1100px) {
  .health { display: none; }
  .tabs > a[data-nav="money"] { display: none; }
}
@media (max-width: 700px) {
  .top { padding: 0 14px; gap: 10px; }
  .tabs { display: none; }
  .brand-name { display: none; }
  .search { max-width: none; }
  .kbd { display: none; }
  main { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
  h1 { font-size: 25px; }
  .grid, .brief-layout { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bars .b { grid-template-columns: 110px 1fr 70px; } .bars .b span:last-child { display: none; }
  .bottom { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
            background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
            padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 0; min-height: 48px; border-radius: 12px; }
  .bottom a.on { color: var(--accent); }
  .bottom svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .game-head img { width: 64px; height: 64px; border-radius: 16px; }
  .chartbox { height: 240px; }
  .card { padding: 14px; }
}

/* ---------- money ---------- */
.link { color: var(--accent); }
.warn { color: var(--warn); }
.vd { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--panel-2); white-space: nowrap; }
.vd.up { background: color-mix(in srgb, var(--up) 15%, transparent); }
.vd.down { background: color-mix(in srgb, var(--down) 15%, transparent); }
.vd.warn { background: color-mix(in srgb, var(--warn) 15%, transparent); }
.card.inner { background: var(--panel-2); border-color: transparent; }
.comp { grid-template-columns: 150px 1fr 70px !important; }
.track { position: relative; overflow: visible !important; }
.track .fill.behind { background: var(--warn); }
.track .mark { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--text); border-radius: 1px; }
.left { font-size: 26px; font-weight: 600; color: var(--up); }
.left small { font-size: 13px; font-weight: 400; }
.gap { border-top: 1px solid var(--line); padding: 8px 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 13px; }
.gap .flat { grid-column: 1 / -1; }
.ladder { position: relative; height: 62px; border-bottom: 1px solid var(--line); margin: 6px 4px 22px; }
.ladder .tick { position: absolute; bottom: -20px; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
.pd { position: absolute; width: 9px; height: 9px; border-radius: 50%; transform: translateX(-50%); display: inline-block; }
.legend .pd { position: static; transform: none; margin-right: 4px; }
.pd.pass { background: var(--accent); } .pd.product { background: var(--up); }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl .r { text-align: right; }
.tbl tr.off td { color: var(--faint); }
.tbl.money tbody tr { cursor: pointer; } @media (hover: hover) { .tbl.money tbody tr:hover { background: var(--panel-2); } }
.tbl.money img, .tbl.money .ph, .chip img, .chip .ph { width: 30px; height: 30px; border-radius: 7px; }
details summary { cursor: pointer; color: var(--accent); }
.rubric { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; align-items: end; }
.rubric label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.rubric label.wide { grid-column: span 2; }
.rubric input { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font: inherit; }
.model { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.model-act { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.model-act .btn { white-space: normal; text-align: left; }
.model .k { color: var(--muted); font-size: 12px; } .model .v { font-size: 22px; font-weight: 600; } .model .flat { font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; background: var(--panel-2); border-radius: 10px; font-weight: 500; }
.chip button { border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; }
.search.inline { min-width: 240px; flex: 1; }
.search.inline .results { right: auto; width: 420px; }
.tbl.cmptable th a { color: var(--text); }
.explain h3 { margin: 0 0 6px; font-size: 17px; }
.lead-sum { color: var(--muted); margin: 0 0 14px; }
.mults { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.mults div { background: var(--panel-2); border-radius: 10px; padding: 10px 12px; }
.mults .k { display: block; color: var(--muted); font-size: 12px; } .mults b { font-size: 20px; }
.reasons { list-style: none; padding: 0; margin: 0; }
.reasons li { padding: 7px 0; border-top: 1px solid var(--line); }
.mult { display: inline-block; min-width: 52px; font-family: "JetBrains Mono", monospace; font-size: 12px; }
.leftbox { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--up) 10%, transparent); }
@container (max-width: 700px) { .mults { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1000px) { .model { grid-template-columns: repeat(2, 1fr); } .mults { grid-template-columns: repeat(2, 1fr); } .rubric label.wide { grid-column: auto; } }

/* ---------- marketing ---------- */
.hidden { display: none !important; }
code { font-family: "JetBrains Mono", monospace; font-size: 12px; background: var(--panel-2); padding: 1px 5px; border-radius: 4px; }
.warnbox { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.errbox { border-color: color-mix(in srgb, var(--down) 40%, var(--line)); margin-bottom: 16px; }
.spend { min-width: 200px; } .spend .k { color: var(--muted); font-size: 12px; } .spend .track { display: block; height: 6px; background: var(--panel-2); border-radius: 3px; margin-top: 6px; } .spend .fill { height: 100%; background: var(--accent); border-radius: 3px; }
.mform { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; align-items: end; }
.mform label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.mform label.wide { grid-column: 1 / -1; }
.mform input, .mform select { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; }
.mform .btn { justify-self: start; }
.rep-row { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 8px; }
@media (hover: hover) { .rep-row:hover { background: var(--panel-2); } }
.rep-row img, .rep-row .ph { width: 36px; height: 36px; border-radius: 8px; }
.rep-row .nm { flex: 1; min-width: 0; }
.rep-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.rep-head > div:nth-child(2) { flex: 1 1 260px; }
.rep-head img, .ph.big { width: 72px; height: 72px; border-radius: 16px; background: var(--panel-2); }
.rep-actions { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.busy { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.spin { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.report-md { max-width: none; margin-bottom: 16px; }
.report-md h1 { display: none; }
.report-md h2 { font-size: 17px; margin: 26px 0 8px; }
.report-md h2:first-of-type { margin-top: 0; }
.checklist { display: flex; flex-direction: column; }
.checklist label { display: grid; grid-template-columns: 22px 92px 1fr; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); align-items: start; }
.checklist label.done span { color: var(--faint); text-decoration: line-through; }
.checklist .when { font-weight: 600; font-size: 12px; color: var(--accent); }
.card + .card { margin-top: 16px; }
.appx { margin: 28px 0 12px; }
.hours { display: flex; gap: 2px; align-items: flex-end; height: 110px; margin-bottom: 6px; }
.hb { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.hb i { display: block; width: 100%; background: var(--accent); opacity: .5; border-radius: 3px 3px 0 0; }
.hb i.pk { opacity: 1; }
.hb span { font-size: 9px; color: var(--faint); margin-top: 2px; }
.chip.ok { background: color-mix(in srgb, var(--up) 15%, transparent); } .chip.miss { background: color-mix(in srgb, var(--down) 15%, transparent); }
.trackrow { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
@media print {
  .side, .noprint, .busy { display: none !important; }
  body { display: block; background: #fff; color: #111; }
  main { padding: 0; max-width: none; }
  .card { break-inside: avoid; border-color: #ddd; background: #fff; }
  .grid { display: block; } .grid .card { margin-bottom: 12px; }
}

/* ---------- internet trends ---------- */
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer; white-space: nowrap; }
@media (hover: hover) { .btn:hover { filter: brightness(1.08); } }
.btn.ghost { background: var(--panel); color: var(--text); border-color: var(--line); }
@media (hover: hover) { .btn.ghost:hover { border-color: var(--line-2); filter: none; background: var(--panel-2); } }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn.disabled, .btn:disabled { opacity: .55; pointer-events: none; }
.link { color: var(--accent); font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; }
.watchbtn.on { color: var(--warn); border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); background: color-mix(in srgb, var(--amber) 12%, var(--panel)); }
.watchbtn.on .ic { fill: var(--amber); stroke: var(--amber); }
.watchbtn.pop .ic { animation: pop .3s ease-out; }
@keyframes pop { 50% { transform: scale(1.35); } }
.stage { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.stage.breaking { color: var(--down); background: color-mix(in srgb, var(--down) 13%, transparent); }
.stage.rising { color: var(--up); background: color-mix(in srgb, var(--up) 13%, transparent); }
.stage.peaking { color: var(--warn); background: color-mix(in srgb, var(--amber) 18%, transparent); }
.stage.new { color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); }
.th { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--panel-2); flex: none; }
.th.ph { display: grid; place-items: center; font: 800 18px var(--display); color: var(--muted); }
.th.lg { width: 64px; height: 64px; border-radius: 16px; } .th.xl { width: 96px; height: 96px; border-radius: 22px; }
.th.lg.ph { font-size: 26px; } .th.xl.ph { font-size: 38px; }
.opengap { color: var(--up); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.opengap .ic { width: 16px; height: 16px; }

/* audience bar: labeled segments with 2px gaps (never color alone) */
.age { display: flex; flex-direction: column; gap: 6px; }
.agebar { display: flex; gap: 2px; height: 10px; border-radius: 6px; overflow: hidden; }
.agebar span { display: block; min-width: 2px; }
.agebar span:first-child { border-radius: 6px 0 0 6px; } .agebar span:last-child { border-radius: 0 6px 6px 0; }
.agelbl { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.agelbl span { display: inline-flex; align-items: center; gap: 6px; }
.agelbl i, .legend i, .dotk { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.agelbl b { color: var(--text); }
.age.compact .agebar { height: 8px; width: 100%; }
.agetop { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }

/* ship-by strip: the one bold element */
.ship { margin: 4px 0; }

/* picks */
.picks-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.picks-head h1 { font-size: 40px; }
.picks-ctl { display: flex; gap: 14px; flex-wrap: wrap; }
.ctl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 700; }
.ctl.inline { flex-direction: row; align-items: center; gap: 10px; }
.tickets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.ticket { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); min-width: 0; }
.ticket:first-child { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tk-top { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.tk-rank { font: 800 34px/1 var(--display); color: var(--faint); width: 24px; }
.tk-name h2 { font-size: 21px; margin: 0; overflow-wrap: anywhere; } @media (hover: hover) { .tk-name a:hover h2 { color: var(--accent); } }
.tk-name p { margin: 2px 0 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-score { text-align: center; } .tk-score b { display: block; font: 800 30px/1 var(--display); color: var(--up); } .tk-score small { color: var(--muted); font-size: 12px; }
.tk-why { margin: 0; font-size: 15px; line-height: 1.5; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; color: var(--muted); }
.tk-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.picks-more { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.side-col { display: flex; flex-direction: column; gap: 16px; }
.side-col .card + .card { margin-top: 0; }
.mini { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 12px; }
@media (hover: hover) { .mini:hover { background: var(--panel-2); } } .mini small { display: block; color: var(--muted); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-q { font-size: 14px; padding: 5px 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }
@media (hover: hover) { a.chip-q:hover { border-color: var(--accent); } }
.proof p { margin: 0 0 8px; }

/* ranked rows */
.rows { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; }
.lrow { display: grid; grid-template-columns: 28px 26px 44px minmax(0, 1fr) 104px 100px 76px 76px 110px 52px; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 12px; border-bottom: 1px solid var(--line); }
.lrow:last-child { border-bottom: 0; } @media (hover: hover) { .lrow:hover { background: var(--panel-2); } }
.rows.big { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; }
.lrow .rk { color: var(--faint); text-align: right; }
.lrow .nm { min-width: 0; } .lrow .nm b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .nm small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 13px; }
@media (hover: hover) { .lrow .nm:hover b { color: var(--accent); } }
.c-num, .c-opp { text-align: right; } .c-num b, .c-opp b { display: block; font-size: 16px; } .c-num small, .c-opp small { color: var(--muted); font-size: 12px; }
.c-opp b { color: var(--up); font-family: var(--display); font-weight: 800; }
.cmp { display: grid; place-items: center; min-width: 28px; min-height: 28px; cursor: pointer; } .cmp input { width: 18px; height: 18px; accent-color: var(--accent); }
.spark { display: block; }
.more-btn { margin: 0 auto; display: flex; }
.filterbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.filterbar input[type=search] { height: 42px; max-width: 360px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }
.chiprow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fchip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
@media (hover: hover) { .fchip:hover { color: var(--text); border-color: var(--line-2); } }
.fchip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.switch { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; cursor: pointer; margin-left: 6px; min-height: 36px; }
.switch input { width: 18px; height: 18px; accent-color: var(--accent); }
.cmpbar { position: sticky; bottom: 16px; margin: 12px auto 0; width: fit-content; display: flex; gap: 10px; align-items: center; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; z-index: 10; }
.cmpbar[hidden] { display: none; }

/* trend page */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; } .crumbs a { color: var(--accent); font-weight: 700; }
.t-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-bottom: 16px; }
.t-head h1 { font-size: 36px; overflow-wrap: anywhere; }
.t-what { margin: 0 0 8px; color: var(--muted); font-size: 16px; }
.t-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted); font-size: 14px; }
.t-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.menu { position: relative; } .menu summary { list-style: none; } .menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: 50px; z-index: 15; width: 320px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.opt { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 14px; cursor: pointer; } .opt input { width: 18px; height: 18px; accent-color: var(--accent); }
.answer { margin-bottom: 16px; display: flex; flex-direction: column; gap: 16px; }
.answer-why { font: 700 19px/1.45 var(--body); margin: 0; max-width: 72ch; }
.answer .tiles { margin: 0; }
.answer .tile { background: var(--panel-2); border: 0; }
.whygrid { display: grid; grid-template-columns: minmax(0, 1.5fr) 1fr 56px; gap: 8px 12px; align-items: center; font-size: 14px; }
.whygrid .bar { height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; display: block; }
.whygrid .bar i { display: block; height: 100%; background: var(--up); border-radius: 4px; } .whygrid .bar i.neg { background: var(--down); }
.whygrid b { text-align: right; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 4px 0 10px 18px; display: flex; flex-direction: column; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--panel); }
.ideaform { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.idea { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.ev { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ev:last-child { border-bottom: 0; } .ev a { color: var(--accent); } .ev small { color: var(--muted); }
.src { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.noteform { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.noteform textarea, .noteform input { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); padding: 10px 12px; resize: vertical; }
.noteform div { display: flex; gap: 8px; } .noteform input { flex: 1; min-height: 34px; }
.note { border-top: 1px solid var(--line); padding: 10px 0; } .note p { margin: 0 0 4px; white-space: pre-wrap; }
.small { font-size: 13px; }

/* compare + watchlist */
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; font-weight: 700; font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.tablewrap { overflow-x: auto; }
.tbl.cmptable th[scope=row] { color: var(--muted); font-weight: 700; white-space: nowrap; }
.tbl.cmptable td, .tbl.cmptable th { min-width: 160px; vertical-align: top; }
.dotk { margin-right: 6px; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.watchrow { grid-template-columns: 44px minmax(0, 1fr) 104px 110px 90px 120px 44px; }
.watchrow .watchbtn { width: 42px; padding: 0; justify-content: center; }
.evt { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .evt small { display: block; }
.morelist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.morelist .card { text-align: left; cursor: pointer; } .morelist .card + .card { margin-top: 0; }
.ph.plus { display: grid; place-items: center; font: 800 20px var(--display); color: var(--accent); }

/* accuracy page pieces */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; } .kv span { color: var(--muted); } .kv b { font-weight: 700; }
.kv.wts { grid-template-columns: repeat(4, auto 1fr); }
.calib .b { grid-template-columns: 130px 1fr 50px 40px; }
.row.res { grid-template-columns: 24px minmax(0, 1fr) 60px 80px; }

@media (max-width: 1180px) {
  .tickets { grid-template-columns: 1fr; }
  .ticket { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 24px; }
  .ticket > .tk-top, .ticket > .tk-why { grid-column: 1; } .ticket > .ship, .ticket > .tk-meta, .ticket > .age, .ticket > .tk-act { grid-column: 2; }
  .ticket > .tk-top { grid-row: 1; } .ticket > .tk-why { grid-row: 2 / span 3; }
  .lrow { grid-template-columns: 28px 26px 44px minmax(0, 1fr) 104px 76px 76px 52px; }
  .lrow .c-spark, .lrow .c-age { display: none; }
}
@media (max-width: 980px) {
  .picks-more, .watch-layout { grid-template-columns: 1fr; }
  .t-head { grid-template-columns: auto minmax(0, 1fr); } .t-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 700px) {
  .ticket { display: flex; }
  .picks-head h1 { font-size: 30px; }
  .lrow { grid-template-columns: 44px minmax(0, 1fr) 64px; grid-template-areas: "th nm num" "th st opp"; row-gap: 4px; padding: 12px 6px; }
  .lrow .cmp, .lrow .rk, .lrow .c-spark, .lrow .c-age, .lrow .c-num + .c-num { display: none; }
  .lrow .th { grid-area: th; align-self: start; } .lrow .nm { grid-area: nm; } .lrow .c-stage { grid-area: st; } .lrow .c-num { grid-area: num; } .lrow .c-opp { grid-area: opp; }
  .watchrow { grid-template-columns: 44px minmax(0, 1fr) 44px; grid-template-areas: "th nm w" "th st w"; }
  .watchrow .c-num, .watchrow .c-rules { display: none; } .watchrow .watchbtn { grid-area: w; }
  .t-head h1 { font-size: 27px; } .th.xl { width: 72px; height: 72px; }
  .answer-why { font-size: 17px; }
  
  .menu-pop { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(84px + env(safe-area-inset-bottom)); width: auto; z-index: 40; }
  .whygrid { grid-template-columns: minmax(0, 1fr) 70px 50px; }
  .kv.wts { grid-template-columns: auto 1fr; }
  .cmpbar { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .tk-top { grid-template-columns: auto auto minmax(0, 1fr); } .tk-score { grid-column: 1 / -1; text-align: left; display: flex; gap: 8px; align-items: baseline; }
}

/* touch screens: every control at least 44px tall */
@media (pointer: coarse) {
  .seg button, .fchip, .btn, .btn.sm, .switch, select, .filterbar input[type=search], .cmp { min-height: 44px; }
  .tabs > a, .more summary { padding: 12px 14px; }
}
@media (max-width: 700px) {
  .picks-head { margin-bottom: 12px; } .picks-head h1 { font-size: 27px; } .picks-head .sub { font-size: 14px; }
  .picks-ctl { gap: 10px; width: 100%; } .ctl { flex: 1 1 100%; }
  .ctl .seg { display: flex; } .ctl .seg button { flex: 1; padding: 7px 8px; }
}
@media (max-width: 700px) {
  /* filters stay one swipeable line each, so results start on the first screen */
  .chiprow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; scroll-snap-type: x proximity; }
  .chiprow::-webkit-scrollbar { display: none; }
  .chiprow > * { flex: none; scroll-snap-align: start; }
  .filterbar input[type=search] { max-width: none; }
  .head .seg { width: 100%; display: flex; } .head .seg button { flex: 1; }
}

.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.vid { display: flex; flex-direction: column; gap: 4px; } .vid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; background: var(--panel-2); }
.vid b { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .vid small { color: var(--muted); font-size: 13px; }
@media (hover: hover) { .vid:hover b { color: var(--accent); } }
.listfoot { display: flex; justify-content: flex-end; margin: -6px 0 10px; }
.guide { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, var(--panel)); }
.guide ol { margin: 0; padding-left: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 28px; font-size: 14px; }
.guide h2 { margin: 0 0 8px; font-size: 16px; } .guide { padding: 14px 18px; }
@media (max-width: 1100px) { .guide ol { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .guide { flex-direction: column; } }

/* ---------- pass 2 ---------- */
:root { --good: #6D3FD4; } :root[data-theme="dark"] { --good: #B79BFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --good: #B79BFF; } }
/* status colors: purple = breaking out (good news), teal = rising, amber = big now, grey = fading; red only for "too late" */
.stage.breaking { color: var(--good); background: color-mix(in srgb, var(--good) 13%, transparent); }
.stage.fading { color: var(--muted); background: var(--panel-2); }
.stage.evergreen { color: var(--muted); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.th.ph svg { width: 45%; height: 45%; color: var(--muted); stroke-width: 1.8; }
.cat-meme { background: color-mix(in srgb, var(--kid) 14%, var(--panel-2)); } .cat-gaming { background: color-mix(in srgb, var(--teen) 14%, var(--panel-2)); }
.cat-music { background: color-mix(in srgb, var(--adult) 14%, var(--panel-2)); } .cat-show { background: color-mix(in srgb, var(--good) 12%, var(--panel-2)); }

.verdict { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--panel-2); }
.verdict .score { display: flex; align-items: baseline; gap: 1px; font-family: var(--display); }
.verdict .score b { font-size: 30px; font-weight: 800; line-height: 1; } .verdict .score small { color: var(--muted); font-size: 13px; }
.verdict > span:nth-child(2) b { display: block; font-size: 15px; } .verdict > span:nth-child(2) small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.verdict.v-strong { background: color-mix(in srgb, var(--up) 12%, var(--panel)); } .verdict.v-strong .score b { color: var(--up); }
.verdict.v-maybe .score b { color: var(--warn); } .verdict.v-long .score b { color: var(--muted); }
.verdict.v-late { background: color-mix(in srgb, var(--down) 10%, var(--panel)); } .verdict.v-late .score b, .verdict.v-late b { color: var(--down); }
.conf { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.conf.high { color: var(--up); } .conf.medium { color: var(--warn); }
.tip { display: inline-block; position: relative; vertical-align: middle; }
.tip summary { list-style: none; cursor: pointer; color: var(--faint); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.tip summary::-webkit-details-marker { display: none; } @media (hover: hover) { .tip summary:hover { color: var(--accent); background: var(--panel-2); } }
.tip summary .ic { width: 16px; height: 16px; }
.tip span { position: absolute; z-index: 30; right: 0; top: 32px; width: 280px; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 400; line-height: 1.45; padding: 10px 12px; border-radius: 12px; box-shadow: var(--shadow); }
.tile .k .tip summary { width: 22px; height: 22px; }

.ship.late .ship-say { color: var(--down); }
.ship.evergreen .ship-say { display: flex; gap: 8px; align-items: center; color: var(--muted); font-weight: 400; }

.tk-why { color: var(--muted); }
.ticket { gap: 12px; }
.tk-top { grid-template-columns: auto auto minmax(0, 1fr); }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.srcpanel { margin-top: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; max-width: 520px; }
.srcpanel ul { list-style: none; margin: 0 0 8px; padding: 0; columns: 2; gap: 18px; font-size: 14px; }
.srcpanel li { display: flex; gap: 6px; align-items: center; padding: 2px 0; break-inside: avoid; } .srcpanel .ic { width: 15px; height: 15px; }
.ctl-summary { display: none; }
.newb { font-size: 11px; font-weight: 700; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 1px 7px; vertical-align: 2px; margin-left: 4px; }
.lrow .nm small.meta { -webkit-line-clamp: 1; color: var(--faint); font-size: 12px; margin-top: 2px; }
.filtertop { display: flex; gap: 10px; margin-bottom: 10px; } .filtertop input { flex: 1; max-width: 360px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }
.filters-btn { display: none; }
.views { margin-bottom: 12px; } .fchip.view { border-style: solid; background: var(--panel); color: var(--text); display: inline-flex; align-items: center; } .fchip.add { border-style: dashed; }
.menu-pop.narrow { width: 240px; padding: 6px; gap: 0; }
.menu-item { display: flex; gap: 10px; align-items: center; width: 100%; min-height: 44px; padding: 0 12px; border: 0; background: none; border-radius: 10px; font-weight: 700; cursor: pointer; text-align: left; }
@media (hover: hover) { .menu-item:hover { background: var(--panel-2); } }
.more-txt { margin-left: 6px; }
.opt span { display: inline; } .opt select { min-height: 30px; padding: 2px 8px; margin-left: 4px; }
.ideacards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.ideacard { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--panel); }
.ideacard header { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.ideacard h3 { font: 700 17px/1.25 var(--display); margin: 0; }
.ideacard .pitch { margin: 0; font-weight: 600; }
.ideacard dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; margin: 0; font-size: 14px; } .ideacard dt { color: var(--muted); font-weight: 700; } .ideacard dd { margin: 0; }
.ideacard .btn { align-self: flex-start; margin-top: auto; }
.size { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); white-space: nowrap; }
.size.s-S { color: var(--up); } .size.s-M { color: var(--warn); } .size.s-L { color: var(--down); }
.watchout { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--amber) 12%, var(--panel)); }
.empty-watch { list-style: none; padding: 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.empty-watch p { margin: 0; max-width: 60ch; }
.c-num small, .c-opp small, .agetop, .tile .k, .tile .d { font-size: 13px; }

@media (max-width: 1180px) {
  .ideacards { grid-template-columns: 1fr; }
  .ticket { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ticket > .tk-top, .ticket > .verdict, .ticket > .tk-why { grid-column: 1; } .ticket > .ship, .ticket > .tk-meta, .ticket > .tk-act { grid-column: 2; }
  .ticket > .tk-top { grid-row: 1; } .ticket > .verdict { grid-row: 2; } .ticket > .tk-why { grid-row: 3 / span 2; }
  .ticket > .ship { grid-row: 1 / span 2; } .ticket > .tk-meta { grid-row: 3; } .ticket > .tk-act { grid-row: 4; }
}
@media (max-width: 700px) {
  .ctl-summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-weight: 700; }
  .ctl-summary .ic { width: 16px; height: 16px; }
  .picks-ctl { display: none; } .picks-ctl.open { display: flex; }
  .picks-head .sub { margin-bottom: 4px; }
  .srcpanel ul { columns: 1; }
  .filters-btn { display: inline-flex; }
  #fpanel { display: none; } #fpanel.open { display: flex; }
  .filtertop input { max-width: none; }
  .tk-top { grid-template-columns: auto minmax(0, 1fr); } .tk-rank { display: none; }
  .verdict .score b { font-size: 26px; }
  .tip span { right: -8px; width: min(280px, calc(100vw - 48px)); }
  .t-actions .btn { flex: 1; justify-content: center; } .t-actions .menu { flex: 1; } .t-actions .menu summary { width: 100%; justify-content: center; }
  .more-txt { display: none; }
}
.short { display: none; }
@media (max-width: 700px) {
  .long { display: none; } .short { display: inline; }
  .lrow { grid-template-columns: 44px minmax(0, 1fr) 56px; }
  .lrow .c-opp { display: flex; gap: 4px; align-items: baseline; justify-content: flex-end; } .lrow .c-opp b { font-size: 15px; }
}
@media (pointer: coarse) {
  .search input, .icon-btn { min-height: 44px; height: 44px; } .icon-btn { width: 44px; }
  .tip summary { width: 44px; height: 44px; margin: -8px; }
  .opt { min-height: 44px; align-items: center; } .opt select { min-height: 40px; }
}

/* ---------- pass 3 ---------- */
/* ranked list: one header row, one meaning per column, color never alone (score carries a word) */
.rowhead, .lrow { grid-template-columns: 28px 44px minmax(0, 1fr) 118px 120px 86px 110px 92px; }
.rowhead { display: grid; gap: 12px; padding: 0 14px 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.rowhead span:nth-child(n+5) { text-align: right; } .rowhead span:nth-child(7) { text-align: left; }
.lrow { padding: 12px 8px; }
.lrow .nm small { font-size: 14px; } .lrow .nm small.meta { font-size: 13px; color: var(--muted); }
.c-aud b { display: block; font-size: 15px; } .c-aud small { color: var(--muted); font-size: 13px; }
.c-opp b { font-size: 20px; } .c-opp small { display: block; font-weight: 700; }
.c-opp.v-strong b, .c-opp.v-strong small { color: var(--up); } .c-opp.v-maybe b, .c-opp.v-maybe small { color: var(--warn); } .c-opp.v-tight b, .c-opp.v-tight small { color: var(--warn); } .c-opp.v-late b, .c-opp.v-late small { color: var(--down); }
.c-opp.v-long b, .c-opp.v-long small { color: var(--muted); }
.c-num small .short, .c-num small.short { display: none; }
/* filters: labeled groups, single lines */
.filterbar { gap: 8px; }
.fgroup { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px; align-items: center; }
.flabel { font-size: 13px; font-weight: 700; color: var(--muted); }
.fgroup .chiprow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .fgroup .chiprow::-webkit-scrollbar { display: none; }
.fgroup .chiprow > * { flex: none; }
.fchip.toggle { border-style: dashed; } .fchip.toggle.on { border-style: solid; }
.sortctl { margin-left: auto; padding-left: 12px; } .sortctl select { min-height: 36px; }
/* pick cards: verdict + deadline + actions; evidence folds away */
.tk-more { border-top: 1px solid var(--line); padding-top: 8px; }
.tk-more summary { cursor: pointer; font-weight: 700; display: flex; gap: 8px; align-items: center; color: var(--accent); min-height: 32px; list-style: none; }
.tk-more summary::-webkit-details-marker { display: none; }
.tk-more summary::after { content: "▾"; color: var(--muted); }
.tk-more[open] summary::after { content: "▴"; }
.tk-more p { margin: 8px 0 0; }
.ticket .tk-why { font-size: 14px; }
.ship.optional .ship-say { font-weight: 400; color: var(--muted); }
.ship.optional .ship-sell { background: color-mix(in srgb, var(--up) 35%, transparent); }
.ship-by { position: absolute; transform: translateX(-50%); font-weight: 700; color: var(--text); white-space: nowrap; }
.seen { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.answer-why .link { margin-left: 6px; font-weight: 700; }
.note-panel { background: var(--panel-2); }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.res-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; } .res-r small { color: var(--muted); font-size: 12px; }
/* legibility: 13px floor, chips on solid backgrounds */
.src, .stage, .conf, .tile .d, .tile .k, .kv, .tbl, .tbl th { font-size: 13px; }
.conf { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.conf.medium { color: var(--warn); } .conf.high { color: var(--up); } .conf.low { color: var(--muted); }
.verdict > span:nth-child(2) small { color: color-mix(in srgb, var(--text) 78%, var(--panel)); font-size: 14px; }
.tbl.cmptable th[scope=col] { font-size: 14px; color: var(--text); }

@media (max-width: 1180px) {
  .rowhead, .lrow { grid-template-columns: 28px 44px minmax(0, 1fr) 110px 100px 80px 88px; }
  .rowhead span:nth-child(7), .lrow .c-aud { display: none; }
  .ticket > .tk-more { grid-column: 1; grid-row: 4; }
}
@media (max-width: 700px) {
  .rowhead { display: none; }
  .lrow { grid-template-columns: 44px minmax(0, 1fr) 64px; grid-template-areas: "th nm num" "th st opp"; }
  .lrow .c-num + .c-num, .lrow .c-aud { display: none; }
  .c-num small .short { display: inline; }
  .lrow .c-opp small { display: inline; font-size: 12px; }
  .fgroup { grid-template-columns: 1fr; gap: 4px; }
  .sortctl { margin-left: 0; }
  .ship-by { display: none; }
}
@media (max-width: 700px) {
  .ticket .verdict > span:nth-child(2) small { display: none; }
  .ticket .th.lg { width: 52px; height: 52px; border-radius: 14px; }
  .ticket { padding: 16px; gap: 10px; }
  .ticket .tk-name p { -webkit-line-clamp: 1; }
  .ship .ship-say { margin-bottom: 8px; }
  .lrow { grid-template-columns: 44px minmax(0, 1fr) 92px; }
  .lrow .c-num small, .lrow .c-opp small { white-space: nowrap; }
  .lrow .c-opp { flex-direction: column; align-items: flex-end; gap: 0; }
  #viewsrow { display: none; } #fpanel.open ~ #viewsrow { display: flex; }
  .tk-reason { margin-top: 8px; }
}
@media (max-width: 700px) {
  .t-head { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: start; }
  .t-head .th.xl { width: 56px; height: 56px; border-radius: 14px; }
  .t-head h1 { font-size: 24px; }
  .t-what { font-size: 15px; }
}

/* ---------- pass 4 ---------- */
/* timeline: peak as a labeled bracket above the bar, build/live below, one ship tick */
.ship-bar { position: relative; }
.ship-peakrow { position: relative; height: 30px; margin-bottom: 4px; }
.ship-bracket { position: absolute; bottom: 0; height: 8px; border: 2px solid var(--amber); border-bottom: 0; border-radius: 6px 6px 0 0; }
.ship-plabel { position: absolute; bottom: 10px; transform: translateX(-50%); font-style: normal; font-size: 13px; font-weight: 700; color: var(--warn); white-space: nowrap; }
.ship-track { position: relative; height: 14px; border-radius: 7px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.ship-build { position: absolute; left: 0; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--amber) 80%, transparent) 0 5px, color-mix(in srgb, var(--amber) 35%, transparent) 5px 10px); }
.ship-sell { position: absolute; top: 0; bottom: 0; background: var(--up); }
.ship-tick { position: absolute; top: -2px; bottom: -2px; width: 3px; margin-left: -1.5px; background: var(--text); border-radius: 2px; }
.ship-ticks { position: relative; display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; color: var(--muted); min-height: 18px; }
.ship-ticks .ship-by { position: absolute; transform: translateX(-50%); font-weight: 700; color: var(--text); white-space: nowrap; }
.ship.optional .ship-track { opacity: .55; filter: saturate(.4); } .ship.optional .ship-plabel { color: var(--muted); }
.ship.late .ship-sell { background: color-mix(in srgb, var(--down) 55%, transparent); }
.ship.tight .ship-say { color: var(--warn); }
.ship-say { font-weight: 700; font-size: 15px; margin: 0 0 8px; }
.verdict.v-tight { background: color-mix(in srgb, var(--amber) 14%, var(--panel)); } .verdict.v-tight .score b, .verdict.v-tight > span:nth-child(2) b { color: var(--warn); }

/* pick cards line up across the three columns */
@media (min-width: 1181px) {
  .tickets { grid-auto-rows: auto; }
  .ticket { display: grid; grid-row: span 5; grid-template-rows: subgrid; gap: 12px; }
  .ticket .verdict { align-self: stretch; }
}
.c-phone { display: none; }
.tile .k { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

/* compare at a glance */
.glance .gl-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.glance .gl-row:first-of-type { border-top: 0; }
.gl-label { font-weight: 700; } .gl-bars { display: flex; flex-direction: column; gap: 6px; }
.gl-bar { position: relative; height: 26px; background: var(--panel-2); border-radius: 8px; overflow: hidden; }
.gl-bar i { position: absolute; left: 0; top: 0; bottom: 0; opacity: .3; border-radius: 8px; }
.gl-bar span { position: relative; padding: 0 10px; line-height: 26px; font-size: 13px; }

/* search: full-height rows and a see-all row */
.res { min-height: 48px; } .res.seeall { grid-template-columns: 0 1fr 0; color: var(--accent); }

/* loading placeholders shaped like the page */
.skeleton { display: flex; flex-direction: column; gap: 12px; }
.skeleton i { display: block; border-radius: 12px; background: linear-gradient(90deg, var(--panel-2), var(--panel), var(--panel-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.sk-h1 { width: 46%; height: 40px; } .sk-line { width: 30%; height: 16px; }
.sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px; } .sk-cards i { height: 420px; border-radius: 20px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* alerts menu: dim the page behind it, bigger checkboxes */
.menu[open] > summary::before { content: ""; position: fixed; inset: 0; background: rgba(10, 14, 22, .35); z-index: 14; cursor: default; }
.menu-pop { z-index: 16; } .opt input { width: 20px; height: 20px; }

@media (max-width: 700px) {
  .ticket .tk-name p { display: none; }
  .sk-cards { grid-template-columns: 1fr; } .sk-cards i:nth-child(n+2) { display: none; }
  /* list rows: full-width name and reason, numbers on their own line */
  .lrow { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "th nm" "th ph"; row-gap: 6px; }
  .lrow .c-num, .lrow .c-opp, .lrow .c-stage { display: none; }
  .lrow .nm b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .lrow .nm small.meta { display: none; }
  .c-phone { display: block; grid-area: ph; font-size: 14px; color: var(--muted); }
  .c-phone b.v-strong { color: var(--up); } .c-phone b.v-maybe { color: var(--warn); } .c-phone b.v-long { color: var(--muted); } .c-phone b.v-tight { color: var(--warn); } .c-phone b.v-late { color: var(--down); }
  /* trend page: one bottom bar. Watch / Alerts / More replace the tab bar (the breadcrumb leads back), like a pushed detail screen */
  body:has(.t-head) .bottom { display: none; }
  .t-head .t-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 22; padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); flex-wrap: nowrap; }
  main:has(.t-head) { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .menu-pop { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .seg button { white-space: nowrap; padding-left: 10px; padding-right: 10px; }
  .c-phone b { white-space: nowrap; }
  .glance .gl-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .skeleton i { animation: none; } }

/* ---------- pass 5 ---------- */
.firstgrade { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; border-color: color-mix(in srgb, var(--up) 35%, var(--line)); }
.firstgrade > svg { flex: none; width: 28px; height: 28px; color: var(--up); margin-top: 2px; }
.firstgrade h2 { margin: 0 0 6px; } .firstgrade p { margin: 0 0 8px; max-width: 75ch; }
details.method > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
details.method > summary::-webkit-details-marker { display: none; }
details.method > summary h2 { margin: 0; } details.method > summary::after { content: "Show"; margin-left: auto; color: var(--accent); font-weight: 700; font-size: 14px; }
details.method[open] > summary::after { content: "Hide"; } details.method[open] > summary { margin-bottom: 12px; }
details.idea.old > summary { cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
details.idea.old > summary span { color: var(--accent); font-weight: 600; font-size: 14px; }
.ship-ticks b { color: var(--text); }
.alert-examples { margin-top: 14px; display: grid; gap: 8px; }
.alert-examples .evt { opacity: .85; } .alert-examples .ex { font-size: 12px; font-weight: 700; color: var(--faint); }
.watch-how { margin-top: 16px; } .watch-how ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
[hidden] { display: none !important; }
details.method { align-self: start; }

/* ---------- currencies: Robux blue with a coin mark, US dollars green ---------- */
.rbx, .usd { white-space: nowrap; font-weight: inherit; }
.rbx { color: var(--rbx); }
.rbx::before { content: ""; display: inline-block; width: .62em; height: .62em; border: .13em solid currentColor; border-radius: .2em;
  transform: rotate(12deg); margin: 0 .32em 0 .08em; vertical-align: .02em; box-sizing: content-box;
  background: linear-gradient(currentColor, currentColor) center / 42% 42% no-repeat; }  /* outline + filled center, like the Robux mark */
.usd { color: var(--usd); }
.usd[title] { cursor: help; }

/* ---------- Predictions ---------- */
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pcard:first-child { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.pcard .tk-act { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pcard .tk-name small { font-size: 13px; }
.hook { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--text); }
.hook > span:first-child { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.arrive { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--up) 9%, var(--panel)); }
.arrive > b { font-size: 15px; color: var(--up); } .arrive > small { color: var(--muted); font-size: 13px; display: flex; gap: 6px; align-items: center; }
.road { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.road .rd { width: 22px; height: 6px; border-radius: 3px; background: var(--line); }
.road .rd.past { background: color-mix(in srgb, var(--up) 45%, var(--line)); } .road .rd.here { background: var(--up); width: 30px; }
.road small { margin-left: 6px; font-size: 13px; color: var(--muted); }
.fitline { margin: 0; display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.fitline.none { display: none; }
.fitdots { display: inline-flex; gap: 3px; flex: none; transform: translateY(-1px); }
.fitdots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); } .fitdots i.on { background: var(--accent); }
.roadmap { display: flex; align-items: stretch; gap: 6px; padding: 10px; margin-bottom: 14px; }
.rm-step { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--text);
  background: color-mix(in srgb, var(--up) 8%, var(--panel)); }
.rm-step b { font-size: 22px; font-family: var(--display, inherit); } .rm-step span { font-size: 13px; color: var(--muted); line-height: 1.25; }
.rm-step.s-arriving { background: color-mix(in srgb, var(--up) 22%, var(--panel)); }
.rm-step.s-on_roblox, .rm-step.s-crowded { background: var(--panel-2); }
@media (hover: hover) { .rm-step:hover { outline: 2px solid color-mix(in srgb, var(--up) 40%, transparent); } }
.rm-arrow { align-self: center; color: var(--faint); font-size: 20px; }
.kindbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.lane { margin-bottom: 16px; scroll-margin-top: 80px; } .lane h2 small { font-weight: 500; color: var(--muted); font-size: 14px; }
.prowhead, .prow { display: grid; grid-template-columns: 44px minmax(0, 1fr) 96px 52px 128px 44px; gap: 12px; align-items: center; }
.prowhead { font-size: 13px; color: var(--muted); font-weight: 600; padding: 0 8px 6px; }
.prow { padding: 10px 8px; border-top: 1px solid var(--line); }
.prow .nm { text-decoration: none; color: inherit; min-width: 0; } .prow .nm b { display: block; }
.prow .nm small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 14px; }
.p-eta b { display: block; font-size: 14px; } .p-eta small, .p-kind { font-size: 13px; color: var(--muted); }
.p-score b { font-size: 17px; }
.newsnote { margin: 4px 0 18px; }
.games .gameform { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.games .gameform label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); } .games .gameform .wide { grid-column: 1 / -1; }
.games input, .games textarea { font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.games .gf-act { grid-column: 1 / -1; display: flex; gap: 8px; }
#gamespanel { margin-bottom: 16px; }
.t-pred { display: grid; gap: 10px; margin-bottom: 14px; }

@media (max-width: 700px) {
  .roadmap { flex-direction: column; } .rm-arrow { display: none; } .rm-step { flex: none !important; flex-direction: row; align-items: baseline; gap: 10px; }
  .prowhead { display: none; }
  .prow { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "th nm sc" "th eta eta"; row-gap: 4px; }
  .prow .th { grid-area: th; } .prow .nm { grid-area: nm; } .prow .p-score { grid-area: sc; }
  .prow .p-eta { grid-area: eta; display: flex; gap: 8px; align-items: baseline; } .prow .p-fit, .prow .p-kind { display: none; }
  .games .gameform { grid-template-columns: 1fr; }
}

/* ---------- review pass: predictions, plan, nav, a11y, touch ---------- */
.show-phone { display: none !important; }
.icon-only { min-width: 40px; justify-content: center; padding-left: 10px; padding-right: 10px; font-size: 18px; line-height: 1; }
.pred-head .today { margin: 6px 0 2px; font-size: 18px; font-weight: 600; max-width: 70ch; }
.pred-head .today .link { font-weight: 700; }
.linkish.warnish { color: var(--warn); font-weight: 700; }
.picks-ctl .ctl { display: flex; flex-direction: column; gap: 6px; } .picks-ctl .ctl > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.picks-ctl #gamesbtn { align-self: flex-end; min-height: 36px; }
.pred-cards { grid-template-columns: minmax(0, 1fr); align-items: start; }
.pcard .tk-top { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.pcard .tk-name h3 { margin: 0; font-size: 20px; line-height: 1.2; font-family: var(--display, inherit); }
.pcard.hero { background: color-mix(in srgb, var(--accent) 6%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.pcard.hero .tk-name h3 { font-size: 26px; } .pcard.hero .hook { font-size: 19px; }
.pcard:not(.hero) .tk-rank { opacity: .55; }
.pcard .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.hook { font-size: 16px; font-weight: 600; }
.pscore { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; white-space: nowrap; }
.pscore b { font-size: 28px; font-family: var(--display, inherit); } .pscore small { font-size: 12px; font-weight: 700; margin-top: 4px; }
.pscore.v-strong b, .pscore.v-strong small { color: var(--up); } .pscore.v-maybe b, .pscore.v-maybe small { color: var(--warn); }
.pscore.v-long b, .pscore.v-long small { color: var(--muted); } .pscore.v-late b, .pscore.v-late small { color: var(--down); }
.prow .pscore { flex-direction: row; align-items: baseline; gap: 6px; justify-content: flex-end; } .prow .pscore b { font-size: 18px; }
.proof { margin: 0; display: flex; gap: 8px; align-items: baseline; font-size: 14px; color: var(--muted); } .proof .ic { width: 14px; height: 14px; color: var(--up); flex: none; transform: translateY(2px); }
.proof.none { display: none; }
.pc-time > summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--muted); list-style: none; min-height: 32px; display: flex; align-items: center; }
.pc-time > summary::-webkit-details-marker { display: none; } .pc-time > summary::after { content: "▾"; margin-left: 6px; } .pc-time[open] > summary::after { content: "▴"; }
.pc-time[open] > summary { margin-bottom: 6px; }
.pcard .tk-act { flex-wrap: nowrap; }
.fitdots i { width: 10px; height: 10px; background: transparent; border: 1.5px solid var(--muted); box-sizing: border-box; }
.fitdots i.on { background: var(--text); border-color: var(--text); }
.p-fit { display: flex; flex-direction: column; gap: 3px; } .p-fit small { font-size: 12px; color: var(--muted); }
.prowhead, .prow { grid-template-columns: 44px minmax(0, 1fr) 104px 96px 112px 108px; }
.prowhead span:last-child { text-align: right; }
.p-kind { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.road .rd { height: 8px; } .road .rd.here { background: var(--up); width: 34px; }
.road.native small { margin-left: 0; }
.roadmap { display: block; margin: 0 0 18px; padding: 0; background: none; border: 0; }
.roadmap h2 { font-size: 16px; margin: 0 0 8px; } .roadmap h2 .flat { font-weight: 500; font-size: 14px; }
.rm-steps { display: flex; gap: 6px; align-items: stretch; }
.rm-step { flex: 1 1 0 !important; border: 1px solid var(--line); background: var(--panel); font: inherit; cursor: pointer; text-align: left; min-height: 64px; }
.rm-step.s-asking, .rm-step.s-arriving { background: color-mix(in srgb, var(--up) 12%, var(--panel)); border-color: color-mix(in srgb, var(--up) 35%, var(--line)); }
.rm-step.s-native { margin-left: 12px; background: var(--panel-2); }
.rm-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; } @media (hover: hover) { .rm-step:hover { outline: 2px solid var(--accent); outline-offset: 1px; } }
.since { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; } .since a { color: inherit; }
.picks-more .side-col .card + .card { margin-top: 16px; }
.t-top2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 14px; }
.t-top2 .verdict { margin: 0; }
.answer-why { font-size: 16px; font-weight: 500; color: var(--muted); }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.board .col h2 { font-size: 16px; } .board .col h2 small { color: var(--muted); font-weight: 500; }
.plan-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; background: var(--panel); margin-top: 10px; }
.plan-item .pi-top { display: flex; gap: 10px; align-items: flex-start; } .plan-item .pi-top a { color: inherit; } .plan-item .pi-top small { display: block; color: var(--muted); font-size: 13px; }
.plan-item p { margin: 0; } .pi-act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pi-act select { font: inherit; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); min-height: 36px; }
dialog.plandlg { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text); padding: 20px; width: min(440px, calc(100vw - 32px)); }
dialog.plandlg::backdrop { background: rgba(10, 14, 22, .5); }
.planform { display: grid; gap: 12px; } .planform h2 { margin: 0; font-size: 20px; } .planform p { margin: 0; }
.planform label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.planform input, .planform select { font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; min-height: 44px; }
.gameform fieldset { border: 0; padding: 0; margin: 0; display: contents; } .gameform legend { grid-column: 1 / -1; font-weight: 700; padding: 0; margin-bottom: 4px; }
.gf-err:empty { display: none; } .gf-err { grid-column: 1 / -1; margin: 0; font-size: 14px; }
.moregroup { margin-bottom: 18px; } .moregroup h2 { font-size: 15px; color: var(--muted); margin: 0 0 8px; }
.morelist .card small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; margin-top: 2px; }
.more-menu .mm-h { display: block; font-size: 12px; font-weight: 700; color: var(--muted); padding: 8px 12px 2px; }
@media (pointer: coarse) { input, select, textarea { font-size: 16px !important; } }
@media (max-width: 1180px) and (min-width: 701px) { .pred-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pcard.hero { grid-column: 1 / -1; } .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .show-phone { display: inline-flex !important; } .hide-phone { display: none; }
  .pred-head .today { font-size: 16px; }
  .pred-cards { grid-template-columns: 1fr; }
  .pcard { padding: 14px; gap: 10px; }
  .pcard .tk-top { grid-template-columns: auto minmax(0, 1fr) auto; } .pcard .tk-rank { display: none; }
  .pcard.hero .tk-name h3 { font-size: 21px; } .pcard .tk-name h3 { font-size: 18px; }
  .pcard .arrive { padding: 8px 10px; } .pcard .road { display: none; }
  .roadmap h2 .flat { display: none; }
  .rm-steps { overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .rm-arrow { display: none; }
  .rm-step { flex: 0 0 auto !important; flex-direction: row !important; align-items: baseline; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: 999px; }
  .rm-step b { font-size: 16px; } .rm-step.s-native { margin-left: 0; }
  .prow { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "th nm sc" "th eta eta"; }
  .prow .p-eta small::before { content: "· Roblox pickup: "; }
  .t-top2 { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .t-head .t-actions .btn { flex: 1 1 auto; }
}

@media (min-width: 1181px) { .pred-cards { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); } }
.pcard:not(.hero) .tk-top { grid-template-columns: auto minmax(0, 1fr) auto; } .pcard:not(.hero) .tk-rank { display: none; }
.pcard:not(.hero) .th.lg { width: 48px; height: 48px; }
@media (min-width: 701px) { .pc-time > summary { display: none; } }
h1[tabindex="-1"]:focus { outline: none; }


/* ---------- release calendar, shipped results, theme families ---------- */
.slotline { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 14px; color: var(--muted); }
.slotline .ic { margin-top: 1px; color: var(--accent); }
.slotline b { color: var(--text); font-weight: 700; }
.slotline .sl-warn { display: block; }
.slotline.tight .ic, .slotline.tight .sl-warn { color: var(--warn); }
.slotline.late .ic, .slotline.late .sl-warn { color: var(--down); }
.slotnote { display: flex; gap: 8px; align-items: flex-start; margin: -4px 0 0; color: var(--muted); }
.slotnote .ic { flex: none; margin-top: 1px; color: var(--accent); } .slotnote b { color: var(--text); }
.slotnote.tight, .slotnote.tight .ic { color: var(--warn); } .slotnote.late, .slotnote.late .ic { color: var(--down); }
.calblock { margin: -4px 0 18px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 12px; }
.calblock h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; }
.ms-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ms-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: 14px; }
.ms-list li.past { opacity: .6; }
.msform { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.msform label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.msform input, .msform select { font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-height: 40px; }
.msform .gf-err { flex-basis: 100%; margin: 0; }
.shipbox { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); }
.shipbox label, .unipick label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.shipbox input { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; min-height: 40px; }
.shipbox p { margin: 0; display: flex; gap: 6px; align-items: flex-start; } .shipbox p .ic { margin-top: 2px; }
.unipick { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; } .unipick label, .unipick input { width: 100%; }
.unipick .gf-err { margin: 0; }
.shipres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.shipres > div { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 10px; background: var(--panel); }
.shipres b { font-size: 20px; line-height: 1.1; } .shipres small { font-size: 12px; color: var(--muted); }
.shipres b.up { color: var(--up); } .shipres b.down { color: var(--down); }
.related .fam { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.related .fam:last-child { border-bottom: 0; margin-bottom: 0; }
.related .fam > p { margin: 0 0 6px; }
.rel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rel-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.rel-list li:first-child { border-top: 0; }
.rel-list .th { width: 40px; height: 40px; }
.rel-list a b { display: block; } .rel-list a small { display: block; color: var(--muted); font-size: 13px; }
.kind.fam { color: var(--text); border-style: dashed; }

/* ---------- tablets (701-1180px): top tabs, two columns ---------- */
@media (min-width: 701px) and (max-width: 1180px) {
  .top { padding: 0 16px; gap: 10px; }
  .brand-name, .kbd { display: none; }
  .tabs > a, .more summary { padding: 8px 10px; }
  .search { min-width: 120px; }
  .pred-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard.hero { grid-column: 1 / -1; }
  .pcard .tk-act { flex-wrap: wrap; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 701px) and (max-width: 980px) {
  .side-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .picks-more .side-col .card + .card { margin-top: 0; }
  .prowhead, .prow { grid-template-columns: 40px minmax(0, 1fr) 84px 72px 96px; gap: 10px; }
  .prowhead span:nth-child(5), .prow .p-kind { display: none; }
  .prow .pscore { flex-direction: column; align-items: flex-end; gap: 2px; }
  .tabs > a, .more summary { padding: 8px 8px; font-size: 13px; }
}
@media (min-width: 701px) and (max-width: 1180px) and (pointer: coarse) {
  .tabs > a, .more summary { padding: 12px 8px; }
}
.board > .col { margin-top: 0; }  /* grid cells line up (no ".card + .card" gap) */
