/* Goobervisor v4 — one stylesheet. Light = "Studio" (warm off-white, burnt orange). Dark = #171717 with teal. */
:root {
  --bg: #FAF8F5; --panel: #FFFFFF; --soft: #F5F1EB; --line: #ECE6DD; --btn-line: #E2DCD3;
  --text: #1C1A17; --muted: #6B645B; --nav-on: #EFEAE3;
  --accent: #C2410C; --accent-text: #C2410C; --accent-soft: #FFEDE3;
  --ok: #1F7A3D; --ok-soft: #E3F1E6; --ok-btn: #1F7A3D; --ok-btn-text: #FFFFFF;
  --warn: #B42318; --warn-soft: #FDE8E6; --warn-btn: #B42318;
  --amber: #B45309; --amber-soft: #FDF0DC; --work: #2557C7; --work-soft: #E3ECFB;
  --radius: 12px; --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; --display: "Space Grotesk", var(--font);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #171717; --panel: #1F1F1F; --soft: #262626; --line: #2C2C2C; --btn-line: #383838; --text: #EDEDED; --muted: #A3A3A3; --nav-on: #242424; --accent: #2DD4BF; --accent-text: #5EEAD4; --accent-soft: #12302C; --ok: #4ADE80; --ok-soft: #14301D; --ok-btn: #22C55E; --ok-btn-text: #0B1A10; --warn: #F87171; --warn-soft: #3A1A1A; --warn-btn: #DC2626; --amber: #FBBF24; --amber-soft: #3A2E12; --work: #7CA7FF; --work-soft: #1A2540; } }
:root[data-theme="dark"] { --bg: #171717; --panel: #1F1F1F; --soft: #262626; --line: #2C2C2C; --btn-line: #383838; --text: #EDEDED; --muted: #A3A3A3; --nav-on: #242424; --accent: #2DD4BF; --accent-text: #5EEAD4; --accent-soft: #12302C; --ok: #4ADE80; --ok-soft: #14301D; --ok-btn: #22C55E; --ok-btn-text: #0B1A10; --warn: #F87171; --warn-soft: #3A1A1A; --warn-btn: #DC2626; --amber: #FBBF24; --amber-soft: #3A2E12; --work: #7CA7FF; --work-soft: #1A2540; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.45; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; }
h1 { font-size: 26px; } h2 { font-size: 16px; } h3 { font-size: 14px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .tiny { font-size: 11px; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .amber { color: var(--amber); } .accent { color: var(--accent-text); }
.row { display: flex; align-items: center; gap: 8px; } .wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .col { display: flex; flex-direction: column; gap: 4px; }
.between { justify-content: space-between; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* layout */
.app { min-height: 100vh; display: flex; }
.side { width: 220px; flex: none; padding: 24px 12px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; font-family: var(--display); font-weight: 700; font-size: 17px; text-decoration: none; }
.brand i { width: 24px; height: 24px; border-radius: 7px; background: var(--accent); display: inline-block; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { min-height: 36px; padding: 0 10px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a.on { background: var(--nav-on); color: var(--text); font-weight: 600; }
.nav a:hover { color: var(--text); }
.side .me { margin-top: auto; padding: 0 10px; display: flex; flex-direction: column; gap: 8px; }
.main { flex: 1; min-width: 0; padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 16px; }
.tabs-bottom { display: none; }
@media (max-width: 760px) {
  .vhead > .thumb { width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; max-width: 360px; }
  .vhead .game-input { width: 100% !important; }
  .side { display: none; }
  .main { padding: 12px 16px 80px; }
  .tabs-bottom { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--panel); border-top: 1px solid var(--line); padding: 4px 4px 12px; z-index: 5; }
  .tabs-bottom a { flex: 1; min-height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; font-size: 11px; color: var(--muted); font-weight: 500; }
  .tabs-bottom a i { width: 18px; height: 3px; border-radius: 2px; background: transparent; }
  .tabs-bottom a.on { color: var(--text); font-weight: 700; } .tabs-bottom a.on i { background: var(--accent); }
  h1 { font-size: 22px; }
}

/* bits */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: 14px 16px; }
.btn { min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--btn-line); background: transparent; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--nav-on); }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); } .btn.primary:hover { opacity: .9; }
.btn.ok { background: var(--ok-btn); color: var(--ok-btn-text); border-color: var(--ok-btn); } .btn.ok:hover { opacity: .9; }
.btn.danger { background: var(--warn-btn); color: #fff; border-color: var(--warn-btn); } .btn.danger:hover { opacity: .9; }
.btn.quiet { border-color: transparent; color: var(--muted); } .btn.small { min-height: 28px; padding: 0 10px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: default; }
.chip { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--nav-on); color: var(--text); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); } .chip.warn { background: var(--warn-soft); color: var(--warn); } .chip.amber { background: var(--amber-soft); color: var(--amber); } .chip.accent { background: var(--accent-soft); color: var(--accent-text); } .chip.work { background: var(--work-soft); color: var(--work); }
.avatar { width: 28px; height: 28px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
input[type=text], input[type=url], input[type=search], input[type=number], input[type=datetime-local], input[type=date], select, textarea { min-height: 32px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--btn-line); background: var(--bg); color: var(--text); font-size: 13px; width: 100%; }
textarea { min-height: 80px; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
label.f > span { font-weight: 600; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--nav-on); }
.seg a, .seg button { min-height: 28px; padding: 0 12px; border-radius: 7px; border: 0; background: transparent; color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.seg .on { background: var(--panel); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 10px 12px; }
.table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr.link:hover td { background: var(--soft); }
.thumb { position: relative; display: inline-block; flex: none; border-radius: 6px; overflow: hidden; background: var(--soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .tag { position: absolute; left: 4px; bottom: 4px; padding: 1px 5px; border-radius: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.thumb .none { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); text-align: center; padding: 2px; }
.thumb.tiny .none { font-size: 0; }
.notice { padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.notice.warn { background: var(--warn-soft); color: var(--warn); } .notice.ok { background: var(--ok-soft); color: var(--ok); } .notice.amber { background: var(--amber-soft); color: var(--amber); } .notice.info { background: var(--soft); color: var(--text); }
.inbox-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.inbox-item > .grow { flex: 1 1 220px; }
.inbox-item form.row { flex-wrap: wrap; }
@media (max-width: 760px) { .inbox-item form.row { flex: 1 1 100%; } }
.inbox-item:first-child { border-top: 0; }
.cards { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.column { width: 260px; flex: none; background: var(--soft); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.column.today { background: var(--accent-soft); } .column.late { background: var(--warn-soft); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; }
.card .bar { height: 5px; } .card .body { padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.card .thumb { width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; }
.person { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-height: 120px; display: flex; flex-direction: column; gap: 6px; }
.day.today { border-color: var(--accent); }
.day .num { font-family: var(--display); font-size: 18px; font-weight: 700; }
.vid { display: flex; flex-direction: column; gap: 4px; text-decoration: none; font-size: 12px; }
.vid .thumb { width: 100%; aspect-ratio: 16 / 9; }
@media (max-width: 760px) { .week { display: flex; overflow-x: auto; } .day { min-width: 120px; } }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.steps li { padding: 4px 10px; border-radius: 999px; background: var(--nav-on); color: var(--muted); font-size: 12px; font-weight: 600; }
.steps li.done { background: var(--ok-soft); color: var(--ok); } .steps li.now { background: var(--text); color: var(--bg); }
.banner { background: var(--amber-soft); color: var(--amber); padding: 6px 12px; font-size: 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grid2 { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; align-items: start; }
.grid2 > *, .thumbs-body > *, .trends-body > *, .review-body > *, .trend-cols > * { min-width: 0; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }
.main img, .main svg, .main iframe { max-width: 100%; }
.main input, .main select, .main textarea { max-width: 100%; }
.trend-row { min-width: 0; }
.list { display: flex; flex-direction: column; }
.list > * { padding: 10px 0; border-top: 1px solid var(--line); }
.list > :first-child { border-top: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
code { font-size: 12px; background: var(--soft); padding: 1px 5px; border-radius: 4px; }
.center { max-width: 420px; margin: 10vh auto; display: flex; flex-direction: column; gap: 16px; padding: 0 16px; }

/* review tool */
.review { display: flex; flex-direction: column; gap: 12px; }
.review-head h1 { font-size: 18px; }
.review-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .review-body { grid-template-columns: 1fr; } }
.review-player { display: flex; flex-direction: column; gap: 8px; }
.player-wrap { position: relative; background: #0E0E0E; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.player-wrap video { width: 100%; height: 100%; display: block; background: #000; }
.player-hint { position: absolute; left: 10px; bottom: 8px; color: rgba(255,255,255,.65); pointer-events: none; }
.player-wrap .speed-tag { position: absolute; right: 10px; top: 8px; color: #fff; background: rgba(0,0,0,.55); padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.timeline { position: relative; height: 28px; cursor: pointer; user-select: none; touch-action: none; }
.tl-track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: var(--line); }
.tl-played { position: absolute; left: 0; top: 12px; height: 4px; border-radius: 2px; background: var(--text); width: 0; pointer-events: none; }
.tl-loop { position: absolute; top: 8px; height: 12px; border-radius: 3px; background: var(--accent); opacity: .25; display: none; pointer-events: none; }
.tl-head { position: absolute; top: 5px; width: 6px; height: 18px; margin-left: -3px; border-radius: 3px; background: var(--text); pointer-events: none; }
.tl-marks { position: absolute; inset: 0; pointer-events: none; }
.tl-mark { position: absolute; top: 8px; width: 12px; height: 12px; margin-left: -6px; border-radius: 999px; background: var(--warn); border: 2px solid var(--panel); pointer-events: auto; cursor: pointer; }
.tl-mark.done, .tl-mark.resolved { background: var(--ok); } .tl-mark.draft { background: var(--amber); } .tl-mark.sfx { background: var(--accent); }
.tl-bar { position: absolute; top: 10px; height: 8px; border-radius: 4px; background: var(--warn); opacity: .45; pointer-events: auto; cursor: pointer; }
.tl-bar.done, .tl-bar.resolved { background: var(--ok); }
.controls { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.controls button { width: 36px; height: 36px; border-radius: 999px; border: 0; background: transparent; color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.controls button:hover { background: var(--nav-on); }
.controls button.big { width: 48px; height: 48px; background: var(--text); color: var(--bg); font-size: 18px; }
.decide { gap: 8px; padding-top: 4px; }
.review-notes { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 12px; max-height: calc(100vh - 24px); }
.notes-list { display: flex; flex-direction: column; overflow-y: auto; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 2px; border-top: 1px solid var(--line); }
.note:first-child { border-top: 0; }
.note.done .note-text { text-decoration: line-through; opacity: .6; }
.note.resolved { opacity: .55; }
.note-time { flex: none; min-width: 64px; height: 32px; padding: 0 8px; border-radius: 8px; border: 0; background: var(--nav-on); color: var(--text); font-family: var(--display); font-size: 16px; font-weight: 700; cursor: pointer; }
.note-time.general { font-family: var(--font); font-size: 12px; font-weight: 600; }
.note-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.note-text { font-size: 13px; line-height: 1.45; white-space: pre-wrap; }
.note-meta { font-size: 11px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.note-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.note-sfx { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 8px; background: var(--soft); font-size: 12px; align-self: flex-start; }
.note-sfx button { border: 0; background: transparent; cursor: pointer; font-size: 12px; color: var(--text); padding: 0; }
.reply { font-size: 12px; padding: 4px 8px; border-left: 2px solid var(--line); }
.note-done { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--btn-line); background: transparent; color: var(--muted); font-size: 15px; font-weight: 700; cursor: pointer; }
.note-done.on { background: var(--ok-btn); color: var(--ok-btn-text); border-color: var(--ok-btn); }
.sheet { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.sheet[hidden] { display: none; }
@media (max-width: 760px) { .player-hint { display: none; } }
@media (max-width: 900px) { .sheet { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 20; box-shadow: 0 8px 30px rgba(0,0,0,.25); max-height: 70vh; overflow-y: auto; } .review-notes { position: static; max-height: none; } }
.sfx-results { display: flex; flex-direction: column; max-height: 200px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.sfx-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-top: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.sfx-item:first-child { border-top: 0; } .sfx-item:hover { background: var(--soft); }
.sfx-item button { border: 0; background: var(--nav-on); border-radius: 6px; width: 26px; height: 26px; cursor: pointer; color: var(--text); }
.dropzone { border: 2px dashed var(--btn-line); border-radius: 12px; padding: 20px 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; cursor: pointer; }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.progress { display: flex; flex-direction: column; gap: 4px; }
.progress .bar { height: 8px; border-radius: 999px; background: var(--nav-on); overflow: hidden; position: relative; }
.progress .bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--pct, 0%); background: var(--accent); transition: width .2s; }
.range { width: 100%; }

/* thumbnails */
.thumbs-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .thumbs-body { grid-template-columns: 1fr; } }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; align-items: start; }
.thumb-grid.tight { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.tcard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tcard.sel { border: 2px solid var(--accent); padding: 9px; }
.tcard.dim { opacity: .6; }
.tcard.brief { border-style: dashed; }
.tpic-wrap { position: relative; display: block; border-radius: 8px; overflow: hidden; background: var(--soft); aspect-ratio: 16 / 9; }
.tpic { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpic.none { display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); text-align: center; padding: 8px; }
.badge { position: absolute; left: 6px; top: 6px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.7); color: #fff; letter-spacing: .02em; }
.badge.ok { background: var(--ok-btn); color: var(--ok-btn-text); }
.thumb-detail { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 12px; min-width: 0; }
@media (max-width: 900px) { .thumb-detail { position: static; order: -1; } .first-on-phone { order: -1; } }
.pinwrap { position: relative; border-radius: 8px; overflow: hidden; background: #111; aspect-ratio: 16 / 9; }
.pinwrap[data-pinnable] { cursor: crosshair; }
.pinwrap .tpic.big { width: 100%; height: 100%; object-fit: contain; }
.pin { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 999px; background: var(--warn-btn); color: #fff; border: 2px solid #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; pointer-events: none; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.pin.done, .pin.resolved { background: var(--ok-btn); }
.pin.ghost { background: var(--accent); }
.pin-k { flex: none; width: 22px; height: 22px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; background: var(--muted); }
.pin-k.warn { background: var(--warn-btn); } .pin-k.ok { background: var(--ok-btn); color: var(--ok-btn-text); }
.tnote { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.tnote.done .note-text { text-decoration: line-through; opacity: .6; }
.tnote.resolved { opacity: .55; }
.scan-row { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); cursor: pointer; }
.scan-row:first-child { border-top: 0; }
.yt-grid { background: #0F0F0F; border-radius: 14px; padding: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
@media (max-width: 760px) { .yt-grid { grid-template-columns: 1fr; padding: 12px; } }
.yt-tile { display: flex; flex-direction: column; gap: 10px; border-radius: 10px; min-width: 0; }
.yt-tile.mine { outline: 2px solid var(--accent); outline-offset: 6px; }
.yt-pic { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #272727; }
.yt-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-ph { position: absolute; inset: 0; background: linear-gradient(135deg, #3A3A3A, #1C1C1C); }
.yt-len { position: absolute; right: 6px; bottom: 6px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0,0,0,.8); padding: 1px 4px; border-radius: 4px; }
.yt-meta { display: flex; gap: 10px; }
.yt-av { width: 34px; height: 34px; border-radius: 999px; flex: none; }
.yt-title { font-family: Roboto, Arial, sans-serif; font-size: 15px; font-weight: 600; color: #F1F1F1; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-ch { font-family: Roboto, Arial, sans-serif; font-size: 13px; color: #AAAAAA; }

/* results */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; } .tile { padding: 8px 10px; } .tile-v { font-size: 20px; } .tile .tiny { font-size: 10px; line-height: 1.2; } .table.results .hide-sm { display: none; } .table.results td, .table.results th { padding: 8px 6px; } .table.results .thumb { display: none; } }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.tile-v { font-family: var(--display); font-size: 26px; font-weight: 700; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .faint { fill: none; stroke: var(--btn-line); stroke-width: 1.5; }
.chart .avg { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 4; }
.chart .main { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.chart .dot { fill: var(--accent); }
.table tr.sel td { background: var(--accent-soft); }
.yt-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* trends */
.trends-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .trends-body { grid-template-columns: 1fr; } .trend-detail { order: -1; } }
.table.trends { font-size: 12.5px; table-layout: fixed; }
.table.trends .gicon { flex: none; }
.table.trends td, .table.trends th { padding: 7px 8px; }
.table.trends td:first-child { max-width: 300px; }
.table.trends .gicon { width: 34px; height: 34px; } .table.trends .gicon.steam { width: 74px; height: 34px; }
@media (max-width: 1400px) { .table.trends .hide-md { display: none; } }
@media (max-width: 760px) { .table.trends .hide-sm { display: none; } }
.gicon { width: 40px; height: 40px; border-radius: 8px; background: var(--soft); overflow: hidden; flex: none; display: inline-block; }
.gicon.steam { width: 86px; height: 40px; }
.gicon.big { width: 72px; height: 72px; } .gicon.big.steam { width: 154px; height: 72px; }
.gicon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.star { border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; padding: 2px 6px; line-height: 1; }
.star.on { color: var(--amber); }
.spark { width: 100%; height: auto; display: block; }
.spark .area { fill: var(--accent); opacity: .12; }
.spark .line { stroke: var(--accent); stroke-width: 2; }
.spark .pt { fill: var(--panel); stroke: var(--accent); stroke-width: 2; }
.pt-label { fill: var(--text); font-size: 9px; font-family: var(--font); font-weight: 600; paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; }
.chart .pt-label { font-size: 10px; }
.trend-detail { position: sticky; top: 12px; }
.trend-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .trend-cols { grid-template-columns: 1fr; } }
.trend-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 13px; }
.trend-row:first-child { border-top: 0; }

/* prose pages (privacy) */
.prose h1 { font-size: 24px; } .prose h2 { font-size: 15px; margin-top: 6px; }
.prose p, .prose li { font-size: 14px; line-height: 1.55; margin: 0; }
.prose ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }

/* Phones: thumbs, not mouse pointers. Last in the file so it wins over the desktop sizes above. */
@media (max-width: 760px) {
  /* Thumbs, not mouse pointers: every button, link-button and field is at least 44px tall. */
  .btn, .btn.small { min-height: 44px; padding: 0 16px; font-size: 15px; }
  .btn.small { font-size: 14px; }
  .nav a { min-height: 44px; font-size: 16px; }
  input[type="text"], input[type="email"], input[type="number"], input[type="url"], select, textarea { min-height: 44px; font-size: 16px; }
  .row.wrap .btn, .inbox-item .btn { flex: 1 1 auto; }
}
