/* The site's styles (opencoremes.com), shared by every page; built pages link it (site/src/build.mjs). */
:root {
  --bg: #f6f7f9; --panel: #ffffff; --ink: #141821; --muted: #5b6474; --line: #e2e6ec;
  --accent: #2b303a; --accent-ink: #ffffff; --accent-soft: #eceef1; --ok: #137a3d; --warn: #b54708; --bad: #b42318;
  --glow: rgba(217, 119, 6, .20); --glow-soft: rgba(194, 99, 12, .11); --dots: rgba(43, 48, 58, .16); --mx: 50%; --my: -40%;
  --radius: 14px; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 32px rgba(16, 24, 40, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1218; --panel: #171b23; --ink: #e6e8ee; --muted: #98a2b3; --line: #2a303b;
    --accent: #d5d9e0; --accent-ink: #0f1218; --accent-soft: #262c37; --ok: #4ade80; --warn: #f5b76b; --bad: #f97066;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    --glow: rgba(245, 158, 11, .14); --glow-soft: rgba(251, 146, 60, .08); --dots: rgba(255, 255, 255, .09);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); text-underline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* header */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; }
.brand .version { font-weight: 500; font-size: 13px; color: var(--muted); letter-spacing: 0; align-self: flex-end; padding-bottom: 2px; }
nav.links { display: flex; gap: 16px; margin-left: auto; white-space: nowrap; } /* 16px: room for Docs beside the ten pages */
nav.links a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav.links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--panel); }
.btn.ghost:hover { border-color: var(--accent); }
.in-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -12px 0 24px; font-size: 14px; color: var(--muted); }
.in-demo a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font-weight: 600; text-decoration: none; }
.in-demo a:hover { border-color: var(--accent); }
.in-demo .icon { width: 14px; height: 14px; }
header.top .btn { padding: 8px 14px; font-size: 14px; }
header.top .btn { white-space: nowrap; }
@media (max-width: 420px) { .brand { font-size: 17px; gap: 8px; } .brand svg { width: 26px; height: 26px; } .brand .version { display: none; } header.top .btn { padding: 7px 10px; } }
@media (max-width: 350px) { .brand { white-space: normal; line-height: 1.1; } }
/* Every section and the other sites, in a menu opened without a script (glow.js only closes it once a
   section is picked); where the bar has no room for its few links, the menu alone. */
.menu { display: block; position: relative; }
.menu nav { max-height: calc(100vh - 90px); overflow-y: auto; }
.menu nav hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu summary { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .icon { width: 20px; height: 20px; }
.menu[open] summary { border-color: var(--accent); }
.menu nav { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; display: grid; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.menu nav a { padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 16px; }
.menu nav a:hover, .menu nav a:focus-visible { background: var(--accent-soft); }

/* hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -.025em; margin: 18px 0 18px; }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 14px; margin-top: 14px; }
.h1-second { display: block; color: var(--muted); }
.proof { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.proof li { display: inline-flex; align-items: center; gap: 7px; }
.proof .icon { color: var(--accent); }
/* The hero's messages (index.html, hero.js): the headline rotates through the list beside it, every seven seconds,
   under the pointer or a focus held still, with a button to pause and dots to pick one; with less motion asked
   for it does not move by itself. Three lines are reserved so the page does not jump between messages. */
.hero-messages h1 { min-height: 4.4em; transition: opacity .26s ease, transform .26s ease; }
.hero-messages h1.is-changing { opacity: 0; transform: translateY(6px); }
.hero-controls { display: flex; align-items: center; gap: 12px; margin: -4px 0 18px; }
.hero-dots { display: flex; gap: 7px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid var(--muted); background: var(--panel); cursor: pointer; }
.hero-dots button[aria-current] { background: var(--accent); border-color: var(--accent); }
.hero-dots button:focus-visible, .hero-pause:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-pause { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); cursor: pointer; }
.hero-pause:hover { border-color: var(--accent); }
.hero-pause .icon { width: 13px; height: 13px; }
@media (max-width: 1100px) { .hero-messages h1 { min-height: 5.5em; } }
@media (max-width: 520px) { .hero-messages h1 { min-height: 5.4em; } }
@media (prefers-reduced-motion: reduce) { .hero-messages h1 { transition: none; } }

/* the product, drawn */
.mock { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 14px; font-size: 14px; }
.mock .bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mock .kind { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mock h3 { margin: 2px 0 0; font-size: 18px; }
.stages { display: flex; gap: 0; }
.stages span { padding: 4px 10px; font-size: 12px; border: 1px solid var(--line); margin-left: -1px; color: var(--muted); }
.stages span:first-child { border-radius: 999px 0 0 999px; margin-left: 0; }
.stages span:last-child { border-radius: 0 999px 999px 0; }
.stages span.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.change-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.change-row .muted { color: var(--muted); }
.change-row b { font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); white-space: nowrap; }
.chip.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.chip.wait { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.why { padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.route { display: flex; gap: 8px; flex-wrap: wrap; }

/* sections */
section { padding: 64px 0; }
section[id] { scroll-margin-top: 72px; }
section.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 12px; }
.sub { color: var(--muted); font-size: 18px; max-width: 42em; margin: 0 0 36px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } }
.store-note { margin: 4px 0 16px; font-size: 15px; color: var(--muted); }
.store-note code { font-size: 13px; overflow-wrap: anywhere; }
.custom-note { margin-top: 12px; }
.contacts { display: flex; flex-wrap: wrap; gap: 10px; }
.learn .grid3 .card .icon { color: var(--accent); }
.admin-tools .card .icon { color: var(--accent); }
.admin-tools .card p a { white-space: nowrap; }
.learn .cta { margin-top: 28px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
section.alt .card { background: var(--bg); }
.card .icon { width: 30px; height: 30px; color: var(--accent); }
.card h3 { margin: 14px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.suite-list { margin: 14px 0 0; padding: 0; list-style: none; font-size: 15px; }
.suite-list li { padding: 5px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
small.new { flex: none; padding: 1px 7px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* live data */
.live .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.screens { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
/* The same lot at three stations, each in its reader's language: stacked, a step apart. */
.screens.langs { grid-template-columns: 1fr; gap: 14px; max-width: 380px; }
.screens.langs .screen:nth-child(2) { transform: translateX(32px); }
.screens.langs .screen:nth-child(3) { transform: translateX(64px); }
@media (max-width: 620px) { .screens.langs .screen:nth-child(n) { transform: none; } }
.screen { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; font-size: 13.5px; display: grid; gap: 8px; }
.screen .where { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.screen .on-air { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); letter-spacing: 0; text-transform: none; font-size: 12px; }
.screen .on-air .icon { width: .7em; height: .7em; animation: beat 2s ease-in-out infinite; }
@keyframes beat { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .screen .on-air .icon, .sync-line { animation: none !important; } }
.screen h4 { margin: 0; font-size: 16px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.kv dd.changed { color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 0 6px; justify-self: start; }
.screen .who { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 5px; }
.sync-line { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); animation: ping 2.4s ease-out infinite; }
.sync-line .icon { width: 22px; height: 22px; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 35%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }
.live-points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin: 0; padding: 0; }
.live-points li { list-style: none; }
.live-points b { display: block; margin-bottom: 2px; }
.live-points span { color: var(--muted); font-size: 16px; }

/* AI */
.ai .wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.ai-points { display: grid; gap: 18px; margin: 0; padding: 0; }
.ai-points li { list-style: none; display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.ai-points .icon { width: 26px; height: 26px; color: var(--accent); margin-top: .1em; }
.ai-points b { display: block; }
.ai-points span { color: var(--muted); font-size: 16px; }
.floor-sec .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.fl-mock { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 12px; font-size: 13px; }
.fl-mock .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); }
.fl-mock .head b { color: var(--ink); font-size: 15px; }
/* A label as its design draws it: paper stays white in the dark set too. */
.label-shot { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
/* (An image's own width must not widen its column: the text beside it keeps its half.) */
.floor-sec .wrap > * { min-width: 0; }
.fl-floor { position: relative; aspect-ratio: 16 / 9; border: 2px solid var(--line); border-radius: 8px; background: var(--panel); overflow: hidden; }
.fl-aisle { position: absolute; left: 6%; right: 6%; top: 42%; height: 16%; border: 2px dashed var(--line); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.fl-tool { position: absolute; width: 13%; aspect-ratio: 4 / 3; border: 1.5px solid var(--muted); border-radius: 4px; background: var(--accent-soft); }
.fl-tool::before { content: ""; position: absolute; left: 12%; top: 26%; width: 42%; height: 48%; border-radius: 2px; background: var(--line); }
.fl-tool::after { content: ""; position: absolute; right: 12%; top: 16%; width: 22%; height: 68%; border-radius: 2px; background: var(--muted); opacity: .55; }
.fl-tool i { position: absolute; right: -5px; top: -5px; width: 12px; height: 12px; border-radius: 3px; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--ink); z-index: 1; }
.fl-tool span { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 2px; font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.fl-run { background: var(--ok); } .fl-idle { background: #2a9d8f; } .fl-pm { background: var(--warn); } .fl-down { background: var(--bad); }
.fl-tool.is-down { border-color: var(--bad); }
.fl-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); }
.fl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fl-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.fl-legend b { color: var(--ink); font-weight: 600; }
.ver-sec .wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
/* (A long path or token in a row, /svc/v1/move_in/preview, wraps rather than widening the page on a phone.) */
.ver-sec .wrap > * { min-width: 0; }
.ver-list .what, .points span { min-width: 0; overflow-wrap: anywhere; }
.ver-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ver-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.ver-list .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.ver-list .what { color: var(--ink); }
.ver-list .what small { display: block; color: var(--muted); font-size: 12px; }
.ver-list .tag { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.ver-list .tag.live { color: var(--ok); border-color: var(--ok); }
.ver-list .tag.test { color: var(--warn); border-color: var(--warn); }
.ver-list li.was { opacity: .72; }
.ver-list .tag.bad { color: var(--bad); border-color: var(--bad); }
.ver-list .int-x, .ver-list .int-ok { display: inline-flex; }
.ver-list .int-x .icon { color: var(--bad); width: 16px; height: 16px; }
.ver-list .int-ok .icon { color: var(--ok); width: 16px; height: 16px; }
.chat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 12px; font-size: 14.5px; }
.chat .head { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.chat .head .icon { color: var(--accent); }
.msg { padding: 10px 12px; border-radius: 12px; max-width: 92%; }
.msg.me { justify-self: end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.msg.ai { background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.ai ul { margin: 6px 0 0; padding-left: 18px; }
.msg.ai code { font-size: 13px; }
.drafted { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }

/* rules */
.rules .wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.rule-mock { display: grid; gap: 14px; }
.obj { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; font-size: 14px; display: grid; gap: 10px; }
.obj .kind { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.obj .parts { display: flex; flex-wrap: wrap; gap: 6px; }
.obj .parts span { padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--muted); }
.obj .parts span.on { color: var(--accent); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); font-weight: 600; }
.obj pre { margin: 0; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; }
.obj pre .c { color: var(--muted); }
.obj pre .k { color: var(--accent); }
.runs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.run { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font-size: 13.5px; display: grid; gap: 8px; align-content: start; }
.run .kind { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.run .field { border: 1px solid color-mix(in srgb, var(--warn) 55%, var(--line)); border-radius: 8px; padding: 6px 10px; display: flex; justify-content: space-between; }
.run .warn-text { color: var(--warn); font-size: 12.5px; display: flex; gap: 6px; align-items: flex-start; }
.run .refused { color: var(--bad); font-size: 12.5px; display: flex; gap: 6px; align-items: flex-start; }
.run .icon { width: 14px; height: 14px; flex: none; margin-top: .15em; }
.points { display: grid; gap: 18px; margin: 0; padding: 0; }
.points li { list-style: none; display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.points .icon { width: 26px; height: 26px; color: var(--accent); margin-top: .1em; }
.points b { display: block; }
.points span { color: var(--muted); font-size: 16px; }

/* scale */
.scale-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.scale-grid .card ul { margin: 12px 0 0; padding: 0; }
.scale-grid .card li { list-style: none; display: flex; gap: 10px; margin: 0 0 10px; color: var(--muted); font-size: 16px; }
.scale-grid .card li .icon { width: 18px; height: 18px; color: var(--ok); margin-top: .2em; flex: none; }
.open-grid .card ul { margin: 12px 0 0; padding: 0; }
.open-grid .card li { list-style: none; display: flex; gap: 10px; margin: 0 0 10px; color: var(--muted); font-size: 16px; }
.open-grid .card li .icon { width: 18px; height: 18px; color: var(--ok); margin-top: .2em; flex: none; }
.open-grid .card li.planned .icon { color: var(--warn); }
.open-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.open-legend span { display: inline-flex; gap: 6px; align-items: center; }
.open-legend .icon { width: 16px; height: 16px; color: var(--ok); }
.open-legend .planned .icon { color: var(--warn); }
.open-principles { margin-top: 28px; }
.cluster { display: grid; grid-template-columns: auto auto 1fr auto auto; gap: 18px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
section.alt .cluster { background: var(--bg); }
.cluster .node { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13px; text-align: center; background: var(--panel); }
.cluster .node b { display: block; font-size: 14px; }
.cluster .node small { color: var(--muted); }
.cluster .nodes { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; position: relative; }
.cluster .nodes .node { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.cluster .nodes .node.new { border-style: dashed; color: var(--muted); }
.cluster .to { width: 20px; height: 20px; color: var(--muted); justify-self: center; }
.cluster .bus { grid-column: 1 / -1; text-align: center; font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; justify-content: center; }
.cluster .bus .icon { color: var(--accent); width: 16px; height: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.stat b { display: block; font-size: 26px; letter-spacing: -.02em; color: var(--accent); }
.stat span { color: var(--muted); font-size: 15px; }
.measured { color: var(--muted); font-size: 13px; margin: 14px 0 0; }

/* juris */
.juris .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.stack { display: grid; gap: 10px; }
.layer { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; display: grid; gap: 8px; }
section.alt .layer { background: var(--bg); }
.layer .kind { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.layer .kind em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--accent); }
.layer pre { margin: 0; font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
.layer pre .c { color: var(--muted); }
.layer pre .k { color: var(--accent); }
.layer .patch { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.layer .patch .was { color: var(--muted); text-decoration: line-through; }
.layer .patch .now { color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 0 6px; font-weight: 600; }
.stack .down { justify-self: center; width: 18px; height: 18px; color: var(--muted); transform: rotate(90deg); }

/* models, not modules */
.models .card ul { margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.models .card li { list-style: none; display: grid; grid-template-columns: 76px 1fr; gap: 10px; font-size: 15px; color: var(--muted); }
.models .card li b { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--text, inherit); font-weight: 600; padding-top: .25em; }
.models .card { display: flex; flex-direction: column; }
.models .card ul { flex: 1; align-content: start; }
.models .made { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.models .made span { font-size: 12px; padding: 2px 9px; border-radius: 999px; color: var(--accent); background: var(--accent-soft); }
.models .card h3 small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.models .after { margin: 24px 0 0; color: var(--muted); font-size: 16px; display: flex; gap: 10px; align-items: flex-start; }
.models .after .icon { color: var(--ok); flex: none; margin-top: .25em; }

/* the flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.flow li { list-style: none; position: relative; padding: 0 18px 0 0; }
.flow li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 14px; }
.flow li::after { content: ""; position: absolute; top: 17px; left: 44px; right: 8px; height: 2px; background: var(--line); }
.flow li:last-child::after { display: none; }
.flow h3 { margin: 0 0 6px; font-size: 18px; }
.flow p { margin: 0; color: var(--muted); font-size: 15.5px; }
.flow-wrap { padding: 0; margin: 0; }
.flow.six { grid-template-columns: repeat(6, 1fr); }

/* real screenshots, from the public demo */
.shot { margin: 0; }
.shot .frame { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; }
/* A screenshot zooms in, without a script: each is a link to its own large view (:target), and the
   large view a link back. */
.shot a.frame { display: block; position: relative; cursor: zoom-in; color: inherit; }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); opacity: 0; transition: opacity .15s; }
.zoom-hint .icon { width: 18px; height: 18px; }
.shot a.frame:hover .zoom-hint, .shot a.frame:focus-visible .zoom-hint { opacity: 1; }
.lightbox { display: none; position: fixed; inset: 0; z-index: 100; padding: 3vh 3vw; background: #0b0d11; flex-direction: column; align-items: center; justify-content: center; gap: 12px; cursor: zoom-out; text-decoration: none; }
.lightbox:target { display: flex; }
.lightbox picture, .lightbox img { display: block; max-width: 100%; max-height: 86vh; width: auto; height: auto; }
.lightbox img { border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #fff; }
.lb-cap { max-width: 960px; color: #d5d9e0; font-size: 14px; text-align: center; }
.lb-cap b { color: #fff; }
.lb-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; }
.lb-close .icon { width: 20px; height: 20px; }
.shot figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }
.shot figcaption b { color: var(--ink); font-weight: 600; }
.shot.wide { margin-bottom: 32px; }
.shots2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.flows .grid3 .card .icon { color: var(--accent); }
.flows .kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.flows .kinds span { font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.guides .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
#regulated .shot { margin-top: 36px; }

/* list */
.checks { columns: 2; column-gap: 40px; padding: 0; margin: 0; }
.checks li { list-style: none; display: flex; gap: 10px; align-items: flex-start; break-inside: avoid; margin: 0 0 14px; }
.checks .icon { color: var(--ok); margin-top: .25em; }
.checks li.planned .icon { color: var(--warn); }

/* editions */
.editions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.edition .contact, .edition .source { margin-top: 18px; }
.edition { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--panel); }
section.alt .edition { background: var(--bg); }
.edition.suite { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.edition h3 { margin: 0 0 4px; font-size: 21px; }
.edition .tag { color: var(--muted); margin: 0 0 18px; }
.edition ul { padding: 0; margin: 0; }
.edition li { list-style: none; display: flex; gap: 10px; margin: 0 0 10px; }
.edition li .icon { color: var(--accent); margin-top: .25em; }

/* Suites as bricks on the core: the community edition the baseplate, its open contracts the studs, each
   suite a brick that snaps on and comes off without changing it. Studs are domes drawn by a gradient. */
.lego { max-width: 1120px; margin: 0 0 44px; padding-top: 72px; }
.lego-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 18px 12px; padding: 0 22px; }
.brick { --b: #b45309; position: relative; flex: 1 1 140px; min-height: 96px; display: flex; align-items: center; gap: 10px; padding: 14px 18px 20px; border-radius: 6px; background: var(--b); color: #fff; font-size: 16px; line-height: 1.3; box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 18px -12px rgba(0, 0, 0, .45); transition: transform .2s ease; }
.brick::before { content: ""; position: absolute; left: 8px; right: 8px; top: -11px; height: 11px; background: radial-gradient(ellipse 13px 11px at 50% 100%, var(--b) 95%, transparent 100%) 0 0 / 42px 11px; background-repeat: round no-repeat; }
.brick b { display: block; }
.brick.new { --b: #0f766e; }
.brick small { display: block; font-size: 12.5px; opacity: .85; }
.brick .icon { width: 20px; height: 20px; flex: none; }
.brick:hover { transform: translateY(-6px); }
.brick.planned { --b: color-mix(in srgb, var(--warn) 13%, var(--bg)); color: var(--ink); outline: 2px dashed color-mix(in srgb, var(--warn) 60%, transparent); outline-offset: -2px; box-shadow: none; }
.brick.planned .icon { color: var(--warn); }
.brick.drop { animation: snap 7s cubic-bezier(.3, .7, .4, 1) infinite; }
@keyframes snap {
  0%, 12% { transform: translateY(-58px); opacity: 0; }
  24% { transform: translateY(-58px); opacity: 1; }
  36% { transform: translateY(3px); }
  40%, 86% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-58px); opacity: 0; }
}
/* Where the bricks wrap into rows, one dropping from above would cover the row over it: it fades in place. */
@keyframes snap-fade {
  0%, 12% { opacity: 0; }
  24%, 86% { opacity: 1; }
  100% { opacity: 0; }
}
/* Five bricks keep to one row on a narrower screen: no icon, less padding (a phone has its own, below). */
@media (max-width: 1100px) { .brick .icon { display: none; } .brick { padding: 14px 12px 20px; } }
@media (max-width: 860px) { .brick.drop { animation-name: snap-fade; } }
.baseplate { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 22px 24px 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 -7px 0 rgba(0, 0, 0, .22), var(--shadow); }
.baseplate::before { content: ""; position: absolute; left: 10px; right: 10px; top: -11px; height: 11px; background: radial-gradient(ellipse 13px 11px at 50% 100%, var(--accent) 95%, transparent 100%) 0 0 / 42px 11px; background-repeat: round no-repeat; }
.baseplate b { font-size: 18px; }
.baseplate span { opacity: .8; font-size: 14.5px; }
.lego figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 46em; }
@media (prefers-reduced-motion: reduce) { .brick { transition: none; } .brick:hover { transform: none; } .brick.drop { animation: none; } }

/* end */
.final { text-align: center; }
.statement { text-align: center; }
.statement h2 { font-size: clamp(30px, 4.2vw, 46px); }
.statement .sub { margin: 0 auto; }
.final .sub { margin-left: auto; margin-right: auto; }
.final .cta { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }

@media (max-width: 900px) {
  .hero .wrap, .ai .wrap, .live .wrap, .floor-sec .wrap, .ver-sec .wrap, .rules .wrap, .juris .wrap, .guides .wrap { grid-template-columns: 1fr; }
  .shots2 { grid-template-columns: 1fr; }
  .scale-grid, .stats { grid-template-columns: 1fr; }
  .rules .rule-mock { order: 2; }
  .obj pre { white-space: pre-wrap; }
  .cluster { grid-template-columns: 1fr; text-align: center; }
  .cluster .to { transform: rotate(90deg); }
  .live-points { grid-template-columns: 1fr; }
  .grid3, .editions { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .flow li:nth-child(2)::after { display: none; }
  .flow.six { grid-template-columns: 1fr 1fr; }
  .flow.six li:nth-child(2n)::after { display: none; }
  .checks { columns: 1; }
  nav.links { display: none; }
  header.top .btn { margin-left: auto; }
  header.top .wrap { gap: 12px; }
}
@media (max-width: 520px) {
  /* The bricks stay on the core two by two, never a tower: smaller, without their icons, each word whole. */
  .lego-row { flex-wrap: wrap; gap: 16px 8px; padding: 0 10px; }
  .brick { flex: 1 1 calc(50% - 4px); min-width: 0; min-height: 72px; padding: 10px 12px 16px; font-size: 13.5px; }
  .brick .icon { display: none; }
  .brick small { font-size: 11.5px; }
  .baseplate { padding: 16px 16px 20px; }
  .screens, .runs { grid-template-columns: 1fr; }
  .sync-line { display: none; }
  .flow, .flow.six { grid-template-columns: 1fr; }
  /* Five stages on a change (§5.17) fit a phone's card. */
  .stages span { padding: 4px 7px; font-size: 11px; }
  .flow li::after { display: none; }
  .change-row { grid-template-columns: 1fr auto; }
  .change-row .muted:first-child, .change-row .when { display: none; }
}

/* Warm light on graphite, never a hue of blue: glows behind the page, a spotlight and a grid of dots
   behind the opening, and a light that follows the pointer (glow.js sets --mx, --my, and a card's
   --cx, --cy). Without the script, or asked for less motion, the page keeps its glows, still. */
body { background: radial-gradient(1200px 640px at 88% -8%, var(--glow-soft), transparent 62%), radial-gradient(900px 560px at -8% 34%, var(--glow-soft), transparent 62%), var(--bg); }
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(560px circle at var(--mx) var(--my), var(--glow), transparent 66%); }
main, footer { position: relative; z-index: 1; }
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(var(--dots) 1px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 75% 85% at 30% 40%, #000 25%, transparent 72%); mask-image: radial-gradient(ellipse 75% 85% at 30% 40%, #000 25%, transparent 72%); }
.hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 760px; height: 760px; left: -200px; top: -300px; background: radial-gradient(circle, var(--glow), transparent 66%); }
section.alt { background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 94%, transparent), color-mix(in srgb, var(--panel) 72%, transparent)); }
.final { background: radial-gradient(820px 320px at 50% 0%, var(--glow), transparent 72%); }
/* A card lifts toward the pointer, lit where it is. */
:is(.card, .edition, .stat) { position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
:is(.card, .edition, .stat)::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s ease; background: radial-gradient(340px circle at var(--cx, 50%) var(--cy, 0%), var(--glow), transparent 62%); }
:is(.card, .edition, .stat) > * { position: relative; }
:is(.card, .edition):hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, #d97706 35%, var(--line)); }
:is(.card, .edition, .stat):hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { :is(.card, .edition, .stat) { transition: none; } :is(.card, .edition):hover { transform: none; } }
/* Blocks rise into place as they come into view: glow.js marks those below the fold when the page opens and shows
   each once it is reached, a row's cards one after another. Without the script, or for anyone who asked for less
   motion, nothing is hidden and nothing moves. */
.reveal { opacity: 0; transform: translateY(22px) scale(.985); transition: opacity .7s ease, transform .7s cubic-bezier(.16, .84, .3, 1); transition-delay: var(--rd, 0ms); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
/* Bricks afloat behind the page, the suites' bricks again: large, faint, turning and drifting slowly, never
   over what is read (behind main, no pointer). Each is a box of six shaded faces in CSS 3D, its studs drawn
   on its top by a gradient; --u is a stud's pitch, a brick 4 by 2 studs. Still for anyone who asked for
   less motion; fewer on a phone. */
.bg-bricks { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bgb { position: absolute; perspective: 1100px; opacity: .15; filter: blur(var(--blur, 0)); animation: bdrift var(--drift, 40s) ease-in-out infinite alternate; will-change: transform; }
.brk { --w: calc(var(--u) * 4); --d: calc(var(--u) * 2); --h: calc(var(--u) * 1.2); position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateZ(var(--rz)) rotateY(30deg); animation: bspin var(--spin, 100s) linear infinite var(--dir, normal); }
.brk i { position: absolute; left: 0; top: 0; width: var(--w); height: var(--h); background-color: var(--c); backface-visibility: hidden; }
.brk .fr { transform: translateZ(calc(var(--d) / 2)); background-image: linear-gradient(rgba(255, 255, 255, .06), rgba(0, 0, 0, .1)); }
.brk .ba { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background-image: linear-gradient(rgba(0, 0, 0, .22), rgba(0, 0, 0, .22)); }
.brk .ri, .brk .le { width: var(--d); left: calc((var(--w) - var(--d)) / 2); background-image: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .3)); }
.brk .ri { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.brk .le { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.brk .to, .brk .bo { height: var(--d); top: calc((var(--h) - var(--d)) / 2); }
.brk .to { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); background-image: radial-gradient(circle, rgba(255, 255, 255, .34) 0 27%, rgba(0, 0, 0, .28) 29% 34%, transparent 36%), linear-gradient(rgba(255, 255, 255, .14), rgba(255, 255, 255, .14)); background-size: var(--u) var(--u), auto; }
.brk .bo { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); background-image: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)); }
@keyframes bspin { from { transform: rotateX(var(--rx)) rotateZ(var(--rz)) rotateY(0deg); } to { transform: rotateX(var(--rx)) rotateZ(var(--rz)) rotateY(360deg); } }
@keyframes bdrift { from { transform: translate(0, 0); } to { transform: translate(var(--dx), var(--dy)); } }
.bgb.k1 { left: 4%; top: 12%; --u: 46px; --c: #b45309; --rx: -24deg; --rz: 8deg; --spin: 110s; --drift: 38s; --dx: 50px; --dy: 70px; }
.bgb.k2 { left: 74%; top: 6%; --u: 70px; --c: #2b303a; --rx: 28deg; --rz: -12deg; --spin: 150s; --dir: reverse; --drift: 46s; --dx: -60px; --dy: 80px; --blur: 2px; }
.bgb.k3 { left: 60%; top: 56%; --u: 34px; --c: #4d7c0f; --rx: -18deg; --rz: 20deg; --spin: 90s; --drift: 34s; --dx: 70px; --dy: -50px; }
.bgb.k4 { left: 8%; top: 66%; --u: 58px; --c: #c2410c; --rx: 22deg; --rz: -6deg; --spin: 125s; --dir: reverse; --drift: 42s; --dx: 60px; --dy: -70px; --blur: 1.5px; }
.bgb.k5 { left: 38%; top: 30%; --u: 26px; --c: #b7791f; --rx: -30deg; --rz: 14deg; --spin: 80s; --drift: 30s; --dx: -40px; --dy: 60px; }
.bgb.k6 { left: 84%; top: 74%; --u: 42px; --c: #b45309; --rx: 16deg; --rz: -18deg; --spin: 100s; --drift: 40s; --dx: -70px; --dy: -40px; --blur: .5px; }
.bgb.k7 { left: 34%; top: 84%; --u: 30px; --c: #2b303a; --rx: -12deg; --rz: 24deg; --spin: 95s; --dir: reverse; --drift: 36s; --dx: 50px; --dy: -60px; }
@media (prefers-color-scheme: dark) { .bgb { opacity: .2; } .bgb.k2, .bgb.k7 { --c: #8a8f98; } }
@media (max-width: 700px) { .bgb { opacity: .11; } .bgb.k3, .bgb.k5, .bgb.k7 { display: none; } .bgb.k1 { --u: 26px; } .bgb.k2 { left: 58%; --u: 34px; } .bgb.k4 { --u: 30px; } .bgb.k6 { left: 66%; --u: 24px; } }
@media (max-width: 700px) and (prefers-color-scheme: dark) { .bgb { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .bgb, .brk { animation: none; } }

/* Several pages (src/build.mjs): the page you are on, marked in the bar and the menu; the bar's links give way to
   the menu where there is no room for them. */
nav.links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
@media (max-width: 1180px) { nav.links { display: none; } header.top .btn { margin-left: auto; } }
.menu nav a { display: grid; gap: 0; }
.menu nav a small { color: var(--muted); font-size: 13px; }
.menu nav a[aria-current="page"] { background: var(--accent-soft); }

/* A page opens on the problem it answers, then its solutions, each a short list. */
.page-hero { padding: 64px 0 24px; position: relative; isolation: isolate; }
.page-hero .wrap { display: block; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 48px); max-width: 18em; }
.page-hero .lede { margin-bottom: 0; }
.eyebrow.problem { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.sol-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sol-head .eyebrow { margin: 0; }
section.sol { padding: 48px 0; }
.sol .sub { margin-bottom: 24px; }
/* A solution beside its picture. */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } .two > :first-child { order: 0; } }

/* Home: the problems, each with its answer in a line and a way to its page. */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problems .wide { grid-column: 1 / -1; }
@media (max-width: 980px) { .problems { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .problems { grid-template-columns: 1fr; } }
a.card.problem-card { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; }
.problem-card .pc-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); margin-bottom: 4px; }
.problem-card .pc-icon .icon { width: 22px; height: 22px; color: var(--accent); }
.problem-card .was { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-weight: 500; font-size: 15px; line-height: 1.45; }
.problem-card .was .icon { width: 16px; height: 16px; color: var(--bad); margin-top: .2em; flex: none; }
.problem-card h3 { margin: 2px 0 0; font-size: 20px; line-height: 1.25; }
.problem-card p { margin: 0; }
.problem-card .go { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--accent); font-weight: 600; font-size: 15px; }
.problem-card .go .icon { width: 16px; height: 16px; color: var(--accent); transition: transform .2s ease; }
.problem-card:hover .go .icon { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .problem-card .go .icon { transition: none; } }
.next-page { margin-top: 8px; }

/* Super App: every suite wired into the one core (superapp.html). The wide map on a screen, the tall one on a phone;
   the dashes stream toward the core (in) or away from it (out), and stand still for whoever asks for less motion. */
.sa-figure { margin: 28px 0 0; }
.sa-map { display: block; width: 100%; height: auto; }
.sa-tall { display: none; max-width: 420px; margin: 0 auto; }
@media (max-width: 900px) { .sa-wide { display: none; } .sa-tall { display: block; } }
.sa-wire { stroke: var(--line); stroke-width: 2; fill: none; }
.sa-flow { stroke: #d97706; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-dasharray: 2 14; animation: sa-stream 1.6s linear infinite; opacity: .85; }
.sa-flow-out { stroke: var(--accent); opacity: .55; }
@keyframes sa-stream { to { stroke-dashoffset: -32; } }
@media (prefers-color-scheme: dark) { .sa-flow { stroke: #f59e0b; } }
@media (prefers-reduced-motion: reduce) { .sa-flow { animation: none; } }
.sa-node rect { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
.sa-node.sa-new rect { stroke: var(--accent); }
.sa-node.sa-dev rect { stroke-dasharray: 5 4; }
.sa-name { font: 600 15px/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; fill: var(--ink); }
.sa-sub { font: 12.5px/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; fill: var(--muted); }
.sa-dot { fill: var(--ok); }
.sa-new .sa-dot { fill: #d97706; }
.sa-dev .sa-dot { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.sa-core rect { fill: var(--accent); }
.sa-core-name { font: 700 22px/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; fill: var(--accent-ink); }
.sa-core-sub { font: 13px/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; fill: var(--accent-ink); opacity: .8; }
.sa-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.sa-key::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: var(--ok); }
.sa-key.sa-new::before { background: #d97706; }
.sa-key.sa-dev::before { background: none; border: 1.5px solid var(--muted); width: 8px; height: 8px; }
/* A fab today (superapp #today): the MES and its satellites, the glue between them and the jobs on a clock. */
.sx-map { display: block; width: 100%; height: auto; }
.sx-tall { display: none; max-width: 420px; margin: 0 auto; }
@media (max-width: 900px) { .sx-wide { display: none; } .sx-tall { display: block; } }
.sx-wire { stroke: var(--line); stroke-width: 2; fill: none; }
.sx-cross { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .55; }
.sx-flow { stroke: var(--muted); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-dasharray: 2 14; animation: sa-stream 2.6s linear infinite; opacity: .6; }
@media (prefers-reduced-motion: reduce) { .sx-flow { animation: none; } }
.sx-app rect { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
.sx-name { font: 600 14.5px/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; fill: var(--ink); }
.sx-sub { font: 12px/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; fill: var(--muted); }
.sx-glue rect { fill: var(--accent-soft); stroke: var(--line); stroke-width: 1; }
.sx-glue text, .sx-cron text { font: 500 11.5px/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; fill: var(--muted); }
.sx-script rect { fill: var(--panel); stroke: var(--warn); stroke-width: 1.2; stroke-dasharray: 4 3; }
.sx-script text { font: italic 500 11.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; fill: var(--warn); }
.sx-script circle { fill: var(--warn); }
.sx-script .sx-q { font: 700 10px/1 ui-sans-serif, system-ui, sans-serif; font-style: normal; fill: var(--panel); }
.sx-db path, .sx-db ellipse { fill: var(--accent-soft); stroke: var(--ink); stroke-width: 1.5; }
.sx-db-name { font: 600 12px/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; fill: var(--ink); }
.sx-cron circle { fill: var(--panel); stroke: var(--warn); stroke-width: 1.5; }
.sx-cron path { stroke: var(--warn); stroke-width: 1.5; fill: none; stroke-linecap: round; }
.sx-cron text { fill: var(--warn); }
.sx-fail circle { fill: var(--bad); }
.sx-fail path { stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.sx-mes rect { fill: var(--panel); stroke: var(--ink); stroke-width: 2; }
.sx-mes-name { font: 700 22px/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; fill: var(--ink); }
.sx-mes-sub { font: 12.5px/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; fill: var(--muted); }
.sx-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.sx-key::before { content: ""; display: inline-block; width: 18px; height: 9px; border-radius: 5px; margin-right: 7px; vertical-align: 0; background: var(--accent-soft); border: 1px solid var(--line); }
.sx-key-script::before { background: var(--panel); border: 1.2px dashed var(--warn); }
.sx-key-cron::before { width: 9px; border-radius: 50%; background: var(--panel); border: 1.5px solid var(--warn); }
.sx-key-fail::before { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); border: 0; }

/* The Control page's pipeline (stream.js): changes moving through the six stages, the log beneath, newest first. */
.cd-stream { margin-top: 40px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 14px; }
.cd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.cd-title { display: grid; gap: 2px; min-width: 0; }
.cd-title b { font-size: 17px; }
.cd-title span { color: var(--muted); font-size: 14px; }
.cd-controls { display: flex; gap: 8px; }
.cd-controls[hidden] { display: none; }
.cd-btn { font: inherit; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.cd-btn:hover, .cd-btn:focus-visible { border-color: var(--accent); }
.cd-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cd-board { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cd-col { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 7px; min-height: 150px; min-width: 0; }
.cd-col h4 { margin: 2px 4px 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cd-col[data-stage="verified"] h4 { color: var(--ok); }
.cd-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cd-cards li { min-width: 0; }
.cd-card { display: grid; gap: 4px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 8px 9px; cursor: pointer; transition: opacity .3s, border-color .2s, box-shadow .2s; }
button.cd-card:hover, button.cd-card:focus-visible { border-color: var(--accent); }
.cd-card b { font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.cd-card small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.cd-card.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.cd-card.dim { opacity: .45; }
.cd-tag { justify-self: start; font-size: 10.5px; line-height: 1.35; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 1px 7px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); max-width: 100%; overflow-wrap: anywhere; }
.cd-tag.ok { color: var(--ok); border-color: var(--ok); }
.cd-tag.warn { color: var(--warn); border-color: var(--warn); }
.cd-tag.bad { color: var(--bad); border-color: var(--bad); }
.cd-log { list-style: none; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); display: grid; gap: 4px; font-size: 13px; min-height: 120px; }
.cd-log li { display: grid; grid-template-columns: 44px minmax(0, 200px) minmax(0, 1fr); gap: 10px; align-items: baseline; transition: opacity .3s; }
.cd-log li:first-child { animation: cd-in .5s ease-out; }
.cd-log time { color: var(--muted); font-variant-numeric: tabular-nums; }
.cd-log b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-log span { color: var(--muted); }
.cd-log span.bad { color: var(--bad); }
.cd-log li.dim { opacity: .35; }
@keyframes cd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 980px) {
  .cd-board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cd-col { min-height: 110px; }
}
@media (max-width: 600px) {
  .cd-stream { padding: 14px; }
  .cd-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cd-log li { grid-template-columns: 40px minmax(0, 1fr); }
  .cd-log li span { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .cd-log li:first-child { animation: none; } .cd-card { transition: none; } }

/* The CI/CD loop (the DevOps infinity), drawn here: change on the left, plant on the right, a dot going round. */
.cd-loop { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 22px; align-items: center; padding: 6px 4px 4px; }
.cd-inf { width: 100%; height: auto; display: block; overflow: visible; }
.cd-half { fill: none; stroke-width: 14; stroke-linejoin: round; }
.cd-half.left { stroke: color-mix(in srgb, var(--accent) 78%, var(--panel)); }
.cd-half.right { stroke: color-mix(in srgb, var(--ok) 70%, var(--panel)); }
/* A station on the loop for each step, as on a line map. */
.cd-stations circle { fill: var(--panel); stroke-width: 3.5; }
.cd-stations.left circle { stroke: var(--accent); }
.cd-stations.right circle { stroke: var(--ok); }
.cd-dot { fill: var(--warn); stroke: var(--panel); stroke-width: 2; }
.cd-side { font: 700 13px/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: .14em; fill: var(--muted); }
.cd-step { font: 600 13px/1 ui-sans-serif, system-ui, sans-serif; fill: var(--ink); }
.cd-loop-text b { font-size: 17px; }
.cd-loop-text p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .cd-loop { grid-template-columns: 1fr; gap: 12px; } .cd-inf { max-width: 420px; justify-self: center; } }
@media (prefers-reduced-motion: reduce) { .cd-dot { display: none; } }

/* Documentation (/docs, site/src/docs.mjs): the topics on the left, the page in the middle, its sections on the right;
   two columns below 1180px ("On this page" folded into the article), one below 900px (the topics under a summary). */
/* The site's sections are page bands (padding 64px); the documentation's are not. */
.docs section { padding: 0; }
.wrap-docs { max-width: 1440px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 264px minmax(0, 1fr) 220px; gap: 44px; position: relative; }
.docs-side, .docs-toc { position: sticky; top: 64px; align-self: start; max-height: calc(100vh - 64px); overflow-y: auto; overscroll-behavior: contain; padding: 28px 0 32px; }
.docs-side { margin-left: -8px; }
.docs-topics > summary { display: none; }
.docs-find { position: sticky; top: 0; z-index: 1; padding: 0 8px 12px; background: var(--bg); }
.docs-find input { width: 100%; font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); }
.docs-find input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.docs-side nav { display: block; }
.docs-side nav a { display: flex; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.35; }
.docs-side nav a:hover { background: var(--accent-soft); }
.docs-side nav a[aria-current="page"] { background: var(--accent-soft); font-weight: 650; box-shadow: inset 3px 0 0 var(--accent); }
.docs-side .docs-overview { font-weight: 600; margin-bottom: 6px; }
.docs-side section { margin-top: 14px; }
.docs-side section h2 { margin: 0 0 4px; padding: 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.docs-side ol { list-style: none; margin: 0; padding: 0; }
.docs-side .n { flex: 0 0 1.6em; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; padding-top: 1px; }
.docs-side .docs-sub { margin: 0 0 6px 2.1em; border-left: 1px solid var(--line); }
.docs-side .docs-sub a { font-size: 14px; color: var(--muted); padding: 4px 10px; border-radius: 0 8px 8px 0; }
.docs-side .docs-sub a:hover { color: var(--ink); }
.docs-none { padding: 6px 8px; color: var(--muted); font-size: 14px; }
.docs-toc h2, .docs-onpage-narrow h2 { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.docs-toc ol, .docs-onpage-narrow ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.docs-toc-list a { display: block; padding: 4px 0 4px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.4; }
.docs-toc-list li.l3 a, .docs-toc-list li.l4 a { padding-left: 24px; font-size: 13px; }
.docs-toc-list a:hover { color: var(--ink); }
.docs-toc-list a[aria-current] { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }
.docs-onpage-narrow { display: none; margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.docs-onpage-narrow > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 15px; }
/* The folded panels' summaries alike: a chevron drawn by borders at the end, turned when open. */
.docs-onpage-narrow > summary, .docs-topics > summary { list-style: none; position: relative; padding-right: 40px; }
.docs-onpage-narrow > summary::-webkit-details-marker, .docs-topics > summary::-webkit-details-marker { display: none; }
.docs-onpage-narrow > summary::after, .docs-topics > summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.docs-onpage-narrow[open] > summary::after, .docs-topics[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.docs-onpage-narrow nav { padding: 0 16px 14px; }
.docs-onpage-narrow nav h2 { display: none; }

/* The page itself: a reading column, its headings clear of the sticky top bar when linked to. */
.docs-main { min-width: 0; padding: 32px 0 72px; }
.docs-eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.docs-eyebrow a { color: var(--muted); }
.docs-main h1 { font-size: 38px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 22px; }
.docs-body { max-width: 820px; font-size: 16.5px; }
.docs-body h2 { font-size: 25px; line-height: 1.25; letter-spacing: -.01em; margin: 44px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.docs-body h3 { font-size: 19px; margin: 30px 0 8px; }
.docs-body h4 { font-size: 16.5px; margin: 22px 0 6px; }
.docs-main [id] { scroll-margin-top: 84px; }
.docs-body p, .docs-body ul, .docs-body ol { margin: 0 0 14px; }
.docs-body li { margin: 4px 0; }
.docs-body li > ul, .docs-body li > ol { margin: 4px 0 6px; }
.docs-body code { font: 0.86em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.docs-body pre { font: 13.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; margin: 0 0 16px; }
.docs-body pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
.docs-body blockquote { margin: 0 0 16px; padding: 10px 16px; border-left: 4px solid var(--accent); background: var(--panel); border-radius: 0 10px 10px 0; }
.docs-body blockquote p:last-child { margin-bottom: 0; }
.docs-body hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
/* The chapter's first words, larger: what it is about. */
.docs-body > p:first-child { font-size: 18.5px; line-height: 1.6; }
/* A bold lead-in (**Then the template.**): a small heading of its own, its paragraph under it. */
.docs-body p.run-in { margin-top: 26px; }
.docs-body p.run-in > strong:first-child { display: block; font-size: 18px; letter-spacing: -.005em; margin-bottom: 2px; }
/* The guide's pictures: the app's own pages (site/src/shots.mjs), framed and zooming as the site's screenshots. */
.docs-body .shot { margin: 24px 0 30px; }
.docs-body li .shot { margin: 14px 0 18px; }
.docs-body .table { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.docs-body table { border-collapse: collapse; width: 100%; font-size: 15px; }
.docs-body th, .docs-body td { border-bottom: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.docs-body thead th { background: var(--accent-soft); font-weight: 650; }
.docs-body tr:last-child td { border-bottom: 0; }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 820px; margin-top: 56px; }
.docs-pager a { display: grid; gap: 2px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); text-decoration: none; font-weight: 600; }
.docs-pager a:hover { border-color: var(--accent); }
.docs-pager a small { color: var(--muted); font-weight: 500; font-size: 13px; }
.docs-pager .next { text-align: right; }

/* The overview (/docs): the three guides with their chapters. */
.docs-home { grid-column: 2 / -1; }
.docs-home h1 { font-size: 42px; }
.docs-lead { max-width: 720px; font-size: 19px; color: var(--muted); margin: -8px 0 32px; }
.docs-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.docs .docs-guide { padding: 22px 22px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.docs-guide h2 { margin: 0 0 6px; font-size: 21px; }
.docs-guide h2 a { color: var(--ink); text-decoration: none; }
.docs-guide p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.docs-guide ol { margin: 0; padding-left: 1.4em; font-size: 15px; }
.docs-guide li { margin: 3px 0; }
.docs-guide li a { color: var(--ink); text-decoration: none; }
.docs-guide li a:hover { text-decoration: underline; }

/* The printable guides' blocks (docs/lib/printable.mjs) as a screen shows them: a procedure in its frame, its steps
   numbered, commands on a dark panel with their Copy button (docs.js), callouts tinted by what they warn of. */
.docs-body.printable table { font-size: 14.5px; }
.docs-body .proc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 16px 18px 6px; margin: 22px 0; box-shadow: var(--shadow); }
.docs-body .proc-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; }
.docs-body .proc-id { font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--accent); color: var(--accent-ink); padding: 5px 8px; border-radius: 6px; }
.docs-body .proc-title { font-weight: 700; font-size: 18px; }
.docs-body .proc .table, .docs-body .proc table { box-shadow: none; }
.docs-body table.kv { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.docs-body table.kv th { width: 26%; background: var(--accent-soft); font-weight: 600; }
.docs-body table.steps { table-layout: fixed; border: 1px solid var(--line); border-radius: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden; margin-bottom: 12px; }
.docs-body table.steps td { overflow-wrap: anywhere; }
.docs-body table.steps .n { width: 40px; text-align: center; color: var(--muted); }
.docs-body table.steps .ok { width: 64px; }
.docs-body .proc-after { font-size: 15px; color: var(--muted); }
.docs-body .callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 10px 14px; margin: 10px 0 14px; border-radius: 0 10px 10px 0; font-size: 15.5px; }
.docs-body .callout.warn, .docs-body .callout.planned { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, var(--panel)); }
.docs-body .callout.undo { border-left-color: var(--bad); background: color-mix(in srgb, var(--bad) 9%, var(--panel)); }
.docs-body .flow { display: grid; gap: 8px; margin: 8px 0 16px; }
.docs-body .flow div { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 8px 12px; background: var(--panel); font-size: 15px; }
.docs-body .rules { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin: 12px 0; background: var(--panel); }
.docs-body .cmd { position: relative; margin: 8px 0 10px; }
.docs-body .cmd pre { margin: 0; padding-right: 76px; background: #0f1218; color: #e8ebf0; border-color: #0f1218; white-space: pre; }
.docs-body .cmd .ph { color: #ffd166; font-style: italic; }
/* In a table's narrow cell a command wraps rather than hides under its Copy button (Copy takes it as written). */
.docs-body td .cmd pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.docs-body .ph-sample { background: #0f1218; color: #ffd166; font-style: italic; padding: 0 4px; border-radius: 4px; }
.docs-body .cmd .copy { position: absolute; top: 7px; right: 7px; font: 600 12px ui-sans-serif, system-ui, sans-serif; border: 1px solid #3a4150; background: #232833; color: #e8ebf0; border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.docs-body .cmd .copy:hover { border-color: #e8ebf0; }
.docs-body .cmd .copy.done { background: #1f6f43; border-color: #1f6f43; }
.docs-body .cmd.file pre { background: var(--panel); color: var(--ink); border-color: var(--line); }
.docs-body .cmd.file .ph { color: var(--warn); }
.docs-body .cmd.file .copy { background: var(--accent-soft); color: var(--ink); border-color: var(--line); }
.docs-body .file-head { font-size: 13px; color: var(--muted); margin-bottom: 4px; }

@media (max-width: 1180px) {
  .wrap-docs { grid-template-columns: 240px minmax(0, 1fr); gap: 36px; }
  .docs-toc { display: none; }
  .docs-onpage-narrow { display: block; }
  .docs-guides { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .wrap-docs { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 16px; }
  .docs-home { grid-column: auto; }
  .docs-side { position: static; max-height: none; overflow: visible; padding: 16px 0 0; margin: 0; }
  .docs-topics { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
  .docs-topics > summary { display: block; cursor: pointer; padding: 12px 40px 12px 16px; font-weight: 600; font-size: 15px; }
  .docs-topics[open] > summary { border-bottom: 1px solid var(--line); }
  .docs-topics nav { padding: 8px 8px 12px; max-height: 70vh; overflow-y: auto; }
  .docs-find { position: static; padding: 12px 12px 4px; background: transparent; }
  .docs-main { padding-top: 22px; }
  .docs-main h1, .docs-home h1 { font-size: 30px; }
  .docs-body h2 { font-size: 22px; }
  .docs-pager { grid-template-columns: 1fr; }
  .docs-pager .next { text-align: left; }
}
