/* Medical POS — design tokens. System fonts only (store PCs work offline). */
:root {
  --brand: #0f766e; --brand-600: #0d9488; --brand-dark: #115e59; --brand-soft: #e6f6f4; --brand-ring: rgb(13 148 136 / .25);
  --side: #0b3b38; --side-2: #0f4a46; --side-text: #a9c9c4; --side-accent: #5eead4;
  --bg: #f4f6f8; --card: #fff; --text: #0f1f2e; --muted: #64748b; --line: #e7ebef; --line-2: #d6dde3;
  --danger: #dc2626; --danger-soft: #fef2f2; --warn: #b45309; --warn-soft: #fffbeb; --ok: #15803d; --ok-soft: #f0fdf4;
  --info: #2563eb; --info-soft: #eff6ff; --violet: #7c3aed; --violet-soft: #f5f3ff;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(16 24 40 / .04), 0 1px 3px rgb(16 24 40 / .06);
  --shadow-lg: 0 24px 48px -12px rgb(16 24 40 / .25);
  --side-w: 248px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.45;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ico { width: 18px; height: 18px; flex: none; }
a { color: var(--brand); }

/* ───────── Sidebar ───────── */
#sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--side); color: var(--side-text);
  display: flex; flex-direction: column; z-index: 40; background-image: linear-gradient(180deg, #0d4642 0%, var(--side) 45%);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px; border-bottom: 1px solid rgb(255 255 255 / .07); }
.logo { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #14b8a6, #0f766e); color: #fff;
  display: grid; place-items: center; flex: none; box-shadow: 0 4px 12px rgb(20 184 166 / .35); }
.logo svg { width: 20px; height: 20px; }
.brand-text { min-width: 0; }
#store { color: #fff; font-weight: 650; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#branch { display: block; color: var(--side-accent); font-size: 12px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#nav { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
#nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--side-text);
  text-decoration: none; font-weight: 500; transition: background .15s, color .15s; position: relative; }
#nav a:hover { background: rgb(255 255 255 / .06); color: #fff; }
#nav a.active { background: rgb(94 234 212 / .12); color: #fff; }
#nav a.active::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--side-accent); }
#nav a.active .ico { color: var(--side-accent); }
#provider { padding: 14px 18px 18px; font-size: 11.5px; line-height: 1.6; border-top: 1px solid rgb(255 255 255 / .07); color: #7fa7a1; }
#provider strong { color: #d5ebe7; font-weight: 600; }
#provider a { display: block; color: #a9c9c4; text-decoration: none; }
#provider a:hover { color: #fff; }
#scrim { display: none; }

/* ───────── Shell + top bar ───────── */
.shell { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 12px 28px;
  background: rgb(244 246 248 / .85); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); min-height: 64px; }
.titles { min-width: 0; }
#pageTitle { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
#pageSub { color: var(--muted); font-size: 12.5px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { display: none; background: var(--card); color: var(--text); border: 1px solid var(--line-2); padding: 7px; border-radius: var(--radius-sm); }
.icon-btn:hover { background: #f1f5f9; }
#branchPick { min-width: 190px; }
main { padding: 24px 28px 40px; width: 100%; max-width: 1480px; flex: 1; }

/* Sync pill */
button.sync { display: inline-flex; align-items: center; gap: 7px; background: var(--card); color: var(--text); border: 1px solid var(--line-2);
  font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow); }
button.sync:hover { background: #f8fafc; }
button.sync::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
button.sync.online::before { background: #22c55e; box-shadow: 0 0 0 3px rgb(34 197 94 / .18); }
button.sync.syncing::before { background: #eab308; animation: pulse 1s infinite; }
button.sync.offline { color: #9a3412; border-color: #fed7aa; background: #fff7ed; }
button.sync.offline::before { background: #f97316; }
button.sync.locked { background: var(--danger); color: #fff; border-color: var(--danger); }
button.sync.locked::before { background: #fff; }
@keyframes pulse { 50% { opacity: .35; } }

/* User menu */
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 8px 4px 4px;
  border-radius: 999px; border: 1px solid transparent; user-select: none; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover, .usermenu[open] summary { background: var(--card); border-color: var(--line-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  color: #fff; background: linear-gradient(135deg, #14b8a6, #0f766e); }
.who { display: flex; flex-direction: column; line-height: 1.2; }
.who strong { font-size: 13px; font-weight: 600; }
.who small { color: var(--muted); font-size: 11.5px; }
.chev { width: 16px; height: 16px; color: var(--muted); }
.usermenu .menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; min-width: 200px; z-index: 50; }
.usermenu .menu button { display: flex; align-items: center; gap: 10px; width: 100%; background: none; color: var(--text);
  padding: 9px 10px; border-radius: var(--radius-sm); text-align: left; font-weight: 500; }
.usermenu .menu button:hover { background: #f1f5f9; }

/* Banner */
#banner.banner { margin: 16px 28px 0; padding: 12px 16px; border-radius: var(--radius); font-weight: 600; border: 1px solid; }
#banner.warn { background: var(--warn-soft); color: #92400e; border-color: #fde68a; }
#banner.danger { background: var(--danger-soft); color: #b91c1c; border-color: #fecaca; }

/* ───────── Logged-out (sign in / activate / setup) ───────── */
body.logged-out #sidebar, body.logged-out .topbar, body.logged-out #scrim { display: none; }
body.logged-out .shell { margin-left: 0; }
body.logged-out main { max-width: none; padding: 0; display: flex; }
.auth { flex: 1; display: grid; grid-template-columns: minmax(360px, 1fr) minmax(400px, 560px); min-height: 100vh; }
.auth-hero { position: relative; overflow: hidden; color: #d5ebe7; padding: 48px 56px; display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at -10% -10%, #14b8a6 0%, transparent 55%), linear-gradient(160deg, #0f4a46, #072a28); }
.auth-hero::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 60px solid rgb(255 255 255 / .04); }
.auth-hero .brand { border: 0; padding: 0; }
.auth-hero .brand .name { color: #fff; font-weight: 700; font-size: 18px; }
.auth-hero h2 { color: #fff; font-size: 34px; line-height: 1.15; letter-spacing: -.02em; margin: auto 0 14px; max-width: 460px; font-weight: 700; }
.auth-hero p.lead { margin: 0 0 28px; max-width: 440px; font-size: 15px; color: #a9c9c4; }
.feats { list-style: none; margin: 0 0 auto; padding: 0; display: grid; gap: 12px; }
.feats li { display: flex; gap: 12px; align-items: center; }
.feats .ico { color: var(--side-accent); background: rgb(94 234 212 / .1); border-radius: 8px; padding: 6px; width: 30px; height: 30px; }
.auth-hero .prov { font-size: 12px; color: #7fa7a1; margin-top: 32px; }
.auth-hero .prov a { color: #a9c9c4; text-decoration: none; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px; background: var(--card); }
.login { width: 100%; max-width: 380px; margin: 0 auto; display: grid; gap: 16px; }
.login h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.login p { margin: 0; }
.login label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #334155; }
.login input { padding: 11px 13px; font-size: 15px; }
.login button.big { width: 100%; margin-top: 4px; }
.login .muted.small { margin-top: 8px; }

/* ───────── Typography & basics ───────── */
h2 { margin: 0 0 14px; font-size: 16px; font-weight: 650; letter-spacing: -.005em; }
h3 { margin: 18px 0 8px; font-size: 14px; font-weight: 650; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.empty { color: var(--muted); text-align: center; padding: 28px 12px; margin: 0; background: #fafbfc; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .grow { flex: 1; }
.toolbar label.muted { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.key { font-family: "Cascadia Mono", Consolas, monospace; font-size: 1.3rem; letter-spacing: .06em; background: var(--brand-soft); color: var(--brand-dark);
  padding: 16px; border-radius: var(--radius-sm); text-align: center; user-select: all; border: 1px dashed #99d5cd; }

/* ───────── Forms & buttons ───────── */
input, select, textarea { font: inherit; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; color: inherit;
  transition: border-color .15s, box-shadow .15s; min-height: 36px; }
input::placeholder, textarea::placeholder { color: #94a3b8; }
input:hover, select:hover, textarea:hover { border-color: #b8c3cc; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-ring); }
input[type="checkbox"] { min-height: 0; width: 16px; height: 16px; accent-color: var(--brand); }
button, label.button { font: inherit; font-weight: 600; background: var(--brand); color: #fff; border: 1px solid transparent; padding: 8px 15px;
  border-radius: var(--radius-sm); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .15s, box-shadow .15s, transform .05s; min-height: 36px; }
button:hover { background: var(--brand-dark); }
button:active { transform: translateY(1px); }
button:focus-visible, label.button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-ring); }
button.secondary, label.button.secondary { background: #fff; color: var(--text); border-color: var(--line-2); box-shadow: 0 1px 2px rgb(16 24 40 / .05); }
button.secondary:hover, label.button.secondary:hover { background: #f8fafc; border-color: #b8c3cc; }
button.danger { background: var(--danger); }
button.danger:hover { background: #b91c1c; }
button.small { padding: 4px 10px; font-size: 12.5px; min-height: 30px; }
button.icon { background: none; color: var(--muted); padding: 4px 8px; min-height: 0; border: 0; }
button.icon:hover { background: #f1f5f9; color: var(--text); }
button.big { padding: 12px 24px; font-size: 15px; min-height: 46px; }
button:disabled { opacity: .55; cursor: default; transform: none; }
label.button { margin: 0; }

/* ───────── Tables ───────── */
.scroll-x { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.card > table.grid { display: block; overflow-x: auto; }
table.grid { width: 100%; border-collapse: separate; border-spacing: 0; }
table.grid th, table.grid td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid th { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #f8fafb; white-space: nowrap; }
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid tbody tr { transition: background .1s; }
table.grid tbody tr:hover td { background: #f8fbfb; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
td .actions-inline { display: flex; gap: 6px; justify-content: flex-end; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: #f1f5f9; color: #475569; white-space: nowrap; }
.badge.rx { background: var(--danger-soft); color: #b91c1c; }
.badge.ok { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1px #bbf7d0; }
.badge.warn { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px #fde68a; }
.badge.danger { background: var(--danger-soft); color: #b91c1c; box-shadow: inset 0 0 0 1px #fecaca; }

/* ───────── Dashboard ───────── */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: start; }
.stat .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat .value { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; grid-column: 1; }
.stat .sub { color: var(--muted); font-size: 12px; grid-column: 1 / -1; }
.stat .bubble { grid-column: 2; grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); }
.stat .bubble .ico { width: 20px; height: 20px; }
.stat.blue .bubble { background: var(--info-soft); color: var(--info); }
.stat.violet .bubble { background: var(--violet-soft); color: var(--violet); }
.stat.amber .bubble { background: var(--warn-soft); color: var(--warn); }
.stat.alert { border-color: #fecaca; background: linear-gradient(180deg, #fff, #fffafa); }
.stat.alert .value { color: var(--danger); }
.stat.alert .bubble { background: var(--danger-soft); color: var(--danger); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card-head h2 { margin: 0; }

.chart { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.chart .axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); text-align: right;
  height: 200px; padding-bottom: 22px; font-variant-numeric: tabular-nums; }
.bars { position: relative; display: flex; align-items: flex-end; gap: 8px; height: 200px; padding-bottom: 22px;
  background: repeating-linear-gradient(to top, var(--line) 0 1px, transparent 1px 44.5px); background-position: 0 -22px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; position: relative; }
.bars .bar div { width: 100%; max-width: 38px; background: linear-gradient(180deg, #2dd4bf, var(--brand)); border-radius: 6px 6px 2px 2px; min-height: 3px;
  transition: filter .15s; }
.bars .bar.zero div { background: #e2e8f0; }
.bars .bar:hover div { filter: brightness(1.1); }
.bars .bar span { position: absolute; bottom: -20px; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.bars .bar.today span { color: var(--brand); font-weight: 700; }

/* ───────── Billing ───────── */
.billing { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(420px, 1.35fr); gap: 18px; align-items: start; }
.searchbox { position: relative; }
.searchbox .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
#q { width: 100%; padding: 13px 14px 13px 44px; font-size: 16px; min-height: 50px; border-radius: 10px; }
.kbd-hints { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--muted); }
kbd { font: 600 11px/1 "Cascadia Mono", Consolas, monospace; padding: 3px 6px; border-radius: 5px; background: #f1f5f9; border: 1px solid var(--line-2);
  border-bottom-width: 2px; color: #334155; }
.results { list-style: none; padding: 0; margin: 12px 0 0; max-height: calc(100vh - 290px); overflow: auto; display: grid; gap: 6px; }
.results li { padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between;
  gap: 10px; align-items: center; transition: border-color .1s, background .1s; }
.results li:hover { border-color: #99d5cd; background: #fbfefe; }
.results li.sel { border-color: var(--brand-600); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-ring); }
.results li.out { opacity: .55; cursor: not-allowed; }
.results li > span:first-child { font-weight: 600; }
.results small { color: var(--muted); display: block; font-weight: 400; }
.results .num { font-weight: 600; }
.search-empty { text-align: center; color: var(--muted); padding: 40px 10px 24px; }
.search-empty .ico { width: 40px; height: 40px; color: #cbd5e1; margin-bottom: 6px; }
.cart td { padding-top: 8px; padding-bottom: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.qty button { background: #f8fafc; color: var(--text); border: 0; border-radius: 0; min-height: 32px; width: 30px; padding: 0; font-size: 16px; font-weight: 600; }
.qty button:hover { background: #e2e8f0; }
.qty input { width: 48px; border: 0; border-radius: 0; text-align: center; min-height: 32px; padding: 4px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { display: none; }
.qty input:focus { box-shadow: none; background: var(--brand-soft); }
.checkout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.checkout label, .form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: #475569; }
.grand { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding: 16px 18px; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(135deg, #0f4a46, #0b3b38); color: #d5ebe7; border-radius: var(--radius); }
.grand .muted { color: #a9c9c4; }
.grand a { color: #5eead4; }
.grand .total { font-size: 28px; font-weight: 750; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.grand .change { color: #5eead4; font-weight: 600; }
.grand button.secondary { background: rgb(255 255 255 / .08); color: #fff; border-color: rgb(255 255 255 / .2); box-shadow: none; }
.grand button.secondary:hover { background: rgb(255 255 255 / .15); }
.grand button.big { background: #14b8a6; color: #04201e; }
.grand button.big:hover { background: #2dd4bf; }
.bill-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bill-head h2 { margin: 0; }
.cart-count { background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 12px; padding: 2px 10px; border-radius: 999px; }
#empty { text-align: center; padding: 28px 10px; color: var(--muted); }
#empty .ico { width: 36px; height: 36px; color: #cbd5e1; display: block; margin: 0 auto 6px; }

/* ───────── Dialogs ───────── */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(500px, 94vw); box-shadow: var(--shadow-lg); color: var(--text); }
dialog.wide { width: min(940px, 96vw); }
dialog[open] { animation: pop .16s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
dialog::backdrop { background: rgb(15 23 42 / .5); backdrop-filter: blur(2px); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dlg-head h2 { margin: 0; font-size: 17px; }
.dlg-body { padding: 20px; max-height: 76vh; overflow: auto; }
.form { display: grid; gap: 14px; }
.form label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 14px; font-weight: 500; }
.form .actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 6px; }
.form-error { color: var(--danger); margin: 0; min-height: 1em; font-size: 13px; font-weight: 500; }

/* Stock-in rows */
.lines td input { width: 100%; min-width: 70px; }
.lines td input.med { min-width: 220px; }

.progress { height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin: 12px 0; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, #14b8a6, var(--brand)); border-radius: 999px; transition: width .3s; }

/* Loading + toast */
.loading { display: flex; gap: 6px; justify-content: center; padding: 60px; }
.loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-600); animation: pulse 1s infinite; }
.loading span:nth-child(2) { animation-delay: .15s; } .loading span:nth-child(3) { animation-delay: .3s; }
#toast { position: fixed; bottom: 24px; right: 24px; transform: translateY(calc(100% + 40px)); background: #0f1f2e; color: #fff; padding: 12px 18px 12px 16px;
  border-radius: 10px; transition: transform .22s cubic-bezier(.2, .9, .3, 1.2), opacity .2s; z-index: 1000; max-width: min(460px, 90vw); box-shadow: var(--shadow-lg);
  border-left: 4px solid #2dd4bf; font-weight: 500; opacity: 0; pointer-events: none; }
#toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
#toast.error { background: #450a0a; border-left-color: #f87171; }

/* ───────── Responsive ───────── */
@media (max-width: 1100px) {
  .billing { grid-template-columns: 1fr; }
  .results { max-height: 45vh; }
}
@media (max-width: 900px) {
  :root { --side-w: 264px; }
  #sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  body.nav-open #sidebar { transform: none; }
  body.nav-open #scrim { display: block; position: fixed; inset: 0; background: rgb(15 23 42 / .45); z-index: 35; }
  .shell { margin-left: 0; }
  .icon-btn { display: inline-flex; }
  .topbar { padding: 10px 16px; }
  main { padding: 16px 16px 32px; }
  #banner.banner { margin: 12px 16px 0; }
  .who, .chev { display: none; }
  #pageSub { display: none; }
  .cols, .checkout { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 28px 24px; }
  .auth-hero h2 { font-size: 24px; margin-top: 24px; }
  .feats, .auth-hero p.lead, .auth-hero::after { display: none; }
  .auth-panel { padding: 32px 20px; }
}
@media (max-width: 560px) {
  #branchPick { min-width: 0; max-width: 140px; }
  button.sync { padding: 6px 9px; }
}
@media print { #sidebar, .topbar, #toast { display: none !important; } .shell { margin: 0; } }
