:root {
  --bg: #0a1411;
  --bg-2: #0e1a16;
  --panel: #13221d;
  --panel-2: #182b25;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #eef4ef;
  --muted: #9fb3a6;
  --green: #1f9d40;
  --green-hover: #1a8a38;
  --green-deep: #0f6b2b;
  --lime: #8fe04b;
  --lime-soft: rgba(143, 224, 75, 0.14);
  --paper: #f5f9f6;
  --paper-2: #e9f1eb;
  --ink: #11211a;
  --ink-muted: #5b6d63;
  --ink-line: rgba(17, 33, 26, 0.14);
  --danger: #d9463b;
  --danger-soft: #fdecea;
  --warn: #c98a12;
  --warn-soft: #fff5de;
  --info: #2b6cb0;
  --info-soft: #e8f0fb;
  --font-display: 'Clash Display', 'Satoshi', system-ui, sans-serif;
  --font-brand: 'Cinzel', 'Georgia', serif;
  --font-body: 'Satoshi', 'Inter', system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --focus: 0 0 0 3px rgba(143, 224, 75, 0.45);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, #16302a 0%, transparent 60%), linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--lime); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--ink); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: none; box-shadow: var(--focus); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(10, 20, 17, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; background: none; border: 0; padding: 0; }
.brand img { width: 44px; height: 44px; mix-blend-mode: screen; }
.brand-word { font-family: var(--font-brand); font-weight: 700; font-size: 22px; letter-spacing: 0.04em; line-height: 1; white-space: nowrap; display: block; }
.brand-word .iv { color: #e9efe9; }
.brand-word .medics { color: var(--lime); }
.brand-sub { display: block; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.brand-sub strong { color: #d7e2da; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.pill-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.pill-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pill-status.ready .dot { background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.pill-status.unlocked .dot { background: #ffcc4d; box-shadow: 0 0 10px #ffcc4d; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius-md);
  border: 1px solid transparent; font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--lime); }
.btn-paper { background: #fff; color: var(--ink); border-color: var(--ink-line); }
.btn-paper:hover { border-color: var(--green); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(217, 70, 59, 0.5); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 17px; border-radius: 14px; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Views ---------- */
.view { display: none; }
.view.active { display: block; }
.container { width: min(1120px, 100% - clamp(32px, 8vw, 80px)); margin: 0 auto; }

/* ---------- Landing ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 64px); }
.hero-bag { position: absolute; left: max(-30px, calc(50% - 780px)); top: -10px; width: 175px; pointer-events: none; opacity: 0.85; mix-blend-mode: lighten; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 92%); mask-image: linear-gradient(180deg, #000 55%, transparent 92%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.eyebrow { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; font-size: 13px; color: var(--lime); }
.eyebrow::before, .eyebrow::after { content: ''; height: 1px; width: 36px; background: linear-gradient(90deg, transparent, var(--lime)); }
.eyebrow::after { background: linear-gradient(90deg, var(--lime), transparent); }
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.01em; margin: 18px 0 16px; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lede { font-size: 18px; color: #c9d6cd; max-width: 56ch; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { margin-top: 28px; font-size: 13px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.hero-meta strong { color: var(--lime); font-weight: 600; }

.price-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); transform: skewX(0); }
.price-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 26px 26px 18px; gap: 18px; }
.price-main .amt { font-family: var(--font-display); font-weight: 700; font-size: clamp(42px, 5vw, 56px); line-height: 1; color: var(--green-deep); letter-spacing: -0.02em; }
.price-main .amt sup { font-size: 0.5em; vertical-align: top; margin-right: 2px; }
.price-main .lbl { font-size: 13px; color: var(--ink-muted); margin-top: 6px; font-weight: 600; }
.price-main .sep { width: 1px; height: 64px; background: var(--ink-line); }
.price-main .addon { text-align: right; }
.price-main .addon .amt { color: var(--ink); }
.price-foot { background: var(--green); color: #fff; font-size: 13px; padding: 10px 26px; font-weight: 500; }
.services { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.services li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.services svg { width: 22px; height: 22px; color: var(--lime); flex: none; }
.services strong { font-weight: 600; }
.services span { color: var(--muted); font-size: 14px; }
.services em { margin-left: auto; font-style: normal; color: var(--lime); font-weight: 600; font-size: 14px; }
.assess-strip { margin-top: 20px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: rgba(31, 157, 64, 0.08); }
.assess-strip h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: #d9e6dc; }
.assess-strip ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: #c9d6cd; }
.assess-strip li::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-right: 10px; vertical-align: middle; }
.book-strip { margin-top: 48px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 22px 28px; border-radius: 18px; background: linear-gradient(90deg, #0f6b2b, #1f9d40); color: #fff; }
.book-strip .k { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.28em; font-size: 13px; text-transform: uppercase; opacity: 0.9; }
.book-strip .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 40px); letter-spacing: 0.02em; line-height: 1.1; }
.book-strip p { margin: 6px 0 0; font-size: 14px; opacity: 0.92; }
.fine { margin-top: 24px; font-size: 13px; color: var(--muted); }

/* ---------- Wizard shell ---------- */
.wizard { padding: 28px 0 120px; }
.wizard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.wizard-head h1 { font-family: var(--font-display); font-weight: 600; font-size: 28px; margin: 0; letter-spacing: -0.01em; }
.wizard-head .sub { color: var(--muted); font-size: 14px; }
.steps { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.step-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px 6px 8px;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 13px; font-weight: 500;
}
.step-chip .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, 0.06); }
.step-chip.active { border-color: var(--lime); color: var(--text); background: var(--lime-soft); }
.step-chip.active .n { background: var(--lime); color: var(--ink); }
.step-chip.done .n { background: var(--green); color: #fff; }
.step-chip.error { border-color: rgba(217, 70, 59, 0.6); }
.step-chip.error .n { background: var(--danger); color: #fff; }

.paper { background: var(--paper); color: var(--ink); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(20px, 4vw, 40px); margin-top: 16px; }
.paper h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin: 0 0 6px; letter-spacing: -0.01em; }
.paper .intro { color: var(--ink-muted); margin: 0 0 24px; font-size: 15px; max-width: 70ch; }
.paper h3 { font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-deep); margin: 28px 0 10px; padding-top: 18px; border-top: 1px solid var(--ink-line); }
.field { margin-bottom: 18px; }
.field[hidden] { display: none !important; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row[hidden] { display: none !important; }
label.lbl, .lbl-legend { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.req::after { content: ' *'; color: var(--danger); }
.help { font-size: 13px; color: var(--ink-muted); margin-top: 6px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--radius-md); border: 1px solid var(--ink-line); background: #fff; color: var(--ink);
  transition: border-color 0.15s;
}
.input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(31, 157, 64, 0.2); }
textarea.input { min-height: 92px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6d63' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.field.invalid .input { border-color: var(--danger); }
.field.invalid .err { display: block; }
.err { display: none; color: var(--danger); font-size: 13px; margin-top: 6px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.opts { display: grid; gap: 8px; }
.opts.cols-2 { grid-template-columns: 1fr 1fr; }
.opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--ink-line); border-radius: var(--radius-md); background: #fff; cursor: pointer; min-height: 44px; }
.opt:has(input:checked) { border-color: var(--green); background: #eef8ef; }
.opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); flex: none; }
.opt .t { font-size: 15px; line-height: 1.35; flex: 1; min-width: 0; }
.opt .p { margin-left: auto; font-weight: 700; color: var(--green-deep); font-size: 14px; white-space: nowrap; }
.opt.pinned { opacity: 0.95; }
.yesno { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 200px; }
.yesno .opt { justify-content: center; align-items: center; padding: 8px 14px; }
.yesno .opt input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.yesno .opt { position: relative; }
.yesno .opt:has(input:focus-visible) { box-shadow: var(--focus); }
.yesno .opt:has(input:checked) { background: var(--green); color: #fff; border-color: var(--green); }
.single-check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--ink-line); border-radius: var(--radius-md); background: #fff; cursor: pointer; }
.single-check input { width: 22px; height: 22px; accent-color: var(--green); margin: 1px 0 0; flex: none; }
.note { padding: 12px 14px; border-radius: var(--radius-md); font-size: 14px; line-height: 1.45; }
.note.info { background: var(--info-soft); color: #1b3f6b; }
.note.warn { background: var(--warn-soft); color: #6b4a00; }
.note.danger { background: var(--danger-soft); color: #7a1f17; font-weight: 500; }
.price-inline { display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: #fff; border-radius: var(--radius-md); padding: 12px 16px; font-weight: 600; }
.price-inline span { color: var(--lime); font-family: var(--font-display); font-size: 22px; }

/* repeater */
.repeater { display: grid; gap: 10px; }
.rep-row { display: grid; gap: 10px; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)) 40px; align-items: end; padding: 12px; border-radius: var(--radius-md); background: var(--paper-2); }
.rep-row .lbl { font-size: 12px; margin-bottom: 4px; color: var(--ink-muted); }
.rep-row .rm { width: 40px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--ink-line); background: #fff; color: var(--danger); display: grid; place-items: center; }
.rep-empty { font-size: 14px; color: var(--ink-muted); padding: 10px 12px; border: 1px dashed var(--ink-line); border-radius: var(--radius-md); }

/* consent */
.consent { border: 1px solid var(--ink-line); border-radius: 14px; background: #fff; margin-bottom: 12px; overflow: hidden; }
.consent summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.consent summary::-webkit-details-marker { display: none; }
.consent summary .ct { font-weight: 700; font-size: 15px; }
.consent summary .cs { font-size: 13px; color: var(--ink-muted); margin-top: 2px; }
.consent summary .chev { flex: none; width: 20px; height: 20px; color: var(--ink-muted); transition: transform 0.2s; }
.consent details[open] summary .chev { transform: rotate(180deg); }
.consent summary .read { font-size: 12px; font-weight: 700; color: var(--green-deep); margin-top: 6px; letter-spacing: 0.04em; text-transform: uppercase; }
.consent details[open] summary .read { display: none; }
.consent .body { max-height: 260px; overflow-y: auto; padding: 12px 16px 14px; font-size: 14px; color: #243b31; white-space: pre-line; line-height: 1.55; border-top: 1px solid var(--ink-line); }
.consent .agree { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--paper-2); border-top: 1px solid var(--ink-line); cursor: pointer; font-weight: 600; font-size: 14px; }
.consent .agree input { width: 22px; height: 22px; accent-color: var(--green); }
.consent.invalid { border-color: var(--danger); }

/* signature + photo */
.sigpad { position: relative; border: 1px solid var(--ink-line); border-radius: var(--radius-md); background: #fff; height: 180px; touch-action: none; overflow: hidden; }
.sigpad canvas { width: 100%; height: 100%; display: block; }
.sigpad .line { position: absolute; left: 24px; right: 24px; bottom: 40px; border-top: 1px dashed var(--ink-line); pointer-events: none; }
.sigpad .hint { position: absolute; left: 24px; bottom: 14px; font-size: 12px; color: var(--ink-muted); pointer-events: none; }
.sig-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.photo-box { display: grid; gap: 12px; }
.photo-preview { width: 100%; max-width: 420px; aspect-ratio: 1.58; border-radius: var(--radius-md); background: var(--paper-2); border: 1px dashed var(--ink-line); display: grid; place-items: center; overflow: hidden; color: var(--ink-muted); font-size: 14px; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
input[type='file'] { display: none; }

/* review */
.review-grid { display: grid; gap: 14px; }
.review-sec { border: 1px solid var(--ink-line); border-radius: 14px; background: #fff; overflow: hidden; }
.review-sec header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--paper-2); font-weight: 700; }
.review-sec header button { font-size: 13px; }
.kv { display: grid; grid-template-columns: minmax(140px, 36%) 1fr; gap: 4px 16px; padding: 12px 16px; font-size: 14px; }
.kv dt { color: var(--ink-muted); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.kv .missing { color: var(--danger); font-weight: 600; }
.flags { display: grid; gap: 8px; margin-bottom: 16px; }
.flag { display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); font-size: 14px; }
.flag.danger { background: var(--danger-soft); color: #7a1f17; }
.flag.warn { background: var(--warn-soft); color: #6b4a00; }
.flag.info { background: var(--info-soft); color: #1b3f6b; }
.flag svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.sig-thumb { height: 60px; background: #fff; border: 1px solid var(--ink-line); border-radius: 6px; }
.id-thumb { height: 70px; border-radius: 6px; border: 1px solid var(--ink-line); }

/* bottom nav */
.wizard-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: rgba(10, 20, 17, 0.92); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  padding: 12px clamp(16px, 4vw, 40px) calc(12px + env(safe-area-inset-bottom));
}
.wizard-nav .inner { width: min(1120px, 100%); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wizard-nav .pos { color: var(--muted); font-size: 13px; }

/* ---------- Dialogs / toasts ---------- */
.overlay { position: fixed; inset: 0; background: rgba(4, 10, 8, 0.72); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.overlay.open { display: flex; }
.dialog { width: min(560px, 100%); background: var(--paper); color: var(--ink); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); max-height: 90vh; overflow: auto; }
.dialog h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 0 0 8px; }
.dialog p { margin: 0 0 14px; color: var(--ink-muted); font-size: 15px; }
.dialog .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; z-index: 70; box-shadow: var(--shadow); opacity: 0; transition: opacity 0.2s; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; }
.toast.err { background: var(--danger); }

/* ---------- Success ---------- */
.success { padding: clamp(40px, 8vw, 96px) 0 80px; }
.success .paper { max-width: 680px; margin: 0 auto; text-align: left; }
.success .check { width: 64px; height: 64px; color: var(--green); }
.success h1 { font-family: var(--font-display); font-weight: 600; font-size: 32px; margin: 12px 0 8px; }
.success .ref { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.08em; color: var(--green-deep); }
.success ol { padding-left: 20px; color: #243b31; }
.success .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Clinician ---------- */
.clin { padding: 28px 0 80px; }
.clin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.clin-head h1 { font-family: var(--font-display); font-weight: 600; font-size: 28px; margin: 0; }
.clin-head .tools { display: flex; gap: 8px; flex-wrap: wrap; }
.lock-card { max-width: 480px; margin: 40px auto; }
.lock-card .icon { width: 44px; height: 44px; color: var(--green); margin-bottom: 8px; }
.records { display: grid; gap: 10px; }
.rec { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--paper); color: var(--ink); border: 0; text-align: left; width: 100%; cursor: pointer; transition: transform 0.08s, box-shadow 0.15s; }
.rec:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.rec .name { font-weight: 700; font-size: 16px; }
.rec .meta { font-size: 13px; color: var(--ink-muted); }
.rec .badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--paper-2); color: var(--ink-muted); letter-spacing: 0.02em; }
.badge.new { background: #e3f4e6; color: var(--green-deep); }
.badge.assessed { background: #fff1cc; color: #6b4a00; }
.badge.complete { background: var(--ink); color: #fff; }
.badge.flag { background: var(--danger-soft); color: #7a1f17; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tab { flex: none; background: none; border: 0; color: var(--muted); padding: 10px 14px; font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--lime); border-bottom-color: var(--lime); }
.tabpane { display: none; }
.tabpane.active { display: block; }
.vitals-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vitals-table th, .vitals-table td { padding: 6px 6px; text-align: left; border-bottom: 1px solid var(--ink-line); }
.vitals-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
.vitals-table input, .vitals-table select { min-height: 38px; padding: 6px 8px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.stat { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.stat .v { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--lime); line-height: 1; }
.stat .k { font-size: 12px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 6px; }
.audit { font-size: 13px; max-height: 320px; overflow: auto; border: 1px solid var(--ink-line); border-radius: 10px; }
.audit div { display: grid; grid-template-columns: 170px 1fr 1fr; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--ink-line); }
.audit div:last-child { border-bottom: 0; }
.sec-list { display: grid; gap: 10px; }
.sec-list .item { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 14px; color: #c9d6cd; }
.sec-list svg { width: 22px; height: 22px; color: var(--lime); }
.sec-list strong { color: var(--text); display: block; }

footer.site { padding: 28px 0 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); margin-top: 40px; }
footer.site .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-bag { display: none; }
  .book-strip { grid-template-columns: 1fr; }
  .rep-row { grid-template-columns: 1fr 1fr; }
  .rep-row .rm { justify-self: end; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; }
  .opts.cols-2 { grid-template-columns: 1fr; }
  .rep-row { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .brand-word { font-size: 18px; }
  .brand img { width: 36px; height: 36px; }
  .pill-status { font-size: 0; gap: 0; padding: 8px; }
  .pill-status .dot { width: 10px; height: 10px; }
  .price-main { grid-template-columns: 1fr; text-align: left; padding: 22px 20px 14px; }
  .price-main .sep { width: 100%; height: 1px; }
  .price-main .addon { text-align: left; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 12px 10px; }
  .stat .v { font-size: 22px; }
  .stat .k { font-size: 10px; letter-spacing: 0.06em; }
  .hero-meta strong { white-space: nowrap; }
  .kv { grid-template-columns: 1fr; gap: 0 }
  .kv dt { margin-top: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
  .wizard-nav .pos { display: none; }
  .audit div { grid-template-columns: 1fr; }
  .rec { grid-template-columns: 1fr; }
  .rec .badges { justify-content: flex-start; }
}
@media print { .topbar, .wizard-nav, footer.site { display: none; } body { background: #fff; color: #000; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* deposit step on the confirmation screen */
.deposit{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:22px 0 6px;padding:18px 20px;border-radius:14px;background:rgba(31,140,62,.08);border:1px solid rgba(31,140,62,.28)}
.deposit strong{font-size:17px}
.deposit span{display:block;margin-top:4px;color:var(--muted);font-size:14px;line-height:1.45}
.deposit .btn{flex:0 0 auto;text-decoration:none}
@media (max-width:620px){.deposit{flex-direction:column;align-items:stretch;text-align:center}}
.badge.paid{background:rgba(31,140,62,.14);color:#1f6f35;border-color:rgba(31,140,62,.35)}
.badge.requested{background:rgba(214,160,20,.14);color:#8a6400;border-color:rgba(214,160,20,.4)}

@media (max-width: 700px) {
  .tabs { -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 24px; }
  .steps { mask-image: linear-gradient(90deg, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); padding-right: 24px; }
}
