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

:root {
  --bg: #ffffff;
  --bg-secondary: #fafafa;
  --hover: #f5f5f5;
  --border: #ebebeb;
  --border-light: #f5f5f5;
  --text: #333333;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --accent: #1961ed;
  --accent-light: #f0f4ff;
  --danger: #9c3325;
  --danger-bg: #feeae5;
  --success: #2a5f3b;
  --success-bg: #d9f0dd;
  --radius: 8px;
  --radius-sm: 4px;
  --sidebar-width: 220px;
  --transition: .12s ease;

  /* Chart series colors, fixed by color_slot — never reassigned by rank or
     row count. A 5th+ publication folds into --chart-other (a neutral gray,
     not a 5th hue) rather than generating a new color. */
  --chart-1: #2a78d6;
  --chart-2: #eb6834;
  --chart-3: #1baf7a;
  --chart-4: #eda100;
  --chart-other: #8a8d93;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181a;
    --bg-secondary: #1d1e20;
    --hover: #26272a;
    --border: #2c2d30;
    --border-light: #232427;
    --text: #e4e4e6;
    --text-secondary: #a3a3a7;
    --text-tertiary: #77787c;
    --accent: #5b8def;
    --accent-light: #1c2536;
    --danger: #ff8a75;
    --danger-bg: #3a1f1a;
    --success: #7ed99a;
    --success-bg: #1c3324;
    --chart-1: #3987e5;
    --chart-2: #d95926;
    --chart-3: #199e70;
    --chart-4: #c98500;
    --chart-other: #9a9da3;
  }
}
:root[data-theme="dark"] {
  --bg: #17181a;
  --bg-secondary: #1d1e20;
  --hover: #26272a;
  --border: #2c2d30;
  --border-light: #232427;
  --text: #e4e4e6;
  --text-secondary: #a3a3a7;
  --text-tertiary: #77787c;
  --accent: #5b8def;
  --accent-light: #1c2536;
  --danger: #ff8a75;
  --danger-bg: #3a1f1a;
  --success: #7ed99a;
  --success-bg: #1c3324;
  --chart-1: #3987e5;
  --chart-2: #d95926;
  --chart-3: #199e70;
  --chart-4: #c98500;
  --chart-other: #9a9da3;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-secondary: #fafafa;
  --hover: #f5f5f5;
  --border: #ebebeb;
  --border-light: #f5f5f5;
  --text: #333333;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --accent: #1961ed;
  --accent-light: #f0f4ff;
  --danger: #9c3325;
  --danger-bg: #feeae5;
  --success: #2a5f3b;
  --success-bg: #d9f0dd;
  --chart-1: #2a78d6;
  --chart-2: #eb6834;
  --chart-3: #1baf7a;
  --chart-4: #eda100;
  --chart-other: #8a8d93;
}

html, body { height: 100%; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ── App shell ───────────────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-logo {
  display: flex; align-items: center; gap: .5rem;
  padding: 1rem 1rem .75rem;
  font-weight: 700; font-size: 14px; color: var(--text);
  text-decoration: none;
}
.sidebar-logo .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }
.sidebar-nav { flex: 1; padding: .25rem .5rem; overflow-y: auto; }
.sidebar-section-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-tertiary); padding: .9rem .6rem .25rem;
  font-weight: 600;
}
.nav-link {
  display: flex; align-items: center; gap: .55rem;
  padding: .4rem .6rem; margin-bottom: 1px;
  border-radius: var(--radius-sm); text-decoration: none;
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover { background: var(--hover); color: var(--text); }
.nav-link.active { background: var(--accent-light); color: var(--accent); }
.nav-link .icon { width: 16px; height: 16px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.sidebar-footer {
  padding: .75rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .4rem;
}
.sidebar-user-email {
  font-size: 12px; color: var(--text-tertiary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 .1rem;
}
.sidebar-footer .nav-link { padding: .35rem .6rem; }

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content-inner { padding: 1.5rem 2rem; max-width: 1200px; width: 100%; margin: 0 auto; flex: 1; }

/* ── Page header ─────────────────────────────────────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.page-header h1 { font-size: 18px; font-weight: 600; }
.page-header .page-sub { font-size: 12px; color: var(--text-secondary); margin-top: .15rem; }
.page-header-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

/* ── Flash messages ──────────────────────────────────────────── */
.flash {
  padding: .6rem .9rem; border-radius: var(--radius-sm); margin-bottom: 1rem;
  font-size: 13px; display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem;
}
.flash-error { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-bg); }
.flash-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-bg); }
.flash a { font-weight: 600; text-decoration: underline; }
.flash-close { background: none; border: none; font-size: 1rem; cursor: pointer; color: inherit; opacity: .6; line-height: 1; }
.flash-close:hover { opacity: 1; }

/* ── Cards ───────────────────────────────────────────────────── */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.card h2 { font-size: 14px; font-weight: 600; margin-bottom: .75rem; }
.hint { color: var(--text-secondary); font-size: 12px; line-height: 1.5; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  height: 28px; padding: 0 .85rem; border-radius: 6px; font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background var(--transition), border-color var(--transition), opacity var(--transition);
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: .9; }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.btn-secondary { background: var(--bg); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--hover); }
.btn-danger { background: var(--bg); color: var(--danger); border-color: var(--border); }
.btn-danger:hover { background: var(--danger-bg); border-color: var(--danger-bg); }
.btn-sm { height: 24px; padding: 0 .6rem; font-size: 12px; }
.btn-icon { width: 28px; height: 28px; padding: 0; flex-shrink: 0; }

/* ── Forms ───────────────────────────────────────────────────── */
label.field { display: block; margin-bottom: .9rem; font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.field-row { display: flex; gap: .75rem; }
.field-row > label.field { flex: 1; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="search"], select, textarea {
  display: block; width: 100%; margin-top: .3rem; padding: .45rem .6rem;
  border: 1px solid var(--border); border-radius: 6px; font-size: 13px;
  background: var(--bg); color: var(--text);
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); outline: none;
}
input:disabled { color: var(--text-tertiary); background: var(--bg-secondary); }
small { color: var(--text-tertiary); font-weight: 400; }
.checkbox-row { display: flex; align-items: center; gap: .5rem; font-size: 13px; cursor: pointer; }
.checkbox-row input[type="checkbox"] { width: auto; margin: 0; accent-color: var(--accent); }
hr.divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }

/* ── Auth pages ──────────────────────────────────────────────── */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-secondary); }
.auth-card { width: 100%; max-width: 380px; background: var(--bg); padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border); }
.auth-card .brand { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; font-weight: 700; font-size: 15px; }
.auth-card .brand .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.auth-card h1 { font-size: 16px; font-weight: 600; margin-bottom: 1.25rem; }
.auth-card button[type="submit"] {
  width: 100%; height: 32px; margin-top: .5rem; background: var(--accent); color: #fff;
  border: none; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer;
}
.auth-card button[type="submit"]:hover { opacity: .9; }
.auth-footer { margin-top: 1.25rem; text-align: center; display: flex; flex-direction: column; gap: .5rem; }
.auth-footer a { color: var(--accent); font-size: 12px; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ── Tables ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data-table th {
  text-align: left; padding: 0 .75rem; height: 32px; background: var(--bg-secondary);
  border-bottom: 1px solid var(--border); color: var(--text-secondary); font-weight: 600;
  font-size: 11px; text-transform: uppercase; letter-spacing: .03em; position: sticky; top: 0;
  white-space: nowrap;
}
table.data-table td { padding: 0 .75rem; height: 36px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
table.data-table tbody tr { transition: background var(--transition); cursor: default; }
table.data-table tbody tr.clickable { cursor: pointer; }
table.data-table tbody tr:hover { background: var(--hover); }
table.data-table tbody tr:last-child td { border-bottom: none; }
table.data-table td.col-checkbox, table.data-table th.col-checkbox { width: 32px; }
table.data-table input[type="checkbox"] { accent-color: var(--accent); cursor: pointer; }
.cell-muted { color: var(--text-tertiary); }
.cell-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.cell-truncate { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Chips / badges ──────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; height: 20px; padding: 0 .5rem;
  border-radius: var(--radius-sm); font-size: 11px; font-weight: 600; white-space: nowrap;
  text-transform: capitalize;
}
.chip-subscribed, .chip-registered, .chip-completed { background: var(--success-bg); color: var(--success); }
.chip-existing { background: #dbeafe; color: #1e40af; }
.chip-failed { background: var(--danger-bg); color: var(--danger); }
.chip-forbidden { background: #3d1a1a; color: #ff9c8a; }
.chip-pending, .chip-skipped { background: var(--bg-secondary); color: var(--text-secondary); border: 1px solid var(--border); }
.chip-paused { background: #fef3c7; color: #92400e; }
.chip-running { background: #dbeafe; color: #1e40af; }
.chip-importing { background: #ede9fe; color: #5b21b6; }
@media (prefers-color-scheme: dark) {
  .chip-existing { background: #1e2a44; color: #93c5fd; }
  .chip-forbidden { background: #3d1a1a; color: #ff9c8a; }
  .chip-paused { background: #3a2f14; color: #fbbf24; }
  .chip-running { background: #1e2a44; color: #93c5fd; }
  .chip-importing { background: #2a2140; color: #c4b5fd; }
}
.chip-group { display: flex; gap: .3rem; flex-wrap: wrap; }

/* ── Modals ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal {
  background: var(--bg); border-radius: var(--radius); width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto; border: 1px solid var(--border);
}
.modal.modal-wide { max-width: 720px; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 14px; font-weight: 600; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--text-secondary); font-size: 1.1rem; line-height: 1; padding: .1rem; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 1.25rem; }
.modal-footer { display: flex; justify-content: flex-end; gap: .5rem; padding: 1rem 1.25rem; border-top: 1px solid var(--border); }

/* ── Slide-over ──────────────────────────────────────────────── */
.slideover-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.2); z-index: 190; }
.slideover {
  position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%;
  background: var(--bg); border-left: 1px solid var(--border); z-index: 191;
  display: flex; flex-direction: column; box-shadow: -8px 0 24px rgba(0,0,0,.06);
}
.slideover-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.slideover-header h2 { font-size: 14px; font-weight: 600; }
.slideover-body { padding: 1.25rem; overflow-y: auto; flex: 1; }
.slideover-section { margin-bottom: 1.5rem; }
.slideover-section h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-tertiary); margin-bottom: .6rem; font-weight: 600; }
.field-inline { display: flex; flex-direction: column; gap: .15rem; margin-bottom: .75rem; }
.field-inline label { font-size: 11px; color: var(--text-tertiary); }
.field-inline input {
  border: 1px solid transparent; background: transparent; padding: .25rem .35rem; margin-top: 0;
  border-radius: 4px; font-size: 13px;
}
.field-inline input:hover { border-color: var(--border); background: var(--bg-secondary); }
.field-inline input:focus { border-color: var(--accent); background: var(--bg); box-shadow: none; }
.sub-row, .history-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .4rem 0; border-bottom: 1px solid var(--border-light); font-size: 12px;
}
.sub-row:last-child, .history-row:last-child { border-bottom: none; }

/* ── Progress bar ────────────────────────────────────────────── */
.progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); transition: width .4s ease; border-radius: 3px; }

/* ── Stats row ───────────────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.stat-box { text-align: left; background: var(--bg-secondary); padding: .7rem .8rem; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.stat-box .stat-value { display: block; font-size: 18px; font-weight: 700; line-height: 1.2; }
.stat-box .stat-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .03em; margin-top: .1rem; display: block; }

/* ── Toolbar / filters ───────────────────────────────────────── */
.toolbar { display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; flex-wrap: wrap; }
.toolbar .search-input { max-width: 260px; }
.toolbar select { width: auto; min-width: 140px; }
.selection-bar {
  display: flex; align-items: center; gap: .75rem; padding: .5rem .75rem;
  background: var(--accent-light); border: 1px solid var(--accent); border-radius: var(--radius-sm);
  margin-bottom: .75rem; font-size: 12px; color: var(--accent); font-weight: 500;
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination { display: flex; gap: .5rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary); }

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-tertiary); }
.empty-state p { font-size: 13px; margin-bottom: .75rem; }

/* ── Import wizard ───────────────────────────────────────────── */
.import-steps { display: flex; gap: .4rem; margin-bottom: 1rem; }
.import-step {
  flex: 1; text-align: center; padding: .4rem; border-radius: var(--radius-sm); font-size: 11px;
  font-weight: 600; background: var(--bg-secondary); color: var(--text-tertiary); border: 1px solid var(--border);
}
.import-step.active { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }
.import-step.done { background: var(--success-bg); color: var(--success); }
.dropzone {
  border: 1.5px dashed var(--border); border-radius: var(--radius); padding: 1.5rem;
  text-align: center; color: var(--text-secondary); font-size: 12px; cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: var(--accent-light); }
.dupe-summary {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .75rem; margin-top: .75rem; font-size: 12px;
}
.dupe-summary p { margin-bottom: .3rem; }
.dupe-summary p:last-child { margin-bottom: 0; }
.destination-choice { display: flex; gap: .6rem; margin-bottom: 1rem; }
.destination-option {
  flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .75rem;
  cursor: pointer; font-size: 12px; transition: border-color var(--transition), background var(--transition);
}
.destination-option.selected { border-color: var(--accent); background: var(--accent-light); }
.destination-option strong { display: block; margin-bottom: .2rem; font-size: 13px; }

/* ── Status message ──────────────────────────────────────────── */
.status-msg { font-size: 12px; min-height: 1.2em; }
.status-error { color: var(--danger); }
.status-success { color: var(--success); }

/* ── Spinner ─────────────────────────────────────────────────── */
.spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; vertical-align: middle; margin-right: .35rem; }
.spinner-dark { border-color: var(--border); border-top-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Handsontable theming ────────────────────────────────────── */
#spreadsheet { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.handsontable { font-family: Inter, -apple-system, sans-serif !important; font-size: 12px !important; }
.handsontable th { background: var(--bg-secondary) !important; color: var(--text-secondary) !important; }
.handsontable td { color: var(--text) !important; }

/* ── Column guide ────────────────────────────────────────────── */
.column-guide { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-bottom: .75rem; font-size: 12px; color: var(--text-secondary); }
.col-tag { display: inline-block; padding: .15rem .45rem; border-radius: var(--radius-sm); background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-secondary); font-size: 11px; }
.col-required { background: var(--accent-light); color: var(--accent); border-color: var(--accent-light); font-weight: 600; }

/* ── Dashboard ───────────────────────────────────────────────── */
.dash-filters { display: flex; gap: .4rem; margin-bottom: 1.25rem; }
.range-btn {
  height: 28px; padding: 0 .85rem; border-radius: 6px; font-size: 12px; font-weight: 500;
  cursor: pointer; background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.range-btn:hover { background: var(--hover); color: var(--text); }
.range-btn.active { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }

.tabular-nums { font-variant-numeric: tabular-nums; }

.chart-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.chart-card-header h2 { margin-bottom: 0; }

.chart-container {
  position: relative; width: 100%; user-select: none;
  transition: opacity .15s ease;
}
.chart-container:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.chart-container.refetching { opacity: .55; }
.chart-container svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-empty { padding: 2.5rem 1rem; text-align: center; color: var(--text-tertiary); font-size: 13px; }

.chart-axis-label { fill: var(--text-tertiary); font-size: 10px; }
.chart-gridline { stroke: var(--border); stroke-width: 1; shape-rendering: crispEdges; }
.chart-axis-line { stroke: var(--border); stroke-width: 1; shape-rendering: crispEdges; }
.chart-crosshair { stroke: var(--text-tertiary); stroke-width: 1; pointer-events: none; }
.chart-line { fill: none; stroke-width: 2; }
.chart-marker { stroke: var(--bg); stroke-width: 2; }
.chart-direct-label { fill: var(--text-secondary); font-size: 11px; }
.chart-direct-swatch { stroke-width: 2; }

.chart-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .9rem; font-size: 12px; color: var(--text-secondary); }
.chart-legend-item { display: flex; align-items: center; gap: .4rem; }
.chart-legend-swatch { width: 14px; height: 0; border-top: 2px solid; flex-shrink: 0; }

.chart-tooltip {
  position: absolute; pointer-events: none; z-index: 20;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .5rem .65rem; font-size: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.12);
  min-width: 150px; opacity: 0; transition: opacity .08s ease;
}
.chart-tooltip.visible { opacity: 1; }
.chart-tooltip-date { font-weight: 600; color: var(--text); margin-bottom: .35rem; font-size: 11px; }
.chart-tooltip-row { display: flex; align-items: center; gap: .4rem; padding: .12rem 0; }
.chart-tooltip-key { width: 12px; height: 0; border-top: 2px solid; flex-shrink: 0; }
.chart-tooltip-value { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.chart-tooltip-name { color: var(--text-secondary); }

.dash-table th, .dash-table td { font-variant-numeric: tabular-nums; }
.dash-table th:first-child, .dash-table td:first-child { font-variant-numeric: normal; }

/* ── Mobile nav toggle ───────────────────────────────────────── */
.mobile-topbar { display: none; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .sidebar { position: fixed; left: -100%; z-index: 300; transition: left .15s ease; }
  .sidebar.open { left: 0; }
  .app-shell { display: block; }
  .mobile-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: .6rem 1rem; border-bottom: 1px solid var(--border); background: var(--bg);
    position: sticky; top: 0; z-index: 150;
  }
  .mobile-topbar button { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text); }
  .content-inner { padding: 1rem; }
  .field-row { flex-direction: column; gap: 0; }
  .slideover { width: 100%; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .destination-choice { flex-direction: column; }
}
