@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-Variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-Variable.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 96.3%; }

:root {
  --ink: #0b0b0f;
  --text: #45454d;
  --muted: #6b6b74;
  --rule: #e4e4e0;
  --tint: #f4f5f6;
  --crimson: #a90f2d;
  --crimson-deep: #870b23;
  --crimson-lit: #e8364f;
  --night: #070b16;
  --night-text: #e7ebf4;
  --night-soft: #b3bcd0;
  --night-muted: #919bb3;
  --night-rule: #1e2842;
  --sans: "Archivo", "Archivo Fallback", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4.2vw, 60px);
  --lift: 0 1px 2px rgba(8, 10, 20, .08), 0 14px 28px -10px rgba(8, 10, 20, .22), 0 44px 80px -28px rgba(8, 10, 20, .38);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: #fff; color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 10; padding: 8px 16px; background: #fff; color: var(--ink); }
.skip:focus { top: 16px; }

h1, h2, h3 { color: var(--ink); font-stretch: 88%; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.2vw, 75px); font-weight: 680; line-height: .98; letter-spacing: -.026em; word-spacing: .05em; }
h2 { font-size: clamp(31px, 4vw, 54px); font-weight: 660; line-height: 1.04; letter-spacing: -.02em; word-spacing: .05em; }
h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 650; line-height: 1.1; letter-spacing: -.016em; }
.lede { font-size: 18px; line-height: 1.55; }
.prose p + p { margin-top: 14px; }
.prose code, .cmd code { font-family: var(--mono); font-size: .86em; }
.prose code { padding: 1px 6px; border: 1px solid var(--rule); border-radius: 4px; background: var(--tint); color: var(--ink); white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border: 1px solid #c9c9c4; border-radius: 8px; color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14.5px; border-radius: 7px; }
.btn--crimson { border-color: var(--crimson); background: var(--crimson); color: #fff; }
.btn--crimson:hover { border-color: var(--crimson-deep); background: var(--crimson-deep); }
.btn--ghost { border-color: #36415f; color: var(--night-text); }
.btn--ghost:hover { border-color: var(--night-text); }
.link { color: var(--ink); font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

.top { background: var(--night); color: var(--night-soft); }
.top__in { display: flex; align-items: center; gap: 40px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 18px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.top__nav { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.top__nav a, .lang a { text-decoration: none; }
.top__nav a:hover, .lang a:hover { color: #fff; }
.top__end { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.lang { display: flex; gap: 14px; font-size: 13.5px; font-weight: 600; }
.lang a[aria-current] { color: #fff; }
.top__menu { display: none; height: 36px; padding: 0 14px; border: 1px solid #36415f; border-radius: 7px; background: none; color: #fff; font-size: 14.5px; font-weight: 600; }

.hero { background: var(--night); color: var(--night-soft); }
.hero__top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: end; padding-top: 30px; }
.hero h1 { color: #fff; }
.hero h1 span { display: block; color: var(--crimson-lit); }
html[lang="es"] .hero h1 { font-size: clamp(40px, 4.86vw, 70px); }
.hero .lede { font-size: 16.5px; }
.hero .actions { margin-top: 22px; }
.stage { position: relative; z-index: 1; width: min(1320px, 100% - 2 * var(--gutter)); margin: 60px auto -150px; }
.stage .win { box-shadow: inset 0 1px 0 var(--w-edge), 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -12px rgba(0, 0, 0, .5), 0 60px 120px -30px rgba(0, 0, 0, .6); }
.stage .win--elog { position: absolute; top: -28px; right: -24px; width: 584px; }

.themes { position: absolute; left: 0; bottom: 100%; display: flex; align-items: center; gap: 2px; margin-bottom: 14px; padding: 3px; border: 1px solid var(--night-rule); border-radius: 8px; color: var(--night-muted); font-size: 13px; font-weight: 500; }
.themes > span { padding: 0 10px 0 8px; }
.themes button { height: 26px; padding: 0 10px; border: 0; border-radius: 5px; background: none; cursor: pointer; }
.themes button:hover { color: #fff; }
.themes button[aria-pressed="true"] { background: #1c2742; color: #fff; }
.themes--page { position: static; width: fit-content; margin: 0 0 16px auto; border-color: var(--rule); color: var(--muted); }
.themes--page button:hover { color: var(--ink); }
.themes--page button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.tools { padding: 214px 0 8px; color: var(--muted); font-size: 14.5px; }
.tools ul { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 44px; margin: 18px 0 16px; }
.tools li { display: flex; align-items: center; gap: 8px; color: #55555d; font-size: 17px; font-weight: 600; white-space: nowrap; }
.tools img { filter: grayscale(1); opacity: .62; }

.sec { padding: clamp(72px, 9vw, 136px) 0; }
.sec--rule { padding-top: 0; }
.sec--tint { background: var(--tint); }
.sec--tint + .sec--rule, .obs + .sec--rule { padding-top: clamp(72px, 9vw, 136px); }
.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; margin-bottom: 56px; }
.cap { display: flex; align-items: center; justify-content: space-between; min-height: 28px; margin-bottom: 10px; color: var(--muted); font-size: 14px; font-weight: 500; }
.replay { height: 28px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.replay:hover { border-color: var(--ink); }

.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; }
.story > div { display: flex; flex-direction: column; }
.story figure { flex: 1; }

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.split--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split--next { margin-top: 96px; }
.split__text h2, .split__text h3 { margin-bottom: 20px; }

h2.wide { max-width: 17em; margin-bottom: 48px; }
.headline { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.headline h2 { font-size: clamp(32px, 4.6vw, 64px); }
.headline > p { padding-bottom: 8px; color: var(--muted); font-size: 15px; }
.headline .themes--page { margin: 0 0 8px; }
.prose--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 64px; margin-top: 40px; }
.prose--cols p + p { margin-top: 0; }
.lede--under { max-width: 46em; margin: -24px 0 40px; }

.lead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.lead > .win { margin-right: calc(-1 * clamp(0px, (100vw - 1320px) / 2, 60px)); }
.lead h2 { font-size: clamp(31px, 3.5vw, 48px); margin-bottom: 20px; }
.lead .chips { flex-direction: column; align-items: flex-start; gap: 8px; margin: 32px 0 0; }
.lead .chips span { margin: 0 0 4px; }
.lead .chips button { min-width: 280px; border-radius: 8px; text-align: left; height: 40px; }

.figs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.figs > div > p { max-width: 36em; margin-top: 24px; font-size: 16px; }

.ops { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.ops__text { grid-area: 1 / 1 / 2 / 6; padding-bottom: 48px; }
.ops__text h2 { font-size: clamp(31px, 3.5vw, 48px); margin-bottom: 20px; }
.ops > .win--insights { grid-area: 1 / 6 / 3 / 13; }
.ops > .win--health { grid-area: 2 / 1 / 3 / 8; z-index: 1; box-shadow: inset 0 1px 0 var(--w-edge), 0 2px 4px rgba(8, 10, 20, .16), 0 24px 48px -12px rgba(8, 10, 20, .4), 0 60px 110px -30px rgba(8, 10, 20, .5); }

.ask { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: end; }
.ask h2 { margin-bottom: 20px; }
.ask .term--q { position: relative; overflow: visible; margin-top: 40px; }
.ask .term--q::after { content: ""; position: absolute; left: 100%; top: 50%; width: 32px; border-top: 1.5px solid #b9b9b4; }
.ask .term--q pre { min-height: 0; }
.ask .term--mcp { min-height: 384px; }

.obs { padding: clamp(72px, 9vw, 128px) 0; background: var(--night); color: var(--night-soft); }
.obs__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: center; }
.obs h2 { color: #fff; margin-bottom: 24px; }
.obs__ctl { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--night-rule); border-radius: 8px; font-size: 13.5px; font-weight: 500; }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 5px; background: none; color: var(--night-muted); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: #fff; }
.seg button[aria-pressed="true"] { background: #1c2742; color: #fff; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: 14px; font-weight: 500; }
.chips span { margin-right: 6px; }
.chips button { height: 34px; padding: 0 14px; border: 1px solid #cfcfca; border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 550; cursor: pointer; }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }

.index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; }
.index h3 { padding-bottom: 10px; border-bottom: 1px solid var(--ink); font-size: 19px; letter-spacing: -.01em; }
.index dl div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.4; }
.ledger div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.45; }
.index dt, .ledger dt { color: var(--ink); font-weight: 600; }

.cmd { padding: 22px 24px; border-radius: 12px; background: var(--night); color: var(--night-muted); font-size: 13px; box-shadow: var(--lift); }
.cmd pre { margin: 6px 0 18px; overflow-x: auto; color: var(--night-text); font-size: 15px; }
.cmd pre:last-child { margin-bottom: 0; }
.ledger { margin-top: 28px; border-top: 1px solid var(--rule); }
.ledger div { grid-template-columns: 120px minmax(0, 1fr); }

.end { padding: clamp(80px, 10vw, 152px) 0; border-top: 1px solid var(--rule); }
.end h2 { max-width: 15em; font-size: clamp(36px, 5.6vw, 80px); line-height: 1; letter-spacing: -.024em; word-spacing: .05em; }
.end .lede { max-width: 34em; margin: 28px 0 36px; }
.note { margin-top: 48px; color: var(--muted); font-size: 13.5px; }

.foot { padding: 64px 0 40px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14.5px; }
.foot .brand { color: var(--ink); }
.foot__top { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)); gap: 40px; }
.foot__brand p { max-width: 30em; margin-top: 16px; }
.foot nav { display: grid; align-content: start; gap: 9px; }
.foot h2 { margin-bottom: 6px; color: var(--ink); font-size: 14.5px; font-weight: 650; font-stretch: 100%; letter-spacing: 0; line-height: 1.4; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 13.5px; }

/* Product windows: the console's own tokens, one set per theme. */
.win, .obs {
  --w-app: #070b16; --w-surface: #0c1222; --w-subtle: #0f1628; --w-raised: #141c31; --w-side: #090e1b; --w-hover: #18213a;
  --w-border: #1e2842; --w-strong: #2c3756; --w-divider: #172037; --w-edge: rgba(255, 255, 255, .07);
  --w-text: #e7ebf4; --w-soft: #b3bcd0; --w-muted: #919bb3;
  --w-accent: #82a7d9; --w-accent-tint: rgba(130, 167, 217, .14); --w-on-accent: #070b16;
  --w-deny: #ff8b8b; --w-deny-text: #ffb1b1; --w-deny-tint: rgba(255, 128, 128, .12); --w-deny-border: rgba(255, 128, 128, .38);
  --w-ask: #eab95c; --w-ask-text: #efcd86; --w-ok: #82a7d9; --w-fill: #7f8aa6; --w-track: #1c2540; --w-ring: #34416a;
  --w-gap: var(--w-app);
}
html[data-console="lightsoff"] .win {
  --w-app: #000; --w-surface: #0a0a0b; --w-subtle: #0f0f10; --w-raised: #151516; --w-side: #050505; --w-hover: #1b1b1d;
  --w-border: #222224; --w-strong: #303033; --w-divider: #19191b;
  --w-text: #ededee; --w-soft: #b6b6ba; --w-muted: #939398;
  --w-fill: #8a8a90; --w-track: #1d1d1f; --w-ring: #3a3a3e;
}
html[data-console="light"] .win {
  --w-app: #f4f6f5; --w-surface: #fff; --w-subtle: #f8faf9; --w-raised: #f0f3f2; --w-side: #fbfcfc; --w-hover: #f4f7f6;
  --w-border: #dfe5e3; --w-strong: #cbd5d1; --w-divider: #ebefee; --w-edge: #fff;
  --w-text: #17201e; --w-soft: #485652; --w-muted: #5f6e69;
  --w-accent: #14715f; --w-accent-tint: #e9f5f1; --w-on-accent: #fff;
  --w-deny: #b23a3a; --w-deny-text: #8d2c2c; --w-deny-tint: #fbecec; --w-deny-border: #edcaca;
  --w-ask: #956417; --w-ask-text: #755013; --w-ok: #187348; --w-fill: #8d9a95; --w-track: #e6ebe9; --w-ring: #c5cfcb;
}

.win {
  container-type: inline-size; overflow: hidden; border: 1px solid var(--w-border); border-radius: 12px; background: var(--w-app); color: var(--w-text);
  font-size: 13px; line-height: 1.45; text-align: left; box-shadow: inset 0 1px 0 var(--w-edge), var(--lift);
}
.win b { font-weight: 600; }
.win i { font-style: normal; }
.win code, .win .mono { font-family: var(--mono); font-size: 12px; }
.win code { white-space: nowrap; padding: 1px 6px; border: 1px solid var(--w-divider); border-radius: 4px; background: var(--w-raised); }
.win .ic, .dco .ic { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.win__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--w-border); background: var(--w-side); color: var(--w-muted); font-size: 12px; }
.win__crumbs { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.win__crumbs i { margin: 0 8px; color: var(--w-strong); }
.win__search { flex: none; display: flex; align-items: center; gap: 8px; padding: 3px 4px 3px 9px; border: 1px solid var(--w-border); border-radius: 6px; }
.win__search kbd { margin-left: 22px; }
.win kbd { padding: 0 5px; border: 1px solid var(--w-strong); border-radius: 4px; font: 500 10.5px/1.5 var(--sans); }
.win__live { display: inline-flex; align-items: center; gap: 7px; color: var(--w-soft); font-weight: 600; }
.win__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--w-ok); }
.win__frame { display: flex; }
.win--wide .win__frame { min-height: 652px; }
.win__main { flex: 1; min-width: 0; }
.win__nav { flex: none; contain: size; overflow: hidden; width: 188px; padding: 12px 8px 16px; border-right: 1px solid var(--w-border); background: var(--w-side); color: var(--w-soft); font-size: 12.5px; }
.win--dash .win__nav { width: 204px; }
.win__nav > span { display: flex; align-items: center; gap: 9px; padding: 4.5px 10px; border-radius: 6px; white-space: nowrap; }
.win__nav .is-on { background: var(--w-accent-tint); color: var(--w-text); font-weight: 600; }
.win__nav .win__group { margin-top: 12px; color: var(--w-muted); font-size: 11.5px; }
.win__nav .win__brand { margin-bottom: 14px; padding: 4px 8px 14px; border-bottom: 1px solid var(--w-border); border-radius: 0; color: var(--w-muted); font-size: 11px; line-height: 1.25; }
.win__brand b { display: block; color: var(--w-text); font-size: 13px; }
.win__body { flex: 1; min-width: 0; padding: 20px 20px 24px; }

.w-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.w-h1 { display: block; font-size: 19px; letter-spacing: -.01em; }
.w-sub { display: block; margin-top: 2px; color: var(--w-soft); font-size: 12.5px; }
.w-actions { display: flex; gap: 8px; }
.w-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--w-strong); border-radius: 6px; background: var(--w-surface); color: var(--w-text); font-size: 12px; font-weight: 600; white-space: nowrap; }
button.w-btn { cursor: pointer; }
button.w-btn:hover { border-color: var(--w-muted); }
.w-btn--primary { border-color: var(--w-accent); background: var(--w-accent); color: var(--w-on-accent); }
.w-btn--danger { border-color: var(--w-deny); background: var(--w-deny); color: var(--w-on-accent); }
.w-dim { color: var(--w-muted); font-size: 12px; }
.w-strip { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 12px; color: var(--w-soft); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.w-strip b { color: var(--w-text); }
.w-strip--foot { margin: 16px 0 0; }
.w-h2 { display: flex; align-items: center; gap: 10px; margin: 20px 0 8px; font-size: 14px; }
.w-h2:first-child { margin-top: 0; }
.w-h2 .w-btn, .w-h2 > .st { margin-left: auto; }

.w-table { width: 100%; border: 1px solid var(--w-border); border-radius: 8px; border-spacing: 0; background: var(--w-surface); font-variant-numeric: tabular-nums; }
.w-table th { padding: 8px 12px; border-bottom: 1px solid var(--w-divider); color: var(--w-muted); font-size: 11.5px; font-weight: 550; text-align: left; }
.w-table td { padding: 9px 12px; white-space: nowrap; }
.w-table tr + tr td { border-top: 1px solid var(--w-divider); }
.w-table .wrap { max-width: none; margin: 0; padding: 9px 12px; white-space: normal; }
.w-table .r { text-align: right; }
.w-table--in { border: 0; }
.w-table--in th:first-child, .w-table--in td:first-child { padding-left: 0; }
.w-table--in th:last-child, .w-table--in td:last-child { padding-right: 0; }
.clip { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.num { font-variant-numeric: tabular-nums; }

.st { display: inline-flex; align-items: baseline; gap: 7px; }
.st::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--w-fill); transform: translateY(-1px); }
.st--deny { color: var(--w-deny-text); }
.st--deny::before { background: var(--w-deny); }
.st--ask { color: var(--w-ask-text); }
.st--ask::before { background: var(--w-ask); }
.st--ok::before { background: var(--w-ok); }
.st--accent::before { background: var(--w-accent); }
.st + .w-dim { margin-left: 10px; }

.w-card { --w-gap: var(--w-surface); margin-top: 12px; padding: 14px 16px; border: 1px solid var(--w-border); border-radius: 8px; background: var(--w-surface); }
.w-card__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 10px; }
.w-key { color: var(--w-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.w-key i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; }
.k-allow, .k-t4 { background: var(--w-fill); }
.k-deny { background: var(--w-deny); }
.k-t1 { background: #8f9cf5; }
.k-t2 { background: #3fb5b8; }
.k-t3 { background: #e574ad; }
.s-allow, .s-t4 { fill: var(--w-fill); }
.s-deny { fill: var(--w-deny); }
.s-t1 { fill: #8f9cf5; }
.s-t2 { fill: #3fb5b8; }
.s-t3 { fill: #e574ad; }
.l-allow { stroke: var(--w-fill); }
.l-deny { stroke: var(--w-deny); }

.w-meta { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--w-border); border-radius: 8px; background: var(--w-surface); }
.w-meta div { padding: 10px 14px; }
.w-meta dt, .w-kv dt { color: var(--w-muted); font-size: 11.5px; }
.w-tabs { display: flex; align-items: center; gap: 20px; margin: 16px 0 12px; border-bottom: 1px solid var(--w-border); color: var(--w-soft); white-space: nowrap; }
.w-tabs > * { padding: 8px 0; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; }
.w-tabs > b, .w-tabs > [aria-selected="true"] { border-bottom-color: var(--w-accent); color: var(--w-text); font-weight: 600; }
.w-tabs > button { color: var(--w-soft); font-size: 13px; cursor: pointer; }
.w-tabs > button:hover { color: var(--w-text); }
.w-tabs > .w-dim { margin-left: auto; }
.w-tabs i { margin-left: 4px; padding: 0 5px; border-radius: 4px; background: var(--w-raised); font-size: 11px; font-weight: 500; }
.w-kv div { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: baseline; padding: 9px 0; }
.w-kv div + div { border-top: 1px solid var(--w-divider); }
.w-seg { display: inline-flex; padding: 2px; border: 1px solid var(--w-border); border-radius: 6px; background: var(--w-surface); color: var(--w-soft); font-size: 12px; }
.w-seg > * { padding: 3px 9px; border-radius: 4px; }
.w-seg > b { background: var(--w-raised); color: var(--w-text); }
.w-select { display: inline-flex; align-items: center; height: 28px; padding: 0 28px 0 10px; border: 1px solid var(--w-strong); border-radius: 6px; font-size: 12.5px; }
.bar { display: block; height: 4px; border-radius: 2px; background: var(--w-track); }
.bar i { display: block; height: 100%; border-radius: 2px; background: var(--w-fill); transform-origin: 0 50%; }
.bar.is-warn i { background: var(--w-ask); }

.chart { position: relative; margin: 8px 14px 22px 34px; color: var(--w-muted); font-size: 10.5px; font-variant-numeric: tabular-nums; line-height: 1; }
.chart svg { width: 100%; height: var(--h); overflow: visible; }
.chart .grid { stroke: var(--w-border); vector-effect: non-scaling-stroke; }
.chart polyline { fill: none; stroke-width: 1.75; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart__plot, .chart__plot > div { position: absolute; inset: 0; }
.chart__plot { overflow: hidden; }
.chart__y, .chart__x { position: absolute; white-space: nowrap; }
.chart__y { right: 100%; margin-right: 8px; transform: translateY(-50%); }
.chart__x { top: 100%; margin-top: 8px; transform: translateX(-50%); }
.hbars li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 52px; gap: 14px; align-items: center; padding: 8px 0; color: var(--w-soft); }
.hbars li + li { border-top: 1px solid var(--w-divider); }
.hbars .bar { height: 6px; border-radius: 3px; background: none; }
.hbars .bar i { border-radius: 3px; }
.hbars b { text-align: right; }

.dash { display: grid; grid-template-columns: 640px minmax(0, 1fr); gap: 16px; }
.dash .w-card { margin-top: 0; }
.dash__obs .w-card__h { align-items: center; gap: 16px; margin-bottom: 0; font-size: 14px; }
.dash__attn ul { margin-top: 4px; }
.dash__attn li { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--w-divider); }
.dash__attn li > span:nth-child(2) { display: grid; }
.dash__attn .st { align-self: start; margin-top: 5px; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--w-border); border-radius: 8px; background: var(--w-surface); }
.tiles div { display: grid; gap: 2px; padding: 12px 14px; color: var(--w-soft); font-size: 12px; }
.tiles div + div { border-left: 1px solid var(--w-divider); }
.tiles b { color: var(--w-text); font-size: 22px; font-weight: 550; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.tiles i { color: var(--w-muted); font-size: 11.5px; }

.elog { border: 1px solid var(--w-border); border-radius: 8px; background: var(--w-surface); overflow: hidden; }
.elog__row { position: relative; display: grid; grid-template-columns: 62px 104px 88px minmax(0, 1fr) 76px; gap: 12px; align-items: center; height: 38px; padding: 0 12px; border-top: 1px solid var(--w-divider); }
.elog__row > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.elog__head { height: 34px; border-top: 0; color: var(--w-muted); font-size: 11.5px; font-weight: 550; }
.elog__clip { height: 228px; overflow: hidden; }
.elog__flash { position: absolute; inset: 0; background: var(--w-deny-tint); opacity: 0; pointer-events: none; }
.win--elog .win__body, .win--story .win__body { padding: 14px; }
.elog--story .elog__row { grid-template-columns: 62px minmax(0, 1.3fr) minmax(0, 1fr) 76px 64px; }
.win--story .w-kv { margin-top: 14px; padding: 4px 14px; border: 1px solid var(--w-border); border-radius: 8px; background: var(--w-surface); }

.term { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #26262b; border-radius: 12px; background: #0b0b0d; color: #d4d4d9; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), var(--lift); }
.term__bar { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-bottom: 1px solid #1f1f23; color: #939398; font-size: 12.5px; }
.term__bar i, .bw__dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c2c31; }
.term__bar span { margin-left: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.term pre { flex: 1; padding: 20px; font: 400 13px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.term b { color: #fff; font-weight: 600; }
.t-dim { color: #77777d; }
.t-dot { color: #a8a8ae; }
.t-bad { color: #ff8b8b; }

.dco { color: var(--w-text); }
.dco svg { width: 100%; height: auto; overflow: visible; }
.dco text, .health text { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.dco-ring, .g-inner { fill: none; }
.dco-ring { stroke: var(--w-ring); }
.g-inner { stroke: var(--w-border); }
.g-track { fill: var(--w-track); }
.g-fill { fill: var(--w-fill); transform-box: view-box; }
.g-ticks line { stroke: var(--w-muted); stroke-linecap: round; opacity: .8; }
.g-ticks .half { opacity: .45; }
.g-nums text { fill: var(--w-muted); font-size: 11.5px; font-weight: 500; text-anchor: middle; dominant-baseline: central; }
.g-needle { stroke: var(--w-text); stroke-width: 3; stroke-linecap: round; transform-box: view-box; }
.dco-val, .dco-band, .dco-title, .dco-at, .dco-cap { text-anchor: middle; }
.dco-val { fill: var(--w-text); font-size: 58px; font-weight: 300; letter-spacing: -.03em; }
.dco-band { fill: var(--w-soft); font-size: 14px; font-weight: 500; }
.dco-title { fill: var(--w-text); font-size: 15px; font-weight: 650; }
.dco-lbl { fill: var(--w-soft); font-size: 13px; font-weight: 500; }
.dco-num { fill: var(--w-text); font-size: 27px; font-weight: 600; letter-spacing: -.01em; }
.dco-gap { fill: var(--w-gap); }
g.dco-ic { fill: none; stroke: var(--w-soft); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.dco-pill { fill: var(--w-surface); stroke: var(--w-strong); }
.dco-pilltxt { fill: var(--w-text); font-size: 13px; font-weight: 500; }
.dco-at { fill: var(--w-text); font-size: 13.5px; font-weight: 600; }
.dco-cap { fill: var(--w-muted); font-size: 12px; font-weight: 500; }
.dco-compact { display: none; justify-items: center; margin-top: 14px; }
.dco-cpill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--w-strong); border-radius: 8px; background: var(--w-surface); font-size: 13px; font-weight: 500; }
.dco-compact svg { max-width: 360px; }
.dco-ctitle { font-size: 15px; font-weight: 650; }
.dco-compact ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; width: 100%; margin-top: 20px; border-top: 1px solid var(--w-border); }
.dco-compact li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--w-border); color: var(--w-soft); font-size: 13px; }
.dco-compact li b { color: var(--w-text); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.obs .dco { max-width: 860px; justify-self: end; width: 100%; }

.hunt__editor { margin-top: 0; padding: 0; overflow: hidden; }
.hunt__bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--w-divider); }
.hunt__bar .w-btn { margin-left: auto; }
.hunt__bar .w-btn + .w-btn { margin-left: 0; }
.dcql { min-height: calc(6.8em + 28px); padding: 14px 16px; background: var(--w-subtle); color: var(--w-soft); font: 400 13.5px/1.7 var(--mono); white-space: pre-wrap; }
.dcql b { color: var(--w-text); }
.dcql i { color: var(--w-accent); }
.dcql em { color: var(--w-ask-text); font-style: normal; }
.hunt .w-strip { margin: 16px 0 0; }
.hunt__result { min-height: 282px; }

.pol { display: grid; grid-template-columns: 312px minmax(0, 1fr); gap: 20px; align-items: start; min-height: 356px; }
.pol__list { display: grid; gap: 8px; }
.pol__tpl { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--w-border); border-radius: 8px; background: var(--w-surface); color: var(--w-soft); font-size: 12px; line-height: 1.4; text-align: left; cursor: pointer; }
.pol__tpl b { color: var(--w-text); font-size: 13px; }
.pol__tpl:hover { border-color: var(--w-strong); }
.pol__tpl[aria-pressed="true"] { border-color: var(--w-accent); background: var(--w-accent-tint); }
.pol__meta { margin-top: 4px; color: var(--w-muted); }
.pol__pane { padding: 16px; border: 1px solid var(--w-border); border-radius: 8px; background: var(--w-surface); }
.pol__rules { border: 1px solid var(--w-border); border-radius: 8px; background: var(--w-subtle); font-size: 13.5px; }
.pol__rules li { padding: 11px 14px; }
.pol__rules li + li { border-top: 1px solid var(--w-divider); }
.pol__rules .st { display: block; color: var(--w-text); }
.pol__rules .st::before { display: inline-block; margin-right: 10px; }
.pol__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pol__chips span { padding: 3px 10px; border: 1px solid var(--w-strong); border-radius: 6px; color: var(--w-soft); font-size: 12px; }
.pol__test { display: flex; gap: 8px; }
.pol__test code { flex: 1; overflow: hidden; text-overflow: ellipsis; padding: 6px 10px; border-color: var(--w-strong); border-radius: 6px; background: var(--w-subtle); }
.pol__result { margin-top: 10px; font-size: 12.5px; }

.win--browser .win__bar { gap: 14px; }
.bw__dots { display: flex; gap: 7px; }
.bw__url { flex: 1; display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border: 1px solid var(--w-border); border-radius: 13px; background: var(--w-surface); color: var(--w-soft); }
.bw__ext { display: flex; align-items: center; gap: 6px; color: var(--w-soft); font-weight: 600; }
.win--browser .win__body { display: grid; gap: 14px; padding: 20px; }
.bw__msg { justify-self: end; max-width: 84%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--w-raised); color: var(--w-soft); font-size: 13.5px; }
.bw__card { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--w-deny-border); border-radius: 10px; background: var(--w-surface); font-size: 13.5px; }
.bw__card p:first-child { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.bw__input { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 8px 0 16px; border: 1px solid var(--w-strong); border-radius: 22px; color: var(--w-muted); }
.bw__input i { width: 28px; height: 28px; border-radius: 50%; background: var(--w-raised); }

.frz { margin-bottom: 20px; padding: 12px 14px; border: 1px solid var(--w-border); border-radius: 8px; background: var(--w-surface); }
.is-frozen .frz { border-color: var(--w-deny-border); background: var(--w-deny-tint); }
.frz > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; }
.frz .w-btn { grid-area: 1 / 2 / 3 / 3; }
.frz__on, .is-frozen .frz__off { display: none; }
.is-frozen .frz__on { display: grid; }
.flows td { vertical-align: top; }
.flows .wrap { color: var(--w-soft); }
.flows .wrap b { color: var(--w-text); }

.health { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 0; }
.health__gauge { display: grid; justify-items: center; gap: 2px; text-align: center; }
.health__gauge svg { width: 100%; max-width: 260px; margin-bottom: 4px; }
.health__gauge .dco-val { font-size: 36px; }
.health__gauge .dco-band { font-size: 12.5px; }
.health__gauge .g-nums text { font-size: 10px; }
.health__gauge .g-needle { stroke-width: 2.5; }
.health__cover p { display: grid; grid-template-columns: minmax(0, 1fr) 22% 30px; gap: 12px; align-items: center; margin-top: 9px; color: var(--w-soft); font-size: 12.5px; }
.health__cover p b { color: var(--w-text); text-align: right; }

.ins__sum li { position: relative; margin-top: 6px; padding-left: 14px; color: var(--w-soft); font-size: 12.5px; }
.ins__sum li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--w-fill); }
.ins__big b { display: block; font-size: 26px; font-weight: 400; letter-spacing: -.02em; line-height: 1.2; }
.ins__keys { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 6px; }

.sevs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sevs li { position: relative; display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--w-border); border-radius: 8px; background: var(--w-surface); }
.sevs__top { display: flex; justify-content: space-between; color: var(--w-soft); }
.sevs dl { display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid var(--w-divider); }
.sevs dl div { display: flex; justify-content: space-between; gap: 12px; }
.sevs dt { color: var(--w-muted); font-size: 11.5px; }
.sevs dd b { color: var(--w-text); }
.sevs dd { color: var(--w-soft); }
.win--evid .w-h2 { margin-bottom: 12px; }
.win--evid .sevs + .w-h2 { margin-top: 28px; }
.comp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.comp p { display: grid; gap: 8px; }
.comp p > span:first-child { display: flex; justify-content: space-between; font-size: 13.5px; }
.comp .bar { height: 6px; border-radius: 3px; }
.comp .bar i { border-radius: 3px; background: var(--w-accent); }

/* Scene states. Markup holds the finished picture; these only apply while a scene waits to play. */
.ch.off, .hid, .anim [data-scene="hero"]:not(.is-run) :is([data-count], .dco-num, .dco-val) { opacity: 0; }
.ch.cur { box-shadow: 2px 0 0 var(--w-text, #e7e7ea); }
.anim [data-dial]:not(.is-run) .g-a { transform: rotate(-109.2deg) !important; }
.anim [data-dial]:not(.is-run) .g-b { transform: rotate(-105deg) !important; }
.anim [data-dial]:not(.is-run) .g-needle { transform: rotate(0deg) !important; }

@container (max-width: 1000px) {
  .win__nav { display: none; }
}
@container (max-width: 760px) {
  .sevs, .comp { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; }
  .pol { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles div:nth-child(4) { border-left: 0; }
  .tiles div:nth-child(n + 4) { border-top: 1px solid var(--w-divider); }
}
@container (max-width: 620px) {
  .c-w { display: none !important; }
  .w-meta { grid-template-columns: repeat(2, 1fr); }
  .health { grid-template-columns: minmax(0, 1fr); }
  .win__search { display: none; }
  .elog__row { grid-template-columns: 62px 104px minmax(0, 1fr) 76px; }
  .elog--story .elog__row { grid-template-columns: 62px minmax(0, 1fr) 76px 64px; }
  .w-tabs { gap: 16px; }
}
@container (max-width: 440px) {
  .c-m { display: none !important; }
  .win__body { padding: 16px 14px 18px; }
  .w-head .w-actions, .w-sub { display: none; }
  .w-head { margin-bottom: 12px; }
  .elog__row { grid-template-columns: 96px minmax(0, 1fr) 70px; gap: 10px; }
  .elog--story .elog__row { grid-template-columns: minmax(0, 1fr) 70px 58px; }
  .elog--story .elog__row > :first-child, .w-h2 .w-dim, .chart__x:nth-child(even), td .w-btn + .w-btn { display: none; }
  .dco-compact ul { gap: 0 16px; }
  .dco-compact li { gap: 8px; }
  .dco-compact li b { font-size: 17px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles div:nth-child(n) { border-left: 0; border-top: 1px solid var(--w-divider); }
  .tiles div:nth-child(even) { border-left: 1px solid var(--w-divider); }
  .tiles div:nth-child(-n + 2) { border-top: 0; }
  .frz > div { grid-template-columns: 1fr; }
  .frz .w-btn { grid-area: auto; justify-self: start; margin-top: 6px; }
  .flows th:first-child, .flows td:first-child { display: none; }
  .w-tabs { gap: 14px; }
  .w-tabs > button { font-size: 12.5px; }
  .hbars li { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) 44px; gap: 10px; }
  .sevs { grid-template-columns: minmax(0, 1fr); gap: 12px; }
      .comp { gap: 20px 24px; }
  .w-strip { gap: 4px 14px; }
  .health__cover p { grid-template-columns: minmax(0, 1fr) 18% 30px; }
}

@media (max-width: 1380px) {
  .stage .win--elog { right: 0; }
}
@media (max-width: 1280px) {
  .dash { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .stage .win--elog { width: 40%; }
}
@media (max-width: 1100px) {
  .top__nav { gap: 22px; }
  .top__in { gap: 28px; }
  .hero__top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero__side { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
  .hero .actions { margin-top: 0; }
  .stage { margin-top: 72px; margin-bottom: -120px; }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash .dco { max-width: 700px; margin: 0 auto; }
  .dash__attn li:nth-child(n + 5) { display: none; }
  .stage .win--elog { position: relative; top: auto; width: 88%; margin: -36px 0 0 auto; }
  .tools { padding-top: 176px; }
  .obs__in { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .obs__text { max-width: 640px; }
  .obs .dco { justify-self: center; }
  .split, .split--rev { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split .split__text { order: -1; max-width: 640px; }
  .lead, .figs, .ask { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lead .prose, .ask .prose { max-width: 640px; }
  .lead .chips { flex-direction: row; align-items: center; }
  .lead .chips button { min-width: 0; height: 34px; }
  .figs { gap: 56px; }
  .ops { row-gap: 24px; }
  .ops__text, .ops > .win--insights, .ops > .win--health { grid-area: auto / 1 / auto / 13; }
  .ops__text { padding-bottom: 16px; max-width: 640px; }
  .ops > .win--health { order: 1; }
  .ops > .win--insights { order: 2; }
  .ask .term--mcp { min-height: 0; }
  .ask .term--q::after { left: 28px; top: 100%; width: 0; height: 40px; border-top: 0; border-left: 1.5px solid #b9b9b4; }
  .foot__top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .top__nav { display: none; position: absolute; left: 0; right: 0; top: 72px; z-index: 5; flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; border-bottom: 1px solid var(--night-rule); background: var(--night); }
  .top__nav.is-open { display: flex; }
  .top__nav a { padding: 12px 0; border-top: 1px solid var(--night-rule); font-size: 16px; color: #fff; }
  .top { position: relative; }
  .top__menu { display: inline-flex; align-items: center; }
  .top__end { gap: 16px; }
  .intro { grid-template-columns: minmax(0, 1fr); margin-bottom: 40px; }
  .hero__side { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero .lede { max-width: 36em; }
  .intro .prose { max-width: 640px; }
  .story { grid-template-columns: minmax(0, 1fr); }
  .index { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .prose--cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top__in { height: 64px; }
  .top__nav { top: 64px; }
  .top .btn--sm { display: none; }
  .hero__top { padding-top: 28px; }
  .hero__side { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .themes > span { display: none; }
  .stage { margin-top: 76px; }
  .stage .win--elog { width: 94%; margin-top: -20px; }
  .dco-full { display: none; }
  .dco-compact { display: grid; }
  .dash__attn li:nth-child(n + 4) { display: none; }
  .tools ul { gap: 16px 28px; }
  .tools li { font-size: 15px; }
  .split--next { margin-top: 64px; }
  .obs__ctl { gap: 10px; }
  .index dl div { grid-template-columns: minmax(0, 1fr); gap: 1px; padding: 8px 0; }
  h2.wide { margin-bottom: 32px; }
  .lede--under { margin-top: -12px; }
  .ledger div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cmd { padding: 18px 16px; }
  .cmd pre { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .foot__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .term pre { padding: 16px 14px; font-size: 12px; }
  .chips span { flex-basis: 100%; }
  .end .actions .btn { flex: 1 1 100%; }
  .themes--page { margin-left: 0; }
}

/* Films: links to /view/darkcontrol-in-depth */
.hero .actions { column-gap: 14px; }
.top__nav a { white-space: nowrap; }
@media (max-width: 1100px) {
  .hero__side { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero .lede { max-width: 44em; }
}
@media (max-width: 1140px) {
  .top { position: relative; }
  .top__nav { display: none; position: absolute; left: 0; right: 0; top: 72px; z-index: 5; flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; border-bottom: 1px solid var(--night-rule); background: var(--night); }
  .top__nav.is-open { display: flex; }
  .top__nav a { padding: 12px 0; border-top: 1px solid var(--night-rule); font-size: 16px; color: #fff; }
  .top__menu { display: inline-flex; align-items: center; }
  .top__end { gap: 16px; }
}
@media (max-width: 640px) { .top__nav { top: 64px; } }
.watch { display: inline-flex; align-items: center; gap: 10px; height: 48px; color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.watch svg { width: 28px; height: 28px; padding: 8px 7px 8px 9px; border: 1px solid #46527a; border-radius: 50%; }
.watch:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.watch:hover svg { border-color: #fff; }
.shelf { padding-top: clamp(64px, 7vw, 104px); }
.shelf__head { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 16px 48px; align-items: end; margin-bottom: 36px; }
.shelf__in { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px 48px; align-items: stretch; }
.shelf__poster { position: relative; display: block; overflow: hidden; border-radius: 12px; background: #0a0b0e; box-shadow: var(--lift); text-decoration: none; }
.shelf__poster img { width: 100%; height: 100%; object-fit: cover; }
.shelf__poster:focus-visible { outline: 3px solid var(--crimson); border-radius: 12px; }
.playbtn { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 26px 0 22px; border-radius: 9px; background: var(--crimson); color: #fff; font-size: 17.5px; font-weight: 600; white-space: nowrap; }
.shelf__poster .playbtn { position: absolute; left: 4.6%; top: 48%; }
.shelf__poster:hover .playbtn { background: var(--crimson-deep); }
.shelf__list { display: grid; align-content: stretch; border-top: 1px solid var(--rule); }
.shelf__list li { display: grid; border-bottom: 1px solid var(--rule); }
.shelf__list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; color: var(--ink); font-weight: 600; text-decoration: none; }
.shelf__list a span + span { color: var(--muted); font-weight: 400; font-size: 15px; font-variant-numeric: tabular-nums; }
.shelf__list a:hover span:first-child { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) {
  .shelf__head, .shelf__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hero .watch { justify-content: center; flex: 1 1 100%; }
  .shelf__poster .playbtn { left: 16px; top: auto; bottom: 16px; height: 48px; padding: 0 20px 0 16px; font-size: 16px; }
}

@media print {
  .top__menu, .themes, .chips, .replay { display: none; }
}
