/* Koreva's landing page: one dark field, a slow ribbon of light, and the product playing in a window.
   The blues are the design system's accent family (#1d5fbf, #5b9cf5); the marketing page uses them more
   freely than the app's "under 1% colour" rule allows. System font stack, nothing fetched. */
:root {
  --ground: #0c0c0c; --text: #ffffff; --t70: rgba(255, 255, 255, 0.72); --t60: rgba(255, 255, 255, 0.64); --t40: rgba(255, 255, 255, 0.56);
  --line: rgba(255, 255, 255, 0.1); --win: rgba(14, 16, 20, 0.9);
  --accent: #5b9cf5; --accent-soft: rgba(91, 156, 245, 0.2);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --m: 20px; --max: 72rem;
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --m: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ground); }
body { position: relative; margin: 0; color: var(--text); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ol, ul, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 9; padding: 12px 16px; background: #fff; color: #000; }
.nav, main > section, .paper > section, .foot { position: relative; max-width: var(--max); margin-inline: auto; padding-inline: var(--m); }

/* the ribbon, its grain, and the two guide lines */
#ribbon { position: absolute; top: 0; left: 0; width: 100%; height: 1120px; pointer-events: none; }
.grain { position: absolute; top: 0; left: 0; width: 100%; height: 1120px; pointer-events: none; mix-blend-mode: overlay; opacity: 0.3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
#ribbon, .grain { -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
body::before, body::after { content: ""; position: fixed; top: 0; bottom: 0; width: 1px; background: rgba(128, 128, 128, 0.26); pointer-events: none; z-index: 1; }
body::before { left: max(8px, calc(50vw - var(--max) / 2)); } body::after { right: max(8px, calc(50vw - var(--max) / 2)); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.mk { width: 26px; height: 26px; flex: none; color: #fff; }
.nav { flex-wrap: wrap; row-gap: 0; }
.nav nav { order: 3; flex-basis: 100%; }
.links { display: flex; gap: 32px; color: var(--t70); font-size: 14px; font-weight: 500; }
.links a, .colophon a { display: inline-flex; align-items: center; min-height: 44px; transition: color 150ms; }
.links a:hover, .colophon a:hover { color: #fff; }
@media (max-width: 899px) { .links { gap: 18px; flex-wrap: nowrap; overflow-x: auto; font-size: 13px; } .links a { white-space: nowrap; } }
@media (min-width: 900px) { .nav nav { order: 0; flex-basis: auto; } }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; background: #fff; color: #0c0c0c; border-radius: 999px; font-size: 14px; font-weight: 550; white-space: nowrap; transition: background-color 150ms, transform 120ms var(--ease); }
.pill:hover { background: #e9eefb; } .pill:active { transform: translateY(1px); }
.pill.big { min-height: 48px; padding: 0 24px; font-size: 15px; max-width: none; letter-spacing: 0; line-height: 1; }
.chev { transition: transform 150ms; } .pill:hover .chev { transform: translateX(2px); }

/* ---------- hero ---------- */
.hero { padding-top: 72px; padding-bottom: 88px; }
.hero-copy { text-align: center; }
h1 { font-size: clamp(36px, 7vw, 76px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 600; text-shadow: 0 0 40px rgba(12, 12, 12, 0.6); }
.sweep { display: block; padding-bottom: 0.12em; background: linear-gradient(to right, #1a3a78 0%, #1d5fbf 12.5%, #e6f0ff 32.5%, #7fb4ff 50%, #1d5fbf 67.5%, #1a3a78 87.5%, #1a3a78 100%) 0 0 / 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; animation: sweep 6s linear infinite; }
.lede { max-width: 28rem; margin: 28px auto 32px; color: rgba(255, 255, 255, 0.86); font-size: 17px; text-shadow: 0 0 18px #0c0c0c, 0 0 6px #0c0c0c, 0 1px 2px #0c0c0c; }

.menubar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 40px; margin: 72px calc(50% - 50vw) 0; padding-inline: max(var(--m), calc(50vw - var(--max) / 2 + var(--m))); background: rgba(0, 0, 0, 0.4); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-block: 1px solid var(--line); color: var(--t60); font-size: 13px; white-space: nowrap; overflow: hidden; }
.menubar div { display: flex; align-items: center; gap: 20px; } .menubar b { color: #fff; font-weight: 650; }
.menubar .mk { width: 18px; height: 18px; }
@media (max-width: 767px) { .menubar div span:nth-child(n+4) { display: none; } }

/* the window holds the real app: the Ask screen of docs/design/v7, in the app's own dark tokens and sizes */
.ui { --g: #0a0a0a; --s: #111111; --r: #1a1a1a; --b: #262626; --c: #3a3a3a; --tx: #ededed; --mu: #b4b4b4; --fa: #949494; color: var(--tx); font-size: 14px; line-height: 20px; }
.window { --g: #0a0a0a; --s: #111111; --r: #1a1a1a; --b: #262626; --c: #3a3a3a; --tx: #ededed; --mu: #b4b4b4; --fa: #949494;
  margin-top: 56px; background: var(--g); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--tx); font-size: 14px; line-height: 20px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6); }
.titlebar { position: relative; display: flex; align-items: center; justify-content: center; height: 40px; background: #161616; border-bottom: 1px solid var(--b); color: var(--fa); font-size: 13px; }
.lights { position: absolute; left: 16px; display: flex; gap: 8px; } .lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; } .lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.app { display: grid; }
.sidebar { display: none; flex-direction: column; gap: 2px; padding: 16px 12px; border-right: 1px solid var(--b); color: var(--mu); }
.app-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 14px; color: var(--tx); font-weight: 600; font-size: 15px; } .app-brand .mk { width: 20px; height: 20px; }
.newchat { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 10px; border: 1px solid var(--b); border-radius: 6px; color: var(--tx); font-weight: 500; }
.label { margin: 20px 8px 6px; color: var(--fa); font-size: 12px; }
.sidebar li { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border-radius: 8px; white-space: nowrap; overflow: hidden; }
.sidebar li.on { background: #222222; color: var(--tx); } .sidebar li span { margin-left: auto; color: var(--fa); font-size: 12px; }
.sidebar .bottom { margin-top: auto; padding-top: 24px; }
.me { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 8px 0; border-top: 1px solid var(--b); }
.me b { display: block; color: var(--tx); font-weight: 500; } .me small { display: block; font-size: 12px; }
.chat { display: flex; flex-direction: column; min-width: 0; padding: 24px 20px 16px; }
.chat-title { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.chat-sub { color: var(--mu); }
.q { align-self: flex-end; max-width: 92%; margin-top: 18px; padding: 8px 14px; background: var(--r); border-radius: 10px; }
.read { display: flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--mu); font-size: 12px; } .read .i { color: #3fc07a; width: 14px; height: 14px; }
.a { margin-top: 8px; font-size: 15px; line-height: 24px; }
.cite { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; margin-left: 2px; border-radius: 4px; background: #14233a; color: #5b9cf5; font: 600 12px/16px var(--font); vertical-align: 2px; font-variant-numeric: tabular-nums; }
.sources { margin-top: 12px; border: 1px solid var(--b); border-radius: 8px; background: var(--s); }
.s-head { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--b); font-weight: 500; font-size: 13px; } .s-head span { margin-left: auto; color: var(--mu); font-weight: 400; }
.source { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; }
.source .n { color: #5b9cf5; font-weight: 600; font-size: 12px; } .source > span:nth-child(2) { flex: 1 1 170px; min-width: 0; }
.source b { display: block; font-weight: 500; } .source small { display: block; color: var(--mu); font-size: 12px; }
.abtn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--c); border-radius: 6px; background: var(--s); font-weight: 500; font-size: 13px; white-space: nowrap; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.composer { margin-top: auto; padding: 8px; border: 1px solid var(--c); border-radius: 8px; background: var(--s); }
.chat .composer { margin-top: 28px; }
.composer p:first-child { padding: 6px 6px 14px; color: var(--fa); } .composer p:last-child { display: flex; gap: 8px; }
.send { display: inline-flex; align-items: center; gap: 6px; height: 30px; margin-left: auto; padding: 0 12px; border-radius: 6px; background: var(--r); color: var(--fa); font-weight: 500; font-size: 13px; }
.viewer { min-width: 0; padding: 16px; border-top: 1px solid var(--b); background: var(--s); }
.v-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--mu); font-size: 13px; } .v-head b { color: var(--tx); font-weight: 500; } .v-head span { margin-left: auto; font-size: 12px; }
.sheet-page { padding: 26px 22px 30px 46px; background: #f4f4f1; color: #55585d; border-radius: 3px; font-family: var(--serif); font-size: 14px; line-height: 1.6; }
.sheet-page h2 { font: 700 17px/1.3 var(--serif); letter-spacing: 0; color: #0a0a0a; margin-bottom: 8px; }
.sheet-page p { position: relative; margin-top: 10px; } .sheet-page .n { position: absolute; left: -30px; top: 3px; background: #e2ebf9; color: #1d5fbf; }
mark { background: var(--accent-soft); color: #fff; padding: 3px 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sheet-page mark { background: linear-gradient(#dbe7fb, #dbe7fb) no-repeat 0 0 / 100% 100%; color: #0a0a0a; padding: 3px 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pagepane mark, .pagepane .n { transition: background-size 900ms var(--ease), opacity 300ms; }
@media (max-width: 599px) { .titlebar { justify-content: flex-end; padding-right: 16px; } .acts .abtn:nth-child(n+3), .composer .abtn:nth-child(2) { display: none; } }
@media (min-width: 1000px) {
  .app { grid-template-columns: 228px minmax(0, 1.12fr) minmax(0, 1fr); min-height: 560px; }
  .sidebar { display: flex; } .chat { padding: 28px 28px 20px; gap: 0; } .acts { margin-bottom: 20px; } .chat .composer { margin-top: auto; }
  .viewer { border-top: 0; border-left: 1px solid var(--b); padding: 20px; }
}

/* the window while it plays (the script adds .play; without it the finished exchange is shown) */
.play .ask .u { opacity: 0; } .play .ask .u.on { opacity: 1; transition: opacity 220ms; }
.play .ask .cite.u { transform: scale(0.6); } .play .ask .cite.u.on { transform: none; transition: opacity 220ms, transform 320ms var(--ease); }
.play .pagepane p[id] mark { background-size: 0 100%; } .play .pagepane p[id] .n { opacity: 0; }
.play .pagepane p.lit mark { background-size: 100% 100%; } .play .pagepane p.lit .n { opacity: 1; }

.rise { animation: rise 800ms var(--ease) var(--d, 0s) both; }
.nav.rise { animation: drop 600ms ease-out both; }
.window.rise { animation-name: rise40; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes rise40 { from { opacity: 0; transform: translateY(40px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-16px); } }
@keyframes sweep { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- scroll: a progress line, and parts that rise as they arrive (only when the script runs) ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 5; background: linear-gradient(90deg, #1d5fbf, #a9ccff); transform: scaleX(0); transform-origin: 0 50%; }
.js .rv { opacity: 0; transform: translateY(28px); }
.js .rv.in { opacity: 1; transform: none; transition: opacity 700ms var(--ease) calc(var(--i, 0) * 110ms), transform 900ms var(--ease) calc(var(--i, 0) * 110ms); }

/* ---------- the frame: below the hero the page is one ruled sheet between the two guide lines.
   Sections are rows of cells, divided by hairlines; nothing floats. ---------- */
main section.frame, footer.frame { padding-inline: 0; max-width: var(--max); border-top: 1px solid var(--line); }
.cell { padding: 28px var(--m); }
.kick { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--t70); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.kick i { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
h3 { font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -0.005em; }
.head { padding-block: 72px 56px; }
.head h2 { max-width: 18ch; }
.head > p:last-child { max-width: 34rem; margin-top: 20px; color: var(--t70); font-size: 18px; }
@media (min-width: 900px) { .head { padding-block: 112px 72px; } .cell { padding: 36px 40px; } }

/* the admin page: the real screen, whole */
.showcase { padding: 0 var(--m) 56px; }
.window.admin { margin-top: 0; }
.app.two-col { display: grid; }
.admin-main { min-width: 0; padding: 20px 16px; }
.admin-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; } .admin-title span { color: var(--fa); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.admin-grid { display: grid; gap: 12px; }
.panel { min-width: 0; background: var(--s); border: 1px solid var(--b); border-radius: 8px; overflow: hidden; }
.panel h3 { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--b); font-size: 14px; letter-spacing: 0; } .panel h3 span { padding: 0 7px; border-radius: 99px; background: var(--tx); color: var(--g); font-size: 12px; } .panel h3 small { margin-left: auto; color: var(--fa); font-weight: 400; font-size: 12px; }
.need { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 16px; } .need + .need { border-top: 1px solid #1c1c1c; }
.need > div:not(.acts) { flex: 1 1 220px; min-width: 0; } .need b { display: block; font-weight: 500; } .need small { display: block; color: var(--mu); font-size: 13px; }
.sidebar .count { padding: 0 7px; border-radius: 99px; background: var(--tx); color: var(--g); }
.swap { position: relative; } .swap .before { display: flex; gap: 8px; } .swap .after { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; color: #3fc07a; font-weight: 500; font-size: 13px; white-space: nowrap; opacity: 0; }
.js .in .swap .before { animation: leave 9s var(--ease) 1.2s infinite; } .js .in .swap .after { animation: arrive 9s var(--ease) 1.2s infinite; } .js .in .press { animation: press 9s var(--ease) 1.2s infinite; }
@keyframes press { 0%, 9%, 100% { background: var(--s); transform: none; } 12%, 16% { background: var(--c); transform: scale(0.96); } }
@keyframes leave { 0%, 16% { opacity: 1; } 20%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes arrive { 0%, 18% { opacity: 0; transform: translateX(8px); } 24%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.matrix { width: 100%; border-collapse: collapse; font-size: 13px; }
.matrix th, .matrix td { padding: 10px 8px; border-bottom: 1px solid #1c1c1c; text-align: center; } .matrix tr:last-child > * { border-bottom: 0; }
.matrix thead th { color: var(--mu); font-weight: 500; font-size: 12px; } .matrix th:first-child { padding-left: 16px; text-align: left; font-weight: 500; white-space: nowrap; }
.matrix .i { display: inline-block; vertical-align: middle; } .matrix .y { color: var(--tx); } .matrix .n { color: #555; } .matrix .ask { color: #e5a93b; font-size: 12px; }
.matrix .end { color: #5b9cf5; white-space: nowrap; } .matrix .end small { margin-left: 4px; font-size: 11px; }
.js .matrix td .i { opacity: 0; transform: scale(0.5); } .js .in .matrix td .i { opacity: 1; transform: none; transition: opacity 300ms, transform 400ms var(--ease); }
.js .in .matrix tr:nth-child(1) .i { transition-delay: 0.5s; } .js .in .matrix tr:nth-child(2) .i { transition-delay: 0.7s; } .js .in .matrix tr:nth-child(3) .i { transition-delay: 0.9s; } .js .in .matrix tr:nth-child(4) .i { transition-delay: 1.1s; }
.chart { display: block; width: 100%; height: auto; padding: 8px 8px 4px; }
.chart .grid path { stroke: #1f1f1f; } .chart text { fill: var(--fa); font: 11px var(--font); text-anchor: end; }
.chart .line { fill: none; stroke: #5b9cf5; stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; }
.js .chart .line { stroke-dashoffset: 1; } .js .in .chart .line { stroke-dashoffset: 0; transition: stroke-dashoffset 2200ms var(--ease) 500ms; }
.js .chart .pts { opacity: 0; } .js .in .chart .pts { opacity: 1; transition: opacity 600ms 2200ms; }
.round { display: grid; grid-template-columns: 28px minmax(40px, 1fr) 28px 52px 92px; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #1c1c1c; font-variant-numeric: tabular-nums; }
.round b { font-weight: 500; }
.bar { position: relative; height: 6px; border-radius: 3px; background: #1f1f1f; overflow: hidden; } .bar::after { content: ""; position: absolute; inset: 0; width: var(--v); border-radius: 3px; background: #8a8a8a; transform-origin: 0 50%; }
.bar.ev::after { background: #5b9cf5; } .round .ev { color: #5b9cf5; font-weight: 600; }
.js .bar::after { transform: scaleX(0); } .js .in .bar::after { transform: none; transition: transform 1400ms var(--ease) 400ms; }
.pillx { justify-self: start; padding: 2px 8px; border-radius: 99px; background: #222; font-size: 12px; white-space: nowrap; } .pillx.live { background: #172a1d; color: #3fc07a; }
@media (max-width: 599px) { .swap .after { justify-content: flex-start; } .round { grid-template-columns: 28px minmax(30px, 1fr) 28px 84px; } .round span:nth-child(4) { display: none; } .matrix th:nth-child(5), .matrix td:nth-child(5) { display: none; } }
@media (min-width: 1000px) { .app.two-col { grid-template-columns: 228px minmax(0, 1fr); } .admin-main { padding: 24px 28px 28px; } .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .panel.wide { grid-column: 1 / -1; } }

/* split panels: a drawing in a tinted cell; beside it a label, a heading and three ruled rows */
.split { display: grid; border-top: 1px solid var(--line); }
.art { display: grid; place-items: center; margin: 0; min-height: 300px; background-color: #101010; background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.4px); background-size: 18px 18px; }
.art > svg { width: 100%; max-width: 500px; height: auto; } .pair .art > svg { max-width: 560px; padding: 8px; }
.rows { display: grid; align-content: start; border-top: 1px solid var(--line); }
.lead { padding-block: 40px; } .big { font-size: clamp(26px, 2.9vw, 38px); line-height: 1.08; letter-spacing: -0.03em; max-width: 18ch; } .lead .pill { margin-top: 24px; }
.lead h2 { font-size: clamp(28px, 3.2vw, 42px); max-width: 16ch; }
.say { max-width: 32rem; margin-top: 18px; color: rgba(255, 255, 255, 0.86); font-size: 17px; }
.rowx { border-top: 1px solid var(--line); padding-block: 26px; } .rowx p { margin-top: 6px; color: var(--t70); } .rowx q { color: #fff; font-weight: 600; }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rows { border-top: 0; border-left: 1px solid var(--line); } .split.flip .art { order: 2; } .split.flip .rows { border-left: 0; border-right: 1px solid var(--line); }
  #security .rows { border-left: 0; border-right: 1px solid var(--line); }
}
/* the conversation that plays in the first panel */
.stage { display: flex; flex-direction: column; gap: 10px; width: min(100%, 420px); padding: 20px; background: var(--g); border: 1px solid var(--b); border-radius: 12px; }
.stage .q, .stage .a, .stage .read { margin: 0; } .stage .s4 { margin-top: 14px; }
.pop { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--s); border: 1px solid var(--b); border-radius: 8px; }
.pop .n { color: #5b9cf5; font-weight: 600; font-size: 12px; } .pop > span:nth-child(2) { flex: 1; min-width: 0; } .pop b { display: block; font-weight: 500; } .pop small { display: block; color: var(--mu); font-size: 12px; }
.js .stage [class*=" s"], .js .stage [class^="s"] { opacity: 0; transform: translateY(10px); }
.js .in .stage .s1 { animation: stay 12s var(--ease) 0.3s infinite; } .js .in .stage .s2 { animation: stay 12s var(--ease) 1.3s infinite; } .js .in .stage .s3 { animation: stay 12s var(--ease) 2.3s infinite; } .js .in .stage .s4 { animation: stay 12s var(--ease) 4.6s infinite; } .js .in .stage .s5 { animation: stay 12s var(--ease) 5.6s infinite; }
.js .in .stage .beat { animation: beat 12s var(--ease) 2.2s infinite; }
@keyframes stay { 0% { opacity: 0; transform: translateY(10px); } 5%, 78% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: none; } }
@keyframes beat { 0%, 3%, 12%, 100% { box-shadow: 0 0 0 0 rgba(91, 156, 245, 0); } 6% { box-shadow: 0 0 0 6px rgba(91, 156, 245, 0.35); } }
.mid { fill: rgba(255, 255, 255, 0.72); font: 500 15px var(--font); text-anchor: middle; }
@keyframes flow { to { stroke-dashoffset: -22; } }
@keyframes twinkle { 50% { opacity: 0.18; } }

.pair { display: grid; border-top: 1px solid var(--line); }
.pair article { padding-bottom: 44px; } .pair article + article { border-top: 1px solid var(--line); }
.pair .art { margin: 0 0 28px; border: 1px solid var(--line); min-height: 300px; }
.pair p { margin-top: 8px; max-width: 34rem; color: var(--t70); } .pair .keeps { margin-top: 16px; color: #fff; font-weight: 550; }
@media (min-width: 900px) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pair article + article { border-top: 0; border-left: 1px solid var(--line); } }

/* account pictures */
.pf { width: 28px; height: 28px; flex: none; border-radius: 50%; } .pf.sq { border-radius: 6px; }
.matrix th .pf { width: 20px; height: 20px; margin-right: 8px; vertical-align: -5px; }
.legend { display: flex; align-items: center; gap: 6px; padding: 0 16px 12px; color: var(--mu); font-size: 12px; } .legend i { width: 8px; height: 8px; border-radius: 50%; margin-left: 10px; } .legend i:first-child { margin-left: 0; }
.legend .won, .chart .won { background: #5b9cf5; fill: #5b9cf5; } .legend .lost, .chart .lost { background: #555; fill: #555; }
.chart .rn { text-anchor: middle; }
@keyframes lit { 0%, 14%, 100% { border-color: var(--b); background: var(--s); } 3%, 10% { border-color: #5b9cf5; background: #101826; } }
@keyframes travelpath { from { offset-distance: 0%; } to { offset-distance: 100%; } }

/* your data, your model, your office: the one light band on the page */
main section.band { max-width: none; margin-top: -1px; padding: 0; background: #f2f4f7; color: #0a0a0a; position: relative; z-index: 2; }
.band-in { display: grid; gap: 40px; max-width: var(--max); margin-inline: auto; padding: 72px var(--m); }
.band-in::before, .band-in::after { content: none; height: 10px; background: repeating-linear-gradient(90deg, #0a0a0a 0 1px, transparent 1px 7px); opacity: 0.35; }
.band-in::before { order: -1; } .band-in::after { order: 9; }
.band h2 span { display: block; } .band-in > div > p { max-width: 24rem; margin-top: 20px; color: #5d6167; font-size: 18px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; } .badges li { padding: 7px 14px; border: 1px solid #0a0a0a; border-radius: 4px; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.owns li { padding-block: 22px; border-top: 1px solid #d4d7dc; } .owns li:first-child { padding-top: 0; border-top: 0; } .owns p { margin-top: 6px; color: #5d6167; }
@media (min-width: 1000px) { .band-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 80px; padding-block: 96px; } .band-in::before, .band-in::after { grid-column: 1 / -1; } .band-in { padding-inline: 40px; } }

/* the audit log, writing itself */
.log { width: min(100%, 440px); padding: 18px 20px; background: var(--g); border: 1px solid var(--b); border-radius: 12px; }
.log-head { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--b); font-weight: 600; } .log-head span { margin-left: auto; } .log-head span { color: var(--fa); font-weight: 400; font-size: 12px; }
.log li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid #1c1c1c; } .log time { color: var(--fa); font-variant-numeric: tabular-nums; }
.js .log li { opacity: 0; transform: translateY(8px); } .js .in .log li { animation: stay 14s var(--ease) infinite; }
.js .in .log li:nth-child(2) { animation-delay: 1s; } .js .in .log li:nth-child(3) { animation-delay: 2s; } .js .in .log li:nth-child(4) { animation-delay: 3s; } .js .in .log li:nth-child(5) { animation-delay: 4s; } .js .in .log li:nth-child(6) { animation-delay: 5s; }

/* the close and the colophon */
footer.frame { margin-inline: auto; position: relative; }
.close { display: grid; gap: 24px; justify-items: start; padding-block: 96px; background: radial-gradient(60% 90% at 30% 0%, rgba(91, 156, 245, 0.09), transparent 70%); }
.close h2 { max-width: 13ch; font-size: clamp(40px, 6.4vw, 84px); line-height: 0.96; } .close p { max-width: 30rem; color: var(--t70); font-size: 18px; }
.colophon { display: grid; border-top: 1px solid var(--line); color: var(--t70); font-size: 15px; }
.colophon > * { display: flex; align-items: center; min-height: 72px; padding-block: 12px; border-top: 1px solid var(--line); } .colophon > :first-child { border-top: 0; }
.colophon .brand { color: #fff; } .colophon ul { flex-wrap: wrap; gap: 0 24px; }
@media (min-width: 1000px) { .close { padding-block: 128px; } .colophon { grid-template-columns: auto 1fr auto auto; } .colophon > * { border-top: 0; border-left: 1px solid var(--line); } .colophon > :first-child { border-left: 0; } }

/* ---------- paper: between the hero and the close the page is light, ruled and plain.
   The same components, in the app's light tokens; ink drawings; blue only on evidence and on what moves. ---------- */
.paper { --text: #0a0a0a; --t70: #5d6167; --t60: #5d6167; --t40: #6b6b6b; --line: #d5d9df; --accent: #1d5fbf; --accent-soft: #e3ecfa;
  --ico-bg: #fff; --ico-bd: rgba(10, 10, 10, 0.35); --ico-fg: #0a0a0a; --lit-bg: #0a0a0a; --lit-fg: #fff;
  position: relative; z-index: 2; background: #f2f4f7; color: var(--text); }
.paper .ui, .paper .window { --g: #f2f4f7; --s: #ffffff; --r: #eef0f3; --b: #e3e6ea; --c: #d4d7dc; --tx: #0a0a0a; --mu: #5d6167; --fa: #6b6b6b; }
.paper .kick { color: #5d6167; } .paper .head > p:last-child, .paper .say { color: #3d4147; }
.paper .pill { background: #0a0a0a; color: #fff; } .paper .pill:hover { background: #2a2a2a; }
.paper .window { border-color: #cfd4da; box-shadow: 0 30px 70px -40px rgba(10, 20, 40, 0.35); }
.paper .titlebar { background: #e9ecf0; }
.paper .mk { color: #0a0a0a; } .paper .sidebar li.on { background: #e4e7ec; }
.paper .need + .need, .paper .matrix th, .paper .matrix td, .paper .round, .paper .log li { border-color: var(--r); }
.paper .matrix .n { color: #6b6b6b; } .paper .matrix .ask { color: #92400e; } .paper .matrix .end, .paper .round .ev, .paper .pop .n { color: #1d5fbf; }
.paper .swap .after, .paper .read .i { color: #247b50; }
.paper .chart .grid path { stroke: var(--r); } .paper .chart .line { stroke: #1d5fbf; }
.paper .legend .won, .paper .chart .won { background: #1d5fbf; fill: #1d5fbf; } .paper .legend .lost, .paper .chart .lost { background: #b0b5bb; fill: #b0b5bb; }
.paper .bar { background: #e4e7ec; } .paper .bar::after { background: #9aa0a6; } .paper .bar.ev::after { background: #1d5fbf; }
.paper .pillx { background: #eeeeee; color: #3d3d3d; } .paper .pillx.live { background: #dcfae5; color: #04250e; }
.paper .cite { background: #e8eef8; color: #1d5fbf; } .paper mark { background: #e3ecfa; color: #0a0a0a; }
.paper .rowx q, .paper .pair .keeps { color: #0a0a0a; }
/* drawings sit on white, on a faint ruled ground, in ink */
.paper .art { background-color: #fff; background-image: linear-gradient(rgba(10, 10, 10, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 10, 10, 0.045) 1px, transparent 1px); background-size: 24px 24px; }
.paper .pair .art { border-color: var(--line); }
.paper .band { background: #fff; }
/* an institution's page: small, even type; statements, not slogans; numbered points; figures labelled */
.paper { font-size: 15px; counter-reset: fig sec; }
.paper .head { padding-block: 56px 36px; }
.paper .head h2, .paper .head > p:last-child { display: inline; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.25; letter-spacing: -0.02em; margin: 0; }
.paper .head h2 { font-weight: 650; } .paper .head > p:last-child { color: #5d6167; font-weight: 400; }
.paper .head .kick { margin-bottom: 14px; }
.paper .kick { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; letter-spacing: 0.06em; }
.paper .big, .paper .lead h2 { font-size: clamp(20px, 1.9vw, 24px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 650; max-width: 22ch; }
.paper .lead { padding-block: 28px; } .paper .say { font-size: 15px; margin-top: 12px; }
.paper h3 { font-size: 15px; letter-spacing: 0; }
.paper .rows { counter-increment: sec; counter-reset: pt; }
.paper .rowx { counter-increment: pt; display: grid; grid-template-columns: 34px minmax(0, 1fr); padding-block: 18px; }
.paper .rowx::before { content: counter(sec) "." counter(pt); grid-row: span 2; color: #6b6b6b; font-size: 13px; font-variant-numeric: tabular-nums; line-height: 1.55; }
.paper .rowx p { margin-top: 2px; font-size: 14.500px; } .paper .pair p { font-size: 14.500px; }
.paper .art { position: relative; counter-increment: fig; }
.paper .art::before { content: "FIG. " counter(fig); position: absolute; top: 12px; left: 16px; color: #6b6b6b; font: 12px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; }
.paper .lead .pill { margin-top: 18px; }
.paper .band h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.03em; } .paper .band-in > div > p { font-size: 16px; } .paper .owns h3 { font-size: 15px; }
.paper .badges li { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; border-radius: 2px; }

/* the whole system: lists on either side of one layered drawing; each line opens to one sentence */
.whole { display: grid; border-top: 1px solid var(--line); }
.whole .col { display: grid; gap: 36px; align-content: center; }
.whole .art { min-height: 380px; border-block: 1px solid var(--line); }
.grp h3 { font-size: 20px; letter-spacing: -0.015em; } .grp > p { margin: 6px 0 10px; color: var(--t70); font-size: 14.500px; }
.grp details { border-top: 1px solid var(--line); } .grp details:last-child { border-bottom: 1px solid var(--line); }
.grp summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; cursor: pointer; list-style: none; font-weight: 500; }
.grp summary::-webkit-details-marker { display: none; }
.grp summary::after { content: ""; width: 11px; height: 11px; flex: none; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; transition: transform 200ms var(--ease); }
.grp details[open] summary::after { transform: rotate(45deg); }
.grp summary:hover { color: #1d5fbf; }
.grp details p { padding: 0 24px 14px 0; color: var(--t70); font-size: 14.500px; }
@media (min-width: 1000px) { .whole { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); } .whole .art { border-block: 0; border-inline: 1px solid var(--line); } }
.iso { max-width: 600px; } .stackfig { max-width: 560px; }
.iso .face { fill: #fff; stroke: rgba(10, 10, 10, 0.6); stroke-width: 1.2; stroke-linejoin: round; }
.iso .edge { fill: none; stroke: rgba(10, 10, 10, 0.5); stroke-width: 1; stroke-linejoin: round; }
.iso .pgrid path { fill: none; stroke: rgba(10, 10, 10, 0.09); stroke-width: 1; }
.iso .pillar { stroke: rgba(10, 10, 10, 0.22); stroke-width: 1; stroke-dasharray: 2 4; }
.iso .bx polygon { fill: #fff; stroke: rgba(10, 10, 10, 0.6); stroke-width: 0.9; stroke-linejoin: round; } .iso .bx .sd { fill: #eef0f3; } .iso .bx .sd.r { fill: #e3e6ea; }
.iso .bx .ly { fill: none; stroke: rgba(10, 10, 10, 0.3); stroke-width: 0.7; }
.iso .scr polygon, .iso .post polygon { fill: #0a0a0a; stroke: #0a0a0a; }
.iso .cond { stroke: #1d5fbf; stroke-width: 1.2; stroke-dasharray: 3 5; animation: flow 1.4s linear infinite; }
.iso .mach polygon { stroke: #1d5fbf; } .iso .mkb { fill: #0a0a0a; } .iso .mkd { fill: #1d5fbf; }
.iso .tile polygon { stroke: rgba(10, 10, 10, 0.45); stroke-width: 0.7; } .iso .tile.lit .tp { fill: #1d5fbf; stroke: #1d5fbf; }
.js .in .iso .tile.lit .tp { animation: twinkle 3.6s ease-in-out infinite; }
.iso .p2 .face { fill: #e8eef8; stroke: #1d5fbf; } .iso .p2 .pgrid path { stroke: rgba(29, 95, 191, 0.16); }
.iso .spine { stroke: rgba(29, 95, 191, 0.5); stroke-width: 1.2; stroke-dasharray: 3 6; } .iso .pk { fill: #1d5fbf; offset-rotate: 0deg; animation: travelpath 3.4s ease-in-out infinite alternate; }
.iso .lead { stroke: rgba(10, 10, 10, 0.4); } .iso .tag { fill: #3d4147; font: 500 13px var(--font); }
.iso .tag, .stackfig .tag { fill: #3d4147; font: 500 10.500px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.iso .it { fill: #3d4147; font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.08em; }
.iso .chipt rect { fill: #0a0a0a; } .iso .chipt text { fill: #fff; font: 500 10.500px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; }
.iso .lead { stroke: rgba(10, 10, 10, 0.45); stroke-dasharray: 1.5 3; }
.iso .drop { fill: none; stroke-width: 1.1; stroke-dasharray: 2 4; } .iso .drop.g { stroke: rgba(10, 10, 10, 0.28); } .iso .drop.b { stroke: #1d5fbf; }
.iso .arc { fill: none; stroke: #1d5fbf; stroke-width: 1.2; } .iso .orbit2 { stroke: rgba(29, 95, 191, 0.3); }
.iso .pk.g { fill: rgba(10, 10, 10, 0.5); }
.iso .stub { stroke: #1d5fbf; stroke-width: 1.2; stroke-dasharray: 3 5; } .iso .bar { stroke: #0a0a0a; stroke-width: 2.5; stroke-linecap: square; }
.iso .wire polygon { fill: none; stroke-dasharray: 2 3; }
.iso .p2 .face { fill: #e8eef8; stroke: #1d5fbf; } .iso .p2 .pgrid path { stroke: rgba(29, 95, 191, 0.16); }
.iso.f-read, .iso.f-int, .iso.f-loop { max-width: 520px; }
.iso .tag.b { fill: #0a0a0a; font-weight: 600; }
.iso .tag.end { text-anchor: end; } .iso .tag.mid { text-anchor: middle; }
.iso .pk { animation-duration: 2.6s; animation-direction: normal; animation-timing-function: linear; } .stackfig .pk { animation: travelpath 3.4s ease-in-out infinite alternate; }
.iso .pk.slow { animation-duration: 9s; }
.iso .ghost .face { fill: none; stroke-dasharray: 4 5; } .iso .ghost .pgrid, .iso .ghost .edge { display: none; }
.iso .orbit2 { fill: none; stroke: rgba(29, 95, 191, 0.55); stroke-width: 1.2; stroke-dasharray: 3 6; }
.iso .ans .tp { fill: #e8eef8; stroke: #1d5fbf; }
.js .in .iso .st .tp, .js .in .iso .plate.st .face { animation: litface 9s var(--ease) calc(var(--n) * 1.5s) infinite; } .js .in .iso.steps4 .plate.st .face { animation-duration: 6s; }
@keyframes litface { 0%, 22%, 100% { fill: #fff; } 4%, 16% { fill: #cfe0fb; } }
/* the lists open and close smoothly where the browser can animate to a natural height; elsewhere the line fades in */
.grp { interpolate-size: allow-keywords; }
.grp details::details-content { height: 0; overflow: clip; transition: height 320ms var(--ease), content-visibility 320ms allow-discrete; }
.grp details[open]::details-content { height: auto; }
.grp details[open] p { animation: openline 320ms var(--ease); }
@keyframes openline { from { opacity: 0; transform: translateY(-6px); } }
.js .iso .plate { opacity: 0; transform: translateY(-26px); } .js .in .iso .plate { opacity: 1; transform: none; transition: opacity 600ms var(--ease), transform 900ms var(--ease); }
.js .in .stackfig .p4 { transition-delay: 0.1s; } .js .in .stackfig .p3 { transition-delay: 0.35s; } .js .in .stackfig .p2 { transition-delay: 0.6s; } .js .in .stackfig .p1 { transition-delay: 0.85s; }
.blend { height: 72px; background: linear-gradient(#0c0c0c, #3a3c40 35%, #b9bcc1 70%, #f2f4f7); position: relative; z-index: 2; margin: 0 0 -1px; }
.blend.up { background: linear-gradient(#f2f4f7, #b9bcc1 30%, #3a3c40 65%, #0c0c0c); margin: -1px 0 0; }
/* the last light section closes with its own rule and some paper below it, before the fade begins */
.paper { padding-bottom: 64px; } .paper > section:last-child { border-bottom: 1px solid var(--line); }

/* ---------- the demo page: the hero's ground, a statement on the left, the form on the right ---------- */
.links a[aria-current="page"] { color: #fff; }
.demo { position: relative; z-index: 2; display: grid; gap: 40px; max-width: var(--max); margin-inline: auto; padding: 32px var(--m) 72px; }
.demo h1 { font-size: clamp(36px, 4.4vw, 58px); line-height: 0.98; max-width: 12ch; }
.demo .lede { margin: 18px 0 0; max-width: 26rem; text-align: left; }
.next { display: grid; gap: 0; margin-top: 28px; max-width: 28rem; counter-reset: n; }
.next li { display: grid; grid-template-columns: 34px 1fr; padding: 13px 0; border-top: 1px solid var(--line); counter-increment: n; }
.next li::before { content: "0" counter(n); grid-row: span 2; color: var(--t60); font: 12px/1.7 ui-monospace, "SF Mono", Menlo, monospace; }
.next b { font-weight: 600; } .next span { color: var(--t70); font-size: 15px; text-shadow: 0 0 10px #0c0c0c; }
.form { position: relative; display: grid; gap: 14px; align-content: start; padding: 22px; background: rgba(14, 16, 20, 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5); }
.two-up { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; } .field > span { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.9); }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 9px 13px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; color: #fff; font: 16px/1.4 var(--font); transition: border-color 150ms, background-color 150ms; }
.field textarea { resize: vertical; } .field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 14px) 20px; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: #0a0a0a; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.34); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; background: rgba(255, 255, 255, 0.08); }
.err { display: none; color: #ff9aa8; font-size: 13px; }
.field :user-invalid { border-color: #e5566f; } .field:has(:user-invalid) .err { display: block; }
button.pill { appearance: none; -webkit-appearance: none; }
.form .pill { display: flex; box-sizing: border-box; justify-self: stretch; justify-content: center; width: 100%; min-height: 48px; border: 0; cursor: pointer; font: 550 16px var(--font); }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.demo-page .foot, .docs-page .foot { position: relative; z-index: 2; background: #0c0c0c; }
.demo-page #ribbon, .demo-page .grain { position: fixed; height: 100vh; min-height: 720px; transform: translate(26%, 34%); -webkit-mask-image: none; mask-image: none; }
.demo-page { min-height: 100vh; }
@media (max-width: 999px) { .demo-page #ribbon, .demo-page .grain { transform: translate(30%, 52%); } }
@media (min-width: 620px) { .two-up { grid-template-columns: 1fr 1fr; } .form { padding: 26px 28px; } }
@media (min-width: 1000px) { .demo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; padding-block: 36px 72px; min-height: calc(100vh - 76px); align-items: center; } }

/* ---------- the docs: a bar, a side list, the article, and what is on the page ---------- */
.docs-page::before, .docs-page::after { content: none; }
.docbar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px var(--m); background: rgba(12, 12, 12, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.docbar .brand span { margin-left: 6px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--t70); font: 500 12px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.docbar nav { display: flex; align-items: center; gap: 20px; color: var(--t70); font-size: 14px; } .docbar nav a:first-child { display: none; min-height: 44px; align-items: center; } .docbar nav a:first-child:hover { color: #fff; }
.docwrap { display: grid; max-width: 1280px; margin-inline: auto; padding-inline: var(--m); }
.docside, .doctoc { display: none; font-size: 14px; }
.docside p, .doctoc p { margin: 28px 0 8px; color: #fff; font-weight: 600; } .docside p:first-child, .doctoc p:first-child { margin-top: 0; }
.docside a, .doctoc a { display: flex; align-items: center; min-height: 34px; padding: 0 10px; margin-left: -10px; border-radius: 6px; color: var(--t70); transition: color 150ms, background-color 150ms; }
.docside a:hover, .doctoc a:hover { color: #fff; } .docside a[aria-current="page"] { background: rgba(91, 156, 245, 0.14); color: #a9ccff; }
.doc { min-width: 0; padding-block: 40px 96px; }
.crumb { color: #a9ccff; font-size: 14px; font-weight: 500; } .doc h1 { margin-top: 8px; font-size: clamp(32px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.doclede { margin-top: 10px; color: var(--t70); font-size: 19px; }
.doc h2 { margin: 56px 0 14px; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; scroll-margin-top: 84px; }
.doc p, .doc li { color: rgba(255, 255, 255, 0.8); line-height: 1.65; } .doc p + p { margin-top: 14px; } .doc b { color: #fff; font-weight: 600; }
.callout { margin-top: 28px; padding: 14px 16px; border: 1px solid rgba(91, 156, 245, 0.4); border-left-width: 3px; border-radius: 6px; background: rgba(91, 156, 245, 0.08); font-size: 15px; }
.figcard { margin: 24px 0 0; padding: 20px; background: #f2f4f7; border-radius: 12px; overflow-x: auto; } .figcard svg { display: block; width: 100%; min-width: 620px; height: auto; }
.arch .zone { fill: #fff; stroke: rgba(10, 10, 10, 0.3); stroke-dasharray: 4 5; } .arch .zl { fill: #5d6167; font: 500 10.500px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.08em; }
.arch .blk rect { fill: #fff; stroke: rgba(10, 10, 10, 0.5); } .arch .blk.main rect { fill: #e8eef8; stroke: #1d5fbf; }
.arch .blk text { fill: #0a0a0a; font: 600 13px var(--font); text-anchor: middle; } .arch .blk .s { fill: #5d6167; font-weight: 400; font-size: 12px; }
.arch .ar, .arch .ln { fill: none; stroke: #1d5fbf; stroke-width: 1.3; } .arch .ln { stroke: rgba(10, 10, 10, 0.4); }
.doc table { width: 100%; margin: 8px 0 16px; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: rgba(255, 255, 255, 0.8); } .doc thead th { color: #fff; font-weight: 600; } .doc tbody th { color: #fff; font-weight: 600; white-space: nowrap; }
.steps-doc { display: grid; gap: 12px; counter-reset: n; } .steps-doc li { display: grid; grid-template-columns: 30px 1fr; counter-increment: n; } .steps-doc li::before { content: counter(n); color: #a9ccff; font-weight: 600; font-variant-numeric: tabular-nums; }
.steps-doc li > b { display: contents; }
.doclist { display: grid; gap: 10px; margin-top: 12px; } .doclist li { padding-left: 18px; position: relative; } .doclist li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 5px; height: 5px; border-radius: 1px; background: #5b9cf5; }
.docs-page .foot { max-width: 1280px; }
@media (min-width: 700px) { .docbar nav a:first-child { display: inline-flex; } }
@media (min-width: 960px) { .docwrap { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; } .docside { display: block; position: sticky; top: 64px; align-self: start; max-height: calc(100vh - 64px); overflow: auto; padding-block: 40px; } }
@media (min-width: 1240px) { .docwrap { grid-template-columns: 220px minmax(0, 1fr) 200px; } .doctoc { display: block; position: sticky; top: 64px; align-self: start; padding-block: 40px; } }

@media (prefers-reduced-motion: reduce) {
  .iso .pk { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
