/* ProTitser website — Forest & Cream, same tokens as the app (src/index.css). */
:root {
  --bg: #FBF9F4;
  --surface: #FFFDF8;
  --surface-alt: #F3EFE6;
  --border: #E2DCCF;
  --primary: #1F3D2B;
  --primary-hover: #17301F;
  --primary-soft: #E3ECE6;
  --accent: #D4A017;
  --text: #1C1C1A;
  --muted: #6B685F;
  --success: #2E7D4F;
  --warning: #B9770E;
  --danger: #9B2C2C;
  --on-primary: #FBF9F4;
  --sheet-head: #1F3D2B;
  --sheet-zebra: #F7F4EC;
  --shadow: 0 1px 2px rgba(28, 28, 26, .06), 0 8px 24px -12px rgba(28, 28, 26, .18);
  --radius: 12px;
  /* The device's own default font: Segoe UI on Windows, Roboto on Android, San Francisco on Apple. */
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "Cascadia Mono", "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121814;
    --surface: #18201B;
    --surface-alt: #1C2620;
    --border: #2C3830;
    --primary: #7FB894;
    --primary-hover: #95C8A7;
    --primary-soft: #203328;
    --text: #ECE8DE;
    --muted: #A5A195;
    --success: #6FC08F;
    --warning: #E0A94A;
    --danger: #E08A8A;
    --on-primary: #10180F;
    --sheet-head: #203328;
    --sheet-zebra: #1C2620;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); }
code, .mono { font-family: var(--mono); }
code { font-size: .92em; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 5px; padding: 0 .3em; white-space: nowrap; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; max-width: 26ch; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow-wrap { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin: 0 0 .6em; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.lede.narrow { max-width: 62ch; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--on-primary); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border-radius: 9px; border: 1px solid transparent; padding: .72em 1.1em;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-alt); }
.btn-sm { font-size: .85rem; padding: .5em .85em; }
.btn-lg { font-size: 1.02rem; padding: .9em 1.35em; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.badge {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow);
}
.badge svg { width: 27px; height: 27px; }
.wordmark { display: flex; flex-direction: column; line-height: 1; width: max-content; }
.wm-row { font-weight: 700; font-size: 17px; letter-spacing: -.01em; display: flex; align-items: center; gap: 5px; }
.wm-accent { color: var(--primary); margin-left: -5px; }
.wm-pill { font-size: 10px; letter-spacing: .04em; background: var(--primary); color: var(--on-primary); padding: 3px 5px; border-radius: 5px; }
.wm-tag { font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--primary); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* ---------- shared bits ---------- */
.chip { font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); white-space: nowrap; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }

/* download check (home page) */
.hash-row { display: flex; gap: 8px; align-items: center; }
.hash-row code { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; font-size: .78rem; padding: 8px 10px; line-height: 1.45; }

.verify-result { margin: 12px 0 0; font-size: .9rem; font-weight: 600; min-height: 1.4em; }
.verify-result.ok { color: var(--success); }
.verify-result.bad { color: var(--danger); }

.steps-plain { margin: 0; padding-left: 1.2em; }
.steps-plain li { margin-bottom: .45em; font-size: .95rem; }

/* ---------- form fields ---------- */
.field { margin: 14px 0 0; border: 0; padding: 0; min-width: 0; }
.field label:not(.radio), .field legend { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 5px; padding: 0; }
.field input:not([type="radio"]) {
  width: 100%; font: inherit; font-size: .95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px;
}
.field input.mono { font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-msg { margin: 5px 0 0; font-size: .82rem; min-height: 0; }
.field-msg.bad { color: var(--danger); }
.field-msg.ok { color: var(--success); }
.radio { display: flex; align-items: center; gap: 8px; font-size: .95rem; margin: 4px 0; cursor: pointer; }
.radio input { accent-color: var(--primary); width: 16px; height: 16px; }

/* ---------- details / drop-downs ---------- */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-top: 10px; }
details[open] { box-shadow: var(--shadow); }
summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--primary); }
details[open] summary::after { content: "–"; }
details p { padding: 0 16px 6px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { padding: 32px 0 40px; border-top: 1px solid var(--border); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }

/* copy button feedback */
.copied { background: var(--success) !important; color: #fff !important; border-color: transparent !important; }

/* =========================================================================
   Accounts + admin (09-29)
   ========================================================================= */
.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; }
.brand-mark { width: 38px; height: 38px; flex: none; border-radius: 8px; box-shadow: var(--shadow); }
.h-md { font-size: clamp(1.5rem, 2.6vw, 1.9rem); max-width: none; }
.h-sm { font-size: 1.2rem; max-width: none; margin: 0; }
.h-xs { font-family: var(--sans); font-size: .95rem; font-weight: 700; margin: 0 0 .2em; }
.site-footer.slim { padding: 20px 0 28px; }
button.btn { font-family: var(--sans); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-block { width: 100%; margin-top: 18px; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }

/* sign-in pages */
.auth-main { padding: 40px 16px 56px; min-height: calc(100vh - 150px); }
.auth { max-width: 440px; margin: 0 auto; }
.auth h1 { font-size: 1.8rem; }
.auth-links { margin: 16px 0 0; text-align: center; }
.auth-done { margin-top: 8px; }
.dev-note { background: var(--surface-alt); border: 1px dashed var(--warning); border-radius: 8px; padding: 8px 10px; margin: 8px 0; }
.captcha { margin-top: 14px; }
.captcha:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin-top: 14px; cursor: pointer; }
.check input { accent-color: var(--primary); width: 16px; height: 16px; margin-top: .25em; flex: none; }
.field select, .field textarea, .inline-select select, .search input {
  width: 100%; font: inherit; font-size: .95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px;
}
.field textarea { resize: vertical; }
.field select:focus, .field textarea:focus, .search input:focus, .code-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.alert { border-radius: 9px; padding: 10px 13px; margin: 14px 0 0; font-size: .92rem; border: 1px solid var(--border); background: var(--surface-alt); }
.alert:focus { outline: none; }
.alert-bad { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); background: color-mix(in srgb, var(--danger) 9%, var(--surface)); color: var(--danger); }
.alert-ok { border-color: color-mix(in srgb, var(--success) 45%, var(--border)); background: color-mix(in srgb, var(--success) 9%, var(--surface)); color: var(--success); }
.alert-info { border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); background: var(--primary-soft); color: var(--text); }
.alert-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.alert-info code { white-space: normal; }

/* dashboard */
.dash { padding-top: 32px; padding-bottom: 56px; }
.dash-head { margin-bottom: 4px; }
.dash-head .h-md { margin-bottom: .15em; }
.panel { margin-top: 18px; padding: 18px 20px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.panel > .h-sm { margin-bottom: 10px; }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th { text-align: left; font: 700 .72rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data td { padding: 8px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .num { font-variant-numeric: tabular-nums; font-weight: 600; }
table.data .mono { font-family: var(--mono); font-size: .86rem; white-space: nowrap; }
table.data .actions { text-align: right; white-space: nowrap; }
table.data .sub-row td { padding-top: 4px; padding-bottom: 4px; background: var(--surface-alt); }
table.data .note { margin-top: 3px; max-width: 34ch; }
.status { display: inline-block; font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--surface-alt); color: var(--muted); }
.st-pending { background: color-mix(in srgb, var(--warning) 16%, var(--surface)); color: var(--warning); }
.st-done, .st-active { background: color-mix(in srgb, var(--success) 14%, var(--surface)); color: var(--success); }
.st-rejected { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }
.howto { margin-top: 14px; box-shadow: none; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-opt { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 9px; padding: 8px 12px; cursor: pointer; font-size: .93rem; background: var(--bg); }
.seg-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.seg-opt:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.seg-opt input { accent-color: var(--primary); }
#req-form > .btn { margin-top: 16px; }
.sec-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .sec-grid { grid-template-columns: 1fr 1fr; } }
.form-btn { margin-top: 12px; }
.danger-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); }
.danger-row p { margin: 0; }

/* admin */
.tabs { display: flex; gap: 4px; margin-top: 18px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab { font: 600 .92rem var(--sans); background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.count { display: inline-block; min-width: 1.4em; font-size: .72rem; background: var(--accent); color: #1C1C1A; border-radius: 999px; padding: 1px 6px; }
.count:empty { display: none; }
.inline-select { display: flex; align-items: center; gap: 8px; }
.inline-select select { width: auto; padding: 6px 9px; }
.search { display: flex; gap: 8px; flex: 1; max-width: 420px; }
.search input { padding: 6px 10px; }
.req-list { display: grid; gap: 12px; }
.req-item { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--bg); }
.req-head { display: flex; align-items: flex-start; gap: 10px; }
.req-head .status { margin-left: auto; }
.req-who { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.req-facts { display: grid; gap: 2px 18px; margin: 10px 0 4px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.kv { display: flex; gap: 8px; font-size: .88rem; min-width: 0; }
.kv .k, .cmd .k { color: var(--muted); flex: none; }
.kv .v { overflow-wrap: anywhere; }
.kv .v.mono { font-family: var(--mono); }
.kv .v.ok { color: var(--success); font-weight: 600; }
.kv .v.bad, .kv .v.warn { color: var(--danger); font-weight: 600; }
.cmd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; }
.cmd-line { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; padding: 6px 9px; font-size: .82rem; }
.code-input { flex: 1; min-width: 240px; font: .82rem/1.4 var(--mono); color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 7px 9px; resize: vertical; }
.req-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
@media (max-width: 400px) { .nav { gap: 8px; } .nav .btn-sm { padding: .45em .65em; } }

/* Phones: data tables become stacked "label: value" rows — no sideways scrolling. */
@media (max-width: 640px) {
  table.data.stack thead { display: none; }
  table.data.stack, table.data.stack tbody, table.data.stack tr, table.data.stack td { display: block; width: 100%; }
  table.data.stack tr { border-bottom: 1px solid var(--border); padding: 8px 0; }
  table.data.stack tbody tr:last-child { border-bottom: 0; }
  table.data.stack td { border: 0; padding: 3px 0; display: flex; gap: 12px; justify-content: space-between; align-items: baseline; text-align: right; overflow-wrap: anywhere; }
  table.data.stack td::before { content: attr(data-label); flex: none; text-align: left; font: 700 .7rem/1.6 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  table.data.stack td[data-label=""]::before { content: none; }
  table.data.stack td.actions { justify-content: flex-end; padding-top: 6px; }
  table.data.stack td:empty { display: none; }
  table.data.stack .mono { white-space: normal; }
  table.data.stack .sub-row { padding: 4px 8px; background: var(--surface-alt); border-radius: 8px; margin: 4px 0; }
  table.data.stack .sub-row td { background: none; }
  .table-wrap { margin: 0; overflow: visible; }
  .panel { padding: 16px; }
  .req-head { flex-wrap: wrap; }
  .req-actions { justify-content: stretch; }
  .req-actions .btn { flex: 1; }
  .code-input { min-width: 0; width: 100%; }
  .search { max-width: none; }
  .cmd { flex-direction: column; align-items: stretch; }
  .cmd-line, .cmd .code-input { flex: none; width: 100%; }
  .cmd .btn { align-self: flex-end; }
}

/* Continue with Google */
.google-box { margin-top: 16px; }
.btn-google { margin-top: 0; background: #fff; color: #1f1f1f; border-color: #dadce0; font-weight: 600; }
.btn-google:hover { background: #f7f8f8; border-color: #c4c7c5; }
.btn-google svg { width: 18px; height: 18px; }
.google-note { margin: 8px 0 0; }
.or { display: flex; align-items: center; gap: 10px; margin: 16px 0 2px; color: var(--muted); font-size: .8rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.google-tag { display: inline-flex; align-items: center; gap: 5px; }

/* =========================================================================
   Account page (09-29 revamp): head facts, tabs, next step, progress, guides
   ========================================================================= */
.acct-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.acct-who { min-width: 0; }
.acct-who .h-md { margin-bottom: .1em; overflow-wrap: anywhere; }
.acct-mail { margin: 0; overflow-wrap: anywhere; }
.acct-facts { display: flex; gap: 8px; margin: 0; }
.acct-facts > div { display: flex; flex-direction: column; gap: 5px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); min-width: 124px; }
.acct-facts dt { font: 700 .68rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.acct-facts dd { margin: 0; }

.acct-tabs {
  position: sticky; top: 64px; z-index: 10;
  display: flex; gap: 2px; margin-top: 22px;
  background: var(--bg); border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.acct-tabs::-webkit-scrollbar { display: none; }
.acct-tab {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font: 600 .93rem var(--sans); color: var(--muted); background: none; cursor: pointer;
  border: 0; border-bottom: 3px solid transparent; padding: 12px 14px 10px; white-space: nowrap;
}
.acct-tab:hover { color: var(--text); }
.acct-tab[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.acct-tab:focus-visible { outline-offset: -3px; }
.acct-panel { padding: 22px 0 8px; }

.sec-title { margin-bottom: 12px; }
.sec-gap { margin-top: 32px; }
.sec-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 4px; }
.empty-line { margin: 0; padding: 14px 16px; border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); font-size: .92rem; }
.empty-line .link-btn { margin-left: 4px; }
.table-foot { margin: 10px 0 0; }
.link-btn { font: 600 .9rem var(--sans); color: var(--primary); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link-btn:hover { text-decoration-thickness: 2px; }

/* next step */
.next-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 16px 18px; border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: 10px; background: var(--surface);
}
.next-body { min-width: 0; flex: 1 1 320px; }
.next-label { margin: 0 0 2px; font: 700 .7rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.next-title { margin: 0; font-size: 1.12rem; font-weight: 700; }
.next-text { margin: 2px 0 0; max-width: 62ch; }
.next-action:empty { display: none; }
.sec-title + .progress, .next-box + .sec-title { margin-top: 0; }
.next-box + .sec-title { margin-top: 28px; }

/* 4-step progress */
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.progress li { display: flex; gap: 10px; padding: 14px; min-width: 0; }
.progress li + li { border-left: 1px solid var(--border); }
.progress strong { display: block; font-size: .93rem; line-height: 1.35; }
.progress p { margin: 3px 0 0; line-height: 1.45; }
.p-dot {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 700 .8rem/1 var(--sans); color: var(--muted); border: 1.5px solid var(--border); background: var(--bg);
}
.progress .is-done .p-dot { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.progress .is-current { background: var(--primary-soft); }
.progress .is-current .p-dot { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.progress li:first-child { border-radius: 9px 0 0 9px; }
.progress li:last-child { border-radius: 0 9px 9px 0; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; }

/* request form */
.req-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .req-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; } }
.req-form { min-width: 0; }
.form-step { border: 0; margin: 0; padding: 16px 0 0; min-width: 0; }
.form-step + .form-step { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 18px; }
/* Floated so the legend sits under the divider line, not on it. */
.form-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 8px; padding: 0; font-weight: 700; font-size: .98rem; }
.form-step legend ~ * { clear: both; }
.form-step legend { margin-bottom: 10px; }
.form-step legend .opt { font-weight: 400; font-size: .88rem; }
.form-step .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; background: var(--primary); color: var(--on-primary); flex: none; }
.form-step legend + .field, .form-step .pay-note[hidden] + .field { margin-top: 0; }
.form-step .choice { margin-top: 0; }
.form-step .pay-note { margin: 0 0 12px; }
.hint { margin: 6px 0 0; }
.pay-note { margin: 10px 0 0; padding: 9px 12px; border-radius: 8px; background: var(--primary-soft); }
.choice { display: grid; gap: 8px; margin-top: 10px; }
@media (min-width: 560px) { .choice { grid-template-columns: 1fr 1fr; } }
.choice-opt { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); cursor: pointer; }
.choice-opt > span { display: flex; flex-direction: column; gap: 1px; line-height: 1.35; }
.choice-opt strong { font-size: .95rem; }
.choice-opt input { accent-color: var(--primary); width: 16px; height: 16px; margin: 2px 0 0; flex: none; }
.choice-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.choice-opt:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.send-btn { margin-top: 20px; }
.req-aside { padding: 16px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
@media (min-width: 900px) { .req-aside { position: sticky; top: 130px; margin-top: 44px; } }
.timeline { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: t; }
.timeline li { position: relative; padding: 0 0 12px 30px; font-size: .9rem; line-height: 1.45; counter-increment: t; }
.timeline li::before { content: counter(t); position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 .7rem/1 var(--sans); color: var(--primary); border: 1.5px solid var(--primary); box-sizing: border-box; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 9.5px; top: 23px; bottom: 3px; width: 1.5px; background: var(--border); }
.aside-foot { margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--border); }

/* guides + questions */
.acc { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; }
.acc details { margin: 0; border: 0; border-radius: 0; background: none; scroll-margin-top: 130px; }
.acc details + details { border-top: 1px solid var(--border); }
.acc details[open] { box-shadow: none; background: var(--bg); }
.acc summary { font-size: .95rem; padding: 13px 44px 13px 16px; }
.acc summary:focus-visible { outline-offset: -3px; }
.acc details p { margin: 0; padding: 0 16px 14px; font-size: .93rem; max-width: 72ch; }
.acc .steps-plain { padding: 0 16px 14px 36px; max-width: 72ch; }
.acc .steps-plain li { margin-bottom: .35em; }
.contact-line { margin: 18px 0 0; }
#faq { scroll-margin-top: 130px; }
#faq:focus { outline: none; }
#panel-account .h-sm { margin-bottom: 2px; }
.help-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .help-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.help-col { min-width: 0; }

/* Short tabs: keep the footer at the bottom of the window, not mid-screen. */
body[data-page="account"] { display: flex; flex-direction: column; min-height: 100vh; }
body[data-page="account"] .dash { flex: 1 0 auto; width: 100%; }

/* Phones: one column, one thing at a time. */
@media (max-width: 760px) {
  .progress { grid-template-columns: 1fr; }
  .progress li + li { border-left: 0; border-top: 1px solid var(--border); }
  .progress li:first-child { border-radius: 9px 9px 0 0; }
  .progress li:last-child { border-radius: 0 0 9px 9px; }
}
@media (max-width: 640px) {
  .dash { padding-top: 20px; }
  .acct-facts { width: 100%; }
  .acct-facts > div { flex: 1; min-width: 0; }
  .acct-tabs { margin: 16px -16px 0; padding: 0 6px; justify-content: space-between; gap: 0; }
  .acct-tab { padding: 11px 7px 9px; font-size: .88rem; gap: 4px; }
  .tab-wide { display: none; }
  .acct-panel { padding-top: 18px; }
  .next-box { padding: 14px; }
  .next-action, .next-action .btn { width: 100%; }
  .send-btn { width: 100%; }
  .quick-links { flex-direction: column; gap: 10px; }
}
