/* Daystar Merchandising — design tokens */
:root {
  --font-sans: 'Geist', -apple-system, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  /* light */
  --bg: oklch(0.99 0.003 80);
  --bg-subtle: oklch(0.975 0.004 80);
  --surface: #ffffff;
  --surface-2: oklch(0.98 0.004 80);
  --border: oklch(0.92 0.005 80);
  --border-strong: oklch(0.86 0.006 80);
  --text: oklch(0.18 0.01 60);
  --text-muted: oklch(0.50 0.008 60);
  --text-dim: oklch(0.65 0.006 60);

  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-soft: oklch(0.96 0.04 60);
  --accent-text: #c2410c;

  --success: #10b981;
  --success-soft: oklch(0.95 0.05 160);
  --warn: #f59e0b;
  --warn-soft: oklch(0.96 0.06 90);
  --danger: #ef4444;
  --danger-soft: oklch(0.96 0.04 25);
  --info: #3b82f6;
  --info-soft: oklch(0.96 0.03 240);

  --shadow-xs: 0 1px 2px rgba(15, 15, 15, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 15, 15, 0.05), 0 1px 2px rgba(15, 15, 15, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 15, 15, 0.06), 0 2px 4px rgba(15, 15, 15, 0.04);
  --shadow-lg: 0 12px 32px -8px rgba(15, 15, 15, 0.10), 0 4px 8px rgba(15, 15, 15, 0.04);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  /* density (comfortable default) */
  --row-h: 48px;
  --pad-card: 20px;
  --pad-cell: 14px 16px;
  --gap: 16px;
  --text-size: 14px;
}

[data-density="compact"] {
  --row-h: 36px;
  --pad-card: 14px;
  --pad-cell: 8px 12px;
  --gap: 10px;
  --text-size: 13px;
}

[data-theme="dark"] {
  --bg: oklch(0.16 0.005 60);
  --bg-subtle: oklch(0.18 0.005 60);
  --surface: oklch(0.20 0.006 60);
  --surface-2: oklch(0.22 0.006 60);
  --border: oklch(0.27 0.008 60);
  --border-strong: oklch(0.34 0.008 60);
  --text: oklch(0.96 0.005 80);
  --text-muted: oklch(0.68 0.008 60);
  --text-dim: oklch(0.50 0.008 60);

  --accent-soft: oklch(0.30 0.06 60);
  --accent-text: #fb923c;

  --success-soft: oklch(0.28 0.06 160);
  --warn-soft: oklch(0.30 0.07 90);
  --danger-soft: oklch(0.30 0.06 25);
  --info-soft: oklch(0.28 0.05 240);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-size);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
  letter-spacing: -0.005em;
  /* Reserve gutter for the scrollbar on every page so content doesn't
     shift left/right as height changes (drawer opens, rows expand). */
  scrollbar-gutter: stable;
}

#root { min-height: 100vh; }

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

::selection { background: var(--accent); color: white; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  height: 36px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: linear-gradient(180deg, #fb923c 0%, var(--accent) 100%);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, var(--shadow-sm);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-subtle); color: var(--text); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; }
.btn-lg { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* Inputs */
.input, .select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input::placeholder { color: var(--text-dim); }

.label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.field { margin-bottom: 14px; }
.help { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.card-pad { padding: var(--pad-card); }
.card-header {
  padding: 16px var(--pad-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.badge-success { background: var(--success-soft); color: #047857; }
[data-theme="dark"] .badge-success { color: #34d399; }
.badge-warn { background: var(--warn-soft); color: #b45309; }
[data-theme="dark"] .badge-warn { color: #fbbf24; }
.badge-danger { background: var(--danger-soft); color: #b91c1c; }
[data-theme="dark"] .badge-danger { color: #f87171; }
.badge-info { background: var(--info-soft); color: #1d4ed8; }
[data-theme="dark"] .badge-info { color: #60a5fa; }
.badge-neutral { background: var(--bg-subtle); color: var(--text-muted); border: 1px solid var(--border); }

/* Mono numbers */
.mono { font-family: var(--font-mono); font-feature-settings: 'tnum'; }

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table thead th {
  text-align: left;
  padding: var(--pad-cell);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table tbody td {
  padding: var(--pad-cell);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.table tbody tr { transition: background 0.1s; }
.table tbody tr:hover { background: var(--bg-subtle); cursor: pointer; }
.table tbody tr:last-child td { border-bottom: none; }

/* Sidebar */
.sidebar {
  width: 240px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
}
.sidebar-brand {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-nav {
  padding: 12px 10px;
  flex: 1;
  overflow-y: auto;
}
.sidebar-section {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 12px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.nav-item:hover { background: var(--bg-subtle); color: var(--text); }
.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.nav-item.active svg { color: var(--accent); }

/* Topbar */
.topbar {
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(8px);
}

.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.page {
  padding: 28px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Avatar */
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.avatar-sm { width: 24px; height: 24px; font-size: 10px; }

/* Image placeholder */
.placeholder-img {
  background:
    repeating-linear-gradient(
      45deg,
      var(--bg-subtle) 0px,
      var(--bg-subtle) 8px,
      var(--surface-2) 8px,
      var(--surface-2) 16px
    );
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  padding: 8px;
}

/* Search */
.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 36px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.search input:focus { border-color: var(--accent); background: var(--surface); }
.search svg {
  position: absolute;
  left: 12px;
  color: var(--text-dim);
  pointer-events: none;
}
.search kbd {
  position: absolute;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text-muted);
}

/* Auth pages */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at top right, oklch(0.96 0.04 60) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, oklch(0.97 0.02 240) 0%, transparent 60%),
    var(--bg);
}
[data-theme="dark"] .auth-shell {
  background:
    radial-gradient(ellipse at top right, oklch(0.25 0.06 60) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, oklch(0.22 0.04 240) 0%, transparent 60%),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 36px;
}

/* KPI tile */
.kpi-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--pad-card);
  position: relative;
  overflow: hidden;
}
.kpi-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--surface-2) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0.6;
}
.kpi-tile > * { position: relative; }
.kpi-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kpi-value {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
}
.kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-mono);
}
.kpi-delta.up { color: #047857; }
.kpi-delta.down { color: #b91c1c; }
[data-theme="dark"] .kpi-delta.up { color: #34d399; }
[data-theme="dark"] .kpi-delta.down { color: #f87171; }

/* Progress bar */
.bar {
  height: 6px;
  background: var(--bg-subtle);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
}
.tab {
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent-text); border-bottom-color: var(--accent); }

/* Segment */
.segment {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.segment button {
  padding: 5px 10px;
  border-radius: 6px;
  background: transparent;
  border: none;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-mono);
}
.segment button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.25s ease; }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Checkbox */
.checkbox {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s;
}
.checkbox.checked {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox.checked svg { color: white; }

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

/* ============================================================
   Store-visit canvas (rep workspace)
   ============================================================ */
.visit-wrap { max-width: 880px; margin: 0 auto; padding: 24px 20px 80px; }

.day-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg-subtle); padding: 16px 0 14px;
  margin-bottom: 16px;
}
.day-header h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 4px; }
.day-meta { font-size: 12.5px; color: var(--text-muted); display: flex; gap: 14px; align-items: center; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; box-shadow: 0 0 0 3px var(--accent-soft); }

.route-progress { display: flex; gap: 4px; margin-top: 10px; }
.route-step {
  flex: 1; height: 4px; border-radius: 2px; background: var(--border);
  position: relative; overflow: hidden;
}
.route-step.done { background: var(--success); }
.route-step.current { background: var(--accent); }
.route-step.current::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: route-shimmer 1.6s linear infinite;
}
@keyframes route-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.visit-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.visit-head {
  padding: 16px 20px; display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; user-select: none;
  background: transparent; border-left: none; border-right: none; border-top: none;
  width: 100%; text-align: left;
}
.store-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, oklch(0.96 0.05 60), oklch(0.92 0.08 60));
  display: grid; place-items: center;
  color: var(--accent-text); font-weight: 600; font-size: 14px;
}
.visit-head h2 { font-size: 15.5px; font-weight: 600; margin: 0 0 2px; letter-spacing: -0.01em; }
.visit-head .sub { font-size: 12px; color: var(--text-muted); }
.visit-status {
  padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500;
  background: var(--accent-soft); color: var(--accent-text);
  display: inline-flex; align-items: center; gap: 6px;
}

.v-section { padding: 18px 20px; border-bottom: 1px solid var(--border); }
.v-section:last-child { border-bottom: none; }
.v-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.v-section-title {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.progress-pill {
  font-size: 11px; font-family: var(--font-mono);
  padding: 2px 8px; border-radius: 999px;
  background: var(--bg-subtle); color: var(--text-muted);
  border: 1px solid var(--border);
}
.progress-pill.complete { background: var(--success-soft); color: #047857; border-color: transparent; }

.visit-meta-bar {
  padding: 12px 20px; background: var(--bg-subtle);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.meta-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.meta-chip .mono { font-family: var(--font-mono); color: var(--text); }

.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.photo-tile {
  aspect-ratio: 1; border-radius: 10px;
  background: var(--bg-subtle); border: 1px solid var(--border);
  overflow: hidden; position: relative; cursor: pointer; padding: 0;
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tile .ptag {
  position: absolute; bottom: 6px; left: 6px;
  background: rgba(0,0,0,.65); color: white;
  font-size: 10px; font-weight: 500; padding: 2px 7px; border-radius: 4px;
  backdrop-filter: blur(8px);
}
.photo-tile .premove {
  position: absolute; top: 6px; right: 6px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: white; border: none;
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; transition: opacity 120ms;
}
.photo-tile:hover .premove { opacity: 1; }
.photo-add {
  aspect-ratio: 1; border-radius: 10px;
  border: 1.5px dashed var(--border-strong);
  background: var(--bg-subtle);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; cursor: pointer;
  color: var(--text-muted); font-size: 11.5px; font-weight: 500;
  transition: all 140ms;
}
.photo-add:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.photo-add svg { stroke: currentColor; }

.ptype-row { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.ptype-chip {
  padding: 6px 12px; font-size: 12px; font-weight: 500;
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: 999px; cursor: pointer; transition: all 120ms;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted);
}
.ptype-chip.active {
  background: var(--text); color: var(--surface); border-color: var(--text);
}
.ptype-chip .count {
  font-family: var(--font-mono); font-size: 10.5px;
  background: rgba(255,255,255,.18); padding: 1px 6px; border-radius: 4px;
}
.ptype-chip:not(.active) .count { background: var(--surface); color: var(--text-muted); }

.comp-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 0;
  border-top: 1px solid var(--border);
}
.comp-row:first-of-type { border-top: none; }
.comp-q { flex: 1; font-size: 13.5px; line-height: 1.45; }
.comp-q .qhint { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; display: block; }
.seg {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--bg-subtle);
  border: 1px solid var(--border); border-radius: 12px;
  flex-shrink: 0;
}
.seg button {
  padding: 9px 18px; min-width: 64px;
  background: transparent; border: none; border-radius: 8px;
  font-size: 12.5px; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: all 120ms;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font-family: inherit;
}
.seg button:hover:not(.active):not(:disabled) { color: var(--text); }
.seg button.yes.active { background: var(--success); color: white; box-shadow: var(--shadow-xs); }
.seg button.no.active { background: var(--danger); color: white; box-shadow: var(--shadow-xs); }
.seg button.na.active { background: var(--text-muted); color: white; box-shadow: var(--shadow-xs); }
.seg button:disabled { cursor: not-allowed; opacity: 0.6; }

.comp-text-input {
  width: 180px; padding: 8px 12px; font-size: 13px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-family: inherit;
}
.comp-text-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.sku-add {
  display: grid; grid-template-columns: 1fr 130px 90px 100px auto;
  gap: 8px; padding: 12px; background: var(--bg-subtle);
  border: 1px solid var(--border); border-radius: 12px;
  align-items: center; margin-bottom: 12px;
}
.sku-add .input, .sku-add .select {
  height: 38px; padding: 0 12px; font-size: 13px;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  width: 100%; font-family: inherit;
}
.sku-add .select { padding-right: 28px; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; }
.sku-add .input:focus, .sku-add .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.oos-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 500; color: var(--text-muted);
  padding: 0 8px; cursor: pointer; user-select: none;
}
.oos-toggle input { accent-color: var(--danger); width: 14px; height: 14px; }
.add-btn {
  height: 38px; padding: 0 18px;
  background: var(--accent); color: white; border: none;
  border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit;
}
.add-btn:hover { background: var(--accent-hover); }
.add-btn:disabled { background: var(--border-strong); cursor: not-allowed; }

.sku-list { display: flex; flex-direction: column; gap: 6px; }
.sku-row {
  display: grid; grid-template-columns: 1fr 90px 70px 80px 32px;
  gap: 10px; align-items: center; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; font-size: 13px;
}
.sku-row.oos { background: var(--danger-soft); border-color: oklch(0.85 0.06 25); }
.sku-row .sku-name { font-weight: 500; }
.sku-row .sku-sub { font-size: 11px; color: var(--text-dim); margin-top: 1px; }
.sku-row .badge-loc {
  font-size: 11px; padding: 2px 8px; border-radius: 4px;
  background: var(--bg-subtle); color: var(--text-muted);
  display: inline-block;
}
.sku-row .qty {
  font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  text-align: right;
}
.sku-row .oos-flag {
  font-size: 10.5px; font-weight: 600; padding: 2px 6px; border-radius: 4px;
  background: var(--danger); color: white; text-transform: uppercase; letter-spacing: 0.04em;
}
.sku-empty {
  padding: 24px; text-align: center; color: var(--text-dim);
  font-size: 12.5px; background: var(--bg-subtle); border-radius: 10px;
  border: 1px dashed var(--border);
}

.submit-bar {
  position: sticky; bottom: 0;
  padding: 14px 20px; background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  box-shadow: 0 -4px 12px -4px rgba(0,0,0,0.06);
}
.submit-summary { flex: 1; font-size: 12.5px; color: var(--text-muted); min-width: 200px; }
.submit-summary strong { color: var(--text); font-weight: 600; }
.submit-summary .ok { color: #047857; font-weight: 600; }
.submit-summary .warn { color: #b45309; font-weight: 600; }
.btn-ghost-sm {
  padding: 9px 14px; font-size: 12.5px; font-weight: 500;
  background: transparent; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; color: var(--text); font-family: inherit;
}
.btn-submit {
  padding: 11px 22px; font-size: 13.5px; font-weight: 600;
  background: var(--accent); color: white; border: none;
  border-radius: 9px; cursor: pointer; box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: 8px; font-family: inherit;
}
.btn-submit:hover { background: var(--accent-hover); }
.btn-submit:disabled { background: var(--border-strong); cursor: not-allowed; box-shadow: none; }

.other-stop {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px; margin-top: 10px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  transition: all 140ms; width: 100%; text-align: left; font-family: inherit;
}
.other-stop:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.other-stop .num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-subtle); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 12px;
  color: var(--text-muted); font-weight: 600; font-family: var(--font-mono);
  flex-shrink: 0;
}
.other-stop.done .num { background: var(--success); color: white; border-color: var(--success); }
.other-stop .body { flex: 1; min-width: 0; }
.other-stop .body h3 { font-size: 13.5px; font-weight: 600; margin: 0 0 2px; }
.other-stop .body .sub { font-size: 11.5px; color: var(--text-muted); }

.section-up-next {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
  margin: 24px 0 8px 4px;
}
