/* Discovery portal. Daybreak tokens from modernmt.ai, recast calmer for forms and file review.
   Light only: clients read this outdoors, between jobs, on a phone. See DESIGN.md. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-var-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Surfaces and text (OKLCH, every neutral carries the brand hue) */
  --paper: oklch(0.965 0.004 250);
  --paper-2: oklch(0.94 0.006 250);
  --panel: oklch(0.99 0.003 250);
  --ink: oklch(0.27 0.02 262);
  --ink-soft: oklch(0.4 0.016 262);
  --ink-quiet: oklch(0.5 0.012 262);

  /* One accent. sky is for marks and fills, sky-deep for text and buttons (contrast). */
  --sky: oklch(0.62 0.13 250);
  --sky-deep: oklch(0.5 0.14 255);
  --sky-deeper: oklch(0.43 0.13 256);
  --sky-wash: oklch(0.925 0.035 250);
  --bloom: oklch(0.58 0.07 285);
  --sun-wash: oklch(0.9 0.08 90);
  --mint-deep: oklch(0.45 0.09 165);
  --mint-wash: oklch(0.93 0.035 170);
  --danger: oklch(0.5 0.19 25);
  --danger-wash: oklch(0.945 0.03 25);

  --rule: oklch(0.42 0.01 262 / 0.16);
  --rule-strong: oklch(0.42 0.01 262 / 0.36);

  /* Radii */
  --r-sm: 0.9rem;
  --r-md: 1.25rem;
  --r-lg: 1.75rem;
  --r-pill: 999px;

  /* Spacing, 4px base */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;

  /* Motion */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-mid: 420ms;

  /* Type */
  --ff-display: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
  --ff-body: "Geist", system-ui, sans-serif;
  --ff-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-small: 0.875rem;
  --fs-body: 1rem;
  --fs-lede: 1.125rem;
  --fs-h3: 1.2rem;
  --fs-h2: clamp(1.5rem, 4.2vw, 2rem);
  --fs-h1: clamp(2.35rem, 9vw, 3.6rem);
  --tr-display: -0.035em;
  --measure: 66ch;

  --shell: 72rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--sky-deep);
  accent-color: var(--sky-deep);
  scrollbar-color: var(--rule-strong) transparent;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, color-mix(in oklch, var(--sky) 14%, transparent), transparent 32%),
    radial-gradient(circle at 92% 78%, color-mix(in oklch, var(--bloom) 10%, transparent), transparent 36%);
}
#app { position: relative; z-index: 1; }
::selection { background: var(--sky-wash); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

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

:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; border-radius: 4px; }
h1:focus, h2:focus, main:focus { outline: none; }

a { color: var(--sky-deep); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--sky-deeper); }

/* ---- Type ---- */
h1, h2, h3 { font-family: var(--ff-display); color: var(--ink); line-height: 1.04; letter-spacing: var(--tr-display); text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 650; }
h3 { font-size: var(--fs-h3); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
p { max-width: var(--measure); text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }
.lede { font-size: var(--fs-lede); color: var(--ink-soft); line-height: 1.5; }
.small { font-size: var(--fs-small); }
.quiet { color: var(--ink-quiet); }
.nowrap { white-space: nowrap; }

/* ---- Layout ---- */
.shell { width: min(100% - 2 * var(--gutter), var(--shell)); margin-inline: auto; }
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding-block: var(--s-4); border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--ink); text-decoration: none; font-family: var(--ff-display); font-weight: 700; font-size: 1.05rem; line-height: 1; letter-spacing: -0.02em; }
.brand img { width: 2.4rem; height: 2.2rem; object-fit: contain; }
.brand:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: var(--s-3); }
.site-footer {
  margin-top: var(--s-8); padding-block: var(--s-5) var(--s-6); border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-5);
  color: var(--ink-quiet); font-size: var(--fs-small);
}
.site-footer p { max-width: 44rem; }

.page { padding-block: var(--s-7) 0; }
.page--narrow { max-width: 46rem; margin-inline: 0; }
.page--wide { max-width: 60rem; }

.room { display: grid; gap: var(--s-7); padding-top: var(--s-6); }
.room > * { min-width: 0; }
@media (min-width: 62rem) {
  .room { grid-template-columns: 17.5rem minmax(0, 1fr); column-gap: var(--s-8); padding-top: var(--s-7); }
  .room > * { grid-column: 2; }
  .room > .trail-wrap { grid-column: 1; grid-row: 1 / span 8; align-self: start; position: sticky; top: var(--s-5); }
}

.intro { display: grid; gap: var(--s-3); padding-top: var(--s-6); }
.intro h1 { max-width: 14ch; }
@media (min-width: 62rem) { .intro { padding-top: var(--s-7); } .intro h1 { max-width: 18ch; } }

.section { display: grid; gap: var(--s-4); align-content: start; }
.section + .section { border-top: 1px solid var(--rule); padding-top: var(--s-6); }
.section-head { display: grid; gap: var(--s-2); }
.stack { display: grid; gap: var(--s-4); }
.stack-lg { display: grid; gap: var(--s-6); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 3rem; padding: 0.7rem 1.4rem;
  border: 1px solid var(--rule-strong); border-radius: var(--r-pill);
  background: transparent; color: var(--ink);
  font: 600 0.98rem/1.2 var(--ff-display); letter-spacing: -0.01em; text-decoration: none;
  cursor: pointer; touch-action: manipulation;
  transition: background var(--dur-fast) var(--ease-out-quart), border-color var(--dur-fast) var(--ease-out-quart), color var(--dur-fast) var(--ease-out-quart);
}
.btn:hover { border-color: var(--sky-deep); color: var(--sky-deep); }
.btn--primary { background: var(--sky-deep); border-color: var(--sky-deep); color: var(--paper); }
.btn--primary:hover { background: var(--sky-deeper); border-color: var(--sky-deeper); color: var(--paper); }
.btn--danger { color: var(--danger); border-color: color-mix(in oklch, var(--danger) 50%, transparent); }
.btn--danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-wash); }
.btn--danger-solid { background: var(--danger); border-color: var(--danger); color: var(--paper); }
.btn--danger-solid:hover { background: oklch(0.43 0.18 25); border-color: oklch(0.43 0.18 25); color: var(--paper); }
.btn--link {
  min-height: 2.75rem; padding: 0.4rem 0.25rem; border-color: transparent; border-radius: var(--r-sm);
  color: var(--sky-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; font-weight: 600;
}
.btn--link:hover { color: var(--sky-deeper); border-color: transparent; }
.btn--sm { min-height: 2.75rem; padding: 0.4rem 1rem; font-size: 0.9rem; }
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--paper-2); border-color: var(--rule); color: var(--ink-quiet); cursor: not-allowed;
}
.btn .icon { width: 1.15rem; height: 1.15rem; flex: none; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Fields ---- */
.field { display: grid; gap: var(--s-2); }
.field > label, .field > .label { font-weight: 600; color: var(--ink); }
.hint { color: var(--ink-quiet); font-size: var(--fs-small); max-width: var(--measure); }
input[type="text"], input[type="password"], input[type="number"], input[type="url"], textarea, select {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem;
  border: 1px solid var(--rule-strong); border-radius: var(--r-sm);
  background: var(--panel); color: var(--ink); font: inherit; line-height: 1.4;
}
textarea { min-height: 12rem; resize: vertical; line-height: 1.55; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 1px; border-color: var(--sky-deep); }
input[readonly] { background: var(--paper-2); }
.check { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: var(--s-3); align-items: start; padding-block: var(--s-2); cursor: pointer; color: var(--ink); }
.check input { width: 1.5rem; height: 1.5rem; margin: 0.1rem 0 0; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-input:focus-visible + .btn, .btn:has(+ .file-input:focus-visible) { outline: 3px solid var(--sky-deep); outline-offset: 3px; }

/* ---- Messages ---- */
.notice {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3); align-items: start;
  padding: var(--s-4); border-radius: var(--r-md); background: var(--sky-wash); color: var(--ink);
}
.notice .icon { width: 1.4rem; height: 1.4rem; margin-top: 0.1rem; color: var(--sky-deep); }
.notice--ok { background: var(--mint-wash); }
.notice--ok .icon { color: var(--mint-deep); }
.notice--error { background: var(--danger-wash); }
.notice--error .icon { color: var(--danger); }
.notice--warn { background: var(--sun-wash); }
.notice--warn .icon { color: var(--ink); }
.notice p { max-width: none; }
.notice-body { display: grid; gap: var(--s-2); }
.notice-body .btn { justify-self: start; }
.field-error { color: var(--danger); font-size: var(--fs-small); font-weight: 600; }

/* ---- Explainer ---- */
.explainer { display: grid; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--rule-strong); border-radius: var(--r-lg); background: var(--panel); }
.explainer-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); color: var(--ink-quiet); font-size: var(--fs-small); }
.explainer h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); }
.explainer p { font-size: var(--fs-lede); line-height: 1.55; }
.explainer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.explainer-slide { display: grid; gap: var(--s-3); animation: slide-in var(--dur-mid) var(--ease-out-expo); }
@keyframes slide-in { from { opacity: 0; transform: translateX(0.75rem); } to { opacity: 1; transform: none; } }

/* ---- What happens next ---- */
.next { display: grid; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-lg); background: var(--ink); color: oklch(0.92 0.01 250); }
.next h2 { color: var(--paper); font-size: clamp(1.55rem, 5.2vw, 2.1rem); max-width: 20ch; }
.next p { color: oklch(0.86 0.012 250); font-size: var(--fs-lede); line-height: 1.5; }
.next .btn { border-color: oklch(0.86 0.012 250 / 0.55); color: var(--paper); }
.next .btn:hover { border-color: var(--paper); color: var(--paper); background: oklch(1 0 0 / 0.08); }
.next .btn--primary { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.next .btn--primary:hover { background: var(--sky-wash); border-color: var(--sky-wash); color: var(--ink); }
.next :focus-visible { outline-color: var(--paper); }

/* ---- Trail: the stage tracker ---- */
.trail { list-style: none; padding: 0; display: grid; }
.trail-step { position: relative; display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: var(--s-4); padding-bottom: var(--s-5); }
.trail-step:last-child { padding-bottom: 0; }
.trail-step::after { content: ""; position: absolute; left: calc(0.75rem - 1px); top: 1.55rem; bottom: 0.1rem; width: 2px; background: var(--rule); }
.trail-step:last-child::after { display: none; }
.trail-step--done::after { background: var(--sky-deep); }
.trail-node { position: relative; z-index: 1; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-top: 0.1rem; border-radius: 50%; border: 2px solid var(--rule-strong); background: var(--paper); color: var(--paper); }
.trail-node .icon { width: 0.85rem; height: 0.85rem; stroke-width: 2.5; }
.trail-step--done .trail-node { background: var(--sky-deep); border-color: var(--sky-deep); }
.trail-step--active .trail-node { border-color: var(--sky-deep); background: var(--panel); box-shadow: 0 0 0 4px var(--sky-wash); }
.trail-step--active .trail-node::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--sky-deep); }
.trail-text { display: grid; gap: 0.15rem; min-width: 0; }
.trail-label { font-family: var(--ff-display); font-weight: 650; font-size: 1.08rem; line-height: 1.25; color: var(--ink); letter-spacing: -0.015em; }
.trail-step--locked .trail-label { color: var(--ink-quiet); font-weight: 550; }
.trail-state { font-size: var(--fs-small); color: var(--ink-quiet); }
.trail-step--active .trail-state { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.45; max-width: 34ch; }
.trail-step--active .trail-state strong { display: block; color: var(--sky-deep); }

/* ---- Lists with hairlines ---- */
.rows { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.row { display: grid; gap: var(--s-3) var(--s-4); padding-block: var(--s-4); border-bottom: 1px solid var(--rule); align-items: center; }
.row-main { display: grid; gap: 0.2rem; min-width: 0; }
.row-title { color: var(--ink); font-family: var(--ff-display); font-weight: 650; font-size: 1.1rem; line-height: 1.25; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.row-meta { font-size: var(--fs-small); color: var(--ink-quiet); overflow-wrap: anywhere; }
.row-meta--ok { color: var(--mint-deep); font-weight: 600; }
.row-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
@media (min-width: 40rem) { .row { grid-template-columns: minmax(0, 1fr) auto; } }

.pill { display: inline-flex; align-items: center; padding: 0.15rem 0.65rem; border-radius: var(--r-pill); background: var(--paper-2); color: var(--ink-soft); font-size: 0.8rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.pill--ok { background: var(--mint-wash); color: var(--mint-deep); }
.pill--warn { background: var(--sun-wash); color: var(--ink); }
.pill--off { background: var(--danger-wash); color: var(--danger); }

/* ---- Reading: agreements ---- */
.back { justify-self: start; margin-left: -0.25rem; }
.prose { display: grid; gap: var(--s-4); max-width: 68ch; line-height: 1.68; color: var(--ink-soft); }
.prose > * { max-width: none; }
.prose h1, .prose h2, .prose h3 { margin-top: var(--s-5); }
.prose h1 { font-size: clamp(1.7rem, 6vw, 2.3rem); margin-top: 0; }
.prose h2 { font-size: clamp(1.3rem, 4.4vw, 1.6rem); }
.prose h3 { font-size: 1.15rem; }
.prose ol, .prose ul { display: grid; gap: var(--s-2); padding-left: 1.4rem; }
.prose ol ul, .prose ul ul, .prose ol ol { margin-top: var(--s-2); }
.prose li { padding-left: 0.2rem; }
.prose li::marker { color: var(--ink-quiet); }
.prose hr { border: 0; border-top: 1px solid var(--rule-strong); margin-block: var(--s-4); }
.prose code { font-family: var(--ff-code); font-size: 0.9em; padding: 0.05em 0.35em; border-radius: 0.4em; background: var(--sky-wash); color: var(--sky-deeper); }
.table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--panel); }
.table-scroll:focus-visible { outline-offset: 2px; }
.data { border-collapse: collapse; width: 100%; font-size: 0.92rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.data th, .data td { padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.data th { color: var(--ink); font-weight: 650; background: var(--paper-2); white-space: nowrap; }
.data tr:last-child td { border-bottom: 0; }
.data td { min-width: 7rem; color: var(--ink); }
.prose .data td { min-width: 9rem; color: var(--ink-soft); }
.sign { display: grid; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--rule-strong); border-radius: var(--r-lg); background: var(--panel); }
.sign-done { display: grid; gap: var(--s-1); padding: var(--s-4); border-radius: var(--r-md); background: var(--mint-wash); color: var(--ink); }

/* ---- Documents ---- */
.drop { display: grid; gap: var(--s-4); }
.progress { display: grid; gap: var(--s-3); padding: var(--s-5); border: 1px solid var(--rule-strong); border-radius: var(--r-lg); background: var(--panel); }
progress { appearance: none; width: 100%; height: 0.6rem; border: 0; border-radius: var(--r-pill); background: var(--paper-2); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--paper-2); }
progress::-webkit-progress-value { background: var(--sky-deep); border-radius: var(--r-pill); }
progress::-moz-progress-bar { background: var(--sky-deep); border-radius: var(--r-pill); }

.ledger { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.ledger li { display: flex; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-3); border-bottom: 1px solid var(--rule); color: var(--ink); }
.ledger .count { font-family: var(--ff-display); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--sky-deep); }
.ledger-empty { padding: var(--s-4); border-radius: var(--r-md); background: var(--sun-wash); color: var(--ink); }

.preview { display: grid; gap: var(--s-3); }
.preview-text { display: grid; gap: var(--s-1); padding: var(--s-4); border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--panel); max-height: 26rem; overflow: auto; color: var(--ink); line-height: 1.6; }
.preview-text p { max-width: none; overflow-wrap: anywhere; min-height: 1.6em; }
.preview .table-scroll { max-height: 28rem; overflow: auto; }
.token {
  display: inline-block; padding: 0 0.4em; border-radius: 0.45em; background: var(--sky-wash); color: var(--sky-deeper);
  font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap;
  animation: token-settle 1400ms var(--ease-out-expo) 1;
}
@keyframes token-settle { from { background: var(--sun-wash); color: var(--ink); } to { background: var(--sky-wash); color: var(--sky-deeper); } }

.terms { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.term { display: inline-flex; align-items: center; gap: var(--s-1); padding: 0.1rem 0.25rem 0.1rem 0.8rem; border-radius: var(--r-pill); background: var(--sky-wash); color: var(--ink); font-size: 0.92rem; }
.term .btn--link { min-height: 2.5rem; min-width: 2.5rem; padding: 0; justify-content: center; text-decoration: none; }
.term .icon { width: 1rem; height: 1rem; }
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3); align-items: end; }
.approve { display: grid; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--rule-strong); border-radius: var(--r-lg); background: var(--panel); }
.saved-as { color: var(--ink); font-size: var(--fs-small); }
.saved-as .token { animation: none; }

.key { display: grid; gap: var(--s-4); }
.key-warn { display: grid; gap: var(--s-2); padding: var(--s-4); border-radius: var(--r-md); background: var(--sun-wash); color: var(--ink); }
.key-warn p { max-width: none; }
.key-report { display: grid; gap: var(--s-2); padding: var(--s-4); border-radius: var(--r-md); background: var(--sky-wash); color: var(--ink); }
.key-report ul { padding-left: 1.2rem; }

/* ---- Centered states ---- */
.state { display: grid; gap: var(--s-4); padding-block: var(--s-7); max-width: 34rem; }
.state h1 { font-size: clamp(2rem, 8vw, 3rem); }

/* ---- Admin ---- */
.admin-grid { display: grid; gap: var(--s-6); padding-top: var(--s-6); align-items: start; }
.admin-list { display: grid; gap: var(--s-4); }
.admin-detail { display: grid; gap: var(--s-7); min-width: 0; }
.eng-row { display: grid; gap: var(--s-1); width: 100%; padding: var(--s-3) var(--s-4); border: 1px solid transparent; border-radius: var(--r-sm); background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; transition: background var(--dur-fast) var(--ease-out-quart); }
.eng-row:hover { background: var(--sky-wash); }
.eng-row[aria-current="true"] { background: var(--panel); border-color: var(--rule-strong); }
.eng-list { list-style: none; padding: 0; display: grid; gap: var(--s-1); }
.admin-title { display: grid; gap: var(--s-2); }
.admin-title h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.copy-box { display: grid; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r-lg); background: var(--sun-wash); color: var(--ink); }
.copy-box .cluster input { flex: 1 1 18rem; font-family: var(--ff-code); font-size: 0.85rem; }
.stage-grid { display: grid; gap: var(--s-3); }
.stage-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(10rem, 14rem); gap: var(--s-4); align-items: center; padding-block: var(--s-2); border-bottom: 1px solid var(--rule); }
.stage-row label { color: var(--ink); font-weight: 600; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--rule); }
.table-wrap .data th { background: transparent; }
.table-wrap .data td { min-width: 0; }
.confirm-inline { display: inline-flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.events { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); font-size: var(--fs-small); }
.events li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); padding-block: var(--s-2); border-bottom: 1px solid var(--rule); }
.login { display: grid; gap: var(--s-5); max-width: 26rem; padding-block: var(--s-7); }
body[data-surface="admin"] { --shell: 92rem; }
.admin-back { display: none; }
@media (max-width: 61.99rem) {
  .admin-grid[data-selected] .admin-list { display: none; }
  .admin-grid[data-selected] .admin-back { display: inline-flex; }
}

@media (min-width: 62rem) {
  .admin-grid { grid-template-columns: 22rem minmax(0, 1fr); gap: var(--s-8); padding-top: var(--s-7); }
  .admin-list { position: sticky; top: var(--s-5); }
}
@media (max-width: 36rem) {
  .inline-form { grid-template-columns: 1fr; align-items: stretch; }
  .stage-row { grid-template-columns: 1fr; gap: var(--s-2); }
}

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