@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/ibm-plex-sans-arabic-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/ibm-plex-sans-arabic-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --ground: #F5F7F7; --card: #FFFFFF; --card-2: #EEF2F2; --text: #15201F; --muted: #5B6A6D; --line: #E2E8E8; --line-2: #C7D1D1;
  --brand: #1F4E5A; --brand-deep: #163C46; --brand-ink: #22535F; --brand-tint: #E4EEF0; --gold: #E9A23B;
  --good: #1A7A3A; --good-bg: #E3F3E8; --good-mark: #2B9655; --warn: #8A5A00; --warn-bg: #FBF0D9; --warn-mark: #AD7410; --bad: #B93A2E; --bad-bg: #FBE7E5; --bad-mark: #D9534A; --paid: #AD7410;
  --r1: #1F4E5A; --r2: #3B7584; --r3: #6AA1AE; --r4: #9CC5CE;
  --shadow: 0 1px 2px rgba(21,32,31,.04), 0 8px 20px -10px rgba(21,32,31,.12);
  --ink: var(--text); --ink-2: var(--muted); --accent: var(--bad);
  --teal: var(--brand-ink); --teal-2: var(--r3); --coral: var(--paid); --green: var(--good-mark); --sage: var(--r4);
  --shell: #1F4E5A; --shell-text: #FFFFFF; --shell-muted: #C9DADF;
  --s1: var(--r1); --s2: var(--r2); --s3: var(--r3); --s4: var(--r4); --s5: var(--r3); --s6: var(--r4);
  --r: 14px; --r-s: 8px; --gap: 16px; --pad: 22px;
  --sans: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
  --ground: #0F1415; --card: #171D1F; --card-2: #1F2729; --text: #E8ECEC; --muted: #9AA8AB; --line: #2A3335; --line-2: #3B4749;
  --brand: #7FB8C4; --brand-deep: #0F2A32; --brand-ink: #8FC3CD; --brand-tint: #1B2F34; --gold: #E9A23B;
  --good: #5BCB7E; --good-bg: #15301F; --good-mark: #3FB36A; --warn: #E5B64A; --warn-bg: #332A12; --warn-mark: #D9A030; --bad: #F28B82; --bad-bg: #3A1F1C; --bad-mark: #E8655B; --paid: #D9A030;
  --r1: #A9D3DB; --r2: #6FA6B1; --r3: #3F717C; --r4: #274A53;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 24px -14px rgba(0,0,0,.7);
  --shell: #163C46; --shell-text: #FFFFFF; --shell-muted: #C9DADF;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--sans); font-size: 14.5px; line-height: 1.6; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
::selection { background: var(--brand-tint); color: var(--text); }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.num { direction: ltr; unicode-bidi: isolate; display: inline-block; white-space: nowrap; }
span.ltr { white-space: nowrap; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.shell :focus-visible { outline-color: #fff; }

/* shell */
.shell { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #22535F 0%, #1F4E5A 45%, #163C46 100%); }
:root[data-theme="dark"] .shell { background: linear-gradient(135deg, #1B4651 0%, #163C46 50%, #0F2A32 100%); }
.shell::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 60%, rgba(233,162,59,.16) 60.3%, rgba(233,162,59,.03) 100%); }
.shell-in { position: relative; max-width: 1200px; margin-inline: auto; padding: 20px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.badge { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; box-shadow: 0 0 0 2px rgba(253,244,217,.9); }
.brand { flex: 1 1 18rem; min-width: 0; }
.brand .k { font-size: 11px; color: #C9DADF; letter-spacing: .14em; text-transform: uppercase; }
.brand h1 { font-size: 20px; font-weight: 500; line-height: 1.3; margin-top: 4px; color: #fff; }
.tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.38); background: rgba(255,255,255,.06); border-radius: 999px; padding: 5px 13px; font-size: 12.5px; color: #fff; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good-mark); } .pill .dot.stale { background: var(--warn-mark); }
.pill.btn:hover { background: rgba(255,255,255,.14); }
.take { margin: 0; padding: 12px max(20px, calc((100% - 1160px) / 2)); font-size: 15px; line-height: 1.7; color: var(--text); background: var(--warn-bg); border-bottom: 1px solid var(--line); }
.take.good { background: var(--good-bg); } .take.bad { background: var(--bad-bg); }
.take b { font-weight: 500; }
.take .w { color: var(--warn); font-weight: 600; } .take.bad .w { color: var(--bad); } .take.good .w { color: var(--good); }
.take .chip { margin-inline-end: 8px; vertical-align: 1px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--ground) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-in { max-width: 1200px; margin-inline: auto; padding: 0 20px; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.nav-in::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; color: var(--muted); padding: 12px 0 10px; border-bottom: 2px solid transparent; font-size: 13.5px; white-space: nowrap; }
.nav a:hover { color: var(--brand); } .nav a.on { color: var(--text); border-bottom-color: var(--brand); }

/* layout */
.wrap { max-width: 1200px; margin-inline: auto; padding: 0 20px 48px; }
section { margin-top: 48px; scroll-margin-top: 64px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sec-h h2 { font-size: 18px; font-weight: 500; }
.sec-h h2::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); margin-inline-end: 10px; vertical-align: 2px; }
.sec-h .note { color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--gap); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad); min-width: 0; box-shadow: var(--shadow); }
.card.wide { grid-column: 1 / -1; }
.card h3 { font-size: 15px; font-weight: 500; line-height: 1.4; }
.card .note { color: var(--muted); font-size: 13px; margin-top: 2px; margin-bottom: 14px; }
.note .src { color: var(--muted); }

/* kpi strip */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: none; border: 0; border-inline-start: 1px solid var(--line); padding: 18px 20px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kpi:first-child { border-inline-start: 0; }
@media (max-width: 860px) { .kpi:nth-child(3) { border-inline-start: 0; } .kpi:nth-child(n+3) { border-top: 1px solid var(--line); } }
.kpi .l { font-size: 13px; color: var(--muted); }
.kpi .v { font-size: 36px; font-weight: 400; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: proportional-nums; }
.kpi .d { font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.kpi .d .up { color: var(--good); font-weight: 500; } .kpi .d .down { color: var(--bad); font-weight: 500; } .kpi .d .flat { color: var(--muted); }
.kpi .s { font-size: 12px; color: var(--muted); line-height: 1.5; }
.kpi .hist { height: 34px; margin-top: 6px; }
.kpi .hist svg { width: 100%; height: 34px; display: block; overflow: visible; }

/* runway (signature) */
.runway { position: relative; }
.runway svg { width: 100%; height: auto; display: block; overflow: visible; }
.runway text { font-family: var(--sans); font-size: 12px; } @media (max-width: 640px) { .runway text { font-size: 11px; } .runway text.big { font-size: 13px; } }
.runway text { fill: var(--muted); unicode-bidi: plaintext; }
.runway text.big { font-size: 14px; font-weight: 500; fill: var(--text); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; margin-top: 10px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-inline-end: 6px; vertical-align: -1px; }
.legend b { white-space: nowrap; font-weight: 500; }

/* verdict cards */
.vgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: var(--gap); }
/* Section grids: two columns on desktop so no row is left with an orphan card; one column under 760px */
#reach .grid, #shorts .grid, #audience .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { #reach .grid, #shorts .grid, #audience .grid { grid-template-columns: minmax(0, 1fr); } }
/* Film strip: the long-form verdict cards as an auto-scrolling strip, thumbnail dominant, data on the bottom edge */
.strip { position: relative; overflow: hidden; border-radius: var(--r); direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.strip .track { display: flex; gap: var(--gap); width: max-content; animation: strip-move var(--dur, 60s) linear infinite; will-change: transform; padding: 4px 0 8px; }
.strip:hover .track, .strip:focus-within .track { animation-play-state: paused; }
@keyframes strip-move { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--half, 50%))); } }
@media (prefers-reduced-motion: reduce) { .strip { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } .strip .track { animation: none; } }
.fc { position: relative; flex: 0 0 auto; width: 440px; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #1A2426; box-shadow: var(--shadow); color: #fff; text-decoration: none; display: block; direction: ltr; outline: 1px solid var(--line); outline-offset: -1px; transition: transform .25s ease, box-shadow .25s ease; }
.fc:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -18px rgba(0,0,0,.45); }
.fc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fc .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; background: linear-gradient(135deg, var(--card-2), var(--card)); }
.fc .ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,14,15,.08) 0%, rgba(8,14,15,0) 22%, rgba(8,14,15,.62) 52%, rgba(8,14,15,.95) 100%); }
.fc .top { position: absolute; top: 12px; inset-inline: 12px; display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.fc .top .chip { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fc .top .num { font-size: 12px; color: #fff; background: rgba(8,14,15,.55); padding: 2px 8px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fc .body { position: absolute; inset-inline: 16px; bottom: 12px; }
.fc .ti { font-size: 15px; font-weight: 600; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,.4); direction: ltr; }
.fc .vd { display: flex; align-items: center; gap: 7px; font-size: 12.5px; margin-top: 4px; color: rgba(255,255,255,.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc .vd::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9AA8AB; flex: 0 0 auto; }
.fc .vd.ok::before { background: var(--good-mark); } .fc .vd.warn::before { background: #E9A23B; } .fc .vd.bad::before { background: #F28B82; }
.fc .vd b { font-weight: 600; } .fc .vd.ok b { color: #6FDB92; } .fc .vd.warn b { color: #F3C45C; } .fc .vd.bad b { color: #FF9B93; }
.fc .st { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 9px; }
.fc .st .k { font-size: 10.5px; letter-spacing: .03em; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; display: flex; align-items: center; gap: 6px; }
.fc .st .k em { font-style: normal; font-size: 10px; padding: 0 6px; border-radius: 999px; line-height: 1.6; background: rgba(255,255,255,.14); color: #fff; letter-spacing: 0; }
.fc .st .k em.ok { background: rgba(43,150,85,.6); } .fc .st .k em.warn { background: rgba(233,162,59,.7); color: #1a1200; } .fc .st .k em.bad { background: rgba(217,83,74,.7); } .fc .st .k em.none { display: none; }
.fc .st .v { font-size: 21px; line-height: 1.1; margin-top: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.fc .st .bar { height: 3px; margin-top: 6px; background: rgba(255,255,255,.22); border-radius: 2px; position: relative; overflow: visible; }
.fc .st .bar .f { position: absolute; inset-block: 0; left: 0; border-radius: 2px; background: #fff; }
.fc .st .bar .f.ok { background: #6FDB92; } .fc .st .bar .f.warn { background: #F3C45C; } .fc .st .bar .f.bad { background: #FF9B93; }
.fc .st .bar .t { position: absolute; top: -4px; height: 11px; width: 2px; background: #fff; margin-left: -1px; }
.fc .ft { display: flex; gap: 14px; font-size: 11.5px; color: rgba(255,255,255,.78); margin-top: 8px; white-space: nowrap; }
.fc .ft b { color: #fff; font-weight: 600; }
.fc[dir=rtl] .vd, .fc[dir=rtl] .ft { direction: rtl; } .fc[dir=rtl] .ti { text-align: right; }
.strip-hint { font-size: 12px; color: var(--muted); margin-top: 8px; }
/* News ticker under the header: auto-scrolling, pauses on hover, categories carry their own dot colour */
.ticker { display: flex; align-items: stretch; background: var(--card); border-bottom: 1px solid var(--line); font-size: 13.5px; direction: ltr; }
.tk-lbl { flex: 0 0 auto; display: flex; align-items: center; padding: 0 16px; background: var(--brand); color: #fff; font-weight: 600; font-size: 12.5px; letter-spacing: .02em; }
.tk-wrap { flex: 1 1 auto; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.tk-track { display: flex; width: max-content; align-items: center; height: 40px; animation: strip-move var(--dur, 90s) linear infinite; will-change: transform; }
.ticker:hover .tk-track { animation-play-state: paused; }
.tk-track .it { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; white-space: nowrap; color: var(--text); text-decoration: none; border-inline-end: 1px solid var(--line); }
.tk-track .it i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.tk-track .it.us i { background: var(--brand); } .tk-track .it.good i { background: var(--good-mark); } .tk-track .it.warn i { background: var(--warn-mark); } .tk-track .it.bad i { background: var(--bad-mark); } .tk-track .it.comp i { background: var(--gold); }
.tk-track .it .c { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tk-track .it b { font-weight: 600; }
.tk-track .it.comp b { color: var(--text); }
.ticker.off .tk-track { animation: none; }
@media (prefers-reduced-motion: reduce) { .tk-track { animation: none; } .tk-wrap { overflow-x: auto; } }
@media (max-width: 640px) { .tk-lbl { padding: 0 10px; } .tk-track { height: 36px; } .ticker { font-size: 12.5px; } }
/* thumbnails inside tables */
.tt { display: inline-flex; align-items: center; gap: 10px; direction: ltr; }
.tt img { width: 64px; height: 36px; object-fit: cover; border-radius: 4px; background: var(--card-2); flex: 0 0 auto; }
.tt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 28rem; }

@media (max-width: 640px) { .fc { width: 320px; } .fc .ti { font-size: 13.5px; } .fc .st .v { font-size: 17px; } .fc .st { gap: 8px; } .fc .ft { font-size: 11px; gap: 10px; } .fc .body { inset-inline: 12px; bottom: 10px; } }
.vc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-width: 0; box-shadow: var(--shadow); }
.vc .head { display: flex; gap: 14px; padding: 16px 18px 0; align-items: flex-start; }
.vc .thumb { flex: 0 0 112px; aspect-ratio: 16 / 9; border-radius: var(--r-s); background: var(--card-2); overflow: hidden; }
.vc .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vc .hd { flex: 1 1 auto; min-width: 0; }
.vc .band { margin: 14px 0 0; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--card-2); font-size: 13.5px; line-height: 1.5; }
.vc .band .lead { font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; margin-inline-end: 8px; }
.vc .band .lead::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.vc .band span:not(.lead) { color: var(--text); display: block; margin-top: 2px; }
.vc .band.ok { background: var(--good-bg); } .vc .band.ok .lead { color: var(--good); } .vc .band.ok .lead::before { background: var(--good-mark); }
.vc .band.warn { background: var(--warn-bg); } .vc .band.warn .lead { color: var(--warn); } .vc .band.warn .lead::before { background: var(--warn-mark); }
.vc .band.bad { background: var(--bad-bg); } .vc .band.bad .lead { color: var(--bad); } .vc .band.bad .lead::before { background: var(--bad-mark); }
.vc .band.muted .lead { color: var(--muted); }
.vc .scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 14px 18px 16px; }
.sc { min-width: 0; }
.sc .k { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc .v em { font-style: normal; font-weight: 500; font-size: 11px; color: var(--muted); margin-inline-start: 8px; vertical-align: 3px; padding: 0 7px; border-radius: 999px; line-height: 1.6; background: var(--card-2); }
.sc .v em.ok { color: var(--good); background: var(--good-bg); } .sc .v em.warn { color: var(--warn); background: var(--warn-bg); } .sc .v em.bad { color: var(--bad); background: var(--bad-bg); } .sc .v em.none { display: none; }
.sc .v { font-size: 26px; font-weight: 400; line-height: 1.15; margin-top: 3px; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: proportional-nums; }
.sc .v.none { color: var(--muted); }
.sc .bar { position: relative; height: 4px; margin-top: 16px; background: var(--line); border-radius: 2px; }
.sc .bar .f { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 2px; background: var(--brand-ink); }
.sc .bar .f.ok { background: var(--good-mark); } .sc .bar .f.warn { background: var(--warn-mark); } .sc .bar .f.bad { background: var(--bad-mark); }
.sc .bar .t { position: absolute; top: -9px; height: 7px; width: 2px; margin-inline-start: -1px; background: var(--text); box-shadow: 0 0 0 1.5px var(--card); }
.sc .bar .t2 { position: absolute; top: -7px; height: 5px; width: 2px; margin-inline-start: -1px; background: var(--brand); box-shadow: 0 0 0 1.5px var(--card); }
.sc .s { font-size: 11.5px; color: var(--muted); margin-top: 7px; line-height: 1.45; }
.vc .foot { margin-top: auto; border-top: 1px solid var(--line); padding: 12px 18px 14px; font-size: 12px; color: var(--muted); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; line-height: 1.4; }
.vc .foot span { display: flex; flex-direction: column; min-width: 0; }
.vc .foot b { color: var(--text); font-weight: 500; font-size: 14px; }
@media (max-width: 420px) { .vc .thumb { flex-basis: 96px; } .sc .v { font-size: 21px; } .vc .scores { gap: 10px; } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); white-space: nowrap; line-height: 1.7; }
.chip.ok { color: var(--good); background: var(--good-bg); border-color: color-mix(in srgb, var(--good-mark) 45%, transparent); }
.chip.warn { color: var(--warn); background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn-mark) 45%, transparent); }
.chip.bad { color: var(--bad); background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad-mark) 45%, transparent); }
.chip.info { color: var(--brand); background: var(--brand-tint); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.chip.muted { color: var(--muted); background: var(--card-2); border-color: var(--line); }
.vc .t { font-weight: 500; line-height: 1.45; font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; direction: ltr; text-align: start; }
.vc .m { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 5px; align-items: center; }
.median { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.median b { color: var(--text); font-weight: 500; }
.median .lg { display: inline-flex; align-items: center; gap: 6px; }
.median .lg i { display: inline-block; width: 2px; height: 12px; background: var(--text); } .median .lg i.md { background: var(--brand); height: 8px; }

.proj svg, .quad svg, .cols svg { width: 100%; height: auto; display: block; overflow: visible; direction: ltr; }
.proj text, .quad text, .cols text { font-family: var(--sans); font-size: 11px; fill: var(--muted); }
.quad text.q { font-size: 11.5px; font-weight: 500; }
.quad text.q.ok { fill: var(--good); } .quad text.q.warn { fill: var(--warn); } .quad text.q.bad { fill: var(--bad); }
.quad text.lbl { fill: var(--text); font-weight: 500; }
/* bars list */
.bars { display: flex; flex-direction: column; gap: 7px; }
.brow { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.brow .k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; text-align: start; }
.brow .tr { height: 6px; background: var(--card-2); border-radius: 3px; overflow: hidden; }
.brow .tr i { display: block; height: 100%; border-radius: 3px; background: var(--brand-ink); }
.brow .v { font-weight: 500; min-width: 3rem; text-align: end; direction: ltr; }
.stack { display: flex; height: 12px; border-radius: 4px; overflow: hidden; background: var(--card-2); }
.stack i { display: block; height: 100%; }
.stack i + i { border-inline-start: 2px solid var(--card); }

/* tables */
.twrap { overflow: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-height: 34rem; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
th { position: sticky; top: 0; background: var(--card-2); text-align: start; font-weight: 500; color: var(--muted); font-size: 12px; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none; }
th[aria-sort="ascending"]::after { content: " ↑"; } th[aria-sort="descending"]::after { content: " ↓"; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--text) 4%, transparent); }
td.ltr, th.ltr { direction: ltr; text-align: left; }
td.n { direction: ltr; text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.ltr:first-child, th.ltr:first-child { min-width: 16rem; white-space: normal; }
@media (max-width: 600px) { .twrap { max-height: none; } }
.search { width: 100%; max-width: 20rem; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font: inherit; font-size: 13px; margin-bottom: 10px; }
.search::placeholder { color: var(--muted); }

/* queue */
.q { display: flex; flex-direction: column; }
.qi { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.qi:first-child { border-top: 0; padding-top: 4px; }
.qi .p { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--brand); color: var(--brand); display: grid; place-items: center; font-weight: 500; font-size: 13px; }
.qi .p.p1 { background: var(--bad); color: #fff; border-color: var(--bad); }
.qi .t { font-weight: 500; line-height: 1.45; }
.qi .n { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.55; }
.qi .r { font-size: 12px; color: var(--muted); margin-top: 6px; overflow-wrap: anywhere; }
.qi > div { min-width: 0; }

/* tooltip */
.tip { position: fixed; z-index: 20; pointer-events: none; background: var(--card); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 6px 10px; font-size: 12.5px; box-shadow: 0 8px 24px -12px rgba(0,0,0,.25); display: none; max-width: 18rem; line-height: 1.5; }
.tip .h { color: var(--muted); }

details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--card); margin-top: 8px; }
summary { cursor: pointer; font-weight: 500; }
.chk { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-size: 13px; }
.chk div { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: 8px; }
.chk .i { color: var(--muted); }
.chk .ref { color: var(--muted); font-size: 12px; direction: ltr; }
.foot { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.empty { color: var(--muted); font-size: 13px; padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--r-s); text-align: center; }
@media (prefers-reduced-motion: no-preference) { .brow .tr i, .metric .bar .f { transition: width .5s cubic-bezier(.2,.8,.2,1); } }
@media (max-width: 600px) { .kpi .v { font-size: 28px; } .brand h1 { font-size: 18px; } .brand .k { font-size: 9.5px; letter-spacing: .08em; } .shell-in { padding: 14px 20px; } .badge { width: 38px; height: 38px; } }
