/* Built by tours/build.mjs from tours/shared/styles.css. Edit the source and rebuild; do not edit this file. */


/* ---------- Tokens (from Jute's own colors.css) ---------- */
:root, .t-light {
  --bg: oklch(97% 0.004 255);
  --surface: oklch(100% 0 0);
  --surface-1: oklch(97.6% 0.003 255);
  --sidebar: oklch(97.2% 0.007 300);
  --text: oklch(20% 0.002 255);
  --text-2: oklch(40% 0.003 255);
  --text-3: oklch(54% 0.004 255);
  --border: oklch(0% 0 0 / 0.07);
  --border-strong: oklch(0% 0 0 / 0.12);
  --hover: oklch(0% 0 0 / 0.04);
  --active: oklch(0% 0 0 / 0.065);
  --accent: oklch(0.48 0.15 253.6);
  --accent-soft: oklch(0.48 0.15 253.6 / 0.1);
  --on-accent: oklch(100% 0 0);
  --logo: oklch(0.38 0.09 55);
  --eyebrow: oklch(0.53 0.17 32);
  --ok: oklch(0.53 0.15 145);
  --warn: oklch(0.6 0.13 70);
  --pdf: oklch(0.56 0.18 25);
  --sheet: oklch(0.52 0.13 150);
  --word: oklch(0.5 0.14 255);
  --av-a: oklch(0.6 0.13 40);
  --av-b: oklch(0.52 0.13 253);
  --av-c: oklch(0.55 0.12 150);
  --av-d: oklch(0.5 0.11 320);
  --av-e: oklch(0.6 0.11 85);
  --glow-1: oklch(0.85 0.08 60 / 0.55);
  --glow-2: oklch(0.85 0.07 253 / 0.45);
  --shadow: 0 1px 2px oklch(0% 0 0 / 0.04), 0 30px 60px -28px oklch(0% 0 0 / 0.28);
  --pop: 0 10px 30px -10px oklch(0% 0 0 / 0.22);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { 
  --bg: oklch(12% 0.008 280);
  --surface: oklch(18% 0.01 280);
  --surface-1: oklch(20.5% 0.01 280);
  --sidebar: oklch(15.5% 0.014 292);
  --text: oklch(94% 0.004 280);
  --text-2: oklch(77% 0.008 280);
  --text-3: oklch(63% 0.008 280);
  --border: oklch(100% 0 0 / 0.08);
  --border-strong: oklch(100% 0 0 / 0.14);
  --hover: oklch(100% 0 0 / 0.06);
  --active: oklch(100% 0 0 / 0.1);
  --accent: oklch(0.72 0.14 253.6);
  --accent-soft: oklch(0.72 0.14 253.6 / 0.16);
  --on-accent: oklch(16% 0.01 280);
  --logo: oklch(0.88 0.05 78);
  --eyebrow: oklch(0.76 0.12 38);
  --ok: oklch(0.76 0.16 145);
  --warn: oklch(0.82 0.13 80);
  --pdf: oklch(0.68 0.16 25);
  --sheet: oklch(0.7 0.13 150);
  --word: oklch(0.7 0.12 255);
  --av-a: oklch(0.6 0.12 40);
  --av-b: oklch(0.56 0.12 253);
  --av-c: oklch(0.56 0.11 150);
  --av-d: oklch(0.54 0.1 320);
  --av-e: oklch(0.6 0.1 85);
  --glow-1: oklch(0.45 0.08 50 / 0.35);
  --glow-2: oklch(0.42 0.09 260 / 0.35);
  --shadow: 0 1px 2px oklch(0% 0 0 / 0.3), 0 30px 60px -28px oklch(0% 0 0 / 0.7);
  --pop: 0 10px 30px -10px oklch(0% 0 0 / 0.6);
  color-scheme: dark;
   }
}
:root[data-theme="dark"], .t-dark {
  
  --bg: oklch(12% 0.008 280);
  --surface: oklch(18% 0.01 280);
  --surface-1: oklch(20.5% 0.01 280);
  --sidebar: oklch(15.5% 0.014 292);
  --text: oklch(94% 0.004 280);
  --text-2: oklch(77% 0.008 280);
  --text-3: oklch(63% 0.008 280);
  --border: oklch(100% 0 0 / 0.08);
  --border-strong: oklch(100% 0 0 / 0.14);
  --hover: oklch(100% 0 0 / 0.06);
  --active: oklch(100% 0 0 / 0.1);
  --accent: oklch(0.72 0.14 253.6);
  --accent-soft: oklch(0.72 0.14 253.6 / 0.16);
  --on-accent: oklch(16% 0.01 280);
  --logo: oklch(0.88 0.05 78);
  --eyebrow: oklch(0.76 0.12 38);
  --ok: oklch(0.76 0.16 145);
  --warn: oklch(0.82 0.13 80);
  --pdf: oklch(0.68 0.16 25);
  --sheet: oklch(0.7 0.13 150);
  --word: oklch(0.7 0.12 255);
  --av-a: oklch(0.6 0.12 40);
  --av-b: oklch(0.56 0.12 253);
  --av-c: oklch(0.56 0.11 150);
  --av-d: oklch(0.54 0.1 320);
  --av-e: oklch(0.6 0.1 85);
  --glow-1: oklch(0.45 0.08 50 / 0.35);
  --glow-2: oklch(0.42 0.09 260 / 0.35);
  --shadow: 0 1px 2px oklch(0% 0 0 / 0.3), 0 30px 60px -28px oklch(0% 0 0 / 0.7);
  --pop: 0 10px 30px -10px oklch(0% 0 0 / 0.6);
  color-scheme: dark;
  
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.serif { font-family: "Lora", Georgia, ui-serif, serif; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.14em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in oklab, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--logo); text-decoration: none; }
.brand svg { width: 22px; height: 22px; }
.brand span { font-family: "Lora", Georgia, serif; font-size: 20px; line-height: 1; letter-spacing: -0.01em; }
.top .grow { flex: 1; }
.top-links { display: flex; gap: 2px; }
.top-links a { font-size: 13px; color: var(--text-2); text-decoration: none; padding: 6px 10px; border-radius: 999px; transition: background .15s, color .15s; }
.top-links a:hover { background: var(--hover); color: var(--text); }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--text-2); cursor: pointer; font-size: 17px; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .sun { display: none; }
  :root:not([data-theme="light"]) .icon-btn .moon { display: block; }
}
.no-js-hide { display: none; }
html.js .no-js-hide { display: inline-grid; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; transition: transform .12s ease-out, filter .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn.sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.btn.ghost:hover { background: var(--hover); filter: none; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 0; text-align: center; position: relative; }
.hero-mark { display: block; width: 62px; height: 62px; margin: 0 auto 24px; color: var(--logo); overflow: visible; }
.hero-mark .c { stroke-dasharray: 980; stroke-dashoffset: 0; }
.kicker { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--eyebrow); font-weight: 500; margin-bottom: 14px; }
.hero h1 { font-family: "Lora", Georgia, serif; font-size: clamp(38px, 6.2vw, 66px); line-height: 1.06; letter-spacing: -0.018em; max-width: 13.5ch; margin: 0 auto 20px; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--eyebrow); }
.hero .lede { font-size: clamp(17px, 2vw, 19px); color: var(--text-2); max-width: 610px; margin: 0 auto 30px; text-wrap: pretty; }
.hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.stage { position: relative; margin: 60px auto 0; max-width: 1120px; padding: 0 24px; }
.stage::before { content: ""; position: absolute; inset: -40px 0 30% 0; background: radial-gradient(50% 60% at 28% 40%, var(--glow-1), transparent 70%), radial-gradient(45% 55% at 75% 35%, var(--glow-2), transparent 70%); filter: blur(30px); z-index: -1; pointer-events: none; }
.toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 860px; margin: 44px auto 0; padding: 0 16px; }
.toc a { font-size: 13px; color: var(--text-2); text-decoration: none; padding: 6px 13px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); transition: color .15s, box-shadow .15s; }
.toc a:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--text-3); }
.toc a span { color: var(--text-3); margin-right: 6px; font-variant-numeric: tabular-nums; }

/* ---------- Scatter (the problem) ---------- */
.problem { padding: 120px 0 40px; overflow-x: clip; }
.problem-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 36px; align-items: center; margin-top: 48px; }
.problem-head { max-width: 680px; margin: 0 auto; text-align: center; }
.problem-head h2, .ch h2, .end h2 { font-family: "Lora", Georgia, serif; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.12; letter-spacing: -0.012em; margin-bottom: 16px; text-wrap: balance; }
.problem-head p { color: var(--text-2); font-size: 17px; text-wrap: pretty; }
.apps { position: relative; height: 330px; }
.app-pill { position: absolute; display: flex; flex-direction: column; gap: 1px; padding: 9px 14px 10px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong), 0 6px 16px -10px oklch(0% 0 0 / .25); font-size: 13px; line-height: 1.3; white-space: nowrap; transform: rotate(var(--r, 0deg)); }
.app-pill b { font-weight: 500; font-size: 11px; color: var(--text-3); display: flex; gap: 6px; align-items: center; }
.app-pill b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.arrow { color: var(--text-3); font-size: 28px; }
.thread-card { background: var(--surface); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow); padding: 22px 22px 14px; }
.thread-card h3 { font-family: "Lora", Georgia, serif; font-size: 24px; font-weight: 500; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.thread-card .sub { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.thread-card li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; border-top: 1px solid var(--border); }
.thread-card li .i { color: var(--text-3); }
.thread-card li small { margin-left: auto; color: var(--text-3); font-size: 12px; }
.problem-note { text-align: center; color: var(--text-3); font-size: 14px; margin-top: 28px; }

/* ---------- Chapters ---------- */
.ch { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; padding: 110px 0; }
.ch.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ch.flip > .ch-copy { order: 2; }
.ch.wide { grid-template-columns: minmax(0, 1fr); gap: 44px; }
.ch.wide > .ch-copy { max-width: 700px; margin: 0 auto; text-align: center; }
.ch.wide .facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; }
.ch.wide .facts li { flex: 0 1 220px; font-size: 14px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--eyebrow); font-weight: 500; margin-bottom: 14px; }
.ch.wide .eyebrow { justify-content: center; }
.eyebrow span { color: var(--text-3); font-variant-numeric: tabular-nums; }
.ch .lede { font-size: 17px; color: var(--text-2); margin-bottom: 22px; text-wrap: pretty; }
.facts li { position: relative; padding-left: 24px; margin: 9px 0; font-size: 15px; color: var(--text-2); line-height: 1.5; text-align: left; }
.facts li::before { content: ""; position: absolute; left: 3px; top: .42em; width: 10px; height: 5.5px; border-left: 1.7px solid var(--accent); border-bottom: 1.7px solid var(--accent); transform: rotate(-45deg); }
.try { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 13px; color: var(--text-3); }
.try::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.quote { font-family: "Lora", Georgia, serif; font-style: italic; font-size: 18px; color: var(--text-2); border-left: 2px solid var(--eyebrow); padding: 2px 0 2px 16px; margin-top: 24px; text-align: left; }
.quote small { display: block; font-family: "Roboto", sans-serif; font-style: normal; font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* ---------- Mock window primitives ---------- */
.win { background: var(--surface); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow); overflow: hidden; font-size: 13px; line-height: 1.5; color: var(--text); text-align: left; position: relative; isolation: isolate; }
.win-bar { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px; background: var(--surface-1); border-bottom: 1px solid var(--border); }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.url { flex: 1; display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 11px; color: var(--text-3); min-width: 0; }
.url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.url .i { font-size: 10px; }
.dots-pad { width: 39px; }

.app { display: grid; grid-template-columns: 196px minmax(0, 1fr); min-height: 0; }
.app.with-rail { grid-template-columns: 196px minmax(0, 1fr) 248px; }
.side { background: var(--sidebar); border-right: 1px solid var(--border); padding: 12px 8px; font-size: 12px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.side-brand { display: flex; align-items: center; gap: 7px; padding: 2px 8px 10px; color: var(--logo); }
.side-brand svg { width: 17px; height: 17px; }
.side-brand span { font-family: "Lora", Georgia, serif; font-size: 16px; line-height: 1; }
.nv { display: flex; align-items: center; gap: 9px; padding: 4px 8px; border-radius: 6px; color: var(--text-2); white-space: nowrap; }
.nv .i { font-size: 13px; color: var(--text-3); }
.nv.on { background: var(--active); color: var(--text); }
.side-label { font-size: 10.5px; color: var(--text-3); padding: 12px 8px 4px; letter-spacing: .02em; }
.tr { display: flex; align-items: center; gap: 6px; padding: 3.5px 8px; border-radius: 6px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; }
.tr .chev { font-size: 10px; color: var(--text-3); width: 10px; }
.tr .i:not(.chev) { font-size: 12px; color: var(--text-3); }
.tr.d1 { padding-left: 26px; }
.tr.d2x { padding-left: 42px; }
.tr.on { background: var(--active); color: var(--text); }
label.tr { cursor: pointer; transition: background .12s; }
.tr > .tn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
label.tr:hover { background: var(--hover); }
.side-foot { margin-top: auto; padding-top: 10px; }

.pg { padding: 18px 28px 22px; min-width: 0; }
.crumbs { font-size: 11px; color: var(--text-3); display: flex; gap: 6px; align-items: center; margin-bottom: 10px; }
.title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tile { width: 28px; height: 28px; flex: none; border-radius: 7px; display: grid; place-items: center; font-size: 15px; background: var(--active); }
.pg-title { font-family: "Lora", Georgia, serif; font-size: 25px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 999px; background: var(--hover); color: var(--text-2); font-size: 11px; white-space: nowrap; }
.chip .i { font-size: 11px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--accent)); flex: none; }
.status-ring { width: 10px; height: 10px; border-radius: 50%; border: 1.6px solid var(--warn); background: conic-gradient(var(--warn) 0 50%, transparent 50%); flex: none; }
.tabs { display: flex; gap: 16px; font-size: 11.5px; color: var(--text-3); border-bottom: 1px solid var(--border); margin: 12px 0 16px; white-space: nowrap; overflow: hidden; }
.tabs span { padding: 6px 0 7px; }
.tabs > .on { color: var(--text); box-shadow: inset 0 -1.5px 0 var(--text); }
.tabs .lay { margin-left: auto; display: flex; gap: 2px; align-items: center; padding: 0; }
.tabs .lay i { font-style: normal; font-size: 10.5px; padding: 2px 7px; border-radius: 5px; color: var(--text-3); }
.tabs .lay i.on { background: var(--active); color: var(--text); }
.tabs .push { margin-left: auto; }
.prose { font-size: 13.5px; line-height: 1.62; color: var(--text); }
.prose p + * { margin-top: 12px; }
.prose h4 { font-size: 14px; font-weight: 500; margin: 16px 0 6px; }
.muted { color: var(--text-3); }
.small { font-size: 11.5px; }

.av { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: oklch(100% 0 0); font-size: 9.5px; font-weight: 500; background: var(--av, var(--av-a)); flex: none; line-height: 1; }
.av.lg { width: 26px; height: 26px; font-size: 11px; }
.av.sm { width: 16px; height: 16px; font-size: 8px; }
.av.a { --av: var(--av-a); } .av.b { --av: var(--av-b); } .av.r { --av: var(--av-d); } .av.l { --av: var(--av-c); } .av.j { --av: var(--av-e); }
.avs { display: inline-flex; }
.avs .av { box-shadow: 0 0 0 2px var(--surface); }
.avs .av + .av { margin-left: -5px; }

.gal { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4px; border-radius: 8px; overflow: hidden; height: 128px; }
.ph { display: block; width: 100%; height: 100%; }
.gal .ph { min-width: 0; }

.cl { display: flex; flex-direction: column; gap: 1px; }
.cl li { display: flex; align-items: center; gap: 9px; min-height: 30px; padding: 2px 6px; margin: 0 -6px; border-radius: 6px; font-size: 13px; }
.box { width: 15px; height: 15px; flex: none; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--text-3); display: grid; place-items: center; }
.box.on { background: var(--accent); box-shadow: none; color: var(--on-accent); }
.box.on::after, .ck:checked::after { content: ""; width: 7px; height: 4px; border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-1px) rotate(-45deg); }
.done-t { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--text-3); }
.task-meta { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
.due { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-2); background: var(--hover); padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.due .i { font-size: 10.5px; }
.due.none { color: var(--text-3); background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); }

.fc { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--border-strong); font-size: 12.5px; min-width: 0; }
.fc + .fc { margin-top: 6px; }
.ft { width: 30px; height: 36px; flex: none; border-radius: 4px; display: grid; place-items: end center; padding-bottom: 4px; font-size: 7.5px; font-weight: 500; letter-spacing: .04em; color: oklch(100% 0 0); background: var(--c, var(--pdf)); position: relative; }
.ft::before { content: ""; position: absolute; top: 0; right: 0; width: 9px; height: 9px; background: linear-gradient(225deg, var(--surface) 50%, oklch(100% 0 0 / .45) 50%); }
.ft.xls { --c: var(--sheet); } .ft.doc { --c: var(--word); } .ft.aud { --c: var(--av-d); }
.fc b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc small { color: var(--text-3); font-size: 11px; }
.fc > div { min-width: 0; }
.fc .go { margin-left: auto; color: var(--text-3); }

.rail { border-left: 1px solid var(--border); padding: 16px 14px 12px; display: flex; flex-direction: column; gap: 14px; min-width: 0; background: var(--surface); }
.rail-h { font-size: 11px; color: var(--text-3); display: flex; justify-content: space-between; }
.cmt { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 12.5px; line-height: 1.45; }
.cmt .who { font-size: 11.5px; font-weight: 500; }
.cmt .who time { font-weight: 400; color: var(--text-3); margin-left: 5px; font-size: 10.5px; }
.cmt.reply { margin-left: 30px; }
.rxs { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.rx { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; border: 0; background: var(--hover); font-size: 11px; color: var(--text-2); cursor: pointer; transition: background .15s, box-shadow .15s; }
.rx:has(input:checked) { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); color: var(--text); }
.rx:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.rx b { font-weight: 400; }
.rx .n1, .rx:has(input:checked) .n0 { display: none; }
.rx:has(input:checked) .n1 { display: inline; }
.rx.add { color: var(--text-3); padding: 0 7px; }
.composer { margin-top: auto; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--border-strong); padding: 8px 10px; font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.composer .tools { margin-left: auto; display: flex; gap: 8px; font-size: 13px; }
.cmt-photos { display: flex; gap: 4px; margin-top: 7px; }
.cmt-photos svg { width: 84px; height: 62px; border-radius: 7px; }
.bul li { position: relative; padding-left: 14px; margin: 3px 0; }
.bul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }
.ag .agw .i { font-size: 11px; color: var(--text-3); margin-left: 3px; }
.mention { color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 0 3px; }
.pagelink { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 2px; }

/* ---------- Hero window ---------- */
/* Desktop only: this outranks the phone's three-column .prow, and on a phone its
   fixed columns would leave the titles no width at all. */
@media (min-width: 721px) { .hero-win .prow { grid-template-columns: minmax(0, 1fr) 112px 92px 52px 52px; } }
/* From 721 to 960px the sidebar shows but the window is still narrow: with every
   column the deepest titles got under 10px (744px is an iPad mini held upright).
   The Progress bars go first; the titles keep at least 130px. */
@media (min-width: 721px) and (max-width: 960px) {
  .hero-win .prow { grid-template-columns: minmax(0, 1fr) 92px 52px 52px; }
  .hero-win .prow .ru { display: none; }
}
.hero-win .app { height: 572px; }
.hero-win .pg { overflow: hidden; }
.hero-win .rail .cmt.new { opacity: 1; }

/* ---------- Demo 1: pages ---------- */
.d1 .app { height: 470px; }
.d1 .pane { display: none; }
.d1:has(#p1-a:checked) .pane.a, .d1:has(#p1-b:checked) .pane.b, .d1:has(#p1-c:checked) .pane.c, .d1:has(#p1-d:checked) .pane.d { display: block; }
.d1:has(#p1-a:checked) [for="p1-a"], .d1:has(#p1-b:checked) [for="p1-b"], .d1:has(#p1-c:checked) [for="p1-c"], .d1:has(#p1-d:checked) [for="p1-d"] { background: var(--active); color: var(--text); }
.d1:has(#p1-a:focus-visible) [for="p1-a"], .d1:has(#p1-b:focus-visible) [for="p1-b"], .d1:has(#p1-c:focus-visible) [for="p1-c"], .d1:has(#p1-d:focus-visible) [for="p1-d"] { outline: 2px solid var(--accent); outline-offset: -2px; }
@supports not selector(:has(*)) { .d1 .pane.a { display: block; } }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
.tbl th { text-align: left; font-weight: 500; color: var(--text-2); font-size: 11.5px; background: var(--surface-1); }
.tbl th, .tbl td { padding: 7px 10px; border: 1px solid var(--border-strong); vertical-align: top; overflow-wrap: break-word; }
.tbl col.c1 { width: 26%; } .tbl col.c3 { width: 25%; }
.callout { display: flex; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--accent-soft); font-size: 12.5px; }
.callout .i { color: var(--accent); font-size: 14px; margin-top: 2px; }
.hint-at { font-size: 11px; color: var(--text-3); margin-top: 12px; }
kbd { font: 500 10.5px/1 "Roboto", sans-serif; padding: 3px 5px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--border-strong); background: var(--surface-1); color: var(--text-2); }

/* ---------- Demo 2: page behavior ---------- */
.d2 { max-width: 920px; margin: 0 auto; width: 100%; }
.seg { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; margin: 0 auto 22px; width: fit-content; max-width: 100%; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); }
.seg label { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 15px; border-radius: 999px; font-size: 13px; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s; user-select: none; }
.seg label:hover { color: var(--text); }
.seg .i { font-size: 13px; }
.d2:has(#bh-page:checked) [for="bh-page"], .d2:has(#bh-project:checked) [for="bh-project"], .d2:has(#bh-document:checked) [for="bh-document"], .d2:has(#bh-blog:checked) [for="bh-blog"], .d2:has(#bh-log:checked) [for="bh-log"] { background: var(--text); color: var(--bg); }
.d2:has(#bh-page:focus-visible) [for="bh-page"], .d2:has(#bh-project:focus-visible) [for="bh-project"], .d2:has(#bh-document:focus-visible) [for="bh-document"], .d2:has(#bh-blog:focus-visible) [for="bh-blog"], .d2:has(#bh-log:focus-visible) [for="bh-log"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.d2 .bp, .d2 .bc { display: none; }
.d2:has(#bh-page:checked) .page, .d2:has(#bh-project:checked) .project, .d2:has(#bh-document:checked) .document, .d2:has(#bh-blog:checked) .blog, .d2:has(#bh-log:checked) .log { display: block; }
@supports not selector(:has(*)) { .d2 .page { display: block; } }
@media (prefers-reduced-motion: no-preference) {
  .d2 .bp, .d1 .pane, .d7 .lp { animation: swap .35s cubic-bezier(.2,.7,.2,1); }
}
@keyframes swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.d2 .win { min-height: 452px; }
.d2 .pg { padding: 22px 32px 26px; }
.bc { text-align: center; color: var(--text-2); font-size: 15px; max-width: 620px; margin: 20px auto 0; text-wrap: pretty; }
.bc b { color: var(--text); font-weight: 500; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card { border-radius: 10px; box-shadow: inset 0 0 0 1px var(--border-strong); padding: 12px 14px; min-width: 0; }
.card h5 { margin: 0 0 4px; font: 500 14px/1.3 "Lora", Georgia, serif; }
.card p { font-size: 12px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { display: flex; gap: 6px; align-items: center; margin-top: 10px; font-size: 11px; color: var(--text-3); }
.card .thumb { height: 70px; border-radius: 6px; overflow: hidden; margin-bottom: 10px; }
.ov { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; }
.ov h6, .agenda h6, .rail h6 { margin: 0 0 8px; font-size: 11.5px; font-weight: 500; color: var(--text-2); display: flex; justify-content: space-between; align-items: center; }
.ov h6 a, .agenda h6 a { font-weight: 400; color: var(--accent); text-decoration: none; font-size: 11px; }
.bar { height: 6px; border-radius: 999px; background: var(--hover); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--p, 50%); background: var(--ok); border-radius: inherit; transition: width .4s cubic-bezier(.2,.7,.2,1); }
.row { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 12.5px; border-top: 1px solid var(--border); min-width: 0; }
.row:first-of-type { border-top: 0; }
.row .when { width: 54px; flex: none; font-size: 11px; color: var(--text-3); }
.row .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .av { margin-left: auto; }
.act { font-size: 12px; color: var(--text-2); display: flex; gap: 8px; padding: 5px 0; align-items: flex-start; }
.act b { font-weight: 500; color: var(--text); }
.stat { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 12px; color: var(--text-2); }
.stat strong { font: 500 20px/1 "Lora", Georgia, serif; color: var(--text); }
.scrolldoc { max-width: 560px; margin: 0 auto; }
.scrolldoc h4 { font: 500 17px/1.3 "Lora", Georgia, serif; margin: 0 0 6px; }
.scrolldoc p { font-size: 13px; color: var(--text-2); }
.scrolldoc hr { border: 0; height: 1px; background: var(--border); margin: 16px 0; }
.archive h6 { font: 500 11px/1 "Roboto", sans-serif; color: var(--text-3); margin: 14px 0 6px; letter-spacing: .04em; text-transform: uppercase; }
.archive h6:first-child { margin-top: 0; }
.entry { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--border); }
.entry:first-of-type { border-top: 0; }
.entry .d { font-size: 11px; color: var(--text-3); }
.entry b { display: block; font: 500 14px/1.35 "Lora", Georgia, serif; }
.entry p { font-size: 12px; color: var(--text-2); }
.entry .tag { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.entry .tag.draft { color: var(--warn); }
.newbtn { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 11px; }
.form { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 2px 14px; font-size: 13px; max-width: 520px; }
.form dt { color: var(--text-3); font-size: 12px; padding: 9px 0; display: flex; gap: 8px; align-items: center; }
.form dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--border); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }

/* ---------- Demo 3: tasks ---------- */
.d3 .app { grid-template-columns: minmax(0, 1fr) 236px; }
.d3 .cl li { cursor: pointer; }
.d3 .cl li:hover { background: var(--hover); }
.ck { appearance: none; -webkit-appearance: none; margin: 0; width: 15px; height: 15px; flex: none; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--text-3); display: grid; place-items: center; cursor: pointer; transition: background .15s, box-shadow .15s; color: var(--on-accent); }
.ck:checked { background: var(--accent); box-shadow: none; }
.cl li:has(.ck:checked) .t { color: var(--text-3); text-decoration: line-through; }
.cl .t { transition: color .2s; }
.open-task { color: var(--text-3); font-size: 12px; opacity: 0; transition: opacity .15s; }
.cl li:hover .open-task { opacity: 1; }
.d3 .cl { counter-reset: done; }
.d3 .ck:checked { counter-increment: done; }
.progress-line { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.count { font-size: 12px; color: var(--text-2); }
.tprog { display: flex; gap: 3px; height: 6px; }
.tprog i { flex: 1; border-radius: 2px; background: var(--hover); transition: background .3s; }
.d3:has(#t1:checked) .tprog .p1, .d3:has(#t2:checked) .tprog .p2, .d3:has(#t3:checked) .tprog .p3, .d3:has(#t4:checked) .tprog .p4, .d3:has(#t5:checked) .tprog .p5, .d3:has(#t6:checked) .tprog .p6, .d3:has(#t7:checked) .tprog .p7 { order: -1; background: var(--ok); }
.count::before { content: counter(done); font-weight: 500; color: var(--text); }
.agenda { border-left: 1px solid var(--border); padding: 16px 14px; background: var(--surface); min-width: 0; }
.ag-day { font-size: 10.5px; color: var(--text-3); margin: 12px 0 4px; letter-spacing: .03em; text-transform: uppercase; }
.ag-day:first-of-type { margin-top: 6px; }
.ag { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 5px 8px; margin: 0 -8px; border-radius: 6px; transition: opacity .2s, color .2s; }
.ag .bx { width: 11px; height: 11px; border-radius: 3px; box-shadow: inset 0 0 0 1.4px var(--text-3); flex: none; }
.ag.ev .bx { border-radius: 50%; box-shadow: none; background: var(--eyebrow); width: 8px; height: 8px; margin: 0 1.5px; }
.ag .agw { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag .av { margin-left: auto; }
.d3:has(#t3:checked) .ag.t3, .d3:has(#t4:checked) .ag.t4, .d3:has(#t5:checked) .ag.t5, .d3:has(#t6:checked) .ag.t6 { color: var(--text-3); }
.d3:has(#t3:checked) .ag.t3 .agw, .d3:has(#t4:checked) .ag.t4 .agw, .d3:has(#t5:checked) .ag.t5 .agw, .d3:has(#t6:checked) .ag.t6 .agw { text-decoration: line-through; }
.d3:has(#t3:checked) .ag.t3 .bx, .d3:has(#t4:checked) .ag.t4 .bx, .d3:has(#t5:checked) .ag.t5 .bx, .d3:has(#t6:checked) .ag.t6 .bx { background: var(--accent); box-shadow: none; }
.sub-cal { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 11px; color: var(--accent); }

/* ---------- Demo 4: comments ---------- */
.d4 .pg { padding: 18px 24px; }
.thread { display: flex; flex-direction: column; gap: 16px; }
.d4 .cmt { grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 13px; }
.d4 .cmt .who { font-size: 12.5px; }
.d4 .cmt.reply { margin-left: 36px; }
.poll { margin-top: 8px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--border-strong); padding: 12px; display: flex; flex-direction: column; gap: 6px; max-width: 380px; }
.poll-q { font-weight: 500; font-size: 13px; margin-bottom: 2px; }
.opt { position: relative; display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; border-radius: 7px; cursor: pointer; overflow: hidden; font-size: 12.5px; box-shadow: inset 0 0 0 1px var(--border); }
.opt input { appearance: none; -webkit-appearance: none; margin: 0; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--text-3); flex: none; position: relative; z-index: 1; cursor: pointer; }
.opt input:checked { box-shadow: inset 0 0 0 4px var(--accent); }
.opt .fill { position: absolute; inset: 0 auto 0 0; width: var(--w0, 0%); background: var(--hover); transition: width .45s cubic-bezier(.2,.7,.2,1); }
.opt:has(input:checked) .fill { background: var(--accent-soft); }
.opt:has(input:checked) { box-shadow: inset 0 0 0 1px var(--accent); }
.opt span { position: relative; }
.opt .n { margin-left: auto; color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 11.5px; }
.poll-foot { font-size: 11px; color: var(--text-3); }
.poll:has(input[value="0"]:checked) .fill { width: var(--v0); }
.poll:has(input[value="1"]:checked) .fill { width: var(--v1); }
.poll:has(input[value="2"]:checked) .fill { width: var(--v2); }
.opt b { font-weight: 400; }
.opt .n1, .poll-foot .t1, .opt:has(input:checked) .n0, .poll:has(input:checked) .poll-foot .t0 { display: none; }
.opt:has(input:checked) .n1, .poll:has(input:checked) .poll-foot .t1 { display: inline; }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.d4 .composer { margin-top: 18px; padding: 10px 12px; }

/* ---------- Demo 5: sharing ---------- */
.d5 { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1000px; margin: 0 auto; width: 100%; }
.share { background: var(--surface); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow); padding: 18px; font-size: 13px; }
.share h4 { font: 500 15px/1.3 "Roboto", sans-serif; margin-bottom: 14px; }
.share h4 span { font-family: "Lora", Georgia, serif; }
.invite { display: flex; gap: 8px; margin-bottom: 14px; }
.invite .field { flex: 1; min-width: 0; height: 34px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--border-strong); display: flex; align-items: center; padding: 0 10px; color: var(--text-3); font-size: 12.5px; }
.person { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.person .nm { min-width: 0; flex: 1; }
.person .nm b { font-weight: 500; font-size: 12.5px; display: block; }
.person .nm small { color: var(--text-3); font-size: 11px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role { font-size: 11.5px; color: var(--text-2); display: inline-flex; gap: 3px; align-items: center; white-space: nowrap; }
.role .i { font-size: 10px; color: var(--text-3); }
.pub { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.pub-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.pub-row .i { font-size: 16px; color: var(--text-2); }
.pub-row .nm { flex: 1; }
.pub-row .nm b { font-weight: 500; display: block; font-size: 13px; }
.pub-row .nm small { color: var(--text-3); font-size: 11.5px; }
.switch { appearance: none; -webkit-appearance: none; margin: 0; width: 36px; height: 21px; border-radius: 999px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px; border-radius: 50%; background: oklch(100% 0 0); box-shadow: 0 1px 3px oklch(0% 0 0 / .3); transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(15px); }
.linkbox { display: none; margin-top: 12px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--border); padding: 10px; }
.linkbox .addr { font-size: 11.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 8px; }
.linkbox .btn { width: 100%; height: 30px; font-size: 12px; }
.views { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11.5px; color: var(--text-3); }
.views b { color: var(--text); font-weight: 500; }
.d5:has(#pub:checked) .linkbox { display: block; }
.public-frame { position: relative; }
.public-frame .win-bar .url { color: var(--text-3); }
.public-frame .pubpage { padding: 24px 30px 30px; transition: filter .35s, opacity .35s; }
.d5:not(:has(#pub:checked)) .pubpage { filter: blur(5px) grayscale(.6); opacity: .45; }
.d5:not(:has(#pub:checked)) .public-frame .addr-on { display: none; }
.d5:has(#pub:checked) .public-frame .addr-off { display: none; }
.lockcard { position: absolute; inset: 32px 0 0; display: grid; place-items: center; text-align: center; padding: 20px; transition: opacity .3s; }
.lockcard div { background: var(--surface); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border-strong), var(--pop); padding: 14px 18px; font-size: 13px; color: var(--text-2); max-width: 260px; }
.lockcard .i { font-size: 18px; color: var(--text-3); display: block; margin: 0 auto 6px; }
.d5:has(#pub:checked) .lockcard { opacity: 0; pointer-events: none; }
@supports not selector(:has(*)) { .lockcard { display: none; } .linkbox { display: block; } }
.pubpage .pg-title { font-size: 28px; margin-bottom: 6px; }
.pubpage .by { font-size: 12px; color: var(--text-3); margin-bottom: 16px; }
.made { margin-top: 18px; font-size: 10.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.made svg { width: 12px; height: 12px; color: var(--logo); }

/* ---------- Demo 6: blog ---------- */
.blog-hero { height: 128px; position: relative; overflow: hidden; }
.blog-hero .ph { position: absolute; inset: 0; }
.blog-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, oklch(0% 0 0 / .45)); }
.blog-hero h4 { position: absolute; left: 26px; bottom: 14px; z-index: 1; color: oklch(100% 0 0); font: 500 26px/1.1 "Lora", Georgia, serif; text-shadow: 0 1px 8px oklch(0% 0 0 / .3); }
.blog-body { padding: 16px 26px 22px; }
.blog-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.blog-bar .by { font-size: 12px; color: var(--text-2); display: flex; gap: 8px; align-items: center; margin-right: auto; }
.searchf { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text-3); font-size: 11px; }
.post { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); align-items: center; }
.post b { font: 500 16px/1.3 "Lora", Georgia, serif; display: block; margin-bottom: 3px; }
.post p { font-size: 12px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post small { font-size: 11px; color: var(--text-3); display: flex; gap: 10px; margin-top: 5px; }
.post .ph-wrap { height: 64px; border-radius: 6px; overflow: hidden; }

/* ---------- Demo 7: library ---------- */
.d7 .app { grid-template-columns: minmax(0, 1fr) 232px; }
.lib { padding: 14px 16px 18px; min-width: 0; }
.lib-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.lib-bar .searchf { margin-left: auto; }
.filter { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--hover); font-size: 11px; color: var(--text-2); }
.filter .i { font-size: 9px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tilef { display: flex; flex-direction: column; gap: 5px; cursor: pointer; min-width: 0; border-radius: 9px; padding: 4px; margin: -4px; transition: background .15s; }
.tilef:hover { background: var(--hover); }
.tilef .th { aspect-ratio: 1; border-radius: 7px; overflow: hidden; display: grid; place-items: center; background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--border); position: relative; }
.tilef .th .ft { transform: scale(1.25); }
.tilef .nm { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.d7:has(#lib-1:checked) [for="lib-1"] .th, .d7:has(#lib-2:checked) [for="lib-2"] .th, .d7:has(#lib-3:checked) [for="lib-3"] .th, .d7:has(#lib-4:checked) [for="lib-4"] .th, .d7:has(#lib-5:checked) [for="lib-5"] .th, .d7:has(#lib-6:checked) [for="lib-6"] .th, .d7:has(#lib-7:checked) [for="lib-7"] .th, .d7:has(#lib-8:checked) [for="lib-8"] .th { box-shadow: 0 0 0 2px var(--accent); }
.d7:has(#lib-1:focus-visible) [for="lib-1"] .th, .d7:has(#lib-2:focus-visible) [for="lib-2"] .th, .d7:has(#lib-3:focus-visible) [for="lib-3"] .th, .d7:has(#lib-4:focus-visible) [for="lib-4"] .th, .d7:has(#lib-5:focus-visible) [for="lib-5"] .th, .d7:has(#lib-6:focus-visible) [for="lib-6"] .th, .d7:has(#lib-7:focus-visible) [for="lib-7"] .th, .d7:has(#lib-8:focus-visible) [for="lib-8"] .th { outline: 2px solid var(--accent); outline-offset: 2px; }
.d7 .lp { display: none; }
.d7:has(#lib-1:checked) .lp.l1, .d7:has(#lib-2:checked) .lp.l2, .d7:has(#lib-3:checked) .lp.l3, .d7:has(#lib-4:checked) .lp.l4, .d7:has(#lib-5:checked) .lp.l5, .d7:has(#lib-6:checked) .lp.l6, .d7:has(#lib-7:checked) .lp.l7, .d7:has(#lib-8:checked) .lp.l8 { display: block; }
@supports not selector(:has(*)) { .d7 .lp.l1 { display: block; } }
.libp { border-left: 1px solid var(--border); padding: 14px; min-width: 0; background: var(--surface-1); }
.lp .prev { border-radius: 8px; overflow: hidden; height: 150px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); display: grid; place-items: center; margin-bottom: 10px; }
.lp h6 { margin: 0 0 2px; font-size: 12.5px; font-weight: 500; overflow-wrap: anywhere; }
.lp .kv { font-size: 11px; color: var(--text-3); margin-bottom: 10px; }
.lp .kv-row { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; padding: 5px 0; border-top: 1px solid var(--border); color: var(--text-2); }
.lp .kv-row span:first-child { color: var(--text-3); }
.pdfpage { width: 100px; height: 132px; background: oklch(100% 0 0); border-radius: 3px; box-shadow: 0 2px 8px oklch(0% 0 0 / .18); padding: 10px 9px; display: flex; flex-direction: column; gap: 4px; }
.pdfpage i { display: block; height: 3px; border-radius: 2px; background: oklch(85% 0 0); }
.pdfpage i.h { height: 6px; width: 60%; background: oklch(45% 0.12 25); margin-bottom: 3px; }
.pdfpage i.s { width: 70%; }
.pdfpage .qr { width: 26px; height: 26px; margin-top: auto; align-self: flex-end; background: conic-gradient(oklch(25% 0 0) 0 25%, oklch(100% 0 0) 0 50%, oklch(25% 0 0) 0 75%, oklch(100% 0 0) 0) 0 0 / 8px 8px; border-radius: 2px; }
.sheetprev { display: grid; grid-template-columns: repeat(3, 34px); gap: 1px; background: oklch(85% 0 0); padding: 1px; border-radius: 2px; }
.sheetprev i { height: 12px; background: oklch(100% 0 0); }
.sheetprev i.h { background: oklch(93% 0.03 150); }
.wave { display: flex; gap: 2px; align-items: center; height: 46px; }
.wave i { width: 3px; border-radius: 2px; background: var(--av-d); height: var(--h); }
.viewer-tools { display: flex; gap: 10px; color: var(--text-3); font-size: 12px; margin: -2px 0 10px; }

/* ---------- Demo 8: Jai ---------- */
.d8 { max-width: 560px; width: 100%; justify-self: center; }
.jai { display: flex; flex-direction: column; height: 520px; }
.jai-h { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 500; }
.jai-h .i { color: var(--eyebrow); font-size: 15px; }
.jai-h small { margin-left: auto; font-weight: 400; font-size: 11px; color: var(--text-3); }
.jai-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.jm { font-size: 13px; line-height: 1.55; max-width: 92%; }
.jm.you { align-self: flex-end; background: var(--active); padding: 8px 12px; border-radius: 14px 14px 4px 14px; }
.jm.jai { color: var(--text); }
.jm.jai p + p, .jm.jai p + ul, .jm.jai ul + p { margin-top: 8px; }
.jm.jai ul { display: flex; flex-direction: column; gap: 5px; }
.jm.jai li { position: relative; padding-left: 14px; }
.jm.jai li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }
.jm.jai b { font-weight: 500; }
.jstep { display: grid; font-size: 11.5px; color: var(--text-3); }
.jstep > span { grid-area: 1 / 1; display: flex; align-items: center; gap: 8px; }
.jstep .wk { opacity: 0; }
.jstep .i { color: var(--ok); }
.spin { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--border-strong); border-top-color: var(--text-2); flex: none; }
@media (prefers-reduced-motion: no-preference) { .spin { animation: spin .7s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.made-tasks { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.made-tasks div { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--border-strong); font-size: 12px; }
.made-tasks .due { margin-left: auto; }
.jc { display: none; flex-direction: column; gap: 10px; }
.d8:has(#jai-1:checked) .jc.c1, .d8:has(#jai-2:checked) .jc.c2, .d8:has(#jai-3:checked) .jc.c3 { display: flex; }
@supports not selector(:has(*)) { .jc.c1 { display: flex; } }
.jm.jai > :nth-child(2) { --k: 1; } .jm.jai > :nth-child(3) { --k: 2; } .jm.jai > :nth-child(4) { --k: 3; } .jm.jai > :nth-child(5) { --k: 4; }
@media (prefers-reduced-motion: no-preference) {
  .jc .jm.you { animation: jfade .35s ease both; }
  .jc .jstep { animation: jfade .3s ease both; animation-delay: calc(.5s + var(--i) * .8s); }
  .jc .jstep .wk { animation: jout .2s linear both; animation-delay: calc(1.15s + var(--i) * .8s); }
  .jc .jstep .dn { animation: jin .2s linear both; animation-delay: calc(1.15s + var(--i) * .8s); }
  .jc .jm.jai > * { animation: jrise .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--t) + var(--k, 0) * .3s); }
  /* With the script, the first answer waits until the reader reaches it. */
  html.js .d8:not(.in) .jc, html.js .d8:not(.in) .jc * { animation-play-state: paused; }
}
@keyframes jfade { from { opacity: 0; } }
@keyframes jout { from { opacity: 1; } to { opacity: 0; } }
@keyframes jin { from { opacity: 0; } to { opacity: 1; } }
@keyframes jrise { from { opacity: 0; transform: translateY(6px); } }
.asks { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 10px; }
.ask { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); font-size: 12px; color: var(--text-2); cursor: pointer; transition: box-shadow .15s, color .15s, background .15s; }
.ask:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--text-3); }
.d8:has(#jai-1:checked) [for="jai-1"], .d8:has(#jai-2:checked) [for="jai-2"], .d8:has(#jai-3:checked) [for="jai-3"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); color: var(--text); }
.d8:has(#jai-1:focus-visible) [for="jai-1"], .d8:has(#jai-2:focus-visible) [for="jai-2"], .d8:has(#jai-3:focus-visible) [for="jai-3"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.jai .composer { margin: 0 16px 16px; }
.jai .composer .send { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--hover); color: var(--text-3); font-size: 12px; }

/* ---------- Demo 9: phones ---------- */
.phones { display: flex; gap: 26px; justify-content: center; align-items: flex-start; }
.phone { width: 258px; height: 540px; flex: none; border-radius: 40px; padding: 9px; background: oklch(18% 0.005 280); box-shadow: inset 0 0 0 1.5px oklch(35% 0.005 280), var(--shadow); }
.phone + .phone { margin-top: 44px; }
.screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--bg); color: var(--text); display: flex; flex-direction: column; position: relative; font-size: 12px; line-height: 1.45; text-align: left; }
.sbar { display: flex; justify-content: space-between; align-items: center; padding: 11px 22px 4px; font-size: 11px; font-weight: 500; }
.sbar .island { width: 70px; height: 20px; border-radius: 999px; background: oklch(10% 0 0); }
.sbar .sig { display: flex; gap: 3px; align-items: flex-end; }
.sbar .sig i { width: 3px; background: currentColor; border-radius: 1px; }
.pscroll { flex: 1; overflow: hidden; padding: 10px 14px 0; }
.greet { font: 400 22px/1.15 "Lora", Georgia, serif; margin: 6px 0 2px; }
.greet-sub { color: var(--text-3); font-size: 11.5px; margin-bottom: 14px; }
.pcard { background: var(--surface); border-radius: 14px; padding: 11px 12px; box-shadow: inset 0 0 0 1px var(--border); margin-bottom: 10px; }
.pcard h6 { margin: 0 0 6px; font-size: 13px; font-weight: 500; }
.pcard .row { font-size: 12px; padding: 7px 0; }
.pbar { display: flex; justify-content: space-around; align-items: center; height: 64px; padding: 0 6px 10px; background: var(--surface); border-top: 1px solid var(--border); }
.pnav { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9.5px; color: var(--text-2); width: 44px; }
.pnav .i { font-size: 18px; }
.phome { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; margin-top: -14px; box-shadow: 0 4px 12px -2px var(--accent-soft); }
.phome svg { width: 24px; height: 24px; }
.ppage .pg-title { font-size: 22px; }
.ppage .tabs { font-size: 12px; gap: 14px; margin: 10px 0 12px; }
.ppage .gal { height: 92px; grid-template-columns: 1fr 1fr; }
.ppage .cl li { min-height: 36px; font-size: 12.5px; }

/* ---------- Status marks (Jute's six, as WorkStatusGlyph draws them) ---------- */
/* One lightness, one chroma; only the hue moves. The same in light and dark. */
:root { --st-pl: oklch(0.62 0.04 250); --st-td: oklch(0.62 0.12 200); --st-ip: oklch(0.62 0.13 75); --st-oh: oklch(0.62 0.13 300); --st-dn: oklch(0.62 0.13 150); --st-cx: oklch(0.62 0.02 60); --late: var(--pdf); }
.sg { --h: var(--text-3); display: inline-grid; place-items: center; width: 13px; height: 13px; border-radius: 50%; flex: none; color: var(--surface); }
.sg.sq { width: 12px; height: 12px; border-radius: 25%; }
.sg.pl { --h: var(--st-pl); } .sg.td { --h: var(--st-td); } .sg.ip { --h: var(--st-ip); } .sg.oh { --h: var(--st-oh); } .sg.dn { --h: var(--st-dn); } .sg.cx { --h: var(--st-cx); }
.sg.pl, .sg.td { box-shadow: inset 0 0 0 1.6px var(--h); }
.sg.ip, .sg.oh { box-shadow: inset 0 0 0 1.6px var(--h); background: conic-gradient(var(--h) 0 50%, transparent 50% 100%); }
.sg.dn, .sg.cx { background: var(--h); }
.sg.dn::after { content: ""; width: 5px; height: 2.6px; border-left: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: translateY(-.5px) rotate(-45deg); }
.sg.cx::after { content: "\00d7"; font-size: 10px; line-height: 1; }
.sg.no { border: 1.3px dashed var(--text-3); }
.chip .sg { width: 10px; height: 10px; }
.via { color: var(--text-3); font-weight: 400; }
.hero-note { font-size: 13px; color: var(--text-3); margin-top: 18px; }
.jm code { font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--hover); padding: 1px 5px; border-radius: 4px; }
.late { color: var(--late); }
.rbar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--hover); }
.rbar i { height: 100%; width: var(--w); background: var(--h); }
.rbar .ns { --h: var(--st-td); } .rbar .ac { --h: var(--st-ip); } .rbar .pa { --h: var(--st-oh); } .rbar .dn { --h: var(--st-dn); }
.prl { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--border-strong); font-size: 12.5px; min-width: 0; }
.prose .prl, .prose .callout + .prl { margin-top: 12px; }
.prl .pri { width: 26px; height: 26px; flex: none; border-radius: 6px; display: grid; place-items: center; background: var(--surface-1); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border); font-size: 13px; }
.prl > div { min-width: 0; }
.prl b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prl small { color: var(--text-3); font-size: 11px; }
.evl { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); padding-left: 4px; }
.evl b { color: var(--text-2); font-weight: 500; }
.evl .sg { width: 11px; height: 11px; }

/* ---------- Dev demo: the Commission Log ---------- */
.dlog .app { height: 520px; }
.dlog .tr .sg { width: 10px; height: 10px; }
.dlog .tr.d1 { padding-left: 22px; } .dlog .tr.d2x { padding-left: 34px; } .dlog .tr.d3x { padding-left: 46px; } .dlog .tr.d4x { padding-left: 58px; } .dlog .tr.d5x { padding-left: 70px; }
.dlog .pane { display: none; }
.dlog:has(#cl-1:checked) .pane.p1, .dlog:has(#cl-2:checked) .pane.p2, .dlog:has(#cl-3:checked) .pane.p3, .dlog:has(#cl-4:checked) .pane.p4, .dlog:has(#cl-5:checked) .pane.p5 { display: block; }
.dlog:has(#cl-1:checked) [for="cl-1"], .dlog:has(#cl-2:checked) [for="cl-2"], .dlog:has(#cl-3:checked) [for="cl-3"], .dlog:has(#cl-4:checked) [for="cl-4"], .dlog:has(#cl-5:checked) [for="cl-5"] { background: var(--active); color: var(--text); }
.dlog:has(#cl-1:focus-visible) [for="cl-1"], .dlog:has(#cl-2:focus-visible) [for="cl-2"], .dlog:has(#cl-3:focus-visible) [for="cl-3"], .dlog:has(#cl-4:focus-visible) [for="cl-4"], .dlog:has(#cl-5:focus-visible) [for="cl-5"] { outline: 2px solid var(--accent); outline-offset: -2px; }
@supports not selector(:has(*)) { .dlog .pane.p1 { display: block; } }
.dlog .pg { overflow-y: auto; scrollbar-width: thin; }
.plist { display: flex; flex-direction: column; }
.plist > div { display: flex; align-items: center; gap: 9px; padding: 7px 2px; border-top: 1px solid var(--border); font-size: 12.5px; min-width: 0; }
.plist > div:first-child { border-top: 0; }
.plist > .ind { padding-left: 24px; }
.plist .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plist .rt { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; flex: none; }
.minimock { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border-radius: 10px; background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--border); }
.minimock .scr { height: 150px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border-strong); padding: 12px 9px; display: flex; flex-direction: column; gap: 5px; }
.minimock .scr i { display: block; height: 5px; border-radius: 3px; background: var(--hover); }
.minimock .scr i.h { width: 70%; height: 7px; background: var(--border-strong); }
.minimock .scr i.c { height: 26px; border-radius: 6px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.minimock .scr i.b { height: 16px; width: 60%; border-radius: 999px; background: var(--accent); margin-top: auto; align-self: center; }
.minimock p { font-size: 12px; color: var(--text-2); }

/* ---------- Dev demo: a question becomes a task ---------- */
.dtask .pg { padding: 18px 26px 22px; position: relative; }
.qlist { position: relative; display: flex; flex-direction: column; gap: 1px; margin-top: 4px; }
.qline { position: relative; display: flex; align-items: center; gap: 9px; min-height: 32px; padding: 2px 6px; margin: 0 -6px; border-radius: 6px; font-size: 13px; }
.qline .lead { display: grid; place-items: center; width: 15px; height: 15px; flex: none; }
.qline .lead > * { grid-area: 1 / 1; }
.qline .task-meta { display: none; }
.qline .more { margin-left: auto; color: var(--text-3); font-size: 13px; }
.q1 { background: var(--hover); }
.q1 .lead .sg { display: none; width: 14px; height: 14px; }
.lmenu { position: absolute; z-index: 3; right: 4px; top: 34px; width: 230px; background: var(--surface); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--border-strong), var(--pop); padding: 5px; font-size: 12.5px; }
.lmenu label { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 6px; cursor: pointer; background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.lmenu label .sg { width: 12px; height: 12px; }
.lmenu small { display: block; color: var(--text-3); font-size: 11px; padding: 5px 9px 3px; }
.dtask:has(#mk:focus-visible) .lmenu label { outline: 2px solid var(--accent); outline-offset: 2px; }
.reveal { display: none; margin: 6px 0 8px 24px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--border-strong); padding: 12px 14px 12px; background: var(--surface-1); font-size: 12.5px; }
.reveal .rh { font-size: 10.5px; color: var(--text-3); margin-bottom: 4px; }
.reveal h5 { margin: 0 0 6px; font: 500 15px/1.3 "Lora", Georgia, serif; }
.reveal .kv3 { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 3px 10px; margin: 8px 0 10px; color: var(--text-2); }
.reveal .kv3 b { font-weight: 500; color: var(--text); }
.reveal .cmts { border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 9px; }
.swapface { display: inline-grid; }
.swapface > * { grid-area: 1 / 1; }
.dtask:has(#mk:checked) .lmenu { display: none; }
.dtask:has(#mk:checked) .q1 .lead .box { display: none; }
.dtask:has(#mk:checked) .q1 .lead .sg { display: inline-grid; }
.dtask:has(#mk:checked) .q1 .task-meta { display: inline-flex; }
.dtask:has(#mk:checked) .q1 .more { display: none; }
.dtask:has(#mk:checked) .reveal { display: block; }
/* Without motion the line shows where it ends up: answered, Done. */
.dtask .was { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .dtask .reveal { animation: swap .35s cubic-bezier(.2,.7,.2,1); }
  .dtask .ans { animation: jrise .5s cubic-bezier(.2,.7,.2,1) 1.4s both; }
  .dtask .evt { animation: jrise .5s cubic-bezier(.2,.7,.2,1) 2.4s both; }
  .dtask .was { animation: jout .25s linear 2.5s both; }
  .dtask .now { animation: jin .25s linear 2.5s both; }
}

/* ---------- Dev demo: Progress ---------- */
.dprog { max-width: 980px; margin: 0 auto; width: 100%; }
.dprog:has(#pv-a:checked) [for="pv-a"], .dprog:has(#pv-b:checked) [for="pv-b"], .dprog:has(#pv-c:checked) [for="pv-c"],
.dagent:has(#ag1:checked) [for="ag1"], .dagent:has(#ag2:checked) [for="ag2"], .dagent:has(#ag3:checked) [for="ag3"] { background: var(--text); color: var(--bg); }
.dprog:has(#pv-a:focus-visible) [for="pv-a"], .dprog:has(#pv-b:focus-visible) [for="pv-b"], .dprog:has(#pv-c:focus-visible) [for="pv-c"],
.dagent:has(#ag1:focus-visible) [for="ag1"], .dagent:has(#ag2:focus-visible) [for="ag2"], .dagent:has(#ag3:focus-visible) [for="ag3"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.dprog .pg { padding: 18px 24px 20px; }
.pfilters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.findf { display: inline-flex; align-items: center; gap: 6px; height: 24px; width: 120px; padding: 0 9px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text-3); font-size: 11px; }
.pfilters .filter .i { font-size: 10px; }
.dprog:has(#pv-b:checked) .f-st, .dprog:has(#pv-c:checked) .f-st, .dprog:has(#pv-b:checked) .f-as, .dprog:has(#pv-c:checked) .f-gp { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.f-st .x1, .dprog:has(#pv-b:checked) .f-st .x0, .dprog:has(#pv-c:checked) .f-st .x0 { display: none; }
.dprog:has(#pv-b:checked) .f-st .x1, .dprog:has(#pv-c:checked) .f-st .x1 { display: inline; }
.psent { font-size: 11.5px; color: var(--text-3); margin-bottom: 10px; }
.phead { border-radius: 10px; box-shadow: inset 0 0 0 1px var(--border-strong); padding: 10px 14px 12px; margin-bottom: 6px; }
.phead .self { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; min-width: 0; }
.phead .self .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phead .self .rt { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 11px; color: var(--text-3); white-space: nowrap; }
.band-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--text-2); margin: 10px 0 6px; }
.band-meta b { font-weight: 500; color: var(--text); }
.band-words { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) 150px 96px 54px 62px; align-items: center; gap: 10px; min-height: 34px; padding: 0 4px; border-top: 1px solid var(--border); font-size: 12.5px; }
.prow.hd { min-height: 26px; border-top: 0; font-size: 10.5px; color: var(--text-3); }
.prow .tt { display: flex; align-items: center; gap: 7px; min-width: 0; padding-left: calc(var(--dp, 0) * 18px); }
.prow .fold { width: 10px; flex: none; font-size: 10px; color: var(--text-3); }
.prow .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .ru { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.prow .ru .rbar { height: 4px; }
.prow .ru small { font-size: 10px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .du { font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .du.late { color: var(--late); }
.prow .cg { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.pgroup { display: flex; align-items: center; gap: 8px; padding: 12px 4px 5px; font-size: 12px; font-weight: 500; }
.pgroup small { color: var(--text-3); font-weight: 400; }
.dprog .pv { display: none; }
.dprog:has(#pv-a:checked) .pv.a, .dprog:has(#pv-b:checked) .pv.b, .dprog:has(#pv-c:checked) .pv.c { display: block; }
@supports not selector(:has(*)) { .dprog .pv.a { display: block; } }
@media (prefers-reduced-motion: no-preference) { .dprog .pv { animation: swap .35s cubic-bezier(.2,.7,.2,1); } }

/* ---------- Dev demo: the Agenda ---------- */
.dag .pg { padding: 18px 24px 20px; position: relative; }
.agbar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.agbar .rt { margin-left: auto; display: inline-flex; gap: 6px; }
.agbtn { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border-strong); font-size: 11px; color: var(--text-2); white-space: nowrap; }
.agbtn .i { font-size: 11px; }
.agh { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 500; color: var(--text-2); margin: 16px 0 4px; }
.agh.lt { color: var(--late); }
.agh .rs { position: relative; font-weight: 400; font-size: 11.5px; color: var(--accent); cursor: pointer; padding: 2px 6px; margin-right: -6px; border-radius: 6px; }
.agh .rs:hover { background: var(--hover); }
.dag:has(#ag-menu:focus-visible) .agh .rs { outline: 2px solid var(--accent); outline-offset: 1px; }
.overdue { position: relative; }
.resmenu { display: none; position: absolute; z-index: 3; right: 0; top: 26px; width: 200px; background: var(--surface); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--border-strong), var(--pop); padding: 5px; font-size: 12.5px; color: var(--text); }
.resmenu h6 { margin: 0; padding: 5px 9px 4px; font-size: 11px; font-weight: 500; color: var(--text-3); }
.resmenu > span, .resmenu label { display: flex; justify-content: space-between; padding: 6px 9px; border-radius: 6px; }
.resmenu label { cursor: pointer; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.resmenu small { color: var(--text-3); }
.dag:has(#ag-fri:focus-visible) .resmenu label { outline: 2px solid var(--accent); outline-offset: 2px; }
.dag:has(#ag-menu:checked) .resmenu { display: block; }
.dag:has(#ag-fri:checked) .resmenu, .dag:has(#ag-fri:checked) .overdue { display: none; }
.agday { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); }
.badge { display: flex; flex-direction: column; align-items: center; font-size: 9.5px; line-height: 1.2; color: var(--text-3); text-transform: uppercase; letter-spacing: .03em; padding-top: 2px; }
.badge b { font: 500 18px/1.1 "Lora", Georgia, serif; color: var(--text); letter-spacing: 0; }
.badge.today, .badge.today b { color: var(--accent); }
.agrows { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.agrow { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.agrow .tm { width: 50px; flex: none; font-size: 11px; color: var(--text-3); padding-top: 1px; }
.agrow > .sg { margin-top: 3px; }
.agrow .evmark { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.agrow .mn { flex: 1; min-width: 0; }
.agrow .nl { display: flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.agrow .nl .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agrow .nl .avs { margin-left: auto; }
.agrow .sl { display: flex; flex-wrap: wrap; gap: 0 6px; font-size: 11px; color: var(--text-3); }
.agrow .sl .tr2::before { content: "\00b7"; margin-right: 6px; }
.dag .mv { display: none; }
.dag:has(#ag-fri:checked) .mv { display: flex; }
@media (prefers-reduced-motion: no-preference) { .dag:has(#ag-fri:checked) .mv { animation: jrise .5s cubic-bezier(.2,.7,.2,1) both; } }

/* ---------- Dev demo: agents ---------- */
.dagent { max-width: 980px; margin: 0 auto; width: 100%; }
.dagent .ap { display: none; }
.dagent:has(#ag1:checked) .ap.a1, .dagent:has(#ag2:checked) .ap.a2, .dagent:has(#ag3:checked) .ap.a3 { display: block; }
@supports not selector(:has(*)) { .dagent .ap.a1 { display: block; } }
@media (prefers-reduced-motion: no-preference) { .dagent .ap { animation: swap .35s cubic-bezier(.2,.7,.2,1); } }
.mcpurl { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 0 auto 18px; font-size: 13px; color: var(--text-2); text-align: center; }
.mcpurl code { font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 5px 10px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text); overflow-wrap: anywhere; }
.consent { max-width: 380px; margin: 0 auto; background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow); padding: 26px 24px 20px; text-align: center; font-size: 13px; }
.consent .connect { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; color: var(--text-3); }
.consent .tilec { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--border-strong); font-size: 20px; color: var(--eyebrow); }
.consent .tilec svg:not(.i) { width: 24px; height: 24px; color: var(--logo); }
.consent h4 { font: 500 19px/1.3 "Roboto", sans-serif; margin-bottom: 6px; }
.consent .ld { color: var(--text-2); }
.consent .acct { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--hover); font-size: 11.5px; color: var(--text-2); margin: 14px 0 16px; max-width: 100%; }
.consent .pl2 { text-align: left; font-size: 11.5px; color: var(--text-3); margin-bottom: 4px; }
.consent .perm { display: flex; gap: 10px; text-align: left; padding: 10px 0; border-top: 1px solid var(--border); }
.consent .perm .i { font-size: 16px; color: var(--text-2); margin-top: 1px; }
.consent .perm b { display: block; font-weight: 500; font-size: 12.5px; }
.consent .perm small { font-size: 11.5px; color: var(--text-3); }
.consent .btns { display: flex; gap: 8px; margin-top: 14px; }
.consent .btns .btn { flex: 1; height: 36px; }
.settings { display: grid; grid-template-columns: 176px minmax(0, 1fr); min-height: 380px; }
.setnav { background: var(--surface-1); border-right: 1px solid var(--border); padding: 14px 8px; font-size: 12px; display: flex; flex-direction: column; gap: 1px; }
.setnav span { padding: 5px 9px; border-radius: 6px; color: var(--text-2); }
.setnav span.on { background: var(--active); color: var(--text); }
.setpanel { padding: 18px 24px 22px; min-width: 0; }
.setpanel h5 { margin: 0 0 2px; font-size: 15px; font-weight: 500; }
.setpanel .inp { font-size: 11.5px; color: var(--text-3); margin-bottom: 2px; }
.setpanel .help { font-size: 12px; color: var(--text-2); margin-bottom: 12px; }
.instr { border-radius: 9px; box-shadow: inset 0 0 0 1px var(--border-strong); padding: 11px 13px; font-size: 12.5px; line-height: 1.55; color: var(--text); }
.instr p + p { margin-top: 7px; }
.instr-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--text-3); margin-top: 8px; flex-wrap: wrap; }
.work { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.term { background: oklch(17% 0.01 280); color: oklch(88% 0.01 280); border-radius: 12px; box-shadow: inset 0 0 0 1px oklch(100% 0 0 / .08), var(--shadow); font: 11.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; padding-bottom: 12px; overflow: hidden; text-align: left; }
.term .tbar { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; background: oklch(22% 0.01 280); color: oklch(66% 0.01 280); font: 11px/1 "Roboto", sans-serif; margin-bottom: 8px; }
.term .tbar .i { font-size: 13px; }
.term .ln { padding: 1px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.term .pr { color: oklch(86% 0.1 85); }
.term .tl { color: oklch(80% 0.1 205); }
.term .ok { color: oklch(80% 0.14 150); }
.term .dm { color: oklch(64% 0.01 280); }
.term .gap { height: 6px; }
@media (prefers-reduced-motion: no-preference) { .term .ln { animation: jfade .3s ease both; animation-delay: calc(.25s + var(--i, 0) * .45s); } }
.team-h { font-size: 11px; color: var(--text-3); margin: 2px 0 8px; }
.work .win .pg { padding: 16px 18px 18px; }
.work .thread { gap: 12px; }
.work .cmt { grid-template-columns: 22px minmax(0, 1fr); }

/* ---------- Dev demo: phones ---------- */
.mband { background: var(--surface); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); padding: 10px 11px; margin: 8px 0 8px; }
.mband .band-meta { margin: 0 0 6px; font-size: 11px; }
.mband .band-words { font-size: 10.5px; }
.mrow { display: flex; align-items: flex-start; gap: 9px; padding: 8px 2px; border-top: 1px solid var(--border); }
.mrow:first-of-type { border-top: 0; }
.mrow .sg { margin-top: 2px; width: 15px; height: 15px; }
.mrow .mn { flex: 1; min-width: 0; }
.mrow .nm { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow small { display: block; font-size: 10.5px; color: var(--text-3); }
.mrow .cg { font-size: 10.5px; color: var(--text-3); flex: none; padding-top: 1px; }
.mrow.ind { padding-left: 16px; }
.mrow .mb { height: 4px; margin: 3px 0 2px; }
.mrow .foldn { display: inline-flex; align-items: center; gap: 2px; flex: none; font-size: 10.5px; color: var(--text-3); padding-top: 1px; }
.ppage .agday { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
.ppage .agrow .nl { font-size: 12.5px; }

@media (max-width: 960px) {
  .work { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .dlog .app { height: auto; min-height: 460px; }
  .dlog .side { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px; border-right: 0; border-bottom: 1px solid var(--border); padding: 8px 10px; }
  .dlog .side > :not(label) { display: none; }
  .dlog .side label.tr { padding: 4px 9px; }
  .dlog .pg { overflow: visible; }
  .dtask .pg { padding: 16px 16px 18px; }
  .reveal { margin-left: 0; }
  .reveal .kv3 { grid-template-columns: minmax(0, 1fr); }
  .reveal .kv3 b { margin-top: 4px; }
  .dprog .pg, .dag .pg { padding: 16px 14px 18px; }
  .pfilters .opt2 { display: none; }
  .findf { width: 92px; }
  .prow { grid-template-columns: minmax(0, 1fr) 64px 20px; gap: 8px; }
  .prow .ru, .prow .cg { display: none; }
  .prow.hd .as { visibility: hidden; }
  .prow .tt { padding-left: calc(var(--dp, 0) * 12px); }
  .agbar .rt { margin-left: 0; }
  .agrow .tm { width: 44px; }
  .settings { grid-template-columns: minmax(0, 1fr); }
  .setnav { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--border); padding: 8px 10px; }
  .setnav span:not(.on) { display: none; }
  .setpanel { padding: 16px 16px 18px; }
  .consent { padding: 22px 18px 18px; }
}

/* ---------- End ---------- */
.end { text-align: center; padding: 120px 0 90px; }
.end-mark { width: 54px; height: 54px; color: var(--logo); margin: 0 auto 22px; display: block; }
.end p { color: var(--text-2); font-size: 17px; max-width: 520px; margin: 0 auto 28px; text-wrap: pretty; }
.end .links { display: flex; justify-content: center; gap: 22px; margin-top: 26px; font-size: 14px; flex-wrap: wrap; }
.end .links a { color: var(--text-2); text-decoration: none; }
.end .links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot { border-top: 1px solid var(--border); padding: 22px 0 30px; font-size: 12px; color: var(--text-3); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot em { font-family: "Lora", Georgia, serif; }

/* ---------- Motion (only when the reader allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-mark .c { stroke-dashoffset: 980; animation: draw 1.7s cubic-bezier(.6,.1,.3,1) .15s forwards; }
  .hero-mark .j { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .55s cubic-bezier(.2,.8,.2,1.2) 1.15s forwards; }
  .hero .rise { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
  .hero-win .b { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(1.1s + var(--d, 0s)); }
  .hero-win .cmt.new { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: 3.4s; }
  .try::before { animation: pulse 2.4s ease-in-out infinite; }
  html.js [data-reveal] { transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
  html.js [data-reveal]:not(.in) { opacity: 0; transform: translateY(22px); }
  html.js .apps:not(.in) .app-pill { transform: translate(var(--x, 0), var(--y, 0)) rotate(calc(var(--r, 0deg) * 3)); opacity: 0; }
  .apps .app-pill { transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity .6s ease; transition-delay: var(--d, 0s); }
  html.js .thread-card:not(.in) li { opacity: 0; transform: translateX(-8px); }
  .thread-card li { transition: opacity .5s ease, transform .5s ease; transition-delay: calc(.5s + var(--d, 0s)); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); } 50% { box-shadow: 0 0 0 7px transparent; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .app.with-rail { grid-template-columns: 180px minmax(0, 1fr); }
  .app.with-rail .rail { display: none; }
  .app { grid-template-columns: 180px minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .ch { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 84px 0; }
  .ch.flip { grid-template-columns: minmax(0, 1fr); }
  .ch.flip > .ch-copy { order: 0; }
  .ch-copy { max-width: 640px; }
  .d8 { justify-self: stretch; max-width: none; }
  .d5 { grid-template-columns: minmax(0, 1fr); }
  .problem-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .problem-grid .arrow { transform: rotate(90deg); justify-self: center; }
  .apps { height: 250px; max-width: 520px; width: 100%; justify-self: center; }
  .top-links { display: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .stage { padding: 0 16px; margin-top: 44px; }
  .hero { padding-top: 52px; }
  .app, .app.with-rail { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .hero-win .app { height: 500px; }
  .pg { padding: 16px 18px 18px; }
  .d2 .pg { padding: 18px 18px 22px; }
  .d1 .app { height: auto; min-height: 420px; }
  .d1 .side { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px; border-right: 0; border-bottom: 1px solid var(--border); padding: 8px 10px; }
  .d1 .side > :not(label) { display: none; }
  .d1 .side label.tr { padding: 4px 9px; }
  .d1 .side label.tr .chev { display: none; }
  .d3 .app, .d7 .app { grid-template-columns: minmax(0, 1fr); }
  .agenda, .libp { border-left: 0; border-top: 1px solid var(--border); }
  .cards, .ov { grid-template-columns: minmax(0, 1fr); }
  .cards .card:nth-child(n+3) { display: none; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seg label { padding: 0 11px; height: 32px; font-size: 12.5px; }
  .seg label .i { display: none; }
  .gal { height: 104px; }
  .form { grid-template-columns: 88px minmax(0, 1fr); }
  .entry { grid-template-columns: 44px minmax(0, 1fr); }
  .entry .tag { display: none; }
  .post { grid-template-columns: minmax(0, 1fr) 72px; }
  .phones { flex-direction: column; align-items: center; }
  .phone + .phone { margin-top: 0; }
  .tabs { gap: 12px; }
  .tabs .lay { display: none; }
  .jai { height: 540px; }
  .apps { height: 300px; }
}
@media (max-width: 420px) {
  .hero-cta .btn { width: 100%; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone { width: 248px; }
}

@media print {
  .top, .try { display: none; }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .ch { break-inside: avoid; padding: 40px 0; }
}
