/* RegTail MOT Explorer: the full stylesheet, loaded after the first paint (the critical part is inline in the shell).
   From the pass-3 design (docs/design/mot-app): RegTail's iOS tokens at terminal density. System fonts only. */
/* ================================================================ 1. the app's tokens (copied) */
:root {
  --bg: #000; --panel: #151517; --panel2: #1f1f22; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --text: #f5f5f7; --text2: rgba(235,235,245,.64); --text3: rgba(235,235,245,.4);
  --blue: #0a84ff; --green: #30d158; --amber: #ff9f0a; --red: #ff453a; --grey: #8e8e93; --plate: #ffd307;
  --green-bg: rgba(48,209,88,.12); --amber-bg: rgba(255,159,10,.13); --red-bg: rgba(255,69,58,.14); --grey-bg: rgba(142,142,147,.16); --blue-bg: rgba(10,132,255,.14);
  --tint: rgba(255,255,255,.025); --well: #0d0d0f; --shadow: none;
  --shadow-lg: 0 24px 64px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.4); --scrim: rgba(0,0,0,.55);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2,.8,.2,1); --dur: .2s; --dur-l: .32s;
  --sh-pill: min(50px, env(safe-area-inset-bottom, 0px) * 100); --sh-bars: 0px;
  color-scheme: dark;

  /* ============================================================== 2. what the explorer adds */
  --faint: rgba(235,235,245,.52);                    /* small labels: 4.9:1 on the panel */
  --link: var(--blue); --blue-t: #4da3ff; --green-t: var(--green); --amber-t: var(--amber); --fill: #0a6fe0;
  --s1: #0a84ff; --s2: #d55181; --s3: #9085e9; --sref: #8e8e93;       /* chart series: validated, fixed order */
  --grid: var(--line); --axis: var(--line2); --thumb: rgba(255,255,255,.16);
  --h0: #2a1512; --h1: #4a1f17; --h2: #6f2a1c; --h3: #983a25; --h4: #cf644a; --h5: #e07f63; --h6: #f4b4a0;
  --h0t: #f5f5f7; --h1t: #f5f5f7; --h2t: #f5f5f7; --h3t: #f5f5f7; --h4t: #0b0d12; --h5t: #0b0d12; --h6t: #0b0d12;
  --d0: #6db3ff; --d1: #2b6cc0; --d2: #1b3b66; --d3: #2a2c33; --d4: #6b2a22; --d5: #b04534; --d6: #ff8a75;
  --d0t: #0b0d12; --d1t: #f5f5f7; --d2t: #f5f5f7; --d3t: #f5f5f7; --d4t: #f5f5f7; --d5t: #f5f5f7; --d6t: #0b0d12;
  /* density: touch below 1100 px, pointer from 1100 */
  --row: 44px; --fs-row: 15px; --ctl: 44px; --tb-h: 56px; --gap: 10px; --pad: 14px; --r: 14px; --fig: 44px;
}
@supports (height: 100lvh) { :root { --sh-bars: calc(100lvh - 100svh); } }
/* The phone section nav (.tabs-w, inline in the shell) is a sticky row under the top bar, not a floating layer, so no
   page needs to reserve room at its foot any more. This stays as a variable at 0 because .ft still adds it to its
   padding and duet-ui reads the same name; set it again if anything ever floats over the foot of the viewport. */
:root { --mx-tabs-h: 0px; }
html[data-duet-nav="v3"][data-duet-mode="inline"] { --mx-tabs-h: 0px; }
@media (min-width: 1100px) { :root { --row: 30px; --fs-row: 13px; --ctl: 30px; --gap: 8px; --pad: 12px; --r: 12px; --fig: 56px; } }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { color-scheme: light; --bg: #f2f2f7; --panel: #ffffff; --panel2: #e8e8ed; --line: rgba(0,0,0,.08); --line2: rgba(0,0,0,.14);
  --text: #0b0d12; --text2: rgba(60,60,67,.74); --text3: rgba(60,60,67,.5); --blue: #0a6fe0; --green: #1f8a3b; --amber: #b25000; --red: #d70015;
  --green-bg: rgba(52,199,89,.14); --amber-bg: rgba(255,149,0,.15); --red-bg: rgba(255,59,48,.12); --grey-bg: rgba(142,142,147,.14); --blue-bg: rgba(10,111,224,.1);
  --tint: rgba(0,0,0,.025); --well: #f2f2f7; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05); --shadow-lg: 0 24px 64px rgba(20,30,60,.16), 0 2px 6px rgba(20,30,60,.06); --scrim: rgba(0,0,0,.34);
  --faint: rgba(60,60,67,.74); --link: #0860c4; --blue-t: #0860c4; --green-t: #177a32; --amber-t: #a84a00; --s1: #0a6fe0; --s2: #c93d74; --s3: #6250d6; --sref: #7a7a82; --thumb: #ffffff;
  --h0: #fbe3dc; --h1: #f6c3b5; --h2: #ee9d88; --h3: #e2755c; --h4: #c44a31; --h5: #a6341f; --h6: #7a2414;
  --h0t: #0b0d12; --h1t: #0b0d12; --h2t: #0b0d12; --h3t: #0b0d12; --h4t: #ffffff; --h5t: #ffffff; --h6t: #ffffff;
  --d0: #1c5cab; --d1: #6da7ec; --d2: #cde2fb; --d3: #e8e8ed; --d4: #f6c3b5; --d5: #e2755c; --d6: #a6341f;
  --d0t: #ffffff; --d1t: #0b0d12; --d2t: #0b0d12; --d3t: #0b0d12; --d4t: #0b0d12; --d5t: #0b0d12; --d6t: #ffffff; } }
:root[data-theme="light"] { color-scheme: light; --bg: #f2f2f7; --panel: #ffffff; --panel2: #e8e8ed; --line: rgba(0,0,0,.08); --line2: rgba(0,0,0,.14);
  --text: #0b0d12; --text2: rgba(60,60,67,.74); --text3: rgba(60,60,67,.5); --blue: #0a6fe0; --green: #1f8a3b; --amber: #b25000; --red: #d70015;
  --green-bg: rgba(52,199,89,.14); --amber-bg: rgba(255,149,0,.15); --red-bg: rgba(255,59,48,.12); --grey-bg: rgba(142,142,147,.14); --blue-bg: rgba(10,111,224,.1);
  --tint: rgba(0,0,0,.025); --well: #f2f2f7; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05); --shadow-lg: 0 24px 64px rgba(20,30,60,.16), 0 2px 6px rgba(20,30,60,.06); --scrim: rgba(0,0,0,.34);
  --faint: rgba(60,60,67,.74); --link: #0860c4; --blue-t: #0860c4; --green-t: #177a32; --amber-t: #a84a00; --s1: #0a6fe0; --s2: #c93d74; --s3: #6250d6; --sref: #7a7a82; --thumb: #ffffff;
  --h0: #fbe3dc; --h1: #f6c3b5; --h2: #ee9d88; --h3: #e2755c; --h4: #c44a31; --h5: #a6341f; --h6: #7a2414;
  --h0t: #0b0d12; --h1t: #0b0d12; --h2t: #0b0d12; --h3t: #0b0d12; --h4t: #ffffff; --h5t: #ffffff; --h6t: #ffffff;
  --d0: #1c5cab; --d1: #6da7ec; --d2: #cde2fb; --d3: #e8e8ed; --d4: #f6c3b5; --d5: #e2755c; --d6: #a6341f;
  --d0t: #ffffff; --d1t: #0b0d12; --d2t: #0b0d12; --d3t: #0b0d12; --d4t: #0b0d12; --d5t: #0b0d12; --d6t: #ffffff; }

/* ================================================================ base. The page colour is on html and body, to the screen edges.
   Nothing here sets overflow-x on html or body: Duet's rail on the Duo overflows by 84 px on purpose. */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--tb-h) + 16px + env(safe-area-inset-top)); }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
h1, h2, h3, p, dl, dd, ol, ul, blockquote { margin: 0; padding: 0; } ol, ul { list-style: none; }
a { color: var(--link); text-decoration: none; }
button, input, select { font: inherit; color: inherit; } button { cursor: pointer; margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.skip { position: fixed; z-index: 1000; left: 8px; top: 8px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--panel); color: var(--text); font-weight: 600; transform: translateY(calc(-100% - 16px)); transition: transform var(--dur) var(--ease); }
.skip:focus { transform: none; box-shadow: var(--shadow-lg); }
.sp { flex: 1; }
.dim { color: var(--faint); }
.eye { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text2); }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid var(--line2); border-radius: 6px; background: var(--panel2); font: 500 11px/1 var(--mono); color: var(--text2); }
.glass { background: color-mix(in srgb, var(--bg) 74%, transparent); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
.nojs { margin: 24px; padding: 16px; border-radius: 12px; background: var(--panel); }

/* ================================================================ chrome: its own top bar, nav, ticker and control bar */

/* the ticker: the 28 most tested models passing by at 48 px a second. Pauses on hover, focus and its button */
.tk { display: flex; align-items: stretch; height: 44px; border-bottom: 1px solid var(--line); flex: none; }
.tk-l { display: none; align-items: center; padding: 0 12px 0 16px; border-right: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.tk-v { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.tk-t { display: flex; width: max-content; will-change: transform; }
.tk-run { display: flex; }
.tk-i { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px; font-size: 12.5px; color: var(--text); white-space: nowrap; border-right: 1px solid var(--line); }
.tk-i b { font-weight: 600; } .tk-i:hover { background: var(--tint); }
.tk-p { width: 44px; border: 0; border-left: 1px solid var(--line); background: none; color: var(--faint); font-size: 11px; flex: none; }
.tk-p:hover { color: var(--text); }
@keyframes tk { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) { html:not([data-motion="off"]) .tk-t { animation: tk 112s linear infinite; } .tk:hover .tk-t, .tk:focus-within .tk-t, .tk.paused .tk-t { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) { .tk-v { overflow-x: auto; scrollbar-width: none; } .tk-p { display: none; } }
html[data-motion="off"] .tk-v { overflow-x: auto; scrollbar-width: none; }
@media (min-width: 1100px) { .tk { height: 30px; } .tk-i { height: 30px; font-size: 12px; } .tk-l { display: flex; } .tk-p { width: 32px; } }

/* the control bar: metric, age band, fuel, test year. One row above everything it scopes */

/* segmented control */
.seg { display: inline-flex; padding: 2px; border-radius: 10px; background: var(--panel2); flex: none; max-width: 100%; }
.seg button { height: calc(var(--ctl) - 4px); padding: 0 11px; border: 0; border-radius: 8px; background: none; font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; transition: background-color var(--dur) var(--ease); }
.seg button[aria-checked="true"] { background: var(--thumb); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.seg button[aria-disabled="true"], .seg button:disabled { color: var(--faint); opacity: .62; cursor: not-allowed; text-decoration: line-through; text-decoration-color: var(--line2); }
.seg.s button { padding: 0 9px; font-size: 12.5px; }

/* workspace: one column, a panel grid, and from 1800 px three panes (rail, grid, inspector) */
.ws { flex: 1 0 auto; min-width: 0; }
main { min-width: 0; padding: 12px max(12px, env(safe-area-inset-right)) 24px max(12px, env(safe-area-inset-left)); }
main:focus { outline: none; }
@media (min-width: 1100px) { main { padding: 12px 16px 32px; } }
.rn { display: flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--text2); }
.rn:hover { background: var(--tint); color: var(--text); } .rn[aria-current] { background: var(--panel2); color: var(--text); font-weight: 600; }
.rl-h { margin: 18px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); } .rl-h small { display: block; margin-top: 2px; font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 11px; }
.wl a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; color: var(--text); }
.wl a:hover { background: var(--tint); } .wl .nmx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wl .v { font-weight: 600; } .wl .dl { font-size: 11.5px; min-width: 44px; justify-content: flex-end; }
.wl-c { margin: 8px 10px 0; } .wl-e { margin: 0 10px; font-size: 12px; color: var(--faint); line-height: 1.5; }
.kl div { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; padding: 0 10px; font-size: 12px; color: var(--text2); } .kl dt { display: flex; gap: 3px; align-items: center; }
.kl.big div { min-height: 40px; padding: 0; border-bottom: 1px solid var(--line); font-size: 14px; } .kl.big dd { text-align: right; color: var(--text); }
.rl-back { display: flex; align-items: center; gap: 8px; margin: 18px 10px 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text2); }
.insp-h { display: flex; align-items: center; margin-bottom: 10px; }

/* ================================================================ the view head and the quote header */
.vh { display: flex; flex-direction: column; gap: 6px; padding: 4px 2px 12px; }
.vh h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: 2px; } .vh h1 .vs { font-weight: 500; color: var(--faint); font-size: .7em; }
.vh-l { font-size: 13.5px; color: var(--text2); max-width: 72ch; } .vh-l b { color: var(--text); font-weight: 600; }
@media (min-width: 1100px) { .vh { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 10px; } .vh h1 { font-size: 22px; } .vh-l { text-align: right; font-size: 12.5px; max-width: 64ch; } }
.cmp-c { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.qt { padding: 2px 2px 12px; }
.cr { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; font-size: 13px; color: var(--faint); margin-left: -8px; }
.cr a, .cr span { display: inline-flex; align-items: center; min-height: var(--ctl); padding: 0 8px; } .cr a { color: var(--text2); } .cr a:hover { color: var(--text); } .cr i { font-style: normal; color: var(--text3); }
.qt-r { display: grid; gap: 12px; margin-top: 4px; }
.qt h1 { font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: 4px; }
@media (min-width: 760px) { .qt h1 { font-size: 40px; letter-spacing: -.035em; } }   /* the one scale, stepping where every other page steps */
 .qt h1 span { display: inline-block; }
.qt .eye { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lbl { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.fig { font-size: var(--fig); font-weight: 700; letter-spacing: -.035em; line-height: 1; margin: 4px 0 8px; } .fig > span { display: inline-block; } .fig small { font-size: .32em; font-weight: 600; letter-spacing: 0; color: var(--text2); margin-left: 6px; }
.qt-d { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text2);
  min-height: 25px; }   /* the delta pill's height, held on the earliest year too, so stepping years does not jump the page */
.qt-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; box-shadow: var(--shadow); }
.st { padding: 8px 12px 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; min-width: 0; }
.st dt { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st dd { margin-top: 2px; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-height: 25px; }   /* a cell holding a delta pill is taller than one holding plain text: hold the taller height for all of them */ .st dd small { font-size: 12px; font-weight: 500; color: var(--faint); } .st dd.txt { font-size: 14px; } .st dd a { display: inline-flex; align-items: center; min-height: 24px; }
.qt-n { margin-top: 10px; font-size: 12px; color: var(--faint); } .qt-n b { color: var(--text2); font-weight: 600; }
@media (min-width: 700px) { .sts { grid-template-columns: repeat(5, minmax(0, 1fr)); } .sts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .qt-r { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } .qt-acts { grid-column: 1 / -1; } .qt-fig { text-align: right; } .qt-d { justify-content: flex-end; } }
@media (min-width: 1100px) { .qt-r { grid-template-columns: minmax(0, 1fr) auto auto; gap: 32px; } .qt-acts { grid-column: auto; order: 3; align-self: end; padding-bottom: 2px; } .sts { grid-template-columns: repeat(10, minmax(0, 1fr)); } .sts:has(.st:nth-child(8):last-child) { grid-template-columns: repeat(8, minmax(0, 1fr)); } .sts:has(.st:nth-child(7):last-child) { grid-template-columns: repeat(7, minmax(0, 1fr)); } .sts:has(.st:nth-child(6):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); } .st dd { font-size: 15px; } .sts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================================================================ the panel grid */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .pn { grid-column: span 6; } .c3, .c4 { grid-column: span 3; } .c4:nth-last-child(1):nth-child(odd) { grid-column: span 6; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } .c3 { grid-column: span 3; } .c4, .c4:nth-last-child(1):nth-child(odd) { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; } .r2 { grid-row: span 2; } .r3 { grid-row: span 3; } .sm.twelve { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.pn { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow); overflow: hidden; }
.pn.bare { border: 0; background: none; box-shadow: none; overflow: visible; border-radius: 0; }
.pn-h { display: flex; align-items: center; gap: 8px; min-height: calc(var(--ctl) + 8px); padding: 0 4px 0 var(--pad); border-bottom: 1px solid var(--line); flex: none; }
.pn-h h2 { font-size: 14px; font-weight: 600; white-space: nowrap; flex: none; max-width: 70%; overflow: hidden; text-overflow: ellipsis; }
.pn-s { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .pn-s .cnt { color: var(--text); font-weight: 600; }
.pn-b { padding: var(--pad); flex: 1; min-width: 0; } .pn-b.flush { padding: 0; }
.pn-f { padding: 8px var(--pad); border-top: 1px solid var(--line); font-size: 12px; line-height: 1.45; color: var(--faint); }
.cap { margin-top: 8px; font-size: 12px; color: var(--faint); line-height: 1.45; } .cap b { color: var(--text); } .cap.pad { padding: 0 var(--pad) var(--pad); margin-top: 0; } .cap.warn { margin: 0 0 8px; color: var(--amber-t); }
.sub-h { padding: 10px var(--pad) 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); } .sub-h small { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 11px; }
@media (min-width: 1100px) { .pn-h { min-height: 38px; } .pn-h h2 { font-size: 13px; } }
@media (max-width: 699px) { .pn-h { flex-wrap: wrap; row-gap: 0; padding-top: 2px; padding-bottom: 2px; } .pn-h .seg, .pn-h .bt, .pn-h .chip { margin: 4px 0; } }

/* buttons, chips, fields */
.bt { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--ctl); padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; background: var(--panel2); color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; flex: none; }
.bt:hover { border-color: var(--text3); } .bt.pri { background: var(--fill); border-color: transparent; color: #fff; } .bt.on { color: var(--blue-t); background: var(--blue-bg); border-color: transparent; }
.bt.s { height: 36px; padding: 0 12px; font-size: 12.5px; } .bt.s::after { content: ""; position: absolute; inset: -4px 0; }
@media (min-width: 1100px) { .bt.s { height: 26px; padding: 0 10px; font-size: 12px; } .bt.s::after { content: none; } }
.acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chip { display: inline-flex; align-items: center; height: var(--ctl); padding: 0 12px; border: 1px solid var(--line2); border-radius: 999px; background: none; color: var(--text); font-size: 12.5px; font-weight: 500; white-space: nowrap; flex: none; }
.chip.on { background: var(--blue-bg); border-color: transparent; color: var(--blue-t); font-weight: 600; } .chip.add { border-style: dashed; color: var(--text2); }
.cchip { display: inline-flex; align-items: center; gap: 8px; height: var(--ctl); padding-left: 12px; border-radius: 999px; background: var(--panel2); font-size: 13px; font-weight: 600; }
.cchip i, .key { display: inline-block; width: 12px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 2px; }
.cchip button { width: 32px; height: 100%; border: 0; background: none; color: var(--faint); font-size: 11px; border-radius: 0 999px 999px 0; }
.fld svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fld { display: inline-flex; align-items: center; gap: 8px; height: var(--ctl); padding: 0 10px; border: 1px solid var(--line2); border-radius: 10px; background: var(--well); color: var(--faint); min-width: 0; flex: 1 1 180px; max-width: 320px; }
.fld input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16px; color: var(--text); } .fld:focus-within { outline: 2px solid var(--blue); outline-offset: 1px; }
.fld input::-webkit-search-cancel-button { display: none; }
.sel select { height: var(--ctl); padding: 0 28px 0 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--well) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238e8e93' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 10px; appearance: none; -webkit-appearance: none; font-size: 16px; max-width: 180px; }
@media (min-width: 1100px) { .fld input, .sel select { font-size: 13px; } }
.flt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px var(--pad); border-bottom: 1px solid var(--line); }
.pin { position: relative; z-index: 1; display: grid; place-items: center; width: var(--ctl); height: var(--ctl); border: 0; border-radius: 8px; background: none; color: var(--text3); font-size: 15px; line-height: 1; }
.pin:hover { color: var(--text); } .pin.on { color: var(--blue-t); }

/* deltas and tags: an arrow and a sign, never colour alone */
.dl { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; font-weight: 500; } .dl i { font-style: normal; font-size: .62em; }
.dl.worse { color: var(--red); } .dl.better { color: var(--green-t); } .dl.flat { color: var(--text2); }
.dl.pill { padding: 3px 8px; border-radius: 7px; font-weight: 600; font-size: 13px; } .dl.pill.worse { background: var(--red-bg); } .dl.pill.better { background: var(--green-bg); } .dl.pill.flat { background: var(--grey-bg); }
.tg { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 600; white-space: nowrap; flex: none; letter-spacing: 0; text-transform: none; }
.tg i { font-style: normal; font-weight: 700; } .tg.fail { background: var(--red-bg); color: var(--red); } .tg.adv { background: var(--amber-bg); color: var(--amber-t); } .tg.min, .tg.nl { background: var(--grey-bg); color: var(--text2); } .tg.ok { background: var(--green-bg); color: var(--green-t); }

/* ================================================================ tables: 30 px rows to a pointer, 44 px to a finger */
.tw { overflow: auto; overscroll-behavior-x: contain; scrollbar-width: thin; } .tw.tall { max-height: min(72vh, 900px); }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-row); }
.tbl th, .tbl td { height: var(--row); padding: 0 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; font-weight: 400; }
.tbl th:first-child, .tbl td:first-child { padding-left: var(--pad); } .tbl th:last-child, .tbl td:last-child { padding-right: var(--pad); }
.tbl thead th { position: sticky; top: 0; z-index: 3; background: var(--panel); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); height: max(32px, var(--row)); }
.tbl thead th button { display: inline-flex; align-items: center; gap: 4px; height: 100%; min-height: var(--row); padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.tbl thead th button:hover { color: var(--text); } .tbl .so::after { content: "↕"; opacity: .35; font-size: 10px; } .tbl th[aria-sort] { color: var(--text); } .tbl th[aria-sort="ascending"] .so::after { content: "▲"; opacity: 1; font-size: 8px; } .tbl th[aria-sort="descending"] .so::after { content: "▼"; opacity: 1; font-size: 8px; }
.tbl .n { text-align: right; } .tbl th.n button { flex-direction: row-reverse; }
.tbl tbody th { font-weight: 500; } .tbl tbody th a { color: var(--text); } .tbl tbody tr { position: relative; background: var(--panel); }
.tbl tbody th a[data-ent]::after, .tbl tbody th a[data-vt]::after { content: ""; position: absolute; inset: 0; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--panel), var(--text) 4%); }
.tbl tbody tr.sel, .tbl tbody tr.sel-row, .rl li.sel-row, .ix li.sel-row { background: var(--blue-bg); box-shadow: inset 2px 0 0 var(--blue); }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .rk, .rk { color: var(--faint); font-size: 12px; text-align: right; } .tbl td.rk { width: 36px; }
.tbl .pinned th a { color: var(--blue-t); }
.tbl .none { height: 96px; text-align: center; color: var(--faint); }
.tbl.gb th[scope="row"] { white-space: normal; }
.c-pin { width: 36px; padding-right: 0 !important; } .c-sp { width: 88px; }
.inb { display: inline-grid; justify-items: end; gap: 3px; min-width: 60px; }
.trk { display: block; width: 60px; height: 3px; border-radius: 2px; background: var(--panel2); overflow: hidden; }
.trk i { display: block; width: 100%; height: 100%; border-radius: 2px; background: var(--s1); will-change: transform; }
.trk i.w, .trk i.fail { background: var(--red); } .trk i.adv { background: var(--amber); } .trk i.min, .trk i.q { background: var(--grey); } .trk i.s1 { background: var(--s1); } .trk i.s2 { background: var(--s2); } .trk i.s3 { background: var(--s3); }
.key.s1, .cchip i.s1, .cmp-n i.s1 { background: var(--s1); } .key.s2, .cchip i.s2, .cmp-n i.s2 { background: var(--s2); } .key.s3, .cchip i.s3, .cmp-n i.s3 { background: var(--s3); }
@media (max-width: 699px) { .c-lo, .c-md { display: none; } .tbl .stick { position: sticky; left: 0; z-index: 2; background: inherit; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; } .tbl thead .stick { z-index: 4; background: var(--panel); } }
@media (max-width: 1439px) { .c-lo2 { display: none; } }

/* ranked rows */
.rl a, .ix a, .mv a { display: grid; align-items: center; gap: 8px; height: var(--row); padding: 0 var(--pad); border-bottom: 1px solid var(--line); color: var(--text); font-size: var(--fs-row); }
.rl a { grid-template-columns: 24px minmax(0, 1fr) 44px 50px 50px; } .rl li, .ix li, .wl li, .dfl li { background: var(--panel); }
.rl li:last-child a, .mv li:last-child a { border-bottom: 0; } .rl a:hover, .ix a:hover, .mv a:hover, .dfl a.dfl-a:hover { background: color-mix(in srgb, var(--panel), var(--text) 4%); }
.nmx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.rl .trk { width: 44px; } .rl .v, .ix .v, .mv .v { text-align: right; font-weight: 600; } .rl .dl, .mv .dl { justify-content: flex-end; font-size: .92em; }
.mv a { grid-template-columns: minmax(0, 1fr) 64px 62px 40px; } .mv .v small { color: var(--faint); margin: 0 3px; font-weight: 400; }
.mv-t { position: relative; height: 12px; background: linear-gradient(var(--line2), var(--line2)) center / 100% 1px no-repeat; }
.mv-t i { position: absolute; top: 50%; } .mv-t .a, .mv-t .b { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; } .mv-t .a { border: 1.5px solid var(--text2); background: var(--panel); } .mv-t .b.better { background: var(--green-t); } .mv-t .b.worse { background: var(--red); }
.mv-t .ln { height: 2px; margin-top: -1px; opacity: .5; } .mv-t .ln.better { background: var(--green-t); } .mv-t .ln.worse { background: var(--red); }
.ix { padding-bottom: 4px; } .ix a { grid-template-columns: 30px minmax(0, 1fr) minmax(70px, 1.1fr) 34px 52px; } .ix .v2 { text-align: right; color: var(--text2); }
.ix-t { position: relative; height: 10px; background: linear-gradient(var(--axis), var(--axis)) center / 1px 100% no-repeat; } .ix-t i { position: absolute; top: 2px; height: 6px; border-radius: 3px; } .ix-t .b { background: var(--d1); } .ix-t .w { background: var(--d5); }
.ix-h { display: flex; justify-content: space-between; padding: 6px var(--pad); font-size: 11px; color: var(--faint); border-bottom: 1px solid var(--line); } .ix-h b { font-weight: 600; color: var(--text2); }
@media (min-width: 1100px) { .ix:not(.one) { columns: 2; column-gap: 0; column-rule: 1px solid var(--line); } .ix li { break-inside: avoid; } }
/* defect rows */
.dfl-a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; padding: 8px var(--pad) 9px; border-bottom: 1px solid var(--line); color: var(--text); font-size: var(--fs-row); min-height: var(--row); }
.dfl li:last-child .dfl-a { border-bottom: 0; } .dfl .nmx small { display: block; font-size: 11.5px; font-weight: 400; color: var(--faint); overflow: hidden; text-overflow: ellipsis; }
.dfl .v { font-weight: 600; text-align: right; } .dfl .v small { font-size: 11.5px; font-weight: 500; color: var(--faint); margin-left: 6px; } .dfl .trk { grid-column: 1 / -1; width: 100%; }
.wd li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px var(--pad); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text2); } .wd li:last-child { border: 0; } .wd li > span:first-child { display: flex; gap: 4px; }

/* tiles */
.kps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (min-width: 700px) { .kps { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (min-width: 1100px) { .kps { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kp { padding: 10px var(--pad) 11px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow); min-width: 0; }
.kp dt { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp dd { margin: 3px 0 2px; min-height: 30px; display: flex; align-items: center; } .big { font-size: 24px; font-weight: 700; letter-spacing: -.025em; }
.kp-f { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 20px; } .kp.nl { border-style: dashed; }

/* compare cards */
.cmp { display: grid; gap: var(--gap); } @media (min-width: 700px) { .cmp { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cmp-k { display: grid; gap: 4px; padding: 12px var(--pad); border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow); color: var(--text); min-width: 0; }
.cmp-n { display: flex; align-items: center; gap: 8px; font-size: 14px; min-width: 0; } .cmp-n b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cmp-n i { width: 14px; height: 4px; border-radius: 2px; flex: none; } .cmp-n .tg { margin-left: auto; }
.cmp-v { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; justify-self: start; } .cmp-d { font-size: 13px; color: var(--text2); }
.cmp-s { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); } .cmp-s b { color: var(--text); font-weight: 600; }

/* ================================================================ charts */
.ch { height: 220px; } .ch.tall { height: 250px; } .ql-ch { height: 150px; margin: 10px 0; }
@media (min-width: 1100px) { .ch { height: 232px; } .ch.tall { height: 300px; } }
.lc { display: flex; flex-direction: column; min-width: 0; }
.lc-read { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; min-height: 24px; font-size: 12.5px; color: var(--text2); }
.lc-read b { color: var(--text); font-weight: 600; } .lc-s { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12.5px; color: var(--text2); } .lc-s i { width: 12px; height: 3px; border-radius: 2px; flex: none; }
.lc-s i.s1 { background: var(--s1); } .lc-s i.s2 { background: var(--s2); } .lc-s i.s3 { background: var(--s3); } .lc-s i.ref { background: var(--sref); }
.lc-age { padding: 1px 7px; border-radius: 6px; background: var(--panel2); color: var(--text); } .lc-nn { margin-left: auto; color: var(--faint); font-size: 12px; }
.lc-plot { flex: 1; min-height: 0; position: relative; } .lc-plot svg { display: block; position: absolute; inset: 0; touch-action: pan-y; cursor: crosshair; border-radius: 6px; -webkit-user-select: none; user-select: none; }
.lc-ticks line { stroke: var(--grid); } .lc-ticks text, .lc-x, .lc-sl { fill: var(--faint); font-size: 11px; } .lc-el { fill: var(--text2); font-size: 12px; font-weight: 500; }
.lc-shade { fill: var(--tint); } .lc-ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
path.s1 { stroke: var(--s1); } path.s2 { stroke: var(--s2); } path.s3 { stroke: var(--s3); } path.ref { stroke: var(--sref); stroke-width: 1.5; }
circle.s1 { fill: var(--s1); } circle.s2 { fill: var(--s2); } circle.s3 { fill: var(--s3); } circle.ref { fill: var(--sref); }
.lc-g0 { stop-color: var(--s1); stop-opacity: .26; } .lc-g1 { stop-color: var(--s1); stop-opacity: 0; } .lc-q { fill: var(--s1); opacity: .16; }
.lc-cur line { stroke: var(--text2); stroke-width: 1; } .lc-cur circle { stroke: var(--panel); stroke-width: 2; }
.lc-clip { transform-box: fill-box; transform-origin: 0 0; }
@media (prefers-reduced-motion: no-preference) { html:not([data-motion="off"]) .lc-cur, html:not([data-motion="off"]) .lc-cur circle, html:not([data-motion="off"]) .lc-clip { transition: transform .12s var(--ease); } }
.tests { position: relative; height: 26px; margin: 2px 14px 0 38px; border-bottom: 1px solid var(--axis); }
.tests i { position: absolute; bottom: 0; left: calc(var(--x) * 100%); width: 8px; margin-left: -4px; height: var(--h); border-radius: 2px 2px 0 0; background: var(--text3); }
.sp { } svg.sp { display: block; flex: none; overflow: visible; } svg.sp path, svg.mn path { fill: none; stroke-linecap: round; stroke-linejoin: round; } svg.sp .l { stroke-width: 1.5; } svg.sp .r, svg.mn .r { stroke: var(--sref); stroke-width: 1; opacity: .7; }
svg.mn { display: block; width: 100%; height: 44px; margin: 4px 0; } svg.mn .l { stroke-width: 1.75; vector-effect: non-scaling-stroke; } svg.mn .r { vector-effect: non-scaling-stroke; }
.sm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } @media (min-width: 700px) { .sm { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sm.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (min-width: 1100px) { .sm { grid-template-columns: repeat(6, minmax(0, 1fr)); } .sm.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sm-c { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); min-width: 0; } .sm-c:hover { border-color: var(--line2); background: var(--tint); }
.sm-h { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; } .sm-h b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sm-f { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); }
/* histogram */
.hg-plot { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 150px; margin-top: 50px; border-bottom: 1px solid var(--axis); }
.hg-b { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; border-radius: 3px; } .hg-b i { display: block; width: 100%; height: 100%; border-radius: 3px 3px 0 0; background: var(--s1); transform-origin: 50% 100%; transition: transform .42s var(--ease); }
.hg-b:hover i, .hg-b:focus-visible i { filter: brightness(1.25); } .hg-b.on i { background: var(--text); }
.hg-m { position: absolute; bottom: 0; top: calc(-18px - var(--lv) * 15px); width: 0; border-left: 1.5px dashed var(--sref); pointer-events: none; } .hg-m.pin { border-left: 1.5px solid var(--text); }
.hg-m b { position: absolute; top: -3px; left: 5px; font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--text2); line-height: 1; } .hg-m.pin b { color: var(--text); } .hg-m.flip b { left: auto; right: 5px; }
.hg-x { position: relative; height: 20px; } .hg-x span { position: absolute; top: 4px; transform: translateX(-50%); font-size: 11px; color: var(--faint); } .hg-x span:first-child { transform: none; } .hg-x span:last-child { transform: translateX(-100%); }
/* heatmaps */
.hm-wrap { overflow-x: auto; padding: 8px var(--pad) 4px; scrollbar-width: thin; }
.hm { border-collapse: separate; border-spacing: 2px; width: 100%; font-size: 11px; }
.hm th, .hm td { height: 24px; min-width: 25px; padding: 0 2px; text-align: center; font-weight: 500; border-radius: 4px; }
.hm thead th { color: var(--faint); font-weight: 600; } .hm thead th.on { color: var(--text); background: var(--panel2); } .hm .hm-c { text-align: left; }
.hm tbody th { position: sticky; left: 0; z-index: 1; background: var(--panel); text-align: left; padding-right: 8px; font-size: 12px; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; font-weight: 500; } .hm tbody th a { color: var(--text); } .hm tbody th a:hover { color: var(--link); }
.hm tr.self th { font-weight: 700; } .hm td.na { color: var(--text3); } .hm td.on { box-shadow: 0 0 0 1.5px var(--text); } .hm td:hover { box-shadow: 0 0 0 1.5px var(--text2); }
.h0 { background: var(--h0); color: var(--h0t); } .h1 { background: var(--h1); color: var(--h1t); } .h2 { background: var(--h2); color: var(--h2t); } .h3 { background: var(--h3); color: var(--h3t); } .h4 { background: var(--h4); color: var(--h4t); } .h5 { background: var(--h5); color: var(--h5t); } .h6 { background: var(--h6); color: var(--h6t); }
.d0 { background: var(--d0); color: var(--d0t); } .d1 { background: var(--d1); color: var(--d1t); } .d2 { background: var(--d2); color: var(--d2t); } .d3 { background: var(--d3); color: var(--d3t); } .d4 { background: var(--d4); color: var(--d4t); } .d5 { background: var(--d5); color: var(--d5t); } .d6 { background: var(--d6); color: var(--d6t); }
.hm-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px var(--pad) 10px; font-size: 11.5px; color: var(--faint); } .hm-key i { width: 16px; height: 10px; border-radius: 3px; } .hm-key span:first-child { margin-right: 4px; } .hm-key i + span { margin: 0 8px 0 4px; }
.spec .hm-key { padding-left: 0; }

/* placeholders and states: clearly labelled, never a made-up figure */
.ph, .empty { display: grid; gap: 6px; justify-items: start; align-content: center; min-height: 120px; height: 100%; padding: 16px; border: 1px dashed var(--line2); border-radius: 10px; background: repeating-linear-gradient(-45deg, transparent 0 8px, var(--tint) 8px 16px); }
.ph b, .empty b { font-size: 13.5px; font-weight: 600; } .ph > span:not(.tg), .empty span { font-size: 12.5px; line-height: 1.5; color: var(--text2); max-width: 60ch; } .ph .acts { margin-top: 6px; } .pn-b.flush > .ph { margin: var(--pad); height: auto; }
.sk { display: grid; gap: 8px; } .sk i { height: 14px; border-radius: 6px; background: linear-gradient(100deg, var(--panel2) 30%, color-mix(in srgb, var(--panel2), var(--text) 6%) 50%, var(--panel2) 70%) 0 0 / 250% 100%; } .sk i:nth-child(2) { width: 72%; } .sk i:nth-child(3) { width: 46%; }
@media (prefers-reduced-motion: no-preference) { .sk i { animation: shimmer 1.2s linear infinite; } } @keyframes shimmer { from { background-position: 120% 0; } to { background-position: -20% 0; } }
.spec { display: grid; gap: 12px; justify-items: start; } .spec > .ph, .spec > .empty, .spec > .sk, .spec > .fld { width: 100%; height: auto; min-height: 0; }
.sws { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; } .sw { display: grid; grid-template-columns: 28px 1fr; gap: 0 8px; align-items: center; font-size: 12.5px; } .sw i { grid-row: span 2; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line2); } .sw code { font: 11px var(--mono); color: var(--faint); }
.ty { display: grid; gap: 10px; } .ty small { display: block; font-size: 12px; color: var(--faint); } .ty .fig { margin: 0; }

/* cite, prose, code */
.ct-n { font-size: 12.5px; font-weight: 600; color: var(--text2); } .ct-v { font-size: 32px; font-weight: 700; letter-spacing: -.03em; margin: 2px 0 10px; } .ct-v small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--text2); margin-left: 8px; }
.ct blockquote { padding: 12px 14px; border-radius: 10px; background: var(--well); font-size: 14px; line-height: 1.5; color: var(--text2); } .ct blockquote b { color: var(--text); }
.ct-m { margin: 10px 0 12px; } .ct-m div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; } .ct-m dt { color: var(--faint); } .ct-m dd { color: var(--text2); overflow-wrap: anywhere; }
.prose { display: grid; gap: 10px; max-width: 110ch; } .prose p { font-size: 13.5px; line-height: 1.55; color: var(--text2); } .prose b { color: var(--text); font-weight: 600; } .prose .lead { font-size: 15px; color: var(--text); }
.p { font-size: 13px; color: var(--text2); margin: 0 0 10px; } .acts + .p { margin-top: 14px; }
.code { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--well); font: 12px/1.5 var(--mono); color: var(--text2); overflow-x: auto; }

/* quick look: inspector pane (wide) and bottom sheet (phone) */
.ql h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; } .ql h2 span { display: inline-block; }
.ql-f { display: flex; align-items: center; gap: 12px; margin-top: 6px; } .ql-f .fig { font-size: 40px; margin: 0; } .ql-d { display: grid; gap: 4px; justify-items: start; } .ql-d small { font-size: 12px; color: var(--faint); }
.ql .sts { margin-top: 0; box-shadow: none; } .ql .sub-h { padding-left: 0; } .ql .dfl-a { padding-left: 0; padding-right: 0; min-height: 0; } .ql-a { margin-top: 14px; } .ql .dfl li { background: none; }
.sheet .ql .dfl { display: none; } .sheet .ql .sub-h { display: none; }

/* ================================================================ layers: sheet, palette, keys, menu, tooltip, toast */
.scrim { position: fixed; inset: 0; z-index: 70; background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); view-transition-name: scrim; touch-action: none; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; flex-direction: column; max-height: 90vh; max-height: 90svh; border-radius: 20px 20px 0 0; background: var(--panel); box-shadow: var(--shadow-lg);
  padding-bottom: max(8px, env(safe-area-inset-bottom)); view-transition-name: sheet; }
.sheet-g { position: relative; display: grid; place-items: center; height: 44px; flex: none; touch-action: none; cursor: grab; } .sheet-g i { width: 36px; height: 5px; border-radius: 3px; background: var(--line2); } .sheet-x { position: absolute; right: 6px; top: 0; width: 44px; height: 44px; }
.sheet-b { overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 12px; }
.fs { display: grid; gap: 14px; } .fs h2 { font-size: 20px; font-weight: 700; } .fs .cb-g { flex-direction: column; align-items: stretch; gap: 6px; } .fs .seg { display: flex; flex-wrap: wrap; } .fs .seg button { flex: 1 0 auto; } .fs .cb-n { display: block; font-size: 12px; color: var(--faint); }
@media (max-width: 699px) { html.sheet-open { background: var(--panel); } }   /* the sheet's colour runs on behind Safari's bottom bar */
@media (min-width: 700px) { .sheet { bottom: auto; top: 12vh; margin: 0 auto; width: min(520px, 92vw); border-radius: 20px; border: 1px solid var(--line2); } .sheet-g i { display: none; } .sheet-g { cursor: default; } }
dialog { color: var(--text); } dialog::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pal, .keys { padding: 0; border: 1px solid var(--line2); border-radius: 16px; background: color-mix(in srgb, var(--panel) 88%, transparent); -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); box-shadow: var(--shadow-lg); width: min(640px, 92vw); max-height: 72vh; margin: 12vh auto auto; overflow: hidden; }
.pal[open] { display: flex; flex-direction: column; } .keys { width: min(460px, 92vw); padding: 8px 20px 20px; overflow: auto; } .keys-h { display: flex; align-items: center; justify-content: space-between; min-height: 48px; } .keys-h h2 { font-size: 18px; }
.pal-top { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); flex: none; color: var(--faint); } .pal-top input { flex: 1; min-width: 0; height: 52px; border: 0; background: none; outline: none; font-size: 17px; color: var(--text); } .pal-top form { display: flex; }
.pal-list { overflow-y: auto; overscroll-behavior: contain; padding: 4px 6px 8px; flex: 1; } .pal-gl { padding: 10px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.pal-i { display: flex; align-items: center; gap: 10px; min-height: var(--ctl); padding: 0 10px; border-radius: 9px; font-size: 14px; cursor: pointer; } .pal-i[aria-selected="true"] { background: var(--blue-bg); } .pal-i .v { margin-left: auto; color: var(--text2); font-size: 13px; } .pal-i kbd { margin-left: auto; } .pal-i .v + kbd { margin-left: 0; }
@media (min-width: 1100px) { .pal-i { min-height: 34px; } }
.pal-e { display: grid; gap: 4px; padding: 28px 16px; text-align: center; color: var(--text2); font-size: 13px; } .pal-e b { color: var(--text); font-size: 15px; }
.pal-f { display: flex; align-items: center; gap: 16px; padding: 8px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); flex: none; } .pal-f span { display: inline-flex; gap: 4px; align-items: center; } .pal-fn { margin-left: auto; }
@media (max-width: 699px) { .pal, .keys { width: 100%; max-width: 100%; margin: auto 0 0; border: 0; border-radius: 20px 20px 0 0; max-height: none; height: 88vh; height: 88svh; padding-bottom: env(safe-area-inset-bottom); background: var(--panel); } .keys { height: auto; max-height: 88svh; } .pal-f { display: none; } }
@media (prefers-reduced-motion: no-preference) { .pal[open], .keys[open] { animation: pal-in .26s var(--ease); } @media (max-width: 699px) { .pal[open], .keys[open] { animation: sheet-up .36s var(--ease); } } }
@keyframes pal-in { from { opacity: 0; transform: translateY(-8px) scale(.985); } } @keyframes sheet-up { from { transform: translateY(100%); } } @keyframes sheet-down { to { transform: translateY(100%); } } @keyframes fade-in { from { opacity: 0; } } @keyframes fade-out { to { opacity: 0; } }
.menu { position: fixed; z-index: 90; min-width: 216px; padding: 4px; border: 1px solid var(--line2); border-radius: 12px; background: color-mix(in srgb, var(--panel2) 86%, transparent); box-shadow: var(--shadow-lg); }
.menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: var(--ctl); min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font-size: 13px; text-align: left; } .menu button:hover, .menu button:focus-visible { background: var(--blue-bg); outline: none; } .menu small { color: var(--faint); font-size: 11.5px; }
.tip { position: fixed; z-index: 95; max-width: 280px; padding: 6px 9px; border: 1px solid var(--line2); border-radius: 8px; background: color-mix(in srgb, var(--panel2) 90%, transparent); font-size: 12px; line-height: 1.4; pointer-events: none; box-shadow: var(--shadow-lg); }
.toast { position: fixed; z-index: 99; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); padding: 9px 16px; border: 1px solid var(--line2); border-radius: 999px; background: color-mix(in srgb, var(--panel2) 90%, transparent); font-size: 13px; font-weight: 500; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); box-shadow: var(--shadow-lg); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* footer. Safari's bars are glass over the page: the footer's content ends the bar's height above the screen bottom.
   It is the last child of the .app column, so its bottom padding is the whole page's end-of-scroll spacer: the phone tab bar's
   room (--mx-tabs-h) is reserved here too, which is how app-v3/duo.css reserves Safari's bar with .pg-scroll::after */
.ft { flex: none; margin-top: 8px; border-top: 1px solid var(--line); padding: 14px max(16px, env(safe-area-inset-right)) calc(14px + var(--mx-tabs-h) + max(var(--sh-bars, 0px), env(safe-area-inset-bottom) + var(--sh-pill, 0px))) max(16px, env(safe-area-inset-left)); font-size: 12px; line-height: 1.5; color: var(--faint); }
.ft b { color: var(--text2); } .ft p { max-width: 110ch; } .ft-l { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 4px; } .ft-l a, .ft-l button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--text2); background: none; border: 0; padding: 0; font-size: 12.5px; }
@media (min-width: 1800px) { .ft { margin-left: 216px; margin-right: 388px; } }

/* ================================================================ motion (DESIGN-SYSTEM.md). Purposeful only; instant with reduced motion */
@media (prefers-reduced-motion: no-preference) {
  /* the prototype's system: panels rise on arrival (40ms apart), and what is inside them draws as they scroll into view */
  html:not([data-motion="off"]) .vw.fresh .pn { animation: rise 260ms var(--ease) both; animation-delay: calc(min(var(--i, 0), 8) * 40ms); }
  .pn.pre .trk i { transform: translateX(-100%) !important; }
  .pn.go .trk i { animation: bar 560ms var(--ease) both; animation-delay: calc(var(--i, 0) * 32ms); }
  .pn.pre .hm td { opacity: 0; } .pn.go .hm td { animation: fade-in .3s ease-out both; animation-delay: calc(120ms + var(--c, 0) * 26ms); }
  .pn.pre svg.mn .l, .pn.pre svg.sp .l { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .pn.go svg.mn .l, .pn.go svg.sp .l { stroke-dasharray: 1; animation: draw 760ms cubic-bezier(.45,0,.2,1) both; }
  .pn.pre .ix-t i { transform: scaleX(0); } .pn.go .ix-t i { animation: grow 560ms var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } } @keyframes bar { from { transform: translateX(-100%); } } @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } } @keyframes grow { from { transform: scaleX(0); } }
.ix-t .b { transform-origin: 100% 50%; } .ix-t .w { transform-origin: 0 50%; }
/* row to detail: the name and the figure travel; everything else cross-fades under them */
::view-transition-group(vt-name), ::view-transition-group(vt-val) { animation-duration: .42s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
::view-transition-old(vt-name), ::view-transition-new(vt-name), ::view-transition-old(vt-val), ::view-transition-new(vt-val) { height: 100%; width: 100%; object-fit: contain; object-position: left center; }
::view-transition-new(sheet):only-child { animation: sheet-up .42s cubic-bezier(.2,.8,.2,1); } ::view-transition-old(sheet):only-child { animation: sheet-down .26s cubic-bezier(.4,0,1,1); }
::view-transition-new(scrim):only-child { animation: fade-in .3s ease-out; } ::view-transition-old(scrim):only-child { animation: fade-out .26s ease-in; }
@media (min-width: 700px) { ::view-transition-new(sheet):only-child { animation: pal-in .26s cubic-bezier(.2,.8,.2,1); } ::view-transition-old(sheet):only-child { animation: fade-out .18s ease-in; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* phone: the panel's menu stays in the corner, and a ranking shows its first six rows (the screener holds the rest) */
@media (max-width: 699px) {
  .pn-h { position: relative; padding-right: 48px; } .pn-h .more { position: absolute; right: 2px; top: 2px; } .pn-h h2 { max-width: 100%; }
  #p-best .rl li:nth-child(n+7), #p-worst .rl li:nth-child(n+7) { display: none; }
}
.mv .v small { font-size: 11px; }
.seg button { position: relative; min-width: 44px; } .seg button::after { content: ""; position: absolute; inset: -2px 0; }
.st dd a { position: relative; } .st dd a::after { content: ""; position: absolute; inset: -10px -4px; }
@media (min-width: 1100px) { .seg button { min-width: 0; } }
.st { position: relative; } .st dd a { position: static; } .st dd a::after { inset: 0; }
@media (max-width: 1099px) { .st dd a::after { inset: 0 0 -16px; z-index: 1; } }
@media (max-width: 699px) { .tbl { font-size: 14px; } .tbl th, .tbl td { padding: 0 6px; } .tbl td.rk { width: 30px; } .tbl .stick { max-width: 40vw; } .inb { min-width: 52px; } .inb .trk { width: 52px; } }
@media (max-width: 1099px) { .st { padding-bottom: 16px; } .tbl tbody th a { display: flex; align-items: center; height: var(--row); } }
.cb-fa { font-style: normal; } @media (min-width: 700px) { .cb-fa { display: none; } }

/* ================================================================ production additions */
.seg button[data-nq] { color: var(--faint); }
.qt-y { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px; border-radius: 8px; background: var(--amber-bg); color: var(--amber-t); font-size: 12.5px; font-weight: 600; }
.qt-acts { margin-top: 10px; }
.fig.na { font-size: 22px; letter-spacing: -.01em; color: var(--text2); }
.vw.busy { opacity: .55; transition: opacity .2s; }
.pn.hl { box-shadow: 0 0 0 2px var(--blue); }
.bl a, .bl > li > div { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(54px, auto); align-items: center; gap: 10px; min-height: var(--row); padding: 4px var(--pad); border-bottom: 1px solid var(--line); color: var(--text); font-size: var(--fs-row); }
.bl li:last-child a, .bl li:last-child > div { border-bottom: 0; }
.bl .nmx small { display: block; font-size: 11.5px; font-weight: 400; color: var(--faint); }
.bl .v { text-align: right; font-weight: 600; } .bl .n2 { text-align: right; color: var(--faint); font-size: 12px; }
.bl .trk { width: 100%; }
.bl a:hover { background: color-mix(in srgb, var(--panel), var(--text) 4%); }
.rl a { grid-template-columns: 26px minmax(0, 1fr) 44px 54px; }
.mv2 { display: grid; grid-template-columns: 1fr; }
@media (min-width: 700px) { .mv2 { grid-template-columns: 1fr 1fr; } .mv2 > div + div { border-left: 1px solid var(--line); } }
.ag { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ag .st { border-right: 1px solid var(--line); }
.ag-h { display: flex; align-items: center; gap: 8px; padding: 8px var(--pad); border-bottom: 1px solid var(--line); }
.ag-h b { font-size: 15px; } .ag-h .sp { flex: 1; }
.ag-h .ib { width: 40px; height: 40px; border: 1px solid var(--line2); border-radius: 999px; background: var(--panel); color: var(--text); font-size: 22px; line-height: 1; touch-action: manipulation; cursor: pointer; transition: background .12s, transform .12s; }
.ag-h .ib:hover { background: var(--panel2); } .ag-h .ib:active { transform: scale(.92); background: var(--panel2); }
.ag-h .ib:disabled { color: var(--faint); opacity: .45; cursor: default; transform: none; background: var(--panel); }
.ag-h b { min-width: 6ch; text-align: center; }
@media (prefers-reduced-motion: no-preference) { html:not([data-motion="off"]) .ag-h b.tick { animation: ag-tick .4s var(--ease); } }
@keyframes ag-tick { from { color: var(--blue); transform: scale(1.08); } }
.empty .bt { margin-top: 6px; }
.tbl td.n .trk { margin-left: auto; margin-top: 3px; }
.tbl .nmk { color: var(--faint); font-size: 12px; margin-left: 6px; font-weight: 400; }
.more-rows { display: flex; justify-content: center; padding: 10px; border-top: 1px solid var(--line); }
.pick { position: relative; flex: 1 1 220px; max-width: 360px; }
.pick-l { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); padding: 4px; border: 1px solid var(--line2); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-lg); }
.pick-l button { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: var(--ctl); padding: 0 10px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: 13.5px; }
.pick-l button:hover, .pick-l button:focus-visible { background: var(--blue-bg); outline: none; }
.cmp-t td, .cmp-t th { white-space: nowrap; }
.src { margin: 2px 2px 10px; font-size: 11.5px; color: var(--faint); } .src a { color: var(--text2); }
.lc-plot { min-height: 160px; }
.tests i { left: calc(var(--x) * (100% - 0px)); }
.wd .tg { margin-right: 2px; }
.pc { display: grid; grid-template-columns: 1fr; } @media (min-width: 700px) { .pc { grid-template-columns: 1fr 1fr; } .pc > div + div { border-left: 1px solid var(--line); } }
.ldr { padding: var(--pad); }
@media (max-width: 699px) {
  .flt .fld { flex: 1 1 100%; max-width: none; }
  .flt .sel { flex: 1 1 0; min-width: 0; } .flt .sel select { width: 100%; max-width: none; }
}
@media (min-width: 700px) and (max-width: 1099px) { .sts, .sts:has(.st) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (min-width: 1100px) { .sts, .sts:has(.st) { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.lk-b { display: inline-flex; gap: 8px; align-items: center; }
@media (max-width: 699px) { .lk-b { flex-basis: 100%; margin-top: 2px; } }
.tbl td a[data-ent] { color: var(--text); font-weight: 500; }
.tbl tbody td a[data-ent]::after { content: ""; position: absolute; inset: 0; }
.inb { vertical-align: middle; line-height: 1.2; }

/* ================================================================ art: make logos, model clay art, the composer and its results */
.logo { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--s, 28px); height: var(--s, 28px); border-radius: calc(var(--s, 28px) * .26); background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); overflow: hidden; }
.logo img { width: 78%; height: 78%; object-fit: contain; }
.logo .lt { font-size: calc(var(--s, 28px) * .32); font-weight: 700; color: #111; letter-spacing: .02em; }
.th { flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--w, 48px); aspect-ratio: 3 / 2; }
.th img { width: 100%; height: 100%; object-fit: contain; }
.th.none { background: var(--panel2); border-radius: 8px; }
a.ent { display: inline-flex; align-items: center; gap: 10px; min-width: 0; } a.ent > span { overflow: hidden; text-overflow: ellipsis; }

/* ranked and bar lists gain a picture column when a row carries one */
.rl a:has(> .th) { grid-template-columns: 26px 44px minmax(0, 1fr) 44px 54px; }
.bl a:has(> .th) { grid-template-columns: 44px minmax(0, 1fr) auto minmax(54px, auto); }

/* the makes shelf on the overview */
.shelf { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 12px var(--pad) 14px; }
.shelf::-webkit-scrollbar { display: none; }
.mt { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 104px; padding: 12px 6px 10px; border-radius: 14px; color: var(--text); text-align: center; }
.mt:hover { background: var(--tint); }
.mt b { font-size: 13px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt > span:last-child { font-size: 12px; color: var(--text2); }
.mt.more .logo { background: var(--panel2); box-shadow: none; } .mt.more .lt { color: var(--text2); font-size: 15px; }

/* the picture at the top of a model or make */
.mhero { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 4px 0 6px; }
.stage { width: 100%; max-width: 260px; aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; border-radius: 22px; background: radial-gradient(120% 90% at 50% 70%, color-mix(in srgb, var(--panel2), var(--text) 4%), var(--panel) 70%); border: 1px solid var(--line); overflow: hidden; }
.stage img { width: 94%; height: 94%; object-fit: contain; }
.stage.lg { max-width: 150px; }
.mchip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 7px; border-radius: 999px; background: var(--panel2); color: var(--text); font-size: 13px; font-weight: 600; }
.mchip:hover { background: color-mix(in srgb, var(--panel2), var(--text) 6%); }
@media (min-width: 900px) {
  .qt.art { display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 17vw, 260px); grid-template-rows: auto 1fr; column-gap: 28px; align-items: end; }
  .qt.art > * { grid-column: 1 / -1; }
  .qt.art > .cr, .qt.art > .qt-r { grid-column: 1; }
  .qt.art > .cr { align-self: start; }
  .qt.art > .mhero { grid-column: 2; grid-row: 1 / span 2; align-items: center; margin: 0; }
  .qt.art .stage { max-width: none; }
  .qt.art > .mhero { position: relative; }
  .qt.art .mhero > .mchip { position: absolute; left: 10px; top: 10px; }   /* top left: a car sits low in its frame, the sky above it is free */
  .qt.art .mhero.mk .stage { max-width: 260px; }
}

/* the Spotlight: a centred command panel over a dimmed, blurred page; the composer on top, results below a hairline */
.composer .kbd { display: none; align-items: center; justify-content: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line2); font: 11px/1 inherit; color: var(--text3); }
.composer .clr { display: none; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 20px; background: none; color: var(--text2); }
.composer .clr svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cw.has-text .clr { display: grid; } .cw.has-text .kbd { display: none !important; }
@media (min-width: 700px) { .composer .kbd { display: inline-flex; } .composer .clr { width: 32px; height: 32px; } }
.results { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 6px 6px 8px; border-top: 1px solid var(--line); }
.results[hidden] { display: none; }
.spot-f { flex: none; display: none; gap: 16px; padding: 8px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--faint); }
.spot-f span { display: inline-flex; align-items: center; gap: 4px; } .spot-f kbd { min-width: 18px; height: 18px; }
@media (min-width: 700px) and (hover: hover) { .spot-f { display: flex; } }
.cw:not([hidden]) .spot-bg { animation: spot-bg 180ms ease-out both; }
.cw:not([hidden]) .spot-p { animation: spot-in 220ms var(--ease) both; }
.cw.out .spot-bg { animation: spot-bg 130ms ease-in reverse both; }
.cw.out .spot-p { animation: spot-out 130ms ease-in both; }
@keyframes spot-bg { from { opacity: 0; } to { opacity: 1; } }
@keyframes spot-in { from { opacity: 0; transform: translateY(-8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes spot-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(.97); } }
.ro .ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--panel2); color: var(--text2); }
.ro .ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rg { padding: 10px 12px 4px; font-size: 12px; font-weight: 600; color: var(--text3); }
.ro { display: flex; align-items: center; gap: 12px; min-height: 48px; scroll-margin: 6px; padding: 4px 10px; border-radius: 14px; color: var(--text); }
.ro[aria-selected="true"], .ro:hover { background: var(--panel2); }
.ro .nm { flex: 1; min-width: 0; } .ro .nm b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro .nm span { display: block; font-size: 12.5px; color: var(--text2); }
.ro .vv { font-weight: 600; font-size: 14px; }
.ro .th { --w: 52px; }
.re { display: grid; gap: 4px; padding: 24px 16px; text-align: center; font-size: 13px; color: var(--text2); } .re b { color: var(--text); font-size: 15px; }

/* route changes, as in the prototype: the row's picture, name and logo fly into the hero; the old page fades out fast, the new one in */
/* Routes: the chrome (top bar, sidebar, phone tab bar) is named and held still, so it never fades or ghosts; the rest of
   the viewport (the root) swaps fast: the old page leaves in 110ms, the new one comes in after it, so the two never show at
   once, in light or dark. The root is a viewport snapshot, so each side keeps its own scroll.
   On the Duo there is no view transition: duo.js's capsules are live glass (a backdrop-filter) and any snapshot of them
   loses it, so the column blanked or went flat for the length of the swap. core.js fades the page body (.col) itself instead. */
::view-transition-group(*) { animation-duration: 380ms; animation-timing-function: var(--ease); }
html.vt .tb { view-transition-name: mx-tb; } html.vt .side { view-transition-name: mx-side; }
html.vt .tabs-w { view-transition-name: mx-tabs; }   /* the row, search button and all: it moves as one */
html.vt::view-transition-group(root), html.vt::view-transition-group(mx-tb), html.vt::view-transition-group(mx-side), html.vt::view-transition-group(mx-tabs),
html.vt::view-transition-new(mx-tb), html.vt::view-transition-new(mx-side), html.vt::view-transition-new(mx-tabs) { animation: none; }
html.vt::view-transition-old(mx-tb), html.vt::view-transition-old(mx-side), html.vt::view-transition-old(mx-tabs) { animation: none; opacity: 0; }
html.vt::view-transition-old(root) { animation: 110ms cubic-bezier(.4,0,1,1) both fade-out; }
html.vt::view-transition-new(root) { animation: 220ms var(--ease) 100ms both fade-in; }   /* routes only: the theme switch keeps its own crossfade */
html.vt .vw.fresh .pn { animation-delay: calc(100ms + min(var(--i, 0), 8) * 40ms); }
::view-transition-old(hero-img), ::view-transition-new(hero-img) { height: 100%; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } .cw .spot-bg, .cw .spot-p { animation: none !important; } }

/* chrome: the rail sits beside main from 700 px */
.cb-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); }
.cb-g { display: flex; flex: 1 1 auto; min-width: 0; } .cb-g .seg { flex: 1; } .cb-g .seg button { flex: 1; padding: 0 8px; }
.cb-l, .cb-in > .sp, .cb-src { display: none; }
/* phones: no control bar under the mode switch (tabs on tabs); the figure's label is the control, an iOS-style pull-down */
.pd { display: inline; padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; text-align: inherit; pointer-events: none; }
.pd-i { display: none; }
@media (max-width: 699px) {
  .lbl:has(.pd) { font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; }
  .pd { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--blue-t); cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; transition: opacity .15s; }
  .pd::after { content: ""; position: absolute; inset: -12px -10px; }
  .pd:active, .pd[aria-expanded="true"] { opacity: .45; }
  .pd:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
  .pd-i { display: block; width: 9px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
}
/* the pull-down's menu: an anchored sheet with sections and checkmarks, grows out of the label */
.menu.pk { padding: 4px 0; border-radius: 14px; overflow: hidden; transform-origin: var(--mo, 16px 0); animation: pk-in 280ms cubic-bezier(.2, .9, .25, 1.12) both; }
.menu.pk .mh { padding: 8px 16px 2px 42px; font-size: 12px; font-weight: 600; color: var(--faint); }
.menu.pk hr { height: 6px; margin: 4px 0; border: 0; background: var(--line); }
.menu.pk button { justify-content: flex-start; gap: 0; height: 44px; padding: 0 16px 0 14px; border-radius: 0; font-size: 16px; color: var(--text); }
.menu.pk button + button { box-shadow: inset 0 .5px 0 var(--line); }
.menu.pk button:hover, .menu.pk button:focus-visible { background: color-mix(in srgb, var(--text) 8%, transparent); }
.menu.pk .ck { flex: none; width: 16px; height: 16px; margin-right: 12px; fill: none; stroke: var(--blue-t); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.menu.pk [aria-checked="true"] .ck { visibility: visible; }
.menu.pk [aria-checked="true"] span { font-weight: 600; }
.menu.pk small { margin-left: auto; font-size: 12.5px; }
@keyframes pk-in { from { opacity: 0; transform: scale(.55); } }
@media (prefers-reduced-motion: reduce) { .menu.pk { animation: pk-fade 120ms both; } @keyframes pk-fade { from { opacity: 0; } } }
@media (min-width: 700px) {
  main { padding-right: 8px; }
  .cb-in { display: grid; gap: 14px; padding: 0 2px; }
  .cb-g { display: grid; gap: 6px; } .cb-l { display: block; padding-left: 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
  .cb-g .seg { display: flex; }
  .cb-src { display: block; padding: 0 4px; font-size: 11.5px; line-height: 1.45; color: var(--faint); }
}
/* the iPhone Duo (duo.js): duet-ui's controls hold the menu, the theme and search, so the page's own Menu and theme switch
   give way; .app is the scroller beside the controls, as #v3 on the site's pages (app-v3/duo.css) */
html[data-duet-nav="v3"] :is(.tb-menu,.th-b,.tb-cr){display:none!important}
/* unfolded the sections are duet-ui's tabs and Search is a control, so the page's tab bar, section list and search button give way.
   Folded and in Split View the column fits the burger plus one control only (duet-nav-v3.js's fit), and that one is credits, as on
   every site page: so the page keeps its own tab bar there, and its search button beside it, or searching is unreachable (duo.js) */
html[data-duet-nav="v3"][data-duet-mode="inline"] :is(.tabs-w,.side .sn,.side .sp-t){display:none!important}
/* the credit badge in the plate yellow with dark ink, as on the site's pages (app-v3/duo.css) */
html[data-duet-nav="v3"]:root .duet{--duet-badge-neutral:var(--plate);--duet-badge-ink:#111}
/* the Spotlight sits under the controls, whose close closes it (as home's sheets, app-v3/duo.css): its backdrop covered them in Safari's column */
html[data-duet-nav="v3"] .cw{z-index:40}
html[data-duet-nav="v3"] .app{position:fixed;top:0;bottom:0;left:var(--duo-l,0px);right:auto;width:calc(100vw - var(--duo-l,0px) - var(--duo-r,0px));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
html[data-duet-nav="v3"][data-duet-mode="column"] .app{position:absolute;box-sizing:border-box;padding-bottom:var(--duet-inset-bottom,0px)}
html[data-duet-nav="v3"]:is([data-duet-mode="inline"],[data-duet-mode="strip"]){--duo-l:var(--duet-inset-left,0px);--duo-r:var(--duet-inset-right,0px)}
html[data-duet-nav="v3"][data-duet-mode="strip"] .app{top:calc(env(safe-area-inset-top) + var(--duet-inset-top,0px))}
/* the tab bar keeps its place in Safari's column too: the viewport already ends at the bar's top (580 of 678), so --duet-inset-bottom
   (for layers that run under the bar) would float it 108px up over the list (iOS simulator) */

/* native feel, touch and mouse alike. Press: rows darken at once and fade back on release; buttons, chips and cards
   dip a little and spring back. iOS Safari only runs :active with a touch listener on the page (core.js has one). */
.rl a, .ix a, .mv a, .wl a, .bl a, .dfl a.dfl-a, .rn, .mt, .sm-c, .tbl tbody tr { transition: background-color .22s var(--ease); }
.rl a:active, .ix a:active, .mv a:active, .wl a:active, .bl a:active, .dfl a.dfl-a:active, .rn:active, .mt:active, .sm-c:active,
.tbl tbody tr:has(a[data-ent]:active, a[data-vt]:active) { background: color-mix(in srgb, var(--panel), var(--text) 10%); transition-duration: 0s; }
.bt, .mchip, .sp-t, .tabs a, .tabs-s, .tb-menu, .tb-cr, .pin, .seg button, .mt, .sm-c { transition-property: transform, background-color, border-color, color, opacity; transition-duration: .32s; transition-timing-function: cubic-bezier(.3, 1.4, .5, 1); }
.bt:active, .mchip:active, .sp-t:active, .tabs a:active, .tabs-s:active, .tb-menu:active, .tb-cr:active, .pin:active, .seg button:active, .mt:active, .sm-c:active { transform: scale(.96); transition-duration: .08s; transition-timing-function: ease-out; }
/* a touch screen has no hover: a tapped row keeps no hover tint after the finger lifts */
@media (hover: none) {
  .rl a:hover:not(:active), .ix a:hover:not(:active), .mv a:hover:not(:active), .wl a:hover:not(:active), .bl a:hover:not(:active), .dfl a.dfl-a:hover:not(:active), .rn:not([aria-current]):hover:not(:active), .mt:hover:not(:active) { background: none; }
  .tbl tbody tr:hover:not(.sel, .sel-row) { background: var(--panel); } .sm-c:hover:not(:active) { background: none; border-color: var(--line); } .mchip:hover { background: var(--panel2); }
}
html { touch-action: manipulation; }
/* phones: the page title collapses into the top bar once it scrolls under it (the bar's centre swaps the mode switch for
   the title, a hairline appears); a tap on it goes back to the top, where the switch returns */
.tb-t { display: none; }
@media (max-width: 699px) {
  .tb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; transform: scaleY(.5); transform-origin: bottom; background: var(--line2); opacity: 0; transition: opacity .2s; }
  .tb .mode { transition: opacity .2s, transform .32s var(--ease); }
  .tb-t { position: absolute; top: env(safe-area-inset-top); left: 64px; right: 64px; display: flex; align-items: center; justify-content: center; height: var(--tb-h); padding: 0; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--text);
    opacity: 0; transform: translateY(10px); visibility: hidden; transition: opacity .22s, transform .32s var(--ease), visibility 0s .32s; }
  .tb-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.tt .tb .mode { opacity: 0; transform: translateY(-8px) scale(.94); pointer-events: none; }
  html.tt .tb-t { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  html.tt .tb::after { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .tb-t, .tb .mode { transform: none !important; } }

/* phones: the figure is a pager of test years (core.js armPager), the years under it a page control; from 700px only the
   year's own figure shows. Arrows only with a mouse or trackpad. */
.fpg > .fig:not(#mx-fig), .fpg-n { display: none; }
@media (max-width: 699px) {
  .fpw { width: 100%; contain: inline-size; }          /* the pages, side by side, never widen the page */
  .fpg { display: flex; align-items: baseline; margin: 4px 0 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .fpg::-webkit-scrollbar { display: none; }
  .fpg > .fig, .fpg > .fig:not(#mx-fig) { display: block; flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
  .fpg > .fig.na { align-self: center; }
  .fpg-n { display: flex; align-items: center; gap: 2px; margin: 4px 0 8px -10px; }
  .fpg-y { position: relative; height: 28px; padding: 0 10px; border: 0; border-radius: 14px; background: none; font: inherit; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--faint); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .2s, background-color .2s; }
  .fpg-y::after { content: ""; position: absolute; inset: -8px 0; }
  .fpg-y[aria-current] { color: var(--text); background: var(--panel2); }
  .fpg-a { display: none; }
  .fpg-a svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  @media (hover: hover) and (pointer: fine) {
    .fpg-a { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 14px; background: none; color: var(--text2); cursor: pointer; }
    .fpg-a:hover, .fpg-y:hover:not([aria-current]) { background: var(--panel2); } .fpg-a:disabled { visibility: hidden; }
  }
}
/* phones: a panel's ⋯ menu as a bottom sheet (core.js sheet), dragged down by its top to close */
.mx-sheet, .mx-scrim { view-transition-name: none; }
.msh-h { touch-action: none; cursor: grab; } .msh-h .sheet-g { height: 28px; }
.msh-t { padding: 0 20px 12px; font-size: 13px; font-weight: 600; color: var(--faint); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msh-b { display: grid; margin: 0 12px 8px; border-radius: 14px; background: var(--panel2); overflow: hidden; }
.msh-b button { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; border: 0; background: none; font: inherit; font-size: 17px; color: var(--text); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .22s var(--ease); }
.msh-b button + button { box-shadow: inset 0 1px 0 var(--line); }
.msh-b button:active { background: color-mix(in srgb, var(--panel2), var(--text) 10%); transition-duration: 0s; }
.msh-b small { margin-left: auto; font-size: 13px; color: var(--faint); }
/* the Duo controls' icons (duo.js): masks, as web/site.css's .i, which this page does not load; without it the pill is blank */
.i { display: inline-block; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; flex: none; }
#duet-nav-v3 .i { font-size: var(--duet-icon-size, 22px); }
