/* Sukraa Appointment — shared mock-up styles
   Layout concept: calm clinical workspace — teal-green brand from the SHIMS
   lineage, saffron only for the one thing that needs attention, white cards on a
   faintly green-tinted ground. Patient screens are a single phone-width column;
   staff screens are a top bar plus a wide working canvas. */

:root {
  /* colour */
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-2: #edf2f0;
  --ink: #0f1f1a;
  --ink-2: #48594f;
  --muted: #758780;
  --line: #dbe4e0;
  --brand: #0e6a5a;
  --brand-strong: #0a5246;
  --brand-ink: #ffffff;
  --brand-soft: #e0efeb;
  --accent: #c76b06;
  --accent-soft: #fdf0e1;
  --good: #0a7d36;
  --good-soft: #e3f4e9;
  --warn: #9a6200;
  --warn-soft: #fbf1da;
  --crit: #c2312f;
  --crit-soft: #fbe7e6;
  --info: #2a6fc4;
  --info-soft: #e5eefa;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --grid: #e3e9e6;
  --axis: #b9c5c0;
  --shadow: 0 1px 2px rgba(15, 31, 26, .06), 0 8px 24px rgba(15, 31, 26, .06);
  /* type */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --fs-xs: .75rem;
  --fs-sm: .8125rem;
  --fs-md: .9375rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --radius: 10px;
  --radius-sm: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1412; --surface: #151c19; --surface-2: #1c2522; --ink: #e7eeeb; --ink-2: #b0bfb9;
    --muted: #82938c; --line: #29342f; --brand: #45b39d; --brand-strong: #63c7b2; --brand-ink: #04211a;
    --brand-soft: #16362f; --accent: #f0a14a; --accent-soft: #3a2a15; --good: #3ccf73; --good-soft: #143322;
    --warn: #f0b440; --warn-soft: #3a2f14; --crit: #f07472; --crit-soft: #3d1a1a; --info: #6aa6f0;
    --info-soft: #172a42; --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70;
    --grid: #232d29; --axis: #3a4641; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1412; --surface: #151c19; --surface-2: #1c2522; --ink: #e7eeeb; --ink-2: #b0bfb9;
  --muted: #82938c; --line: #29342f; --brand: #45b39d; --brand-strong: #63c7b2; --brand-ink: #04211a;
  --brand-soft: #16362f; --accent: #f0a14a; --accent-soft: #3a2a15; --good: #3ccf73; --good-soft: #143322;
  --warn: #f0b440; --warn-soft: #3a2f14; --crit: #f07472; --crit-soft: #3d1a1a; --info: #6aa6f0;
  --info-soft: #172a42; --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70;
  --grid: #232d29; --axis: #3a4641; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.5;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 50; background: var(--surface);
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.2; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: var(--fs-2xl); font-weight: 700; }
h2 { font-size: var(--fs-xl); font-weight: 650; }
h3 { font-size: var(--fs-lg); font-weight: 600; }
h4 { font-size: var(--fs-md); font-weight: 600; }
p { margin: 0; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.eyebrow { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 12px); }
.row { display: flex; align-items: center; gap: var(--gap, 8px); flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: var(--fs-sm); cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { color: var(--crit); }
.btn-lg { min-height: 52px; font-size: var(--fs-md); padding: 0 22px; border-radius: var(--radius); }
.btn-sm { min-height: 32px; padding: 0 10px; font-size: var(--fs-xs); }
.btn-block { width: 100%; }
.icon-btn { width: 40px; padding: 0; }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label, .label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.input, .select, textarea.input {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.input:focus, .select:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
.req::after { content: " *"; color: var(--crit); }
.prefix-input { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.prefix-input span { display: flex; align-items: center; padding: 0 10px; color: var(--muted); border-right: 1px solid var(--line); font-family: var(--font-mono); font-size: var(--fs-sm); }
.prefix-input input { border: 0; min-height: 44px; padding: 8px 12px; flex: 1; min-width: 0; background: transparent; }
.prefix-input:focus-within { outline: 2px solid var(--brand); outline-offset: -1px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: var(--fs-sm); }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

/* segmented control */
.seg { display: inline-flex; background: var(--surface-2); border-radius: var(--radius-sm); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button {
  border: 0; background: transparent; padding: 6px 12px; border-radius: 4px; cursor: pointer;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); min-height: 34px;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

/* chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; padding: 6px 14px; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; min-height: 34px;
}
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* switch */
.switch { position: relative; display: inline-block; width: 40px; height: 24px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--axis); border-radius: 999px; transition: background .15s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); transition: transform .15s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:disabled + span { opacity: .4; cursor: not-allowed; }
.switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- pills & badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; line-height: 1.6;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.no-dot::before { display: none; }
.p-booked { background: var(--info-soft); color: var(--info); }
.p-arrived { background: var(--warn-soft); color: var(--warn); }
.p-progress { background: var(--brand-soft); color: var(--brand); }
.p-done { background: var(--good-soft); color: var(--good); }
.p-cancel, .p-noshow { background: var(--surface-2); color: var(--muted); }
.p-emergency { background: var(--crit-soft); color: var(--crit); }
.p-new { background: var(--accent-soft); color: var(--accent); }
.badge {
  display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 4px; font-size: 11px;
  font-weight: 700; letter-spacing: .03em; text-transform: uppercase; border: 1px solid var(--line); color: var(--ink-2);
}
.b-hms { color: var(--info); border-color: color-mix(in srgb, var(--info) 35%, transparent); }
.b-local { color: var(--ink-2); }
.b-override { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.b-tag { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card-flat { background: var(--surface-2); border-radius: var(--radius); padding: 14px 16px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- staff app shell ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
}
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: var(--fs-xs); color: var(--muted); line-height: 1.1; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav button, .nav a {
  border: 0; background: transparent; padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; text-decoration: none;
}
.nav [aria-current="page"], .nav [aria-selected="true"] { background: var(--brand-soft); color: var(--brand); }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2); margin-left: auto; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-xs); color: var(--ink-2); flex: 0 0 auto; }
.page {
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 20px 48px; max-width: 1440px; margin: 0 auto;
}

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi .v { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; line-height: 1.15; }
.kpi .d { font-size: var(--fs-xs); font-weight: 600; }
.up { color: var(--good); }
.down { color: var(--crit); }

/* ---------- charts ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.chart .lbl { fill: var(--ink-2); font-size: 12px; }
.chart .val { fill: var(--ink); font-size: 12px; font-weight: 700; }
.chart .grid { stroke: var(--grid); }
.chart .axis { stroke: var(--axis); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tip {
  position: fixed; pointer-events: none; z-index: 60; background: var(--ink); color: var(--bg);
  padding: 6px 10px; border-radius: 6px; font-size: var(--fs-xs); font-weight: 600; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 10px));
}

/* ---------- drawer & toast ---------- */
.scrim { position: fixed; inset: 0; background: rgba(5, 15, 12, .45); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(560px, 100%);
  background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
.drawer header, .drawer footer { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.drawer footer { border-bottom: 0; border-top: 1px solid var(--line); }
.drawer .body { padding: 18px 20px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 18px; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 8px; font-weight: 600;
  font-size: var(--fs-sm); z-index: 70; box-shadow: var(--shadow); max-width: calc(100% - 32px);
}

/* ---------- slots ---------- */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot {
  min-height: 42px; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--good) 40%, var(--line));
  background: var(--good-soft); color: var(--good); font-weight: 700; font-size: var(--fs-sm);
  cursor: pointer; font-family: var(--font-mono); font-variant-numeric: tabular-nums; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1.15; padding: 4px;
}
.slot small { font-family: var(--font-body); font-weight: 600; font-size: 10px; }
.slot:hover { border-color: var(--good); }
.slot[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.slot.booked { background: var(--crit-soft); border-color: transparent; color: var(--crit); text-decoration: line-through; cursor: not-allowed; opacity: .8; }
.slot.booked.overbookable { cursor: pointer; }
.slot.blocked { background: var(--surface-2); color: var(--muted); border-color: transparent; cursor: not-allowed; }
.slot.tagged { box-shadow: inset 0 -3px 0 var(--accent); }
.legend-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--ink-2); }
.legend-row span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.lg-free::before { background: var(--good-soft); border: 1px solid var(--good); }
.lg-booked::before { background: var(--crit-soft); border: 1px solid var(--crit); }
.lg-sel::before { background: var(--brand); }
.lg-tag::before { background: var(--surface); box-shadow: inset 0 -3px 0 var(--accent); border: 1px solid var(--line); }
.lg-block::before { background: var(--surface-2); border: 1px solid var(--axis); }

/* date strip */
.dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.dates::-webkit-scrollbar { display: none; }
.date {
  flex: 0 0 auto; width: 58px; padding: 8px 0; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); text-align: center; cursor: pointer; display: flex; flex-direction: column; gap: 0;
}
.date b { font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.2; }
.date span { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.date em { font-style: normal; font-size: 10px; color: var(--good); font-weight: 700; }
.date[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.date[aria-pressed="true"] span, .date[aria-pressed="true"] em { color: var(--brand-ink); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- forms in drawers (admin, super admin) ---------- */
.drawer.wide { width: min(780px, 100%); }
.drawer .body.form-body { gap: 0; padding: 0; }
.fsec { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.fsec:last-child { border-bottom: 0; }
.fsec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fsec-h h4 { font-size: var(--fs-md); }
.fsec-h p { font-size: var(--fs-xs); color: var(--muted); }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.fgrid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fgrid .span2 { grid-column: span 2; }
.fgrid .span3 { grid-column: 1 / -1; }
@media (max-width: 600px) { .fgrid, .fgrid.c3 { grid-template-columns: 1fr; } .fgrid .span2 { grid-column: auto; } }
.field .err { font-size: var(--fs-xs); color: var(--crit); font-weight: 600; }
.input.invalid, .select.invalid { border-color: var(--crit); box-shadow: 0 0 0 1px var(--crit); }
.input[readonly] { background: var(--surface-2); color: var(--ink-2); }
.lock-note { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--info); }
.err-summary { margin: 16px 20px 0; padding: 12px 14px; border-radius: 8px; background: var(--crit-soft); color: var(--crit); font-size: var(--fs-sm); font-weight: 600; }
.photo-up { display: flex; align-items: center; gap: 14px; }
.photo-up .ph { width: 72px; height: 72px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--muted); font-weight: 700; flex: 0 0 auto; }
.photo-up .ph img { width: 100%; height: 100%; object-fit: cover; }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.chipset label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: var(--fs-sm); cursor: pointer; background: var(--surface); }
.chipset input { position: absolute; opacity: 0; width: 0; height: 0; }
.chipset label:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 700; }
.chipset label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.mode-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.mode-row:has(input[type="checkbox"]:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 50%, transparent); }
.counter { font-size: var(--fs-xs); color: var(--muted); text-align: right; }

/* weekly session editor */
.wk-ed { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.wk-ed-row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); align-items: start; }
.wk-ed-row:last-child { border-bottom: 0; }
.wk-ed-row.off { background: var(--surface-2); }
.wk-ed-day { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--fs-sm); padding-top: 8px; }
.wk-ed-day input { width: 18px; height: 18px; accent-color: var(--brand); }
.sess-rows { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sess-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sess-row .input, .sess-row .select { min-height: 36px; padding: 4px 8px; width: auto; font-size: var(--fs-sm); }
.sess-row input[type="time"] { width: 112px; }
.sess-row .num-in { width: 72px; }
.sess-row .xs { color: var(--muted); }
.icon-x { width: 32px; height: 32px; border-radius: 6px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-x:hover { background: var(--crit-soft); color: var(--crit); }

/* wizard steps */
.steps { display: flex; gap: 4px; padding: 12px 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.steps button { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 10px 6px 6px; border-radius: 999px; cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); white-space: nowrap; }
.steps button span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: var(--fs-xs); font-weight: 700; }
.steps button[aria-current="step"] { color: var(--ink); background: var(--brand-soft); }
.steps button[aria-current="step"] span { background: var(--brand); color: var(--brand-ink); }
.steps button.done span { background: var(--good-soft); color: var(--good); }
.steps button:disabled { cursor: not-allowed; }
.plan-cards, .mode-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.pick-card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.pick-card b { font-family: var(--font-display); font-size: 1.05rem; }
.pick-card span { font-size: var(--fs-xs); color: var(--muted); }
.pick-card[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--brand-soft); }
.pick-card:disabled { cursor: not-allowed; opacity: .75; }
.loc-block { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.fac-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr) 32px; gap: 8px; align-items: end; }
@media (max-width: 600px) { .fac-row { grid-template-columns: 1fr 1fr; } }
.review { display: grid; grid-template-columns: 160px 1fr; gap: 8px 14px; font-size: var(--fs-sm); }
.review dt { color: var(--muted); }
.review dd { margin: 0; font-weight: 600; min-width: 0; }
.suffix-input { display: flex; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.suffix-input input { border: 0; background: transparent; min-height: 44px; padding: 8px 12px; flex: 1; min-width: 0; }
.suffix-input span { display: flex; align-items: center; padding: 0 12px; color: var(--muted); font-family: var(--font-mono); font-size: var(--fs-sm); border-left: 1px solid var(--line); }
.suffix-input:focus-within { outline: 2px solid var(--brand); outline-offset: -1px; }
.prefix-input.invalid, .suffix-input.invalid, .wk-ed.invalid { border-color: var(--crit); box-shadow: 0 0 0 1px var(--crit); }
