/* /features/audit-scoring. The server HTML is the finished page. Everything under
   .as-live, [data-armed] or the motion media query is added on top of it. */

@layer components {
.as-scenes {
  --as-m: clamp(16px, 3.2vw, 48px);
  --as-head: 84px;
  --as-r1: 112px; --as-r2: 470px; --as-r3: 400px; --as-r4: 320px; --as-rg: 96px;
  --as-r5: 84px; --as-r6: 470px; --as-r7: 300px; --as-r8: 260px;
  --as-ease-out: cubic-bezier(.22, 1, .36, 1);
  --as-ease-expo: cubic-bezier(.16, 1, .3, 1);
  --as-ease-io: cubic-bezier(.76, 0, .24, 1);
  position: relative;
}

.as-scenes pre { margin: 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.as-scenes code { font: inherit; }

/* A zero-height sticky rail: the one tag follows the scenes and stops where they stop. */
.as-tag-rail { position: sticky; bottom: 16px; z-index: 30; height: 0; display: flex; justify-content: flex-end; padding-inline: 16px; pointer-events: none; }
.as-tag { align-self: flex-end; padding: 5px 10px; border-radius: var(--radius-family); background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; transition: transform 240ms var(--as-ease-out); }
.as-tag.is-raised { transform: translateY(calc(-1 * var(--as-head) + 8px)); }

.as-hero { position: relative; display: grid; grid-template-columns: minmax(0, 49fr) minmax(0, 51fr); gap: 16px; align-items: center; min-height: calc(100svh - var(--nav-height)); padding: clamp(20px, 4svh, 44px) var(--as-m) clamp(16px, 3svh, 32px); overflow: clip; }
.as-h1 { font-size: clamp(36px, 4.7vw, 84px); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.as-h1 span { white-space: nowrap; }
.as-lead { margin-top: 20px; font-size: 20px; line-height: 1.4; max-width: 30em; }
.as-lead-phone { display: none; }
.as-hero [data-controller~="site-input"] { margin-top: 22px; }
.as-traces { display: grid; gap: clamp(2px, 1svh, 10px); margin-top: clamp(16px, 3svh, 30px); max-width: 566px; }
.as-trace { display: grid; grid-template-columns: 248px 1fr; align-items: center; gap: 18px; height: clamp(58px, 9.6svh, 88px); }
.as-trace-read { display: flex; align-items: baseline; gap: 12px; }
.as-trace-label { width: 38px; font-size: 18px; color: var(--band-ink-2); }
.as-trace-value { font-size: clamp(34px, 5.6svh, 50px); font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.as-trace svg { width: 100%; height: 100%; max-height: 84px; overflow: visible; }
.as-trace polyline { fill: none; stroke: var(--accent); stroke-width: 3; vector-effect: non-scaling-stroke; }
.as-trace.is-over polyline { stroke: var(--warn); }
.as-trace.is-over .as-trace-value { color: var(--warn); }

.as-dial { display: block; justify-self: center; width: 100%; max-height: calc(100svh - var(--nav-height) - 24px); aspect-ratio: 10 / 9; overflow: visible; }
.as-rim { fill: color-mix(in srgb, var(--band-ink) 14%, transparent); }
.as-rim.is-on { fill: var(--band-ink); }
.as-ring-track, .as-ring { fill: none; stroke-width: 48; }
.as-ring-track { stroke: var(--paper-2); }
.as-ring { stroke: var(--accent); }
.as-dial-big { font-size: 262px; font-weight: 800; letter-spacing: -.05em; fill: var(--band-ink); }
.as-dial-sub { font-size: 40px; font-weight: 500; fill: var(--band-ink-2); }
.as-ring-label { font-size: 36px; font-weight: 600; fill: var(--band-ink); }
.as-ring-num { font-weight: 800; fill: var(--accent); }
.as-dial-note { font-size: 34px; font-weight: 500; fill: var(--band-ink-2); }
.as-lamp-hit { fill: transparent; }
.as-lamp { fill: var(--poor); transition: opacity 180ms ease; }
.as-lamp-a { font-size: 36px; font-weight: 800; fill: var(--band); }
.as-lamp-b { font-size: 30px; font-weight: 500; fill: var(--band); }
.as-lamp-link:focus-visible { outline: 3px solid var(--band-ink); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .as-lamp-link:hover .as-lamp { opacity: .85; } }

/* The scan. Static first: intro, band, source with every pin, wall, ranks. */
.as-scan { background: var(--scan-plate); color: var(--scan-plate-ink); scroll-margin-top: var(--nav-height); }
.as-stage { position: relative; }
.as-intro { padding: clamp(40px, 8svh, 72px) var(--as-m); font-size: clamp(30px, 5vw, 72px); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; max-width: 19em; }

.as-band { position: relative; z-index: 6; display: flex; align-items: center; gap: clamp(16px, 3vw, 48px); height: var(--as-head); padding-inline: var(--as-m) calc(var(--as-m) + 124px); background: var(--ink); color: var(--paper); }
.as-band-path { flex: 1; min-width: 0; font-size: clamp(15px, 1.5vw, 20px); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-band-stat { display: flex; align-items: baseline; gap: 10px; font-size: clamp(14px, 1.2vw, 17px); font-weight: 500; white-space: nowrap; }
.as-band-stat b { min-width: 1.2em; font-size: clamp(30px, 3.6vw, 50px); font-weight: 800; line-height: 1; letter-spacing: -.03em; text-align: right; }
.as-band-sev { display: flex; gap: 18px; font-size: 16px; font-weight: 600; white-space: nowrap; }
.as-band-dock { display: none; gap: 6px; min-width: 96px; }
.as-live .as-band-dock { display: flex; }

.as-mark { display: block; flex: none; width: 20px; height: 20px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--scan-pin-info); }
.as-mark.is-warn { background: var(--scan-pin-warn); }
.as-mark.is-dock-info { background: var(--scan-flood-info); }

.as-camera { position: relative; }
.as-plate-raw { display: none; }
.as-track { position: relative; }
.as-row { position: relative; overflow: hidden; }
.as-r1 { height: var(--as-r1); } .as-r2 { height: var(--as-r2); } .as-r3 { height: var(--as-r3); } .as-r4 { height: var(--as-r4); }
.as-rg { height: var(--as-rg); } .as-r5 { height: var(--as-r5); } .as-r6 { height: var(--as-r6); } .as-r7 { height: var(--as-r7); } .as-r8 { height: var(--as-r8); }

.as-src { padding: 20px var(--as-m); font: 400 clamp(14px, 1.74vw, 25px)/1.5 var(--font-mono); color: var(--scan-plate-ink); }
.as-k { color: var(--scan-plate-3); }
.as-src-big { font-size: clamp(22px, 4.4vw, 64px); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
.as-meter { display: flex; gap: 3px; height: clamp(16px, 3svh, 30px); margin-top: 14px; }
.as-meter i { flex: 1; background: var(--scan-pin-info); }
.as-src-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(16px, 3vw, 48px); align-items: center; height: 100%; }
.as-src-split > div:first-child { min-width: 0; }
.as-src-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--as-m); }
.as-src-price { font-size: clamp(20px, 4.4vw, 64px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.as-src-gap { display: flex; align-items: center; height: 100%; padding-inline: var(--as-m); background: var(--scan-plate-2); font: 500 clamp(14px, 1.3vw, 18px)/1.3 var(--font-mono); }
.as-authline { display: flex; align-items: center; gap: 14px; margin: 6px 0 6px 2ch; font-size: clamp(20px, 3.2vw, 46px); font-weight: 500; }
.as-authline i { flex: 0 1 clamp(120px, 26vw, 380px); height: 1.3em; background: var(--scan-pin-info); }

.as-stamp { font-family: var(--font-display); font-size: clamp(92px, 19vw, 276px); font-weight: 800; line-height: .8; letter-spacing: -.05em; color: var(--scan-pin-warn); }
.as-stamp-small { font-size: clamp(64px, 10vw, 140px); }
.as-stamp-word { font-size: clamp(80px, 14vw, 200px); text-align: right; }
.as-stamp-word span { display: block; margin-top: .1em; font-size: .16em; font-weight: 700; line-height: 1.2; letter-spacing: 0; }
.as-stamp.is-info { color: var(--scan-pin-info); }

.as-pin { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 18px 10px 14px; border-radius: var(--radius-family); background: var(--scan-pin-info); color: var(--scan-pin-ink); font-family: var(--font-display); font-size: clamp(16px, 2vw, 28px); font-weight: 700; line-height: 1.15; text-decoration: none; transition: transform 140ms var(--as-ease-out); }
.as-pin.is-warn { background: var(--scan-pin-warn); }
.as-pin:active { transform: scale(.97); }
.as-pin .as-mark { width: .8em; height: .8em; background: var(--scan-pin-ink); }
.as-pin small { font-size: max(14px, .86em); font-weight: 500; }

/* The drawn site keeps its own colours in both modes. */
.as-nw { background: var(--nw-paper); color: var(--nw-ink); font-family: var(--font-display); }
.as-nw-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 40px); height: 100%; padding-inline: var(--as-m); font-size: clamp(14px, 1.2vw, 17px); font-weight: 500; }
.as-nw-nav b { margin-right: auto; font-size: clamp(18px, 1.6vw, 23px); font-weight: 800; letter-spacing: -.02em; color: var(--nw-blue); }
.as-nw-hero { height: 100%; padding: clamp(28px, 5svh, 56px) var(--as-m); background: var(--nw-blue); color: var(--nw-on-blue); }
.as-nw-hero p:first-child { font-size: clamp(40px, 8.2vw, 118px); font-weight: 800; line-height: .98; letter-spacing: -.035em; }
.as-nw-hero p + p { margin-top: 22px; font-size: clamp(17px, 1.7vw, 24px); max-width: 30em; }
.as-nw-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.4vw, 20px); height: 100%; padding: clamp(16px, 3svh, 28px) var(--as-m); background: var(--nw-paper); }
.as-nw-plan { display: flex; flex-direction: column; gap: 6px; padding: clamp(12px, 2vw, 28px); border-radius: var(--radius-family); background: var(--nw-card); }
.as-nw-plan.is-featured { background: var(--nw-gold); }
.as-nw-plan h4 { font-size: clamp(16px, 1.7vw, 24px); font-weight: 700; }
.as-nw-plan p { font-size: clamp(34px, 5.6vw, 80px); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.as-nw-plan small { font-size: clamp(14px, 1.1vw, 16px); }
.as-nw-plan ul { margin-top: auto; font-size: clamp(14px, 1.15vw, 16px); }
.as-nw-cta { display: flex; flex-direction: column; justify-content: center; gap: 8px; height: 100%; padding-inline: var(--as-m); background: var(--nw-ink); color: var(--nw-on-blue); }
.as-nw-cta p { font-size: clamp(22px, 3.2vw, 44px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.as-nw-cta span { font-size: clamp(16px, 1.5vw, 20px); color: var(--nw-gold); text-decoration: underline; }
.as-nw-gap { display: flex; align-items: center; height: 100%; padding-inline: var(--as-m); background: var(--nw-gap); font-size: clamp(16px, 1.5vw, 20px); font-weight: 700; }
.as-nw-post { height: 100%; padding: clamp(20px, 4svh, 44px) var(--as-m); }
.as-nw-post p:first-child { font-size: clamp(40px, 8.2vw, 118px); font-weight: 800; line-height: .98; letter-spacing: -.035em; }
.as-nw-post p + p { margin-top: 24px; font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; color: var(--nw-blue); }
.as-nw-post p.as-nw-lede { margin-top: 22px; font-size: clamp(20px, 2.6vw, 38px); font-weight: 500; line-height: 1.2; color: var(--nw-ink); max-width: 26em; }
.as-nw-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.as-nw-chips span { padding: 8px 14px; border-radius: var(--radius-family); background: var(--nw-gold); font-size: clamp(14px, 1.4vw, 20px); font-weight: 700; }
.as-nw-body { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--as-m); height: 100%; padding: 0 var(--as-m); font-size: clamp(19px, 1.95vw, 28px); line-height: 1.3; }
.as-nw-body .underline { color: var(--nw-blue); }
.as-nw-tail { display: flex; align-items: center; height: 100%; padding: 0 var(--as-m); background: var(--nw-blue); color: var(--nw-on-blue); font-size: clamp(26px, 4.4vw, 60px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }

.as-wallrank { display: grid; grid-template-columns: 13fr 11fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: 48px var(--as-m) 64px; }
.as-wall { display: grid; grid-template-columns: repeat(8, 1fr); gap: clamp(4px, .7vw, 10px); min-width: 0; }
.as-tile { position: relative; display: block; aspect-ratio: 1 / 1.12; background: color-mix(in srgb, var(--scan-plate-ink) 20%, transparent); transition: background-color 260ms ease, transform 420ms var(--as-ease-out); }
.as-tile::before { content: ""; position: absolute; left: 12%; right: 30%; top: 12%; height: 11%; background: color-mix(in srgb, var(--scan-pin-ink) 22%, transparent); }
.as-tile::after { content: ""; position: absolute; left: 12%; right: 12%; top: 34%; bottom: 14%; background: color-mix(in srgb, var(--scan-pin-ink) 10%, transparent); }
.as-wall[data-on="any"] .as-tile:not([data-issues=""]),
.as-wall[data-on="missing_author_markup"] [data-issues~="missing_author_markup"],
.as-wall[data-on="meta_title_too_long"] [data-issues~="meta_title_too_long"],
.as-wall[data-on="orphan_page"] [data-issues~="orphan_page"] { background: var(--scan-pin-info); }
.as-wall[data-on="any"] [data-issues~="broken_link"],
.as-wall[data-on="broken_link"] [data-issues~="broken_link"] { background: var(--scan-pin-warn); }
.as-wall[data-on="orphan_page"] [data-issues~="orphan_page"] { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); }

.as-ranks h3 { font-size: clamp(28px, 4vw, 58px); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.as-ranks > p { margin-top: 12px; font-size: clamp(17px, 1.35vw, 20px); }
.as-sev-phone { display: none; }
.as-rank-list { display: grid; gap: clamp(8px, 2.2svh, 24px); margin-top: clamp(12px, 3svh, 32px); }
.as-rank { display: grid; grid-template-columns: auto 1fr auto; column-gap: 12px; align-items: center; color: inherit; text-decoration: none; transition: opacity 240ms ease; }
.as-rank-slot { width: 20px; height: 20px; }
.as-rank-name { min-width: 0; font-size: clamp(17px, 1.6vw, 24px); font-weight: 600; line-height: 1.15; }
.as-rank-pages { text-align: right; white-space: nowrap; }
.as-rank-pages b { font-size: clamp(28px, 3.6vw, 54px); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.as-rank-pages small { font-size: 15px; font-weight: 600; }
.as-rank-track { grid-column: 1 / -1; height: clamp(10px, 2.4svh, 24px); margin-top: 8px; background: var(--scan-plate-2); }
.as-rank-fill { display: block; height: 100%; background: var(--scan-pin-info); transform: scaleX(var(--v)); transform-origin: 0 50%; }
.as-rank.is-warn .as-rank-fill { background: var(--scan-pin-warn); }
.as-fly, .as-counters { display: none; }

.as-board { display: grid; grid-template-columns: 5fr 7fr; background: var(--scan-plate); color: var(--scan-plate-ink); }
.as-board-left { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 9svh, 96px) var(--as-m); }
.as-board-left h2 { font-size: clamp(36px, 4.7vw, 68px); font-weight: 800; line-height: .98; letter-spacing: -.035em; }
.as-board-left > p { margin-top: 18px; font-size: clamp(18px, 1.5vw, 21px); }
.as-pin-list { display: grid; gap: 8px; margin-top: clamp(24px, 5svh, 44px); }
.as-pin-list a { border-radius: var(--radius-family); display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; background: var(--scan-plate-2); color: inherit; text-decoration: none; transition: background-color 180ms ease, transform 140ms var(--as-ease-out); }
.as-pin-list a:active { transform: scale(.985); }
.as-pin-list b { display: block; font-size: clamp(17px, 1.4vw, 20px); font-weight: 700; line-height: 1.2; }
.as-pin-list code { display: block; margin-top: 2px; font: 400 14px/1.3 var(--font-mono); color: var(--scan-plate-3); overflow-wrap: anywhere; }
.as-pin-list [aria-current="true"] { background: var(--scan-plate-ink); color: var(--scan-plate); }
.as-pin-list [aria-current="true"] code { color: inherit; }
.as-pin-list [aria-current="true"] .as-mark { background: var(--scan-plate); }
.as-board-right { display: grid; grid-template-columns: minmax(0, 1fr); }
.as-flood { display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 2.4svh, 22px); padding: clamp(32px, 7svh, 72px) var(--as-m); color: var(--scan-flood-ink); scroll-margin-top: var(--nav-height); }
.as-flood.is-warn { background: var(--scan-flood-warn); }
.as-flood.is-info { background: var(--scan-flood-info); }
.as-flood h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.as-flood-reach { margin-top: -8px; font-size: 18px; font-weight: 600; }
.as-evidence { font-size: clamp(22px, 2.5vw, 36px); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; overflow-wrap: anywhere; }
.as-pages { display: grid; gap: 2px; font-size: 17px; }
.as-pages li { display: flex; justify-content: space-between; gap: 16px; }
.as-pages span { white-space: nowrap; }
.as-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.as-tabs[hidden] { display: none; }
.as-tabs button { min-height: 44px; padding: 8px 12px; border: 0; border-radius: var(--radius-family); background: color-mix(in srgb, var(--scan-pin-ink) 20%, transparent); color: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color 180ms ease; }
.as-tabs [aria-selected="true"] { background: var(--scan-flood-ink); color: var(--scan-pin-ink); }
.as-tab-part { display: grid; gap: 6px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.4; max-width: 38em; }
.as-tab-part + .as-tab-part { margin-top: 12px; }
.as-tab-part h4 { font-size: inherit; font-weight: 700; }
.as-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 16px; }
.as-copy { display: none; min-height: 46px; padding: 0 16px; border: 0; border-radius: var(--radius-family); background: var(--scan-flood-ink); color: var(--scan-pin-ink); font-size: 16px; font-weight: 700; cursor: pointer; transition: transform 140ms var(--as-ease-out); }
.as-copy:active { transform: scale(.97); }

[data-audit-scenes-target~="count"][data-armed] { visibility: hidden; }

[data-board-armed] .as-copy { display: inline-block; }
[data-board-armed] .as-board-right .as-flood { grid-area: 1 / 1; }
[data-board-armed] .as-flood:not(.is-open):not(.was-open) { visibility: hidden; }
[data-board-armed] .as-flood.is-open { z-index: 2; }
[data-board-armed] .as-tab-parts { display: grid; }
[data-board-armed] .as-tab-part { grid-area: 1 / 1; margin: 0; align-content: start; }
[data-board-armed] .as-tab-part:not(.is-open) { visibility: hidden; }
[data-board-armed] .as-tab-part h4 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.as-vitals { padding: clamp(72px, 14svh, 140px) var(--as-m); }
.as-vitals h2 { font-size: clamp(36px, 6.4vw, 92px); font-weight: 800; line-height: 1; letter-spacing: -.035em; }
.as-vitals > p { margin-top: 16px; font-size: clamp(18px, 1.6vw, 22px); }
.as-lanes { display: grid; gap: clamp(20px, 4svh, 40px); margin-top: clamp(36px, 7svh, 72px); }
.as-lane { display: grid; grid-template-columns: clamp(70px, 9vw, 130px) 1fr clamp(170px, 23vw, 340px); gap: clamp(12px, 2vw, 28px); align-items: center; }
.as-lane h3 { font-size: clamp(24px, 3vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.as-lane-chart { position: relative; height: clamp(96px, 17svh, 170px); }
.as-lane-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.as-lane-zone { fill: var(--accent-soft); }
.as-lane-line { fill: none; stroke: var(--good); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.as-lane.is-over .as-lane-line { stroke: var(--warn); }
.as-lane-sweep { display: none; position: absolute; top: -6px; bottom: -6px; left: 0; width: 8px; background: var(--band-ink); will-change: transform; }
.as-lanes[data-armed] .as-lane-sweep { display: block; }
.as-lane-value { text-align: right; }
.as-lane-value b { display: block; font-size: clamp(36px, 6vw, 88px); font-weight: 800; line-height: 1; letter-spacing: -.035em; color: var(--good); }
.as-lane.is-over .as-lane-value b { color: var(--warn); }
.as-lane-value span { font-size: clamp(14px, 1.2vw, 17px); }

.as-eeat { padding: clamp(72px, 14svh, 140px) var(--as-m); background: var(--paper-2); color: var(--ink); }
.as-eeat-top { display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 44px); align-items: end; }
.as-eeat-n { font-size: clamp(110px, min(21vw, 26svh), 300px); font-weight: 800; line-height: .8; letter-spacing: -.05em; }
.as-eeat h2 { font-size: clamp(30px, 4.6vw, 66px); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.as-eeat-top p { margin-top: 12px; font-size: clamp(18px, 1.5vw, 21px); }
.as-code { display: flex; gap: clamp(8px, 1.6vw, 24px); margin-top: clamp(36px, 6svh, 64px); }
.as-group { min-width: 0; }
.as-group > p { margin-top: 12px; font-size: clamp(14px, 1.25vw, 18px); font-weight: 700; line-height: 1.2; }
.as-group > p span { display: block; font-weight: 500; }
.as-bars { display: flex; gap: clamp(2px, .4vw, 6px); height: clamp(180px, 34svh, 420px); }
.as-bar { position: relative; flex: 1; display: block; background: var(--accent); transform-origin: 50% 100%; }
.as-bar.is-absent { background: var(--poor); }
.as-absent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px clamp(16px, 3vw, 44px); align-items: baseline; margin-top: clamp(16px, 3svh, 28px); }
.as-absent h3 { font-size: clamp(18px, 1.5vw, 21px); font-weight: 800; }
.as-absent ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px 20px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.35; }
.as-tool-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; font-size: 18px; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 4px; }

.as-resolved { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(72px, 14svh, 140px) var(--as-m); background: var(--scan-plate); color: var(--scan-plate-ink); overflow: clip; }
.as-resolved-n { font-size: clamp(150px, min(27vw, 34svh), 380px); font-weight: 800; line-height: .76; letter-spacing: -.05em; }
.as-resolved h2 { margin-top: clamp(20px, 3svh, 32px); font-size: clamp(32px, 4.2vw, 60px); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.as-resolved-line { margin-top: 14px; font-size: clamp(18px, 1.5vw, 21px); max-width: 26em; }
.as-resolved-cta { display: inline-flex; align-items: center; min-height: 48px; margin-top: 22px; padding: 0 18px; border-radius: var(--radius-family); background: var(--scan-plate-ink); color: var(--scan-plate); font-size: 17px; font-weight: 700; text-decoration: none; transition: transform 140ms var(--as-ease-out); }
.as-resolved-cta:active { transform: scale(.97); }
.as-resolved-list { position: relative; display: grid; gap: clamp(8px, 1.6svh, 14px); }
.as-res-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: clamp(12px, 2.4svh, 22px) 0; }
.as-res-row .as-mark { opacity: 0; }
.as-res-row.is-open-row .as-mark { opacity: 1; }
.as-res-name { font-size: clamp(20px, 2vw, 28px); font-weight: 700; line-height: 1.15; }
.as-res-name code { display: block; margin-top: 3px; font: 400 16px/1.3 var(--font-mono); color: var(--scan-plate-3); }
.as-res-state { font-size: 16px; font-weight: 700; }
.as-next-run { display: none; position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 4px; background: var(--scan-pin-warn); font-style: normal; will-change: transform; }
.as-next-run::after { content: "Next run"; position: absolute; right: 0; bottom: 4px; padding: 2px 8px; background: var(--scan-pin-warn); color: var(--scan-pin-ink); font-size: 14px; font-weight: 700; line-height: 1.3; }
[data-armed] > .as-next-run { display: block; }
[data-armed] .as-res-row .as-mark { transition: transform 520ms var(--as-ease-expo), opacity 240ms ease; transform: rotate(-45deg) scale(.4) translateY(-18px); }
[data-armed] .as-res-row.is-unread .as-mark { opacity: 1; transform: rotate(-45deg); }
[data-armed] .as-res-row .as-res-state { transition: opacity 240ms ease; }
[data-armed] .as-res-row.is-unread .as-res-state { opacity: 0; }
[data-armed] .as-res-row.is-open-row .as-mark { transform: rotate(-45deg); }

.as-live .as-stage { position: sticky; top: var(--nav-height); height: calc(100svh - var(--nav-height)); overflow: clip; }
.as-live .as-intro { position: absolute; left: 0; right: 0; top: 0; z-index: 3; will-change: transform; }
.as-live .as-band { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.as-live .as-camera { position: absolute; inset: 0; z-index: 2; pointer-events: none; transform-origin: 0 0; will-change: transform; }
.as-live .as-plate { position: absolute; inset: 0; overflow: hidden; }
.as-live .as-plate-read { background: var(--scan-plate); }
.as-live .as-plate-raw { display: block; background: var(--nw-paper); }
.as-live .as-track { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.as-live .as-wallrank { position: absolute; inset: 0; z-index: 1; padding: clamp(20px, 4svh, 48px) var(--as-m) calc(var(--as-head) + 16px); }
.as-live .as-counters { display: grid; grid-area: 1 / 2; align-self: center; gap: clamp(8px, 3svh, 28px); will-change: opacity; }
.as-live .as-counters div { display: flex; flex-direction: column; }
.as-live .as-counters b { font-size: clamp(84px, min(17vw, 27svh), 244px); font-weight: 800; line-height: .86; letter-spacing: -.05em; }
.as-live .as-counters span { margin-top: 6px; font-size: clamp(18px, 2vw, 28px); font-weight: 600; }
.as-live .as-ranks { grid-area: 1 / 2; will-change: opacity, transform; }
.as-live .as-wall { grid-area: 1 / 1; }
.as-live .as-rank { opacity: .55; }
.as-live .as-rank.is-on { opacity: 1; }
.as-live [data-rank-mark] { opacity: 0; }
.as-live .is-landed [data-rank-mark] { opacity: 1; }
.as-live .as-fly { display: block; position: absolute; left: 0; top: 0; z-index: 7; opacity: 0; will-change: transform; }
.as-live .as-fly .as-mark { width: 26px; height: 26px; }
.as-live .as-fly.is-warn .as-mark { background: var(--scan-pin-warn); }
.as-live .as-tile { opacity: .4; }
.as-live .as-tile.is-read { opacity: 1; }
.as-live .as-band-sev { opacity: 0; }
.as-live .as-pin { pointer-events: auto; opacity: 0; transform: scale(.8); transition: transform 520ms var(--as-ease-expo), opacity 200ms ease; }
.as-live .as-pin.is-hit { opacity: 1; transform: none; }
.as-live .as-stamp { opacity: 0; transform: scale(.72); transform-origin: 100% 50%; transition: transform 700ms var(--as-ease-expo), opacity 200ms ease; }
.as-live .as-src-split.is-stamped .as-stamp { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .as-rim { animation: as-fade 200ms ease calc(60ms + var(--i) * 34ms) backwards; }
  .as-ring { animation: as-ring-sweep 1250ms var(--as-ease-expo) backwards; }
  .as-flood.is-flooding { animation: as-flood 620ms var(--as-ease-io) both; }
  .as-code[data-armed] .as-bar { transform: scaleY(0); }
  .as-code .as-bar { transition: transform 900ms var(--as-ease-expo); transition-delay: calc(var(--i) * 22ms); }
}
@keyframes as-fade { from { opacity: 0; } }
@keyframes as-ring-sweep { from { stroke-dashoffset: var(--v); } }
@keyframes as-flood {
  from { clip-path: circle(0 at var(--cx, 0) var(--cy, 50%)); }
  to { clip-path: circle(150% at var(--cx, 0) var(--cy, 50%)); }
}

@media (hover: hover) and (pointer: fine) {
  .as-pin-list a:not([aria-current="true"]):hover { background: color-mix(in srgb, var(--scan-plate-2) 80%, var(--scan-pin-ink)); }
}

@media (max-width: 900px) {
  .as-h1 span { white-space: normal; }
  .as-hero { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-block: 24px 16px; min-height: 0; }
  .as-hero-left { display: contents; }
  .as-lead { font-size: 17px; line-height: 1.35; margin-top: 12px; }
  .as-dial { order: 3; width: min(100%, 60svh); max-height: none; margin: 12px auto 0; }
  .as-traces { order: 4; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; max-width: none; }
  .as-trace { display: block; height: auto; }
  .as-trace-read { display: block; }
  .as-trace-label { display: block; width: auto; font-size: 15px; line-height: 1.1; }
  .as-trace-value { font-size: 27px; }
  .as-trace svg { height: 30px; margin-top: 4px; }
  .as-dial-sub, .as-ring-label, .as-dial-note, .as-lamp-a, .as-lamp-b { font-size: 44px; }
}

@media (max-width: 820px) {
  .as-scenes { --as-head: 72px; --as-r1: 104px; --as-r2: 372px; --as-r3: 236px; --as-r4: 300px; --as-rg: 56px; --as-r5: 92px; --as-r6: 360px; --as-r7: 300px; --as-r8: 150px; }
  .as-band { justify-content: space-between; gap: 10px; padding-inline: 16px; }
  .as-band-path { position: absolute; left: 16px; right: 16px; }
  .as-band-sev { display: none; }
  .as-band-stat { gap: 6px; font-size: 14px; }
  .as-band-stat b { font-size: 28px; }
  .as-band-dock { min-width: 0; margin-left: auto; }
  .as-band-dock .as-mark { width: 14px; height: 14px; }
  .as-live .as-band-path { opacity: 0; }
  .as-tag-rail { bottom: 8px; }
  .as-tag { padding: 3px 7px; }
  .as-src { padding: 12px 16px; font-size: 14px; }
  .as-src-cols .as-k { display: none; }
  .as-src-cols pre { white-space: pre-line; }
  .as-src-cols { gap: 10px; }
  .as-src-split { grid-template-columns: minmax(0, 1fr); gap: 6px; align-content: start; }
  .as-stamp { font-size: 92px; }
  .as-stamp-small { font-size: 56px; }
  .as-stamp-word { display: flex; align-items: baseline; gap: 8px; font-size: 44px; text-align: left; }
  .as-stamp-word span { margin-top: 0; font-size: 14px; }
  .as-nw-post { padding-block: 20px; }
  .as-nw-post p + p { margin-top: 12px; }
  .as-nw-post p.as-nw-lede { margin-top: 10px; }
  .as-nw-chips { margin-top: 12px; }
  .as-nw-body { grid-template-columns: 1fr; align-content: start; gap: 14px; padding-top: 16px; }
  .as-nw-plan { padding: 10px; }
  .as-nw-hero p:first-child { font-size: clamp(36px, 10.4vw, 72px); }
  .as-wallrank { grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: center; }
  .as-wall { width: min(100%, 46svh); }
  .as-ranks h3 { font-size: 24px; }
  .as-ranks h3 br { display: none; }
  .as-ranks > p { margin-top: 4px; font-size: 15px; }
  .as-sev-phone { display: inline; }
  .as-rank-name { font-size: 16px; }
  .as-rank-pages b { font-size: 24px; }
  .as-live .as-wallrank { grid-template-rows: auto minmax(0, 1fr); align-content: stretch; padding-top: 14px; }
  .as-live .as-wall { grid-area: 1 / 1; }
  .as-live .as-tile { aspect-ratio: 1 / .82; }
  .as-live .as-counters, .as-live .as-ranks { grid-area: 2 / 1; }
  .as-live .as-counters { grid-template-columns: 1fr 1fr; align-self: center; }
  .as-live .as-counters b { font-size: clamp(64px, min(26vw, 14svh), 140px); }
  .as-live .as-counters span { font-size: 16px; }
  .as-board { grid-template-columns: minmax(0, 1fr); }
  .as-flood { justify-content: flex-start; }
  [data-board-armed] .as-tab-part:not(.is-open) { display: none; }
  .as-board-left { padding-block: 56px 28px; }
  .as-lane { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .as-lane-chart { grid-column: 1 / -1; grid-row: 2; height: 96px; }
  .as-lane-value { grid-column: 2; grid-row: 1; }
  .as-lane-value b { font-size: 40px; }
  .as-eeat-top { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .as-code { gap: 8px; }
  .as-group > p, .as-group > p span { font-size: 14px; }
  .as-bars { height: 200px; }
  .as-absent { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
  .as-absent h3 { font-size: 20px; }
  .as-absent ul { grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: 17px; }
  .as-resolved { grid-template-columns: minmax(0, 1fr); }
  .as-res-row { grid-template-columns: 24px 1fr auto; gap: 10px; }
}

@media (min-width: 821px) and (max-height: 800px) {
  .as-eeat, .as-resolved { padding-block: clamp(28px, 6svh, 48px); }
  .as-code { margin-top: 20px; }
  .as-bars { height: 26svh; }
  .as-tool-link { margin-top: 6px; }
}

@media (max-width: 760px) {
  .as-lead-wide, .as-traces { display: none; }
  .as-lead-phone { display: inline; }
  .as-hero-fine { order: 4; }
}

@media (max-width: 820px) and (max-height: 740px) {
  .as-wall { width: min(100%, 34svh); }
  .as-ranks > p { display: none; }
  .as-rank-list { gap: 6px; margin-top: 8px; }
  .as-rank-track { height: 8px; margin-top: 4px; }
}

@media (max-width: 340px) {
  .as-band-dock { gap: 3px; }
  .as-band-dock .as-mark { width: 10px; height: 10px; }
}

@media (max-width: 440px) {
  .as-pages li { flex-wrap: wrap; gap: 0 12px; }
  .as-pages span { white-space: normal; }
  .as-absent ul { grid-template-columns: minmax(0, 1fr); }
  .as-h1 { font-size: 33px; }
  .as-intro { font-size: 28px; }
  .as-group > p { overflow-wrap: anywhere; hyphens: auto; }
  .as-code { flex-wrap: wrap; }
  .as-group { flex: 1 1 calc(50% - 8px) !important; }
  .as-bars { height: 120px; }
  .as-bar { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .as-scenes *, .as-scenes *::before, .as-scenes *::after { animation: none !important; transition: none !important; }
}
}
