/* The hero: a black opener with five pieces of the app floating round the
   headline. Clicking one opens it as an app window running the feature. */


/* Layout: a black hero as tall as the screen plus 400px, fading to the
   white page over its last 200px; header 74; floaters placed by percent of the screen
   and sized in vw, radius 24; title at most 7.5vw; subtitle 24 at 32 under it; button 44
   tall at 40 under that. Clicking a floater opens a lightbox with a simulation of the
   feature, drawn from the app's render code. App pieces use theme.rs LOOK_LIGHT and
   OBSIDIAN; terminal colours come from the site's hl.js. */
.nh-top, .nh-bar, .nh, .lb, .parking, .f50, .cl-a, .cl-card {
  --black: #000000;
  --white: #ffffff;
  --blue: #3455fa;
  --card: #fefdfb;
  --raised: #ebe8e3;
  --ink: #211f1c;
  --body: #3e3a35;
  --muted: #67615a;
  --faint: #8a837a;
  --hair: #dedad3;
  --rule: #edeae5;
  --good: #188038;
  --good-soft: #e6f4ea;
  --bad: #c5221f;
  --bad-soft: #fce8e6;
  --term-bg: #f0ede8;
  --orchid: #be39ef;
  --purple: #a768f3;
  --step-blue: #3d6ed6;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --vhh: max(100vh, 640px);
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Hack", ui-monospace, Menlo, monospace;
}
svg.i { width: 1em; height: 1em; display: block; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header: 74 tall, black, 20 in from the sides ---------- */
/* The bar and the note under it stay pinned to the top of the window. Black over
   the hero; once the page scrolls (main.js sets body.scrolled) both turn white
   with dark ink. --note-h is the note's height, measured by main.js, and 0 once
   the note is closed. */
html { scroll-padding-top: calc(74px + var(--note-h, 0px)); }
.nh-top { position: sticky; top: 0; z-index: 10; }
.nh-bar { position: relative; z-index: 10; height: 74px; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; background: var(--black); color: var(--white); transition: background-color .3s, color .3s; }
.nh-logo { display: inline-flex; align-items: center; gap: 10px; height: 34px; font: 500 30px/1 var(--sans); letter-spacing: -0.03em; color: inherit; text-decoration: none; }
.nh-logo svg { width: 28px; height: 28px; }
.nh-nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; height: 74px; }
.nh-nav a { display: flex; align-items: center; padding: 0 24px; font: 400 20px var(--sans); color: inherit; text-decoration: none; }
.nh-cta { margin-left: auto; display: inline-flex; align-items: center; height: 48px; padding: 0 32px; border-radius: 60px; background: var(--blue); color: var(--white); font: 400 20px var(--sans); text-decoration: none; white-space: nowrap; }

/* The note: one line centred under the bar, a hairline 20 in from the sides
   above and below it, a close button on the right. */
.nh-note { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 64px; box-sizing: border-box; background: var(--black); color: rgba(255,255,255,0.86); transition: background-color .3s, color .3s; }
.nh-note::before, .nh-note::after { content: ""; position: absolute; left: 20px; right: 20px; height: 1px; background: rgba(255,255,255,0.16); transition: background-color .3s; }
.nh-note::before { top: 0; }
.nh-note::after { bottom: 0; }
.nh-note p { margin: 0; font: 400 15px/1.4 var(--sans); text-align: center; text-wrap: balance; }
.nh-note a { margin-left: 6px; color: var(--white); text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.nh-note-x { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 18px; cursor: pointer; }
.nh-note-x:hover { background: rgba(255,255,255,0.12); }
.nh-note[hidden] { display: none; }
body.scrolled:not(.menu-open) .nh-bar,
body.scrolled:not(.menu-open) .nh-note { background: var(--white); color: var(--ink); }
body.scrolled:not(.menu-open) .nh-note p { color: var(--body); }
body.scrolled:not(.menu-open) .nh-note::before,
body.scrolled:not(.menu-open) .nh-note::after { background: var(--hair); }
body.scrolled:not(.menu-open) .nh-note a { color: var(--ink); }
body.scrolled:not(.menu-open) .nh-note-x:hover { background: rgba(0,0,0,0.06); }
/* With the note closed, the bar keeps its own hairline once it is white. */
body.scrolled:not(.menu-open) .nh-top:not(:has(.nh-note:not([hidden]))) .nh-bar { box-shadow: inset 0 -1px 0 var(--hair); }

/* ---------- The hero ---------- */
/* The hero starts under the bar and the note, so its floaters keep their places. */
.nh { position: relative; z-index: 0; margin-top: calc(-74px - var(--note-h, 0px)); padding-top: calc(74px + var(--note-h, 0px)); height: calc(var(--vhh) + 400px); background: var(--black); color: var(--white); overflow: clip; isolation: isolate; }
.nh::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; z-index: 3; pointer-events: none; background: linear-gradient(rgba(255,255,255,0) 0%, var(--white) 75%); }
/* The dotted surface behind the floaters (hero-surface.js). It covers the whole hero so it runs on into the fade to white. */
.nh > .nh-surface { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; transition: filter 0.5s var(--ease), opacity 0.5s var(--ease); }
/* It blurs with the headline when a floater is hovered, and goes with it when one is opened. */
@media (hover: hover) { .nh:has(.item:hover) > .nh-surface { filter: blur(6px); opacity: 0.4; } }
.nh-open > .nh-surface { filter: blur(8px); opacity: 0; }
/* The grain film is blended over the whole page; on a phone that means re-blending the moving surface every frame. */
@media (max-width: 599.98px), (pointer: coarse) { html .grain { display: none; } }
.floaters { position: absolute; left: 0; right: 0; top: 0; height: var(--vhh); z-index: 1; }
.nh-content { position: relative; z-index: 2; height: calc(var(--vhh) - 74px - var(--note-h, 0px)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-inline: 24px; pointer-events: none;
  transition: filter 0.5s var(--ease), opacity 0.5s var(--ease); }
.nh-content a { pointer-events: auto; }
.nh h1 { margin: 0; font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--white); white-space: nowrap; font-size: min(7.5vw, 144px);
  opacity: 0; transform: translateY(30px); }
html .nh h1 em { font-family: inherit; font-size: 1em; font-weight: inherit; letter-spacing: inherit; line-height: inherit; font-style: normal; color: var(--blue); animation: none; display: inline; }
.nh-sub { margin: 32px 0 0; font-size: 24px; line-height: 1.4; letter-spacing: -0.01em; color: var(--white); opacity: 0; transform: translateY(20px); }
.nh-btns { margin-top: 40px; opacity: 0; transform: translateY(20px); }
.nh-btn { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 48px; background: var(--blue); color: var(--white); font: 400 16px var(--sans); text-decoration: none; box-sizing: border-box; }
.ready h1 { opacity: 1; transform: none; transition: opacity 1s, transform 1.2s var(--ease); transition-delay: 0.3s; }
.ready .nh-sub { opacity: 1; transform: none; transition: opacity 0.8s, transform 0.8s var(--ease); transition-delay: 0.7s; }
.ready .nh-btns { opacity: 1; transform: none; transition: opacity 0.8s, transform 0.8s var(--ease); transition-delay: 0.9s; }

/* Floaters: item > enter > float > media. */
.item { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: max(180px, calc(var(--w) * 1vw)); cursor: pointer; transition: filter 0.5s var(--ease), opacity 0.5s var(--ease); }
.enter { container-type: inline-size; opacity: 0; transform: translateY(40px) scale(0.92); }
.ready .enter { opacity: 1; transform: none; transition-property: opacity, transform; transition-duration: 1.2s, 1.4s; transition-timing-function: ease, var(--ease); transition-delay: var(--enter-delay); }
.float { animation: float var(--float-duration) ease-in-out var(--float-delay) infinite; }
.nh-off .float { animation-play-state: paused; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  33% { transform: translate3d(calc(var(--float-x) * 14px), -18px, 0) rotate(calc(var(--float-x) * 0.6deg)); }
  66% { transform: translate3d(calc(var(--float-x) * -10px), 12px, 0) rotate(calc(var(--float-x) * -0.4deg)); }
}
.media { --u: calc(100cqw / var(--w)); position: relative; aspect-ratio: var(--aspect, 1 / 1); border-radius: 24px; overflow: hidden; background: var(--card); transition: transform 0.5s var(--ease); }
@media (hover: hover) {
  .floaters:has(.item:hover) .float { animation-play-state: paused; }
  .floaters:has(.item:hover) .item:not(:hover) { filter: blur(12px); opacity: 0.5; }
  .floaters:has(.item:hover) ~ .nh-content { filter: blur(6px); opacity: 0.4; }
  .item:hover .media { transform: scale(1.04); }
}
/* A round button in every card's bottom right corner shows that the card opens. It is
   there at rest, so a phone shows it too, and turns blue when the card is hovered. The
   ring in the card colour keeps it clear of the terminal output behind it. */
.corner { position: absolute; right: calc(1.1 * var(--u)); bottom: calc(1.1 * var(--u)); width: calc(2.5 * var(--u)); height: calc(2.5 * var(--u)); border-radius: 50%; background: var(--raised); color: var(--ink); display: grid; place-items: center; font-size: calc(1.05 * var(--u)); box-shadow: 0 0 0 calc(0.3 * var(--u)) var(--card); transition: background-color .25s, color .25s, transform .4s var(--ease); pointer-events: none; z-index: 2; }
.sz-m .corner { width: calc(2.2 * var(--u)); height: calc(2.2 * var(--u)); font-size: calc(0.95 * var(--u)); }
.sz-s .corner { width: calc(2.1 * var(--u)); height: calc(2.1 * var(--u)); font-size: calc(0.9 * var(--u)); }
@media (hover: hover) { .item:hover .corner { background: var(--blue); color: var(--white); transform: scale(1.1); } }
.nh-open .item:not(.active) { filter: blur(16px); opacity: 0; pointer-events: none; }
.nh-open .item.active { opacity: 0; transition: none; }
.nh-open .nh-content { filter: blur(8px); opacity: 0; }
.nh-open .float { animation-play-state: paused; }

/* What fills each floater, sized in vw so it scales with the floater. */
.f-term { background: #181818; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.f-term .f-hd { height: calc(2.6 * var(--u)); flex: none; display: flex; align-items: center; gap: calc(0.9 * var(--u)); padding: 0 calc(0.8 * var(--u)) 0 calc(1 * var(--u)); background: #0d0d0d; }
.f-term .f-lights { display: flex; gap: calc(0.45 * var(--u)); } .f-term .f-lights i { width: calc(0.7 * var(--u)); height: calc(0.7 * var(--u)); border-radius: 50%; background: #363636; }
.f-term .f-tab { height: calc(1.65 * var(--u)); padding: 0 calc(0.65 * var(--u)); border-radius: calc(0.5 * var(--u)); background: #282828; display: inline-flex; align-items: center; gap: calc(0.45 * var(--u)); font-size: calc(0.8 * var(--u)); color: #efefef; }
.f-term .f-tab b { width: calc(0.4 * var(--u)); height: calc(0.4 * var(--u)); border-radius: 50%; background: #37be69; }
.f-term pre { margin: 0; padding: calc(1.1 * var(--u)) calc(1.25 * var(--u)) calc(1.3 * var(--u)); font: calc(0.8 * var(--u))/calc(1.28 * var(--u)) var(--mono); color: #ebebeb; white-space: pre; overflow: hidden; }
.cursor { display: inline-block; width: 0.5em; height: 1.05em; background: #ebebeb; vertical-align: -0.2em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cardm { padding: calc(1.9 * var(--u)); display: flex; flex-direction: column; justify-content: center; gap: calc(1.05 * var(--u)); box-sizing: border-box; }
.cardm > * { flex-shrink: 0; }
.ks { flex: none; width: calc(3.2 * var(--u)); height: calc(3.2 * var(--u)); border-radius: calc(0.95 * var(--u)); display: grid; place-items: center; font-size: calc(1.7 * var(--u)); background: color-mix(in srgb, var(--hue) 13%, transparent); color: var(--hue); }
.f-nm { font-size: calc(1.45 * var(--u)); line-height: 1.25; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.f-nm.f-mono { font-family: var(--mono); font-weight: 400; font-size: calc(1.1 * var(--u)); }
.st { align-self: flex-start; height: calc(2.3 * var(--u)); padding: 0 calc(1 * var(--u)) 0 calc(0.85 * var(--u)); border-radius: 999px; display: inline-flex; align-items: center; gap: calc(0.55 * var(--u)); font-size: calc(1 * var(--u)); font-weight: 500; white-space: nowrap; }
.st i { width: calc(0.55 * var(--u)); height: calc(0.55 * var(--u)); border-radius: 50%; background: currentColor; }
.st.ok { background: var(--good-soft); color: var(--good); }
.st.no { background: var(--bad-soft); color: var(--bad); }
.st.is-run { background: color-mix(in srgb, #1a73e8 13%, transparent); color: #1a73e8; }
.st.is-run i, .rd i { animation: pulse 1s ease-in-out infinite; }
.st.wait { background: var(--raised); color: var(--muted); } .st.wait i { background: var(--faint); }
@keyframes pulse { 50% { opacity: 0.25; } }
.small { font-size: calc(1 * var(--u)); color: var(--faint); }
.fl { padding-top: calc(1.05 * var(--u)); border-top: 1px solid var(--rule); font-size: calc(1 * var(--u)); line-height: 1.45; color: var(--body); }
.fl span { display: block; font: calc(0.95 * var(--u))/1.4 var(--mono); color: var(--ink); }

.sz-m { padding: calc(1.5 * var(--u)); gap: calc(0.8 * var(--u)); }
.sz-m .ks { width: calc(2.8 * var(--u)); height: calc(2.8 * var(--u)); border-radius: calc(0.8 * var(--u)); font-size: calc(1.5 * var(--u)); }
.sz-m .f-nm { font-size: calc(1.25 * var(--u)); }
.sz-m .st { height: calc(1.95 * var(--u)); font-size: calc(0.85 * var(--u)); padding: 0 calc(0.85 * var(--u)) 0 calc(0.7 * var(--u)); }
.sz-m .small { font-size: calc(0.85 * var(--u)); }
.sz-s { padding: calc(1.3 * var(--u)); gap: calc(0.7 * var(--u)); }
.sz-s .ks { width: calc(2.4 * var(--u)); height: calc(2.4 * var(--u)); border-radius: calc(0.7 * var(--u)); font-size: calc(1.3 * var(--u)); }
.sz-s .f-nm { font-size: calc(1.1 * var(--u)); }
.sz-s .f-nm.f-mono { font-size: calc(0.95 * var(--u)); }
.sz-s .st { height: calc(1.8 * var(--u)); font-size: calc(0.8 * var(--u)); padding: 0 calc(0.8 * var(--u)) 0 calc(0.65 * var(--u)); }
.sz-s .small { font-size: calc(0.8 * var(--u)); }

/* ---------- The lightbox: padding 96 120 32, the window then its caption ---------- */
.lb { position: fixed; inset: 0; z-index: 20; display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 24px; padding: 96px 120px 32px; box-sizing: border-box; pointer-events: none; background: rgba(0,0,0,0); transition: background-color .5s var(--ease); }
.lb.shown { background: rgba(0,0,0,0.96); }
.lb.nh-on { pointer-events: auto; }
.lb-room { position: relative; width: 100%; min-height: 0; display: grid; place-items: center; }
.lb-panel { position: relative; border-radius: 24px; overflow: hidden; background: var(--card); transform-origin: 0 0; visibility: hidden; }
.lb-panel.dark { background: #181818; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.sim { position: absolute; left: 0; top: 0; width: 1000px; height: 610px; transform-origin: 0 0; opacity: 0; transition: opacity .2s; }
.lb.shown .sim { opacity: 1; transition: opacity .35s .3s; }
.lb-cap { display: flex; align-items: center; gap: 12px; width: min(1000px, 100%); color: var(--white); opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease); }
.lb.shown .lb-cap { opacity: 1; transform: none; transition: opacity .5s .4s, transform .6s var(--ease) .4s; }
.lb-cap b { font-size: 18px; font-weight: 500; }
.lb-cap span { font-size: 18px; color: rgba(255,255,255,0.7); }
.lb-btn { margin-left: auto; height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: rgba(255,255,255,0.12); color: var(--white); font: 400 15px var(--sans); cursor: pointer; backdrop-filter: blur(12px); }
.lb-close { position: absolute; top: 24px; right: 32px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.12); backdrop-filter: blur(12px); color: var(--white); display: grid; place-items: center; font-size: 20px; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .4s, visibility linear .4s; }
.lb.shown .lb-close { opacity: 1; visibility: visible; transition: opacity .4s .3s; }
.lb-close:hover, .lb-btn:hover { background: rgba(255,255,255,0.2); }
.lb-close:focus-visible, .lb-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.item:focus-visible { outline: none; }
.item:focus-visible .media { outline: 2px solid var(--white); outline-offset: 3px; }

/* The app window a simulation runs in: 1000 by 610 at the app's own sizes. Light
   shell from theme.rs LOOK_LIGHT (frame #eeebe6, frame_pick #e2dfd9, panel #f6f4f0);
   top bar 44 and its parts as the site's app window draws them; pane radius 15. */
.win { position: absolute; inset: 0; background: #eeebe6; font-size: 13px; line-height: 20px; color: var(--ink); }
.win-top { position: absolute; left: 0; right: 0; top: 0; height: 44px; display: flex; align-items: center; gap: 6px; padding-right: 8px; }
.win-top .lights { width: 78px; display: flex; gap: 8px; padding-left: 16px; flex: none; }
.win-top .lights i { width: 12px; height: 12px; border-radius: 50%; background: #e1ded8; display: block; }
.win-top .ws { height: 32px; padding: 0 12px; border-radius: 8px; display: flex; align-items: center; gap: 8px; font-size: 14px; flex: none; }
.win-top .ws svg { color: #8f8981; font-size: 12px; }
.win-top .tabs { flex: 1; display: flex; gap: 2px; min-width: 0; }
.win-top .tab { height: 30px; padding: 0 8px; border-radius: 8px; display: flex; align-items: center; gap: 6px; color: #6b665f; white-space: nowrap; }
.win-top .tab i { width: 6px; height: 6px; border-radius: 50%; background: #37be69; }
.win-top .ib { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #6b665f; font-size: 16px; }
.win-top .av { width: 28px; height: 28px; border-radius: 50%; background: #fefdfb; border: 1px solid #cac5be; box-sizing: border-box; display: grid; place-items: center; font-size: 11px; font-weight: 500; color: #6b665f; }
.win-rail { position: absolute; left: 0; top: 44px; bottom: 0; width: 52px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 6px; }
.win-rail .tl { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; color: #8a837a; font-size: 17px; }
.win-rail .tl.nh-on { background: #e2dfd9; color: #211f1c; }
.win-pane { position: absolute; left: 52px; top: 44px; width: 940px; height: 558px; border-radius: 15px; background: #f6f4f0; overflow: hidden; }
.termwin { position: absolute; left: 0; top: 0; width: 1280px; height: 780px; transform: scale(0.78125); transform-origin: 0 0; }
.termwin .app { position: absolute !important; left: 0 !important; top: 0 !important; --s: 1 !important; transform: none !important; }
.parking { position: fixed; left: -9999px; top: 0; width: 1280px; height: 780px; visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .float, .cursor { animation: none; }
  .enter, h1, .nh-sub, .nh-btns { transition: none !important; }
}

/* The terminal in the lightbox is the site's own app window, light like the page (light.css). */
html[data-theme="light"] .termwin .app { box-shadow: none; }

/* The header on a phone: the links fold into the site's menu button. */
/* The menu button wears the lightbox close button's look: round, white at 12% on
   the black bar, white lines. The site's own burger is a light box on this page. */
html[data-theme] .nh-bar .burger { display: none; margin-left: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.12); }
html[data-theme] .nh-bar .burger:hover { border: 0; background: rgba(255,255,255,0.2); }
html[data-theme] .nh-bar .burger span { background: var(--white); transition: background-color .3s; }
html[data-theme] body.scrolled:not(.menu-open) .nh-bar .burger { background: rgba(0,0,0,0.06); }
html[data-theme] body.scrolled:not(.menu-open) .nh-bar .burger:hover { background: rgba(0,0,0,0.1); }
html[data-theme] body.scrolled:not(.menu-open) .nh-bar .burger span { background: var(--ink); }
@media (max-width: 900px) {
  .nh-nav { display: none; }
  html[data-theme] .nh-bar .burger { display: grid; }
  /* Open, the menu is the site's full-screen one: the blurred backdrop, then the bar
     lifted above it so its button can close the menu, and the links centred over the
     backdrop. The bar is the links' stacking context, so it has to sit above the
     backdrop (40) or the links are drawn under the blur. */
  body.menu-open .nh-top { z-index: 50; }
  body.menu-open .nh-note { display: none; }
  body.menu-open .menu-backdrop { background: rgba(0, 0, 0, 0.72); }
  body.menu-open .nh-nav { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; position: fixed; inset: 0; z-index: -1; transform: none; height: auto; padding: 74px 20px 32px; background: transparent; }
  body.menu-open .nh-nav a { height: 56px; padding: 0 24px; font-size: 28px; letter-spacing: -0.02em; }
  .nh-cta { height: 40px; padding: 0 18px; font-size: 16px; }
  .logo-word { font-size: 24px; }
}
/* Tablets and phones keep the floaters, moved above and below the headline and
   made wider, the way the reference does it: its breakpoints (600, 1025), its
   minimum widths (160, 120), and on a phone a 16 radius, a 560 floor and a
   120 fade. */
@media (max-width: 1024.98px) {
  .item { left: calc(var(--x-md) * 1%); top: calc(var(--y-md) * 1%); width: max(160px, calc(var(--w-md) * 1vw)); }
  .nh-sub { font-size: 20px; }
}
@media (max-width: 599.98px) {
  .nh-bar, .nh, .lb { --vhh: max(100vh, 560px); }
  .nh::after { height: 120px; }
  /* A phone lays the hero out as a column: two cards, the headline, two cards, each pair
     a little out of step. The rows follow the content, so the cards never slide under
     the header or the browser bar. The floaters box steps aside so its cards join the
     hero's grid. */
  .nh { display: grid; grid-template-columns: repeat(20, 1fr); align-content: start; }
  .floaters { display: contents; }
  .item { position: relative; z-index: 1; left: auto; top: auto; width: auto; align-self: start; }
  .item[data-sim="term"] { grid-area: 1 / 2 / 2 / 11; margin-top: 24px; }
  .item[data-sim="bgp"] { grid-area: 1 / 12 / 2 / 20; margin-top: 52px; }
  .nh-content { grid-area: 2 / 1 / 3 / -1; height: auto; padding-block: 28px 32px; }
  .item[data-sim="book"] { grid-area: 3 / 2 / 4 / 10; margin-top: 40px; }
  .item[data-sim="watch"] { grid-area: 3 / 12 / 4 / 20; }
  .nh-sub { margin-top: 24px; font-size: 17px; text-wrap: balance; }
  .nh-btns { margin-top: 32px; }
  .media { border-radius: 16px; }
  .lb { padding: 80px 16px 24px; }
  .lb-close { top: 16px; right: 16px; }
  .lb-cap { flex-wrap: wrap; gap: 4px 12px; }
  .lb-cap b, .lb-cap span { font-size: 15px; }
  .nh-note { padding: 10px 52px 10px 20px; }
  .nh-note p { font-size: 14px; }
  .nh-note-x { right: 16px; }
}

/* ---------- checks simulation, drawn from the app's render code ---------- */
/* The check page's Run face (screens/check_write.rs title_bar, screens/check_chain.rs
   chain_face, screens/step_cards.rs section_header / section_body / output_box).
   The page reads theme(), so in light it wears BLANC (theme.rs:416). */

.sim-checks .ck, .sim-checks .ck * { box-sizing: border-box; }
.sim-checks .ck {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; overflow: hidden;
  font-family: var(--sans); font-weight: 300; color: #161616;
  background: #f6f4f0;
}
.sim-checks .ck svg { display: block; flex: none; }

/* Title bar: pt 24, pb 16, px 24, gap 16 (check_write.rs title_bar) */
.sim-checks .ck-tb { flex: none; display: flex; align-items: center; gap: 16px; padding: 24px 24px 16px; }
.sim-checks .ck-ib { flex: none; width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.sim-checks .ck-namecol { flex: 1 1 0; min-width: 0; overflow: hidden; display: flex; align-items: center; gap: 16px; }
.sim-checks .ck-nameline { flex: none; display: flex; align-items: center; gap: 16px; }
.sim-checks .ck-name { flex: none; height: 32px; display: flex; align-items: center; font-size: 24px; line-height: 32px; font-weight: 300; white-space: nowrap; color: #161616; }
.sim-checks .ck-vwrap { flex: none; display: flex; align-items: center; gap: 10px; }
.sim-checks .ck-vchip { flex: none; display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 8px; background: #fefdfb; border: 1px solid #cac5be; font-size: 12px; line-height: 16px; white-space: nowrap; transition: opacity 240ms ease; }
.sim-checks .ck-vchip.quiet { color: #6b665f; }
.sim-checks .ck-vchip .vl { font-weight: 500; color: #161616; }
.sim-checks .ck-vchip .vt { color: #6b665f; }
.sim-checks .ck-vchip .vdot { flex: none; width: 8px; height: 8px; border-radius: 50%; }

/* hd::kit::tabs, TabSize::Md (hd/kit.rs:441) */
.sim-checks .ck-tabs { flex: none; display: flex; padding: 3px; border-radius: 10px; border: 1px solid #e5e1db; background: rgba(0,0,0,0.047); }
.sim-checks .ck-tabrow { display: flex; align-items: center; gap: 2px; }
.sim-checks .ck-tab { flex: none; height: 30px; padding: 0 14px; border-radius: 7px; display: flex; align-items: center; font-size: 13px; line-height: 20px; font-weight: 500; white-space: nowrap; color: #6b665f; }
.sim-checks .ck-tab.on { background: #e5eefd; color: #1d4ea6; box-shadow: inset 0 0 0 1px rgba(0,114,245,0.45); }

/* bar_button: Secondary, ControlSize::Md (check_write.rs:8589, hd/mod.rs) */
.sim-checks .ck-btn { flex: none; height: 36px; padding: 0 14px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; background: #fefdfb; border: 1px solid #e5e1db; font-size: 14px; line-height: 20px; font-weight: 400; color: #161616; white-space: nowrap; }
.sim-checks .ck-btn .sq { width: 8px; height: 8px; border-radius: 4px; background: #161616; }

/* chain_face: pt 16, px 24, pb 24, gap 16 (check_chain.rs:1207) */
.sim-checks .ck-face { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 16px; padding: 16px 24px 24px; }
.sim-checks .ck-sum { flex: none; display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 4px; font-size: 12px; line-height: 16px; }
.sim-checks .ck-sum .sep { color: #8f8981; }
.sim-checks .ck-sum .part { display: flex; align-items: center; gap: 6px; }
.sim-checks .ck-sum .k { color: #6b665f; font-weight: 500; }
.sim-checks .ck-sum .v { color: #8f8981; }

/* tools_row (check_chain.rs:1311) */
.sim-checks .ck-tools { flex: none; display: flex; align-items: center; gap: 10px; }
.sim-checks .ck-search { flex: 0 1 320px; min-width: 0; height: 36px; padding: 0 8px; border-radius: 12px; display: flex; align-items: center; gap: 6px; background: #ece9e4; border: 1px solid #d7d3cc; overflow: hidden; }
.sim-checks .ck-search .ph { font-size: 12px; line-height: 16px; color: #8f8981; white-space: nowrap; overflow: hidden; }
.sim-checks .ck-field { flex: none; min-height: 40px; padding: 6px 12px; border-radius: 6px; display: flex; align-items: center; gap: 14px; background: #ece9e4; border: 1px solid #d7d3cc; color: #161616; }
.sim-checks .ck-field .lab { flex: 1 1 0; min-width: 0; font-size: 14px; line-height: 20px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.sim-checks .ck-field .lab .of { font-size: 12px; line-height: 16px; color: #6b665f; }
.sim-checks .ck-spacer { flex: 1 1 0; min-width: 0; }
.sim-checks .ck-small { flex: none; height: 28px; padding: 0 10px; border-radius: 8px; display: flex; align-items: center; background: #fefdfb; border: 1px solid #e5e1db; font-size: 12px; line-height: 16px; color: #161616; white-space: nowrap; }
.sim-checks .ck-export { flex: none; display: flex; align-items: center; gap: 8px; }
.sim-checks .ck-export .ck-small { font-weight: 500; }

/* The sections list */
.sim-checks .ck-list { flex: 1 1 0; min-height: 0; overflow: hidden; position: relative; }
.sim-checks .ck-sec { width: 100%; }

/* section_header (step_cards.rs:3711): 44 high, px 16, gap 12 */
.sim-checks .ck-sh { height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: #f6f4f0; border: 1px solid #e5e1db; border-radius: 8px; }
.sim-checks .ck-sh.open { border-radius: 8px 8px 0 0; border-bottom-width: 0; }
.sim-checks .ck-tw { flex: none; width: 12px; display: flex; align-items: center; }
.sim-checks .ck-tw svg { transition: transform 260ms cubic-bezier(.34,1.42,.64,1); transform: rotate(-90deg); }
.sim-checks .ck-sh.open .ck-tw svg { transform: rotate(0deg); }
.sim-checks .ck-dn { font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; color: #161616; }
.sim-checks .ck-pf { font-size: 14px; line-height: 20px; white-space: nowrap; color: #6b665f; }
.sim-checks .ck-sp { flex: 1 1 0; min-width: 0; }
.sim-checks .ck-chip { flex: none; height: 24px; padding: 0 10px; border-radius: 6px; display: flex; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; transition: opacity 220ms ease; }
.sim-checks .ck-chip.quiet { background: #e7e4df; color: #6b665f; font-weight: 400; }
.sim-checks .ck-chip.ok { background: rgba(55,190,105,0.133); color: #37be69; font-weight: 500; }
.sim-checks .ck-chip.bad { background: rgba(214,81,81,0.122); color: #d65151; font-weight: 500; }
.sim-checks .ck-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #8f8981; animation: ck-breath 750ms ease-in-out infinite; }

/* section_body / skeleton_body (step_cards.rs:3795, 3884) */
.sim-checks .ck-sb { width: 100%; display: flex; align-items: flex-start; border: 1px solid #e5e1db; border-top-width: 0; border-radius: 0 0 8px 8px; overflow: hidden; }
.sim-checks .ck-oc { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding: 12px 0 14px; }
.sim-checks .ck-cmd { height: 24px; padding: 0 16px 8px; display: flex; align-items: center; gap: 12px; }
.sim-checks .ck-cmd .c { font-family: var(--mono); font-size: 12px; white-space: nowrap; color: #161616; }
.sim-checks .ck-cmd .t { font-size: 12px; line-height: 20px; white-space: nowrap; color: #0072f5; }

/* output_box (step_cards.rs:3943): mx 16, radius 6, terminal ground, 8 over and under */
.sim-checks .ck-box { position: relative; margin: 0 16px; flex: none; border-radius: 6px; background: #efefef; overflow: hidden; }
.sim-checks .ck-frm { position: absolute; left: 0; top: 0; right: 0; bottom: 0; padding: 8px 0; overflow: hidden; }
.sim-checks .ck-lines { width: max-content; will-change: transform; }
.sim-checks .ck-ln { position: relative; height: 20px; display: flex; align-items: center; padding-left: 44px; font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.sim-checks .ck-tx { padding: 0 6px; border-radius: 3px; white-space: pre; color: #1f2328; line-height: 20px; }
.sim-checks .ck-tx.held { background: rgba(55,190,105,0.133); }
.sim-checks .ck-tx.bad { background: rgba(214,81,81,0.122); }
.sim-checks .ck-gcol { position: absolute; left: 0; top: 8px; width: 44px; }
.sim-checks .ck-gn { height: 20px; width: 44px; display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; background: #efefef; font-family: var(--mono); font-size: 12px; color: #8f8981; }
.sim-checks .ck-land { animation: ck-land 260ms cubic-bezier(.16,1,.3,1) both; }
.sim-checks .ck-fade-l, .sim-checks .ck-fade-r { position: absolute; top: 8px; bottom: 8px; width: 28px; display: none; }
.sim-checks .ck-fade-l { left: 44px; background: linear-gradient(90deg, #efefef, rgba(239,239,239,0)); }
.sim-checks .ck-fade-r { right: 0; background: linear-gradient(90deg, rgba(239,239,239,0), #efefef); }
.sim-checks .ck-fade-l.on, .sim-checks .ck-fade-r.on { display: block; }

/* The note riding a failing line (output_line, step_cards.rs:4099) */
.sim-checks .ck-dash { flex: none; width: 44px; margin-left: 8px; border-top: 1px dashed #e9d98f; }
.sim-checks .ck-note { flex: none; height: 28px; padding: 0 12px; display: flex; align-items: center; gap: 10px; border-radius: 6px; background: #fbf3d3; border: 1px solid #e9d98f; font-family: var(--sans); font-size: 12px; font-weight: 300; white-space: nowrap; color: #161616; }
.sim-checks .ck-note .s { flex: none; width: 16px; height: 16px; border-radius: 3px; background: #d65151; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 500; color: #ffffff; }
.sim-checks .ck-note .d { color: #0072f5; }
.sim-checks .ck-tail { flex: none; width: 32px; height: 1px; }

/* Skeleton box and bars (step_cards.rs:3884, theme.rs skeleton) */
.sim-checks .ck-skbox { margin: 0 16px; border-radius: 6px; background: #efefef; display: flex; flex-direction: column; justify-content: center; }
.sim-checks .ck-bars { padding: 4px 0 4px 56px; display: flex; flex-direction: column; }
.sim-checks .ck-barrow { height: 20px; display: flex; align-items: center; }
.sim-checks .ck-bar, .sim-checks .ck-skel { position: relative; flex: none; overflow: hidden; background: #e7e4df; }
.sim-checks .ck-bar { height: 9px; border-radius: 3px; }
.sim-checks .ck-skel { width: 64px; height: 28px; border-radius: 8px; }
.sim-checks .ck-bar::after, .sim-checks .ck-skel::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 110%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.6), rgba(255,255,255,0)); animation: ck-sweep 1500ms linear infinite; animation-delay: inherit; }

/* diagnosis_pane (step_cards.rs:4837): 360 wide */
.sim-checks .ck-dg { flex: none; width: 360px; border-left: 1px solid #e5e1db; display: flex; flex-direction: column; overflow: hidden; }
.sim-checks .ck-dgh { flex: none; padding: 14px 18px 12px; display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; color: #161616; }
.sim-checks .ck-dgb { flex: 1 1 0; min-height: 0; overflow: hidden; padding: 0 18px 14px; display: flex; flex-direction: column; gap: 12px; }
.sim-checks .ck-cond { display: flex; flex-direction: column; gap: 6px; }
.sim-checks .ck-crow { display: flex; align-items: flex-start; gap: 10px; }
.sim-checks .ck-vrow { display: flex; align-items: flex-start; gap: 10px; padding-left: 20px; }
.sim-checks .ck-lbl { flex: none; padding-top: 4px; font-size: 12px; line-height: 20px; white-space: nowrap; color: #8f8981; }
.sim-checks .ck-lbl.l { width: 10px; }
.sim-checks .ck-lbl.v { min-width: 54px; }
.sim-checks .ck-dchip { min-width: 0; padding: 5px 9px; border-radius: 6px; background: #e1ded8; font-size: 12px; line-height: 18px; color: #161616; }
.sim-checks .ck-dchip.m { font-family: var(--mono); }
.sim-checks .ck-word { flex: none; padding-top: 4px; font-size: 12px; line-height: 20px; font-weight: 500; }
.sim-checks .ck-then { border-top: 1px solid #e5e1db; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.sim-checks .ck-then .w { font-size: 14px; line-height: 20px; color: #161616; }

@keyframes ck-sweep { from { transform: translateX(-100%); } to { transform: translateX(90.9%); } }
@keyframes ck-breath { 0% { opacity: 0.35; } 50% { opacity: 1; } 100% { opacity: 0.35; } }
@keyframes ck-land { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ---------- watch simulation, drawn from the app's render code ---------- */
/* netamp watcher authoring page (app/src/ported/watcher_author.rs) in the look:
   dash_kit.rs sizes, LOOK_LIGHT colours (theme.rs). Drawn at the app's size
   inside .sw-z, which hero.js zooms to 0.7. */
.sim-watch {
  --panel: #f6f4f0;
  --card: #fefdfb;
  --raised: #ebe8e3;
  --input: #efece7;
  --ink: #211f1c;
  --body: #3e3a35;
  --muted: #67615a;
  --faint: #8a837a;
  --hair: #dedad3;
  --rule: #edeae5;
  --link: #1a73e8;
  --good: #188038;
  --good-soft: #e6f4ea;
  --term-bg: #f0ede8;
  --term-fg: #211f1c;
  --term-num: #a29b92;
  --warn-mark: #c25e00;
  --hack: "Hack", ui-monospace, Menlo, monospace;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--panel);
  border-radius: 15px;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
}
.sim-watch *, .sim-watch *::before, .sim-watch *::after { box-sizing: border-box; }
.sim-watch svg { display: block; flex-shrink: 0; }
.sim-watch .flex1 { flex: 1 1 0; min-width: 0; }

/* screen_body: 24 at the sides, the top and the foot */
.sim-watch .sw-z {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  display: flex; flex-direction: column; padding: 24px 24px 24px;
}

/* the path, then the 44 title row: 6 over it, 24 under it */
.sim-watch .sw-path { font-size: 13px; line-height: 20px; color: var(--link); flex-shrink: 0; }
.sim-watch .sw-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 24px; flex-shrink: 0; }
.sim-watch .sw-title { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sim-watch .sw-kt { font-size: 44px; line-height: 48px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.sim-watch .sw-small { font-size: 11.5px; line-height: 16px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }

/* seg_tabs: the panel track padded 3, tabs 4 apart, each 26 tall */
.sim-watch .sw-tabs { display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; background: var(--panel); flex-shrink: 0; }
.sim-watch .sw-tab {
  display: flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px;
  border: 1px solid transparent; font-size: 12px; line-height: 20px; color: var(--body); white-space: nowrap;
}
.sim-watch .sw-tab.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }

/* btn: 32 tall, padded 16, 13, fully round. btn_sm: 28, 12, 12 */
.sim-watch .sw-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0;
  height: 32px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--hair);
  font-size: 13px; line-height: 20px; color: var(--ink); white-space: nowrap;
  transition: transform 120ms cubic-bezier(.3, 1.4, .5, 1), opacity 160ms ease;
}
.sim-watch .sw-btn.sm { height: 28px; padding: 0 12px; font-size: 12px; }
.sim-watch .sw-btn.pri { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }
.sim-watch .sw-btn.off { opacity: 0.4; }
.sim-watch .sw-btn.press { transform: scale(0.97); }
.sim-watch .sw-spin { animation: sw-spin 1s linear infinite; }
@keyframes sw-spin { to { transform: rotate(360deg); } }

/* the command card: 22 at the sides, 16 over and under, 12 between */
.sim-watch .sw-card {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  padding: 16px 22px; border-radius: 18px; background: var(--card);
}
.sim-watch .sw-label { flex-shrink: 0; font-size: 12px; line-height: 20px; font-weight: 500; color: var(--muted); }
.sim-watch .sw-combo {
  width: 220px; flex-shrink: 0; height: 36px; display: flex; align-items: center; gap: 12px;
  padding: 0 12px; border-radius: 6px; border: 1px solid #d7d3cc; background: #e1ded8;
  font-size: 14px; line-height: 20px; color: var(--ink);
}
.sim-watch .sw-combo span { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* field: 34 tall, padded 12, 10 round, recessed into its card */
.sim-watch .sw-field {
  display: flex; align-items: center; gap: 8px; height: 34px; flex-shrink: 0;
  padding: 0 12px; border-radius: 10px; border: 1px solid transparent; background: var(--input);
  font-size: 13px; line-height: 20px; color: var(--ink); white-space: nowrap; overflow: hidden;
}
.sim-watch .sw-field.find { width: 200px; color: var(--faint); }

/* Sample and Fields side by side, 16 apart and 16 under the card */
.sim-watch .sw-main { flex: 1 1 0; min-height: 0; display: flex; gap: 16px; margin-top: 16px; }
.sim-watch .sw-pane {
  flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column;
  overflow: hidden; border-radius: 16px; background: var(--card);
}
.sim-watch .sw-pane.fields { flex: none; width: 420px; }
.sim-watch .sw-pane.result { flex: none; height: 260px; margin-top: 16px; }
/* pane_head: 52 tall, a hair under it, 18 at the left and 10 at the right */
.sim-watch .sw-ph {
  display: flex; align-items: center; gap: 10px; height: 52px; flex-shrink: 0;
  padding: 0 10px 0 18px; border-bottom: 1px solid var(--hair);
}
.sim-watch .sw-pw { flex-shrink: 0; font-size: 12px; line-height: 20px; font-weight: 500; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.sim-watch .sw-empty { padding: 4px 22px 24px; font-size: 13px; line-height: 20px; color: var(--muted); }
/* status_pill: 22 tall, padded 9, 11.5 at 500 */
.sim-watch .sw-pill {
  display: flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; flex-shrink: 0;
  background: var(--raised); color: var(--muted); font-size: 11.5px; line-height: 16px; font-weight: 500; white-space: nowrap;
}
.sim-watch .sw-pill.good { background: var(--good-soft); color: var(--good); }

/* the sample in the output box, inset 12 off the pane */
.sim-watch .sw-sbody { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.sim-watch .sw-out {
  flex: 1 1 0; min-height: 0; margin: 12px; padding: 12px 0; display: flex;
  border-radius: 14px; background: var(--term-bg); color: var(--term-fg);
}
.sim-watch .sw-list { flex: 1 1 0; min-width: 0; min-height: 0; overflow: hidden; padding: 6px 0; display: flex; flex-direction: column; }
.sim-watch .sw-line { display: flex; align-items: center; height: 18px; min-width: 620px; flex-shrink: 0; }
.sim-watch .sw-line.mark { background: rgba(33, 31, 28, 0.04); }
.sim-watch .sw-gut { width: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 2px; }
.sim-watch .sw-dot { width: 5px; height: 5px; border-radius: 9999px; background: var(--warn-mark); }
.sim-watch .sw-sq { width: 5px; height: 5px; border-radius: 1.5px; }
.sim-watch .sw-num { width: 30px; flex-shrink: 0; text-align: right; padding-right: 8px; font-family: var(--hack); font-size: 9px; color: var(--term-num); }
.sim-watch .sw-txt { flex: 1 1 0; min-width: 0; padding-right: 12px; white-space: pre; font-family: var(--hack); font-size: 11px; line-height: 18px; }
.sim-watch .sw-tok { white-space: pre; border-radius: 2px; border-bottom: 2px solid transparent; }
.sim-watch .sw-tok.lit { color: #0d0d0d; font-weight: 500; }
.sim-watch .sw-mini { width: 12px; flex-shrink: 0; border-left: 1px solid var(--hair); display: flex; flex-direction: column; padding: 6px 3px; }
.sim-watch .sw-mm { flex: 1 1 0; min-height: 1px; max-height: 3px; margin-bottom: 1px; border-radius: 1px; }

/* fields: 36 rows, inset 8 and rounded so a hover never meets the corners */
.sim-watch .sw-flist { flex: 1 1 0; min-height: 0; overflow: hidden; padding: 8px 0 10px; display: flex; flex-direction: column; }
.sim-watch .sw-frow {
  display: flex; align-items: center; gap: 10px; height: 36px; flex-shrink: 0;
  margin: 0 8px; padding: 0 10px; border-radius: 9px; transition: background 120ms ease;
}
.sim-watch .sw-frow.hov { background: var(--raised); }
.sim-watch .sw-fsq { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.sim-watch .sw-fname { width: 180px; flex-shrink: 0; font-family: var(--hack); font-size: 11px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.sim-watch .sw-fdel { visibility: hidden; padding: 0 4px; }
.sim-watch .sw-frow.hov .sw-fdel { visibility: visible; }

/* result: the card table, a 42 head and 43 rows with an inset rule */
.sim-watch .sw-rbody { flex: 1 1 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding-bottom: 16px; }
.sim-watch .sw-band {
  display: flex; align-items: center; height: 42px; flex-shrink: 0; border-bottom: 1px solid var(--hair);
  font-size: 13px; line-height: 20px; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.sim-watch .sw-rn { width: 44px; flex-shrink: 0; padding-left: 14px; font-size: 11px; color: var(--faint); }
.sim-watch .sw-rh { flex-shrink: 0; display: flex; align-items: center; gap: 6px; padding: 0 14px; overflow: hidden; transition: color 120ms ease; }
.sim-watch .sw-rh.lit { color: var(--ink); }
.sim-watch .sw-rsq { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.sim-watch .sw-rrow {
  position: relative; display: flex; align-items: center; height: 43px; flex-shrink: 0;
  font-size: 13px; line-height: 20px; color: var(--body); animation: sw-land 220ms ease both;
}
.sim-watch .sw-rrow::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 1px; background: var(--rule); }
.sim-watch .sw-rc {
  flex-shrink: 0; padding: 0 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--hack); font-size: 12px; border-radius: 4px; transition: background 120ms ease;
}
@keyframes sw-land { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ---------- book simulation, drawn from the app's render code ---------- */
/* The playbook run window, opened as a page (playbook_window.rs render,
   expanded). Every value is LOOK_LIGHT (theme.rs) and dash_kit.rs. */
.sim-book {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #f6f4f0;
  border-radius: 15px;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  color: #211f1c;
  -webkit-font-smoothing: antialiased;
}
.sim-book svg { display: block; flex-shrink: 0; }

/* The head: .rhead. pt 16, px 18, pb 12, rows 12 apart, card ground, hair under. */
.sim-book .bk-head {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px 12px;
  background: #fefdfb;
  border-bottom: 1px solid #dedad3;
  border-radius: 15px 15px 0 0;
  min-width: 0;
}
.sim-book .bk-r1 {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.sim-book .bk-name {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.sim-book .bk-title {
  font-size: 20px;
  line-height: 26px;
  font-weight: 500;
  color: #211f1c;
  white-space: nowrap;
}
/* dash_kit::state_pill: 26 tall, pl 9, pr 11, 12 at 500, 7 dot, 7 gap. */
.sim-book .bk-state {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  height: 26px;
  padding: 0 11px 0 9px;
  border-radius: 9999px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.sim-book .bk-state .dot { width: 7px; height: 7px; border-radius: 9999px; flex-shrink: 0; }
.sim-book .bk-state.run { background: rgba(26, 115, 232, 0.13); color: #1a73e8; }
.sim-book .bk-state.run .dot { background: #1a73e8; animation: bk-dot 1s linear infinite; }
.sim-book .bk-state.ok { background: #e6f4ea; color: #188038; }
.sim-book .bk-state.ok .dot { background: #188038; }
@keyframes bk-dot {
  0% { opacity: 1; }
  50% { opacity: 0.25; }
  100% { opacity: 1; }
}
/* .rlive: 12 in the device font, muted, one line, cut. */
.sim-book .bk-live {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 20px;
  color: #67615a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* dash_kit btn: 32 tall, px 16, 13 on 20, 7 gap, 14 glyph. */
.sim-book .bk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-shrink: 0;
  height: 32px;
  padding: 0 16px;
  box-sizing: border-box;
  border-radius: 9999px;
  border: 1px solid #dedad3;
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  color: #211f1c;
  white-space: nowrap;
}
.sim-book .bk-btn.pri { background: #211f1c; border-color: #211f1c; color: #ffffff; font-weight: 500; }
/* dash_kit icon_btn: 32 round, 16 glyph in muted. */
.sim-book .bk-ib {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
}
/* .rt2: 8 apart, wrapping. */
.sim-book .bk-r2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
/* pick_button: 30 tall, px 12, hair outline, 12.5 on 20, 7 gap. */
.sim-book .bk-pk {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  height: 30px;
  padding: 0 12px;
  box-sizing: border-box;
  border-radius: 9999px;
  border: 1px solid #dedad3;
  font-size: 12.5px;
  line-height: 20px;
  font-weight: 400;
  white-space: nowrap;
}
.sim-book .bk-pk .l { color: #67615a; }
.sim-book .bk-pk .v { color: #211f1c; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }

/* The body: the canvas on the panel grey, painted once by the window. */
.sim-book .bk-body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.sim-book .bk-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.sim-book .bk-wires { position: absolute; left: 0; top: 0; overflow: visible; }

/* A card: .card96. Sizes are set from JS at the canvas zoom. */
.sim-book .bk-card {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}
.sim-book .bk-plate {
  position: absolute;
  inset: -1px;
  box-sizing: border-box;
  border: 1px solid #dedad3;
  background: #fefdfb;
  border-radius: inherit;
}
.sim-book .bk-card.wait .bk-plate { opacity: 0.35; }
.sim-book .bk-card.wait .bk-glyph { opacity: 0.35; }
.sim-book .bk-card.live .bk-plate { border-color: #1a73e8; }
.sim-book .bk-glyph { position: relative; display: flex; }
.sim-book .bk-under {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.sim-book .bk-n {
  width: 100%;
  text-align: center;
  font-weight: 500;
  color: #211f1c;
  overflow: hidden;
}
.sim-book .bk-n.mono { font-family: var(--mono); }
.sim-book .bk-m {
  width: 100%;
  min-width: 0;
  text-align: center;
  color: #67615a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sim-book .bk-m.dev { font-family: var(--mono); color: #1a73e8; }
.sim-book .bk-mark {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}
.sim-book .bk-mark.spin svg { animation: bk-spin 1s linear infinite; }
@keyframes bk-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* The row count on a wire: .pl, muted on the panel colour, corner 6. */
.sim-book .bk-count {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sim-book .bk-count span {
  background: #f6f4f0;
  color: #67615a;
  white-space: nowrap;
}
/* The zoom cluster: .fl, card ground, round, padded 6, 8 apart, bottom left 16. */
.sim-book .bk-zoom {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 9999px;
  background: #fefdfb;
}

/* The terminal card, in the light cards' anatomy (theme.rs LOOK_LIGHT term_bg #f0ede8). */
.f-termcard { justify-content: flex-start; }
.f-termcard .f-row { display: flex; align-items: center; justify-content: space-between; }
.f-termcard .st { align-self: auto; }
.f-termcard .f-out { margin: calc(0.2 * var(--u)) 0 0; padding: calc(0.9 * var(--u)) calc(1 * var(--u)); border-radius: calc(0.9 * var(--u)); background: #f0ede8; font: calc(0.74 * var(--u))/calc(1.24 * var(--u)) var(--mono); color: #1f2328; white-space: pre; overflow: hidden; flex: 1 1 auto; min-height: 0; }
.f-termcard .cursor { background: #1f2328; }

/* The zoomed terminal with its sidebar folded to the rail of tools. */
.app .side.rail { width: 44px; align-items: center; gap: 4px; padding-top: 6px; }
.app .side[hidden] { display: none; }

/* Window controls in the macOS colours of a focused window. */
.app .lights i:nth-child(1), .win-top .lights i:nth-child(1) { background: #ff5f57; }
.app .lights i:nth-child(2), .win-top .lights i:nth-child(2) { background: #febc2e; }
.app .lights i:nth-child(3), .win-top .lights i:nth-child(3) { background: #28c840; }

/* ---------- Features 50/50 stack (gemini.google/about #features-5050) ---------- */
.f50 {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 80px 40px;
  box-sizing: border-box;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.f50-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.f50-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  width: 100%;
  margin: 0 auto;
}
.f50-copy {
  max-width: 440px;
}
.f50-title {
  margin: 0;
  font-family: inherit;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1.92px;
  color: #161616;
}
.f50-body {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: #5f6368;
}
.f50-body p {
  margin: 0;
}
.f50-body p + p {
  margin-top: 20px;
}
.f50-actions {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.f50-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #078efb;
  text-decoration: none;
  transition: color 0.2s ease;
}
.f50-link:hover,
.f50-link:focus-visible {
  color: #346bf1;
}
.f50-link svg {
  width: 24px;
  height: 24px;
  flex: none;
  display: block;
}
.f50-asset {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  overflow: hidden;
  background: #f4f5f7;
}
#b-aliases .f50-asset,
#b-playbooks .f50-asset {
  background: #1c2233;
}
.f50-asset > img,
.f50-asset > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  display: block;
}

/* Real UI cards (modeled after antigravity.google feature-explorer cards) */
/* The same light ground as the watcher tile (watcher-tile.css). */
.f50-asset--term {
  background: radial-gradient(70% 50% at 80% 0%, #ffffff, transparent 70%), #f4f6f9;
}
/* The site's app window (app.js) in the app's light theme (BLANC, from
   light.css). app.js scales it to cover 1.15 of the card's width, so it runs
   off the right edge and ends above the bottom. */
html[data-theme="light"] .f50-asset--term .app {
  left: 8%;
  top: 14%;
  width: 900px;
  height: 600px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 20px 60px rgba(15, 23, 42, 0.1);
}

.f50-asset--ui {
  background: #f3f4f6;
  container-type: inline-size;
}
.f50-ui-halo {
  position: absolute;
  inset: 10% 4% -6% 4%;
  border-radius: 36px;
  background: conic-gradient(
    from 180deg at 50% 50%,
    #fde047 0deg,
    #60a5fa 90deg,
    #818cf8 180deg,
    #f472b6 265deg,
    #4ade80 330deg,
    #fde047 360deg
  );
  filter: blur(28px);
  opacity: 0.55;
  pointer-events: none;
}
.f50-ui-win {
  position: absolute;
  top: 12%;
  left: 8%;
  width: 1000px;
  height: 610px;
  transform-origin: 0 0;
  transform: scale(calc(1.08 * 100cqi / 1000px));
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: #eeebe6;
}

/* The watcher card: choreographed raw CLI -> token match -> structured dataset table
   on the same BLANC sheet + ambient halo stage. */
.f50-asset--watch {
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}
.f50-wt-sheet {
  position: relative;
  width: 88%;
  border-radius: 24px;
  background: #f0efec;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
  padding: 18px 16px 16px;
  box-sizing: border-box;
}
.f50-wt-sheet::before {
  content: "";
  position: absolute;
  inset: -6% -4%;
  z-index: -1;
  border-radius: 36px;
  background: conic-gradient(
    from 155deg at 50% 50%,
    #60a5fa 0deg,
    #34d399 90deg,
    #fde047 180deg,
    #f472b6 265deg,
    #a78bfa 325deg,
    #60a5fa 360deg
  );
  filter: blur(28px);
  opacity: 0.45;
  transform: scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.f50-asset--watch[data-phase="parse"] .f50-wt-sheet::before {
  opacity: 0.58;
  transform: scale(1);
}
.f50-asset--watch[data-phase="table"] .f50-wt-sheet::before {
  opacity: 0.72;
  transform: scale(1.025);
}

.f50-wt-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: clamp(13px, 2.35cqi, 16px);
  font-weight: 500;
  color: #161616;
}
.f50-wt-head svg {
  width: clamp(15px, 2.7cqi, 18px);
  height: clamp(15px, 2.7cqi, 18px);
  color: #3455fa;
  flex: none;
}
.f50-wt-title {
  white-space: nowrap;
}
.f50-wt-cmd {
  font-family: var(--mono);
  font-size: clamp(10px, 1.65cqi, 11.5px);
  color: #6b665f;
  background: rgba(0, 0, 0, 0.045);
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.f50-wt-steps {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  background: #e5e2dc;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.f50-wt-step {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: inherit;
  font-size: clamp(10px, 1.65cqi, 11.5px);
  font-weight: 500;
  color: #6b665f;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.f50-asset--watch[data-phase="raw"] .f50-wt-step[data-step="raw"],
.f50-asset--watch[data-phase="parse"] .f50-wt-step[data-step="parse"],
.f50-asset--watch[data-phase="table"] .f50-wt-step[data-step="table"] {
  background: #fefdfb;
  color: #161616;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.f50-wt-card {
  background: #efefef;
  border: 1px solid #dedad3;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: background 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.f50-asset--watch[data-phase="table"] .f50-wt-card {
  background: #fefdfb;
}

.f50-wt-top {
  position: relative;
  height: clamp(34px, 5.8cqi, 38px);
  border-bottom: 1px solid #e2ded7;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
}
.f50-asset--watch[data-phase="table"] .f50-wt-top {
  background: #f7f5f1;
  border-bottom-color: #eae6df;
}
.f50-wt-rawhead,
.f50-wt-thead {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.f50-wt-rawhead {
  padding: 0 12px;
  gap: 7px;
  font-family: var(--mono);
  font-size: clamp(10px, 1.65cqi, 11.5px);
  color: #57524b;
  transform: translateY(0);
  opacity: 1;
}
.f50-wt-rawhead .n {
  width: 16px;
  text-align: right;
  color: #8f8981;
  flex: none;
}
.f50-wt-rawhead .p-host {
  color: #3455fa;
  font-weight: 600;
}
.f50-wt-rawhead .p-cmd {
  color: #161616;
}
.f50-wt-rawhead .p-sub {
  margin-left: auto;
  font-size: clamp(9px, 1.45cqi, 10px);
  color: #8f8981;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.f50-asset--watch[data-phase="table"] .f50-wt-rawhead {
  transform: translateY(-100%);
  opacity: 0;
}

.f50-wt-thead {
  padding: 0;
  font-size: clamp(10.5px, 1.75cqi, 12px);
  font-weight: 500;
  color: #4a4640;
  transform: translateY(100%);
  opacity: 0;
}
.f50-asset--watch[data-phase="table"] .f50-wt-thead {
  transform: translateY(0);
  opacity: 1;
}
.f50-wt-thead .ln {
  width: 32px;
  flex: none;
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #8f8981;
}
.f50-wt-thead .th {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 10px;
  border-left: 1px solid #eae6df;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
}
.f50-wt-thead .th .dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  flex: none;
}
.f50-wt-thead .th.c-if .dot { background: #3455fa; }
.f50-wt-thead .th.c-ip .dot { background: #188038; }
.f50-wt-thead .th.c-mt .dot { background: #d97706; }
.f50-wt-thead .th.c-st .dot { background: #9333ea; }
.f50-wt-thead .th em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--mono);
  font-size: 9.5px;
  color: #9b948b;
  font-weight: 400;
}

.f50-wt-thead .c-if,
.f50-wt-row .c-if { flex: 1.25 1 0; }
.f50-wt-thead .c-ip,
.f50-wt-row .c-ip { flex: 1.3 1 0; }
.f50-wt-thead .c-mt,
.f50-wt-row .c-mt { flex: 0.9 1 0; }
.f50-wt-thead .c-st,
.f50-wt-row .c-st { flex: 0.85 1 0; }

.f50-wt-rows {
  display: flex;
  flex-direction: column;
}
.f50-wt-row {
  display: flex;
  align-items: center;
  height: clamp(33px, 5.6cqi, 38px);
  font-family: var(--mono);
  font-size: clamp(10px, 1.7cqi, 11.5px);
  color: #1f2328;
  border-bottom: 1px solid transparent;
  transition: border-color 0.45s ease, background 0.35s ease;
}
.f50-wt-row:last-child {
  border-bottom: 0;
}
.f50-asset--watch[data-phase="table"] .f50-wt-row {
  border-bottom-color: #eae6df;
}
.f50-asset--watch[data-phase="table"] .f50-wt-row:nth-child(even) {
  background: rgba(240, 238, 233, 0.35);
}

.f50-wt-row .ln {
  width: 32px;
  flex: none;
  text-align: center;
  color: #8f8981;
  user-select: none;
  font-size: 10.5px;
}
.f50-wt-row .cell {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  border-left: 1px solid transparent;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  transition: border-color 0.5s ease, padding 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.f50-asset--watch[data-phase="table"] .f50-wt-row .cell {
  border-left-color: #eae6df;
}

.f50-wt-row .noise {
  display: inline-flex;
  align-items: center;
  width: clamp(32px, 5.6cqi, 42px);
  flex: none;
  color: #57524b;
  overflow: hidden;
  white-space: nowrap;
  transition:
    width 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    color 0.35s ease;
}
.f50-asset--watch[data-phase="parse"] .f50-wt-row .noise {
  opacity: 0.28;
  text-decoration: line-through;
}
.f50-asset--watch[data-phase="table"] .f50-wt-row .noise {
  width: 0;
  opacity: 0;
}

.f50-wt-row .tok {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  margin-left: -6px;
  border-radius: 4px;
  transition:
    background 0.38s ease calc(var(--r, 0) * 45ms),
    color 0.38s ease calc(var(--r, 0) * 45ms),
    box-shadow 0.38s ease calc(var(--r, 0) * 45ms);
}
.f50-asset--watch[data-phase="parse"] .c-if .tok {
  background: rgba(52, 85, 250, 0.14);
  color: #1e40af;
  box-shadow: inset 0 -1.5px 0 #3455fa;
}
.f50-asset--watch[data-phase="parse"] .c-ip .tok {
  background: rgba(24, 128, 56, 0.14);
  color: #146c2e;
  box-shadow: inset 0 -1.5px 0 #188038;
}
.f50-asset--watch[data-phase="parse"] .c-mt .tok {
  background: rgba(217, 119, 6, 0.14);
  color: #b45309;
  box-shadow: inset 0 -1.5px 0 #d97706;
}
.f50-asset--watch[data-phase="parse"] .c-st .tok {
  background: rgba(147, 51, 234, 0.14);
  color: #6b21a8;
  box-shadow: inset 0 -1.5px 0 #9333ea;
}

.f50-wt-row .c-st .tok i {
  width: 0;
  height: 6px;
  border-radius: 50%;
  opacity: 0;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.f50-asset--watch[data-phase="table"] .c-st .tok {
  border-radius: 6px;
  padding: 2px 8px;
  margin-left: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(10px, 1.65cqi, 11.5px);
}
.f50-asset--watch[data-phase="table"] .c-st .tok.ok {
  background: rgba(55, 190, 105, 0.14);
  color: #188038;
}
.f50-asset--watch[data-phase="table"] .c-st .tok.bad {
  background: rgba(214, 81, 81, 0.13);
  color: #d65151;
}
.f50-asset--watch[data-phase="table"] .c-st .tok i {
  width: 6px;
  opacity: 1;
}
.f50-asset--watch[data-phase="table"] .c-st .tok.ok i { background: #188038; }
.f50-asset--watch[data-phase="table"] .c-st .tok.bad i { background: #d65151; }

.f50-wt-foot {
  position: relative;
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-top: 1px solid #e2ded7;
  background: rgba(255, 255, 255, 0.45);
  font-size: clamp(10px, 1.65cqi, 11.5px);
  color: #6b665f;
}
.f50-wt-foot .f-raw,
.f50-wt-foot .f-parse,
.f50-wt-foot .f-table {
  position: absolute;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.f50-wt-foot .f-table i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #188038;
}
.f50-asset--watch[data-phase="raw"] .f50-wt-foot .f-raw,
.f50-asset--watch[data-phase="parse"] .f50-wt-foot .f-parse,
.f50-asset--watch[data-phase="table"] .f50-wt-foot .f-table {
  opacity: 1;
  transform: translateY(0);
}
.f50-asset--watch[data-phase="table"] .f50-wt-foot .f-table {
  color: #188038;
  font-weight: 500;
}
.f50-wt-foot .f-tpl {
  margin-left: auto;
  font-family: var(--mono);
  font-size: clamp(9.5px, 1.5cqi, 10.5px);
  color: #8f8981;
}

/* The check card: a grey sheet that holds its content and no more, centred
   in the square, with the colour glow behind it. */
.f50-asset--check {
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}
.f50-check-sheet::before {
  content: "";
  position: absolute;
  inset: -6% -4%;
  z-index: -1;
  border-radius: 36px;
  background: conic-gradient(
    from 195deg at 50% 50%,
    #fde047 0deg,
    #60a5fa 85deg,
    #a78bfa 175deg,
    #f472b6 260deg,
    #34d399 325deg,
    #fde047 360deg
  );
  filter: blur(28px);
  opacity: 0.55;
  pointer-events: none;
}
.f50-check-sheet {
  position: relative;
  width: 88%;
  border-radius: 24px;
  background: #f0efec;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
  padding: 18px 16px 16px;
  box-sizing: border-box;
}
.f50-ck-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: clamp(13px, 2.35cqi, 16px);
  font-weight: 500;
  color: #161616;
}
.f50-ck-head svg {
  width: clamp(15px, 2.7cqi, 18px);
  height: clamp(15px, 2.7cqi, 18px);
  color: #be39ef;
  flex: none;
}
.f50-ck-head .chev {
  width: 13px;
  height: 13px;
  color: #6b665f;
}
.f50-ck-head .verdict {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  background: #fefdfb;
  border: 1px solid #dedad3;
  font-size: clamp(11px, 1.85cqi, 12.5px);
  font-weight: 500;
  color: #161616;
}
.f50-ck-head .verdict i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d65151;
}
.f50-ck-card {
  background: #fefdfb;
  border: 1px solid #dedad3;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.f50-ck-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: clamp(36px, 6.2cqi, 42px);
  padding: 0 14px;
  border-bottom: 1px solid #eae6df;
  font-size: clamp(12px, 2cqi, 13.5px);
}
.f50-ck-row:last-child {
  border-bottom: 0;
}
.f50-ck-row .dn {
  font-weight: 500;
  color: #161616;
}
.f50-ck-row .pf {
  color: #8a837a;
  font-size: clamp(11px, 1.8cqi, 12.5px);
}
.f50-ck-pill {
  margin-left: auto;
  height: 22px;
  padding: 0 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(10.5px, 1.75cqi, 12px);
  font-weight: 500;
  white-space: nowrap;
}
.f50-ck-pill.ok {
  background: rgba(55, 190, 105, 0.14);
  color: #188038;
}
.f50-ck-pill.bad {
  background: rgba(214, 81, 81, 0.13);
  color: #d65151;
}
.f50-ck-out {
  padding: 10px 12px 12px;
  background: #faf8f5;
  border-bottom: 1px solid #eae6df;
}
/* The output box as step_cards::output_box draws it (BLANC terminal). */
.f50-ck-term {
  position: relative;
  border-radius: 6px;
  background: #efefef;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: clamp(10px, 1.65cqi, 11.5px);
  color: #1f2328;
  overflow: hidden;
}
/* The box slides sideways in the app; here the right edge fades the same way. */
.f50-ck-term::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: 0;
  width: 24px;
  background: linear-gradient(90deg, rgba(239, 239, 239, 0), #efefef);
}
.f50-ck-ln {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 1.7em;
  white-space: pre;
}
.f50-ck-ln .n {
  width: 14px;
  text-align: right;
  color: #8f8981;
  user-select: none;
  flex: none;
}
.f50-ck-ln .tx {
  padding: 0 5px;
  border-radius: 3px;
}
/* A failing line keeps the terminal's ink on the bad tint. */
.f50-ck-ln .tx.bad {
  background: rgba(214, 81, 81, 0.12);
}
/* The note rides the end of the failing line: a dashed lead, then the
   chip (step_cards::output_line). */
.f50-ck-ln .lead {
  width: 28px;
  flex: none;
  border-top: 1px dashed #e9d98f;
}
.f50-ck-ln .note {
  height: 24px;
  padding: 0 10px;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  background: #fbf3d3;
  border: 1px solid #e9d98f;
  font-family: var(--sans);
  font-size: clamp(10.5px, 1.75cqi, 12px);
  color: #161616;
}
.f50-ck-ln .chip {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: #d65151;
  color: #ffffff;
  font-size: 10px;
  font-weight: 500;
  display: grid;
  place-items: center;
  flex: none;
}
.f50-ck-ln .det {
  color: #0072f5;
}

@media (max-width: 1024px) {
  .f50 {
    padding: 60px 32px 32px;
  }
  .f50-title {
    font-size: 40px;
    letter-spacing: -1.6px;
  }
}

@media (max-width: 800px) {
  .f50 {
    padding: 48px 20px 24px;
  }
  .f50-list {
    gap: 60px;
    align-items: center;
  }
  .f50-row {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 500px;
  }
  .f50-copy {
    max-width: 100%;
  }
  .f50-title {
    font-size: 32px;
    letter-spacing: -0.32px;
    line-height: 1;
  }
  .f50-asset,
  .f50-asset img,
  .f50-asset video {
    border-radius: 16px;
  }
}



/* ---------- The closing call ---------- */
.closer.cl { margin-top: 0; padding: 0; overflow: visible; }

/* The cards are the hero's, drawn at a set size: --u is the hero's 1vw at the
   card's own width (the BGP card is 15 units wide, the playbook card 16). */
.cl-card { position: absolute; width: var(--cw); --u: calc(var(--cw) / var(--wu)); }
.cl-card .cardm { text-align: left; position: relative; aspect-ratio: var(--aspect); border-radius: 24px; overflow: hidden; background: var(--card); }
.cl-float { animation: float var(--float-duration) ease-in-out var(--float-delay) infinite; }
.cl-off .cl-float { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .cl-float { animation: none; } }

/* The hero's black again, so the page ends the way it opens. The white page
   fades into it over 200 and back out over 200, the hero's own fade. */
.cl-a { position: relative; overflow: clip; isolation: isolate; margin-top: 120px; padding: 330px 24px 330px; background: var(--black); color: var(--white); text-align: center; }
.cl-a::before, .cl-a::after { content: ""; position: absolute; left: 0; right: 0; height: 200px; z-index: 3; pointer-events: none; }
.cl-a::before { top: 0; background: linear-gradient(var(--white) 25%, rgba(255,255,255,0)); }
.cl-a::after { bottom: 0; background: linear-gradient(rgba(255,255,255,0), var(--white) 75%); }
.cl-cards { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cl-l { --cw: clamp(190px, 15vw, 250px); --wu: 15; --aspect: 1696 / 1448; left: 6%; top: 300px; }
.cl-r { --cw: clamp(200px, 16vw, 266px); --wu: 16; --aspect: 1 / 1; right: 6%; top: 470px; }
.cl-copy { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
html .cl-a h2 { margin: 0; font: 500 clamp(44px, 5vw, 80px)/1 var(--sans); letter-spacing: -0.03em; color: var(--white); text-wrap: balance; }
html .cl-a h2 em { font: inherit; font-style: normal; letter-spacing: inherit; color: var(--blue); }
.cl-a p { margin: 24px 0 0; font-size: 20px; line-height: 1.4; letter-spacing: -0.01em; color: rgba(255,255,255,0.72); }
.cl-btns { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cl-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font: 400 16px var(--sans); color: var(--white); text-decoration: none; transition: background-color .2s; }
.cl-btn svg { width: 16px; height: 16px; flex: none; }
.cl-solid { background: var(--blue); }
.cl-solid:hover { background: #2a48e6; }
.cl-ghost { background: rgba(255,255,255,0.12); }
.cl-ghost:hover { background: rgba(255,255,255,0.2); }
@media (max-width: 1024.98px) {
  .cl-a { padding: 460px 20px 500px; }
  .cl-l { --cw: clamp(150px, 34vw, 250px); left: 5%; top: 190px; }
  .cl-r { --cw: clamp(160px, 36vw, 266px); top: auto; bottom: 170px; right: 5%; }
  .cl-a p { font-size: 18px; }
}
@media (max-width: 599.98px) {
  /* A phone gets the call alone, with no cards. */
  .cl-a { margin-top: 72px; padding: 260px 20px 260px; }
  .cl-cards { display: none; }
}
