/* ==========================================================================
   Pregame — design system
   Brand: Teamworks black + electric blue, uppercase tracked labels, square-ish buttons.
   To re-skin with official Teamworks values, edit the tokens in this block.
   ========================================================================== */
:root {
  /* brand */
  --navy-900: #000000;         /* brand black */
  --navy-800: #07081a;
  --navy-700: #1b1a5c;         /* indigo (hero aurora) */
  --brand: #1565ff;            /* electric blue, matches the CTA on teamworks.com (estimated) */
  --brand-glow: #6aa2ff;
  --btn-radius: 6px;

  /* surfaces (light) */
  --bg: #f3f5fa;
  --surface: #ffffff;
  --text: #0b1220;
  --text-2: #3b4559;
  --muted: #667086;
  --line: #e3e8f2;
  --accent: #1260f0;           /* link/interactive blue on light surfaces (WCAG AA on --bg) */
  --accent-strong: #0f48c4;
  --why-bg: #eaf0ff;
  --why-text: #17368f;

  /* status */
  --act: #d6453d;  --act-bg: #fde9e7;  --act-ink: #8a231d;
  --watch: #d99100; --watch-bg: #fff2d1; --watch-ink: #7a5200;

  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .05), 0 6px 18px rgba(11, 18, 32, .05);
  --shadow-lg: 0 10px 40px rgba(11, 18, 32, .18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #05060a; --surface: #0e1118; --text: #f2f5fb; --text-2: #c4cad8; --muted: #8e97a9; --line: #1f2531;
    --accent: #4d8dff; --accent-strong: #8db6ff; --why-bg: #0f1d3d; --why-text: #c3d6ff;
    --act-bg: #3a1c1a; --act-ink: #ffb4ab; --watch-bg: #382d10; --watch-ink: #ffd98a;
    --shadow: none; --shadow-lg: 0 10px 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #05060a; --surface: #0e1118; --text: #f2f5fb; --text-2: #c4cad8; --muted: #8e97a9; --line: #1f2531;
  --accent: #4d8dff; --accent-strong: #8db6ff; --why-bg: #0f1d3d; --why-text: #c3d6ff;
  --act-bg: #3a1c1a; --act-ink: #ffb4ab; --watch-bg: #382d10; --watch-ink: #ffd98a;
  --shadow: none; --shadow-lg: 0 10px 40px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---- base ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
button { font-family: inherit; }
a { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---- hero ---- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: #000;
  padding-top: env(safe-area-inset-top);
  background:
    radial-gradient(700px 320px at 12% 118%, rgba(91, 61, 245, .55), transparent 70%),
    radial-gradient(760px 300px at 52% 125%, rgba(21, 101, 255, .6), transparent 70%),
    radial-gradient(520px 240px at 96% 122%, rgba(70, 150, 90, .28), transparent 70%),
    radial-gradient(420px 200px at 82% 130%, rgba(190, 140, 30, .22), transparent 70%),
    linear-gradient(180deg, #000 0%, #000 38%, #070626 80%, #0d0b3a 100%);
}
.hero::after { /* faint field-line texture */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .0;
}
.hero-inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 18px 16px 0; }
.brandbar { display: flex; align-items: center; gap: 32px; margin-bottom: 56px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 17px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.brand img { border-radius: 8px; display: block; }
.brand-links a { color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 6px 2px; }
.brand-links a:hover { color: #fff; }
.top-actions { margin-left: auto; display: flex; gap: 8px; }
.icon-btn {
  min-width: 38px; min-height: 36px; padding: 0 14px; border-radius: var(--btn-radius); cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: background .15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .18); }
.kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-glow); }
h1 { margin: 0; font-size: clamp(36px, 6vw, 64px); line-height: 1.02; letter-spacing: -.03em; font-weight: 560; text-wrap: balance; }
.topline { margin: 0; max-width: 60ch; font-size: clamp(16px, 1.9vw, 19px); line-height: 1.5; font-weight: 400; color: rgba(255, 255, 255, .9); }
.hero-title { padding-bottom: 4px; }
.hero-copy { padding-bottom: 8px; }
.hero-body { display: grid; gap: 22px; padding-bottom: 36px; }
@media (min-width: 900px) { .hero-body { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: end; padding-bottom: 56px; } }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill {
  padding: 5px 12px; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .92);
}
.pill.p-act { background: rgba(255, 99, 88, .2); border-color: rgba(255, 130, 120, .45); color: #ffd2cd; }
.pill.p-watch { background: rgba(255, 190, 40, .18); border-color: rgba(255, 200, 80, .4); color: #ffe5a8; }
.status { margin: 14px 0 0; font-size: 13px; color: rgba(255, 255, 255, .78); }
.hero-slim .brandbar { margin-bottom: 36px; }
.hero-slim h1 { font-size: clamp(32px, 5vw, 48px); }
.hero-slim .hero-body { padding-bottom: 40px; }

/* ---- shell: side rail on desktop, sticky chip bar on mobile ---- */
.shell { max-width: 1080px; margin: 0 auto; }
.col { min-width: 0; padding: 0 16px 24px; }

.jump {
  position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); scrollbar-width: none;
}
.jump::-webkit-scrollbar { display: none; }
.jump a {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  font-size: 14px; font-weight: 550; color: var(--text); text-decoration: none;
  border: 1px solid var(--line); background: var(--surface); transition: background .15s, border-color .15s, color .15s;
}
.jump a .n { font-size: 12px; color: var(--muted); font-weight: 600; }
.jump a:hover { border-color: var(--accent); }
.jump a[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.jump a[aria-current="true"] .n { color: rgba(255, 255, 255, .8); }

@media (min-width: 980px) {
  .shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px; padding: 0 16px; }
  .col { padding: 0; }
  .jump {
    top: 24px; align-self: start; flex-direction: column; gap: 2px; overflow: visible; margin-top: 32px; padding: 0;
    background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0;
  }
  .jump::before {
    content: "In this brief"; margin: 0 0 8px 14px; font-size: 11px; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--muted);
  }
  .jump a { justify-content: space-between; border: 0; background: none; border-radius: 10px; padding: 9px 14px; color: var(--text-2); }
  .jump a:hover { background: var(--surface); }
  .jump a[aria-current="true"] { background: var(--why-bg); color: var(--accent-strong); }
  .jump a[aria-current="true"] .n { color: var(--accent-strong); }
}

/* ---- toolbar ---- */
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 20px; }
.tb-row { display: flex; gap: 8px; align-items: center; }
.tb-scroll { overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tb-scroll::-webkit-scrollbar { display: none; }
.tb-scroll > * { flex: none; }
#search {
  flex: 1; min-width: 0; padding: 10px 14px; font-size: 16px; border-radius: var(--btn-radius);
  border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
#search::placeholder { color: var(--muted); }
.tb-btn {
  padding: 9px 13px; border-radius: var(--btn-radius); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.tb-btn:hover:not(:disabled) { border-color: var(--accent); }
.tb-btn:disabled { opacity: .45; cursor: default; }
.tb-btn[aria-pressed="true"] { background: var(--why-bg); border-color: var(--accent); color: var(--why-text); }
.count:not(:empty) {
  display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px; border-radius: 9px;
  background: var(--brand); color: #fff; font-size: 12px; text-align: center;
}
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--btn-radius); overflow: hidden; background: var(--surface); }
.seg button { padding: 9px 14px; border: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.chip {
  padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--line); color: var(--muted); background: var(--bg);
}
.chip-btn { background: var(--surface); cursor: pointer; padding: 6px 12px; font-size: 13px; white-space: nowrap; color: var(--text-2); }
.chip-btn:hover { border-color: var(--accent); }
.chip-btn[aria-pressed="true"] { background: var(--why-bg); border-color: var(--accent); color: var(--why-text); font-weight: 650; }
.tb-status { margin: 0; font-size: 13px; color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }

/* ---- sections ---- */
section { margin: 36px 0; scroll-margin-top: 72px; }
section > h2 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.015em; font-weight: 650; }
.sec-toggle {
  display: flex; align-items: center; gap: 10px; padding: 2px 0; border: 0; background: none; cursor: pointer;
  font: inherit; letter-spacing: inherit; color: inherit; text-align: left;
}
.sec-toggle .chev {
  width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s;
}
section.collapsed .sec-toggle .chev { transform: rotate(-45deg); }
section.collapsed > :not(h2) { display: none; }
.sub { margin: 4px 0 16px; font-size: 14px; color: var(--muted); }

/* ---- cards ---- */
.cards, .radar { display: grid; gap: 14px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
@media (hover: hover) { .card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); } }
.card.p-act { box-shadow: inset 3px 0 0 var(--act), var(--shadow); }
.card.p-watch { box-shadow: inset 3px 0 0 var(--watch), var(--shadow); }
.card h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.32; letter-spacing: -.012em; font-weight: 680; text-wrap: balance; }
.card p { margin: 0; }
.summary { color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.card.is-read { opacity: .72; }
.card.is-read h3 { color: var(--muted); }

.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; align-items: center; }
.badge { padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.badge.act { background: var(--act-bg); color: var(--act-ink); }
.badge.watch { background: var(--watch-bg); color: var(--watch-ink); }
.badge.fyi { background: var(--line); color: var(--text-2); }
.thread { font-size: 12px; font-weight: 600; color: var(--accent); }

.why {
  margin-top: 14px !important; padding: 2px 0 2px 14px; border-left: 3px solid var(--accent);
  color: var(--text-2); font-size: 15px; line-height: 1.5;
}
.why b, .talk b {
  display: block; margin-bottom: 1px; font-size: 11px; font-weight: 750; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent-strong);
}
.talk {
  margin-top: 12px !important; padding: 10px 14px; border-radius: 12px; background: var(--bg);
  font-size: 14.5px; line-height: 1.5; color: var(--text-2);
}
.src { margin-top: 12px !important; font-size: 13px; color: var(--muted); }
.src a { color: var(--accent); text-decoration: none; font-weight: 550; }
.src a::after { content: " ↗"; }
.src a:hover { text-decoration: underline; }

.actions { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); align-items: center; }
.actions .src { margin: 0 auto 0 0 !important; padding-right: 8px; }
.act-btn {
  min-height: 32px; padding: 4px 11px; border-radius: 8px; font-size: 13px; font-weight: 550; cursor: pointer;
  border: 1px solid transparent; background: none; color: var(--muted);
}
.act-btn:hover { background: var(--bg); color: var(--text); }
.act-btn[aria-pressed="true"] { color: var(--why-text); background: var(--why-bg); }
.fb { display: flex; gap: 4px; margin-left: 4px; }
.fb button { min-height: 32px; min-width: 40px; background: none; border: 1px solid transparent; border-radius: 8px; font-size: 14px; cursor: pointer; opacity: .55; color: inherit; }
.fb button:hover { opacity: .95; background: var(--bg); }
.fb button[aria-pressed="true"] { opacity: 1; border-color: var(--accent); background: var(--why-bg); }

/* top three: the hero block of the feed */
.top3 {
  margin-top: 24px;
  padding: 22px 16px 18px; border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--why-bg) 85%, transparent), transparent 70%);
}
.top3 > h2 { padding: 0 4px 14px; color: var(--accent-strong); }
.card.ranked { padding-left: 60px; }
.card.ranked::before {
  content: attr(data-rank); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 750; color: #fff;
  background: var(--brand);
}

/* radar */
.when {
  display: inline-block; margin-bottom: 8px; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--brand); border-radius: 4px;
}

/* water cooler */
.water { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.water li {
  position: relative; padding: 14px 18px 14px 46px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text-2);
}
.water li::before { content: "“"; position: absolute; left: 16px; top: 4px; font-size: 34px; line-height: 1.2; font-weight: 800; color: var(--accent); }

/* jargon */
.card.jargon { color: #fff; border: 0; background: radial-gradient(500px 220px at 90% 130%, rgba(21, 101, 255, .55), transparent 70%), radial-gradient(400px 200px at 10% 140%, rgba(91, 61, 245, .45), transparent 70%), #000; box-shadow: var(--shadow-lg); }
.jargon .term { font-size: 30px; font-weight: 780; letter-spacing: -.02em; }
.jargon .exp { margin-bottom: 10px; font-size: 14px; color: var(--brand-glow); font-weight: 600; }
.jargon .summary { color: rgba(255, 255, 255, .88); }
.jargon .why { border-left-color: var(--brand-glow); color: rgba(255, 255, 255, .8); }
.jargon .why b { color: var(--brand-glow); }

/* welcome */
.welcome { margin-top: 20px; padding: 14px 18px; border-style: dashed; background: color-mix(in srgb, var(--why-bg) 55%, var(--surface)); box-shadow: none; }
.welcome p { margin: 0 0 8px; color: var(--text-2); font-size: 14.5px; }
.welcome .sub { margin: 0 0 10px; font-size: 13.5px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.welcome .tb-btn { padding: 6px 12px; }
.filter-panel { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }

/* states */
.empty { color: var(--muted); font-size: 14px; }
.loading, .foot { color: var(--muted); font-size: 13px; }
.foot { padding: 8px 0 56px; }
.skeleton { display: grid; gap: 14px; margin-top: 28px; }
.skeleton i { display: block; height: 130px; border-radius: var(--radius); background: linear-gradient(90deg, var(--line), var(--surface), var(--line)) 0 0 / 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .skeleton i { animation: shimmer 1.4s linear infinite; } }
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton + .loading { text-align: center; }
.archive { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.archive a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--accent); text-decoration: none; font-size: 14px; font-weight: 550; }

/* toast */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 20; bottom: calc(76px + env(safe-area-inset-bottom));
  max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-radius: 14px;
  font-size: 14px; background: #0b0b14; color: #fff; box-shadow: var(--shadow-lg);
}
.toast button { border: 0; background: none; color: var(--brand-glow); font: inherit; font-weight: 700; cursor: pointer; }

/* ---- Ask Pregame ---- */
.ask-open {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 10; padding: 13px 20px;
  border-radius: var(--btn-radius); border: 0; cursor: pointer; color: #fff; font-size: 13px; font-weight: 750;
  letter-spacing: .09em; text-transform: uppercase; background: var(--brand); box-shadow: 0 8px 28px rgba(21, 101, 255, .45);
  transition: transform .15s;
}
.ask-open:hover { transform: translateY(-1px); }
.ask-open:active { transform: scale(.97); }
.ask {
  width: min(580px, calc(100vw - 24px)); max-height: 82vh; padding: 18px; border: 1px solid var(--line);
  border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
.ask::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
.ask[open] { display: flex; flex-direction: column; }
.ask-head { display: flex; justify-content: space-between; align-items: center; margin: 0; font-size: 17px; }
.ask-head button { min-width: 36px; min-height: 36px; background: none; border: 0; border-radius: 8px; font-size: 18px; color: var(--muted); cursor: pointer; }
.ask-head button:hover { background: var(--bg); }
.ask-hint { margin: 4px 0 10px; font-size: 13px; color: var(--muted); }
.ask-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.ask-suggest button { padding: 6px 12px; border-radius: 999px; font-size: 13px; cursor: pointer; border: 1px solid var(--line); background: var(--bg); color: var(--text-2); }
.ask-suggest button:hover { border-color: var(--accent); color: var(--text); }
.ask-log { overflow-y: auto; flex: 1; min-height: 120px; display: grid; gap: 10px; align-content: start; }
.msg { padding: 10px 14px; border-radius: 14px; font-size: 15px; }
.msg p { margin: 0 0 8px; } .msg p:last-child { margin: 0; }
.msg.user { background: var(--why-bg); color: var(--why-text); justify-self: end; max-width: 90%; }
.msg.bot { background: var(--bg); border: 1px solid var(--line); }
.msg.pending { color: var(--muted); font-style: italic; }
.cites { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.cites a { color: var(--accent); }
.ask-form { display: flex; gap: 8px; margin: 12px 0 0; }
.ask-form input { flex: 1; padding: 11px 14px; font-size: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.ask-form input:focus-visible { outline-offset: 0; }
.ask-form button { padding: 11px 18px; border-radius: var(--btn-radius); border: 0; background: var(--brand); color: #fff; font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.ask-form button:disabled { opacity: .5; }
.saved-item .sub { margin: 2px 0 0; }
.saved-item a { color: var(--accent); }
.saved-item .talk { margin-top: 8px !important; background: var(--surface); }
.saved-item .actions { margin-top: 8px; border-top: 0; padding-top: 0; }

/* ---- insights page ---- */
.insights-main { max-width: 760px; margin: 0 auto; padding: 8px 16px 56px; }
ul.plain { margin: 0; padding-left: 18px; }
ul.plain li { margin: 0 0 6px; }
.insights-main .topline { color: var(--text-2); max-width: none; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; gap: 4px; font-size: 14px; }
.bars .row { display: flex; justify-content: space-between; gap: 12px; }
.track { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line); }
.track .up { background: var(--accent); }
.track .down { background: var(--act); }

@media (min-width: 720px) { .card { padding: 20px 24px; } .card.ranked { padding-left: 66px; } .card.ranked::before { left: 20px; top: 20px; } }
@media print {
  .jump, .toolbar, .ask-open, .top-actions, .actions, .toast, .welcome, .hero::after { display: none !important; }
  .hero { color: #000; background: none; }
  .card { break-inside: avoid; box-shadow: none; }
  section.collapsed > :not(h2) { display: revert; }
}

@media (max-width: 520px) {
  .brandbar { gap: 14px; margin-bottom: 36px; }
  .icon-btn { padding: 0 10px; letter-spacing: .06em; }
  .top-actions { gap: 6px; }
  .brand { font-size: 15px; gap: 9px; }
  .tb-btn .lbl { display: none; }
}

/* ---- polish round 2 ---- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; }

.sec-count {
  min-width: 24px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0;
  text-align: center; color: var(--muted); background: var(--line);
}
.top3 .card.ranked:first-of-type h3 { font-size: 21px; }

.foot-note { margin: 10px 0 0; font-size: 12px; letter-spacing: .02em; }
.card h3 a { color: inherit; }

@media (prefers-reduced-motion: no-preference) {
  .cards > .card, .radar > .card, .water > li, .card.jargon { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
  .cards > :nth-child(2), .radar > :nth-child(2), .water > :nth-child(2) { animation-delay: .05s; }
  .cards > :nth-child(3), .radar > :nth-child(3), .water > :nth-child(3) { animation-delay: .1s; }
  .cards > :nth-child(n+4), .radar > :nth-child(n+4), .water > :nth-child(n+4) { animation-delay: .15s; }
  .jump a, .tb-btn, .act-btn, .seg button, .chip-btn { transition: background .15s, border-color .15s, color .15s, transform .1s; }
  .tb-btn:active, .act-btn:active, .chip-btn:active { transform: scale(.97); }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 719px) {
  .top3 { padding: 16px 10px 12px; border-radius: 18px; }
  .card.ranked { padding-left: 16px; }
  .card.ranked::before { position: static; margin: 0 0 10px; }
  .top3 .card.ranked:first-of-type h3 { font-size: 19px; }
  .actions .src { flex-basis: 100%; margin-bottom: 2px !important; }
}
