/* ==========================================================================
   Rainforest Mobility — admin
   Shopify-style shell: fixed sidebar, dense data tables, slide-over editors.
   Deliberately its own visual language, cooler and denser than the storefront,
   so there is never any doubt about which side of the site you are on.
   ========================================================================== */

:root {
  --a-bg: #F1F2F4;
  --a-surface: #FFFFFF;
  --a-sidebar: #1A1D21;
  --a-sidebar-hover: #26292E;
  --a-sidebar-active: #303439;
  --a-ink: #1F2226;
  --a-muted: #5C6470;
  --a-faint: #8A929E;
  --a-line: #DDE0E5;
  --a-line-soft: #EBEDF0;
  --a-accent: #1F6B45;
  --a-accent-dk: #175436;
  --a-accent-soft: #E7F2EC;
  --a-warn: #9A6300;
  --a-warn-soft: #FFF6E3;
  --a-danger: #A32014;
  --a-danger-soft: #FDECEA;
  --a-info: #1D4E89;
  --a-info-soft: #E8F0FA;

  --a-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --a-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --a-r: 10px;
  --a-r-sm: 6px;
  --a-shadow: 0 1px 2px rgba(24,28,33,.06), 0 4px 12px rgba(24,28,33,.06);
  --a-shadow-lg: 0 8px 28px rgba(24,28,33,.14), 0 2px 6px rgba(24,28,33,.08);
  --a-sidebar-w: 232px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--a-bg);
  color: var(--a-ink);
  font-family: var(--a-sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 650; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.05rem; }
h3 { font-size: .95rem; }
p { margin: 0 0 .9em; }
a { color: var(--a-info); }

:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 2px; border-radius: 3px; }

/* ---------------------------------------------------------------- Layout */
.a-shell { display: grid; grid-template-columns: var(--a-sidebar-w) minmax(0, 1fr); min-height: 100vh; }

.a-sidebar {
  background: var(--a-sidebar); color: #C9CED6;
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 12px; position: sticky; top: 0; height: 100vh;
}
.a-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px 18px; color: #fff; text-decoration: none;
}
.a-brand-name { font-weight: 700; font-size: .95rem; line-height: 1.1; }
.a-brand-sub { display: block; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #7F8894; font-weight: 600; }

.a-nav { display: flex; flex-direction: column; gap: 2px; }
.a-nav button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 10px; min-height: 38px;
  background: transparent; border: 0; border-radius: var(--a-r-sm);
  color: #C9CED6; font: inherit; font-weight: 500; text-align: left; cursor: pointer;
}
.a-nav button:hover { background: var(--a-sidebar-hover); color: #fff; }
.a-nav button[aria-current="true"] { background: var(--a-sidebar-active); color: #fff; font-weight: 600; }
.a-nav svg { flex: none; opacity: .85; }
.a-nav .a-count {
  margin-left: auto; font-size: .72rem; font-weight: 600;
  background: rgba(255,255,255,.12); padding: 1px 7px; border-radius: 999px;
}

.a-sidebar-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; }
.a-sidebar-foot a, .a-sidebar-foot button {
  display: block; width: 100%; text-align: left; padding: 7px 10px;
  background: none; border: 0; border-radius: var(--a-r-sm);
  color: #8A929E; font: inherit; font-size: .82rem; cursor: pointer; text-decoration: none;
}
.a-sidebar-foot a:hover, .a-sidebar-foot button:hover { background: var(--a-sidebar-hover); color: #fff; }

.a-main { min-width: 0; padding: 26px 30px 70px; }
.a-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.a-head-text { min-width: 0; }
.a-head p { color: var(--a-muted); margin: 4px 0 0; max-width: 70ch; }
.a-head-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Panels */
.a-card {
  background: var(--a-surface); border: 1px solid var(--a-line);
  border-radius: var(--a-r); box-shadow: var(--a-shadow); margin-bottom: 18px;
}
.a-card-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--a-line-soft);
}
.a-card-head h2 { margin-right: auto; }
.a-card-body { padding: 18px; }
.a-card-body--flush { padding: 0; }

/* ------------------------------------------------------------------ Stats */
.a-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.a-stat {
  background: var(--a-surface); border: 1px solid var(--a-line);
  border-radius: var(--a-r); padding: 14px 16px;
}
.a-stat-label { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--a-faint); }
.a-stat-value { font-size: 1.5rem; font-weight: 680; letter-spacing: -.02em; margin-top: 2px; }
.a-stat-note { font-size: .8rem; color: var(--a-muted); }
.a-stat--warn { border-color: #EBD9AE; background: var(--a-warn-soft); }
.a-stat--warn .a-stat-value, .a-stat--warn .a-stat-note { color: var(--a-warn); }

/* ------------------------------------------------------------------ Table */
.a-table-wrap { overflow-x: auto; }
table.a-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.a-table th, .a-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--a-line-soft); vertical-align: middle; }
.a-table th {
  font-size: .71rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--a-faint); background: #FAFBFC; position: sticky; top: 0; z-index: 1;
  white-space: nowrap;
}
.a-table tbody tr:hover { background: #FAFBFC; }
.a-table tbody tr:last-child td { border-bottom: 0; }
.a-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.a-table .a-row-title { font-weight: 600; }
.a-table .a-row-sub { color: var(--a-muted); font-size: .8rem; }
.a-table tr.is-clickable { cursor: pointer; }

.a-empty { padding: 44px 20px; text-align: center; color: var(--a-muted); }
.a-empty h3 { margin-bottom: 6px; color: var(--a-ink); }

/* ------------------------------------------------------------------ Badge */
.a-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 650; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  background: #EDEFF2; color: var(--a-muted);
}
.a-badge--ok { background: var(--a-accent-soft); color: #14512F; }
.a-badge--warn { background: var(--a-warn-soft); color: var(--a-warn); }
.a-badge--danger { background: var(--a-danger-soft); color: var(--a-danger); }
.a-badge--info { background: var(--a-info-soft); color: var(--a-info); }
.a-badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------------------------------------------------------------- Buttons */
.a-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 34px; padding: 7px 14px;
  font: inherit; font-size: .86rem; font-weight: 600;
  border: 1px solid var(--a-line); border-radius: var(--a-r-sm);
  background: var(--a-surface); color: var(--a-ink); cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background-color .14s ease, border-color .14s ease;
}
.a-btn:hover { background: #F6F7F9; }
.a-btn--primary { background: var(--a-accent); border-color: var(--a-accent); color: #fff; }
.a-btn--primary:hover { background: #17543A; }
.a-btn--danger { color: var(--a-danger); border-color: #EBC4BE; }
.a-btn--danger:hover { background: var(--a-danger-soft); }
.a-btn--sm { min-height: 28px; padding: 4px 10px; font-size: .8rem; }
.a-btn[disabled] { opacity: .5; cursor: not-allowed; }
.a-btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ----------------------------------------------------------------- Fields */
.a-field { margin-bottom: 14px; }
.a-field > label, .a-label {
  display: block; font-size: .8rem; font-weight: 600; margin-bottom: 5px; color: var(--a-ink);
}
.a-hint { font-size: .78rem; color: var(--a-muted); margin: 4px 0 0; }
.a-input, .a-select, .a-textarea {
  width: 100%; min-height: 36px; padding: 7px 11px;
  font: inherit; font-size: .88rem; color: var(--a-ink);
  background: var(--a-surface); border: 1px solid var(--a-line); border-radius: var(--a-r-sm);
}
.a-textarea { min-height: 84px; resize: vertical; line-height: 1.55; }
.a-input:focus, .a-select:focus, .a-textarea:focus { border-color: var(--a-accent); outline: 2px solid var(--a-accent-soft); outline-offset: 0; }
.a-input[aria-invalid="true"] { border-color: var(--a-danger); background: var(--a-danger-soft); }
.a-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.a-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 620px) { .a-grid-2, .a-grid-3 { grid-template-columns: 1fr; } }

.a-check { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
.a-check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--a-accent); flex: none; }
.a-check-text { font-size: .87rem; }
.a-check-note { display: block; color: var(--a-muted); font-size: .79rem; }

/* Toggle switch for list / unlist */
.a-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }
.a-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.a-switch span {
  position: absolute; inset: 0; background: #C4C9D1; border-radius: 999px;
  transition: background-color .16s ease; cursor: pointer;
}
.a-switch span::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px;
  background: #fff; border-radius: 50%; transition: transform .16s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.a-switch input:checked + span { background: var(--a-accent); }
.a-switch input:checked + span::after { transform: translateX(18px); }
.a-switch input:focus-visible + span { outline: 2px solid var(--a-accent); outline-offset: 2px; }

/* ------------------------------------------------------------- Search bar */
.a-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.a-search { position: relative; flex: 1 1 240px; max-width: 340px; }
.a-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--a-faint); pointer-events: none; }
.a-search input { padding-left: 32px; }
.a-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.a-tab {
  padding: 5px 12px; min-height: 30px; border-radius: 999px;
  border: 1px solid var(--a-line); background: var(--a-surface);
  font: inherit; font-size: .82rem; font-weight: 600; color: var(--a-muted); cursor: pointer;
}
.a-tab[aria-selected="true"] { background: var(--a-ink); border-color: var(--a-ink); color: #fff; }

/* ------------------------------------------------------------- Slide-over */
.a-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(20,24,29,.42); backdrop-filter: blur(1.5px);
  display: flex; justify-content: flex-end;
}
.a-overlay[hidden] { display: none !important; }
.a-panel {
  width: min(620px, 100%); background: var(--a-surface);
  display: flex; flex-direction: column; box-shadow: var(--a-shadow-lg);
  animation: a-slide .18s ease;
}
@keyframes a-slide { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .a-panel { animation: none; } }
.a-panel-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--a-line);
}
.a-panel-head h2 { margin-right: auto; }
.a-panel-body { padding: 20px; overflow-y: auto; flex: 1; }
.a-panel-foot {
  display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap;
  padding: 14px 20px; border-top: 1px solid var(--a-line); background: #FAFBFC;
}
.a-panel-foot .a-btn--danger { margin-right: auto; }
.a-icon-btn {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--a-line); background: var(--a-surface);
  border-radius: var(--a-r-sm); cursor: pointer; color: var(--a-muted);
}
.a-icon-btn:hover { background: #F6F7F9; color: var(--a-ink); }

/* --------------------------------------------------------- Money summary */
.a-money { border: 1px solid var(--a-line); border-radius: var(--a-r); overflow: hidden; }
.a-money-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 16px; font-size: .88rem; border-bottom: 1px solid var(--a-line-soft);
}
.a-money-row:last-child { border-bottom: 0; }
.a-money-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.a-money-row--sub { color: var(--a-muted); font-size: .82rem; padding-left: 30px; }
.a-money-row--total {
  background: #FAFBFC; font-weight: 700; font-size: 1rem; border-top: 2px solid var(--a-line);
}
.a-money-row--missing span:last-child { color: var(--a-warn); font-weight: 600; }

/* -------------------------------------------------------------- Callouts */
.a-note {
  border-radius: var(--a-r-sm); padding: 11px 14px; font-size: .85rem;
  border: 1px solid var(--a-line); background: #FAFBFC; margin-bottom: 14px;
}
.a-note--warn { background: var(--a-warn-soft); border-color: #EBD9AE; color: #6B4600; }
.a-note--danger { background: var(--a-danger-soft); border-color: #EBC4BE; color: #7E1A11; }
.a-note--info { background: var(--a-info-soft); border-color: #C6D9F0; color: #143C6B; }
.a-note p:last-child { margin-bottom: 0; }
.a-note strong { font-weight: 700; }

/* ------------------------------------------------------------------ Chips */
.a-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.a-chip {
  font-family: var(--a-mono); font-size: .74rem; font-weight: 600;
  background: #EDEFF2; color: var(--a-muted);
  padding: 2px 7px; border-radius: 4px;
}
.a-chip--clash { background: var(--a-warn-soft); color: var(--a-warn); }
/* Inside a warn banner the soft background matches the banner, so the chip
   disappears. Give it its own surface and edge. */
.a-note--warn .a-chip--clash {
  background: #fff; color: #6B4600; border: 1px solid #E0C88A;
}

/* ------------------------------------------------------------------ Login */
.a-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--a-sidebar); }
.a-login-card {
  width: min(390px, 100%); background: var(--a-surface);
  border-radius: 14px; padding: 30px 30px 26px; box-shadow: var(--a-shadow-lg);
}
.a-login-card h1 { font-size: 1.2rem; margin-bottom: 4px; }
.a-login-card p { color: var(--a-muted); font-size: .87rem; }

/* ------------------------------------------------------------------ Toast */
.a-toasts { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: flex; flex-direction: column; gap: 8px; }
.a-toast {
  background: var(--a-ink); color: #fff; padding: 11px 16px;
  border-radius: var(--a-r-sm); box-shadow: var(--a-shadow-lg);
  font-size: .86rem; font-weight: 500; max-width: 380px;
  animation: a-rise .16s ease;
}
.a-toast--err { background: var(--a-danger); }
@keyframes a-rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .a-toast { animation: none; } }

.a-spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%; animation: a-spin .7s linear infinite;
}
@keyframes a-spin { to { transform: rotate(360deg); } }

.a-loading { padding: 40px; text-align: center; color: var(--a-muted); }

.a-thumb {
  width: 40px; height: 40px; border-radius: var(--a-r-sm); object-fit: cover;
  background: #EDEFF2; border: 1px solid var(--a-line-soft); flex: none;
}
.a-cell-media { display: flex; align-items: center; gap: 11px; min-width: 0; }
.a-cell-media > div { min-width: 0; }
.a-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 340px; }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .a-shell { grid-template-columns: 1fr; }
  .a-sidebar {
    position: static; height: auto; flex-direction: row; align-items: center;
    gap: 8px; padding: 10px 14px; overflow-x: auto;
  }
  .a-brand { padding: 0 10px 0 0; }
  .a-brand-sub { display: none; }
  .a-nav { flex-direction: row; }
  .a-nav button { white-space: nowrap; }
  .a-sidebar-foot { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; }
  .a-main { padding: 18px 16px 60px; }
}

/* ==========================================================================
   Accounts — sign-in steps, the whoami button, and the Team section
   ========================================================================== */

.a-login-sub {
  font-weight: 600; color: var(--a-muted);
  margin: 0 0 18px; font-size: .9rem;
}

.a-btn--block { width: 100%; min-height: 38px; }

.a-btn--ghost {
  background: transparent; border-color: transparent; color: var(--a-muted);
}
.a-btn--ghost:hover { background: #F1F2F4; color: var(--a-ink); }

/* Softer than .a-btn--danger: these sit in a row of ordinary actions and
   should read as "careful" rather than shout. */
.a-btn--danger-ghost {
  color: var(--a-danger); border-color: #E8D3D0; background: #fff;
}
.a-btn--danger-ghost:hover { background: var(--a-danger-soft); }

.a-btn-row--wrap { flex-wrap: wrap; }

/* One-time codes and keys: monospace and widely spaced, because these get
   copied by hand off a screen. */
.a-input--code {
  font-family: var(--a-mono);
  font-size: 1.15rem; letter-spacing: .22em; text-align: center;
}

.a-codes {
  font-family: var(--a-mono); font-size: .95rem; line-height: 1.9;
  background: #F6F7F9; border: 1px solid var(--a-line);
  border-radius: var(--a-r-sm); padding: 14px 16px;
  margin: 0 0 14px; white-space: pre-wrap; word-break: break-all;
  user-select: all;
}

/* ----------------------------------------------------- who is signed in */
/* `.a-sidebar-foot button` already sets display:block and outranks a lone
   class selector, so this has to be scoped to win — otherwise the avatar
   stretches across the sidebar instead of staying a 28px circle. */
.a-sidebar-foot .a-whoami {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 10px; margin-bottom: 4px;
  background: transparent; border: 0; border-radius: var(--a-r-sm);
  color: rgba(255,255,255,.72); font: inherit; text-align: left; cursor: pointer;
}
.a-sidebar-foot .a-whoami:hover { background: var(--a-sidebar-hover); color: #fff; }

.a-avatar {
  flex: 0 0 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; background: var(--a-accent); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .02em;
}

.a-whoami-text { min-width: 0; line-height: 1.25; }
.a-whoami-name {
  display: block; font-size: .82rem; font-weight: 600; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.a-whoami-role { display: block; font-size: .7rem; color: rgba(255,255,255,.55); }

/* A dot on the avatar when two-step is off — present enough to notice,
   quiet enough not to nag on every screen. */
.a-sidebar-foot .a-whoami.is-warn .a-avatar { position: relative; }
.a-sidebar-foot .a-whoami.is-warn .a-avatar::after {
  content: ""; position: absolute; top: -1px; right: -1px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #E8A33D; border: 2px solid var(--a-sidebar);
}

/* Section headings inside a slide-over. Generous top margin so a heading that
   follows a button or a note is clearly a new section rather than a caption
   for the thing above it. */
.a-panel-h {
  margin: 28px 0 12px; padding-top: 18px;
  border-top: 1px solid var(--a-line-soft);
  font-size: .95rem; font-weight: 700; color: var(--a-ink);
}
.a-panel-body > .a-panel-h:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* ------------------------------------------------------- label/value list */
.a-kv { margin-bottom: 18px; }
.a-kv > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 7px 0; border-bottom: 1px solid var(--a-line-soft);
  font-size: .86rem;
}
.a-kv > div:last-child { border-bottom: 0; }
.a-kv span { color: var(--a-muted); }
.a-kv strong { font-weight: 600; text-align: right; word-break: break-word; }

/* ------------------------------------------------------------- chips etc */
.a-chip--ok     { background: var(--a-accent-soft); color: var(--a-accent-dk); }
.a-chip--warn   { background: var(--a-warn-soft);   color: var(--a-warn); }
.a-chip--muted  { background: #EDEFF2;              color: var(--a-muted); }

.a-note--ok { background: var(--a-accent-soft); border-color: #BFDDCC; color: #14492F; }

.a-section-h {
  margin: 30px 0 4px; font-size: 1.02rem; font-weight: 700; color: var(--a-ink);
}

.a-sub { font-size: .78rem; color: var(--a-muted); margin-top: 2px; }
.a-nowrap { white-space: nowrap; }

.a-table--dense td, .a-table--dense th { padding-top: 6px; padding-bottom: 6px; font-size: .8rem; }
.a-table--dense code {
  font-family: var(--a-mono); font-size: .76rem;
  background: #F1F2F4; border-radius: 4px; padding: 1px 5px;
}
.a-table--dense code.a-code-warn { background: var(--a-warn-soft); color: #6B4600; }

/* Rows in Team open an editor, same as every other table in here. */
tr[data-user] { cursor: pointer; }
tr[data-user]:hover { background: #F8F9FA; }

/* ==========================================================================
   Shipping — zone cards with a price per equipment type
   Delivery is not one number per zone: a mattress and a lift chair to the same
   address cost different amounts, so each zone shows its whole grid at once.
   ========================================================================== */
.a-zone {
  border: 1px solid var(--a-line);
  border-radius: var(--a-r);
  padding: 16px 18px 18px;
  margin-bottom: 14px;
  background: var(--a-surface);
}
.a-zone:last-child { margin-bottom: 0; }
.a-zone--off { opacity: .62; }

.a-zone-head {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: flex-start; justify-content: space-between;
  margin-bottom: 14px;
}
.a-zone-id { min-width: 0; flex: 1 1 320px; }
.a-zone-id h3 {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 4px; font-size: 1.02rem; font-weight: 650; color: var(--a-ink);
}
.a-zone-codes {
  margin: 0; font-size: .78rem; line-height: 1.5; color: var(--a-faint);
  font-family: var(--a-mono);
  /* Vancouver General claims 40-odd prefixes; wrap rather than stretch the card. */
  overflow-wrap: anywhere;
}
.a-zone-actions { display: flex; gap: 8px; flex: 0 0 auto; }

.a-price-grid {
  /* Eight categories on a wide screen land as a 4x2 block, which reads as one
     zone's price list rather than a long ribbon of boxes. */
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.a-price {
  border: 1px solid var(--a-line-soft);
  border-radius: var(--a-r-sm);
  padding: 9px 11px 10px;
  background: var(--a-bg);
}
.a-price-label {
  display: block; font-size: .72rem; font-weight: 500;
  color: var(--a-muted); margin-bottom: 3px;
}
.a-price-value { display: block; font-size: 1.02rem; font-weight: 650; color: var(--a-ink); }
.a-price-note { display: block; font-size: .68rem; color: var(--a-faint); margin-top: 2px; }
.a-price--fallback .a-price-value { color: var(--a-muted); font-weight: 550; }
.a-price--bad {
  border-color: #F0D9A8; background: var(--a-warn-soft);
}
.a-price--bad .a-price-value { color: var(--a-warn); font-size: .86rem; font-weight: 600; }

.a-price-edit {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.a-price-edit .a-field { margin: 0; }
