/* AD Registry EDC — SaaS-style design system */
:root {
  --bg: #f4f6fb; --surface: #ffffff; --surface-2: #f8f9fc; --text: #141a2b; --muted: #5b6478; --line: #e3e7f0;
  --brand: #4f46e5; --brand-2: #7c3aed; --brand-ink: #ffffff; --brand-soft: #eef0ff;
  --ok: #0f8a5f; --ok-bg: #e6f6ef; --warn: #9a5b00; --warn-bg: #fff4e0; --bad: #b42318; --bad-bg: #feeceb;
  --side: #0f1530; --side-text: #c7cbe0; --side-muted: #7a80a3; --side-active: #1d2550;
  --focus: #a5b4fc; --shadow: 0 1px 2px rgba(20,26,43,.05), 0 4px 16px rgba(20,26,43,.06); --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1020; --surface: #161a2e; --surface-2: #1b2036; --text: #e8eaf4; --muted: #9aa1bd; --line: #262c47;
    --brand: #818cf8; --brand-2: #a78bfa; --brand-ink: #0d1020; --brand-soft: #1f2450;
    --ok: #5fd3a5; --ok-bg: #12301f; --warn: #f3c068; --warn-bg: #33270f; --bad: #ff8f86; --bad-bg: #3a1716;
    --side: #0a0d1c; --side-active: #1a2047; --focus: #4f46e5; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.25);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; letter-spacing: -.02em; margin: 0; }
h2 { font-size: 1.08rem; margin: 0 0 12px; letter-spacing: -.01em; }
h3 { font-size: .98rem; margin: 18px 0 8px; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.ic { width: 18px; height: 18px; flex: none; } .ic.big { width: 40px; height: 40px; color: var(--ok); }

/* ---------- shell ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: 252px; background: var(--side); color: var(--side-text); display: flex; flex-direction: column; padding: 18px 14px; z-index: 30; overflow-y: auto; }
.brand { display: block; padding: 4px 8px 18px; text-decoration: none !important; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo svg { width: 34px; height: 34px; }
.logo-bg { fill: var(--brand); } .logo-ln { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; } .logo-dot { fill: #fff; }
.logo-t { color: #fff; font-weight: 700; font-size: 1.02rem; line-height: 1.1; display: flex; flex-direction: column; }
.logo-t small { color: var(--side-muted); font-weight: 600; font-size: .7rem; letter-spacing: .14em; }
.side .btn.block { margin: 0 4px 14px; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-h { color: var(--side-muted); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; color: var(--side-text); padding: 9px 11px; border-radius: 10px; font-weight: 500; text-decoration: none; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a[aria-current] { background: var(--side-active); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.badge { margin-left: auto; background: #f59e0b; color: #1a1300; font-size: .72rem; padding: 1px 8px; border-radius: 99px; }
.me { display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; }
.me-t { display: flex; flex-direction: column; min-width: 0; flex: 1; } .me-t b { color: #fff; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .me-t small { color: var(--side-muted); font-size: .75rem; }
.icon-btn { color: var(--side-muted); padding: 6px; border-radius: 8px; display: inline-flex; } .icon-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
.shell { margin-left: 252px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 12px 28px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-t { font-weight: 600; } .study-pill { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; font-size: .8rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 4px 12px; border-radius: 99px; }
.menu-btn, .navtoggle, .scrim { display: none; }
main { padding: 26px 28px 40px; max-width: 1240px; width: 100%; }
footer { margin-top: auto; padding: 16px 28px; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); }
.demo-banner { display: flex; gap: 10px; align-items: center; background: linear-gradient(90deg, var(--warn-bg), var(--surface)); color: var(--warn); padding: 10px 28px; font-size: .9rem; border-bottom: 1px solid var(--line); }

/* ---------- auth ---------- */
body.auth main { max-width: none; padding: 0; min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero { background: radial-gradient(1200px 600px at -10% -10%, #6d5ef6 0%, transparent 60%), linear-gradient(140deg, #1e1b4b, #312e81 55%, #4c1d95); color: #fff; padding: 56px 60px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-hero h2 { font-size: 2.1rem; line-height: 1.15; letter-spacing: -.03em; margin: 40px 0 14px; max-width: 520px; }
.auth-hero p { color: #d6d3ff; max-width: 470px; }
.auth-hero ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.auth-hero li { display: flex; gap: 10px; align-items: center; color: #ece9ff; }
.auth-hero li .ic { color: #a5f3c4; }
.auth-card { display: grid; place-items: center; padding: 40px 24px; }
.auth-card form, .auth-card .card { width: 100%; max-width: 400px; }
.auth-card h1 { margin-bottom: 6px; }

/* ---------- components ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .sub { margin: 6px 0 0; color: var(--muted); }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 18px; box-shadow: var(--shadow); }
.card.narrow { max-width: 560px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; } .card-head h2 { margin: 0; }
details.card summary { cursor: pointer; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; } .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scroll { overflow-x: auto; }
.alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; border: 1px solid transparent; }
.alert ul { margin: 6px 0 0 18px; padding: 0; } .alert .ic { margin-top: 2px; }
.alert.ok { background: var(--ok-bg); color: var(--ok); } .alert.warn { background: var(--warn-bg); color: var(--warn); } .alert.bad { background: var(--bad-bg); color: var(--bad); }
.tip { display: flex; gap: 12px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; }
.tip .ic { color: var(--brand); margin-top: 2px; } .tip b { font-size: .88rem; } .tip p { margin: 2px 0 0; font-size: .88rem; color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 35%, transparent); transition: transform .08s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 40%, transparent); }
.btn.ghost { background: var(--surface); color: var(--brand); border: 1px solid var(--line); box-shadow: none; }
.btn.small { padding: 6px 12px; font-size: .84rem; }
.btn.block { display: flex; width: auto; }
.link { background: none; border: 0; color: var(--brand); cursor: pointer; font: inherit; padding: 0 4px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; max-width: 100%; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
input[type=number] { width: 7.5em; } input[type=date] { width: 11.5em; } textarea { width: 100%; }
input[type=radio], input[type=checkbox] { accent-color: var(--brand); width: 17px; height: 17px; }
label.lbl { display: block; font-weight: 600; margin: 12px 0; font-size: .92rem; } label.lbl input, label.lbl select { display: block; width: 100%; margin-top: 6px; font-weight: 400; }
label.lbl.wide { flex: 1 1 100%; margin: 0; }
label.opt { display: inline-flex; align-items: center; gap: 7px; margin-right: 8px; font-weight: 400; cursor: pointer; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label.opt { border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px 6px 10px; background: var(--surface); margin: 0; }
.opts label.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
form.inline { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0; }
table.grid { border-collapse: separate; border-spacing: 0; width: 100%; margin: 4px 0; }
table.grid th, table.grid td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: middle; }
table.grid th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--surface-2); }
table.grid tbody tr:hover td { background: var(--surface-2); }
table.grid td.c, table.grid th.c { text-align: center; } table.grid td.r, table.grid th.r { text-align: right; font-variant-numeric: tabular-nums; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 18px; }
.kpi { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.kpi-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.kpi .v { font-size: 1.7rem; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; } .kpi .l { color: var(--muted); font-size: .84rem; } .kpi .n { font-size: .76rem; color: var(--muted); }
.kpi.warn .kpi-ic { background: var(--warn-bg); color: var(--warn); } .kpi.ok .kpi-ic { background: var(--ok-bg); color: var(--ok); }
.bar-wrap { display: inline-flex; align-items: center; gap: 10px; width: 100%; } .bar-wrap b { font-size: .82rem; min-width: 3em; text-align: right; font-variant-numeric: tabular-nums; }
progress { appearance: none; -webkit-appearance: none; width: 100%; height: 8px; border: 0; border-radius: 99px; background: var(--line); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 99px; }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 99px; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--line); vertical-align: -1px; }
.dot.inc { border-color: #f59e0b; background: var(--warn-bg); } .dot.done { border-color: var(--brand); background: var(--brand); }
.dot.signed { border-color: var(--ok); background: var(--ok); } .dot.locked { border-color: var(--text); background: var(--text); }
.legend { font-size: .8rem; color: var(--muted); } .legend .dot { margin-left: 12px; }
.sbadge { display: inline-block; font-size: .74rem; font-weight: 650; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.sbadge.inc { background: var(--warn-bg); color: var(--warn); border-color: transparent; } .sbadge.done { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.sbadge.signed { background: var(--ok-bg); color: var(--ok); border-color: transparent; } .sbadge.locked { background: var(--text); color: var(--surface); border-color: transparent; }
.pill { display: inline-block; font-size: .78rem; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
.pill.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; } .pill.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; } .pill.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.empty { text-align: center; padding: 28px 10px; color: var(--muted); } .empty p { margin: 8px 0 0; }

/* ---------- dashboard ---------- */
.hero { background: radial-gradient(800px 300px at 100% 0%, color-mix(in srgb, var(--brand-2) 35%, transparent), transparent), linear-gradient(135deg, #1e1b4b, #3730a3); color: #fff; border-radius: 18px; padding: 26px 28px; margin-bottom: 18px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.hero h1 { font-size: 1.55rem; } .hero p { margin: 6px 0 0; color: #dcd9ff; }
.hero .btn.ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.hero .btn:not(.ghost) { background: #fff; color: #312e81; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.checklist .tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); flex: none; color: transparent; }
.checklist li.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; } .checklist li.done b { text-decoration: line-through; color: var(--muted); }
.checklist .tick .ic { width: 14px; height: 14px; } .checklist p { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.activity { list-style: none; margin: 0; padding: 0; } .activity li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .88rem; } .activity li:last-child { border: 0; }
.activity .when { color: var(--muted); margin-left: auto; white-space: nowrap; font-size: .8rem; }

/* ---------- patient timeline ---------- */
.patient-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.patient-av { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; }
.facts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 4px; } .facts span { color: var(--muted); font-size: .88rem; } .facts b { color: var(--text); }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; margin: 6px 0 4px; }
.tl-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; gap: 10px; }
.tl-step::before { content: ""; position: absolute; top: 31px; left: -15px; width: 15px; height: 2px; background: var(--line); }
.tl-step:first-child::before { display: none; }
.tl-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--surface-2); border: 2px solid var(--line); color: var(--muted); }
.tl-step.done .tl-num { background: var(--ok); border-color: var(--ok); color: #fff; } .tl-step.partial .tl-num { background: var(--warn-bg); border-color: #f59e0b; color: var(--warn); }
.tl-step.next { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent), var(--shadow); }
.tl-step h3 { margin: 0; font-size: .98rem; } .tl-forms { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.tl-forms a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--text); font-size: .86rem; } .tl-forms a:hover { background: var(--surface-2); text-decoration: none; }
.tl-forms .qn { margin-left: auto; }

/* ---------- eCRF wizard ---------- */
.crf .field { display: grid; grid-template-columns: minmax(200px, 36%) 1fr; gap: 6px 22px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.crf .field:last-child { border-bottom: 0; }
.crf .field .lbl { font-weight: 550; margin: 0; } .crf .ctl small { display: block; margin-top: 4px; }
.crf .field.t-scorad, .crf .field.t-easi, .crf .field.t-poem, .crf .field.t-repeat { grid-template-columns: 1fr; }
.crf .field[hidden] { display: none; }
.req { color: var(--bad); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.checks label.opt { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 0; } .checks label.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px 10px; margin: 0 0 16px; box-shadow: var(--shadow); }
.step > h3.sect { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; font-size: 1.02rem; }
.step > h3.sect .n { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: .82rem; }
.wizard-on .step:not(.active) { display: none; }
.stepper { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.stepper button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 99px; padding: 6px 14px 6px 6px; font: inherit; font-size: .85rem; cursor: pointer; }
.stepper button .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: .75rem; }
.stepper button.active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); font-weight: 600; } .stepper button.active .n { background: var(--brand); color: #fff; }
.stepper button.seen .n { background: var(--ok); color: #fff; }
.wiz-progress { margin: 0 0 16px; }
.wiz-nav { display: flex; gap: 10px; justify-content: space-between; margin: 0 0 16px; }
.actions { position: sticky; bottom: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); padding: 14px 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: end; border-top: 1px solid var(--line); margin-top: 6px; z-index: 5; }
.calc-block { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; overflow-x: auto; }
.calc-block table.grid th { background: transparent; }
.calc-block .result { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--brand-soft); }
.calc-block .result strong { color: var(--brand); font-size: 1.05rem; }
.poem td:first-child { min-width: 260px; }
.calc { font-size: 1rem; }

/* ---------- help center ---------- */
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 22px; }
.help-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); color: var(--text); }
.help-card:hover { border-color: var(--brand); text-decoration: none; transform: translateY(-1px); }
.help-card .kpi-ic { width: 38px; height: 38px; } .help-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.guide { scroll-margin-top: 80px; } .guide ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 12px; }
.guide ol.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.guide ol.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; display: grid; place-items: center; }
.kbd { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* ---------- report ---------- */
.report h3 { margin-top: 26px; }
svg.chart { width: 100%; height: auto; max-width: 820px; display: block; margin: 8px 0 16px; }
svg.chart .t-h { font-size: 14px; font-weight: 600; fill: var(--text); } svg.chart .t-s { font-size: 11px; fill: var(--muted); } svg.chart .t-s.inv { fill: #fff; }
svg.chart .ax { stroke: var(--line); } svg.chart .ln { fill: none; stroke: var(--brand); stroke-width: 2.2; } svg.chart .pt, svg.chart .bar { fill: var(--brand); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; } .tl-step::before { display: none; }
  body.auth main { grid-template-columns: 1fr; } .auth-hero { padding: 32px 24px; } .auth-hero h2 { font-size: 1.6rem; margin-top: 20px; }
}
@media (max-width: 860px) {
  .side { transform: translateX(-100%); transition: transform .2s; }
  .navtoggle:checked ~ .side { transform: none; }
  .navtoggle:checked ~ .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 25; }
  .shell { margin-left: 0; }
  .menu-btn { display: inline-flex; flex-direction: column; gap: 4px; cursor: pointer; padding: 6px; }
  .menu-btn span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }
  .study-pill { display: none; }
  main { padding: 18px 16px 32px; } .topbar { padding: 10px 16px; } .demo-banner { padding: 10px 16px; }
  .crf .field { grid-template-columns: 1fr; } .timeline { grid-template-columns: 1fr; }
  .step { padding: 4px 14px 8px; }
}
.wiz-progress .bar-wrap b { min-width: 8em; white-space: nowrap; color: var(--muted); }
.actions .wiz-nav { flex: 1 1 100%; margin: 0; }
.shell, main, .grid-2 > *, .grid-3 > *, .timeline > *, .card { min-width: 0; }
@media (max-width: 860px) { body.app { overflow-x: hidden; } .facts { gap: 6px 16px; } .page-head h1 { font-size: 1.35rem; } }
