/* ============================================================================
   AI Agents page. Grammar: a control room ledger (sticky index left, one
   storyboard per agent right). Signature: the global mode switch, which
   regrades every [data-mode-aware] element on the page at once.
   Anchors: hero lead, anatomy split, room trailing head, band low-left,
   control split, faq split, close centre.
   Motion: transform / opacity / clip-path only. Tokens only, except inside
   always-dark scenes (the phone, the night film) where ink must not flip.
   ========================================================================== */

/* ---------------------------------------------------- mode-aware swaps -- */
/* .sw stacks its variants in one grid cell so the box never jumps when the mode flips */
.sw { display: inline-grid; }
.sw > .sw__v { grid-area: 1 / 1; transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out), visibility 0s linear 0s; }
.sw > [data-when="auto"],
:root[data-agent-mode="auto"] .sw > [data-when="approve"] { opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms; }
:root[data-agent-mode="auto"] .sw > [data-when="approve"] { transform: translateY(-6px); }
:root[data-agent-mode="auto"] .sw > [data-when="auto"] { opacity: 1; visibility: visible; transform: none; transition: opacity 320ms var(--ease-out) 80ms, transform 320ms var(--ease-out) 80ms, visibility 0s linear 0s; }

[data-when-paused="yes"] { display: none !important; }
:root[data-agents-paused] .ag-live[data-when-paused="yes"] { display: inline-flex !important; }
:root[data-agents-paused] [data-when-paused="no"] { display: none !important; }

/* a flip draws the eye to every element that answered it */
[data-mode-aware] { position: relative; }
[data-mode-aware]:not(.flow__step)::after, .flow__step[data-mode-aware] .flow__vis::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  border: 1.5px solid var(--accent-text); opacity: 0;
}
[data-mode-aware].is-flash:not(.flow__step)::after, .flow__step[data-mode-aware].is-flash .flow__vis::after { animation: ag-flash 1s var(--ease-out); }
@keyframes ag-flash { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }

/* ------------------------------------------------------------ the switch -- */
.mode { display: grid; gap: var(--s-3); }
.mode__q { font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.mode__switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 470px; padding: 5px; border-radius: calc(var(--r-md) + 4px); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--e2), var(--edge); }
.mode__switch button { position: relative; z-index: 1; display: grid; align-content: center; gap: 1px; min-height: 60px; padding: 8px 16px; border: 0; border-radius: var(--r-md); background: none; text-align: left; -webkit-tap-highlight-color: transparent; transition: transform var(--d-1) var(--ease-out); }
.mode__switch button:active { transform: scale(0.97); }
.mode__switch b { font-size: var(--t-base); font-weight: 600; letter-spacing: -0.012em; color: var(--ink-2); transition: color var(--d-3) var(--ease-out); }
.mode__switch small { font-size: 0.8125rem; color: var(--ink-3); transition: color var(--d-3) var(--ease-out); }
.mode__switch button[aria-checked="true"] b { color: var(--accent-ink); }
.mode__switch button[aria-checked="true"] small { color: rgb(255 255 255 / 0.95); }
.mode__switch button:focus-visible { outline-offset: -3px; outline-color: var(--accent-ink); }
.mode__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: var(--r-md); background: var(--accent); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 6px 16px -8px rgb(70 50 220 / 0.6); transition: transform 460ms var(--ease-out); }
:root[data-agent-mode="auto"] .mode__thumb { transform: translateX(100%); }
@media (hover: hover) and (pointer: fine) { .mode__switch button[aria-checked="false"]:hover b { color: var(--ink); } }
.mode__note { display: flex; align-items: center; gap: 8px; font-size: var(--t-sm); color: var(--ink-2); }
.mode__note .i { width: 17px; height: 17px; color: var(--accent-text); }

.mode--mini .mode__switch { max-width: none; padding: 4px; border-radius: var(--r-md); box-shadow: var(--e1), var(--edge); }
.mode--mini .mode__switch button { min-height: 36px; padding: 0 12px; text-align: center; border-radius: var(--r-sm); }
.mode--mini .mode__switch b { font-size: var(--t-sm); }
.mode--mini .mode__thumb { top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--r-sm); }

/* ------------------------------------------------------------------ hero -- */
.ag-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: min(100svh, 960px); padding: calc(var(--nav-h) + 56px) 0 clamp(56px, 7vw, 104px); }
.ag-hero__far { position: absolute; z-index: 0; top: 50%; right: -5vw; width: min(66vw, 1120px); aspect-ratio: 1168 / 880; margin-top: calc(min(66vw, 1120px) * -0.377); }
.ag-hero__far img { width: 100%; height: 100%; object-fit: cover; will-change: transform;
  -webkit-mask-image: radial-gradient(ellipse 62% 66% at 58% 50%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 62% 66% at 58% 50%, #000 52%, transparent 100%); }
.ag-hero__near { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ag-float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--line-2); box-shadow: var(--e2), var(--edge); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); line-height: 1.3; will-change: transform; }
.ag-float b { display: block; font-size: var(--t-sm); font-weight: 600; color: var(--ink); white-space: nowrap; }
.ag-float small { display: block; font-size: 0.75rem; color: var(--ink-2); white-space: nowrap; }
.ag-float .sw__v { display: flex; align-items: center; gap: 12px; }
.ag-float__ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-text); }
.ag-float__ico .i { width: 17px; height: 17px; }
.ag-float__ico--hot { background: color-mix(in oklab, var(--hot) 18%, transparent); color: var(--hot); }
.ag-float__ico--ok { background: color-mix(in oklab, var(--ok) 18%, transparent); color: var(--ok); }
.ag-float--a { right: 30%; top: 22%; }
.ag-float--b { right: 6%; bottom: 20%; border-radius: var(--r-md); }
.ag-hero__copy { position: relative; z-index: 2; }
.ag-hero__copy .d-hero { max-width: 9.5em; font-size: clamp(2.75rem, 1.2rem + 5.4vw, 6.5rem); }
.ag-hero__copy .lede { margin-top: var(--s-5); max-width: 40ch; }
.ag-hero__copy .mode { margin-top: var(--s-7); }
.ag-hero__cta { margin-top: var(--s-6); }

:root[data-theme="light"] .ag-hero__far { right: var(--gutter); width: min(40vw, 640px); margin-top: calc(min(40vw, 640px) * -0.377); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--e3); }
:root[data-theme="light"] .ag-hero__far img { -webkit-mask-image: none; mask-image: none; }
:root[data-theme="light"] .ag-float--a { right: calc(var(--gutter) + 24px); top: calc(50% - min(40vw, 640px) * 0.377 - 30px); }
:root[data-theme="light"] .ag-float--b { right: calc(var(--gutter) + min(40vw, 640px) - 120px); bottom: calc(50% - min(40vw, 640px) * 0.377 - 28px); }

/* ------------------------------------------------------------- anatomy -- */
.ag-anatomy { padding-block: clamp(64px, 8vw, 120px); }
.ag-anatomy__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-7); align-items: start; }
.ag-anatomy .d-2 { max-width: 11em; }
.ag-verbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.ag-verbs li { display: grid; align-content: start; gap: 6px; padding: var(--s-5) var(--s-4) 0 0; }
.ag-verbs li + li { padding-left: var(--s-4); border-left: 1px solid var(--line); }
.ag-verbs b { font-family: var(--f-display); font-weight: 600; font-size: var(--t-xl); letter-spacing: -0.03em; line-height: 1.05; color: var(--ink); }
.ag-verbs span { font-size: var(--t-sm); line-height: 1.45; color: var(--ink-2); }
.ag-verbs li[data-mode-aware] b { color: var(--accent-text); }
.ag-verbs li[data-mode-aware]::after { inset: -6px; border-radius: var(--r-sm); }

/* ----------------------------------------------------------- the room -- */
.ag-room { padding-block: var(--section) calc(var(--section) * 0.75); }
.ag-room--two { padding-top: calc(var(--section) * 0.7); padding-bottom: var(--section); }
.ag-room__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: var(--s-5) var(--s-7); margin-bottom: var(--s-8); padding-left: calc(208px + clamp(32px, 3.4vw, 56px)); }
.ag-room__head .body { max-width: 52ch; }
.ag-room__grid { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: clamp(32px, 3.4vw, 56px); align-items: start; }

/* sticky index */
.ag-index { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: var(--s-5); }
.ag-index__list { display: grid; gap: 2px; margin: 0; padding: 0; }
.ag-index__list a { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 12px; border-radius: var(--r-sm); font-size: var(--t-sm); font-weight: 500; color: var(--ink-3); text-decoration: none; transition: color var(--d-2) var(--ease-out), background-color var(--d-2) var(--ease-out); }
.ag-index__list .i { width: 17px; height: 17px; transition: color var(--d-2) var(--ease-out); }
.ag-index__list a:hover { color: var(--ink); }
.ag-index__list a.is-seen { color: var(--ink-2); }
.ag-index__list a.is-on { color: var(--ink); background: color-mix(in oklab, var(--ink) 7%, transparent); }
.ag-index__list a.is-on .i { color: var(--accent-text); }
.ag-index__status { padding-left: 12px; font-size: 0.8125rem; }
.ag-live { display: inline-flex; align-items: center; gap: 8px; color: var(--signal); font-weight: 500; }
.ag-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: ag-blink 2.2s infinite var(--ease-io); }
.ag-live--off { color: var(--ink-3); }
.ag-live--off i { animation: none; }
@keyframes ag-blink { 50% { opacity: 0.35; } }

/* storyboards */
/* round 3: each storyboard is a card panel (a quiet well a step below the card surface), and every
   step inside it is a raised card from the shared system: radius, edge, depth, hover lift. */
.ag-boards { display: grid; gap: clamp(24px, 2.6vw, 40px); min-width: 0; }
.board { container-type: inline-size; scroll-margin-top: calc(var(--nav-h) + 32px);
  padding: clamp(20px, 2.4vw, 36px); border-radius: var(--r-xl);
  --board-bg: color-mix(in oklab, var(--surface) 52%, var(--bg)); background: var(--board-bg); border: 1px solid var(--line); box-shadow: var(--e1), var(--edge);
  transition: border-color var(--d-3) var(--ease-out), box-shadow var(--d-3) var(--ease-out); }
.board:target, .board:focus-within { border-color: color-mix(in oklab, var(--accent-text) 42%, transparent); }
@media (hover: hover) and (pointer: fine) { .board:hover { border-color: var(--line-2); box-shadow: var(--e2), var(--edge); } }
.board__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-6); align-items: end; margin-bottom: var(--s-6); }
.board__title { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--s-4); row-gap: var(--s-3); align-items: center; }
.board__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-text); }
.board__title .body { grid-column: 2; max-width: 56ch; }
.board__media { width: clamp(170px, 24cqi, 260px); aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--e2); background: #0b0a14; }
.board__media img { width: 100%; height: 100%; object-fit: cover; }

/* the flow: a strip of real-HTML step cards with a rail of nodes above it */
.flow { --gap: 16px; position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 26px 0 0; }
.flow::before { content: ""; position: absolute; top: 4px; left: 5px; right: 24px; height: 2px; border-radius: 2px; background: var(--line-2); }
.flow__step { position: relative; display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.flow__step--wide { grid-column: span 2; }
.flow__step::before { content: ""; position: absolute; top: -26px; left: 0; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--board-bg, var(--bg)); border: 2px solid var(--line-2); transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out), transform 300ms var(--ease-out); }
.flow__step:not(:last-child)::after { content: ""; position: absolute; top: -22px; left: 6px; width: calc(100% + var(--gap)); height: 2px; border-radius: 2px; background: var(--accent-text); clip-path: inset(0 100% 0 0); transition: clip-path 420ms var(--ease-out) 120ms; }
.flow__step.is-on::before { background: var(--accent-text); border-color: var(--accent-text); }
.flow__step.is-on:not(.is-now)::after { clip-path: inset(0 0 0 0); }
.flow__step.is-now::before { transform: scale(1.25); }
.flow__vis { position: relative; display: grid; place-items: center; height: 172px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1), var(--edge); overflow: hidden;
  transition: border-color 420ms var(--ease-out), box-shadow var(--d-3) var(--ease-out), transform var(--d-3) var(--ease-out); }
.flow__step.is-now .flow__vis { border-color: color-mix(in oklab, var(--accent-text) 55%, transparent); box-shadow: var(--e2), var(--edge); }
@media (hover: hover) and (pointer: fine) {
  .flow__step:hover .flow__vis { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--e3), var(--edge); }
  .flow__step.is-now:hover .flow__vis { border-color: color-mix(in oklab, var(--accent-text) 65%, transparent); }
}
.flow__vis > .sw { width: 100%; justify-items: center; }
.flow__cap { display: grid; gap: 3px; }
.flow__cap b { display: block; font-size: var(--t-base); font-weight: 600; letter-spacing: -0.014em; line-height: 1.3; color: var(--ink); }
.flow__cap span { display: block; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }
.flow__cap.sw > .sw__v { display: grid; gap: 3px; }

/* states. Without JS (or with reduced motion) every step is simply on */
.js .flow__step { transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out); }
.js .board[data-armed] .flow__step:not(.is-on) { opacity: 0.26; transform: translateY(8px); }

.board__modeline { margin-top: var(--s-5); padding: 12px 16px; border-radius: var(--r-md); background: color-mix(in oklab, var(--accent) 9%, transparent); color: var(--ink); font-size: var(--t-sm); font-weight: 500; }
.board__modeline .sw { display: grid; }
.board__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.board__note { font-size: 0.8125rem; color: var(--ink-2); }
.board__foot .btn { margin-left: auto; }
.board__foot .btn + .board__replay { margin-left: 0; }
.board__replay { display: inline-flex; align-items: center; gap: 7px; height: 38px; margin-left: auto; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: none; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); transition: color var(--d-1) var(--ease-out), border-color var(--d-1) var(--ease-out), transform var(--d-1) var(--ease-out); }
.board__replay .i { width: 15px; height: 15px; transition: transform 420ms var(--ease-out); }
.board__replay:hover { color: var(--ink); border-color: var(--ink-3); }
.board__replay:hover .i { transform: rotate(-60deg); }
.board__replay:active { transform: scale(0.97); }

/* vertical strip: narrow board columns (tablet, phone) */
@container (max-width: 820px) {
  .board__head { grid-template-columns: 1fr; }
  .board__media { width: 100%; max-width: 360px; aspect-ratio: 16 / 9; }
  .flow { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .flow::before { top: 6px; bottom: 30px; left: 5px; right: auto; width: 2px; height: auto; }
  .flow__step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0 0 26px 30px; }
  .flow__step--wide { grid-column: auto; }
  .flow__step::before { top: 4px; }
  .flow__step:not(:last-child)::after { top: 10px; left: 5px; width: 2px; height: 100%; clip-path: inset(0 0 100% 0); }
  .flow__step.is-on:not(.is-now)::after { clip-path: inset(0 0 0 0); }
  .flow__step .flow__cap { order: -1; }
  .flow__vis, .board--alarm .flow__vis { height: auto; min-height: 128px; }
  .board--alarm .flow__step--phone .flow__vis { min-height: 0; padding: 18px 14px; }
  .js .board[data-armed] .flow__step:not(.is-on) { transform: translateX(6px); }
}

/* --------------------------------------------- step visuals (real HTML) -- */
.v-bub { max-width: 100%; padding: 10px 13px; border-radius: 15px; font-size: 0.8125rem; line-height: 1.45; color: var(--ink); text-align: left; }
.v-bub small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 4px; font-size: 0.6875rem; color: var(--ink-3); }
.v-bub small .chip { height: 18px; padding: 0 7px; font-size: 0.625rem; }
.v-bub--them { justify-self: start; background: color-mix(in oklab, var(--accent) 15%, var(--surface-2)); border-bottom-left-radius: 5px; }
.v-bub--draft { justify-self: stretch; width: 100%; background: transparent; border: 1px dashed color-mix(in oklab, var(--accent-text) 60%, transparent); border-bottom-right-radius: 5px; }
.v-bub--forge { justify-self: stretch; width: 100%; background: var(--surface-2); border-bottom-left-radius: 5px; }
.v-bub--forge .mark { width: 16px; height: 16px; }
.v-bub--sm { font-size: 0.8125rem; }
.v-bub [data-type] { white-space: pre-wrap; }
.v-bub [data-type].is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--accent-text); animation: ag-caret 0.8s steps(1) infinite; }
@keyframes ag-caret { 50% { opacity: 0; } }
.v-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.v-dot--ok { background: var(--ok); }
.v-bub small.sw { display: grid; }
.v-bub--draft small .sw__v { display: inline-flex; align-items: center; gap: 6px; }

/* reading the thread */
.v-read { position: relative; display: grid; gap: 8px; width: 100%; padding: 4px 2px; }
.v-read__lbl { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal); }
.v-read i { display: block; height: 8px; border-radius: 4px; background: var(--line-2); }
.v-read i:nth-of-type(2) { width: 82%; } .v-read i:nth-of-type(3) { width: 92%; } .v-read i:nth-of-type(4) { width: 60%; }
.v-read__scan { position: absolute; left: -6px; right: -6px; top: 18px; height: 22px; border-radius: 6px; background: color-mix(in oklab, var(--signal) 16%, transparent); opacity: 0; }
.is-on .v-read__scan { opacity: 1; animation: ag-scan 1.8s var(--ease-io) infinite alternate; }
@keyframes ag-scan { to { transform: translateY(44px); } }

/* sorting */
.v-sort { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.v-sort .chip { transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.is-on .v-sort .chip:not(.v-keep) { opacity: 0.22; transition-delay: 700ms; }
.is-on .v-sort .v-keep { transform: scale(1.08); transform-origin: 0 50%; transition-delay: 700ms; }

/* decide / sent (the mode step) */
.v-decide { display: grid; justify-items: center; gap: 10px; text-align: center; }
.v-decide__lbl { font-family: var(--f-mono); font-size: 0.625rem; line-height: 1.4; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.v-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 12px; line-height: 1.25; text-align: center; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); font-size: 0.8125rem; font-weight: 600; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22); text-wrap: balance; }
.is-now .v-btn { animation: ag-press 2.4s var(--ease-out) 0.6s infinite; }
@keyframes ag-press { 0%, 70%, 100% { transform: none; } 78% { transform: scale(0.95); } 86% { transform: none; } }
.v-sent { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 0.875rem; line-height: 1.3; font-weight: 600; color: var(--ok); text-wrap: balance; }
.v-sent .i { width: 18px; height: 18px; }

/* gmail */
.v-connect { display: grid; justify-items: center; gap: 10px; }
.v-connect__app { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-sm); }
.v-connect__app .i { width: 18px; height: 18px; color: var(--accent-text); }
.v-toggle { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--line-2); transition: background-color 360ms var(--ease-out) 250ms; }
.v-toggle i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--e1); transition: transform 360ms var(--ease-out) 250ms; }
.is-on .v-toggle { background: var(--ok); }
.is-on .v-toggle i { transform: translateX(18px); }
.v-connect small { font-size: 0.75rem; color: var(--ink-3); }
.v-mailrow { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 10px; border-radius: var(--r-sm); background: var(--surface-2); line-height: 1.35; }
.v-mailrow .v-unread { margin-top: 5px; }
.v-mailrow b { display: block; font-size: 0.8125rem; } .v-mailrow small { font-size: 0.75rem; color: var(--ink-2); }
.v-unread { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.v-mail { font-size: 0.8125rem; line-height: 1.6; color: var(--ink-2); text-align: left; }
.v-mail mark { padding: 1px 3px; border-radius: 4px; background: transparent; color: var(--ink); background-image: linear-gradient(color-mix(in oklab, var(--signal) 26%, transparent), color-mix(in oklab, var(--signal) 26%, transparent)); background-repeat: no-repeat; background-size: 100% 100%; }
.v-sign { display: grid; justify-items: start; gap: 6px; width: 100%; }
.v-sign__rule { width: 36px; height: 1px; background: var(--ink-3); }
.v-sign b { font-family: var(--f-display); font-weight: 600; font-size: 1.1875rem; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); clip-path: inset(0 100% 0 0); transition: clip-path 900ms var(--ease-out) 200ms; }
.is-on .v-sign b { clip-path: inset(0 0 0 0); }
.v-sign small { font-size: 0.75rem; color: var(--ink-3); }

/* follow-ups */
.v-day { display: grid; justify-items: start; gap: 10px; width: 100%; }
.v-day__d { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.v-day__msg { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); font-size: 0.8125rem; }
.v-day__msg .i { width: 15px; height: 15px; color: var(--accent-text); }
.v-day__empty { display: inline-flex; gap: 5px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); }
.v-day__empty i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); opacity: 0.5; }
.is-on .v-day__empty i { animation: ag-idle 1.6s var(--ease-io) infinite; }
.v-day__empty i:nth-child(2) { animation-delay: 0.2s !important; } .v-day__empty i:nth-child(3) { animation-delay: 0.4s !important; }
@keyframes ag-idle { 50% { opacity: 1; } }
.v-day small { font-size: 0.75rem; color: var(--ink-3); }
.v-stop { display: grid; justify-items: start; gap: 10px; }
.v-stop__row { position: relative; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); font-size: 0.8125rem; color: var(--ink-3); }
.v-stop__row s { text-decoration: none; }
.v-stop__row::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 1.5px; background: var(--hot); transform: scaleX(0); transform-origin: 0 50%; transition: transform 520ms var(--ease-out) 300ms; }
.is-on .v-stop__row::after { transform: scaleX(1); }
.v-stop .chip { opacity: 0; transition: opacity 320ms var(--ease-out) 800ms; }
.is-on .v-stop .chip { opacity: 1; }

/* booking */
.v-link { display: grid; justify-items: start; gap: 8px; width: 100%; }
.v-link__url { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 8px 11px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-text); font-family: var(--f-mono); font-size: 0.6875rem; overflow-wrap: anywhere; }
.v-link__url .i { width: 14px; height: 14px; }
.v-link small { font-size: 0.75rem; color: var(--ink-2); }
.v-slots { display: grid; gap: 6px; width: 100%; max-width: 150px; }
.v-slots__day { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.v-slots span:not(.v-slots__day) { position: relative; display: block; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 0.75rem; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.v-pick { overflow: hidden; isolation: isolate; }
.v-pick::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); opacity: 0; transition: opacity 360ms var(--ease-out) 650ms; }
.is-on .v-pick { color: var(--accent-ink) !important; border-color: var(--accent) !important; transition: color 360ms var(--ease-out) 650ms, border-color 360ms var(--ease-out) 650ms; }
.is-on .v-pick::before { opacity: 1; }
.v-zoom { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px; border-radius: var(--r-sm); background: var(--surface-2); line-height: 1.3; }
.v-zoom__ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-text); }
.v-zoom b { display: block; font-size: 0.8125rem; } .v-zoom small { font-size: 0.75rem; color: var(--ink-2); }
.v-both { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 10px 8px; text-align: center; }
.v-both small { grid-column: 1 / -1; font-size: 0.75rem; color: var(--ink-2); }
.v-av { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 0.75rem; font-weight: 600; color: var(--ink); }
.v-av--b { background: color-mix(in oklab, var(--accent) 22%, var(--surface-2)); }
.v-av i { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: #fff; transform: scale(0.6); opacity: 0; transition: opacity 260ms var(--ease-out), transform 360ms var(--ease-out); }
.v-av i .i { width: 11px; height: 11px; }
.is-on .v-av i { opacity: 1; transform: none; transition-delay: 450ms; }
.is-on .v-av--b i { transition-delay: 700ms; }

/* alert ladder */
.v-push { display: grid; gap: 5px; width: 100%; padding: 11px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--e2); font-size: 0.8125rem; text-align: left; transform: translateY(-14px); opacity: 0; transition: transform 520ms var(--ease-out) 150ms, opacity 400ms var(--ease-out) 150ms; }
.is-on .v-push { transform: none; opacity: 1; }
.v-push__app { display: flex; align-items: center; gap: 6px; font-size: 0.6875rem; color: var(--ink-3); }
.v-push__app .mark { width: 16px; height: 16px; }
.v-push__app b { color: var(--ink-2); font-weight: 600; }
.v-push__app small { margin-left: auto; }
.v-wait { display: grid; justify-items: center; gap: 6px; text-align: center; }
.v-wait b { font-size: 0.8125rem; } .v-wait small { font-size: 0.75rem; color: var(--ink-3); }
.v-wait__dial { position: relative; width: 48px; height: 48px; margin-bottom: 4px; border-radius: 50%; border: 2px solid var(--line-2); }
.v-wait__dial i { position: absolute; left: 50%; top: 6px; width: 2px; height: 18px; margin-left: -1px; border-radius: 2px; background: var(--warm); transform-origin: 50% 100%; }
.is-on .v-wait__dial i { animation: ag-tick 3s linear infinite; }
@keyframes ag-tick { to { transform: rotate(360deg); } }

@container (min-width: 821px) { .board--alarm .flow__vis { height: 352px; } }
.v-phone { width: 158px; padding: 7px; border-radius: 30px; }
.v-phone .phone__screen { border-radius: 24px; }
.v-phone .phone__screen::before { top: 7px; width: 54px; height: 15px; margin-left: -27px; }
.is-on .v-phone { animation: ag-buzz 2.6s var(--ease-io) 0.4s infinite; }
@keyframes ag-buzz { 0%, 60%, 100% { transform: rotate(0); } 64% { transform: rotate(-2.2deg); } 68% { transform: rotate(2.2deg); } 72% { transform: rotate(-1.6deg); } 76% { transform: rotate(1.4deg); } 80% { transform: rotate(0); } }
.v-call { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 30px 12px 18px; text-align: center; background: radial-gradient(120% 70% at 50% 0%, #2c2160, #0a0914 70%); color: #efecf7; }
.v-call__lock { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 14px; font-size: 0.6875rem; font-variant-numeric: tabular-nums; color: #a7a1c0; }
.v-call__lock .i { width: 11px; height: 11px; }
.v-call__ring { position: relative; display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 10px; border-radius: 50%; background: rgb(255 255 255 / 0.06); }
.v-call__ring .mark { width: 30px; height: 30px; color: #b7adff; }
.v-call__ring i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgb(183 173 255 / 0.6); opacity: 0; }
.is-on .v-call__ring i { animation: ag-ring 1.6s infinite var(--ease-out); }
.is-on .v-call__ring i:nth-child(2) { animation-delay: 0.5s; }
@keyframes ag-ring { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }
.v-call b { font-size: 1.0625rem; color: #efecf7; }
.v-call small { font-size: 0.6875rem; color: #a7a1c0; }
.v-call p { margin-top: 12px; font-size: 0.75rem; line-height: 1.45; color: #d7d2ea; }
.v-call__btns { display: flex; gap: 28px; margin-top: auto; }
.v-call__btns i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; }
.v-call__btns .no { background: #d93d42; } .v-call__btns .yes { background: #22915d; }
.v-call__btns .i { width: 17px; height: 17px; }

/* talk to forge */
.v-voice { display: grid; justify-items: center; gap: 12px; text-align: center; }
.v-voice b { font-size: 0.8125rem; font-weight: 600; color: var(--ink); }
.v-wave { display: flex; align-items: center; gap: 4px; height: 36px; }
.v-wave i { width: 4px; height: 100%; border-radius: 3px; background: var(--signal); transform: scaleY(0.18); }
.is-on .v-wave i { animation: ag-wave 1.1s var(--ease-io) infinite; }
.v-wave i:nth-child(2) { animation-delay: -0.2s !important; } .v-wave i:nth-child(3) { animation-delay: -0.5s !important; } .v-wave i:nth-child(4) { animation-delay: -0.1s !important; }
.v-wave i:nth-child(5) { animation-delay: -0.7s !important; } .v-wave i:nth-child(6) { animation-delay: -0.3s !important; } .v-wave i:nth-child(7) { animation-delay: -0.9s !important; }
.v-wave i:nth-child(8) { animation-delay: -0.4s !important; } .v-wave i:nth-child(9) { animation-delay: -0.6s !important; }
@keyframes ag-wave { 0%, 100% { transform: scaleY(0.2); } 50% { transform: scaleY(1); } }
.v-list { display: grid; gap: 6px; width: 100%; }
.v-list small { font-size: 0.6875rem; font-family: var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.v-list span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 9px; border-radius: 8px; background: var(--surface-2); font-size: 0.8125rem; font-weight: 500; }
.v-list .chip { height: 20px; padding: 0 7px; font-size: 0.625rem; font-style: normal; }

/* warm-up */
.v-inbox { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 0.8125rem; overflow-wrap: anywhere; }
.v-inbox > .i { width: 22px; height: 22px; color: var(--accent-text); }
.v-warm { display: grid; gap: 12px; width: 100%; }
.v-warm small { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal); }
.v-bar { position: relative; display: block; height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.v-bar i { position: absolute; inset: 0; border-radius: 4px; background: var(--signal); transform: scaleX(0.04); transform-origin: 0 50%; transition: transform 1.8s var(--ease-out) 200ms; }
.is-on .v-bar i { transform: scaleX(0.72); }
.v-steps { display: flex; align-items: flex-end; gap: 6px; height: 42px; }
.v-steps i { flex: 1; height: 100%; border-radius: 4px 4px 2px 2px; background: color-mix(in oklab, var(--signal) 40%, transparent); transform-origin: 50% 100%; transform: scaleY(0.08); transition: transform 600ms var(--ease-out); }
.is-on .v-steps i:nth-child(1) { transform: scaleY(0.2); transition-delay: 200ms; } .is-on .v-steps i:nth-child(2) { transform: scaleY(0.36); transition-delay: 320ms; }
.is-on .v-steps i:nth-child(3) { transform: scaleY(0.52); transition-delay: 440ms; } .is-on .v-steps i:nth-child(4) { transform: scaleY(0.72); transition-delay: 560ms; }
.is-on .v-steps i:nth-child(5) { transform: scaleY(0.9); transition-delay: 680ms; }
.v-check { display: grid; gap: 7px; width: 100%; max-width: 160px; }
.v-check span { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.04em; }
.v-check b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in oklab, var(--ok) 20%, transparent); color: var(--ok); opacity: 0; transform: scale(0.6); transition: opacity 260ms var(--ease-out), transform 360ms var(--ease-out); }
.v-check b .i { width: 12px; height: 12px; }
.is-on .v-check span:nth-child(1) b { opacity: 1; transform: none; transition-delay: 300ms; }
.is-on .v-check span:nth-child(2) b { opacity: 1; transform: none; transition-delay: 550ms; }
.is-on .v-check span:nth-child(3) b { opacity: 1; transform: none; transition-delay: 800ms; }
.v-gauge { display: grid; gap: 10px; width: 100%; }
.v-gauge small { font-size: 0.75rem; color: var(--ink-3); }
.v-gauge b { font-size: 0.8125rem; color: var(--ok); }
.v-gauge__track { position: relative; display: block; height: 10px; border-radius: 5px; background: color-mix(in oklab, var(--hot) 30%, transparent); }
.v-gauge__safe { position: absolute; left: 0; top: 0; bottom: 0; width: 68%; border-radius: 5px; background: color-mix(in oklab, var(--ok) 45%, transparent); }
.v-gauge__track i { position: absolute; inset: -4px 0; transform: translateX(0); transition: transform 1.2s var(--ease-out) 250ms; }
.v-gauge__track i::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: var(--ink); }
.is-on .v-gauge__track i { transform: translateX(52%); }
.v-addr { display: grid; gap: 7px; width: 100%; }
.v-addr span { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); font-size: 0.6875rem; }
.v-addr b { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in oklab, var(--ok) 20%, transparent); color: var(--ok); }
.v-addr b .i { width: 12px; height: 12px; }
.v-addr__bad { color: var(--ink-3); transition: opacity 400ms var(--ease-out) 600ms; }
.v-addr__bad b { background: color-mix(in oklab, var(--hot) 20%, transparent); color: var(--hot); }
.is-on .v-addr__bad { opacity: 0.6; }
.v-addr small { font-size: 0.6875rem; color: var(--ink-3); }
.v-report { display: grid; gap: 5px; width: 100%; padding: 10px 11px; border-radius: 10px; background: var(--paper); color: var(--paper-ink); box-shadow: var(--e2); }
.v-report small { font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-ink-2); }
.v-report span { display: flex; justify-content: space-between; gap: 8px; padding-top: 5px; border-top: 1px solid var(--paper-line); font-size: 0.75rem; color: var(--paper-ink-2); }
.v-report b { color: #12875a; font-weight: 600; }

/* contract */
.v-split { display: grid; justify-items: center; gap: 9px; width: 100%; }
.v-split__bar { display: flex; gap: 3px; width: 100%; height: 22px; }
.v-split__bar i { flex: 0 0 auto; width: calc(var(--w) - 2.25px); border-radius: 4px; background: var(--c); transform: scaleX(0); transform-origin: 0 50%; transition: transform 600ms var(--ease-out); }
.is-on .v-split__bar i { transform: none; }
.is-on .v-split__bar i:nth-child(2) { transition-delay: 120ms; } .is-on .v-split__bar i:nth-child(3) { transition-delay: 240ms; } .is-on .v-split__bar i:nth-child(4) { transition-delay: 360ms; }
.v-split b { font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.03em; }
.v-split small { font-size: 0.75rem; color: var(--ink-3); }
.v-doc { display: grid; gap: 5px; width: 100%; padding: 12px 14px; border-radius: 10px; background: var(--paper); color: var(--paper-ink); box-shadow: var(--e2); }
.v-doc small { font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-ink-2); }
.v-doc span { display: flex; justify-content: space-between; gap: 8px; padding-top: 5px; border-top: 1px solid var(--paper-line); font-size: 0.75rem; color: var(--paper-ink-2); }
.v-doc b { position: relative; color: var(--paper-ink); font-variant-numeric: tabular-nums; opacity: 0; transform: translateX(-6px); transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out); }
.is-on .v-doc span:nth-of-type(1) b { opacity: 1; transform: none; transition-delay: 250ms; }
.is-on .v-doc span:nth-of-type(2) b { opacity: 1; transform: none; transition-delay: 450ms; }
.is-on .v-doc span:nth-of-type(3) b { opacity: 1; transform: none; transition-delay: 650ms; }
.is-on .v-doc span:nth-of-type(4) b { opacity: 1; transform: none; transition-delay: 850ms; }
.v-sigs { display: grid; gap: 8px; width: 100%; }
.v-sigs span { padding: 2px 0 4px; border-bottom: 1px solid var(--line-2); }
.v-sigs i { display: block; font-family: var(--f-display); font-style: normal; font-weight: 560; font-size: 1.0625rem; color: var(--ink); clip-path: inset(0 100% 0 0); transition: clip-path 700ms var(--ease-out); }
.is-on .v-sigs span:nth-child(1) i { clip-path: inset(0 0 0 0); transition-delay: 150ms; }
.is-on .v-sigs span:nth-child(2) i { clip-path: inset(0 0 0 0); transition-delay: 650ms; }
.is-on .v-sigs span:nth-child(3) i { clip-path: inset(0 0 0 0); transition-delay: 1150ms; }
.v-file { display: flex; align-items: center; gap: 12px; width: 100%; line-height: 1.3; }
.v-file__ico { position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 54px; border-radius: 8px; background: var(--paper); color: var(--paper-ink-2); box-shadow: var(--e2); }
.v-file__ico i { position: absolute; bottom: 6px; font-family: var(--f-mono); font-style: normal; font-size: 0.5625rem; font-weight: 600; color: #d9472a; }
.v-file__ico .i { width: 18px; height: 18px; margin-top: -10px; }
.v-file b { display: block; font-size: 0.8125rem; overflow-wrap: anywhere; } .v-file small { font-size: 0.75rem; color: var(--ok); }

/* ask forge */
.v-rule { display: grid; justify-items: start; gap: 8px; }
.v-rule__chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: var(--r-pill); background: color-mix(in oklab, var(--ok) 14%, transparent); color: color-mix(in oklab, var(--ok) 70%, var(--ink)); font-size: 0.75rem; font-weight: 600; }
.v-rule__chip .i { width: 15px; height: 15px; }

/* paused overlay on the cards that would send (inserted by the page script) */
.v-paused { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 12px; text-align: center; line-height: 1.5; background: var(--surface); font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); opacity: 0; pointer-events: none; transition: opacity 320ms var(--ease-out); }
:root[data-agents-paused] .v-paused { opacity: 1; }

/* ---------------------------------------------------------- night band -- */
.ag-band { position: relative; display: flex; align-items: flex-end; min-height: min(86svh, 800px); overflow: hidden; }
.ag-band__film { position: absolute; inset: 0; will-change: clip-path; }
.ag-band__film > img, .ag-band__film > video { object-position: 50% 30%; }
.ag-band__scrim { position: absolute; left: 0; bottom: 0; width: min(780px, 80%); height: 72%; background: radial-gradient(ellipse 100% 100% at 0% 100%, rgb(6 5 12 / 0.9) 0%, rgb(6 5 12 / 0.6) 45%, transparent 75%); pointer-events: none; }
.ag-band__copy { position: relative; z-index: 2; padding-bottom: clamp(48px, 7vw, 104px); }
.ag-band__copy .d-2 { max-width: 15em; color: #efecf7; }

/* ------------------------------------------------------------- control -- */
.ag-control { padding-block: var(--section); }
.ag-control__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.ag-control__copy .lede { margin-top: var(--s-5); }
.ag-ledger { margin: var(--s-7) 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.ag-ledger li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--s-4); row-gap: 4px; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.ag-ledger__ico { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-text); }
.ag-ledger__ico .i { width: 18px; height: 18px; }
.ag-ledger b { font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.ag-ledger span:not(.ag-ledger__ico) { font-size: var(--t-sm); color: var(--ink-2); max-width: 48ch; }

.ag-log { position: sticky; top: calc(var(--nav-h) + 32px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--e3), var(--edge); overflow: hidden; }
.ag-log__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ag-log__head > span { display: flex; align-items: baseline; gap: 10px; }
.ag-log__head b { font-size: var(--t-base); }
.ag-pause { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-2); font-size: 0.8125rem; font-weight: 600; color: var(--ink); transition: transform var(--d-1) var(--ease-out), border-color var(--d-2) var(--ease-out); }
.ag-pause:hover { border-color: var(--ink-3); }
.ag-pause:active { transform: scale(0.97); }
.ag-pause__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.ag-pause__off { display: none; }
.ag-pause[aria-pressed="true"] .ag-pause__dot { background: var(--ink-3); }
.ag-pause[aria-pressed="true"] .ag-pause__on { display: none; }
.ag-pause[aria-pressed="true"] .ag-pause__off { display: inline; }
.ag-log__rows { margin: 0; padding: 6px 0; }
.ag-log__rows li { display: grid; grid-template-columns: 68px 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.ag-log__rows li:last-child { border-bottom: 0; }
.ag-log__rows time { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ag-log__rows li > span .i { width: 17px; height: 17px; color: var(--ink-3); }
.ag-log__rows b { font-weight: 500; color: var(--ink); }
.ag-log__rows i { font-style: normal; justify-self: end; }
.ag-log__rows li[data-mode-aware]::after { inset: 2px 8px; border-radius: var(--r-sm); }
:root[data-agents-paused] .ag-log__paused { display: grid !important; animation: ag-row 420ms var(--ease-out); background: color-mix(in oklab, var(--ink) 4%, transparent); }
@keyframes ag-row { from { opacity: 0; transform: translateY(-6px); } }
.ag-log__foot { padding: 12px 18px 16px; border-top: 1px solid var(--line); color: var(--ink-3); }

/* ----------------------------------------------------------------- faq -- */
.ag-faq { padding-block: calc(var(--section) * 0.8) calc(var(--section) * 0.6); }
.ag-faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-7); align-items: start; }
.ag-faq .d-2 { max-width: 10em; }

/* --------------------------------------------------------------- close -- */
.ag-close { padding-block: calc(var(--section) * 0.7) calc(var(--section) * 0.85); border-top: 1px solid var(--line); }
.ag-close__inner { display: grid; justify-items: center; gap: var(--s-6); text-align: center; }
.ag-close__mode { border-radius: var(--r-pill); }
.ag-close__mode .sw { justify-items: center; }
.ag-close__mode .sw__v { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--ink); font-size: var(--t-sm); font-weight: 500; }
.ag-close__mode .i { width: 16px; height: 16px; color: var(--accent-text); }
.ag-close__cta { justify-content: center; }
.ag-close__fine { color: var(--ink-3); }

/* ------------------------------------------------------------ tablet ---- */
@media (max-width: 1100px) {
  .ag-room__grid { grid-template-columns: 200px minmax(0, 1fr); }
  .ag-room__head { padding-left: calc(200px + clamp(32px, 4vw, 64px)); grid-template-columns: 1fr; }
  .ag-verbs { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-5); }
  .ag-verbs li:nth-child(4) { padding-left: 0; border-left: 0; }
  .ag-anatomy__grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* index becomes a sticky chip rail below the nav */
@media (max-width: 900px) {
  .ag-room__head { padding-left: 0; margin-bottom: var(--s-7); }
  .ag-room__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .ag-index { top: calc(var(--nav-h) + 6px); z-index: 20; display: flex; align-items: center; gap: 10px; margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter); background: var(--glass-strong); border-block: 1px solid var(--line); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
  .ag-index__mode { flex: none; width: 168px; }
  .ag-index nav { min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .ag-index nav::-webkit-scrollbar { display: none; }
  .ag-index__list { display: flex; gap: 4px; width: max-content; padding-right: 32px; }
  .ag-index__list a { min-height: 40px; padding: 0 12px; white-space: nowrap; }
  .ag-index__status { display: none; }
  .board { scroll-margin-top: calc(var(--nav-h) + 72px); }
  .ag-control__grid, .ag-faq__grid { grid-template-columns: 1fr; }
  .ag-log { position: relative; top: 0; }
}

/* --------------------------------------------------------------- phone -- */
@media (max-width: 760px) {
  .ag-hero { display: block; min-height: 0; padding: calc(var(--nav-h) + 8px) 0 var(--s-8); }
  .ag-hero__far { position: relative; top: auto; right: auto; width: 128vw; max-width: none; margin: 0 0 -18vw -14vw; }
  .ag-hero__far img { -webkit-mask-image: radial-gradient(ellipse 60% 62% at 56% 46%, #000 50%, transparent 100%); mask-image: radial-gradient(ellipse 60% 62% at 56% 46%, #000 50%, transparent 100%); }
  :root[data-theme="light"] .ag-hero__far { right: auto; width: auto; margin: 0 var(--gutter) var(--s-6); }
  .ag-float--a { display: none; }
  .ag-float--b, :root[data-theme="light"] .ag-float--b { right: var(--gutter); top: calc(var(--nav-h) + 52vw); bottom: auto; padding: 9px 12px 9px 9px; }
  .ag-float__ico { width: 30px; height: 30px; }
  .ag-hero__copy .d-hero { font-size: clamp(2.5rem, 11.4vw, 3.4rem); }
  .ag-hero__copy .mode { margin-top: var(--s-6); }
  .mode__switch button { min-height: 58px; padding: 8px 12px; }
  .mode__switch b { font-size: var(--t-sm); }
  .mode__switch small { font-size: 0.75rem; }
  .ag-hero__cta .btn { width: 100%; }
  .ag-verbs { grid-template-columns: 1fr; border-top: 0; }
  .ag-verbs li, .ag-verbs li + li, .ag-verbs li:nth-child(4) { grid-template-columns: 7.5rem minmax(0, 1fr); align-items: baseline; gap: var(--s-4); padding: var(--s-4) 0; border-left: 0; border-top: 1px solid var(--line); }
  .ag-verbs b { font-size: var(--t-lg); }
  .ag-band { min-height: 78svh; }
  .ag-band__scrim { width: 100%; height: 75%; background: linear-gradient(0deg, rgb(6 5 12 / 0.9) 0%, rgb(6 5 12 / 0.55) 50%, transparent 100%); }
  .ag-log__rows li { grid-template-columns: 58px minmax(0, 1fr) auto; padding: 12px 14px; gap: 10px; }
  .ag-log__rows li > span { display: none; }
  .ag-log__head { padding: 14px; flex-wrap: wrap; }
  .ag-close__mode .sw__v { border-radius: var(--r-md); text-align: left; }
  .ag-close__cta .btn { width: 100%; }
  .board__foot .btn { margin-left: 0; }
  .board { padding: 18px 16px; border-radius: var(--r-lg); }
}

/* ------------------------------------------------------ reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .sw > .sw__v { transform: none !important; }
  .js .board[data-armed] .flow__step:not(.is-on) { transform: none; }
  .flow__step, .flow__step::after, .v-sign b, .v-sigs i { transition-duration: 1ms !important; transition-delay: 0s !important; }
  .v-read__scan, .v-wave i, .v-day__empty i, .v-wait__dial i, .v-call__ring i, .v-phone, .v-btn, .ag-live i { animation: none !important; }
  .v-wave i { transform: scaleY(0.55); }
  .mode__thumb { transition-duration: 1ms; }
  .ag-band__film { clip-path: none !important; }
}
