/* Above Store in PAR's look: white ground, navy ink, PAR periwinkle for actions and the current place, one warm
   accent for "needs attention". Manrope throughout, pill buttons. Tokens first; components never use raw hex. */
@font-face { font-family: 'Manrope'; src: url('assets/fonts/manrope-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Fira Code'; src: url('assets/fonts/fira-code-latin.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
:root {
  --bg: #F5F5FA; --surface: #FFFFFF; --surface-2: #F2F2F9; --surface-3: #E8E8F3; --line: #E4E5EF; --line-strong: #CBCDE0;
  --text: #1D2131; --muted: #5A5F7D; --faint: #767A96; --navy: #2F3452;
  --accent: #6864D1; --on-accent: #FFFFFF; --accent-soft: rgba(104,100,209,.12);
  --attn: #D9772B; --attn-soft: rgba(217,119,43,.12);
  --good: #13805A; --bad: #C8412F; --info: #6864D1; --watch: #CBCDE0;
  --font: 'Manrope', 'Helvetica Neue', Arial, sans-serif; --mono: 'Fira Code', 'SF Mono', Menlo, monospace;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --pill: 999px;
  --gutter: 24px; --max: 1200px;
  --t: 180ms cubic-bezier(.2,.7,.3,1);
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: light; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: var(--info); }
button { font: inherit; color: inherit; cursor: pointer; }
select, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.n, .num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.up { color: var(--good); } .down { color: var(--bad); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.ic { display: inline-flex; width: 20px; height: 20px; vertical-align: middle; flex: none; }
.ic svg { width: 20px; height: 20px; }

/* ---------- shell: sidebar menu on the left, slim top bar with the preview role on the right; bottom tabs on phones ---------- */
.shell { display: flex; min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; width: 236px; flex: none; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.sidebar .brand { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.logo { width: 28px; height: 28px; border-radius: 7px; background: var(--accent); display: grid; place-items: center; flex: none; }
.logo i { display: block; width: 14px; height: 2px; background: var(--on-accent); box-shadow: 0 5px 0 var(--on-accent), 0 -5px 0 var(--on-accent); }
.brand b { font-weight: 700; font-size: 15px; letter-spacing: -.01em; display: block; line-height: 1.15; }
.brand span { color: var(--muted); font-size: 12px; display: block; line-height: 1.2; white-space: nowrap; }
.sidebar .nav { display: flex; flex-direction: column; gap: 3px; padding: 12px 10px; }
.nav .section { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 700; padding: 12px 10px 4px; }
.nav .section:first-child { padding-top: 4px; }
.nav a { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 500; min-height: 42px; white-space: nowrap; transition: background var(--t), color var(--t); }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav a[aria-current="page"]::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--accent); }
.nav .ic svg { width: 17px; height: 17px; }
.side-foot { margin-top: auto; padding: 12px 18px 16px; font-size: 12px; line-height: 1.5; color: var(--faint); border-top: 1px solid var(--line); }
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 10px var(--gutter); background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .brand { display: none; }
.screen-name { font-weight: 700; font-size: 15px; color: var(--text); }
/* role chip: caption, then a pill with initials, role, person and scope; the real select is an invisible overlay */
.identity { display: flex; align-items: center; gap: 12px; min-width: 0; margin-left: auto; }
.pr-label { font-size: 11.5px; color: var(--faint); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.rolechip { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 12px 5px 6px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--pill); cursor: pointer; transition: background var(--t), border-color var(--t); }
.rolechip:hover { background: var(--surface-3); border-color: var(--faint); }
.rolechip:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.rolechip .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; display: grid; place-items: center; flex: none; }
.rolechip .rc-text { display: grid; gap: 1px; line-height: 1.15; min-width: 0; }
.rolechip .rc-text b { font-size: 13.5px; font-weight: 700; white-space: nowrap; max-width: 250px; overflow: hidden; text-overflow: ellipsis; }
.rolechip .rc-text small { font-size: 11.5px; color: var(--muted); white-space: nowrap; max-width: 250px; overflow: hidden; text-overflow: ellipsis; }
.rolechip .chev { color: var(--muted); display: inline-flex; flex: none; }
.rolechip .chev svg { width: 16px; height: 16px; }
.rolechip .rc-select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; appearance: none; -webkit-appearance: none; margin: 0; }
.tabbar { display: none; }
.main { width: 100%; max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 72px; }
.main[aria-busy="true"] { opacity: .7; }

/* ---------- intro: said once, dismissed once ---------- */
.intro { max-width: var(--max); margin: 20px auto -8px; padding: 0 var(--gutter); }
.intro-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); padding: 14px 18px; }
.intro-card p { margin: 0; flex: 1 1 420px; max-width: 80ch; }
.intro-card b { font-weight: 700; }

/* ---------- type ---------- */
h1 { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; margin: 0 0 4px; }
h2 { font-size: 19px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin: 30px 0 10px; }
h3 { font-size: 15px; font-weight: 700; margin: 18px 0 8px; }
.lede { color: var(--muted); margin: 0 0 18px; max-width: 72ch; }
.question { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .01em; margin: 0 0 6px; }
.hint { font-size: 13px; color: var(--muted); max-width: 72ch; }
.big { font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.big small { font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-left: 8px; }

/* ---------- needs attention: the findings, after the report ---------- */
.attention { margin-top: 34px; padding-top: 6px; border-top: 1px solid var(--line); }
.attention > h2 { margin-top: 18px; }
.chartbox .canvaswrap { height: 260px; }

/* ---------- lead: the finding that opens the section ---------- */
.lead { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px 18px; margin: 0 0 20px; }
.lead h2 { margin: 0 0 12px; font-size: 28px; font-weight: 600; letter-spacing: -.015em; }
.lead .nums { display: flex; flex-wrap: wrap; gap: 24px 36px; margin: 0 0 12px; }
.lead .nums .v { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.lead .nums .l { color: var(--muted); font-size: 13px; margin-top: 4px; }
.lead .line { margin: 0 0 6px; max-width: 72ch; }
.lead .hyp { margin: 0 0 14px; color: var(--muted); max-width: 72ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--pill); border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font-weight: 700; transition: background var(--t), border-color var(--t), transform 80ms; }
.btn:hover { background: var(--surface-3); border-color: var(--faint); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--muted); }
.btn.quiet:hover { color: var(--text); background: var(--surface-2); }
.btn.danger { border-color: var(--bad); color: var(--bad); background: transparent; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn .ic svg { width: 18px; height: 18px; }

/* ---------- tickets ---------- */
.rail { display: grid; gap: 12px; margin: 8px 0 8px; }
.rail-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rail-head h3 { margin: 0; font-size: 16px; }
.rail-head .count { color: var(--muted); font-size: 13px; }
.ticket { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--watch); border-radius: var(--r); padding: 14px 16px 12px; transition: border-color var(--t), transform var(--t); }
.ticket:hover { border-color: var(--line-strong); }
.ticket.critical { border-top-color: var(--bad); }
.ticket.high { border-top-color: var(--attn); }
.ticket.explained { border-top-color: var(--line-strong); background: transparent; border-style: dashed; }
.ticket.printing { animation: print .22s ease-out both; }
@keyframes print { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.t-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.t-meta .sev { font-weight: 700; }
.t-meta .sev.critical { color: var(--bad); } .t-meta .sev.high { color: var(--attn); }
.t-meta .impact { margin-left: auto; font-weight: 700; color: var(--text); }
.t-head { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; max-width: 72ch; }
.t-line { margin: 0 0 8px; color: var(--muted); max-width: 72ch; }
.t-nums { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; font-size: 14px; }
.t-nums b { font-weight: 700; }
.t-ask { margin: 0 0 12px; max-width: 72ch; }
.t-ask b { font-weight: 700; }
.t-src { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { font-size: 12px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 9px; color: var(--muted); }
.chip.brink { border-color: #9DB7D3; color: #2F5F8C; } .chip.punchh { border-color: #C3AEDA; color: #6B4A8A; } .chip.ops { border-color: #A6D3BA; color: #2F7A50; }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; border: 1px solid var(--line-strong); }
.state.in_progress { color: var(--attn); border-color: var(--attn); }
.state.resolved { color: var(--good); border-color: var(--good); }
.state.open { color: var(--muted); }

/* ---------- focus band ---------- */
.focus { background: var(--surface-2); border-left: 4px solid var(--attn); border-radius: var(--r-sm); padding: 14px 16px; margin: 18px 0; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.focus .fl { font-size: 13px; color: var(--muted); }
.focus .fv { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.focus .fv small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.focus form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.focus select { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 9px 10px; min-height: 44px; }

/* ---------- stats, panels, tables ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0 0 6px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.stat .v { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.stat .l { color: var(--muted); font-size: 12.5px; margin-top: 6px; line-height: 1.35; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 10px 0 0; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 12.5px; white-space: nowrap; position: sticky; top: 0; background: var(--surface); }
tbody tr:hover td { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; white-space: nowrap; }
tr.stale td { color: var(--faint); }
.pill { display: inline-block; font-size: 11px; color: var(--faint); margin-left: 6px; }
.tbl-note { color: var(--muted); font-size: 13px; margin: 8px 0 0; max-width: 80ch; }
details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 0 16px; margin: 12px 0; }
details summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; }
details summary::before { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform var(--t); }
details[open] summary::before { transform: rotate(45deg); }
details > *:not(summary) { margin-bottom: 14px; }
details .scroll { border: 0; }
.notice { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--attn); border-radius: var(--r-sm); padding: 12px 14px; margin: 0 0 16px; max-width: 80ch; }
.notice.red { border-left-color: var(--bad); }
.empty { color: var(--muted); padding: 16px; border: 1px dashed var(--line-strong); border-radius: var(--r); max-width: 60ch; }

/* ---------- charts ---------- */
svg text { font-family: var(--font); }
.spark { display: inline-block; vertical-align: middle; }
.ringwrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ringlegend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; min-width: 220px; }
.ringlegend li { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 10px; align-items: center; }
.ringlegend .sw { width: 12px; height: 12px; border-radius: 3px; }
.hbars { display: grid; gap: 6px; }
.hbar { display: grid; grid-template-columns: 140px 1fr 90px; gap: 10px; align-items: center; font-size: 13.5px; }
.hbar .ht { height: 12px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.hbar .hb { display: block; height: 100%; border-radius: 3px; }
.hbar .hv { text-align: right; }
.bridge .row { display: grid; grid-template-columns: 170px 1fr 72px 80px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.bridge .row .track { position: relative; height: 12px; background: var(--surface-3); border-radius: 3px; }
.bridge .row .bar { position: absolute; left: 0; top: 0; height: 100%; background: var(--muted); border-radius: 3px; }
.bridge .row.total .bar { background: var(--text); }
.bridge .row.fw .bar { background: var(--good); }
.bridge .row.over .bar { background: var(--bad); }
.bridge .row .tick { position: absolute; top: -3px; width: 2px; height: 18px; background: var(--accent); }

/* ---------- checklist ---------- */
.check { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.check li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: baseline; }
.check li:last-child { border-bottom: 0; }
.check li .flag { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: inline-block; margin-right: 10px; vertical-align: middle; }
.check li.flagged .flag { background: var(--bad); }
.check li .base { color: var(--muted); font-size: 12.5px; }

/* ---------- drawer ---------- */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100%); background: var(--surface); border-left: 1px solid var(--line); z-index: 40; overflow: auto; padding: 22px 24px 40px; box-shadow: -12px 0 32px rgba(29,33,49,.14); animation: slide .22s ease-out both; }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.scrim { position: fixed; inset: 0; background: rgba(29,33,49,.32); z-index: 30; }
.drawer h2 { margin-top: 0; font-size: 22px; }
.drawer .close { position: absolute; top: 12px; right: 12px; }
.drawer h3 { margin-top: 22px; }
.drawer ol, .drawer ul.ev { padding-left: 20px; margin: 0; }
.drawer ul.ev li { margin: 4px 0; }
.contrib { font-size: 13px; }
.math { width: 100%; font-size: 13px; }
.math td:first-child { color: var(--muted); }
.wf { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 16px 0; display: grid; gap: 10px; }
.wf label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.wf input, .wf textarea { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 9px 10px; min-height: 44px; }
.wf textarea { min-height: 72px; resize: vertical; }
.hist { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.track th, .track td { padding: 8px 10px; }

/* ---------- explore ---------- */
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.controls select { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 9px 10px; min-height: 44px; }
.controls .pick { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.crumbs button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent); border-radius: var(--pill); padding: 6px 12px; min-height: 36px; font-weight: 600; font-size: 13px; }
.crumbs button .ic svg { width: 16px; height: 16px; }
.chartbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 12px 0 14px; }
tr.drill { cursor: pointer; } tr.drill td:first-child { color: var(--accent); font-weight: 600; }
tr.drill:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.embed { margin-top: 20px; height: 1600px; border: 0; border-radius: var(--r); overflow: hidden; background: transparent; padding: 0; }
.embed .skeleton, .embed .empty { padding: 16px; }
/* Nothing is pulled out of view: the share page's own header is shorter than any offset we could guess, and an offset clipped the widget titles. */
.embed iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- questions ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.chips button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 10px 14px; min-height: 44px; transition: background var(--t), border-color var(--t); }
.chips button:hover { background: var(--surface-2); }
.chips button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.answer { font-size: 20px; line-height: 1.35; max-width: 72ch; margin: 0 0 14px; font-weight: 600; }
pre.code { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; font-family: var(--mono); font-size: 12.5px; overflow: auto; max-height: 360px; margin: 0; }

/* ---------- developer page (/developers, outside the app nav) ---------- */
.devbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px var(--gutter); padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: var(--surface); border-bottom: 1px solid var(--line); }
.devbar .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex: 1; min-width: 0; }
.devbar .brand b { font-weight: 700; }
.devbar .viewing { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.devbar select { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 8px 10px; min-height: 44px; }
.play { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.play .controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.play select { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 9px 10px; min-height: 44px; }
.play .pane h4 { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.canvaswrap { position: relative; height: 280px; }
.trace { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; font-size: 14px; }
.trace dt { color: var(--muted); font-size: 12.5px; } .trace dd { margin: 2px 0 0; }
.denied { color: var(--bad); font-weight: 700; }
.notent { color: var(--faint); font-weight: 700; }

/* ---------- misc ---------- */
.toasts { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; }
.toast { background: var(--navy); color: #FFFFFF; padding: 10px 14px; border-radius: var(--pill); font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(29,33,49,.18); }
.sources { display: flex; gap: 14px; flex-wrap: wrap; color: var(--faint); font-size: 12px; margin-top: 30px; padding-top: 12px; border-top: 1px solid var(--line); }
.sources .red { color: var(--bad); }
.sources .off { text-decoration: line-through; }
.skeleton { display: grid; gap: 12px; padding: 8px 0; }
.sk { height: 16px; border-radius: 6px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-3) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.cachetag { font-size: 11px; color: var(--faint); }

@media (max-width: 1023px) {
  :root { --gutter: 16px; }
  .sidebar { display: none; }
  .topbar { padding-top: calc(10px + env(safe-area-inset-top, 0px)); gap: 10px; }
  .topbar .brand { display: flex; } .topbar .brand span, .screen-name, .pr-label, .rolechip .rc-text small { display: none; }
  .rolechip { padding: 4px 10px 4px 4px; }
  .main { padding: 18px var(--gutter) 96px; }
  .intro { margin-top: 14px; }
  .chartbox .canvaswrap { height: 220px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); z-index: 20; }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 700; border-radius: var(--r-sm); min-height: 48px; }
  .tabbar a[aria-current="page"] { color: var(--accent); }
  h1 { font-size: 22px; } .big { font-size: 40px; } .lead h2 { font-size: 22px; } .lead .nums .v { font-size: 24px; }
  .devbar { flex-wrap: wrap; gap: 8px 12px; }
  .embed { height: 1900px; }
  .grid2, .play { grid-template-columns: 1fr; }
  .focus { grid-template-columns: 1fr; }
  .bridge .row { grid-template-columns: 110px 1fr 60px 70px; font-size: 12.5px; }
  .hbar { grid-template-columns: 100px 1fr 76px; }
  .drawer { width: 100%; padding: 18px 16px 40px; }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .ticket.printing, .drawer { animation: none; } .sk { animation: none; } * { transition: none !important; } }
