/* ===== shared by quettabench.css and efficiency.css (one source, copied into both) =====
   The bench app in the illustrated-stack language: flat lilac/indigo panels with chamfered corners drawn in 1px ink lines,
   mono HUD labels, tick scales, and pink neon kept for the one thing that matters on each panel. */

/* ---------- palette: qf-bench.css sets its own tokens on html.qb, which outranks skin.css's :root, so restate them here ---------- */
html.qb, html.qb[data-theme="light"] {
  --qf-paper: #f5f1fc; --qf-paper-2: #ebe4f8; --qf-panel: #fcfaff; --qf-ink: #1d1640; --qf-ink-2: #3d3570; --qf-ink-3: #6f669e;
  --qf-line: rgba(45, 30, 110, .14); --qf-line-2: rgba(45, 30, 110, .3); --qf-grid: rgba(45, 30, 110, .05);
  --qf-signal: #ff5aa8; --qf-signal-ink: #c8166a; --qf-signal-soft: #ffc6e2; --qf-signal-wash: #fbe3f1; --qf-on-signal: #1d1640;
  --qf-band: #1c1645; --qf-on-band: #ece8ff; --qf-on-band-2: rgba(236, 232, 255, .62);
  --qf-teal: #00a89a; --qf-amber: #e8902a; --qf-peri: #8c95f0;
  --qf-sky: linear-gradient(180deg, #dfe2fd 0%, #ece3fb 380px, var(--qf-paper) 760px);
  --qf-field: var(--qf-signal-wash); --qf-field-2: var(--qf-signal-soft); --qf-cta-bg: var(--qf-ink); --qf-cta-fg: var(--qf-panel);
  --qfx-well: #f0eafb; --qfx-hover: rgba(140, 149, 240, .1); --qfx-tick: rgba(45, 30, 110, .26);
  --grid: rgba(45, 30, 110, .07); --gold: var(--qf-amber);
  /* glass retired: every glass token becomes a flat fill and a hairline */
  --g-fill: var(--qfx-well); --g-fill-hi: var(--qf-panel); --g-rim: transparent; --g-line: var(--qf-line-2);
  --g-shadow: none; --g-face: linear-gradient(var(--qf-panel), var(--qf-panel)); --g-ring: var(--qf-signal); --g-glow: none;
  --g-ink-face: linear-gradient(var(--qf-ink), var(--qf-ink)); --g-ink-line: var(--qf-ink); --g-ink-shadow: none; --g-knob-shadow: none;
  --g-row: linear-gradient(var(--qf-panel), var(--qf-panel)); --g-chip: none; --g-blur: none;
  --shadow: none; --shadow-up: none;
  color-scheme: light;
}
html.qb[data-theme="dark"] {
  --qf-paper: #120d2c; --qf-paper-2: #1a1440; --qf-panel: #1c1544; --qf-ink: #ece8ff; --qf-ink-2: #c4bce6; --qf-ink-3: #8d84b8;
  --qf-line: rgba(200, 190, 255, .13); --qf-line-2: rgba(200, 190, 255, .28); --qf-grid: rgba(200, 190, 255, .05);
  --qf-signal: #ff4fa3; --qf-signal-ink: #ff7ab8; --qf-signal-soft: #ff9ccd; --qf-signal-wash: #3a1838; --qf-on-signal: #1a0a26;
  --qf-band: #0d0924; --qf-teal: #3ff0dc; --qf-amber: #ffb04a;
  --qf-sky: linear-gradient(180deg, #1c1645 0%, #241a55 340px, var(--qf-paper) 760px);
  --qfx-well: #160f36; --qfx-hover: rgba(140, 149, 240, .09); --qfx-tick: rgba(200, 190, 255, .26);
  --grid: rgba(200, 190, 255, .08);
  color-scheme: dark;
}
html.qb .e2, html.qb[data-theme] .e2 { --g-fill: var(--qfx-well); --g-fill-hi: var(--qf-panel); --g-rim: transparent; --g-line: var(--qf-line-2); --g-shadow: none;
  --glass: var(--qf-panel); --glass-edge: var(--qf-line-2); --pillbg: var(--qf-panel); }

/* ---------- ground: the dusk sky and a fine drafting grid that fades down the first screen ---------- */
html.qb { background: var(--qf-paper) var(--qf-sky) no-repeat; background-size: 100% 900px; }
html.qb .qf-graticule { -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 0%, #000 0%, rgba(0,0,0,.4) 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 0%, #000 0%, rgba(0,0,0,.4) 55%, transparent 100%);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  background: linear-gradient(var(--qf-grid), var(--qf-grid)) 0 0 / 100% 100%,
    linear-gradient(90deg, var(--qfx-tick) 1px, transparent 1px) 0 0 / 128px 128px,
    linear-gradient(var(--qfx-tick) 1px, transparent 1px) 0 0 / 128px 128px !important; }
html.qb .qf-graticule { opacity: .32 !important; }
html.qb[data-theme="dark"] .qf-graticule { opacity: .5 !important; }
html.qb ::selection { background: var(--qf-signal-soft); color: #1d1640; }
html.qb body { color: var(--qf-ink-2); }

/* ---------- the chamfer: two corners cut at 45°, the outline drawn as 1px gradients, so nothing inside is ever clipped ---------- */
html.qb :where(.card, .e2-card, .wcard, .rc, .legendpanel, .wart, .e2-eqrow .t, .search, .ddb, .btn, .seg, .e2-views, .subnav, .lgi, .qb-dl,
  .qsim-go, .pi-deepgo, .e2-eqwhy > summary, .e2-costwrap > summary, .chip, [id="resetHide"], .qf-sub-knob, .e2-knob, .e2-views .knob, .e2-gcard, .qfx-cham,
  .e2-rail, .e2-rail .pill, .pi-x, #detail .iconbtn, .e2-li) {
  --qfx-c: 9px; --qfx-bd: var(--qf-line-2); --qfx-fill: var(--qf-panel);
  border: 1px solid transparent !important; border-radius: 0 !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  background:
    linear-gradient(225deg, transparent calc(var(--qfx-c) - .5px), var(--qfx-bd) calc(var(--qfx-c) - .5px), var(--qfx-bd) calc(var(--qfx-c) + .6px), transparent calc(var(--qfx-c) + .6px),
      transparent calc(100% - var(--qfx-c) - .6px), var(--qfx-bd) calc(100% - var(--qfx-c) - .6px), var(--qfx-bd) calc(100% - var(--qfx-c) + .5px), transparent calc(100% - var(--qfx-c) + .5px)) border-box,
    linear-gradient(var(--qfx-bd), var(--qfx-bd)) 0 0 / calc(100% - var(--qfx-c) * 1.4142) 1px no-repeat border-box,
    linear-gradient(var(--qfx-bd), var(--qfx-bd)) 100% 100% / 1px calc(100% - var(--qfx-c) * 1.4142) no-repeat border-box,
    linear-gradient(var(--qfx-bd), var(--qfx-bd)) 100% 100% / calc(100% - var(--qfx-c) * 1.4142) 1px no-repeat border-box,
    linear-gradient(var(--qfx-bd), var(--qfx-bd)) 0 0 / 1px calc(100% - var(--qfx-c) * 1.4142) no-repeat border-box,
    linear-gradient(225deg, transparent var(--qfx-c), var(--qfx-fill) var(--qfx-c), var(--qfx-fill) calc(100% - var(--qfx-c)), transparent calc(100% - var(--qfx-c))) border-box,
    linear-gradient(var(--qfx-back, transparent), var(--qfx-back, transparent)) border-box !important;
}
/* sizes: panels cut deep, inner panels less, controls least */
html.qb :where(.card, .e2-card, .wcard) { --qfx-c: 11px; }
html.qb :where(.btn, .seg, .e2-views, .lgi, .qb-dl, .qsim-go, .pi-deepgo, .e2-eqwhy > summary, .e2-costwrap > summary, .chip, [id="resetHide"], .ddb, .search, .e2-gcard) { --qfx-c: 6px; }
html.qb :where(.qf-sub-knob, .e2-knob, .e2-views .knob) { --qfx-c: 5px; --qfx-bd: var(--qf-signal); --qfx-fill: var(--qf-signal-wash); }
html.qb :where(.subnav) { --qfx-c: 8px; --qfx-fill: color-mix(in srgb, var(--qf-panel) 82%, transparent); }
html.qb :where(.seg, .e2-views) { --qfx-fill: var(--qfx-well); --qfx-bd: var(--qf-line); }
html.qb :where(.legendpanel, .wart, .e2-eqrow .t) { --qfx-c: 7px; --qfx-fill: var(--qfx-well); --qfx-bd: var(--qf-line); }
html.qb .legendpanel::before, html.qb .legendpanel::after, html.qb .wcard::before, html.qb .qf-sub-knob::before,
  html.qb .e2-knob::before, html.qb .e2-knob::after, html.qb .e2-views .knob::before, html.qb .e2-views .knob::after { display: none !important; }
/* an empty detail slot stays invisible until it holds a selection */
html.qb .card.detail:not(.on) { background: none !important; border-color: transparent !important; }
html.qb .card.detail:not(.on)::after { display: none; }

/* states: hairlines brighten to signal, nothing grows a glow */
html.qb :is(.mcard, .wcard):is(:hover, :focus-visible) { --qfx-bd: var(--qf-signal); }
html.qb :is(.btn, .lgi, .qb-dl, .pi-deepgo, .e2-eqwhy > summary, .e2-costwrap > summary, .chip, [id="resetHide"], .ddb):hover { --qfx-bd: var(--qf-ink-3); }
html.qb .dd.open > .ddb, html.qb .ddb:focus-visible { --qfx-bd: var(--qf-signal); }
html.qb .search:focus-within { --qfx-bd: var(--qf-signal); }
html.qb :is(.btn, .seg button, .lgi, .ddb, .qb-dl, .qsim-go, .pi-deepgo, summary, .chip):focus-visible { outline: 1px solid var(--qf-signal-ink); outline-offset: 2px; }

/* the brackets: teal corner ticks on chart panels (skin.css) — also on model and workload cards while hovered */
html.qb :is(.mcard, .wcard)::after { content: ""; position: absolute; inset: -6px; pointer-events: none; opacity: 0; transition: opacity .18s, inset .28s var(--qf-ease);
  --t: var(--qf-teal); --l: 10px;
  background: linear-gradient(var(--t), var(--t)) 0 0 / var(--l) 1px, linear-gradient(var(--t), var(--t)) 0 0 / 1px var(--l),
    linear-gradient(var(--t), var(--t)) 100% 100% / var(--l) 1px, linear-gradient(var(--t), var(--t)) 100% 100% / 1px var(--l);
  background-repeat: no-repeat; }
html.qb :is(.mcard, .wcard):hover::after { opacity: 1; inset: -9px; }
html.qb .wcard { overflow: visible !important; }

/* ---------- type: headlines heavier and tighter; every small label a HUD readout ---------- */
html.qb h1, html.qb h2 { color: var(--qf-ink); }
html.qb h1.ph, html.qb section.page > h1 { font-weight: 400; letter-spacing: -.05em; }
html.qb .lede { color: var(--qf-ink-2); }
html.qb .lede b, html.qb .qsa-head b { color: var(--qf-signal-ink); }
html.qb :is(.fld > label, .pi-f > label, .e2-strip label, .cfgh, .k, .qsa-axes label, .lbl) { font: 500 10.5px/1.3 var(--mono) !important; letter-spacing: .14em !important;
  text-transform: uppercase; color: var(--qf-ink-3) !important; }
html.qb :is(.fld > label, .pi-f > label)::before { content: "◢ "; color: var(--qf-teal); font-size: 8px; vertical-align: .12em; }
/* a page title carries a drafting mark above it: a diamond on a short tick scale */
html.qb h1.ph::before { content: ""; display: block; width: 148px; height: 9px; margin: 0 0 18px 1px;
  --qfx-dia: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9'%3E%3Cpath d='M4.5 0 9 4.5 4.5 9 0 4.5z' fill='%2300a89a'/%3E%3C/svg%3E");
  background: var(--qfx-dia) 0 0 / 9px 9px no-repeat,
    repeating-linear-gradient(90deg, var(--qfx-tick) 0 1px, transparent 1px 12px) 18px 100% / calc(100% - 18px) 5px no-repeat,
    linear-gradient(var(--qf-line-2), var(--qf-line-2)) 18px 100% / calc(100% - 18px) 1px no-repeat,
    linear-gradient(var(--qf-signal), var(--qf-signal)) 18px 100% / 30px 1px no-repeat; }
html.qb[data-theme="dark"] h1.ph::before {
  --qfx-dia: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9'%3E%3Cpath d='M4.5 0 9 4.5 4.5 9 0 4.5z' fill='%233ff0dc'/%3E%3C/svg%3E"); }

/* section headings: a teal diamond, the title, then a ruled scale running to the edge */
html.qb :is(#r-home .sect > h2, .pi-sh h2) { display: flex; align-items: center; gap: 14px; }
html.qb #r-home .sect > h2::before, html.qb .pi-sh h2::before { content: ""; flex: none; width: 9px !important; height: 9px !important; align-self: center;
  background: var(--qf-teal) !important; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%) !important; }
html.qb #r-home .sect > h2::after { content: ""; flex: 1; height: 7px; align-self: center; margin-left: 10px;
  background: repeating-linear-gradient(90deg, var(--qfx-tick) 0 1px, transparent 1px 16px) 0 100% / 100% 4px no-repeat,
    linear-gradient(var(--qf-line-2), var(--qf-line-2)) 0 100% / 100% 1px no-repeat,
    linear-gradient(var(--qf-signal), var(--qf-signal)) 0 100% / 36px 1px no-repeat; }

/* ---------- panel header bars: title, then a hairline with a short teal lead ---------- */
html.qb :is(.charthead, .e2-head, .pi-ch, .pi-card > header) { position: relative; }
html.qb :is(.charthead, .e2-head, .pi-ch, .pi-card > header)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, var(--qf-teal) 0 28px, var(--qf-line) 28px); }
html.qb .card.hard > .charthead::after, html.qb #r-dashboard .card > .charthead::after, html.qb .qsa-card > .charthead::after { left: 22px; right: 22px; }
html.qb #stepDetail .charthead::after { bottom: -12px; }
html.qb :is(.charthead h3, #cTitle, .e2-head h2, .pi-ch h2, .pi-card h3, .pi-deep h3) { color: var(--qf-ink); font-weight: 500; }
html.qb :is(.charthead .sub, #cSub, .e2-head .sub, .pi-sub) { color: var(--qf-ink-3); }

/* ---------- controls ---------- */
/* one button system: primary is solid ink (lilac in dark), secondary a 1px outline; both chamfered, mono, uppercase; hover turns pink */
html.qb .btn { font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--qf-ink); transition: color .15s ease-out; }
html.qb .btn:not(.primary):hover { --qfx-bd: var(--qf-signal) !important; color: var(--qf-signal-ink) !important; }
html.qb :is(.btn.primary, .qsim-go, .pi-deepgo) { --qfx-fill: var(--qf-ink); --qfx-bd: var(--qf-ink); color: var(--qf-paper) !important;
  font: 600 11.5px/1 var(--mono) !important; letter-spacing: .12em !important; text-transform: uppercase; transition: color .15s ease-out; }
html.qb :is(.btn.primary, .qsim-go, .pi-deepgo):hover { --qfx-fill: var(--qf-signal) !important; --qfx-bd: var(--qf-signal) !important; color: #1d1640 !important; box-shadow: none !important; }
/* the arrow is the bare double chevron after the label, in the label's colour: no chip behind it */
html.qb .qsim-go .qsim-arrow { background: none !important; color: inherit !important; box-shadow: none !important; }
html.qb .seg button, html.qb .e2-views button { border-radius: 0 !important; font-family: var(--mono); letter-spacing: .06em; }
html.qb .seg button.on, html.qb .e2-views button.on { color: var(--qf-ink) !important; }
html.qb .seg:not(.knobbed) button.on { background: var(--qf-signal-wash) !important; box-shadow: inset 0 0 0 1px var(--qf-signal) !important; }
html.qb .ddb { color: var(--qf-ink); }
/* the open list: a HUD readout that unfolds from its top edge (150ms) with one scan line passing down it, teal corner
   ticks, mono section labels on a hairline, hairlines between options, a pink tick on the lit option and a pink bar
   marking the chosen one */
html.qb .ddm { --t: var(--qf-teal); border: 1px solid var(--qf-line-2) !important; border-radius: 0 !important; box-shadow: var(--shadow-up) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  background: linear-gradient(var(--t), var(--t)) 0 0 / 9px 1px, linear-gradient(var(--t), var(--t)) 0 0 / 1px 9px,
    linear-gradient(var(--t), var(--t)) 100% 100% / 9px 1px, linear-gradient(var(--t), var(--t)) 100% 100% / 1px 9px, var(--qf-panel) !important;
  background-repeat: no-repeat !important;
  transform: scaleY(.6) !important; transform-origin: top !important; transition: opacity .15s ease-out, transform .15s ease-out, visibility 0s linear .15s !important; }
html.qb .dd.up .ddm { transform-origin: bottom !important; }
html.qb .dd.open .ddm { transform: none !important; transition-delay: 0s !important; }
html.qb .ddm::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--qf-signal) 20%, var(--qf-signal) 80%, transparent) 0 0 / 100% 1px no-repeat; }
html.qb .dd.open .ddm::before { animation: qfx-dd-scan .3s ease-out; }
@keyframes qfx-dd-scan { 0% { opacity: .9; background-position: 0 0; } 100% { opacity: 0; background-position: 0 100%; } }
html.qb .ddo { border-radius: 0 !important; }
html.qb .ddo + .ddo { box-shadow: inset 0 1px 0 var(--qf-line); }
html.qb .ddhl { border-radius: 0 !important; background: var(--qfx-hover) !important; border: 0 !important; box-shadow: inset 2px 0 0 var(--qf-signal) !important; }
html.qb .ddo[aria-selected="true"]::after { width: 10px; height: 2px; border-radius: 0; transform: none; background: var(--qf-signal); }
html.qb .ddg { font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; font-size: 10px; color: var(--qf-ink-3);
  margin-top: 4px; border-top: 1px solid var(--qf-line-2); }
html.qb .ddg::before { content: ""; display: inline-block; width: 8px; height: 1px; margin-right: 7px; vertical-align: .3em; background: var(--qf-teal); }
html.qb .ddg.first { margin-top: 0; border-top: 0; }
html.qb .ddg + .ddo { box-shadow: none; }
@media (prefers-reduced-motion: reduce) { html.qb .ddm { transform: none !important; } html.qb .dd.open .ddm::before { animation: none; } }
html.qb .search input { color: var(--qf-ink); }
html.qb .search kbd { border-radius: 0; background: var(--qfx-well); border: 1px solid var(--qf-line); color: var(--qf-ink-3); }
html.qb :is(.pill, .badge, .pi-load, .pv, .e2-pill) { border-radius: 2px !important; font-family: var(--mono); }
html.qb .pi-load { background: var(--qfx-well) !important; border: 1px solid var(--qf-line) !important; box-shadow: none !important; color: var(--qf-ink-2); }
html.qb .lgi { color: var(--qf-ink); }
html.qb .lgi i, html.qb .cmplg i, html.qb .chip i, html.qb .rg .dot, html.qb .srow .dot, html.qb .steplegend i { border-radius: 0 !important; }
html.qb .lgi i, html.qb .rg .dot, html.qb .srow .dot, html.qb .chip i { transform: rotate(45deg) scale(.86); }
/* ---------- the HUD control: one track and one knob for every switch and range slider ----------
   Track: a chamfered plate (top-right and bottom-left cut, like every panel) drawn as background layers, so the 2px
   outline runs unbroken round the cuts in every state. Knob: an ink square with three grip hairlines. The active part
   fills pink (a switch's whole track when on, a range from its start to the knob) and the outline stays drawn over it.
   --hc-frame is declared on the input itself, so a range's track pseudo-element inherits it already resolved. */
html.qb :is(.sw, .inl) input, html.qb input[type="range"] {
  --hc-w: 2px; --hc-cut: 3.5px; --hc-leg: calc(var(--hc-cut) * 1.4142);
  --hc-bd: var(--qf-ink-2); --hc-fill: var(--qf-panel); --hc-on: var(--qf-signal); --hc-p: 0%;
  --hc-ink: var(--qf-ink-2); --hc-grip: var(--qf-panel);
  --hc-frame:
    linear-gradient(225deg, transparent var(--hc-cut), var(--hc-bd) var(--hc-cut), var(--hc-bd) calc(var(--hc-cut) + var(--hc-w)), transparent calc(var(--hc-cut) + var(--hc-w)),
      transparent calc(100% - var(--hc-cut) - var(--hc-w)), var(--hc-bd) calc(100% - var(--hc-cut) - var(--hc-w)), var(--hc-bd) calc(100% - var(--hc-cut)), transparent calc(100% - var(--hc-cut))),
    linear-gradient(var(--hc-bd), var(--hc-bd)) 0 0 / calc(100% - var(--hc-leg)) var(--hc-w) no-repeat,
    linear-gradient(var(--hc-bd), var(--hc-bd)) 100% 100% / var(--hc-w) calc(100% - var(--hc-leg)) no-repeat,
    linear-gradient(var(--hc-bd), var(--hc-bd)) 100% 100% / calc(100% - var(--hc-leg)) var(--hc-w) no-repeat,
    linear-gradient(var(--hc-bd), var(--hc-bd)) 0 0 / var(--hc-w) calc(100% - var(--hc-leg)) no-repeat,
    linear-gradient(45deg, transparent var(--hc-cut), var(--hc-on) var(--hc-cut)) 0 0 / var(--hc-p) 100% no-repeat,
    linear-gradient(225deg, transparent var(--hc-cut), var(--hc-fill) var(--hc-cut), var(--hc-fill) calc(100% - var(--hc-cut)), transparent calc(100% - var(--hc-cut)));
  --hc-knob: repeating-linear-gradient(90deg, var(--hc-grip) 0 1px, transparent 1px 3px) center / 7px 8px no-repeat, var(--hc-ink);
  /* the knob is cut on the same two corners, 2.6px, so it sits 2px inside the outline everywhere, cut edges included
     (track cut 3.5px + 2px line + 2px gap, measured across the diagonal, less the knob's 4px inset). Whole-pixel line,
     inset and knob keep the gap even at every screen density (a 1.5px line rendered thicker on the top and left) */
  --hc-knob-cut: polygon(0 0, calc(100% - 2.6px) 0, 100% 2.6px, 100% 100%, 2.6px 100%, 0 calc(100% - 2.6px));
  cursor: pointer; }
html.qb :is(.sw, .inl):hover input, html.qb input[type="range"]:hover { --hc-bd: var(--qf-signal-ink); --hc-grip: var(--qf-teal); }

/* the switch: OFF or ON in mono caps beside the knob, which slides over the word that no longer applies. Off is an ink
   outline on the panel; on fills pink with dark ink, outlined in full ink. The native checkbox stays (label, keys, role). */
html.qb :is(.sw, .inl) input { width: 60px !important; height: 24px !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: var(--hc-frame) !important; filter: none !important; transition: none; }
html.qb :is(.sw, .inl) input:checked { --hc-fill: var(--qf-signal); --hc-bd: var(--qf-ink); --hc-ink: var(--qf-on-signal); --hc-grip: var(--qf-signal); }
/* on: the outline stays full ink under the pointer; the grip lines turn teal instead */
html.qb :is(.sw, .inl):hover input:checked { --hc-bd: var(--qf-ink); --hc-grip: var(--qf-teal); }
html.qb :is(.sw, .inl) input::before { content: "OFF"; position: absolute; top: 0; bottom: 0; left: 22px; right: 2px; display: flex; align-items: center; justify-content: center;
  font: 600 9px/1 var(--mono); letter-spacing: .12em; color: var(--hc-ink); pointer-events: none; }
html.qb :is(.sw, .inl) input:checked::before { content: "ON"; left: 2px; right: 22px; }
html.qb :is(.sw, .inl) input::after { top: 4px !important; left: 4px !important; width: 16px !important; height: 16px !important; border-radius: 0 !important; box-shadow: none !important;
  background: var(--hc-knob) !important; clip-path: var(--hc-knob-cut); transform: none !important; transition: transform .12s ease-out !important; }
html.qb :is(.sw, .inl) input:checked::after { transform: translateX(36px) !important; }
html.qb :is(.sw, .inl) input:focus-visible { outline: 2px solid var(--qf-teal) !important; outline-offset: 3px; }

/* the range: the same track at 10px, filled pink up to the knob (--p, kept by the page's script), the same knob */
html.qb input[type="range"] { --hc-p: var(--p, 0%); -webkit-appearance: none; appearance: none; background: transparent !important; }
html.qb input[type="range"]::-webkit-slider-runnable-track { height: 10px !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: var(--hc-frame) !important; }
html.qb input[type="range"]::-moz-range-track { height: 10px; border: 0; border-radius: 0; box-shadow: none; background: var(--hc-frame); }
html.qb input[type="range"]::-moz-range-progress { background: transparent; }
html.qb input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px !important; height: 16px !important; margin-top: -3px !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: var(--hc-knob) !important; clip-path: var(--hc-knob-cut); transform: none !important; }
html.qb input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 0; box-shadow: none; background: var(--hc-knob); clip-path: var(--hc-knob-cut); transform: none; }
html.qb input[type="range"]:focus-visible { outline: 2px solid var(--qf-teal) !important; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html.qb :is(.sw, .inl) input::after { transition: none !important; } }

/* tooltips: a flat readout card, not frosted glass */
html.qb :is(.e2-tip, .ptip, .pi-tip, .pi-pop, .steptip) { background: var(--qf-panel) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border: 1px solid var(--qf-line-2) !important; border-radius: 2px !important; box-shadow: var(--shadow-up) !important; }

/* ---------- tables: mono header row, hairlines, a pink rule on the chosen row ---------- */
html.qb .page table th { font: 500 10.5px/1.3 var(--mono) !important; letter-spacing: .14em !important; text-transform: uppercase; color: var(--qf-ink-3) !important;
  border-bottom: 1px solid var(--qf-line-2) !important; background: transparent !important; }
html.qb .page table td { border-bottom: 1px solid var(--qf-line) !important; }
/* only the results table's rows are clickable (they select the point), so only they react to hover */
html.qb .page table:not(.e2-tok) tbody tr:hover td { background: var(--qfx-hover) !important; }
html.qb .page table:not(.e2-tok) tbody tr.on td { background: color-mix(in srgb, var(--qf-signal-wash) 80%, transparent) !important; }
html.qb .page table:not(.e2-tok) tbody tr.on td:first-child { box-shadow: inset 2px 0 0 var(--qf-signal) !important; }

/* ---------- charts: flat bars with square shoulders; the plot keeps its colours ---------- */
html.qb .e2-bar .col { border-radius: 1px 1px 0 0 !important; }

/* ---------- footer: an indigo band under a neon seam and a tick scale ---------- */
html.qb footer { background: var(--qf-band) !important; color: var(--qf-on-band) !important; overflow: hidden; }
html.qb[data-theme="dark"] footer { background: var(--qf-band) !important; }
html.qb footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--qf-signal) 25%, #3ff0dc 75%, transparent); opacity: .8; }
html.qb footer::after { content: ""; position: absolute; left: 0; right: 0; top: 1px; height: 8px; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(90deg, rgba(236, 232, 255, .4) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(236, 232, 255, .55) 0 1px, transparent 1px 120px);
  background-size: 100% 4px, 100% 8px; background-repeat: no-repeat; }
html.qb footer .wrap::before { color: var(--qf-on-band); }
html.qb body footer .qf-foot a, html.qb body footer a, html.qb body footer .c { color: var(--qf-on-band-2) !important; }
html.qb body footer .qf-foot a:hover, html.qb body footer a:hover { color: #ffffff !important; }
html.qb footer .qf-foot-h { color: #3ff0dc !important; opacity: .8; }
html.qb footer .qf-foot-h::before { content: "◢ "; color: var(--qf-signal); }

/* ---------- the hero art: one illustrated layer (or a stack) inside a HUD frame ---------- */
html.qb .qfx-art { position: relative; margin: 0; aspect-ratio: 870 / 592; pointer-events: none; user-select: none; }
html.qb .qfx-art .qfx-frame { position: absolute; inset: 0; --t: var(--qf-teal); --l: 18px;
  background: linear-gradient(var(--t), var(--t)) 0 0 / var(--l) 1px, linear-gradient(var(--t), var(--t)) 0 0 / 1px var(--l),
    linear-gradient(var(--t), var(--t)) 100% 0 / var(--l) 1px, linear-gradient(var(--t), var(--t)) 100% 0 / 1px var(--l),
    linear-gradient(var(--t), var(--t)) 0 100% / var(--l) 1px, linear-gradient(var(--t), var(--t)) 0 100% / 1px var(--l),
    linear-gradient(var(--t), var(--t)) 100% 100% / var(--l) 1px, linear-gradient(var(--t), var(--t)) 100% 100% / 1px var(--l);
  background-repeat: no-repeat; }
/* scales: ticks along the bottom and the left, a fine rule just inside the brackets */
html.qb .qfx-art .qfx-sx { position: absolute; left: 34px; right: 34px; bottom: -1px; height: 9px;
  background: repeating-linear-gradient(90deg, var(--qfx-tick) 0 1px, transparent 1px 14px) 0 100% / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, var(--qf-ink-3) 0 1px, transparent 1px 70px) 0 100% / 100% 9px no-repeat,
    linear-gradient(var(--qf-line-2), var(--qf-line-2)) 0 100% / 100% 1px no-repeat; }
html.qb .qfx-art .qfx-sy { position: absolute; top: 34px; bottom: 34px; left: -1px; width: 9px;
  background: repeating-linear-gradient(180deg, var(--qfx-tick) 0 1px, transparent 1px 14px) 0 0 / 5px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--qf-ink-3) 0 1px, transparent 1px 70px) 0 0 / 9px 100% no-repeat,
    linear-gradient(var(--qf-line-2), var(--qf-line-2)) 0 0 / 1px 100% no-repeat; }
html.qb .qfx-art .qfx-dot { position: absolute; width: 7px; height: 7px; background: var(--qf-signal); transform: rotate(45deg); }
html.qb .qfx-art .qfx-dot.a { right: -4px; top: 50%; }
html.qb .qfx-art .qfx-dot.b { left: 50%; top: -4px; background: var(--qf-teal); }
html.qb .qfx-art .qfx-l { position: absolute; display: block; }
/* drafting paper inside the frame, fading out toward the brackets */
html.qb .qfx-art::before { content: ""; position: absolute; inset: 10px;
  background: linear-gradient(var(--qf-line) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, var(--qf-line) 1px, transparent 1px) 0 0 / 28px 28px;
  -webkit-mask: radial-gradient(ellipse 60% 55% at 50% 52%, #000 0%, rgba(0,0,0,.35) 60%, transparent 85%);
  mask: radial-gradient(ellipse 60% 55% at 50% 52%, #000 0%, rgba(0,0,0,.35) 60%, transparent 85%); opacity: .8; }
html.qb .qfx-art .qfx-l img { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  html.qb .qfx-art .qfx-l { animation: qfx-float 9s ease-in-out infinite; }
  html.qb .qfx-art .qfx-l + .qfx-l { animation-delay: -4.5s; }
}
@keyframes qfx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- polish: the last glass, gloss and blur left in the app ---------- */
html.qb .e2-btn::after, html.qb .e2-railwrap::before, html.qb .e2-railwrap::after { display: none !important; }
@keyframes e2in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes e2glow { 0% { outline: 1px solid var(--qf-signal); outline-offset: 0; } 100% { outline: 1px solid transparent; outline-offset: 6px; } }
html.qb :is(.e2-li, .e2-seg, .e2-xl .x, #e2Ticks > span, #qsaATicks > span, .hx-formula, .hx-tag, .e2-mark, .e2-info),
  html.qb .skelbox::before, html.qb .skelbox::after, html.qb .tl::after, html.qb .e2-info::after { border-radius: 2px !important; }
html.qb :is(.e2-info, .pi-lnk, .sw input, .inl input, #labels, #optimal, #qsaLabels, .e2-eqwhy > ul), html.qb .e2-info::after { box-shadow: none !important; }
html.qb .e2-info::after { background: var(--qf-panel) !important; border: 1px solid var(--qf-line-2) !important; }
/* Assumptions opens like Prices and assumptions: the same summary control and +/− sign, its notes on the open page
   (no tinted panel, no frame), hairlines between them */
html.qb .e2-eqwhy > summary i.pm { display: none; }
html.qb :is(.e2-eqwhy, .e2-costwrap) > summary::before { content: "+" !important; display: inline-block !important; width: 1ch; margin-right: 8px; color: var(--qf-ink); font: 600 13px/1 var(--mono); transform: none !important; }
html.qb :is(.e2-eqwhy, .e2-costwrap)[open] > summary::before { content: "\2212" !important; }
html.qb .e2-eqwhy > ul { background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: 10px 0 0 !important; margin-top: 10px !important; }
html.qb .e2-eqwhy li + li { border-top: 1px solid var(--qf-line) !important; }
html.qb .e2-eqwhy li::before { top: 14px !important; width: 8px !important; height: 1px !important; border-radius: 0 !important; background: var(--qf-ink-3) !important; opacity: 1 !important; }
html.qb .e2-info::after { color: var(--qf-ink-2) !important; }

/* ---------- Prices and assumptions: HUD motion. Each piece runs once, under 400ms, on transform and opacity only, and
   reduced motion turns it all off. Opening the panel boots the GPU cards in with their corner brackets locking on and
   passes one scan line down the token table; an edited price ticks its readout and flashes that card's brackets pink
   (eff2.js e2CostFigures); a focused field is bracketed in teal; each sample-days chip carries a status lamp. ---------- */
html.qb .e2-gcard { position: relative; }
html.qb .e2-gcard::after { content: ""; position: absolute; inset: -4px; pointer-events: none; opacity: 0; --b: var(--qf-teal);
  background: linear-gradient(var(--b), var(--b)) 0 0 / 10px 2px, linear-gradient(var(--b), var(--b)) 0 0 / 2px 10px,
    linear-gradient(var(--b), var(--b)) 100% 0 / 10px 2px, linear-gradient(var(--b), var(--b)) 100% 0 / 2px 10px,
    linear-gradient(var(--b), var(--b)) 0 100% / 10px 2px, linear-gradient(var(--b), var(--b)) 0 100% / 2px 10px,
    linear-gradient(var(--b), var(--b)) 100% 100% / 10px 2px, linear-gradient(var(--b), var(--b)) 100% 100% / 2px 10px;
  background-repeat: no-repeat; }
html.qb .e2-costwrap.opening .e2-gcard { animation: qfx-boot .24s ease-out both !important; }
html.qb .e2-costwrap.opening .e2-gcard::after { animation: qfx-lock .3s ease-out both; }
html.qb .e2-costwrap.opening .e2-gcard:nth-child(2), html.qb .e2-costwrap.opening .e2-gcard:nth-child(2)::after { animation-delay: .03s !important; }
html.qb .e2-costwrap.opening .e2-gcard:nth-child(3), html.qb .e2-costwrap.opening .e2-gcard:nth-child(3)::after { animation-delay: .06s !important; }
html.qb .e2-costwrap.opening .e2-gcard:nth-child(n+4), html.qb .e2-costwrap.opening .e2-gcard:nth-child(n+4)::after { animation-delay: .09s !important; }
html.qb .e2-gcard.flash::after { --b: var(--qf-signal); animation: qfx-flash .36s ease-out; }
@keyframes qfx-boot { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes qfx-lock { 0% { opacity: 0; transform: scale(1.08); } 45% { opacity: 1; } 100% { opacity: 0; transform: none; } }
@keyframes qfx-flash { 0% { opacity: 1; } 100% { opacity: 0; } }
/* one scan line down the token table: an overlay that grows from the top (scale, so it never adds scroll area) with a
   pink leading edge */
html.qb .e2-costs .scroll { position: relative; }
html.qb .e2-costs .scroll::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transform-origin: top;
  background: linear-gradient(180deg, transparent 75%, color-mix(in srgb, var(--qf-signal) 12%, transparent) 97%, var(--qf-signal) 99.4%); }
html.qb .e2-costwrap.opening .e2-costs .scroll::after { animation: qfx-scan .32s ease-out .06s both; }
@keyframes qfx-scan { 0% { opacity: 1; transform: scaleY(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: scaleY(1); } }
/* fields: square, and bracketed in teal while focused */
html.qb :is(.e2-gcard, .e2-shared) :is(input, select) { border-radius: 0 !important; }
html.qb :is(.e2-gcard, .e2-shared) input:focus-visible { outline: 0 !important; border-color: var(--qf-teal) !important; box-shadow: none !important; --b: var(--qf-teal);
  background: linear-gradient(var(--b), var(--b)) 0 0 / 6px 2px, linear-gradient(var(--b), var(--b)) 0 0 / 2px 6px,
    linear-gradient(var(--b), var(--b)) 100% 0 / 6px 2px, linear-gradient(var(--b), var(--b)) 100% 0 / 2px 6px,
    linear-gradient(var(--b), var(--b)) 0 100% / 6px 2px, linear-gradient(var(--b), var(--b)) 0 100% / 2px 6px,
    linear-gradient(var(--b), var(--b)) 100% 100% / 6px 2px, linear-gradient(var(--b), var(--b)) 100% 100% / 2px 6px, var(--qf-panel) !important;
  background-repeat: no-repeat !important; }
html.qb .e2-shared select:focus-visible { outline: 1px solid var(--qf-teal) !important; outline-offset: 2px; }
/* the sample-days chips: square, with a status lamp that lights once as the panel opens */
html.qb .e2-days { border-radius: 0 !important; background: transparent !important; border: 1px solid var(--qf-line-2); color: var(--qf-ink-3); }
html.qb .e2-days::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 5px; vertical-align: 1px; background: var(--qf-teal); }
html.qb .e2-costwrap.opening .e2-days::before { animation: qfx-lamp .3s steps(3, end) .1s both; }
@keyframes qfx-lamp { 0% { opacity: 0; } 50% { opacity: 1; } 75% { opacity: .2; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html.qb .e2-costwrap.opening .e2-gcard, html.qb .e2-gcard::after, html.qb .e2-costs .scroll::after, html.qb .e2-days::before { animation: none !important; }
}
html.qb .e2-bub { border-radius: 0 !important; }   /* the slider value readout: a flat tag, not a pill */

/* ===== chart download control and quettaflop.ai mark (dl/wm block, 11 Nov) =====
   Structure and motion live in eff2.css; this block gives them the HUD palette. The control takes the chamfer
   from the shared lists above, its export tick runs in signal pink, its hover hint is a flat tag with a pink edge. */
html.qb .qb-dl { --qfx-fill: var(--qf-panel); color: var(--qf-ink-2); }   /* chamfer, hover frame and focus ring: the shared lists above */
html.qb .qb-dl:is(:hover, :focus-visible) { color: var(--qf-ink); }
html.qb .qb-dl-tick { left: 6px; background: var(--qf-signal); }   /* clear of the cut bottom-left corner */
html.qb .qb-dl.dl-done { color: var(--qf-signal-ink); }
html.qb .qb-dl-hint { font-family: var(--qf-mono); color: var(--qf-ink-2); background: var(--qf-panel); border-color: var(--qf-line-2); box-shadow: inset 2px 0 0 var(--qf-signal); }
html.qb .qf-wm { font-family: var(--qf-mono); color: var(--qf-ink-3); }

/* every control reacts to the pointer, the selected one included: segment buttons and tabs turn pink, the search box
   and number fields brighten their outline */
html.qb :is(.seg, .e2-views, .e2-seg) button:hover, html.qb .subnav a:hover, html.qb .subnav a.on:hover { color: var(--qf-signal-ink) !important; }
html.qb .search:hover { --qfx-bd: var(--qf-ink-3); }
html.qb .e2-num:hover input { border-color: var(--qf-signal-ink) !important; }
/* the value readout shows while the track itself is hovered or in use, not for the whole slider block */
html.qb .e2-slider:hover:not(:has(.e2-sltrack:hover)):not(:focus-within) .e2-bub { opacity: 0 !important; }
/* cards cannot be pressed: the page's own stylesheet (qf-bench.css) brightens their corner brackets on hover; hold them
   at their resting look */
html.qb :is(.card.hard, .e2-card, .pi-card):hover::after { opacity: .55 !important; inset: -5px !important; --t: var(--qf-teal) !important; }

/* ===== hud3 (12 Nov): the last liquid glass in the efficiency view and the pop-ups, flattened =====
   Found by a computed-style sweep of every element and pseudo-element (backdrop blur, soft shadows, gloss gradients,
   rounding): the per-model metric rail and its glossy lens, the toast, the tooltips and open dropdowns (the dark
   theme's --shadow-up outranks the token reset above), and the bars' hover lift with its coloured glow. */
/* the metric rail: a chamfered well like the segmented controls, the chosen metric a pink-outlined plate with a pink rule */
html.qb .e2-rail { --qfx-c: 9px; --qfx-fill: var(--qfx-well); --qfx-bd: var(--qf-line); }
html.qb .e2-rail .pill { --qfx-c: 5px; --qfx-fill: var(--qf-signal-wash); --qfx-bd: var(--qf-signal); transition: transform .16s ease-out, height .16s ease-out; }
html.qb .e2-rail .pill.moving { animation: none; }
html.qb .e2-rail .pill::before { display: none; }
html.qb .e2-rail .pill::after { left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 0; background: var(--qf-signal); }
html.qb .e2-rail button { border-radius: 0; }
html.qb .e2-rail button.on b { transform: none; }
html.qb .e2-rail button span { font-family: var(--qf-mono, var(--mono)); }
/* pop-ups: flat panels on a hairline, square */
html.qb :is(.e2-tip, .ptip, .pi-tip, .pi-pop, .steptip, .ddm) { box-shadow: none !important; border-radius: 0 !important; }
html.qb .e2-note { border-radius: 0 !important; box-shadow: inset 2px 0 0 var(--qf-signal) !important; background: var(--qf-panel) !important;
  border: 1px solid var(--qf-line-2) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.qb :is(.e2-chip, .e2-pdform, .e2-mark.mono, .pricechips label, .pricechips input, .nsteady, .emptyover) { border-radius: 0 !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* bars: no lift and no coloured glow under the pointer (the HUD lock-on marks the bar instead) */
html.qb .e2-bar:hover .col, html.qb .e2-bar:focus-visible .col { transform: none; box-shadow: none; filter: none; }
html.qb .e2-bar.theo:hover .col { box-shadow: inset 0 3px 0 var(--c); }
html.qb .e2-bar.neg:hover .col, html.qb .e2-bar:hover .val { transform: none; }

/* Prices and assumptions: the same centred summary control as Assumptions above the score chart, its sign drawn (two
   1.5px bars, so it sits true in the box at any font), the panel it opens left-aligned under a hairline */
html.qb .e2-costwrap { display: flex; flex-direction: column; align-items: center; }
html.qb .e2-costwrap > .e2-costs { align-self: stretch; text-align: left; }
html.qb :is(.e2-eqwhy, .e2-costwrap) > summary { box-sizing: border-box; align-items: center; justify-content: center; gap: 9px; height: 34px; padding: 0 15px !important;
  font: 600 12.5px/1 var(--sans, inherit) !important; color: var(--qf-ink); }
html.qb :is(.e2-eqwhy, .e2-costwrap) > summary::before { content: "" !important; flex: none; width: 9px; height: 9px; margin: 0 !important;
  background: linear-gradient(currentColor, currentColor) center / 9px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 9px no-repeat; }
html.qb :is(.e2-eqwhy, .e2-costwrap)[open] > summary::before { content: "" !important; background: linear-gradient(currentColor, currentColor) center / 9px 1.5px no-repeat; }
html.qb :is(.e2-eqwhy, .e2-costwrap) > summary:hover { --qfx-bd: var(--qf-signal) !important; color: var(--qf-signal-ink); transform: none; }
html.qb .e2-costwrap[open] > summary { margin-bottom: 14px; }

/* close buttons: a chamfered square with a drawn ×, two 1.5px strokes crossing at the box's centre (the × character
   sits off-centre in every font) */
html.qb :where(.pi-x, #detail .iconbtn) { --qfx-c: 5px; position: relative; width: 32px; height: 32px; padding: 0; font-size: 0 !important; color: var(--qf-ink);
  cursor: pointer; transition: color .15s ease-out; }
html.qb :is(.pi-x, #detail .iconbtn)::before, html.qb :is(.pi-x, #detail .iconbtn)::after { content: ""; position: absolute; left: calc(50% - 6px); top: calc(50% - .75px);
  width: 12px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
html.qb :is(.pi-x, #detail .iconbtn)::after { transform: rotate(-45deg); }
html.qb :is(.pi-x, #detail .iconbtn):hover { --qfx-bd: var(--qf-signal) !important; color: var(--qf-signal-ink); transform: none; }
html.qb :is(.pi-x, #detail .iconbtn):active { transform: scale(.94); }
html.qb .pi-lnk { border-radius: 0 !important; }
html.qb .e2-bar { border-radius: 0 !important; }
html.qb .pi-dot { border-radius: 0 !important; transform: rotate(45deg) scale(.8); }

/* ===== hud3 centring pass (12 Nov): measured in Playwright, label box against the control's box =====
   the legend toggles centre their swatch and name on the box's middle line (they sat 3px high on touch screens) */
html.qb .lgi { align-items: center; }
/* the legend diamond centres on its label (the app's own rule lifted it 4px for top alignment) */
html.qb .lgi i { margin-top: 0; }
/* arrows are drawn, not typed: a text arrow sits off the box's centre in every font. One 12px stroke arrow, in the
   label's colour, centred on the line */
html.qb .qf-arrow { display: inline-block; flex: none; width: 12px; height: 12px; vertical-align: -1px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 6h8.6M6.6 2.5 10.1 6l-3.5 3.5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / 12px 12px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 6h8.6M6.6 2.5 10.1 6l-3.5 3.5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / 12px 12px no-repeat; }
html.qb :is(.pi-deepgo, .pi-go) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
/* the score's phone list: square rows and square bars, like every other bar on the site */
html.qb .e2-li, html.qb .e2-li .bar, html.qb .e2-li .bar i { border-radius: 0 !important; }

/* the score's phone list (hud3 follow-up, 12 Nov): each row is a chamfered plate drawn only when it matters, with no
   movement under the finger (the old hover nudge read as a jump after a tap). The chosen row takes the selected look of
   the desktop table and the kernel list: a closed pink chamfer outline, a pink rule on the left, pink corner ticks on
   its two square corners, and the signal wash */
html.qb .e2-li { --qfx-c: 6px; --qfx-bd: transparent; --qfx-fill: transparent; position: relative; transform: none !important; transition: none !important; }
html.qb .e2-li:hover { --qfx-fill: var(--qfx-hover); }
html.qb .e2-li.sel { --qfx-bd: var(--qf-signal); --qfx-fill: var(--qf-signal-wash); }
html.qb .e2-li:focus-visible { outline: 1px solid var(--qf-teal) !important; outline-offset: 2px !important; }
html.qb .e2-li::before, html.qb .e2-li::after { content: ""; position: absolute; pointer-events: none; opacity: 0; }
html.qb .e2-li::before { left: 0; top: 7px; bottom: 12px; width: 3px; background: var(--qf-signal); }
html.qb .e2-li::after { inset: 2px; --t: var(--qf-signal); --l: 7px;
  background: linear-gradient(var(--t), var(--t)) 0 0 / var(--l) 1px, linear-gradient(var(--t), var(--t)) 0 0 / 1px var(--l),
    linear-gradient(var(--t), var(--t)) 100% 100% / var(--l) 1px, linear-gradient(var(--t), var(--t)) 100% 100% / 1px var(--l);
  background-repeat: no-repeat; }
html.qb .e2-li.sel::before, html.qb .e2-li.sel::after { opacity: 1; }

/* ===== Efficiency Index only ===== */

/* ---------- the head: a hero band, title left, two stacked layers (model surface over the bench bars) right ---------- */
html.qb #r-pindex .pi-head { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; column-gap: clamp(24px, 4vw, 64px);
  padding: clamp(20px, 2.4vw, 36px) 0 clamp(24px, 2.6vw, 38px); margin-bottom: 22px; }
html.qb #r-pindex .pi-head { grid-template-rows: 1fr auto auto auto 1fr; }
html.qb #r-pindex .pi-head > .qfx-eye { grid-column: 1; grid-row: 2; }
html.qb #r-pindex .pi-head > h1 { grid-column: 1; grid-row: 3; }
html.qb #r-pindex .pi-head > .lede { grid-column: 1; grid-row: 4; }
html.qb #r-pindex .pi-head::before, html.qb #r-pindex .pi-head::after { content: ""; position: absolute; left: calc(50% - 50vw); right: calc(50% - 50vw); pointer-events: none; }
html.qb #r-pindex .pi-head::before { top: 0; height: 1px; background: linear-gradient(90deg, transparent 4%, var(--qf-signal) 30%, var(--qf-teal) 70%, transparent 96%); opacity: .7; }
html.qb #r-pindex .pi-head::after { bottom: 0; height: 9px;
  background: repeating-linear-gradient(90deg, var(--qfx-tick) 0 1px, transparent 1px 16px) 0 100% / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, var(--qf-ink-3) 0 1px, transparent 1px 160px) 0 100% / 100% 9px no-repeat,
    linear-gradient(var(--qf-line-2), var(--qf-line-2)) 0 100% / 100% 1px no-repeat;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
html.qb #r-pindex .pi-head .qfx-eye { margin: 0 0 18px; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
html.qb #r-pindex .pi-head h1, html.qb[data-pindex] .pi-head h1 { font-weight: 400; font-size: clamp(48px, 6.6vw, 112px); line-height: .94; letter-spacing: -.055em; margin-top: 0; }
html.qb #r-pindex .pi-head h1.ph::before { display: none; }
html.qb #r-pindex .pi-head .lede { margin-top: 1.2rem; max-width: 36rem; }
html.qb #r-pindex .pi-head .qfx-art { grid-column: 2; grid-row: 1 / -1; width: 100%; max-width: 480px; justify-self: end; aspect-ratio: 870 / 620; }
html.qb #r-pindex .pi-head .qfx-art .qfx-l.l0 { left: 2%; right: 2%; top: 4%; }
html.qb #r-pindex .pi-head .qfx-art .qfx-l.l1 { left: 3%; right: 30%; bottom: 3%; }

/* ---------- the filter strip and the three summary charts ---------- */
html.qb #r-pindex .pi-bar { --qfx-fill: color-mix(in srgb, var(--qf-panel) 94%, transparent); }
html.qb #r-pindex .pi-more { color: var(--qf-ink); }
html.qb #r-pindex .pi-deep { --qfx-fill: var(--qf-band); --qfx-bd: var(--qf-band); color: var(--qf-on-band-2); overflow: hidden; }
html.qb[data-theme="dark"] #r-pindex .pi-deep { --qfx-fill: #2a1f68; --qfx-bd: rgba(200, 190, 255, .3); }
html.qb #r-pindex .pi-deep h3 { color: var(--qf-on-band) !important; }
html.qb #r-pindex .pi-deep p { color: var(--qf-on-band-2); }
html.qb #r-pindex .pi-deep::before { content: ""; position: absolute; left: 0; right: 15px; top: 0; height: 1px; background: linear-gradient(90deg, var(--qf-signal), #3ff0dc); }
html.qb #r-pindex .pi-deep::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 10px; height: 5px; opacity: .5;
  background: repeating-linear-gradient(90deg, rgba(236, 232, 255, .5) 0 1px, transparent 1px 12px); }
/* on the indigo card the primary flips to lilac, so it still reads as the solid button */
html.qb #r-pindex .pi-deepgo { --qfx-fill: var(--qf-on-band); --qfx-bd: var(--qf-on-band); color: #1d1640 !important; }
html.qb #r-pindex .pi-ch h2 { font-weight: 500; }
html.qb #r-pindex .pi-cf { border-top: 1px solid var(--qf-line); padding-top: 8px; }
html.qb #r-pindex .pi-sh { align-items: center; }
html.qb #r-pindex .pi-sh h2 { flex: 1; }
html.qb #r-pindex .pi-sh h2::after { content: ""; flex: 1; height: 7px; align-self: center; margin: 0 6px 0 10px;
  background: repeating-linear-gradient(90deg, var(--qfx-tick) 0 1px, transparent 1px 16px) 0 100% / 100% 4px no-repeat,
    linear-gradient(var(--qf-line-2), var(--qf-line-2)) 0 100% / 100% 1px no-repeat,
    linear-gradient(var(--qf-signal), var(--qf-signal)) 0 100% / 36px 1px no-repeat; }
html.qb .pi-refline em { font-family: var(--mono); }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  /* the same hero as QuettaBench's overview: the figure on top, full width, then eyebrow, title and lede in one column */
  html.qb #r-pindex .pi-head { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; row-gap: 0; padding: 28px 0 clamp(24px, 2.6vw, 38px); margin-bottom: 22px; }
  html.qb #r-pindex .pi-head > .qfx-art { grid-column: 1; grid-row: 1; order: -1; justify-self: center; align-self: auto; max-width: 440px; width: 92%; margin-bottom: 4px; }
  html.qb #r-pindex .pi-head > .qfx-eye { grid-column: 1; grid-row: 2; margin-bottom: 14px; }
  html.qb #r-pindex .pi-head > h1 { grid-column: 1; grid-row: 3; font-size: clamp(42px, 12vw, 64px); line-height: .96; }
  html.qb #r-pindex .pi-head > .lede { grid-column: 1; grid-row: 4; margin-top: 1.6rem; font-size: clamp(16px, 1.25vw, 19px); }
  html.qb #r-pindex .pi-sh h2::after { display: none; }
}

/* phone: the filter fields and the Go deeper card use the card's full width, at the same type sizes as the QuettaBench cards */
@media (max-width: 640px) {
  html.qb #r-pindex .pi-adv .pi-f { width: 100%; }
  html.qb #r-pindex .pi-deep { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 10px; }
  html.qb #r-pindex .pi-deep h3 { font-size: 20px; }
  html.qb #r-pindex .pi-deep p { flex: none; font-size: 14px; line-height: 1.5; }
  html.qb #r-pindex .pi-deepgo { align-self: flex-start; }
  html.qb #r-pindex .pi-ch h2 { font-size: 20px; }
  /* taller plots: the rotated setup names under the bars took more height than the bars themselves */
  html.qb #r-pindex .e2-plot { height: 230px; }
  html.qb #r-pindex .pi-card .e2-plot { height: 190px; }
}

/* the hero's two-line lede is never cut to one line with an ellipsis */
html.qb #r-pindex .pi-head .lede.qf-clamp { display: block; -webkit-line-clamp: unset; overflow: visible; cursor: auto; }
/* no full-width rules across the page under the hero */
html.qb #r-pindex .pi-head::before, html.qb #r-pindex .pi-head::after { display: none !important; }

/* ===== hud3 (12 Nov): the expanded chart opens over a flat veil, no blur ===== */
html.qb .pi-zoom::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--qf-paper) 90%, transparent); animation: none; }
