/* Holdups: the "Roadworks" look. Black and white with one bright orange, heavy type, thick borders.
   Light and dark themes share every rule below; only the variables change. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-variable.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-variable.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #ffffff; --surface: #ffffff; --ink: #111111; --muted: #555555;
  --line: #111111; --hair: #d4d4d4; --field: #ffffff;
  --accent: #ff6b00; --accent-ink: #111111;
  --btn: #111111; --btn-ink: #ffffff;
  --inverse: #111111; --inverse-ink: #ffffff; --inverse-muted: #d9d9d9; --inverse-line: #3d3d3d; --inverse-edge: #111111;
  --ok-bg: #e6f4ea; --ok-ink: #14532d; --err-bg: #fde8e8; --err-ink: #8a1c1c; --warn-bg: #ffe6d2; --warn-ink: #5c2500;
  --focus: #111111;
}

/* Dark: follows the device unless the person chose light; forced when they chose dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111111; --surface: #1a1a1a; --ink: #f4f4f4; --muted: #b8b8b8;
    --line: #6e6e6e; --hair: #333333; --field: #111111;
    --accent: #ff6b00; --accent-ink: #111111;
    --btn: #ff6b00; --btn-ink: #111111;
    --inverse: #000000; --inverse-ink: #ffffff; --inverse-muted: #c9c9c9; --inverse-line: #3d3d3d; --inverse-edge: #ff6b00;
    --ok-bg: #12301c; --ok-ink: #b6e6c6; --err-bg: #3a1515; --err-ink: #ffc4c4; --warn-bg: #3d1f08; --warn-ink: #ffc59c;
    --focus: #ff6b00;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111111; --surface: #1a1a1a; --ink: #f4f4f4; --muted: #b8b8b8;
  --line: #6e6e6e; --hair: #333333; --field: #111111;
  --accent: #ff6b00; --accent-ink: #111111;
  --btn: #ff6b00; --btn-ink: #111111;
  --inverse: #000000; --inverse-ink: #ffffff; --inverse-muted: #c9c9c9; --inverse-line: #3d3d3d; --inverse-edge: #ff6b00;
  --ok-bg: #12301c; --ok-ink: #b6e6c6; --err-bg: #3a1515; --err-ink: #ffc4c4; --warn-bg: #3d1f08; --warn-ink: #ffc59c;
  --focus: #ff6b00;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--accent); }
h1, h2 { font-family: Archivo, Inter, system-ui, sans-serif; font-weight: 800; }
h1 { font-size: 2rem; line-height: 1.1; margin: 0 0 0.6rem; letter-spacing: -0.02em; }
h2 { font-size: 1.15rem; line-height: 1.25; margin: 0 0 0.75rem; }
p { margin: 0 0 0.75rem; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Top bar */
.topbar { background: var(--bg); border-bottom: 3px solid var(--ink); }
.topbar-inner { max-width: 1100px; margin: 0 auto; padding: 0.7rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; margin-right: auto; color: var(--ink); text-decoration: none;
  font-family: Archivo, Inter, sans-serif; font-weight: 800; font-size: 1.35rem; letter-spacing: 0.01em; text-transform: uppercase; }
.brand svg { display: block; }
.logo-tile { fill: var(--ink); }
.logo-bars { fill: var(--accent); }
:root[data-theme="dark"] .logo-tile { fill: var(--accent); }
:root[data-theme="dark"] .logo-bars { fill: #111111; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-tile { fill: var(--accent); }
  :root:not([data-theme="light"]) .logo-bars { fill: #111111; }
}
.topbar nav { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.15rem 0.25rem; font-weight: 600; }
.topbar nav form { display: flex; }
/* Menu items: icon above its label. */
.topbar nav a, .topbar nav .btn-link { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  min-width: 4.25rem; min-height: 56px; padding: 0.35rem 0.6rem; font-size: 0.8rem; line-height: 1.1; text-decoration: none; }
.topbar nav .icon { width: 22px; height: 22px; }
/* On a phone the menu is one row across the full width. */
@media (max-width: 640px) {
  .topbar-inner { padding-left: 0.75rem; padding-right: 0.75rem; }
  .topbar nav[aria-label="Main"] { flex: 1 0 100%; flex-wrap: nowrap; gap: 0; }
  .topbar nav[aria-label="Main"] a, .topbar nav[aria-label="Main"] form { flex: 1 1 0; min-width: 0; }
  .topbar nav[aria-label="Main"] a, .topbar nav[aria-label="Main"] .btn-link { min-width: 0; width: 100%; padding: 0.3rem 0.1rem; font-size: 0.68rem; }
}
.icon { flex: none; display: inline-block; vertical-align: middle; }
.topbar nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.topbar nav a.active { background: var(--accent); color: var(--accent-ink); }

/* Page frames */
.container { max-width: 1100px; margin: 0 auto; padding: 1.75rem 1.5rem 3rem; display: flex; flex-direction: column; gap: 1.25rem; }
.narrow { max-width: 460px; margin: 0 auto; padding: 3rem 1.5rem; }
.card { background: var(--surface); border: 2px solid var(--line); border-radius: 4px; padding: 1.2rem 1.35rem; }
.stack { display: flex; flex-direction: column; gap: 0.9rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 0.9rem; }

/* Forms */
label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=time], input[type=date], select, textarea {
  width: 100%; min-height: 44px; padding: 0.5rem 0.7rem; font: inherit; color: var(--ink);
  background: var(--field); border: 2px solid var(--line); border-radius: 4px;
}
input[type=number] { max-width: 10rem; }
input[type=time], input[type=date] { max-width: 14rem; }
textarea { min-height: 6rem; resize: vertical; }
.check { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; min-height: 44px; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--ink); }
.hint { color: var(--muted); font-size: 0.9rem; margin: 0.25rem 0 0; }
.field-error { color: var(--err-ink); font-size: 0.9rem; font-weight: 600; margin-top: 0.25rem; }

/* Buttons */
.btn { display: inline-block; min-height: 44px; padding: 0 1.1rem; font: inherit; font-weight: 700; line-height: 44px;
  color: var(--btn-ink); background: var(--btn); border: 0; border-radius: 4px; cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: underline; }
.btn-secondary { color: var(--ink); background: transparent; border: 2px solid var(--ink); line-height: 40px; }
.btn-link { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0 0.65rem; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.topbar nav .btn-link:hover { text-decoration: underline; text-decoration-color: var(--accent); }

/* Messages */
.alert { border: 2px solid currentColor; border-radius: 4px; padding: 0.65rem 0.9rem; font-weight: 500; }
.alert-ok { background: var(--ok-bg); color: var(--ok-ink); }
.alert-err { background: var(--err-bg); color: var(--err-ink); }
.alert-warn { background: var(--warn-bg); color: var(--warn-ink); }
.alert a { color: inherit; }

/* Tables and small pieces */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.6rem 0.5rem; border-top: 1px solid var(--hair); vertical-align: middle; }
thead th { font-size: 0.85rem; color: var(--muted); font-weight: 700; border-top: 0; border-bottom: 2px solid var(--line); }
tbody th { font-weight: 700; }
.pill { display: inline-block; padding: 0 0.45rem; border: 2px solid currentColor; font-size: 0.8rem; font-weight: 700; line-height: 1.5; }
.pill-warn { background: var(--ink); color: var(--bg); border-color: var(--ink); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; }
.codes { columns: 2; padding-left: 1.1rem; }
.break { overflow-wrap: anywhere; }
.prose { white-space: pre-line; overflow-wrap: anywhere; }
.qr svg { background: #fff; padding: 10px; border-radius: 4px; max-width: 100%; height: auto; }
.token { display: block; padding: 0.7rem 0.9rem; background: var(--warn-bg); color: var(--warn-ink); border: 2px dashed currentColor; border-radius: 4px; overflow-wrap: anywhere; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.25rem; margin: 0; }
dl.facts dt { color: var(--muted); font-weight: 600; }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }

/* Board */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 1rem; }
.tile { background: var(--surface); border: 2px solid var(--line); border-radius: 4px; padding: 0.85rem 1.1rem; }
.tile-label { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.tile-num { font-family: Archivo, Inter, sans-serif; font-size: 2.6rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.tile-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tile-accent .tile-label { color: var(--accent-ink); }
.tile-inverse { background: var(--inverse); color: var(--inverse-ink); border-color: var(--inverse-edge); }
.tile-inverse .tile-label { color: var(--inverse-ink); }
.tile-inverse .tile-num { color: var(--accent); }

.board { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.25rem; }
.board-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.board-side { flex: 1 1 250px; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }

.panel { background: var(--surface); border: 2px solid var(--line); border-radius: 4px; overflow: hidden; }
.panel-head { padding: 0.75rem 1.1rem; border-bottom: 2px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
.panel-head h2, .panel-head h3 { margin: 0; }
.panel-head span { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.panel-empty { padding: 0.9rem 1.1rem; color: var(--muted); margin: 0; }
.panel-accent { border-color: var(--line); }
.panel-accent .panel-head { background: var(--accent); color: var(--accent-ink); }
.panel-accent .panel-head span { color: var(--accent-ink); }
/* Stalled agents: the one panel that inverts, so it cannot be missed. */
.panel-warn { background: var(--inverse); color: var(--inverse-ink); border-color: var(--inverse-edge); }
.panel-warn .panel-head { border-bottom-color: var(--inverse-line); }
.panel-warn .panel-head h2, .panel-warn .panel-head h3 { color: var(--accent); }
.panel-warn .panel-head span, .panel-warn .muted, .panel-warn .brow-age small { color: var(--inverse-muted); }
.panel-warn .brow + .brow { border-top-color: var(--inverse-line); }
.panel-warn .pill-warn { background: var(--accent); color: #111111; border-color: var(--accent); }
.panel-warn .btn, .panel-warn .btn-secondary { background: var(--accent); color: #111111; border: 0; line-height: 44px; }
.panel-warn .brow-age strong { color: var(--accent); }

.brow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; padding: 0.85rem 1.1rem; }
.brow + .brow { border-top: 2px solid var(--line); }
.brow-main { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.brow-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
.brow-key { font-weight: 700; letter-spacing: 0.02em; }
.brow-needed { font-family: Archivo, Inter, sans-serif; font-size: 1.1rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.brow-age { flex: 0 0 5.5rem; }
.brow-age small { display: block; color: var(--muted); }
.brow-age strong { font-family: Archivo, Inter, sans-serif; font-size: 1.15rem; font-weight: 800; }
.brow .btn { flex: 0 0 auto; min-width: 7.5rem; text-align: center; }

.holder { display: flex; flex-direction: column; gap: 0.3rem; }
.holder-line { display: flex; justify-content: space-between; gap: 0.75rem; }
.bar { height: 12px; border: 2px solid var(--line); }
.bar span { display: block; height: 8px; background: var(--muted); }
.bar .you { background: var(--accent); }
.bar .stalled { background: var(--ink); }

/* Copyable blocks (agent set-up) */
.snippet { position: relative; }
.snippet pre { margin: 0; padding: 0.8rem 0.9rem; border: 2px solid var(--line); border-radius: 4px; background: var(--field);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.snippet-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.35rem; }
.snippet-head strong { font-weight: 700; }
.btn-small { min-height: 44px; padding: 0 0.8rem; font: inherit; font-size: 0.9rem; font-weight: 700; color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: 4px; cursor: pointer; }

/* Landing page */
.landing { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem 4rem; display: flex; flex-direction: column; gap: 4.5rem; }
.landing section { scroll-margin-top: 1rem; }
.hero { padding-top: 4rem; display: flex; flex-direction: column; gap: 1.25rem; max-width: 50rem; }
.eyebrow { font-family: Archivo, Inter, sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; margin: 0; }
.eyebrow mark, .hero h1 mark { background: var(--accent); color: var(--accent-ink); padding: 0 0.2em; }
.hero h1 { font-size: clamp(2.5rem, 6.5vw, 4.4rem); line-height: 1.02; margin: 0; }
.hero p.lead { font-size: 1.3rem; line-height: 1.4; margin: 0; max-width: 40rem; }
.hero .fine { color: var(--muted); margin: 0; }
.btn-big { min-height: 52px; line-height: 52px; padding: 0 1.5rem; font-size: 1.05rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-big.btn-secondary { line-height: 48px; }
.landing h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -0.01em; line-height: 1.1; margin: 0 0 1.25rem; max-width: 40rem; }
.landing h3 { font-family: Archivo, Inter, sans-serif; font-weight: 800; font-size: 1.15rem; line-height: 1.25; margin: 0 0 0.4rem; }
.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.pains li { border-left: 6px solid var(--accent); padding: 0.2rem 0 0.2rem 1rem; font-family: Archivo, Inter, sans-serif; font-weight: 700; font-size: 1.25rem; line-height: 1.3; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 1rem; }
.points p { margin: 0; color: var(--muted); }
.points .icon { margin-bottom: 0.6rem; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1.5rem; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 0.8rem; }
.steps li::before { content: counter(step); display: block; font-family: Archivo, Inter, sans-serif; font-weight: 800; font-size: 2.4rem; line-height: 1; margin-bottom: 0.4rem; }
.steps strong { display: block; font-family: Archivo, Inter, sans-serif; font-weight: 800; font-size: 1.15rem; }
.steps span { color: var(--muted); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1.5rem; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.ticks li { display: flex; gap: 0.6rem; align-items: flex-start; }
.ticks .icon { margin-top: 0.15rem; }
.band { background: var(--inverse); color: var(--inverse-ink); border: 2px solid var(--inverse-edge); border-radius: 4px; padding: 1.75rem; }
.band h2 { color: var(--accent); }
.band p, .band li { color: var(--inverse-ink); }
.faq { display: flex; flex-direction: column; }
.faq details { border-top: 2px solid var(--line); padding: 0.2rem 0; }
.faq details:last-child { border-bottom: 2px solid var(--line); }
.faq summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-family: Archivo, Inter, sans-serif; font-weight: 800; font-size: 1.1rem; }
.faq details p { margin: 0 0 0.9rem; max-width: 44rem; color: var(--muted); }
.request { border: 3px solid var(--ink); border-radius: 4px; padding: 1.75rem; background: var(--surface); }
.request form { max-width: 34rem; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.landing-foot { border-top: 3px solid var(--ink); padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; color: var(--muted); }

/* Getting-started list */
.setup { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.setup li { display: flex; align-items: flex-start; gap: 0.7rem; }
.setup-mark { flex: 0 0 1.5rem; height: 1.5rem; border: 2px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; line-height: 1; }
.setup li.done .setup-mark { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Board filter and blocker history */
.filter { align-items: flex-end; }
.filter > div { flex: 0 1 14rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.timeline li { padding-left: 0.9rem; border-left: 3px solid var(--accent); }
.timeline li span { display: inline-block; min-width: 9.5rem; }

/* Conversation on a blocker */
.thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.thread li { border: 2px solid var(--line); border-radius: 4px; padding: 0.6rem 0.8rem; max-width: 44rem; }
.thread li.from-agent { border-left: 6px solid var(--accent); }

/* Trend rows and working-now states */
.trend { display: grid; grid-template-columns: 4.5rem minmax(4rem, 1fr); align-items: center; gap: 0.5rem; }
.state-working { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Visitors: a quiet sign-in link, a sticky in-page menu, and an example that reads as a picture. */
.topbar nav.nav-quiet a { flex-direction: row; min-width: 0; min-height: 44px; font-size: 0.9rem; font-weight: 600; text-decoration: underline; padding: 0 0.4rem; }
.subnav { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 2px solid var(--line); margin: 0 -1.5rem; padding: 0.4rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; }
.subnav nav { display: flex; flex-wrap: wrap; gap: 0.1rem 1rem; font-weight: 600; font-size: 0.9rem; }
.subnav nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.subnav nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.landing section[id], .landing div[id] { scroll-margin-top: 4.5rem; }
.example { margin: 0; }
.example figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }
.does { flex: 0 0 auto; min-width: 6rem; text-align: center; font-weight: 700; font-size: 0.9rem; padding: 0.35rem 0.6rem; border: 2px dashed var(--line); border-radius: 4px; color: var(--muted); }
.panel-warn .does { border-color: var(--inverse-line); color: var(--inverse-muted); }
.legal { max-width: 46rem; }
.legal h2 { margin-top: 1.5rem; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 0.75rem; }
.people li { border: 2px solid var(--line); border-radius: 4px; padding: 0.7rem 0.9rem; }
.people strong { display: block; font-family: Archivo, Inter, sans-serif; font-weight: 800; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Accessibility and feedback helpers */
.skip-link { position: absolute; left: 0.5rem; top: -4rem; z-index: 20; background: var(--accent); color: #111; font-weight: 700; padding: 0.6rem 0.9rem; border: 2px solid #111; border-radius: 4px; }
.skip-link:focus { top: 0.5rem; }
main:focus { outline: none; }
.error-summary p { margin: 0 0 0.3rem; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.field-error { color: var(--err-ink); font-weight: 600; font-size: 0.9rem; margin: 0.3rem 0 0; }
[aria-invalid="true"] { border-color: var(--err-ink) !important; }
.copy-failed { color: var(--err-ink); }
.live-state { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; }
.live-state[data-state="stale"] { color: var(--err-ink); font-weight: 600; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.checklist li { padding-left: 1.7rem; position: relative; color: var(--muted); }
.checklist li::before { content: "○"; position: absolute; left: 0.2rem; font-weight: 800; }
.checklist li.done { color: var(--ink); }
.checklist li.done::before { content: "✓"; }
.checklist li.failed { color: var(--err-ink); }
.checklist li.failed::before { content: "✕"; }

/* Home page demo */
.demo { display: flex; flex-direction: column; gap: 1rem; border: 3px solid var(--ink); border-radius: 4px; padding: 1.25rem; background: var(--surface); }
.demo-head { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: flex-end; }
.demo-head h2 { margin: 0 0 0.3rem; }
.demo-head p { margin: 0; max-width: 34rem; }
.demo-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; width: 100%; max-width: 26rem; }
.demo-tiles .tile { padding: 0.5rem 0.6rem; min-width: 0; }
.demo-tiles .tile-label { font-size: 0.78rem; overflow-wrap: anywhere; }
@media (max-width: 480px) { .demo { padding: 0.75rem; } .demo-detail { padding: 0 0.75rem 0.9rem; } }
.demo-tiles .tile-num { font-size: 1.6rem; }
.demo .panel-head h3 { margin: 0; font-size: 1rem; }
.demo-item + .demo-item { border-top: 2px solid var(--line); }
.demo-item > summary { list-style: none; cursor: pointer; }
.demo-item > summary::-webkit-details-marker { display: none; }
.demo-item > summary:hover .does, .demo-item[open] > summary .does { border-style: solid; color: var(--ink); border-color: var(--ink); }
.panel-warn .demo-item > summary:hover .does, .panel-warn .demo-item[open] > summary .does { color: var(--inverse-ink); border-color: var(--inverse-ink); }
.demo-item .brow-main, .demo-item .brow-tags, .demo-item .brow-needed, .demo-item .brow-age { display: block; }
.demo-item .brow-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.demo-item .brow-main > .muted { display: block; }
.demo-detail { padding: 0 1.1rem 1.1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.demo-detail p { margin: 0; max-width: 46rem; }
.demo-detail textarea { width: 100%; max-width: 40rem; }
.demo-check { display: flex; gap: 0.5rem; align-items: center; font-weight: 500; }
.demo:not(.js) .demo-actions, .demo:not(.js) .demo-check { display: none; }
.demo-empty { padding: 0.85rem 1.1rem; margin: 0; }
.demo-log { margin: 0; padding: 0.85rem 1.1rem 0.85rem 2.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.demo-foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; align-items: center; margin: 0; }
.lead-small { color: var(--muted); max-width: 44rem; margin: -0.5rem 0 1rem; }
.compare th[scope="row"] { white-space: nowrap; font-family: Archivo, Inter, sans-serif; }
.compare tr.us th, .compare tr.us td { background: var(--accent); color: #111; font-weight: 600; }
.legal pre { background: var(--surface); border: 2px solid var(--line); border-radius: 4px; padding: 0.8rem 1rem; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.9rem; }
.legal h3 { margin: 1rem 0 0.3rem; }
