:root {
  --ink: #16202A; --ink-2: #36414C; --muted: #4F5B67; --faint: #66717D;
  --bg: #F4F6F8; --card: #FFFFFF; --line: #E3E6EB; --line-2: #EEF0F3; --chip: #F1F3F6; --soft: #F7F8FA;
  --accent: #0B6E79; --accent-dark: #08525A; --accent-ink: #0B5F68; --accent-soft: #E3F2F3; --accent-tint: #EEF6F7;
  --pos: #1F5FA6; --neg: #D9782E; --neu: #C5CBD2; --neu-ring: #8C96A1;
  --pos-bg: #E6EEF8; --pos-ink: #1F4F8A; --neg-bg: #FBEBDD; --neg-ink: #9A4510; --neu-bg: #EEF0F3; --neu-ink: #4F5B67;
  --bar: #3E8E96; --danger: #A1312B; --danger-bg: #FBE9E7;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: 'Inter', system-ui, sans-serif; font-size: 15px; line-height: 1.5; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
button { font: inherit; }
.mono { font-family: var(--mono); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.top { background: var(--ink); color: #fff; }
.top-in { max-width: 1200px; margin: 0 auto; padding: 8px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; }
.brand:hover { color: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px; color: #C9D2DA; text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a[aria-current="page"] { background: #2A3846; color: #fff; font-weight: 600; }
.nav a:hover { color: #fff; }
.top-note { margin-left: auto; font-size: 12px; color: #C9D2DA; }
.job-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: #2A3846; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.job-pill:hover { background: #33465A; color: #fff; }
.job-pill svg { width: 14px; height: 14px; }
.mini-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #4D6275; border-top-color: #7FD0D8; animation: spin 1s linear infinite; }

/* layout */
main { max-width: 1200px; margin: 0 auto; padding: 32px 24px 64px; display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.grow { flex: 999 1 560px; min-width: 0; }
.side { flex: 1 1 360px; min-width: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0; font-size: 36px; line-height: 1.15; letter-spacing: -.01em; }
h2 { margin: 0; font-size: 18px; }
.lede { margin: 0; max-width: 700px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.sub { margin: 0; font-size: 13px; color: var(--faint); }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; }
.head > div:not(.legend):not(.filters) { display: flex; flex-direction: column; gap: 4px; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; white-space: nowrap; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--neu); }
.btn.ghost:hover { background: var(--soft); color: var(--ink); }
.btn.outline { background: #fff; color: var(--accent); border-color: var(--accent); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
input[type="url"], input[type="text"], select { height: 48px; padding: 0 14px; border: 1px solid var(--neu); border-radius: 10px; font: inherit; color: var(--ink); background: #fff; min-width: 0; }
input[type="url"] { font-family: var(--mono); font-size: 14px; }
.pill { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13px; cursor: pointer; }
.pill[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-ink); font-weight: 600; }
select.pill { height: 36px; padding: 0 10px; }

/* chips */
.chip { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.chip.Positive { background: var(--pos-bg); color: var(--pos-ink); }
.chip.Negative { background: var(--neg-bg); color: var(--neg-ink); }
.chip.Neutral { background: var(--neu-bg); color: var(--neu-ink); }
.chip.meta { background: var(--chip); color: var(--ink-2); font-weight: 400; font-size: 13px; padding: 4px 10px; }
.chip.ok { background: var(--accent-soft); color: var(--accent-ink); font-weight: 400; font-size: 13px; padding: 4px 10px; }
.chip.new { background: #D5ECEE; color: var(--accent-ink); font-size: 11px; padding: 1px 7px; font-weight: 700; }
.code { display: inline-block; width: 44px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--ink-2); background: var(--chip); border-radius: 6px; padding: 3px 0; }
.codes { display: flex; gap: 5px; flex: none; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.Positive { background: var(--pos); } .dot.Negative { background: var(--neg); } .dot.Neutral { background: var(--neu); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* tiles */
.tiles { display: flex; flex-wrap: wrap; gap: 12px; }
.tile { flex: 1 1 150px; background: var(--soft); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.tile b { font-size: 26px; line-height: 1.2; color: var(--ink); }
.tile span { font-size: 13px; color: var(--muted); }
.tile .delta { font-size: 13px; font-weight: 600; color: var(--accent-ink); margin-left: 6px; }
.card .tile { background: var(--soft); }
.tiles.cards .tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }

/* stance bar */
.stbar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; }
.stbar div { min-width: 0; }

/* stepper */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.steps .ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.steps .done .ic { background: var(--accent); }
.steps .running .ic { border: 3px solid #CFE6E8; border-top-color: var(--accent); animation: spin 1s linear infinite; }
.steps .waiting .ic { border: 2px solid var(--neu); }
.steps .failed .ic { background: var(--danger); }
.steps .txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.steps .name { font-size: 15px; font-weight: 600; }
.steps .waiting .name { color: var(--faint); }
.steps .detail { font-size: 13px; color: var(--faint); }
.steps .st { flex: none; font-size: 13px; font-weight: 600; color: var(--faint); }
.steps .done .st { color: var(--accent); } .steps .running .st { color: var(--ink); } .steps .failed .st { color: var(--danger); }
@keyframes spin { to { transform: rotate(360deg); } }
.status { display: flex; align-items: center; gap: 16px; padding: 18px 0 6px; }
.spinner { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #CFE6E8; border-top-color: var(--accent); animation: spin 1s linear infinite; }
.spinner.stopped { animation: none; border-color: var(--danger); }
.spinner.finished { animation: none; border-color: var(--accent); }
.status-text { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.progress { height: 6px; border-radius: 999px; background: #E8EBEF; overflow: hidden; }
.progress div { height: 100%; background: var(--accent); transition: width .4s; }
.stream { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 460px; overflow: auto; }
.stream li { display: flex; gap: 12px; align-items: baseline; padding: 8px 10px; border-radius: 8px; background: var(--soft); font-size: 14px; line-height: 1.45; }
.stream .t { flex: none; width: 40px; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.notice { padding: 14px 18px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.notice.bad { background: var(--danger-bg); color: #6E1F1A; border: 1px solid #F2C9C4; }
.notice.good { background: #E8F4F5; border: 1px solid #BFE0E3; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
textarea { padding: 12px 14px; border: 1px solid var(--neu); border-radius: 10px; font-family: var(--mono); font-size: 14px; line-height: 1.5; color: var(--ink); background: #fff; resize: vertical; min-height: 96px; }
.nav .count { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #3A4856; font-size: 12px; line-height: 20px; text-align: center; }
.vlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vitem { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.vic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.vic.done { background: var(--accent); }
.vic.bad { background: var(--danger); }
.vic.stopped { border: 2px solid var(--neu); }
.vic.stopped::after { content: ''; width: 10px; height: 10px; border-radius: 2px; background: var(--faint); }
.stopbtn { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #E8B4AE; background: #fff; color: var(--danger); font-size: 13px; font-weight: 600; cursor: pointer; }
.stopbtn:hover { background: var(--danger-bg); }
.stopbtn[disabled] { opacity: .6; cursor: default; }
.vic.run { border: 3px solid #CFE6E8; border-top-color: var(--accent); animation: spin 1s linear infinite; }
.vmain { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vtitle { font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.vtitle a { color: var(--ink); text-decoration: none; }
.vtitle a:hover { color: var(--accent); }
.vmeta { font-size: 13px; color: var(--faint); }
.vopen { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
.vremove { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--faint); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.vremove:hover { color: var(--ink); border-color: var(--neu); }
/* My set */
button.tab { font: inherit; cursor: pointer; text-align: left; }
.vchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.vchip { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid; border-radius: 10px; text-decoration: none; color: var(--ink); }
.vchip:hover { background: var(--soft); color: var(--ink); }
.vchip .vremove { margin: -4px -4px 0 0; }
.vchip-main a { color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.35; }
.vchip-main a:hover { color: var(--accent); }
.btn-pair { display: inline-flex; align-items: center; gap: 4px; }
.linkbtn { min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--accent); font-size: 14px; font-weight: 600; cursor: pointer; }
.linkbtn:hover { color: var(--danger); text-decoration: underline; }
.linkbtn[disabled] { opacity: .5; cursor: default; }
.vchip-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vchip-main b { font-size: 14px; line-height: 1.35; }
.vchip-main > span { font-size: 12px; color: var(--faint); }
.vchip .stbar { height: 6px; margin-top: 2px; }
.vnum { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; }
.vnum.small { width: 18px; height: 18px; font-size: 11px; margin-right: 6px; vertical-align: -4px; }
.matrix { display: flex; flex-direction: column; }
.mrow { display: grid; align-items: center; gap: 10px; padding: 7px 10px; border: 0; border-radius: 8px; background: none; text-align: left; color: var(--ink); font: inherit; font-size: 13px; width: 100%; }
button.mrow { cursor: pointer; }
button.mrow:hover { background: var(--soft); }
.mrow.on { background: var(--accent-tint); box-shadow: inset 0 0 0 1px #BFE0E3; }
.mhead { font-size: 12px; font-weight: 600; color: var(--muted); }
.mname { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; line-height: 1.3; color: var(--ink-2); }
.mrow.on .mname { font-weight: 700; color: var(--ink); }
.mcell { display: flex; justify-content: center; }
.mval { min-width: 34px; padding: 3px 6px; border-radius: 6px; text-align: center; font-weight: 600; color: var(--ink); }
.grow-row { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); }
.gbars { display: flex; flex-direction: column; gap: 3px; }
.gbar { display: grid; grid-template-columns: minmax(0, 1fr) 36px; align-items: center; gap: 6px; }
.gbar div { height: 6px; border-radius: 999px; min-width: 2px; }
.gbar span { font-size: 11px; color: var(--faint); text-align: right; }
.example-group { display: flex; flex-direction: column; gap: 10px; }
.example-group h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: baseline; gap: 8px; }
.example-group h3 span { font-size: 12px; font-weight: 500; color: var(--faint); }
.example { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink); min-height: 44px; }
.example:hover { border-color: var(--accent); color: var(--ink); }
.example b { font-size: 14px; line-height: 1.35; }
.example span { font-size: 12px; color: var(--faint); }

/* video page */
.player-slot { position: relative; aspect-ratio: 16 / 9; }
.player { position: absolute; inset: 0; border-radius: 10px; overflow: hidden; background: #1E2A36; }
.player iframe, .player > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* While the page is scrolled past the player, it keeps playing in the corner. */
.player.mini { position: fixed; inset: auto 20px 20px auto; width: min(400px, calc(100vw - 32px)); height: auto; aspect-ratio: 16 / 9; z-index: 50; box-shadow: 0 12px 32px rgba(22, 32, 42, .35); }
.mini-close { display: none; position: absolute; top: 6px; right: 6px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(22, 32, 42, .85); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.player.mini .mini-close { display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 640px) { .player.mini { inset: auto 16px 16px auto; } }
.marks { position: relative; height: 10px; border-radius: 999px; background: #E8EBEF; }
.marks span { position: absolute; top: -3px; width: 3px; height: 16px; border-radius: 2px; }
.lanes { display: flex; flex-direction: column; gap: 2px; }
.lane { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: center; gap: 12px; padding: 4px 8px; border-radius: 8px; }
.lane.on { background: var(--accent-tint); }
.lane .lbl { font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.track { position: relative; height: 28px; }
.track::before { content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--line); }
.track button { position: absolute; top: 6px; width: 16px; height: 16px; margin-left: -8px; padding: 0; border-radius: 50%; cursor: pointer; border: 2px solid; }
.track button.Positive { background: var(--pos); border-color: var(--pos); }
.track button.Negative { background: var(--neg); border-color: var(--neg); }
.track button.Neutral { background: #fff; border-color: var(--neu-ring); }
.track button.none { background: #fff; border-color: var(--line); }
.track button.sel { box-shadow: 0 0 0 4px rgba(22, 32, 42, .22); transform: scale(1.3); z-index: 2; }
.axis-ticks { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 12px; padding: 0 8px; }
.axis-ticks .tk { position: relative; height: 22px; border-top: 1px solid var(--neu); }
.axis-ticks .tk span { position: absolute; top: 5px; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; color: var(--faint); }
.axis-ticks .tk span:first-child { transform: none; }
.source { background: var(--soft); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.source small { font-size: 12px; font-weight: 600; color: var(--faint); }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px 12px; font-size: 13px; }
.kv dt { color: var(--faint); } .kv dd { margin: 0; font-weight: 600; }
.tablebox { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 10px; }
.table { min-width: 1060px; }
.tr { display: grid; grid-template-columns: 30px 52px minmax(240px, 1fr) 200px 84px 300px; gap: 10px; align-items: center; padding: 11px 14px; }
.th { background: var(--soft); font-size: 12px; font-weight: 600; color: var(--muted); }
button.tr { width: 100%; border: 0; border-top: 1px solid var(--line-2); background: #fff; text-align: left; cursor: pointer; color: var(--ink); }
button.tr:hover { background: var(--soft); }
button.tr.sel { background: var(--accent-tint); }
.tr .n { font-size: 13px; color: var(--faint); }
.tr .tm { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.tr .cl { font-size: 14px; line-height: 1.4; }
.tr .as { font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.th .codes span { display: inline-block; width: 44px; text-align: center; }
.codes-legend { margin: 0; font-size: 12px; line-height: 1.7; color: var(--muted); }

/* collection */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
.tab b { font-size: 14px; } .tab span { font-size: 12px; color: var(--faint); }
.tab[aria-current="page"] { border: 2px solid var(--accent); background: var(--accent-tint); }
.tab[aria-current="page"] span { color: var(--accent-ink); }
.aspects { display: flex; flex-direction: column; gap: 2px; }
.arow { display: grid; grid-template-columns: minmax(150px, 270px) minmax(0, 1fr) 48px; align-items: center; gap: 12px; padding: 6px 10px; border-radius: 8px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); width: 100%; }
.arow:hover { background: var(--soft); }
.arow.on { background: var(--accent-tint); box-shadow: inset 0 0 0 1px #BFE0E3; }
.arow .nm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.arow.on .nm { font-weight: 700; color: var(--ink); }
.arow .bar { height: 14px; display: flex; gap: 2px; border-radius: 4px; overflow: hidden; }
.arow .tot { text-align: right; font-size: 13px; font-weight: 600; }
.prof { display: flex; flex-direction: column; gap: 6px; }
.prof .ax { font-size: 13px; font-weight: 600; }
.prow { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr) 52px; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.prow .pb { height: 10px; border-radius: 999px; background: var(--line-2); }
.prow .pb div { height: 100%; border-radius: 999px; background: var(--bar); }
.prow .pc { text-align: right; font-weight: 600; color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.clist { display: flex; flex-direction: column; }
.citem { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 4px; border-top: 1px solid var(--line-2); }
.citem .main { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.citem .txt { font-size: 15px; line-height: 1.4; }
.citem .from { display: block; font-size: 12px; line-height: 1.6; color: var(--faint); }
.citem .from .chip { margin-right: 6px; }
.citem a.open { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: 13px; font-weight: 600; text-decoration: none; }
/* a claim's video, played in place */
.clip { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 20px; border: 0; border-radius: 14px; box-shadow: 0 20px 50px rgba(22, 32, 42, .35); background: var(--card); color: var(--ink); }
.clip::backdrop { background: rgba(22, 32, 42, .55); }
.clip-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.clip-claim { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.clip-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; }
.claimbtn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; font: inherit; font-size: 15px; line-height: 1.4; color: var(--ink); cursor: pointer; }
.claimbtn:hover { color: var(--accent); }
.claimbtn .play-hint { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.claimbtn .play-hint svg { width: 12px; height: 12px; }
.empty { padding: 24px; text-align: center; color: var(--faint); font-size: 14px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--faint); }

@media (max-width: 640px) {
  main { padding: 20px 16px 48px; }
  h1 { font-size: 28px; }
  .lane, .axis-ticks { grid-template-columns: 120px minmax(0, 1fr); }
  .card { padding: 18px 16px; }
}

/* My set: view switch and comparison tables (2026-11-28) */
.viewbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.segmented { display: inline-flex; gap: 3px; padding: 3px; border-radius: 10px; background: #E8EBEF; }
.segmented button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(22, 32, 42, .15); }
.vnum { background: var(--accent); }
.vchip { border-left: 1px solid var(--line); }
.aval { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.aval b { font-size: 14px; }
.aval small { font-size: 11px; color: var(--faint); }
.hm-axis { padding: 12px 10px 4px; font-size: 13px; font-weight: 700; color: var(--ink); }
.mcell b { font-size: 12px; }
/* compact video cards, so 20 videos per topic stay manageable */
.vchips { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.vchip { padding: 10px 12px; gap: 10px; }
.vchip-main a b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
.vchip .vremove { width: 30px; height: 30px; }
/* claim filters, shared by the collection and My set (2026-11-28) */
.fbar { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 10px 12px; align-items: end; padding: 14px; border-radius: 12px; background: var(--soft); }
.fsel { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fsel > span { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.fsel select, .fsel input { width: 100%; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; }
.fsel.on select, .fsel.on input { border: 2px solid var(--accent); background: var(--accent-tint); font-weight: 600; }
.fsel.on > span { color: var(--accent-ink); }
.fsearch { grid-column: span 2; }
.fclear { display: flex; align-items: flex-end; }
.fclear .linkbtn { min-height: 38px; padding: 0; }
@media (max-width: 640px) { .fsearch { grid-column: 1 / -1; } .fbar { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }
/* collection: all videos of a topic */
.vlist { display: flex; flex-direction: column; }
.vrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 14px 4px; border-top: 1px solid var(--line-2); }
.vrow .vmain { flex: 999 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vrow .vmain a { color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.35; }
.vrow .vmain a:hover { color: var(--accent); text-decoration: underline; }
.vmeta { font-size: 12px; line-height: 1.5; color: var(--faint); }
.vstance { flex: 0 1 200px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-2); }
.vstance .stbar { height: 8px; }
.vstance .dot { width: 8px; height: 8px; margin: 0 3px 0 6px; }
.vstance .dot:first-child { margin-left: 0; }
.vact { flex: none; display: flex; align-items: center; gap: 4px; min-width: 150px; justify-content: flex-end; }
.vact .addset { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-ink); border-color: var(--accent); }
.vact .addset svg { width: 16px; height: 16px; }
.vact .inset { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.vact .linkbtn { min-height: 36px; font-size: 13px; }
.vact .pill[disabled] { opacity: .6; cursor: default; }
.vact .inset svg { stroke: currentColor; }
