/* Keyward site styles. Tokens mirror cloud/DESIGN.md. */
:root {
  --ink: #0f1330;
  --ink-raised: #1a2048;
  --ink-line: #2e3668;
  --on-ink: #eef0fa;
  --on-ink-muted: #b3b9da;
  --paper: #f6f7fb;
  --surface: #ffffff;
  --line: #dde1ec;
  --text: #0f1330;
  --text-muted: #4a5170;
  --patch: #ff6a3d;
  --patch-deep: #ec5528;
  --cord: #3d5afe;
  --cord-text: #2b45d8;
  --cord-wash: #e9edff;
  --danger: #c42b3a;
  --danger-wash: #fdecee;
  --wait: #8a5200;
  --wait-wash: #fff3dc;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --gutter: 24px;
  --max: 1160px;
  --section: clamp(64px, 10vw, 120px);
  --lift: 0 10px 30px -12px rgba(15, 19, 48, 0.35);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cord-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: inherit; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code, .kw { font-family: var(--font-mono); }
:focus-visible { outline: 3px solid var(--cord); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: var(--r-md);
  font-weight: 600; box-shadow: var(--lift);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--r-md);
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .18s, border-color .18s, transform .18s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--patch); color: var(--ink); }
.btn-primary:hover { background: var(--patch-deep); text-decoration: none; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); text-decoration: none; }
.btn-on-ink { background: var(--ink-raised); color: var(--on-ink); border-color: var(--ink-line); }
.btn-on-ink:hover { border-color: var(--on-ink-muted); text-decoration: none; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1.0625rem; }
.btn svg { flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(15, 19, 48, 0.96); color: var(--on-ink); border-bottom: 1px solid var(--ink-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 700 1.25rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a.link { color: var(--on-ink); text-decoration: none; padding: 10px 12px; border-radius: var(--r-md); font-weight: 500; font-size: .96rem; }
.site-nav a.link:hover { background: var(--ink-raised); }
.site-nav .btn { min-height: 44px; padding: 9px 16px; font-size: .95rem; }
@media (max-width: 560px) { .site-nav a.hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--on-ink); padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); overflow: hidden; position: relative; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
.hero h1 .kw-inline { font-family: var(--font-mono); font-weight: 500; font-size: .74em; letter-spacing: 0.02em; background: var(--patch); color: var(--ink); padding: .04em .28em; border-radius: 8px; vertical-align: .08em; }
.hero .lede { margin-top: 22px; font-size: clamp(1.0625rem, 1.5vw, 1.2rem); color: var(--on-ink-muted); max-width: 34rem; }
.hero .lede strong { color: var(--on-ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--on-ink-muted); font-size: .94rem; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { color: var(--cord); flex: none; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

/* ---------- The patch bay demo ---------- */
.bay {
  position: relative; background: var(--ink-raised); border: 1px solid var(--ink-line); border-radius: var(--r-lg);
  padding: 22px; min-height: 420px;
}
.bay .screw { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.bay .screw.tl { top: 12px; left: 12px; } .bay .screw.tr { top: 12px; right: 12px; }
.bay .screw.bl { bottom: 12px; left: 12px; } .bay .screw.br { bottom: 12px; right: 12px; }
.bay-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 8px 14px; border-bottom: 1px solid var(--ink-line); }
.bay-head .tag { font-size: .8rem; font-weight: 600; color: var(--on-ink-muted); display: inline-flex; align-items: center; gap: 8px; }
.bay-head .tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--patch); }
.bay-head .example { font-size: .75rem; font-weight: 600; color: var(--ink); background: var(--on-ink-muted); padding: 3px 8px; border-radius: 999px; }
.bay-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-top: 18px; }
.bay-col .bay-label { font: 600 .8rem/1.2 var(--font-body); color: var(--on-ink-muted); margin: 0 0 12px; letter-spacing: .01em; }
.post-card { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.post-thumb { width: 44px; height: 44px; border-radius: 8px; flex: none; background:
  radial-gradient(circle at 30% 30%, #ffb199 0 18%, transparent 19%),
  linear-gradient(135deg, #3d5afe 0%, #7b61ff 55%, #ff6a3d 100%); }
.post-meta { font-size: .82rem; line-height: 1.35; color: var(--on-ink-muted); }
.post-meta b { color: var(--on-ink); font-weight: 600; display: block; }
.comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.comment { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.comment .av { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 700 .75rem/1 var(--font-body); color: var(--ink); }
.comment .av-1 { background: var(--cord-wash); } .comment .av-2 { background: #FFB199; } .comment .av-3 { background: var(--on-ink-muted); }
.comment .who { font-weight: 600; font-size: .82rem; color: var(--on-ink); }
.comment .txt { font-size: .9rem; color: var(--on-ink); line-height: 1.4; }
.comment .kwc { font-family: var(--font-mono); font-size: .86em; padding: 1px 6px; border-radius: 5px; background: rgba(233,237,255,.12); transition: background-color .3s, color .3s; }
.comment.hit { border-color: rgba(255,106,61,.55); background: rgba(255,106,61,.08); }
.comment.hit .kwc { background: var(--patch); color: var(--ink); }
.comment .jack { margin-left: auto; align-self: center; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--ink-line); flex: none; transition: border-color .3s; }
.comment.hit .jack { border-color: var(--patch); }
.dm { background: var(--surface); color: var(--ink); border-radius: 14px; padding: 14px; box-shadow: var(--lift); }
.dm.on { animation: dm-arrive .45s var(--ease-out); }
@keyframes dm-arrive { from { transform: translateY(6px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .dm.on { animation: none; } }
.dm-top { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.dm-top .jack { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--line); flex: none; transition: border-color .3s; }
.dm.on .dm-top .jack { border-color: var(--patch); }
.bubble { background: var(--paper); border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: .9rem; line-height: 1.45; }
.bubble + .bubble { margin-top: 8px; }
.bubble-btn { display: block; margin-top: 10px; text-align: center; background: var(--cord-text); color: #fff; font-weight: 600; font-size: .88rem; border-radius: 10px; padding: 9px; }
.dm-note { margin-top: 12px; font-size: .78rem; color: var(--on-ink-muted); display: flex; gap: 8px; align-items: center; }
.cable { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.cable path { fill: none; stroke: var(--patch); stroke-width: 4; stroke-linecap: round; }
.cable .plug { fill: var(--patch); opacity: 0; }
.cable .plug.on { opacity: 1; }
@media (max-width: 640px) {
  .bay { padding: 16px; min-height: 0; }
  .bay-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-head { max-width: 44rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.03em; }
.section-head p { margin-top: 16px; color: var(--text-muted); font-size: 1.125rem; max-width: 40rem; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Use-case strip: labelled jacks */
.labels { padding: 28px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.labels .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.labels .lead { font-weight: 600; color: var(--text-muted); font-size: .95rem; margin-right: 4px; }
.label { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--text); }
.chip { font-family: var(--font-mono); font-weight: 500; font-size: .84rem; letter-spacing: .04em; text-transform: uppercase; background: var(--cord-wash); color: var(--ink); border: 1px solid rgba(61,90,254,.3); padding: 3px 8px; border-radius: var(--r-sm); white-space: nowrap; }
.label .arrow { color: var(--text-muted); }

/* Steps: three jacks on one cable */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; position: relative; }
.steps::before { content: ""; position: absolute; top: 9px; left: 9px; right: 30%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--patch) 0 100%); }
.step { position: relative; }
.step .jack { width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 4px solid var(--patch); position: relative; z-index: 1; }
.step h3 { margin-top: 22px; font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; }
.step p { margin-top: 8px; color: var(--text-muted); }
.step .frag { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; font-size: .92rem; }
.section.alt .step .frag { background: var(--paper); }
.frag .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.frag .row + .row { margin-top: 10px; }
.frag .muted { color: var(--text-muted); font-size: .85rem; }
.meta-btn { display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--on-ink); border-radius: 8px; padding: 9px 12px; font-weight: 600; font-size: .88rem; }
.meta-btn + .meta-btn { margin-top: 8px; }
.toggle-demo { width: 44px; height: 26px; border-radius: 999px; background: var(--cord); position: relative; flex: none; }
.toggle-demo::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { top: 9px; bottom: 30px; left: 9px; right: auto; width: 4px; height: auto; }
  .step { padding-left: 44px; }
  .step .jack { position: absolute; left: 0; top: 0; }
  .step h3 { margin-top: 0; }
}

/* Split feature */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split .copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.03em; }
.split .copy p { margin-top: 16px; color: var(--text-muted); font-size: 1.0625rem; max-width: 36rem; }
.split .copy ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.split .copy li { display: flex; gap: 12px; align-items: flex-start; }
.split .copy li svg { color: var(--cord); flex: none; margin-top: 4px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .visual { order: 2; } }

.thread { background: var(--ink); border-radius: var(--r-lg); padding: 22px; position: relative; color: var(--on-ink); }
.thread .example { position: absolute; top: 16px; right: 16px; font-size: .75rem; font-weight: 600; color: var(--ink); background: var(--on-ink-muted); padding: 3px 8px; border-radius: 999px; }
.thread .t-head { font-size: .82rem; color: var(--on-ink-muted); margin-bottom: 16px; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 16px; font-size: .92rem; line-height: 1.45; }
.msg + .msg { margin-top: 10px; }
.msg.out { background: var(--surface); color: var(--ink); border-bottom-left-radius: 4px; }
.msg.in { background: var(--cord); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.msg .b { display: block; margin-top: 8px; background: var(--cord-wash); color: var(--cord-text); font-weight: 600; text-align: center; padding: 8px; border-radius: 10px; }
.msg-note { font-size: .75rem; color: var(--on-ink-muted); margin: 12px 0; display: flex; align-items: center; gap: 10px; }
.msg-note::before, .msg-note::after { content: ""; flex: 1; height: 1px; background: var(--ink-line); }

/* Platform comparison */
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; font-size: 1rem; }
.compare th, .compare td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 700 1.05rem/1.2 var(--font-display); background: var(--paper); }
.compare tbody th { font-weight: 600; width: 34%; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.yes { color: var(--cord-text); font-weight: 600; }
.no { color: var(--text-muted); }
.table-scroll { overflow-x: auto; border-radius: var(--r-lg); }

/* Honest answers (objections in the body) */
.answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.answer { padding: 24px 0; border-top: 1px solid var(--line); }
.answer h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em; }
.answer p { margin-top: 8px; color: var(--text-muted); }
@media (max-width: 760px) { .answers { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; }
.plan.featured { background: var(--ink); color: var(--on-ink); border-color: var(--ink); position: relative; }
.plan h3 { font-size: 1.35rem; }
.plan .price { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font: 700 2.6rem/1 var(--font-display); letter-spacing: -0.03em; }
.plan .price span { color: var(--text-muted); }
.plan.featured .price span, .plan.featured .for { color: var(--on-ink-muted); }
.plan .for { margin-top: 10px; color: var(--text-muted); font-size: .98rem; min-height: 3em; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; font-size: .98rem; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { color: var(--cord); flex: none; margin-top: 4px; }
.plan.featured li svg { color: var(--patch); }
.plan .btn { margin-top: auto; width: 100%; }
.soon { display: inline-block; margin-left: 8px; vertical-align: middle; font: 600 .75rem/1 var(--font-body); background: var(--wait-wash); color: var(--wait); padding: 5px 8px; border-radius: 999px; }
.plan-note { margin-top: 18px; color: var(--text-muted); font-size: .95rem; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 48rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 700 1.125rem/1.35 var(--font-display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 0 22px; color: var(--text-muted); max-width: 42rem; }
.faq .a p + p { margin-top: 10px; }

/* Closing band */
.close { background: var(--ink); color: var(--on-ink); padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.close .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center; }
.close h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.03em; }
.close p { margin-top: 12px; color: var(--on-ink-muted); max-width: 36rem; }
.close .actions { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 760px) { .close .wrap { grid-template-columns: 1fr; } .close .actions .btn { width: 100%; } }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); border-top: 1px solid var(--ink-line); padding: 40px 0 48px; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .fine { margin-top: 10px; max-width: 34rem; font-size: .88rem; }

/* ---------- Document pages (privacy, terms, deletion, contact) ---------- */
.doc-hero { background: var(--ink); color: var(--on-ink); padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); }
.doc-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; }
.doc-hero p { margin-top: 14px; color: var(--on-ink-muted); max-width: 40rem; }
.doc { padding: clamp(40px, 6vw, 72px) 0 var(--section); }
.doc .wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 88px; font-size: .92rem; }
.toc h2 { font: 600 .85rem/1.2 var(--font-body); color: var(--text-muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; color: var(--text); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.toc a:hover { background: var(--surface); }
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.6rem; line-height: 1.2; letter-spacing: -0.02em; margin: 48px 0 12px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.prose p, .prose li { color: #2c3252; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 12px 0; }
.prose li + li { margin-top: 6px; }
.prose code { font-size: .88em; background: var(--cord-wash); padding: 2px 6px; border-radius: 5px; }
.perm { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: .95rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.perm th, .perm td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.perm thead th { background: var(--paper); font-weight: 600; }
.perm td:first-child { font-family: var(--font-mono); font-size: .86rem; white-space: nowrap; }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; margin: 20px 0; }
.callout strong { display: block; margin-bottom: 4px; }
.updated { color: var(--on-ink-muted); font-size: .92rem; }
@media (max-width: 860px) {
  .doc .wrap { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
  .perm td:first-child { white-space: normal; word-break: break-word; }
}

/* Forms (contact) */
.form { display: grid; gap: 18px; max-width: 36rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .hint { font-size: .85rem; color: var(--text-muted); margin-top: 6px; }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid #c9cfdf; background: var(--surface);
  font: 400 1rem/1.4 var(--font-body); color: var(--text);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(61,90,254,.35); outline-offset: 0; border-color: var(--cord); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--r-md); padding: 14px 16px; font-size: .95rem; }
.notice.ok { background: var(--cord-wash); color: var(--ink); }
.notice.err { background: var(--danger-wash); color: var(--danger); }

/* Deletion status page (rendered by the worker) */
.doc-page { background: var(--paper); }
.doc-header { background: var(--ink); color: var(--on-ink); padding: 18px var(--gutter); }
.doc-main { max-width: 40rem; margin: 0 auto; padding: 56px var(--gutter) 96px; }
.doc-main h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px; }
.doc-main p { color: var(--text-muted); margin-top: 14px; }
.doc-back { font-size: .95rem; }
.status-list { margin: 20px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px 18px; }
.status-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.status-list div:last-child { border-bottom: 0; }
.status-list dt { color: var(--text-muted); }
.status-list dd { margin: 0; font-weight: 600; text-align: right; word-break: break-all; }
.pill { display: inline-block; font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.pill-done { background: var(--cord-wash); color: var(--cord-text); }
.pill-wait { background: var(--wait-wash); color: var(--wait); }
.inline-form { margin-top: 20px; }
.inline-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.inline-form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form-row input { flex: 1 1 220px; min-height: 48px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid #c9cfdf; font: 400 1rem var(--font-mono); }

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); }
.nf h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
.nf p { color: var(--text-muted); margin: 12px auto 28px; max-width: 30rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
