:root {
  color-scheme: dark;
  --ink: #090b0e;
  --ink-2: #101318;
  --panel: rgba(19, 23, 29, 0.88);
  --panel-solid: #15191f;
  --line: rgba(230, 217, 179, 0.16);
  --line-strong: rgba(230, 217, 179, 0.32);
  --ivory: #f3efe5;
  --muted: #a8adb7;
  --gold: #d0ae68;
  --gold-2: #f0d79b;
  --gold-dark: #8a6d36;
  --teal: #39b6bd;
  --teal-dark: #0b5b63;
  --red: #e78484;
  --green: #77d0aa;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  --radius: 22px;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { width: 100%; min-height: 100%; overflow-x: clip; background: var(--ink); }

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ivory);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 15% -5%, rgba(208, 174, 104, 0.14), transparent 32rem),
    radial-gradient(circle at 92% 15%, rgba(57, 182, 189, 0.08), transparent 28rem),
    linear-gradient(160deg, #080a0d 0%, #0d1116 52%, #080a0d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--gold-2);
  border-radius: 10px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  letter-spacing: .18em;
  font-weight: 750;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--gold-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(208,174,104,.12), rgba(57,182,189,.08));
}
.brand-mark svg { width: 18px; height: 18px; }
.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .24em;
  font-weight: 650;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
}
.header-security {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.security-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(119,208,170,.08);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 70px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 160px);
  margin: 0 auto;
  padding: 70px 0 110px;
}
.hero-shell > *, .workflow-grid > *, .main-card, .state-copy { min-width: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  color: var(--gold);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 720;
}
.eyebrow::before { content: ""; width: 44px; height: 1px; background: var(--gold-dark); }
h1, h2, h3, p { margin-top: 0; }
.display {
  max-width: 820px;
  margin-bottom: 26px;
  font-family: var(--font-serif);
  font-size: clamp(52px, 7vw, 104px);
  font-weight: 520;
  line-height: .92;
  letter-spacing: -.055em;
}
.display em { color: var(--gold); font-weight: 400; }
.lede {
  max-width: 650px;
  margin-bottom: 34px;
  color: #c1c5cc;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.62;
}
.action-row { display: flex; flex-wrap: wrap; gap: 12px; }
.action-row.centered-actions { justify-content: center; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(208,174,104,.12);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(208,174,104,.2); }
.button:active { transform: translateY(0); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .tab:focus-visible {
  outline: 3px solid rgba(57,182,189,.55);
  outline-offset: 3px;
}
.button.secondary { color: var(--ivory); border-color: var(--line-strong); background: rgba(255,255,255,.03); box-shadow: none; }
.button.danger { color: #ffdcdc; border-color: rgba(231,132,132,.3); background: rgba(231,132,132,.08); box-shadow: none; }
.button.small { min-height: 38px; padding: 0 14px; font-size: 12px; }
.button[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.trust-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(25,29,35,.92), rgba(12,15,19,.95));
  box-shadow: var(--shadow);
}
.trust-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 220px;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(208,174,104,.02), 0 0 0 44px rgba(208,174,104,.015);
}
.trust-card h2 { position: relative; z-index: 1; font-family: var(--font-serif); font-size: 32px; font-weight: 520; }
.trust-list { position: relative; z-index: 1; display: grid; gap: 0; margin: 24px 0 0; padding: 0; list-style: none; }
.trust-list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.trust-number { color: var(--gold); font-family: var(--font-serif); font-size: 17px; }
.trust-list strong { display: block; margin-bottom: 4px; font-size: 14px; }
.trust-list span { color: var(--muted); font-size: 13px; line-height: 1.5; }

.workflow-shell { width: min(1260px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 52px; }
.workflow-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 4px; }
.workflow-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.main-card, .side-card, .admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.main-card { min-height: 680px; overflow: hidden; }
.side-card { position: sticky; top: 20px; padding: 24px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 28px 30px 22px; border-bottom: 1px solid var(--line); }
.panel-head h1 { margin-bottom: 8px; font-family: var(--font-serif); font-size: clamp(28px, 4vw, 44px); font-weight: 520; }
.panel-head p { margin-bottom: 0; color: var(--muted); line-height: 1.5; }
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(119,208,170,.2);
  border-radius: 999px;
  color: var(--green);
  background: rgba(119,208,170,.06);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.status-chip.warn { color: var(--gold-2); border-color: rgba(208,174,104,.22); background: rgba(208,174,104,.07); }
.status-chip.error { color: #ffb2b2; border-color: rgba(231,132,132,.25); background: rgba(231,132,132,.07); }

.progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 20px 30px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.14); }
.progress-step { position: relative; display: flex; align-items: center; gap: 10px; color: #777e89; font-size: 12px; font-weight: 700; }
.progress-step:not(:last-child)::after { content: ""; position: absolute; left: 36px; right: 12px; top: 13px; height: 1px; background: var(--line); }
.progress-step span { position: relative; z-index: 1; display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--panel-solid); }
.progress-step.active { color: var(--ivory); }
.progress-step.active span { color: var(--ink); border-color: var(--gold); background: var(--gold); }
.progress-step.complete { color: var(--green); }
.progress-step.complete span { color: var(--ink); border-color: var(--green); background: var(--green); }

.stage { display: none; padding: 28px 30px 34px; }
.stage.active { display: block; animation: stage-in .28s ease both; }
@keyframes stage-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.stage h2 { margin-bottom: 10px; font-family: var(--font-serif); font-size: 30px; font-weight: 520; }
.stage-intro { max-width: 720px; color: var(--muted); line-height: 1.6; }
.document-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0 12px; }
.document-meta { min-width: 0; }
.document-meta strong, .document-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-meta span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.pdf-frame { width: 100%; height: min(64vh, 690px); min-height: 480px; border: 1px solid var(--line-strong); border-radius: 16px; background: #2b3038; }
.stage-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.minor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.link-button { padding: 8px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--ivory); }
.link-button.danger { color: var(--red); }

.choice-list { display: grid; gap: 12px; margin: 24px 0; }
.choice {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.018);
  cursor: pointer;
}
.choice:hover { border-color: var(--line-strong); }
.choice input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--gold); }
.choice strong { display: block; margin-bottom: 4px; font-size: 14px; }
.choice span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.disclosure { padding: 18px; border-left: 3px solid var(--gold); border-radius: 0 14px 14px 0; background: rgba(208,174,104,.06); color: #ced1d7; line-height: 1.6; font-size: 13px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #d7d9de; font-size: 12px; font-weight: 720; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ivory);
  background: rgba(3,5,7,.62);
}
.field textarea { min-height: 118px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.5; }
.field small { color: var(--muted); line-height: 1.45; }

.signature-tabs { display: flex; gap: 7px; margin: 22px 0 14px; }
.tab { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; }
.tab.active { color: var(--ink); border-color: var(--gold); background: var(--gold); font-weight: 750; }
.signature-box { min-height: 180px; padding: 18px; border: 1px solid var(--line-strong); border-radius: 16px; background: #f7f4ed; color: #111820; }
.typed-signature { display: grid; min-height: 140px; place-items: center; padding: 20px; font-family: "Brush Script MT", "Segoe Script", cursive; font-size: clamp(38px, 7vw, 64px); text-align: center; }
.draw-wrap { display: none; }
.draw-wrap.active { display: block; }
.typed-wrap.hidden { display: none; }
#signatureCanvas { display: block; width: 100%; height: 140px; touch-action: none; cursor: crosshair; }
.canvas-toolbar { display: flex; justify-content: flex-end; margin-top: 8px; }
.adoption-note { margin-top: 10px; color: var(--muted); font-size: 12px; }

.side-card h2 { margin-bottom: 8px; font-family: var(--font-serif); font-size: 24px; font-weight: 520; }
.side-card > p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.fact-list { display: grid; gap: 0; margin: 20px 0 0; padding: 0; list-style: none; }
.fact-list li { display: grid; grid-template-columns: 24px 1fr; gap: 11px; padding: 14px 0; border-top: 1px solid var(--line); }
.fact-icon { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(57,182,189,.25); border-radius: 7px; color: var(--teal); font-size: 11px; }
.fact-list strong { display: block; margin-bottom: 3px; font-size: 12px; }
.fact-list span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.identity-card { margin-top: 20px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.18); }
.identity-card small { display: block; margin-bottom: 5px; color: var(--muted); }
.identity-card strong { display: block; overflow-wrap: anywhere; font-size: 12px; }

.loading-state, .error-state, .success-state { display: grid; place-items: center; min-height: 560px; padding: 40px; text-align: center; }
.loading-ring { width: 44px; height: 44px; margin-bottom: 20px; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.state-icon { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 22px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--gold-2); background: rgba(208,174,104,.07); font-family: var(--font-serif); font-size: 30px; }
.success-state .state-icon { color: var(--green); border-color: rgba(119,208,170,.25); background: rgba(119,208,170,.06); }
.state-copy { max-width: 600px; }
.state-copy h1 { font-family: var(--font-serif); font-size: clamp(34px, 5vw, 54px); font-weight: 520; }
.state-copy p { color: var(--muted); line-height: 1.65; }
.hash-box { width: 100%; max-width: 680px; margin: 18px auto; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.24); color: #c5c9d0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; text-align: left; }

.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 8px; width: min(380px, calc(100% - 36px)); }
.toast { padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 13px; background: #171c22; box-shadow: var(--shadow); color: var(--ivory); font-size: 13px; line-height: 1.45; animation: toast-in .22s ease both; }
.toast.error { border-color: rgba(231,132,132,.38); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

dialog { width: min(520px, calc(100% - 28px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 20px; color: var(--ivory); background: #11151a; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.dialog-content { padding: 26px; }
.dialog-content h2 { font-family: var(--font-serif); font-size: 28px; font-weight: 520; }
.dialog-content p { color: var(--muted); line-height: 1.55; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 20px; }

.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 22px; border-right: 1px solid var(--line); background: rgba(7,9,12,.84); backdrop-filter: blur(18px); }
.admin-nav { display: grid; gap: 8px; margin-top: 44px; }
.admin-nav button { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid transparent; border-radius: 11px; color: var(--muted); background: transparent; text-align: left; cursor: pointer; }
.admin-nav button.active { color: var(--ivory); border-color: var(--line); background: rgba(208,174,104,.06); }
.admin-main { padding: 38px; }
.admin-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.admin-top h1 { margin-bottom: 6px; font-family: var(--font-serif); font-size: 42px; font-weight: 520; }
.admin-top p { color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.metric { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.metric span { display: block; margin-bottom: 12px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.metric strong { font-family: var(--font-serif); font-size: 30px; font-weight: 520; }
.admin-card { padding: 24px; }
.admin-card h2 { font-family: var(--font-serif); font-size: 28px; font-weight: 520; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
td { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; }
.admin-view { display: none; }
.admin-view.active { display: block; }
.notice { padding: 14px 16px; border: 1px solid rgba(208,174,104,.22); border-radius: 13px; background: rgba(208,174,104,.06); color: #ddd1b6; font-size: 13px; line-height: 1.55; }
.code-preview { max-height: 360px; overflow: auto; white-space: pre-wrap; }

.verify-card { width: min(860px, calc(100% - 32px)); margin: 46px auto 80px; padding: 34px; border: 1px solid var(--line); border-radius: 26px; background: var(--panel); box-shadow: var(--shadow); }
.verify-head { display: flex; align-items: center; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.verify-seal { display: grid; place-items: center; flex: 0 0 auto; width: 62px; height: 62px; border: 1px solid rgba(119,208,170,.3); border-radius: 50%; color: var(--green); background: rgba(119,208,170,.06); font-size: 24px; }
.verify-head h1 { margin-bottom: 4px; font-family: var(--font-serif); font-size: 36px; font-weight: 520; }
.verify-head p { margin: 0; color: var(--muted); }
.verify-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; margin: 24px 0; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: var(--line); }
.verify-item { padding: 16px; background: #12161b; }
.verify-item span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.verify-item strong { overflow-wrap: anywhere; font-size: 13px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }
.delivery-records { display: grid; gap: 12px; margin-top: 14px; }
.delivery-record { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: rgba(255,255,255,.025); }
.delivery-record label { display: block; color: var(--ivory); font-weight: 700; margin-bottom: 8px; }
.delivery-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.delivery-controls input { min-width: 0; }

@media (max-width: 980px) {
  .hero-shell, .workflow-grid { grid-template-columns: 1fr; }
  .hero-shell { gap: 40px; padding-top: 45px; }
  .workflow-grid { gap: 14px; }
  .side-card { position: static; order: -1; }
  .side-card .fact-list { grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; width: 100%; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-nav { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
  .admin-main { padding: 24px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header, .workflow-shell { width: calc(100% - 22px); max-width: 1180px; }
  .site-header { padding: 14px 0; }
  .header-security span:last-child { display: none; }
  .hero-shell { width: calc(100% - 28px); max-width: 1180px; min-height: auto; padding: 50px 0 70px; }
  .display { max-width: 100%; font-size: clamp(44px, 16vw, 68px); overflow-wrap: normal; }
  .lede, .trust-card h2, .state-copy h1, .state-copy p { max-width: 100%; overflow-wrap: break-word; }
  .trust-card { padding: 24px; }
  .trust-card h2 { font-size: 28px; }
  .workflow-header { padding: 12px 2px; }
  .workflow-header .header-security { display: none; }
  .workflow-grid { display: block; }
  .side-card { margin-bottom: 12px; padding: 18px; }
  .side-card h2, .side-card > p { display: none; }
  .side-card .fact-list { grid-template-columns: 1fr 1fr; margin: 0; }
  .side-card .fact-list li { padding: 9px 0; border: 0; }
  .side-card .fact-list li:nth-child(n+3) { display: none; }
  .identity-card { margin-top: 8px; }
  .main-card { min-height: calc(100vh - 200px); border-radius: 18px; }
  .loading-state, .error-state, .success-state { min-height: calc(100vh - 180px); padding: 32px 18px; }
  .panel-head { display: block; padding: 20px 18px 16px; }
  .panel-head .status-chip { margin-top: 14px; }
  .progress { padding: 13px 16px; }
  .progress-step { gap: 0; font-size: 0; }
  .progress-step span { font-size: 11px; }
  .progress-step:not(:last-child)::after { left: 29px; right: 4px; }
  .stage { padding: 22px 18px 28px; }
  .document-toolbar { align-items: flex-start; }
  .pdf-frame { min-height: 54vh; height: 54vh; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .stage-actions { align-items: stretch; flex-direction: column-reverse; }
  .stage-actions > .button { width: 100%; }
  .minor-actions { justify-content: center; }
  .admin-main { padding: 20px 14px; }
  .admin-top { align-items: stretch; flex-direction: column; }
  .admin-nav { grid-template-columns: 1fr; }
  .metric-grid, .verify-grid { grid-template-columns: 1fr; }
  .verify-card { margin-top: 20px; padding: 22px; }
  .verify-head { align-items: flex-start; }
  .delivery-controls { grid-template-columns: 1fr; }
  .delivery-controls .button { width: 100%; }
}

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