:root {
  --brand: #1a4d2e;
  --brand-light: #2d6a4f;
  --accent: #d4a017;
  --accent-soft: rgba(45, 106, 79, 0.12);
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --success: #15803d;
  --success-soft: #dcfce7;
  --warning: #b45309;
  --warning-soft: #fef3c7;
  --info: #1d4ed8;
  --info-soft: #dbeafe;
  --overlay: rgba(15, 23, 42, 0.45);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: env(safe-area-inset-bottom);
}
body.has-bottom-nav { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 1rem; }

/* Header */
.site-header {
  background: var(--brand);
  color: #fff;
  padding: 0.65rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 1.05rem; color: #fff; text-decoration: none; }
.nav { display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; }
.nav a, .nav .nav-link {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav a:hover, .nav .nav-link:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.nav a.active { background: rgba(255,255,255,0.2); font-weight: 600; }
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1a1a;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}
.nav-badge.danger { background: #ef4444; color: #fff; }
.nav-badge.hidden { display: none; }

/* Bottom nav mobile */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom));
  z-index: 99;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}
.bottom-nav a {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  position: relative;
}
.bottom-nav a.active { color: var(--brand); font-weight: 600; }
.bottom-nav a .nav-badge { position: absolute; top: 2px; right: calc(50% - 22px); }
@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  body.has-bottom-nav { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .nav-desktop-hide { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--brand-light);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn:hover { background: var(--brand); text-decoration: none; color: #fff; }
.btn-secondary { background: #6b7280; }
.btn-danger { background: var(--danger); }
.btn-ms { background: #2563eb; }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.85rem; }
.btn-block { display: flex; width: 100%; }
.btn-pill { border-radius: 999px; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-icon { width: 2.25rem; height: 2.25rem; padding: 0; border-radius: 999px; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.card-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 0.75rem;
  font-weight: 600;
}
.settings-group { margin-bottom: 1.25rem; }

/* Grid */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--brand-light);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
}
.back-btn:hover { text-decoration: underline; }

/* Badges & pills */
.badge, .pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e5e7eb;
  color: var(--text);
}
.pill-success, .badge-success, .status-active { background: var(--success-soft); color: var(--success); }
.pill-warning, .badge-warning { background: var(--warning-soft); color: var(--warning); }
.pill-danger, .badge-danger { background: var(--danger-soft); color: var(--danger); }
.pill-info, .badge-info, .status-invited { background: var(--info-soft); color: var(--info); }
.pill-muted, .badge-muted, .status-disabled { background: #f3f4f6; color: var(--muted); }
.badge-poa { background: #ede9fe; color: #5b21b6; }
.badge-tbc { background: var(--warning-soft); color: var(--warning); }

.status-pending_approval { color: var(--warning); }
.status-placed, .status-approved { color: var(--success); }
.status-rejected, .status-cancelled { color: var(--danger); }

/* Segmented control */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  background: var(--bg);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.segmented button, .segmented a, .segmented label.segmented-item {
  padding: 0.45rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.segmented button.active, .segmented a.active,
.segmented input:checked + .segmented-item {
  background: #fff;
  border-color: var(--brand-light);
  color: var(--brand);
  font-weight: 600;
  box-shadow: var(--shadow);
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-wrap { position: relative; }

/* Variant pills (product detail) */
.variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.variant-pill {
  position: relative;
  cursor: pointer;
}
.variant-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.variant-pill-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.25;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.variant-pill:hover .variant-pill-label {
  border-color: var(--brand-light);
}
.variant-pill input:checked + .variant-pill-label {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(26, 77, 46, 0.25);
}
.variant-pill input:focus-visible + .variant-pill-label {
  outline: 2px solid var(--brand-light);
  outline-offset: 2px;
}
.variant-pill-price {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.75;
}
.variant-pill input:checked + .variant-pill-label .variant-pill-price {
  opacity: 0.9;
}

/* Chips (mobile categories) */
.chip-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chip-scroll::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}
.chip.active { background: var(--accent-soft); border-color: var(--brand-light); color: var(--brand); font-weight: 600; }

/* iOS switch */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.switch-row:last-child { border-bottom: none; }
.switch-label { font-weight: 600; font-size: 0.9rem; }
.switch-hint { font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.switch { position: relative; display: inline-block; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch-track {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  transition: background 0.2s;
  cursor: pointer;
}
.switch-track::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.switch input:checked + .switch-track { background: var(--brand-light); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--brand-light); outline-offset: 2px; }

/* Product cards */
.product-card {
  transition: transform 0.12s, box-shadow 0.12s;
}
.product-card:active { transform: scale(0.98); }
.product-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #fafafa;
  border-radius: var(--radius-sm);
}
.product-card h3 { font-size: 1rem; margin: 0.5rem 0 0.25rem; }
.price { font-weight: 700; color: var(--brand); }

/* Tabs legacy -> segmented full width */
.tabs.segmented-full { display: flex; width: 100%; margin-bottom: 1rem; }
.tabs.segmented-full .tab { flex: 1; text-align: center; justify-content: center; }

/* Layout */
.layout-catalogue {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
}
.sidebar-desktop { display: block; }
.sidebar-mobile { display: none; }
@media (max-width: 768px) {
  .layout-catalogue { grid-template-columns: 1fr; }
  .sidebar-desktop { display: none; }
  .sidebar-mobile { display: block; }
}

.sidebar .filter-link {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
}
.sidebar .filter-link.active { background: var(--accent-soft); color: var(--brand); font-weight: 600; }

/* Tables + responsive cards */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.6rem; border-bottom: 1px solid var(--border); text-align: left; }
th { font-size: 0.85rem; color: var(--muted); }
.table-desktop { display: block; }
.list-mobile { display: none; }
@media (max-width: 768px) {
  .table-desktop { display: none; }
  .list-mobile { display: block; }
}
.list-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 0.65rem;
  background: #fff;
}
.list-card-row { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.35rem; }
.list-card-actions { margin-top: 0.65rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Forms */
.form-group { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: 0.25rem; font-size: 0.9rem; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}
input[type="checkbox"], input[type="radio"] {
  width: auto;
  padding: 0;
}
.input-with-toggle { display: flex; gap: 0.35rem; }
.input-with-toggle input { flex: 1; }

/* Stepper */
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.stepper button {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: var(--bg);
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--brand);
  font-weight: 700;
}
.stepper input {
  width: 3rem;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-radius: 0;
  padding: 0.4rem;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.stepper button:disabled,
.stepper button.at-limit {
  opacity: 0.35;
}
.stepper button.at-limit {
  cursor: pointer;
}

.qty-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.qty-remove-notice {
  display: none;
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  max-width: 11rem;
}
.qty-remove-notice.show {
  display: block;
}

/* Alerts (legacy, prefer toast) */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.alert-error { background: var(--danger-soft); color: #991b1b; }
.alert-success { background: var(--success-soft); color: #166534; }
.alert-warning { background: var(--warning-soft); color: #92400e; }
.alert-info { background: var(--info-soft); color: #1e40af; }

/* Attention banner */
.attention-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  border: 1px solid;
}
.attention-banner.warning { background: var(--warning-soft); border-color: #fcd34d; color: #92400e; }
.attention-banner.urgent { background: var(--danger-soft); border-color: #fca5a5; color: #991b1b; }

/* Sticky bars */
.sticky-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 1rem;
  margin: 1rem -1rem -1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
  z-index: 10;
}
.sticky-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  z-index: 98;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
  .sticky-mobile-bar.show-mobile { display: block; }
  body.has-bottom-nav .sticky-mobile-bar.show-mobile { bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--muted);
}
.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}
.empty-state h3 { color: var(--text); margin: 0 0 0.35rem; }
.empty-state .btn { margin-top: 1rem; }

/* Toast */
#toast-stack {
  position: fixed;
  top: calc(0.75rem + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(90vw, 360px);
  pointer-events: none;
}
.toast {
  background: #1f2937;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-error { background: var(--danger); }

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.open { display: flex; }
.modal-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.modal-card h2 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.modal-actions { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; min-width: 120px; }

/* Admin */
.admin-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.admin-nav a {
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}
.admin-nav a:hover { background: var(--bg); }
.admin-nav a.active { background: var(--accent-soft); color: var(--brand); font-weight: 600; }

.admin-intro {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  max-width: 72ch;
}

.stat-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.1s;
}
.stat-tile:active { transform: scale(0.98); }
.stat-tile h3 { margin: 0 0 0.35rem; font-size: 0.9rem; color: var(--muted); }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--brand); margin: 0; }
.stat-tile .nav-badge { margin-left: 0.5rem; vertical-align: middle; }

.search-bar { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.search-bar input { flex: 1; }
.search-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }

.supplier-group { border-left: 4px solid var(--accent); padding-left: 0.75rem; }
.collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.collapsible-body { margin-top: 0.75rem; }

.product-detail img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #fafafa;
  border-radius: var(--radius);
}

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  position: relative;
  padding-left: 1.25rem;
  padding-bottom: 1rem;
  border-left: 2px solid var(--border);
  margin-left: 0.35rem;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-light);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline .time { font-size: 0.8rem; color: var(--muted); }

/* Dispatch steps */
.dispatch-steps { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.dispatch-step {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.8rem;
}
.dispatch-step.done { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.dispatch-step.failed { background: var(--danger-soft); border-color: var(--danger); }

/* Bar chart */
.bar-chart { display: flex; flex-direction: column; gap: 0.65rem; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 80px; gap: 0.5rem; align-items: center; font-size: 0.85rem; }
.bar-track { background: var(--bg); border-radius: 999px; height: 8px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--brand-light); border-radius: 999px; }

/* Chip multi-select */
.chip-select {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip-select label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  font-weight: 500;
  cursor: pointer;
}
.chip-select input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.chip-select label span {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1.25;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip-select label:hover span {
  border-color: var(--brand-light);
}
.chip-select input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

/* Drop zone */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--brand-light); background: var(--accent-soft); }

/* Login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  padding: 1rem;
}
.login-card {
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.login-brand { text-align: center; margin-bottom: 1rem; }
.login-brand h1 { margin: 0; font-size: 1.35rem; color: var(--brand); }
.login-brand p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; }
.login-divider { text-align: center; color: var(--muted); margin: 1rem 0; font-size: 0.85rem; }

/* Avatar initial */
.avatar-initial {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Site picker cards */
.site-picker { display: flex; flex-direction: column; gap: 0.5rem; }
.site-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.site-option:has(input:checked) { border-color: var(--brand-light); background: var(--accent-soft); }
.site-option input { margin-top: 0.2rem; }

.hidden { display: none !important; }
