/* ============================================================
   Cobble — blue-scale design system
   Brand: cobble (lowercase wordmark in the system sans-serif stack).
   Pure blue-scale palette: all neutrals are blue-tinted.
   ============================================================ */

:root {
  /* Blue scale — darkest to lightest */
  --blue-950: #081427;
  --blue-900: #0c2040;
  --blue-800: #11315e;
  --blue-700: #17457f;
  --blue-600: #1f5ba3;
  --blue-500: #2d74c4;
  --blue-400: #5494d6;
  --blue-300: #86b5e4;
  --blue-200: #b6d2ef;
  --blue-100: #d9e8f8;
  --blue-50:  #eef5fc;
  --blue-25:  #f7fafd;

  /* Semantic aliases */
  --ink:        var(--blue-950);
  --ink-soft:   #3c5a7d;        /* blue-tinted body gray */
  --ink-faint:  #6c87a6;
  --line:       var(--blue-100);
  --surface:    #ffffff;
  --surface-alt: var(--blue-25);
  --brand:      var(--blue-600);
  --brand-deep: var(--blue-800);
  --brand-hover: var(--blue-700);

  /* Alert colors kept inside the blue family where possible;
     red reserved strictly for emergency/red-flag content */
  --danger:     #b3261e;
  --danger-bg:  #fdf1f0;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(8, 20, 39, 0.08);
  --shadow-md: 0 6px 24px rgba(8, 20, 39, 0.10);
  --max-w: 1080px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }

.lead { font-size: 1.18rem; color: var(--ink-soft); }
.muted { color: var(--ink-faint); }
.small { font-size: 0.86rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }

.btn-deep { background: var(--brand-deep); color: #fff; }
.btn-deep:hover { background: var(--blue-900); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--blue-200);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-hover); }

.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: var(--blue-50); }

.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-block { display: block; width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 68px;
  gap: 36px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-deep);
  letter-spacing: 0.01em;
  text-transform: lowercase;
  line-height: 1;
}

.logo:hover { color: var(--brand-deep); }

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  flex: 1;
}
/* the CTA sits apart from the text links, pushed to the far right */
.nav-links li:last-child { margin-left: auto; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
.nav-links a:hover { color: var(--brand); }
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }

@media (max-width: 820px) {
  .nav-links li.hide-mobile { display: none; }
}

/* ---------- Emergency banner ---------- */

.emergency-bar {
  background: var(--blue-900);
  color: var(--blue-200);
  text-align: center;
  font-size: 0.85rem;
  padding: 8px 16px;
}
.emergency-bar strong { color: #fff; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, var(--blue-100) 0%, transparent 60%),
    linear-gradient(180deg, var(--blue-50) 0%, #ffffff 90%);
  padding: 40px 0 10px;
}

.hero-inner { max-width: 760px; }

.hero h1 .accent { color: var(--brand); }

.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-points {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}
.hero-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.hero-points .tick {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 3px;
}

/* Price card — centered below the body map */
.price-card-centered {
  max-width: 440px;
  margin: 40px auto 0;
}

/* "Other" button under the body map */
.other-row {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 30px;
}
.price-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand-deep);
  letter-spacing: -0.03em;
}
.price-card ul {
  list-style: none;
  margin: 18px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.price-card li { display: flex; gap: 9px; }
.price-card li::before { content: "—"; color: var(--blue-300); flex: none; }

/* ---------- "What hurts" clickable body map ---------- */

.section-tight { padding: 14px 0 56px; }

/* "What hurts?" matches the hero headline size */
#what-hurts .section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  letter-spacing: -0.02em;
}

.body-map {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 7vw, 80px);
}

/* Image-based body map. Clicks are resolved to a body region by
   coordinate (see the body-map script in index.html). */
.body-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.body-wrap img {
  display: block;
  height: clamp(400px, 62vh, 580px);
  width: auto;
  user-select: none;
  -webkit-user-select: none;
  /* drop-shadow follows the figure's silhouette (box-shadow would draw a rectangle) */
  filter: drop-shadow(0 14px 22px rgba(8, 20, 39, 0.20))
          drop-shadow(0 3px 6px rgba(8, 20, 39, 0.10));
}

.ping-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-600);
  opacity: 0.3;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: none;
}

.zone-label {
  text-align: center;
  margin-top: 18px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--brand-deep);
  min-height: 1.6em;
}
.zone-label .hint { color: var(--ink-faint); font-weight: 500; }

/* ---------- Sections ---------- */

.section { padding: 76px 0; }
.section-alt { background: var(--surface-alt); }
.section-deep { background: var(--blue-900); color: var(--blue-100); }
.section-deep h2, .section-deep h3 { color: #fff; }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 10px; color: var(--ink-soft); }
.section-deep .section-head p { color: var(--blue-200); }

/* ---------- Cards / grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }

.step-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--brand-deep);
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.icon-chip {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
}

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
table.data th {
  text-align: left;
  background: var(--blue-50);
  color: var(--brand-deep);
  font-weight: 700;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}
table.data tr:last-child td { border-bottom: none; }
table.data td:first-child { color: var(--ink); font-weight: 600; }

/* ---------- States grid ---------- */

.states {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.state-chip {
  border: 1px solid var(--blue-200);
  background: #fff;
  color: var(--brand-deep);
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- Badges / notes ---------- */

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--brand-deep);
  letter-spacing: 0.02em;
}
.badge.clear { background: var(--blue-50); color: var(--blue-500); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }

.note {
  border-left: 3px solid var(--blue-300);
  background: var(--blue-25);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.note-danger {
  border-left-color: var(--danger);
  background: var(--danger-bg);
  color: #7a2520;
}

/* ---------- FAQ ---------- */

details.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0;
  margin-bottom: 12px;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 22px;
  list-style: none;
  position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  color: var(--brand);
  font-weight: 700;
}
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 22px 18px; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--blue-950);
  color: var(--blue-300);
  padding: 56px 0 40px;
  font-size: 0.88rem;
}
.site-footer a { color: var(--blue-200); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-legal {
  border-top: 1px solid var(--blue-800);
  padding-top: 24px;
  color: var(--blue-400);
  font-size: 0.8rem;
  line-height: 1.7;
}

/* ============================================================
   Wizard (evaluate.html)
   ============================================================ */

.wizard-page {
  background: var(--surface-alt);
  min-height: 100vh;
}

.wizard-shell {
  max-width: 660px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.progress-track {
  height: 6px;
  background: var(--blue-100);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.progress-label {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-bottom: 26px;
}

.wizard-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 36px;
}
@media (max-width: 560px) { .wizard-card { padding: 26px 20px; } }

.wizard-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.wizard-card .sub { color: var(--ink-soft); margin-bottom: 26px; font-size: 0.97rem; }

.field { margin-bottom: 20px; }
.field label.field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

input[type="text"], input[type="email"], input[type="number"], input[type="date"], input[type="password"], select, textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--blue-300);
  border-color: var(--brand);
}

/* Choice tiles (radio-style buttons) */
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choices.cols-3 { grid-template-columns: repeat(3, 1fr); }
.choices.cols-1 { grid-template-columns: 1fr; }
@media (max-width: 560px) { .choices, .choices.cols-3 { grid-template-columns: 1fr 1fr; } .choices.cols-1 { grid-template-columns: 1fr; } }

/* Large stacked choice (acute vs chronic) */
.choice.choice-big {
  text-align: left;
  padding: 18px 20px;
}
.choice-big .big-title { font-weight: 700; font-size: 1.05rem; display: block; }
.choice-big .big-sub { display: block; font-size: 0.88rem; color: var(--ink-faint); margin-top: 3px; font-weight: 400; }
.choice-big.selected .big-sub { color: var(--blue-600); }

.choice {
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  background: #fff;
  padding: 13px 14px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.choice:hover { border-color: var(--blue-400); }
.choice.selected {
  border-color: var(--brand);
  background: var(--blue-50);
  color: var(--brand-deep);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--brand);
}

/* Checkbox list (red flags) */
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  padding: 13px 14px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.12s ease, background 0.12s ease;
  font-size: 0.95rem;
}
.check-item:hover { border-color: var(--blue-400); }
.check-item input { margin-top: 3px; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.check-item.checked { border-color: var(--brand); background: var(--blue-50); }
.check-item.none-option { border-style: dashed; }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}

/* Auth (login / sign-up) step */
.btn-pill { border-radius: 999px; }

.auth-forgot {
  text-align: right;
  font-size: 0.9rem;
  margin: -10px 0 18px;
}

.auth-toggle {
  text-align: center;
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-faint);
  font-size: 0.9rem;
  margin: 22px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--blue-200);
  color: var(--ink);
  border-radius: 999px;
  padding: 13px 20px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  transition: border-color 0.15s ease;
}
.btn-social:hover { border-color: var(--blue-400); }
.btn-social svg { width: 18px; height: 18px; flex: none; }

/* Centered single choice under a choice grid (e.g. "Multiple Areas") */
.choice-center {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.choice-center .choice { min-width: 220px; }

/* VAS pain slider */
.vas-wrap { padding: 10px 4px 0; }
.vas-value {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand-deep);
  line-height: 1;
  margin-bottom: 4px;
}
.vas-value .of-ten { font-size: 1.1rem; font-weight: 600; color: var(--ink-faint); }
.vas-descriptor {
  text-align: center;
  min-height: 1.5em;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 18px;
}
input[type="range"].vas {
  width: 100%;
  accent-color: var(--brand);
  height: 34px;
  cursor: pointer;
}
.vas-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 2px;
}

.error-text { color: var(--danger); font-size: 0.88rem; margin-top: 10px; display: none; }
.error-text.show { display: block; }

/* Hard stop screen */
.hardstop {
  text-align: center;
  padding: 10px 0;
}
.hardstop .stop-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--danger-bg);
  color: var(--danger);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  font-weight: 800;
}
.hardstop h2 { color: var(--danger); }

/* Summary / receipt */
.summary-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
}
.summary-list .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}
.summary-list .row:last-child { border-bottom: none; }
.summary-list .row .k { color: var(--ink-faint); flex: none; }
.summary-list .row .v { font-weight: 600; text-align: right; }

.pay-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 14px 4px;
  color: var(--brand-deep);
}

.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin: 0 auto 20px;
  font-weight: 800;
}

/* ============================================================
   Physician portal (physician.html)
   ============================================================ */

.portal-body { background: var(--surface-alt); min-height: 100vh; }

.portal-topbar {
  background: var(--blue-900);
  color: #fff;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.portal-topbar .logo { color: #fff; font-size: 1.1rem; }
.portal-topbar .logo .logo-mark { background: rgba(255,255,255,0.14); }
.portal-topbar .doc-id { font-size: 0.85rem; color: var(--blue-300); }

.portal-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 0;
  height: calc(100vh - 60px);
}
@media (max-width: 900px) {
  .portal-layout { grid-template-columns: 1fr; height: auto; }
}

.queue-pane {
  border-right: 1px solid var(--line);
  background: #fff;
  overflow-y: auto;
}
.queue-head {
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 5;
}
.queue-head h2 { font-size: 1.05rem; }
.queue-head .small { color: var(--ink-faint); }

.queue-item {
  width: 100%;
  text-align: left;
  font-family: var(--font);
  background: #fff;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 15px 20px;
  cursor: pointer;
  display: block;
}
.queue-item:hover { background: var(--blue-25); }
.queue-item.active { background: var(--blue-50); box-shadow: inset 3px 0 0 var(--brand); }
.queue-item .qi-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 3px;
}
.queue-item .qi-name { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.queue-item .qi-time { font-size: 0.78rem; color: var(--ink-faint); flex: none; }
.queue-item .qi-meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 6px; }

.detail-pane { overflow-y: auto; padding: 28px; }
@media (max-width: 560px) { .detail-pane { padding: 18px; } }

.detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  margin-bottom: 20px;
}
.detail-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.detail-head h2 { font-size: 1.4rem; }

.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px 24px;
}
.kv .k { font-size: 0.78rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.kv .v { font-weight: 600; font-size: 0.95rem; }

.dispo-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 18px; }

.order-preview {
  background: var(--blue-25);
  border: 1px dashed var(--blue-300);
  border-radius: var(--radius);
  padding: 20px;
  font-family: "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.83rem;
  white-space: pre-wrap;
  color: var(--blue-800);
  line-height: 1.7;
}

.empty-state {
  text-align: center;
  color: var(--ink-faint);
  padding: 80px 20px;
}

/* ---------- Utility ---------- */

.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.hidden { display: none !important; }
