/* ==========================================================================
   QuidOwl design system (v2, Nov 2026)
   "Maximum business clarity. Minimum visual noise."
   Loaded after app.css: redefines the shared tokens so every page picks up
   the new look, then adds the shell (sidebar, top bar) and v2 components.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  /* Text */
  --text: #0F172A;
  --text-2: #475569;
  --muted: #64748B;
  --faint: #94A3B8;

  /* Accent and status */
  --accent: #4F46E5;
  --accent-hover: #4338CA;
  --accent-soft: #EEF2FF;
  --accent-ring: rgba(79, 70, 229, 0.35);
  --pos: #059669;
  --pos-soft: #ECFDF5;
  --neg: #DC2626;
  --neg-soft: #FEF2F2;
  --warn: #B45309;
  --warn-soft: #FFFBEB;
  --info: #2563EB;
  --info-soft: #EFF6FF;

  /* Marketplaces (used sparingly: dots, chart series) */
  --chan-ebay: #10B981;
  --chan-amazon: #3B82F6;

  /* Shape */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px -4px rgba(15, 23, 42, 0.10), 0 2px 4px rgba(15, 23, 42, 0.04);

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sidebar-w: 232px;
  --sidebar-w-collapsed: 64px;

  /* Map the original app.css tokens onto the new palette, so older pages follow */
  --color-bg: var(--bg);
  --color-surface: var(--surface);
  --color-border: var(--border);
  --color-border-md: var(--border-strong);
  --color-text: var(--text);
  --color-muted: var(--muted);
  --color-hint: var(--faint);
  --color-accent: var(--accent);
  --color-success: var(--pos);
  --color-success-bg: var(--pos-soft);
  --color-danger: var(--neg);
  --color-danger-bg: var(--neg-soft);
  --color-warning: var(--warn);
  --color-warning-bg: var(--warn-soft);
  --color-info: var(--info);
  --color-info-bg: var(--info-soft);
  --radius-sm: var(--r-sm);
  --radius-md: var(--r-md);
  --radius-lg: var(--r-lg);
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
}
.num, .tnum, td.num, .metric-value, .kpi-value { font-variant-numeric: tabular-nums; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 2px; border-radius: var(--r-sm); }
svg.lucide { flex-shrink: 0; }

/* ── Shell: sidebar ───────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w); min-width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  transition: width .18s ease, min-width .18s ease, transform .2s ease;
}
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; height: 60px; border-bottom: 1px solid var(--border); }
.sb-logo {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -0.5px; flex-shrink: 0;
}
.sb-name { line-height: 1.15; min-width: 0; }
.sb-name b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.2px; }
.sb-name span { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-collapse { margin-left: auto; border: 0; background: none; color: var(--faint); padding: 4px; border-radius: var(--r-sm); cursor: pointer; display: grid; place-items: center; }
.sb-collapse:hover { color: var(--text); background: var(--surface-2); }

.sidebar-nav { padding: 10px 8px; }
.nav-group { margin-bottom: 4px; }
.nav-group-head {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 10px 10px 4px; border: 0; background: none; cursor: pointer;
  font: 600 11px/1 var(--font); letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint);
}
.nav-group-head:hover { color: var(--muted); }
.nav-group-head .chev { margin-left: auto; transition: transform .15s ease; }
.nav-group.closed .nav-group-head .chev { transform: rotate(-90deg); }
.nav-group.closed .nav-group-items { display: none; }

.nav-item {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 34px; padding: 0 10px; margin: 1px 0; border-radius: var(--r-md);
  font: 500 13.5px/1 var(--font); color: var(--text-2);
  background: none; border: 0; width: 100%; text-align: left; cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.nav-item svg.lucide { color: var(--faint); transition: color .12s ease; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item:hover svg.lucide { color: var(--text-2); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-item.active svg.lucide { color: var(--accent); }
.nav-item.active::before { content: ''; position: absolute; left: -8px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav-logout, .nav-logout svg.lucide { color: var(--muted); }
.nav-logout:hover, .nav-logout:hover svg.lucide { color: var(--neg); background: var(--neg-soft); }
.chan-mark { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.chan-mark.ebay { background: var(--chan-ebay); }
.chan-mark.amazon { background: var(--chan-amazon); }
.sidebar-footer { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.sidebar-footer .avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; font-size: 11px; font-weight: 600; flex-shrink: 0; }

/* Collapsed (icon-only) mode */
body.sb-collapsed .sidebar { width: var(--sidebar-w-collapsed); min-width: var(--sidebar-w-collapsed); }
body.sb-collapsed .main-content { margin-left: var(--sidebar-w-collapsed); }
body.sb-collapsed .sb-name,
body.sb-collapsed .nav-label,
body.sb-collapsed .nav-group-head span,
body.sb-collapsed .nav-group-head .chev,
body.sb-collapsed .sidebar-footer .who { display: none; }
body.sb-collapsed .sb-brand { padding: 14px 0; justify-content: center; flex-direction: column; height: auto; gap: 8px; }
body.sb-collapsed .sb-collapse { margin: 0; }
body.sb-collapsed .nav-group-head { justify-content: center; padding: 10px 0 4px; }
body.sb-collapsed .nav-group-head::after { content: ''; width: 16px; height: 1px; background: var(--border); }
body.sb-collapsed .nav-group.closed .nav-group-items { display: block; }
body.sb-collapsed .nav-item { justify-content: center; padding: 0; }
body.sb-collapsed .sidebar-footer { justify-content: center; padding: 12px 0; }

/* ── Shell: main area ─────────────────────────────────────────────────────── */
.main-content { margin-left: var(--sidebar-w); padding: 0 28px 40px; transition: margin-left .18s ease; min-width: 0; }
.mobile-bar { display: none; }

/* Page header (v2): compact, one line */
.ph {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 0 18px; margin-bottom: 4px;
}
.ph-crumb { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.ph-title { font-size: 22px; font-weight: 600; letter-spacing: -0.4px; line-height: 1.2; }
.ph-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ph-meta { font-size: 12px; color: var(--faint); }

/* ── Controls ─────────────────────────────────────────────────────────────── */
.btn {
  height: 32px; padding: 0 12px; gap: 6px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: 500 13px/1 var(--font); box-shadow: var(--shadow-sm);
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { border-color: transparent; background: none; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn .spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Segmented control (date ranges, chart granularity) */
.seg { display: inline-flex; padding: 2px; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); }
.seg button {
  height: 26px; padding: 0 11px; border: 0; border-radius: 6px; background: none; cursor: pointer;
  font: 500 12.5px/1 var(--font); color: var(--muted); transition: background .12s, color .12s;
}
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 0 0 1px var(--border); }
/* Old period buttons (eBay/Amazon pages) get the same calm look */
.dash-period.active { background: var(--text) !important; color: #fff !important; border-color: var(--text) !important; }

input, select, textarea {
  font-family: var(--font); font-size: 13px; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }

/* ── Cards, KPIs ──────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 18px; }
.card-header { margin-bottom: 12px; }
.card-title { font-size: 14px; font-weight: 600; letter-spacing: -0.1px; }
.card-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.metric { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.metric-label { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.metric-value { font-size: 22px; letter-spacing: -0.5px; }

.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px 12px; box-shadow: var(--shadow-sm); min-width: 0; display: flex; flex-direction: column; }
.kpi-label { font-size: 12.5px; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi-value { font-size: 26px; font-weight: 600; letter-spacing: -0.8px; line-height: 1.15; margin-top: 6px; white-space: nowrap; }
.kpi-value .unit { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.kpi-foot { margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; min-height: 28px; }
.kpi-spark { margin-left: auto; color: var(--accent); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }

/* Channel split bar inside a KPI */
.split { display: flex; height: 4px; border-radius: 4px; overflow: hidden; background: var(--surface-2); width: 100%; }
.split i { display: block; height: 100%; }
.split .s-ebay { background: var(--chan-ebay); }
.split .s-amazon { background: var(--chan-amazon); }

/* ── Layout helpers ───────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 16px; margin-bottom: 16px; }
.stack > * + * { margin-top: 16px; }

/* ── Chart ────────────────────────────────────────────────────────────────── */
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-total { font-size: 20px; font-weight: 600; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-wrap { position: relative; height: 260px; }
.chart-wrap svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart-grid line { stroke: var(--border); stroke-width: 1; shape-rendering: crispEdges; }
.chart-axis text { fill: var(--faint); font: 11px var(--font); font-variant-numeric: tabular-nums; }
.chart-bar { transition: opacity .12s ease; }
.chart-col:hover .chart-bar, .chart-col.hot .chart-bar { opacity: 0.85; }
.chart-hover { fill: var(--surface-2); opacity: 0; }
.chart-col:hover .chart-hover, .chart-col.hot .chart-hover { opacity: 1; }
.tip {
  position: absolute; pointer-events: none; z-index: 5; min-width: 168px;
  background: var(--text); color: #fff; border-radius: var(--r-md); padding: 10px 12px;
  font-size: 12px; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(4px); transition: opacity .1s, transform .1s;
}
.tip.on { opacity: 1; transform: none; }
.tip .t-date { color: #CBD5E1; margin-bottom: 6px; font-weight: 500; }
.tip .t-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; font-variant-numeric: tabular-nums; }
.tip .t-row + .t-row { margin-top: 3px; }
.tip .t-row span { display: inline-flex; align-items: center; gap: 6px; color: #E2E8F0; }
.tip .t-total { border-top: 1px solid rgba(255,255,255,.15); margin-top: 6px; padding-top: 6px; font-weight: 600; }

/* ── Marketplace comparison ───────────────────────────────────────────────── */
.mp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mp-table th { text-align: right; font-size: 12px; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; padding: 0 0 10px; border: 0; }
.mp-table th:first-child { text-align: left; }
.mp-table th .chan-mark { margin-right: 6px; vertical-align: 1px; }
.mp-table td { padding: 9px 0; border-top: 1px solid var(--border); border-bottom: 0; text-align: right; font-variant-numeric: tabular-nums; }
.mp-table td:first-child { text-align: left; color: var(--muted); }
.mp-table tbody tr:hover td { background: none; }
.mp-table .total { font-weight: 600; }
.mp-share { margin-top: 14px; }
.mp-share-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }

/* ── Tables (all pages) ───────────────────────────────────────────────────── */
table { font-size: 13px; }
th { font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; text-transform: uppercase; border-bottom: 1px solid var(--border); background: transparent; }
td { border-bottom: 1px solid var(--border); padding: 10px 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--bg); }
.table-compact th, .table-compact td { padding: 8px 0; }
.table-compact th:not(:first-child), .table-compact td:not(:first-child) { padding-left: 12px; }
.cell-title { max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Badges & status ──────────────────────────────────────────────────────── */
.badge { font-size: 11.5px; font-weight: 500; padding: 2px 8px; border-radius: 999px; border: 1px solid transparent; }
.badge-success { background: var(--pos-soft); color: var(--pos); border-color: #A7F3D0; }
.badge-danger  { background: var(--neg-soft); color: var(--neg); border-color: #FECACA; }
.badge-warning { background: var(--warn-soft); color: var(--warn); border-color: #FDE68A; }
.badge-info    { background: var(--info-soft); color: var(--info); border-color: #BFDBFE; }
.badge-neutral { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.alert { border-radius: var(--r-md); border: 1px solid; font-size: 13px; padding: 10px 12px; }
.alert-warning { background: var(--warn-soft); border-color: #FDE68A; color: var(--warn); }
.alert-danger { background: var(--neg-soft); border-color: #FECACA; color: var(--neg); }
.alert-info { background: var(--info-soft); border-color: #BFDBFE; color: var(--info); }
.alert-success { background: var(--pos-soft); border-color: #A7F3D0; color: var(--pos); }

/* Attention list */
.att { list-style: none; margin: 0; padding: 0; }
.att li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 13px; }
.att li:first-child { border-top: 0; padding-top: 2px; }
.att .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.att .ic.warn { background: var(--warn-soft); color: var(--warn); }
.att .ic.neg { background: var(--neg-soft); color: var(--neg); }
.att .ic.ok { background: var(--pos-soft); color: var(--pos); }
.att .a-main { min-width: 0; flex: 1; }
.att .a-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att .a-sub { color: var(--muted); font-size: 12px; margin-top: 1px; }
.att .a-val { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

/* ── Empty & loading states ───────────────────────────────────────────────── */
.empty { display: grid; place-items: center; text-align: center; padding: 28px 12px; color: var(--muted); font-size: 13px; gap: 6px; }
.empty svg.lucide { color: var(--faint); }
.sk { display: block; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 25%, #E9EEF5 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.loading { color: var(--muted); }
.spinner { border-color: var(--border); border-top-color: var(--accent); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .grid-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); width: var(--sidebar-w) !important; min-width: var(--sidebar-w) !important; box-shadow: var(--shadow-md); z-index: 50; }
  body.sb-open .sidebar { transform: none; }
  body.sb-open .sb-scrim { display: block; }
  .sb-scrim { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.35); z-index: 40; }
  .sb-collapse { display: none; }
  .main-content, body.sb-collapsed .main-content { margin-left: 0; padding: 0 16px 32px; }
  .mobile-bar { display: flex; align-items: center; gap: 10px; height: 52px; margin: 0 -16px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
  .mobile-bar b { font-size: 14px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis .kpi:first-child { grid-column: 1 / -1; }
  .ph-title { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Grid cards: spacing comes from the grid gap, not card margins */
.grid-main > .card, .grid-2 > .card, .kpis > * { margin-bottom: 0; }
.grid-main { margin-bottom: 16px; }
.card-chart { display: flex; flex-direction: column; padding-bottom: 10px; }
.card-chart .chart-wrap { flex: 1; min-height: 260px; }
.cell-title { max-width: 100%; }
.table-compact td:first-child { overflow: hidden; }
@media (max-width: 860px) {
  .ph-actions { width: 100%; }
  .ph-meta { flex-basis: 100%; }
  .card-chart .chart-wrap { min-height: 220px; }
}

/* ── v2 components used by channel pages ──────────────────────────────────── */
.kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis-6 .kpi-value { font-size: 22px; }
.kpi[title] { cursor: help; }
.warn-text { color: var(--warn); }

.period { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.period-custom { display: flex; align-items: center; gap: 6px; }
.period-custom input { height: 30px; padding: 0 8px; width: 140px; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); white-space: nowrap; }
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status-pill.ok .dot { background: var(--pos); box-shadow: 0 0 0 3px var(--pos-soft); }
.status-pill.warn .dot { background: #F59E0B; box-shadow: 0 0 0 3px var(--warn-soft); }
.status-pill.neg .dot { background: var(--neg); box-shadow: 0 0 0 3px var(--neg-soft); }

.search { position: relative; display: inline-flex; align-items: center; }
.search svg { position: absolute; left: 10px; color: var(--faint); pointer-events: none; }
.search input { height: 32px; width: 260px; padding: 0 10px 0 30px; }

.stat-list .stat { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--border); font-size: 13px; }
.stat-list .stat:first-child { border-top: 0; padding-top: 2px; }
.stat-list .stat span { color: var(--muted); }
.stat-list .stat b { font-weight: 600; font-variant-numeric: tabular-nums; }

.card-flush { padding: 0; overflow: hidden; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 9px 14px; background: var(--bg); white-space: nowrap; }
.data-table td { padding: 10px 14px; vertical-align: middle; }
.data-table th:first-child, .data-table td:first-child { padding-left: 18px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 18px; }
.cell-sub { font-size: 11.5px; color: var(--faint); margin-top: 1px; font-variant-numeric: tabular-nums; }
.data-table .cell-title { max-width: 360px; font-weight: 500; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.muted { color: var(--faint); }
a.muted:hover { color: var(--accent); }

.cost-wrap { display: inline-flex; align-items: center; gap: 2px; color: var(--faint); }
.cost-input { width: 76px; height: 28px; padding: 0 8px; text-align: right; font-variant-numeric: tabular-nums; border: 1px solid transparent; background: transparent; border-radius: var(--r-sm); transition: border-color .12s, background .12s; }
tr:hover .cost-input, .cost-input:focus { border-color: var(--border); background: var(--surface); }
.cost-input.saved { border-color: var(--pos); box-shadow: 0 0 0 3px var(--pos-soft); }

@media (max-width: 1280px) {
  .kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .kpis-6, .kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis-6 .kpi:first-child, .kpis-4 .kpi:first-child { grid-column: auto; }
  .search, .search input { width: 100%; }
  .period { width: 100%; }
  .data-table .cell-title { max-width: 200px; }
}
/* KPI footers are text lines (inline figures must not split into columns) */
.kpi-foot { display: block; line-height: 1.45; }
.kpi-foot b, .kpi-foot .nowrap { white-space: nowrap; }
.kpi-foot .split + div { margin-top: 5px; }
.cost-input { text-align: left; width: 70px; }

.chart-empty-note { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); font-size: 12.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }

/* ── Cost of goods by shipment ─────────────────────────────────────────────── */
.nav-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #F59E0B; color: #fff; font: 600 10.5px/18px var(--font); text-align: center; }
body.sb-collapsed .nav-badge { position: absolute; top: 4px; right: 10px; min-width: 8px; width: 8px; height: 8px; padding: 0; font-size: 0; }
.dot-warn { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #F59E0B; box-shadow: 0 0 0 3px var(--warn-soft); margin-right: 8px; vertical-align: 1px; flex-shrink: 0; }
.dot-warn.sm { width: 6px; height: 6px; margin-right: 5px; box-shadow: none; }
.cogs-banner { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 14px; border: 1px solid #FDE68A; background: var(--warn-soft); border-radius: var(--r-lg); font-size: 13px; color: var(--text-2); }
.cogs-banner > div { flex: 1; }
.cogs-banner b { color: var(--text); font-weight: 600; }
.ship { margin-bottom: 12px; }
.ship-head { display: flex; align-items: center; gap: 16px; padding: 14px 18px; cursor: pointer; flex-wrap: wrap; }
.ship-head:hover { background: var(--bg); }
.ship-date { min-width: 150px; display: flex; flex-direction: column; }
.ship-date b { font-weight: 600; font-size: 14px; }
.ship-date span { font-size: 12px; color: var(--muted); max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ship-meta { display: flex; align-items: center; gap: 12px; flex: 1; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.ship-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ship-chev { color: var(--faint); transition: transform .15s ease; }
.ship.open .ship-chev { transform: rotate(180deg); }
.ship-body { display: none; border-top: 1px solid var(--border); }
.ship.open .ship-body { display: block; }
tr.pending td { background: #FFFDF5; }
.tag-current { color: var(--accent); font-weight: 500; }
.ok-tick { color: var(--pos); display: inline-flex; }
@media (max-width: 860px) { .ship-meta .mono { display: none; } }

.import-card { margin-bottom: 14px; border-color: #C7D2FE; box-shadow: 0 0 0 3px var(--accent-soft); }

.th-sub { display: block; font-size: 10px; font-weight: 500; color: var(--faint); text-transform: none; letter-spacing: 0; }
.cost-ex { color: var(--muted); }

/* ── Profit calculator, targets dialog (profitkit.js) ───────────────────── */
.txt-warn { color: var(--warn); }
.pk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin: 10px 0 4px; }
.pk-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pk-wide { margin-top: 2px; }
.pk-label { font-size: 12px; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-hint { font-size: 11px; color: var(--faint); }
.pk-input { display: flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); transition: border-color .12s, box-shadow .12s; }
.pk-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.pk-input i { font-style: normal; color: var(--faint); font-size: 13px; }
.pk-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.pk-note { font-size: 11.5px; color: var(--faint); min-height: 14px; margin-top: 4px; }
.pk-result { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.pk-empty { font-size: 13px; color: var(--faint); text-align: center; padding: 18px 0; }
.pk-verdict { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-md); font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.pk-verdict.ok { background: var(--pos-soft); color: var(--pos); }
.pk-verdict.bad { background: var(--warn-soft); color: var(--warn); }
.pk-lines > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; padding: 3px 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.pk-lines > div b { color: var(--text); }
.pk-lines > .sub { font-size: 11.5px; color: var(--faint); padding-top: 0; }
.pk-lines .pk-profit { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 8px; font-size: 14px; color: var(--text); font-weight: 600; }
.pk-lines .pk-profit span:first-child { flex: 1; }
.pk-lines .pk-profit b { font-size: 18px; }
.pk-lines .pk-profit b.pos, .pk-kpis b.pos { color: var(--pos); }
.pk-ok { color: var(--pos); display: inline-flex; } .pk-bad { color: var(--warn); display: inline-flex; }
.pk-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.pk-kpis > div { display: flex; align-items: center; gap: 6px; background: var(--bg); border-radius: var(--r-md); padding: 8px 10px; font-size: 12px; color: var(--muted); }
.pk-kpis > div span:first-child { flex: 1; }
.pk-kpis b { font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.pk-limits > div { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 3px 0; flex-wrap: wrap; }
.pk-limits b { font-weight: 600; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.pk-limits .muted { font-weight: 400; font-size: 11.5px; }
.pk-modal-back { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; z-index: 1000; overflow-y: auto; }
.pk-modal { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-md); width: 100%; max-width: 520px; padding: 18px 20px; }
.pk-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.pk-section { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-top: 14px; }
.pk-check { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 14px; color: var(--text); }
.pk-err { font-size: 12.5px; min-height: 16px; margin-top: 8px; }
.pk-modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
@media (max-width: 520px) { .pk-grid { grid-template-columns: 1fr 1fr; gap: 8px; } }
.pk-plain { height: 30px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); font: inherit; font-size: 13px; color: var(--text); width: 100%; min-width: 120px; }
.pk-plain:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.stock-split { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--bg); gap: 2px; }
.stock-split i { display: block; height: 100%; }
.stock-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.stock-legend b { color: var(--text); font-weight: 600; margin-left: 2px; }
.row-total td { background: var(--bg); font-weight: 600; }

/* ── Scanner ─────────────────────────────────────────────────────────────── */
.scan-bar { margin-bottom: 16px; }
.scan-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.scan-input { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); color: var(--faint); }
.scan-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.scan-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--text); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.scan-cost { width: 170px; height: 46px; }
.scan-form .btn { height: 46px; }
#scan-video-wrap { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
#scan-video-wrap[hidden] { display: none; }
#scan-video { width: 100%; border-radius: var(--r-md); background: #000; }
.scan-hint { font-size: 12px; color: var(--muted); }
.scan-grid { align-items: start; }
.scan-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.scan-img { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; flex: none; }
.scan-img.empty { display: flex; align-items: center; justify-content: center; color: var(--faint); }
.scan-title { font-size: 15px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.scan-alt.on { font-weight: 600; text-decoration: underline; }
.scan-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.scan-chip { background: var(--bg); border-radius: var(--r-md); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.scan-chip span { font-size: 11.5px; color: var(--muted); }
.scan-chip b { font-size: 15px; font-variant-numeric: tabular-nums; }
.scan-chip.warn b { color: var(--warn); }
.verdict { display: inline-block; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.verdict.sm { padding: 2px 8px; font-size: 11px; }
.v-buy { background: var(--pos-soft); color: var(--pos); }
.v-monitor { background: var(--warn-soft); color: var(--warn); }
.v-avoid { background: var(--neg-soft); color: var(--neg); }
.v-enter-cost { background: var(--bg); color: var(--muted); }
@media (max-width: 700px) { .scan-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } .scan-cost { width: 100%; } }

/* ── Ask Claude ──────────────────────────────────────────────────────────── */
.ai-fab { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; font-size: 13.5px; box-shadow: var(--shadow-md); cursor: pointer; }
.ai-fab:hover { background: var(--accent-hover); }
.ai-fab[hidden] { display: none; }
.ai-panel { position: fixed; right: 20px; bottom: 20px; z-index: 950; width: min(440px, calc(100vw - 32px)); height: min(640px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.ai-panel[hidden] { display: none; }
.ai-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 14px 10px 16px; border-bottom: 1px solid var(--border); }
.ai-head > div:first-child { color: var(--accent); }
.ai-head b { color: var(--text); font-size: 14px; }
.ai-sub { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.ai-body { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { font-size: 13.5px; line-height: 1.5; max-width: 92%; }
.ai-msg.user { align-self: flex-end; background: var(--accent-soft); color: var(--text); padding: 8px 12px; border-radius: 12px 12px 4px 12px; white-space: pre-wrap; }
.ai-msg.assistant p { margin: 0 0 6px; }
.ai-msg.assistant ul { margin: 4px 0 8px 18px; padding: 0; }
.ai-msg.err { color: var(--neg); }
.ai-msg.thinking { color: var(--muted); display: flex; align-items: center; gap: 4px; }
.ai-msg.thinking span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: aiDot 1s infinite ease-in-out; }
.ai-msg.thinking span:nth-child(2) { animation-delay: .15s; } .ai-msg.thinking span:nth-child(3) { animation-delay: .3s; margin-right: 6px; }
@keyframes aiDot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.ai-table { border-collapse: collapse; font-size: 12.5px; margin: 6px 0 8px; width: 100%; font-variant-numeric: tabular-nums; }
.ai-table th, .ai-table td { border-bottom: 1px solid var(--border); padding: 4px 6px; text-align: left; }
.ai-table th { color: var(--muted); font-weight: 600; }
.ai-empty p { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.ai-suggest { display: block; width: 100%; text-align: left; margin-bottom: 8px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); font: inherit; font-size: 13px; color: var(--text); cursor: pointer; }
.ai-suggest:hover { border-color: var(--accent); background: var(--accent-soft); }
.ai-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 12px; border-top: 1px solid var(--border); }
.ai-form textarea { flex: 1; resize: none; border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px 10px; font: inherit; font-size: 13.5px; color: var(--text); background: var(--surface); outline: 0; }
.ai-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.ai-form .btn { height: 36px; }
.ai-role { margin-top: 6px; height: 28px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; padding: 0 6px; }

/* ── Team ────────────────────────────────────────────────────────────────── */
.pm-card { margin-bottom: 16px; }
.pm-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pm-avatar { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.pm-briefing { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13.5px; line-height: 1.55; }
.pm-briefing p { margin: 0 0 6px; } .pm-briefing ul { margin: 4px 0 8px 18px; padding: 0; }
.lvl-bad { color: var(--neg); } .lvl-warn { color: var(--warn); } .lvl-ok { color: var(--pos); }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.team-grid > .card { margin-bottom: 0; }
.role-card { border-top: 3px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.lvl-border-bad { border-top-color: var(--neg); } .lvl-border-warn { border-top-color: #F59E0B; } .lvl-border-ok { border-top-color: var(--pos); }
.role-head { display: flex; gap: 10px; align-items: flex-start; }
.role-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--bg); color: var(--muted); display: flex; align-items: center; justify-content: center; flex: none; }
.role-name { font-weight: 600; font-size: 14px; }
.role-job { font-size: 12px; color: var(--faint); line-height: 1.35; }
.role-status { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.role-status li { display: flex; gap: 8px; align-items: baseline; line-height: 1.4; }
.role-status a { color: var(--text); text-decoration: none; } .role-status a:hover { text-decoration: underline; }
.sdot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--faint); transform: translateY(-1px); }
.sdot.neg { background: var(--neg); } .sdot.warn { background: #F59E0B; } .sdot.pos { background: var(--pos); } .sdot.muted { background: var(--border-strong); }
.role-tasks { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.role-tasks a { color: var(--accent); text-decoration: none; }
.task-add { display: flex; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.task-add #task-title { flex: 1 1 260px; }
.task-add select, .task-add input[type=date] { width: auto; }
.task-done td { color: var(--faint); } .task-done td:nth-child(2) { text-decoration: line-through; }
.task-status.st-done { color: var(--pos); } .task-status.st-doing { color: var(--accent); }
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .team-grid { grid-template-columns: 1fr; } }
.scan-view { position: relative; width: 100%; max-width: 560px; }
.scan-view video { display: block; width: 100%; max-width: none; }
#scan-video.mirror { transform: scaleX(-1); }
.scan-box { position: absolute; left: 15%; top: 27.5%; width: 70%; height: 45%; border: 2px solid rgba(255,255,255,.9); border-radius: 8px; box-shadow: 0 0 0 9999px rgba(15,23,42,.35); pointer-events: none; }
.scan-box i { position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: #EF4444; box-shadow: 0 0 6px #EF4444; animation: scanLine 1.6s ease-in-out infinite; }
@keyframes scanLine { 0%, 100% { top: 20%; } 50% { top: 80%; } }
.scan-view { overflow: hidden; border-radius: var(--r-md); }
.ui-toast { position: fixed; bottom: 20px; right: 20px; z-index: 9999; min-width: 260px; max-width: min(420px, calc(100vw - 32px)); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
@media (max-width: 700px) { .ui-toast { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); min-width: 0; } }

/* ── Sourcing scanner (shared desktop + phone) ───────────────────────────── */
.txt-warn { color: var(--warn); } .pos { color: var(--pos); }
.scanner-desktop { max-width: 760px; }
.su { display: flex; flex-direction: column; gap: 12px; }
.su-bar { display: flex; flex-direction: column; gap: 12px; }
.su-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.pk-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--text); }
.su-vat button { min-width: 48px; height: 28px; }
.su-scan-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 64px; border: 0; border-radius: var(--r-lg); background: var(--accent); color: #fff; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px -6px rgba(79,70,229,.6); -webkit-tap-highlight-color: transparent; }
.su-scan-btn:active { transform: scale(.985); background: var(--accent-hover); }
.su-manual { display: flex; gap: 8px; align-items: center; }
.su-manual input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--r-md); font: inherit; font-size: 16px; letter-spacing: .02em; font-variant-numeric: tabular-nums; background: var(--surface); color: var(--text); }
.su-manual input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.su-manual .btn { height: 40px; }
.su-manual label.btn { cursor: pointer; }
.su-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.su-res .scan-head { margin-bottom: 10px; }
.su-alt.on { font-weight: 600; text-decoration: underline; }
.su-elig { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r-md); font-size: 13px; margin-bottom: 10px; line-height: 1.35; }
.su-elig svg { flex: none; } .su-elig > span { flex: 1; min-width: 0; } .su-elig a { font-weight: 600; white-space: nowrap; color: inherit; }
.lvl-bg-ok { background: var(--pos-soft); color: var(--pos); }
.lvl-bg-warn { background: var(--warn-soft); color: var(--warn); }
.lvl-bg-bad { background: var(--neg-soft); color: var(--neg); }
.lvl-bg-muted { background: var(--surface-2); color: var(--muted); }
.su-memory { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-md); padding: 10px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; line-height: 1.45; }
.su-mem-title { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); }
.su-sups { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.su-sups span { background: var(--surface-2); border-radius: 999px; padding: 2px 9px; font-size: 12px; color: var(--text-2); }
.su-calc-top { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr); gap: 10px; align-items: end; margin-bottom: 12px; }
.su-big { height: 44px; } .su-big input { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.su-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.su-kpis > div { background: var(--bg); border-radius: var(--r-md); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.su-kpis span { font-size: 11.5px; color: var(--muted); }
.su-kpis b { font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.su-verdict { margin: 10px 0; text-align: center; padding: 8px; border-radius: var(--r-md); font-weight: 700; font-size: 14px; letter-spacing: .06em; }
.v-meets-targets { background: var(--pos-soft); color: var(--pos); }
.v-below-target { background: var(--warn-soft); color: var(--warn); }
.v-loss { background: var(--neg-soft); color: var(--neg); }
.su-decide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.su-d { display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--surface); font: inherit; font-weight: 600; font-size: 15px; color: var(--text-2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.su-buy.on { background: var(--pos); border-color: var(--pos); color: #fff; }
.su-review.on { background: #F59E0B; border-color: #F59E0B; color: #fff; }
.su-reject.on { background: var(--neg); border-color: var(--neg); color: #fff; }
.su-notes { width: 100%; resize: vertical; border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px 10px; font: inherit; font-size: 14px; color: var(--text); background: var(--surface); }
.su-notes:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.su-reg { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; }
.su-reg-btn { height: 40px; }
/* Camera overlay */
.su-cam { position: fixed; inset: 0; z-index: 2000; background: #000; display: flex; align-items: center; justify-content: center; }
.su-cam[hidden] { display: none; }
.su-cam video { width: 100%; height: 100%; object-fit: cover; }
.su-cam video.mirror { transform: scaleX(-1); }
.su-box { position: absolute; left: 10%; right: 10%; top: 36%; height: 22%; border: 2px solid rgba(255,255,255,.95); border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0,0,0,.45); pointer-events: none; }
.su-box i { position: absolute; left: 5%; right: 5%; top: 50%; height: 2px; background: #EF4444; box-shadow: 0 0 8px #EF4444; animation: scanLine 1.6s ease-in-out infinite; }
.su-cam-hint { position: absolute; left: 16px; right: 16px; top: calc(24px + env(safe-area-inset-top)); text-align: center; color: #fff; font-weight: 600; font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.su-cam-bar { position: absolute; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 28px; }
.su-cam-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 72px; padding: 10px 0; border: 0; border-radius: 16px; background: rgba(255,255,255,.16); color: #fff; font: inherit; font-size: 12px; cursor: pointer; backdrop-filter: blur(6px); }
.su-cam-btn.on { background: #FDE68A; color: #111; }
.su-cam-btn[hidden] { display: none; }
body.su-cam-open { overflow: hidden; }
@media (max-width: 600px) {
  .su-row { grid-template-columns: 1fr 1fr; } .su-row .su-sup { grid-column: 1 / -1; }
  .su-calc-top { grid-template-columns: 1fr auto; } .su-calc-top > :last-child { grid-column: 1 / -1; }
  .su-kpis b { font-size: 18px; }
  .su-manual label.btn span { display: none; }
}

/* ── Product view, registration task, decisions ─────────────────────────── */
.dec { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.dec-buy { background: var(--pos-soft); color: var(--pos); }
.dec-review { background: var(--warn-soft); color: var(--warn); }
.dec-reject { background: var(--neg-soft); color: var(--neg); }
.reg-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.reg-requested { background: var(--info-soft); color: var(--info); }
.reg-in_progress { background: var(--accent-soft); color: var(--accent); }
.reg-completed { background: var(--pos-soft); color: var(--pos); }
.reg-blocked { background: var(--neg-soft); color: var(--neg); }
.sv-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.sv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 6px; }
.sv-box { background: var(--bg); border-radius: var(--r-md); padding: 10px 12px; font-size: 13px; line-height: 1.5; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sv-k { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; }
.sv-sec { font-size: 13px; font-weight: 600; margin: 18px 0 8px; }
.sv-scans td { vertical-align: top; }
.sv-notes { max-width: 220px; white-space: pre-wrap; font-size: 12.5px; color: var(--text-2); }
.sv-changes { margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
.sv-changes summary { cursor: pointer; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.sv-changes div { padding: 3px 0; border-bottom: 1px solid var(--border); }
.sv-task { border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.sv-task-head { font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sv-task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sv-task-grid div { display: flex; flex-direction: column; font-size: 13px; min-width: 0; }
.sv-task-grid span { font-size: 11.5px; color: var(--muted); }
.sv-task-grid b { overflow-wrap: anywhere; }
.sv-task-notes { background: var(--bg); border-radius: var(--r-sm); padding: 8px 10px; font-size: 13px; white-space: pre-wrap; }
.sv-comments { display: flex; flex-direction: column; gap: 8px; }
.sv-comments:empty { display: none; }
.sv-c { font-size: 13px; padding-left: 10px; border-left: 2px solid var(--border); }
.sv-task-ctl { display: flex; gap: 8px; flex-wrap: wrap; }
.sv-task-ctl select { width: auto; }
.sv-task-ctl input { flex: 1 1 200px; }
@media (max-width: 760px) { .sv-grid { grid-template-columns: 1fr; } .sv-task-grid { grid-template-columns: 1fr 1fr; } }

/* ── Scan History (desktop) ──────────────────────────────────────────────── */
.sh-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; padding: 12px 14px; }
.sh-filters label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.sh-filters select, .sh-filters input.pk-plain { width: auto; }
.sh-search input { width: 280px; }
.sh-img { width: 38px; height: 38px; object-fit: contain; border: 1px solid var(--border); border-radius: 6px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--faint); }
.sh-row { cursor: pointer; } .sh-row:hover td { background: var(--accent-soft); }
.sh-table td { vertical-align: middle; }
.sh-pager { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); }
.people-list { display: flex; flex-direction: column; }
.person { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.person:first-child { border-top: 0; }
.person .who { flex: 1 1 180px; min-width: 0; }
.person select { width: auto; }
.pair-box { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 12px; padding: 14px; border: 1px dashed var(--border-strong); border-radius: var(--r-md); background: var(--bg); }
.pair-code { font: 700 32px/1 var(--font); letter-spacing: .18em; font-variant-numeric: tabular-nums; }
.pair-qr svg, .pair-qr img { display: block; width: 148px; height: 148px; background: #fff; padding: 6px; border-radius: 8px; }
/* Desktop notifications */
.bell-btn { position: relative; }
.bell-dot { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--neg); color: #fff; font: 600 10px/16px var(--font); text-align: center; }
.bell-panel { position: fixed; z-index: 960; width: min(360px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 8px; }
.bell-panel[hidden] { display: none; }

/* ── Phone app (scan.html) ───────────────────────────────────────────────── */
body.m-app { background: var(--bg); min-height: 100vh; padding-bottom: calc(68px + env(safe-area-inset-bottom)); font-family: var(--font); -webkit-tap-highlight-color: transparent; }
.m-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.m-brand { display: flex; align-items: center; gap: 10px; line-height: 1.15; }
.m-brand b { display: block; font-size: 15px; } .m-brand span { font-size: 12px; color: var(--muted); }
.m-logo { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.m-top-actions { display: flex; gap: 4px; }
.m-icon { position: relative; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.m-icon[hidden] { display: none; }
.m-icon:active { background: var(--surface-2); }
.m-badge { position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--neg); color: #fff; font: 600 10px/16px var(--font); }
.m-badge[hidden] { display: none; }
.m-main { padding: 12px 12px 20px; max-width: 640px; margin: 0 auto; }
.m-main .card { padding: 14px; }
.m-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.m-tabs[hidden] { display: none; }
.m-tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; height: 58px; justify-content: center; border: 0; background: none; font: inherit; font-size: 11px; font-weight: 500; color: var(--faint); cursor: pointer; }
.m-tabs button.on { color: var(--accent); }
.m-pair { margin-top: 24px; text-align: center; }
.m-pair h2 { font-size: 20px; margin: 0 0 6px; } .m-pair p { color: var(--text-2); font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.m-pair form { display: flex; gap: 8px; }
.m-pair input { flex: 1; min-width: 0; height: 52px; text-align: center; font: 700 26px var(--font); letter-spacing: .3em; border: 1px solid var(--border-strong); border-radius: var(--r-md); }
.m-pair input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.m-pair .btn { height: 52px; padding: 0 18px; }
.m-pair .pk-err { margin-top: 8px; min-height: 18px; font-size: 13px; }
.m-install { display: flex; gap: 8px; align-items: flex-start; text-align: left; margin-top: 14px; padding: 10px 12px; border-radius: var(--r-md); background: var(--info-soft); color: var(--info); font-size: 13px; line-height: 1.4; }
.m-install svg { flex: none; margin-top: 1px; }
.m-h { display: flex; gap: 8px; margin-bottom: 10px; }
.m-h input { flex: 1; height: 38px; font-size: 16px; }
.m-h .seg button { height: 32px; }
.m-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); font: inherit; color: var(--text); cursor: pointer; }
.m-row:active { background: var(--surface-2); }
.m-row img, .m-row-img { width: 46px; height: 46px; flex: none; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--faint); }
.m-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.m-row-main b { font-size: 13.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-row-main span { font-size: 12px; color: var(--muted); }
.m-row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; font-variant-numeric: tabular-nums; }
.m-sheet { position: fixed; inset: 0; z-index: 100; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom); }
.m-sheet[hidden] { display: none; }
.m-sheet-bar { position: sticky; top: 0; z-index: 2; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: rgba(248,250,252,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.m-sheet-bar .btn { height: 36px; }
.m-sheet-body { padding: 14px 12px 28px; max-width: 640px; margin: 0 auto; }
.m-sheet-body .btn { display: flex; justify-content: center; width: 100%; height: 44px; }
.m-sheet-body .sv-task-ctl .btn, .m-sheet-body .sv-head .btn { width: auto; height: 32px; }
body.m-sheet-open { overflow: hidden; }
.m-note { display: block; padding: 10px 12px; margin-bottom: 6px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 13.5px; line-height: 1.4; }
.m-note.unread { border-left: 3px solid var(--accent); font-weight: 500; }
.m-note span { display: block; font-size: 11.5px; color: var(--faint); margin-top: 2px; font-weight: 400; }
.m-app .ph-meta { padding: 0 2px; }
.m-app .sv-scans { font-size: 12px; }
.m-app .scan-img { width: 80px; height: 80px; }
.m-brand .m-logo { color: #fff; font-size: 16px; font-weight: 700; }
.su-vat { width: 100%; } .su-vat button { flex: 1; }
.m-app .sv-box { background: var(--surface); border: 1px solid var(--border); }
/* Keepa panel in the scanner */
.su-keepa { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.su-keepa:empty { display: none; }
.su-keepa .scan-chips { margin-bottom: 0; }
.su-keepa .scan-chip i { font-style: normal; font-size: 11px; color: var(--faint); }
.su-kp-load { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.su-kp-chart svg { display: block; width: 100%; height: 130px; background: var(--bg); border-radius: var(--r-md); }
.su-kp-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.su-kp-legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }

/* ── AI Repricer ─────────────────────────────────────────────────────────── */
.rp-switch { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; border-left: 4px solid var(--border-strong); }
.rp-switch.on { border-left-color: var(--pos); } .rp-switch.stopped { border-left-color: var(--neg); }
.rp-state { flex: 1; min-width: 260px; }
.rp-ctl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rp-stop { color: var(--neg); border-color: #FCA5A5; } .rp-stop:hover { background: var(--neg-soft); }
.rp-settings { margin-top: 12px; padding: 12px 18px; }
.rp-settings summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.rp-opts { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 12px 0 8px; align-items: flex-end; }
.rp-opts label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
.rp-opts .pk-input { width: 150px; } .rp-opts .pk-input input { width: 100%; }
.rp-opts .rp-excl { flex: 1 1 280px; } .rp-opts .rp-chk { flex-direction: row; align-items: center; gap: 8px; color: var(--text-2); }
.rp-table td { vertical-align: top; }
.rp-table .rp-lim { width: 76px; min-width: 0; text-align: right; }
.rp-table .rp-lim.own { border-color: var(--accent); background: var(--accent-soft); }
.rp-table .rp-strat { width: auto; min-width: 0; }
.rp-why { font-size: 12.5px; color: var(--text-2); max-width: 300px; }
.rp-skip td { opacity: .62; }
.rp-bulk { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.rp-ai-tag { display: inline-block; padding: 0 6px; border-radius: 4px; background: #F3E8FF; color: #7C3AED; font: 700 10.5px/17px var(--font); letter-spacing: .04em; }
.rp-ai-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.rp-ai-sum { margin: 6px 0 4px; font-size: 13px; line-height: 1.5; max-width: 820px; }
.rp-sim { margin-top: 12px; border-left: 4px solid var(--accent); }
.rp-sim-k { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.rp-sim-k > div { background: var(--bg); border-radius: var(--r-md); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.rp-sim-k span { font-size: 11.5px; color: var(--muted); } .rp-sim-k b { font-size: 16px; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .rp-sim-k { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .rp-sim-k { grid-template-columns: 1fr 1fr; } }

/* ── Home ────────────────────────────────────────────────────────────────── */
.hm-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 4px 0 18px; flex-wrap: wrap; }
.hm-date { font-size: 13px; color: var(--muted); }
.hm-hello { font-size: 28px; font-weight: 650; letter-spacing: -0.7px; margin: 2px 0 0; }
.hm-quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.hm-qa { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .12s, box-shadow .12s, transform .12s; }
.hm-qa:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.hm-qa-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.hm-qa b { display: block; font-size: 14px; } .hm-qa small { display: block; font-size: 12px; color: var(--muted); }
.hm-periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.hm-period { display: flex; flex-direction: column; gap: 8px; }
.hm-period-l { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hm-period-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hm-period-row span { display: block; font-size: 12.5px; color: var(--muted); }
.hm-period-row b { display: block; font-size: 28px; font-weight: 650; letter-spacing: -0.8px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.hm-period-sub { font-size: 12.5px; color: var(--text-2); }
.hm-split { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); padding-top: 8px; border-top: 1px solid var(--border); }
.hm-split i { margin-right: 5px; vertical-align: 1px; }
.hm-note { font-size: 12px; color: var(--faint); margin-top: 6px; } .hm-note.warn { color: var(--warn); }
.hm-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.hm-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.hm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.hm-link { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; color: var(--accent); text-decoration: none; font-weight: 500; }
.hm-big { font-size: 26px; font-weight: 650; letter-spacing: -0.6px; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.hm-big small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.hm-dl { margin: 0; display: flex; flex-direction: column; }
.hm-dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 13px; }
.hm-dl dt { color: var(--muted); } .hm-dl dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.hm-alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hm-alerts a { display: flex; gap: 10px; align-items: baseline; padding: 7px 8px; margin: 0 -8px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-size: 13px; line-height: 1.4; }
.hm-alerts a:hover { background: var(--surface-2); }
.hm-mini { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12.5px; }
.hm-mini > div:not(.sv-k) { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.hm-trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.hm-rep-state { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 10px; background: var(--surface-2); border-radius: var(--r-md); margin-bottom: 10px; }
.hm-rep-state.on { background: var(--pos-soft); color: var(--pos); } .hm-rep-state.stopped { background: var(--neg-soft); color: var(--neg); }
.hm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hm-tiles > div { background: var(--bg); border-radius: var(--r-md); padding: 8px 10px; }
.hm-tiles span { display: block; font-size: 11.5px; color: var(--muted); } .hm-tiles b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.hm-tiles small { font-size: 11px; color: var(--faint); }
.hm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hm-table td, .hm-table th { padding: 7px 4px; border-top: 1px solid var(--border); text-align: left; }
.hm-table th { font-size: 11.5px; color: var(--muted); font-weight: 600; border-top: 0; } .hm-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.hm-pad { padding: 8px 0; font-size: 13px; }
.hm-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; margin: 0 -6px; border-radius: var(--r-md); color: var(--text); text-decoration: none; border-top: 1px solid var(--border); }
.hm-row:hover { background: var(--surface-2); }
.hm-row img, .hm-row-img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; border: 1px solid var(--border); background: #fff; flex: none; display: flex; align-items: center; justify-content: center; color: var(--faint); }
.hm-row-main { flex: 1; min-width: 0; } .hm-row-main b { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-row-main small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-variant-numeric: tabular-nums; font-size: 13px; }
@media (max-width: 1200px) { .hm-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hm-grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .hm-periods, .hm-grid3, .hm-grid2 { grid-template-columns: 1fr; } .hm-quick { grid-template-columns: 1fr 1fr; } .hm-tiles { grid-template-columns: 1fr 1fr; } .hm-hello { font-size: 23px; } }
.rp-table td.num, .rp-table .cell-sub { white-space: nowrap; }
.rp-table .rp-why { min-width: 240px; }
.rp-table .cell-title { max-width: 260px; }
.hm-hero { margin-top: 10px; }
@media (max-width: 860px) { .hm-periods, .hm-grid3, .hm-grid2 { grid-template-columns: minmax(0, 1fr); } .hm-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hm-grid2 > .card, .hm-grid3 > .card, .hm-periods > .card { min-width: 0; }
/* Repricer: market intelligence */
.rp-modal { position: fixed; inset: 0; z-index: 970; background: rgba(15,23,42,.45); display: flex; justify-content: center; align-items: flex-start; padding: 32px 16px; overflow-y: auto; }
.rp-modal[hidden] { display: none; }
.rp-modal-card { width: min(1100px, 100%); }
.rp-modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.rp-src { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.rp-src.ext { color: #B45309; background: var(--warn-soft); padding: 1px 6px; border-radius: 4px; margin: 0 0 0 6px; text-transform: none; letter-spacing: 0; }
.rp-best td { background: var(--pos-soft); }
.rp-dec { border-left: 3px solid var(--accent); padding: 8px 12px; margin-bottom: 10px; background: var(--bg); border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 13px; line-height: 1.5; }
.rp-dec-h { margin-bottom: 4px; }
.rp-k { display: inline-block; min-width: 72px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.rp-note { font-size: 13px; padding: 6px 0; border-top: 1px solid var(--border); }
.rp-stat-tag { background: var(--info-soft); color: var(--info); }
a.cell-title { color: var(--text); text-decoration: none; display: block; } a.cell-title:hover { color: var(--accent); text-decoration: underline; }
/* ── QuidOwl vs Seller Snap ──────────────────────────────────────────────── */
.pl-intro p { font-size: 13.5px; line-height: 1.55; color: var(--text-2); margin: 8px 0 12px; max-width: 900px; }
.pl-rules { font-size: 12.5px; color: var(--text-2); background: var(--bg); border-radius: var(--r-md); padding: 10px 12px; margin-bottom: 12px; line-height: 1.5; }
.pl-draw { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 6px; }
.pl-draw label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); } .pl-draw input { width: 300px; }
.pl-elig { max-height: 340px; overflow-y: auto; font-size: 12.5px; }
.pl-elig > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; padding: 5px 0; border-top: 1px solid var(--border); }
.pl-status { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border-left: 4px solid var(--border-strong); }
.pl-status.pl-live { border-left-color: var(--pos); } .pl-status.pl-paused { border-left-color: #F59E0B; } .pl-status.pl-selected { border-left-color: var(--accent); }
.pl-days { display: flex; gap: 6px; } .pl-days span { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: 12px; color: var(--muted); }
.pl-days span.done { background: var(--pos-soft); color: var(--pos); font-weight: 600; }
.pl-steps { margin: 8px 0 12px 18px; padding: 0; font-size: 13px; line-height: 1.6; color: var(--text-2); }
.pl-go { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.pl-checks { font-size: 11.5px; } .pl-checks span { display: inline-block; margin: 1px 6px 1px 0; white-space: nowrap; }
.pl-checks .ok { color: var(--pos); } .pl-checks .bad { color: var(--neg); font-weight: 600; }
.pl-st { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.pl-st-ready { background: var(--info-soft); color: var(--info); } .pl-st-live { background: var(--pos-soft); color: var(--pos); }
.pl-st-paused { background: var(--warn-soft); color: var(--warn); } .pl-st-reverted { background: var(--neg-soft); color: var(--neg); }
.pl-cps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pl-cp { opacity: .75; } .pl-cp.done { opacity: 1; border-top: 3px solid var(--pos); }
.pl-cp-h { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
@media (max-width: 1000px) { .pl-cps { grid-template-columns: 1fr; } }
/* ── Featured Offer health ───────────────────────────────────────────────── */
.fo-legend { font-size: 12px; color: var(--muted); margin: -6px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.src-tag { display: inline-block; padding: 0 5px; border-radius: 4px; font: 700 9.5px/16px var(--font); letter-spacing: .05em; vertical-align: 1px; }
.src-amz { background: #FFF7ED; color: #C2410C; } .src-calc { background: var(--info-soft); color: var(--info); } .src-pred { background: #F3E8FF; color: #7C3AED; }
.fo-table th .src-tag { display: block; width: fit-content; margin: 2px 0 0 auto; } .fo-table th:first-child .src-tag { margin-left: 0; }
.fo-table td { vertical-align: top; }
.fo-warn { font-size: 12px; max-width: 280px; color: var(--text-2); } .fo-warn div { margin-bottom: 3px; }
.fo-act { display: inline-block; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.fo-raise { background: var(--pos-soft); color: var(--pos); } .fo-undercut { background: var(--neg-soft); color: var(--neg); } .fo-lower { background: var(--warn-soft); color: var(--warn); }
.pl-tier { display: inline-block; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.pl-tier-fast { background: var(--pos-soft); color: var(--pos); } .pl-tier-medium { background: var(--info-soft); color: var(--info); } .pl-tier-slow { background: var(--surface-2); color: var(--muted); }
.pl-elig > div { grid-template-columns: minmax(0, 1fr) auto auto !important; }

/* ── Public homepage (landing.html) ──────────────────────────────────────── */
body.lp { background: var(--surface); display: block; }
.lp-skip { position: absolute; left: -9999px; } .lp-skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.lp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.lp-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.lp-nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.lp-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.lp-brand .sb-name span { max-width: none; }
.lp-links { display: flex; gap: 4px; margin: 0 auto; }
.lp-links a { padding: 8px 12px; border-radius: var(--r-md); color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.lp-links a:hover { background: var(--surface-2); color: var(--text); }
.lp-nav-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lp-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--text-2); cursor: pointer; align-items: center; justify-content: center; }
.lp-mobile { display: flex; flex-direction: column; padding: 8px 24px 16px; border-top: 1px solid var(--border); background: var(--surface); }
.lp-mobile[hidden] { display: none; }
.lp-mobile a { padding: 10px 0; color: var(--text); text-decoration: none; font-weight: 500; } .lp-mobile .btn { margin-top: 8px; justify-content: center; color: #fff; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.lp-hero { background: linear-gradient(180deg, var(--bg), var(--surface)); border-bottom: 1px solid var(--border); }
.lp-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.lp-hero h1 { font-size: 46px; line-height: 1.08; letter-spacing: -1.4px; font-weight: 700; margin: 0 0 16px; }
.lp-hero p { font-size: 17px; line-height: 1.6; color: var(--text-2); margin: 0 0 10px; }
.lp-hero .lp-sub { font-size: 15px; color: var(--muted); }
.lp-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 18px; }
.lp-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.lp-pills li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; }
.lp-pills svg { color: var(--accent); }
.lp-shot { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: 0 24px 48px -24px rgba(15,23,42,.25), var(--shadow-sm); overflow: hidden; }
.lp-shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.lp-shot-bar > span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); } .lp-shot-bar b { margin-left: 8px; font-weight: 600; color: var(--text-2); }
.lp-demo { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; color: var(--warn); background: var(--warn-soft); padding: 1px 8px; border-radius: 999px; }
.lp-shot-body { display: flex; min-height: 320px; }
.lp-shot-side { width: 52px; border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 12px 0; color: var(--faint); }
.lp-shot-side .sb-logo { width: 26px; height: 26px; font-size: 13px; }
.lp-shot-main { flex: 1; padding: 16px; background: var(--bg); min-width: 0; }
.lp-shot-h { font-weight: 650; font-size: 17px; margin-bottom: 12px; }
.lp-shot-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.lp-shot-kpis .card, .lp-shot-row .card { padding: 12px; }
.lp-shot-kpis span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.lp-shot-kpis b { display: block; font-size: 21px; letter-spacing: -0.5px; margin: 2px 0; } .lp-shot-kpis em { font-style: normal; font-size: 12px; font-weight: 600; }
.lp-shot-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; }
.lp-shot-t { font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.lp-bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; } .lp-bars i { flex: 1; background: var(--accent); opacity: .8; border-radius: 3px 3px 0 0; }
.lp-al { display: flex; gap: 8px; align-items: baseline; font-size: 12px; padding: 4px 0; color: var(--text-2); }
.lp-sec { padding: 80px 0; } .lp-alt { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.lp-head h2, .lp-split h2 { font-size: 34px; line-height: 1.15; letter-spacing: -0.9px; font-weight: 700; margin: 0 0 12px; }
.lp-head p, .lp-lead { font-size: 16px; line-height: 1.6; color: var(--text-2); margin: 0; }
.lp-note { font-size: 12px; color: var(--faint); line-height: 1.5; margin: 12px 0 0; }
.lp-centre { text-align: center; margin-top: 28px; }
.lp-replace { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lp-replace .card { padding: 14px 16px; } .lp-replace b { display: block; font-size: 14px; } .lp-replace span { font-size: 12.5px; color: var(--muted); }
#features > .lp-wrap > .lp-note { text-align: center; margin-bottom: 28px; }
.lp-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-f { display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.lp-f:hover, .lp-b:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.lp-f h3, .lp-b h3 { font-size: 15px; font-weight: 600; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lp-f p, .lp-b p { font-size: 13.5px; line-height: 1.55; color: var(--text-2); margin: 0; } .lp-f em { color: var(--muted); }
.lp-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.lp-live, .lp-dev { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.lp-live { background: var(--pos-soft); color: var(--pos); } .lp-dev { background: var(--warn-soft); color: var(--warn); }
.lp-pm { max-width: 860px; margin: 0 auto 16px; border-top: 3px solid var(--accent); }
.lp-tag { font-size: 11.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.lp-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); }
.lp-flow span { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; } .lp-flow svg { color: var(--faint); }
.lp-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.lp-team .role-job { font-size: 13px; color: var(--text-2); }
.lp-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp-h3 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.lp-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 14px; color: var(--text-2); }
.lp-ticks li { padding-left: 24px; position: relative; } .lp-ticks li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--pos); border-bottom: 2px solid var(--pos); transform: rotate(-45deg); }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; position: relative; }
.lp-steps::before { content: ''; position: absolute; left: 7%; right: 7%; top: 22px; height: 2px; background: var(--border); }
.lp-steps li { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lp-step-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; position: relative; }
.lp-steps b { font-size: 14px; } .lp-steps p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.45; }
.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.lp-split .lp-ticks { margin-top: 18px; }
.lp-mini { margin: 0; } .lp-mini-h { display: flex; align-items: center; margin-bottom: 8px; } .lp-why { font-size: 12px; color: var(--text-2); }
.lp-mini-f { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 10px; }
.lp-mp { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.lp-mp-c { display: flex; align-items: center; gap: 10px; padding: 12px 18px; } .lp-mp-c .chan-mark { width: 10px; height: 10px; } .lp-mp-soon { border-style: dashed; color: var(--muted); }
.lp-small .card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; } .lp-small svg { color: var(--accent); } .lp-small b { font-size: 14px; } .lp-small p { font-size: 12.5px; color: var(--muted); margin: 0; }
.lp-acc dd { text-align: right; }
.lp-b { display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, box-shadow .15s, transform .15s; } .lp-b > svg { color: var(--accent); }
.lp-final { padding: 72px 0; background: var(--bg); border-top: 1px solid var(--border); }
.lp-final-in { text-align: center; padding: 48px 24px; max-width: 900px; border-top: 3px solid var(--accent); }
.lp-final-in h2 { font-size: 32px; letter-spacing: -0.8px; margin: 0 0 10px; } .lp-final-in p { color: var(--text-2); font-size: 16px; margin: 0; } .lp-final-in .lp-cta { justify-content: center; margin-bottom: 0; }
.lp-foot { border-top: 1px solid var(--border); padding: 48px 0 24px; background: var(--surface); }
.lp-foot-in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.lp-foot-brand { max-width: 380px; } .lp-foot-brand p { font-size: 13.5px; color: var(--text-2); line-height: 1.55; margin: 12px 0 14px; }
.lp-foot-links { display: flex; gap: 56px; } .lp-foot-links div { display: flex; flex-direction: column; gap: 8px; }
.lp-foot-links b { font-size: 13px; } .lp-foot-links a { font-size: 13.5px; color: var(--text-2); text-decoration: none; } .lp-foot-links a:hover { color: var(--accent); }
.lp-legal { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--faint); line-height: 1.5; }
.lp-doc { max-width: 760px; margin: 0 auto; padding: 56px 24px; font-size: 15px; line-height: 1.65; color: var(--text-2); } .lp-doc h1 { color: var(--text); letter-spacing: -0.6px; }
@media (max-width: 1100px) { .lp-links { display: none; } .lp-burger { display: inline-flex; } .lp-grid4, .lp-replace { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .lp-hero-in, .lp-split, .lp-twocol { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .lp-hero h1 { font-size: 34px; letter-spacing: -0.9px; } .lp-head h2, .lp-split h2 { font-size: 27px; }
  .lp-team, .lp-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-steps { grid-template-columns: minmax(0, 1fr); gap: 0; } .lp-steps::before { left: 22px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .lp-steps li { flex-direction: row; text-align: left; align-items: flex-start; gap: 14px; padding: 8px 0; flex-wrap: wrap; } .lp-steps li > b { padding-top: 12px; min-width: 70px; } .lp-steps li > p { padding-top: 13px; flex: 1; }
  .lp-sec { padding: 56px 0; }
}
@media (max-width: 600px) {
  .lp-wrap { padding: 0 16px; } .lp-nav-r .btn { height: 36px; } .lp-brand .sb-name span { display: none; }
  .lp-grid4, .lp-replace, .lp-team, .lp-grid3 { grid-template-columns: minmax(0, 1fr); }
  .lp-shot-kpis { grid-template-columns: minmax(0, 1fr); } .lp-shot-row { grid-template-columns: minmax(0, 1fr); } .lp-shot-side { display: none; }
  .lp-foot-links { gap: 32px; } .lp-hero-in { padding-top: 40px; padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) { .lp-f, .lp-b { transition: none; } }

/* ── Logo ────────────────────────────────────────────────────────────────── */
.brand-logo { display: block; height: 40px; width: auto; }
.lp-foot .brand-logo { height: 36px; }
.sb-brand .sb-logo-full { height: 32px; width: auto; display: block; margin-right: auto; }
.sb-brand .sb-logo-mark { display: none; height: 30px; width: auto; }
body.sb-collapsed .sb-brand .sb-logo-full { display: none; } body.sb-collapsed .sb-brand .sb-logo-mark { display: block; }
.login-logo img { height: 80px; width: auto; display: block; margin: 0 auto 6px; }
.mobile-bar img { height: 24px; width: auto; display: block; }
.m-brand img { height: 24px; width: auto; display: block; }
.m-brand .m-who { font-size: 12px; color: var(--muted); padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--border); }
.m-brand { align-items: center; }


/* ── Homepage: logo sizes ────────────────────────────────────────────────── */
.lp-nav .brand-logo { height: 40px; width: auto; }
.lp-foot .brand-logo { width: 200px; height: auto; }

/* ── Homepage: hero tagline ──────────────────────────────────────────────── */
.lp-hero h1 { text-transform: none; }
.lp-hero .lp-tagline { font-size: 18px; font-weight: 600; color: var(--accent); letter-spacing: -0.2px; margin: 0 0 14px; line-height: 1.45; }

/* ── Feature cards (rendered from FEATURES) ─────────────────────────────── */
.lp-fx { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-fc { display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.lp-fc:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.lp-fc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lp-fc h3 { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: -0.2px; }
.lp-fc p { font-size: 13.5px; line-height: 1.55; color: var(--text-2); margin: 0; }
.lp-fc .btn { margin-top: auto; align-self: flex-start; }
.lp-soon { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; white-space: nowrap; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.lp-sub-h { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 40px 0 12px; }

/* ── Ecosystem ───────────────────────────────────────────────────────────── */
.lp-eco { max-width: 1120px; margin: 0 auto; }
.lp-eco-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; position: relative; }
.lp-eco-steps::before { content: ''; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px; background: var(--accent-ring); }
.lp-eco-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 0 0 4px; background: none; border: 0; font: inherit; color: var(--text); cursor: pointer; border-radius: var(--r-md); width: 100%; }
.lp-eco-step .lp-step-ic { width: 54px; height: 54px; transition: background .15s, color .15s, transform .15s; }
.lp-eco-step:hover .lp-step-ic, .lp-eco-step:focus-visible .lp-step-ic { background: var(--accent); color: #fff; transform: translateY(-2px); }
.lp-eco-step:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 4px; }
.lp-eco-step b { font-size: 12.5px; letter-spacing: .08em; }
.lp-eco-step small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.lp-eco-data { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 14px; border: 1px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--surface); }
.lp-eco-data > span:first-child { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
.lp-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px; }
.lp-chip svg { color: var(--accent); }
.lp-eco-ai { margin-top: 12px; width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--accent-ring); background: linear-gradient(90deg, var(--accent-soft), var(--surface)); font: inherit; color: var(--text); cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.lp-eco-ai:hover, .lp-eco-ai:focus-visible { border-color: var(--accent); box-shadow: var(--shadow-md); outline: 0; }
.lp-eco-ai .lp-ic { flex: none; background: var(--accent); color: #fff; }
.lp-eco-ai b { display: block; font-size: 15px; } .lp-eco-ai span { font-size: 13.5px; color: var(--text-2); }
.lp-eco-ai em { margin-left: auto; font-style: normal; font-weight: 600; font-size: 13px; color: var(--accent); white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.lp-principle { text-align: center; margin: 28px auto 0; font-size: 22px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.3; }
.lp-principle span { color: var(--accent); }

/* ── Automation ──────────────────────────────────────────────────────────── */
.lp-auto { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lp-auto .card { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.lp-auto .card > svg { color: var(--accent); }
.lp-auto b { font-size: 14.5px; } .lp-auto p { font-size: 13px; line-height: 1.5; color: var(--text-2); margin: 0; }
.lp-mode { align-self: flex-start; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; }
.lp-mode.auto { background: var(--pos-soft); color: var(--pos); } .lp-mode.ai { background: var(--accent-soft); color: var(--accent); } .lp-mode.you { background: var(--warn-soft); color: var(--warn); }
.lp-legend { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 16px; font-size: 12.5px; color: var(--text-2); }
.lp-legend span { display: inline-flex; gap: 6px; align-items: center; }

/* ── Feature modal ───────────────────────────────────────────────────────── */
body.lp-noscroll { overflow: hidden; }
.lp-modal { position: fixed; inset: 0; z-index: 200; background: rgba(15,23,42,.45); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; opacity: 0; transition: opacity .18s ease; }
.lp-modal[hidden] { display: none; }
.lp-modal.is-open { opacity: 1; }
.lp-modal-card { position: relative; width: min(760px, 100%); padding: 0; overflow: hidden; transform: translateY(10px); transition: transform .18s ease; }
.lp-modal.is-open .lp-modal-card { transform: none; }
.lp-modal-x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.lp-modal-x:hover { background: var(--surface-2); color: var(--text); }
.lp-m-top { padding: 24px 24px 18px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--accent-soft), var(--surface)); }
.lp-m-head { display: flex; gap: 14px; align-items: flex-start; padding-right: 40px; }
.lp-m-head .lp-ic { width: 44px; height: 44px; border-radius: 12px; flex: none; background: var(--surface); box-shadow: var(--shadow-sm); }
.lp-m-head h3 { margin: 0; font-size: 20px; letter-spacing: -0.4px; }
.lp-m-hl { font-size: 15px; font-weight: 600; color: var(--accent); margin: 2px 0 8px; }
.lp-m-body { padding: 6px 24px 8px; }
.lp-m-sec { padding: 14px 0; border-bottom: 1px solid var(--border); } .lp-m-sec:last-child { border-bottom: 0; }
.lp-m-k { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.lp-m-k i { font-style: normal; width: 20px; height: 20px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.lp-m-p { font-size: 14.5px; color: var(--text-2); line-height: 1.6; margin: 0; }
.lp-m-p b { color: var(--text); font-weight: 600; }
.lp-m-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; counter-reset: s; }
.lp-m-steps li { counter-increment: s; position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); padding: 34px 10px 10px; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.lp-m-steps li::before { content: counter(s); position: absolute; left: 10px; top: 9px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.lp-m-steps li b { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }
.lp-m-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; padding: 12px; border-radius: var(--r-md); background: var(--bg); border: 1px dashed var(--border-strong); }
.lp-m-flow .lp-chip { background: var(--surface); font-size: 12.5px; padding: 3px 10px; }
.lp-m-flow .lp-grp { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: var(--accent-soft); }
.lp-m-flow .lp-plus { color: var(--accent); font-weight: 700; font-size: 12px; }
.lp-m-flow .lp-arr { color: var(--faint); display: inline-flex; }
.lp-m-flow .lp-res { background: var(--accent); color: #fff; border-color: var(--accent); }
.lp-m-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-m-link { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 10px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); font: inherit; color: var(--text); cursor: pointer; transition: border-color .12s, background .12s; }
.lp-m-link:hover, .lp-m-link:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: 0; }
.lp-m-link .lp-ic { width: 30px; height: 30px; border-radius: 8px; flex: none; } .lp-m-link b { display: block; font-size: 13px; } .lp-m-link small { display: block; font-size: 12px; color: var(--text-2); line-height: 1.4; margin-top: 2px; }
.lp-m-ai { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lp-m-ai > div { border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 12px; }
.lp-m-ai .lp-mode { margin-bottom: 6px; display: inline-block; }
.lp-m-ai ul { margin: 0; padding-left: 16px; font-size: 12.5px; color: var(--text-2); line-height: 1.5; display: grid; gap: 3px; }
.lp-m-ben { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.lp-m-status { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lp-m-status li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 13.5px; color: var(--text-2); padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.lp-m-status li:last-child { border-bottom: 0; padding-bottom: 0; }
.lp-m-team { display: grid; gap: 8px; }
.lp-m-pm { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--accent); color: #fff; font-size: 13.5px; } .lp-m-pm small { opacity: .85; }
.lp-m-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.lp-m-roles span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text-2); } .lp-m-roles svg { color: var(--accent); flex: none; }
.lp-m-foot { display: flex; gap: 8px; align-items: center; padding: 14px 24px; border-top: 1px solid var(--border); background: var(--bg); flex-wrap: wrap; }
.lp-m-foot .lp-m-nav { margin-left: auto; display: flex; gap: 6px; }

@media (max-width: 1100px) { .lp-fx, .lp-auto { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .lp-eco-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; } .lp-eco-steps::before { display: none; }
  .lp-m-steps { grid-template-columns: minmax(0, 1fr) !important; } .lp-m-steps li { padding: 10px 10px 10px 40px; } .lp-m-steps li::before { top: 10px; }
  .lp-m-ai { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .lp-nav .brand-logo { height: 34px; width: auto; } .lp-foot .brand-logo { width: 180px; }
  .lp-hero .lp-tagline { font-size: 16px; }
  .lp-fx, .lp-auto, .lp-m-links, .lp-m-ben { grid-template-columns: minmax(0, 1fr); }
  .lp-eco-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-eco-ai { flex-wrap: wrap; } .lp-eco-ai em { margin-left: 0; }
  .lp-principle { font-size: 18px; }
  .lp-modal { padding: 0; display: block; }
  .lp-modal-card { width: 100%; min-height: 100%; border-radius: 0; border: 0; overflow: visible; transform: translateY(24px); }
  .lp-hide-s, #lp-m-count { display: none; }
  .lp-m-top { padding: 18px 16px 14px; } .lp-m-body { padding: 4px 16px 8px; } .lp-m-foot { padding: 12px 16px; position: sticky; bottom: 0; }
  .lp-m-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .lp-modal, .lp-modal-card, .lp-fc, .lp-eco-step .lp-step-ic { transition: none; } }

/* Hero: calmer headline + feature buttons */
.lp-hero h1 { font-size: 42px; letter-spacing: -1.1px; }
.lp-hero-mods { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.lp-hero-mods-k { width: 100%; font-size: 13px; font-weight: 600; color: var(--muted); }
.lp-hm { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 1px solid var(--accent-ring); border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.lp-hm:hover, .lp-hm:focus-visible { background: var(--accent); color: #fff; transform: translateY(-1px); outline: 0; }
@media (max-width: 900px) { .lp-hero h1 { font-size: 31px; letter-spacing: -0.8px; } }
@media (prefers-reduced-motion: reduce) { .lp-hm { transition: none; } }

/* Compact 3-screen homepage */
.lp-tight { padding: 56px 0; }
.lp-tight .lp-head { margin-bottom: 24px; }
.lp-fx { gap: 12px; }
.lp-fc { gap: 6px; padding: 16px; }
.lp-fc .lp-fc-top { margin-bottom: 2px; }
.lp-fc p { font-size: 13px; line-height: 1.5; }
.lp-fc .btn { margin-top: 6px; }
.lp-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.lp-modes > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 14px; }
.lp-modes p { margin: 6px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.lp-cta-c { justify-content: center; margin: 24px 0 0; }
.lp-foot { padding: 28px 0 18px; }
.lp-legal { margin-top: 18px; }
@media (max-width: 700px) { .lp-modes { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .lp-shot, .lp-pills { display: none; }
  .lp-hero .lp-cta { margin-bottom: 0; }
  .lp-fc { flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; }
  .lp-fc .lp-fc-top { margin: 0; } .lp-fc .lp-fc-top > span:not(.lp-ic) { display: none; }
  .lp-fc .lp-ic { width: 34px; height: 34px; flex: none; }
  .lp-fc h3 { flex: 1; font-size: 14px; } .lp-fc p { display: none; }
  .lp-fc .btn { margin: 0; flex: none; padding: 0 10px; font-size: 12.5px; }
  .lp-fx { gap: 8px; }
  .lp-eco-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 12px; }
  .lp-eco-step .lp-step-ic { width: 42px; height: 42px; } .lp-eco-step b { font-size: 10.5px; letter-spacing: .04em; } .lp-eco-step small { display: none; }
  .lp-tight { padding: 36px 0; }
}
.lp-show-s { display: none; }
@media (max-width: 600px) { .lp-show-s { display: inline; } .lp-fc .lp-hide-s { display: none; } }
.lp-fx .lp-fc { margin: 0; }
@media (max-width: 600px) { .lp-fc .btn { align-self: center; } }

/* Home: sales chart + top products (merged from Overview) */
.hm-sales { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.hm-sales .card-chart .chart-wrap { height: 240px; }
@media (max-width: 1100px) { .hm-sales { grid-template-columns: minmax(0, 1fr); } }

/* Home: both marketplaces */
.hm-ch { margin: 4px 0 6px; } .hm-ch td a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; } .hm-ch td a:hover { color: var(--accent); }
.hm-ch .chan-mark, .hm-pay-ch .chan-mark, .hm-alerts .chan-mark, #hm-warn .chan-mark { width: 8px; height: 8px; margin-right: 6px; display: inline-block; flex: none; }
.hm-pay-ch { margin-top: 8px; } .hm-pay-ch .sv-k { display: flex; align-items: center; }
.hm-alerts .chan-mark { margin: 0 2px 0 -2px; }
.hm-tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 0 5px; border-radius: 4px; margin-right: 2px; }
.hm-tag.amazon { color: var(--chan-amazon); background: color-mix(in srgb, var(--chan-amazon) 12%, transparent); } .hm-tag.ebay { color: var(--chan-ebay); background: color-mix(in srgb, var(--chan-ebay) 12%, transparent); }

/* Amazon dashboard: monthly gross / charges / net */
.amz-month { margin-top: 16px; }
.amz-month-t th .th-sub { display: block; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--faint); font-size: 11px; }
.amz-month-t td.num { white-space: nowrap; }

/* Homepage hero v2: copy on top, full-width dashboard banner */
.lp-hero2 .lp-wrap { padding-top: 44px; padding-bottom: 48px; }
.lp-hero-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 28px; }
.lp-hero2 h1 { font-size: 40px; }
.lp-hero2 .lp-hero-mods { margin-top: 12px; } .lp-hero2 .lp-cta { margin: 16px 0 0; }
.lp-banner { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(15,23,42,.30), var(--shadow-sm); }
.lp-bn-body { background: var(--bg); padding: 16px; display: grid; gap: 14px; }
.lp-bn-row1 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; }
.lp-bn-row2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lp-banner .card { padding: 16px; margin: 0; }
.lp-bn-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.lp-bn-t { font-size: 14px; font-weight: 600; }
.lp-bn-big { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; margin-top: 2px; }
.lp-bn-sub { font-size: 12px; color: var(--muted); }
.lp-bn-seg { display: inline-flex; background: var(--surface-2); border-radius: 8px; padding: 3px; font-size: 12px; color: var(--muted); }
.lp-bn-seg span { padding: 4px 9px; border-radius: 6px; } .lp-bn-seg .on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }
.lp-bn-leg { display: flex; gap: 14px; justify-content: flex-end; font-size: 12px; color: var(--text-2); margin: 6px 0; }
.lp-bn-leg span, .lp-bn-l span { display: inline-flex; align-items: center; gap: 6px; }
.lp-bn-vs th .chan-mark { display: inline-block; margin-right: 5px; vertical-align: 1px; }
.lp-banner .chan-mark { width: 8px; height: 8px; }
.lp-bn-bars { height: 170px; display: flex; align-items: flex-end; gap: 5px; border-bottom: 1px solid var(--border); padding-top: 8px; }
.lp-bn-bars i { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.lp-bn-bars s { display: block; background: var(--chan-amazon); border-radius: 0 0 2px 2px; } .lp-bn-bars b { display: block; background: var(--chan-ebay); border-radius: 2px 2px 0 0; }
.lp-bn-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 6px; }
.lp-bn-vs table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.lp-bn-vs th { font-size: 12px; font-weight: 500; color: var(--muted); text-align: right; padding: 4px 0 8px 10px; white-space: nowrap; text-transform: none; letter-spacing: 0; }
.lp-bn-vs td { text-align: right; padding: 7px 0; border-top: 1px solid var(--border); color: var(--text-2); } .lp-bn-vs td:first-child { text-align: left; } .lp-bn-vs td b { color: var(--text); }
.lp-bn-share { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 10px 0 6px; }
.lp-banner .split { height: 6px; }
.lp-bn-l { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); padding: 7px 0; border-top: 1px solid var(--border); } .lp-bn-l:first-of-type { margin-top: 10px; }
.lp-bn-al { font-size: 13px; color: var(--text-2); padding: 5px 0; display: flex; align-items: baseline; gap: 6px; } .lp-bn-al:first-of-type { margin-top: 8px; }
@media (max-width: 1000px) { .lp-hero-top { grid-template-columns: minmax(0, 1fr); gap: 8px; } .lp-bn-row1 { grid-template-columns: minmax(0, 1fr); } .lp-bn-row2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .lp-bn-row2 > :last-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { .lp-hero2 h1 { font-size: 31px; } }
@media (max-width: 600px) { .lp-banner { display: none; } .lp-hero2 .lp-wrap { padding-top: 32px; padding-bottom: 32px; } }
/* Hero: one centred column above the banner */
.lp-hero-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; max-width: 920px; margin: 0 auto 32px; }
.lp-hero-top > div { display: contents; }
.lp-hero2 h1 { max-width: 900px; margin: 0 auto 12px; }
.lp-hero2 .lp-tagline { margin: 0 0 14px; }
.lp-hero2 .lp-hero-top p:not(.lp-tagline) { max-width: 760px; margin: 0 auto; }
.lp-hero2 .lp-hero-mods { justify-content: center; margin-top: 20px; }
.lp-hero2 .lp-hero-mods-k { text-align: center; }
.lp-hero2 .lp-cta { justify-content: center; margin-top: 18px; }
@media (max-width: 1000px) { .lp-hero-top { gap: 0; } }

/* Hero compressed so the banner shows on the first screen */
.lp-hero2 .lp-wrap { padding-top: 26px; padding-bottom: 36px; }
.lp-hero-top { margin-bottom: 20px; }
.lp-hero2 .lp-eyebrow { margin-bottom: 10px; }
.lp-hero2 h1 { font-size: 34px; line-height: 1.12; letter-spacing: -0.9px; margin-bottom: 8px; }
.lp-hero2 .lp-tagline { font-size: 16px; margin-bottom: 8px; }
.lp-hero2 .lp-hero-top p:not(.lp-tagline) { font-size: 15px; line-height: 1.55; max-width: 720px; }
.lp-hero2 .lp-hero-mods { margin-top: 12px; gap: 6px; }
.lp-hero2 .lp-hero-mods-k { font-size: 12.5px; }
.lp-hero2 .lp-hm { height: 34px; font-size: 13.5px; padding: 0 12px; }
.lp-banner { max-width: 1080px; margin: 0 auto; }
.lp-bn-body { padding: 12px; gap: 10px; }
.lp-banner .card { padding: 13px 14px; }
.lp-bn-bars { height: 130px; gap: 4px; }
.lp-bn-big { font-size: 19px; }
.lp-bn-vs table { font-size: 12.5px; } .lp-bn-vs td { padding: 5px 0; }
.lp-bn-l, .lp-bn-al { font-size: 12.5px; } .lp-bn-l { padding: 5px 0; }
.lp-banner .lp-shot-bar { padding: 7px 12px; }
@media (max-width: 900px) { .lp-hero2 h1 { font-size: 28px; } }

/* Register page */
.lp-reg { padding-top: 40px; padding-bottom: 56px; }
.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 980px; margin: 0 auto; }
.lp-plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.lp-plan h3 { margin: 0; font-size: 18px; } .lp-price { font-size: 15px; font-weight: 600; color: var(--muted); } .lp-plan-for { margin: 0; font-size: 13.5px; color: var(--text-2); }
.lp-plan .lp-ticks { font-size: 13.5px; margin: 6px 0 10px; } .lp-plan .btn { margin-top: auto; justify-content: center; }
.lp-plan-main { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-md); }
.lp-plan-tag { position: absolute; top: -11px; left: 22px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
@media (max-width: 800px) { .lp-plans { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .lp-nav-r .btn:not(.btn-primary) { padding: 0 10px; } }

/* QuidOwl header lock-up: owl + name image + tagline as real text (readable at header size) */
.qo-lock { display: inline-flex; align-items: center; gap: 8px; }
.qo-mark { width: 46px; height: 46px; display: block; flex: none; }
.qo-words { display: flex; flex-direction: column; gap: 4px; width: 150px; }
.qo-text { width: 150px; height: 32px; display: block; }
.qo-tag { font-family: Inter, system-ui, sans-serif; font-size: 8.6px; font-weight: 600; line-height: 1; letter-spacing: 0.1em; color: #3B4D71; white-space: nowrap; }
@media (max-width: 600px) { .qo-mark { width: 38px; height: 38px; } .qo-words { width: 122px; gap: 3px; } .qo-text { width: 122px; height: 26px; } .qo-tag { font-size: 7px; } }

/* ── Arbitrage / FBA shipments ─────────────────────────────────────────── */
.arb-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.arb-steps li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); font-size: 12.5px; font-weight: 500; color: var(--muted); min-width: 0; }
.arb-steps li small { display: block; font-size: 10.5px; font-weight: 500; color: var(--faint); }
.arb-steps li.done { color: var(--pos); border-color: #A7F3D0; background: var(--pos-soft); }
.arb-steps li.now { color: var(--text, #14213D); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.arb-steps li.later { opacity: .75; }
.arb-dot { display: grid; place-items: center; flex: none; }
.arb-title input { font: inherit; letter-spacing: inherit; border: 1px solid transparent; border-radius: 8px; padding: 0 6px; margin-left: -7px; background: transparent; color: inherit; width: min(520px, 70vw); }
.arb-title input:hover, .arb-title input:focus { border-color: var(--border); background: var(--surface); outline: none; }
.ph-crumb a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.ph-crumb a:hover { color: var(--accent); }
.arb-bar { margin-bottom: 16px; display: flex; flex-direction: column; gap: 14px; }
.arb-fields { display: grid; grid-template-columns: 1.6fr 1fr auto .7fr 1fr 1.1fr; gap: 12px; align-items: end; }
.arb-fields select { border: 0; background: transparent; font: inherit; width: 100%; outline: none; color: inherit; }
.arb-scanrow { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.arb-scanrow form { flex: 1 1 320px; display: flex; gap: 8px; }
.arb-scanrow form input { flex: 1; min-width: 0; height: 44px; font-size: 16px; padding: 0 14px; border: 1.5px solid var(--accent); border-radius: 10px; background: var(--surface); color: inherit; }
.arb-scanrow form input:focus { outline: 3px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.arb-scanrow form .btn, .arb-cam { height: 44px; }
.arb-note { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.arb-note.ok { color: var(--pos); }
.arb-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-top: 8px; }
.arb-choice { display: flex; gap: 10px; align-items: center; text-align: left; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
.arb-choice:hover { border-color: var(--accent); }
.arb-choice img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.arb-choice small { display: block; color: var(--muted); }
.arb-table td { vertical-align: middle; }
.arb-prod { display: flex; gap: 10px; align-items: center; min-width: 240px; max-width: 380px; }
.arb-prod img, .arb-noimg { width: 42px; height: 42px; object-fit: contain; flex: none; border-radius: 6px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; color: var(--faint); }
.arb-ptitle { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.arb-why { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arb-in { font: inherit; border: 1px solid var(--border); border-radius: 7px; padding: 5px 7px; background: var(--surface); color: inherit; width: 100%; min-width: 0; }
.arb-in:disabled { background: transparent; border-color: transparent; }
.arb-sup { width: 130px; }
.arb-num { width: 74px; text-align: right; }
.arb-zero td { opacity: .5; }
.arb-hit td { background: var(--pos-soft); transition: background .3s; }
.arb-go { margin: 16px 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.arb-ai { height: 50px; font-size: 15.5px; padding: 0 22px; gap: 10px; }
.arb-log { display: flex; flex-direction: column; max-height: 360px; overflow: auto; }
.arb-log-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; align-items: baseline; }
.arb-log-row:last-child { border-bottom: 0; }
.arb-ag { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.arb-ag-pm { color: #4A1DB8; } .arb-ag-inventory { color: #0B6770; } .arb-ag-listings { color: #8A5A10; }
#page-arb-shipments .arb-row { cursor: pointer; }
@media (max-width: 1100px) { .arb-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .arb-fields { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 600px) {
  .arb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arb-fields { grid-template-columns: 1fr 1fr; }
  .arb-scanrow > * { flex: 1 1 100%; }
  .arb-log-row { grid-template-columns: 1fr auto; } .arb-log-row > span:nth-child(2) { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 600px) {
  .arb-table thead { display: none; }
  .arb-table, .arb-table tbody, .arb-table tfoot { display: block; width: 100%; }
  .arb-table tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap: 8px 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); align-items: center; }
  .arb-table td { display: block; padding: 0 !important; border: 0 !important; text-align: left; }
  .arb-table tbody td:nth-child(1) { grid-column: 1 / 3; } .arb-table tbody td:nth-child(8) { grid-column: 3; grid-row: 1; justify-self: end; }
  .arb-table tbody td:nth-child(2) { grid-column: 1; } .arb-table tbody td:nth-child(3) { grid-column: 2 / -1; }
  .arb-table tbody td:nth-child(4) { grid-column: 1 / -1; }
  .arb-table tbody td:nth-child(7) { text-align: right; }
  .arb-table .arb-sup { width: 100%; } .arb-table .arb-num { width: 100%; text-align: left; }
  .arb-table td.num::before { font-size: 11px; color: var(--muted); display: block; }
  .arb-table tbody td:nth-child(5)::before { content: 'Unit cost'; } .arb-table tbody td:nth-child(6)::before { content: 'Qty'; } .arb-table tbody td:nth-child(7)::before { content: 'Line cost ex VAT'; }
  .arb-table tfoot tr { grid-template-columns: 1fr auto auto; } .arb-table tfoot td:last-child { display: none; }
  .arb-prod { min-width: 0; } .arb-ptitle { white-space: normal; }
}
/* Phone app: Shipment tab */
.ms-h { margin: 4px 0 4px; font-size: 20px; }
.ms-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .ms-head b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-bar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.ms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ms-step { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; height: 36px; }
.ms-step button { width: 40px; height: 100%; border: 0; background: var(--surface-2); font-size: 20px; color: var(--text); }
.ms-step input { flex: 1; min-width: 0; border: 0; text-align: center; font: inherit; font-size: 16px; font-weight: 600; background: var(--surface); color: inherit; }
.ms-line { cursor: default; }
.ms-q { display: flex; align-items: center; gap: 6px; flex: none; }
.ms-q button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-size: 18px; color: var(--text); }
.ms-q b { min-width: 24px; text-align: center; }
.arb-qr-box { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.arb-qr-box svg { width: 190px; height: 190px; display: block; }
.arb-reg-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.arb-reg-cfg { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.arb-pct { width: 56px; text-align: right; padding: 3px 6px; }
.arb-max { width: 70px; }
.arb-why2 { max-width: 260px; white-space: normal; line-height: 1.35; margin-top: 3px; }
.arb-acts { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 170px; }
.arb-pack { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; line-height: 1.3; max-width: 190px; }
.arb-reg td { vertical-align: top; }
.arb-reg .arb-prod { min-width: 170px; max-width: 230px; }
.arb-reg .arb-ptitle { max-width: 180px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.arb-reg th, .arb-reg td { padding-left: 10px; padding-right: 10px; }
.arb-reg .arb-acts { min-width: 150px; }
.arb-reg .arb-pack { max-width: 160px; }
.arb-addr { font-size: 13px; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.arb-addr-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; align-items: end; }
@media (max-width: 800px) { .arb-addr-form { grid-template-columns: 1fr 1fr; } }
.arb-addr-form[hidden] { display: none; }
.arb-exp.arb-need { border-color: var(--warn); background: var(--warn-soft); }
.arb-decl { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.arb-decl label { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.arb-decl select { width: auto; padding: 2px 4px; }

.arb-prep { display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
.arb-ptypes { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; font-size: 12px; color: var(--muted); }
.arb-ptypes[hidden] { display: none; }

/* ── Shipment page: one standard section layout ─────────────────────── */
.arb-sec { padding: 0 !important; overflow: hidden; margin-bottom: 16px; }
.arb-sec-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; min-height: 68px; box-sizing: border-box; }
.arb-sec-head:not(:last-child) { border-bottom: 1px solid var(--border); }
.arb-sn { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.arb-sn-i { background: var(--surface-2); color: var(--muted); }
.arb-sec-t { flex: 1; min-width: 0; }
.arb-sec-t .ph-meta { margin-top: 2px; line-height: 1.45; }
.arb-sec-a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex: none; max-width: 62%; }
.arb-sec-a .btn, .arb-sec-a a.btn { height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13.5px; text-decoration: none; box-sizing: border-box; }
.arb-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.arb-sec-body { padding: 16px 20px; }
.arb-sec-body + .arb-sec-body { padding-top: 0; }
.arb-sec-flush { border-top: 1px solid var(--border); }
.arb-sec-flush .table-wrap, .arb-sec-flush.table-wrap { margin: 0; }
.arb-sec-flush .data-table th:first-child, .arb-sec-flush .data-table td:first-child, .arb-sec-flush.table-wrap .data-table th:first-child, .arb-sec-flush.table-wrap .data-table td:first-child { padding-left: 20px; }
.arb-sec-flush .data-table th:last-child, .arb-sec-flush .data-table td:last-child, .arb-sec-flush.table-wrap .data-table th:last-child, .arb-sec-flush.table-wrap .data-table td:last-child { padding-right: 20px; }
.arb-sec .arb-fields { display: grid; grid-template-columns: 1.5fr 1fr 1fr .8fr 1.1fr 1.1fr; gap: 12px; align-items: end; }
.arb-sec .pk-input { height: 40px; box-sizing: border-box; }
.arb-seg { display: flex; height: 40px; } .arb-seg button { flex: 1; }
.arb-sec .arb-scanrow { display: flex; gap: 8px; margin-top: 14px; }
.arb-sec .arb-scanrow input { flex: 1; min-width: 0; height: 44px; font-size: 16px; padding: 0 14px; border: 1.5px solid var(--accent); border-radius: 10px; background: var(--surface); color: inherit; }
.arb-sec .arb-scanrow .btn { height: 44px; padding: 0 20px; display: inline-flex; align-items: center; gap: 6px; }
#arb-msg:not(:empty), #arb-qr:not(:empty) { margin-top: 12px; }
.arb-def-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.arb-def-grid .pk-input i:last-child { font-style: normal; white-space: nowrap; }
.arb-def-grid select, .arb-sec .arb-fields select { border: 0; background: transparent; font: inherit; width: 100%; outline: none; color: inherit; height: 100%; }
.arb-auto { display: flex; align-items: center; gap: 8px; }
.arb-steps { margin-bottom: 16px; }
@media (max-width: 1100px) { .arb-sec .arb-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } .arb-def-grid { grid-template-columns: 1fr 1fr; } .arb-sec-a { max-width: none; } }
@media (max-width: 700px) {
  .arb-sec-head { flex-wrap: wrap; } .arb-sec-a { width: 100%; justify-content: flex-start; }
  .arb-sec .arb-fields, .arb-def-grid { grid-template-columns: 1fr 1fr; }
}
.arb-table th, .arb-table td { padding-left: 10px; padding-right: 10px; }
.arb-table .arb-sup { width: 110px; }
.arb-table .arb-num { width: 70px; }
.arb-table .arb-prod { min-width: 200px; max-width: 300px; }
.arb-table .arb-ptitle { max-width: 240px; }
.arb-table .arb-why { max-width: 190px; }

/* A cancelled shipment: only the banner, nothing that looks active */
.arb-is-cx .arb-sec:not(#arb-cx-card) { display: none !important; }

/* ── Price History & Opportunities ─────────────────────────────────── */
.si-tabs { margin-bottom: 16px; display: inline-flex; }
.si-tabs button { padding: 0 16px; height: 36px; }
.si-kpi { cursor: pointer; } .si-kpi:hover { border-color: var(--accent); }
.si-filters { display: grid; grid-template-columns: 1.1fr 1.1fr 1.6fr 1fr .7fr .8fr 1fr .9fr; gap: 10px; }
.si-filters select, .si-map select, .arb-sec-a select { border: 0; background: transparent; font: inherit; width: 100%; outline: none; color: inherit; height: 100%; }
.si-table td { vertical-align: top; }
.si-table .arb-prod { min-width: 260px; max-width: 420px; cursor: pointer; }
.si-table .arb-prod:hover .arb-ptitle { color: var(--accent); }
.si-why { font-size: 12.5px; color: var(--text-2); line-height: 1.45; margin-top: 6px; max-width: 520px; }
.si-risks { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 11.5px; color: var(--warn); }
.si-risks span { display: inline-flex; align-items: center; gap: 3px; }
.si-acts { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.si-hist { cursor: pointer; }
.si-sum { margin: 0 0 10px; line-height: 1.55; }
.si-ai { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.5; margin-bottom: 12px; }
.si-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.si-stat { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.si-stat span { font-size: 12px; color: var(--muted); } .si-stat b { font-size: 16px; }
.si-chart { width: 100%; max-width: 760px; height: auto; color: var(--text); }
.si-ax { font-size: 10px; fill: var(--muted); }
.si-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.si-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.si-drop { display: flex; align-items: center; justify-content: center; gap: 8px; height: 90px; border: 1.5px dashed var(--border-strong); border-radius: 12px; cursor: pointer; color: var(--muted); font-weight: 500; }
.si-drop:hover { border-color: var(--accent); color: var(--accent); }
.si-sample td, .si-sample th { white-space: nowrap; font-size: 12px; }
.si-sups .arb-in { min-width: 70px; }
@media (max-width: 1100px) { .si-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .si-filters { grid-template-columns: 1fr 1fr; } }

.qg-kv { display: grid; grid-template-columns: 190px 1fr auto; gap: 8px; align-items: center; margin-top: 8px; }
.qg-kv input { font: 12px ui-monospace, monospace; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); min-width: 0; }

/* FBA shipment tracking line */
.arb-track { display: flex; gap: 2px; list-style: none; margin: 0 0 3px; padding: 0; flex-wrap: wrap; }
.arb-track li { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--color-bg-subtle, #F1F3F8); color: var(--color-muted, #6B7280); white-space: nowrap; }
.arb-track li.done { background: #E3F6EC; color: #0F7B4B; }
.arb-track li.now { background: #4F46E5; color: #fff; font-weight: 600; }
.arb-track-t td { vertical-align: top; }
.arb-is-trk .arb-sec:not(#arb-in-card) { display: none !important; }
.arb-is-trk #arb-defaults, .arb-is-trk #arb-cancel { display: none !important; }
.arb-prod-t { margin-top: 6px; white-space: nowrap; }
.arb-prod-t svg { transition: transform .15s; } .arb-prod-t.on svg { transform: rotate(180deg); }
.arb-prod-row > td { background: var(--color-bg-subtle, #F7F8FC); padding: 0 12px 10px !important; }
.arb-prod-t2 { margin: 0; background: #fff; border-radius: 8px; }

/* Amazon dashboard: 4 equal panels */
.amz-quad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.amz-quad > .card { margin-bottom: 0; display: flex; flex-direction: column; min-height: 330px; }
.amz-q-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.amz-q-sel { width: auto; font-size: 12px; padding: 4px 8px; }
.amz-quad .card-chart .chart-wrap { height: 170px; min-height: 170px; flex: none; margin-top: 8px; }
.amz-q-scroll { max-height: 270px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.amz-sold-t td, .amz-sold-t th { padding: 6px 4px; }
.amz-sold-t thead th { position: sticky; top: 0; background: var(--card, #fff); z-index: 1; }
.amz-sold-title { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-weight: 500; line-height: 1.3; font-size: 12.5px; }
.amz-sold-t td:first-child { max-width: 0; width: 100%; }
.amz-fbm-sales .chart-total { margin: 2px 0; }
@media (max-width: 1280px) { .amz-quad { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .amz-quad { grid-template-columns: minmax(0, 1fr); } }
.amz-nocost { text-decoration: none; border-bottom: 1px dashed currentColor; }
.amz-nocost svg { vertical-align: -2px; }
.seg-sm button { padding: 3px 9px; font-size: 12px; }
/* Amazon dashboard: monthly profit + best sellers */
.amz-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.amz-duo > .card { margin-bottom: 0; display: flex; flex-direction: column; min-height: 320px; }
.amz-duo .amz-q-scroll { max-height: 330px; }
.amz-q-sels { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.amz-best-on { color: var(--accent, #4F46E5) !important; font-weight: 700; }
th.amz-best-on { color: var(--accent, #4F46E5) !important; }
.amz-month-t tbody tr:not(.row-total):hover td { background: var(--color-bg-subtle, #F7F8FC); }
@media (max-width: 1000px) { .amz-duo { grid-template-columns: minmax(0, 1fr); } }
/* Amazon orders: FBA / FBM summary boxes above a scrolling order-lines box */
.amz-o-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.amz-o-sum > .card { margin-bottom: 0; }
.amz-o-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 10px; }
.amz-o-kpis .k-l { font-size: 12px; color: var(--muted, #6B7280); }
.amz-o-kpis .k-v { font-size: 20px; font-weight: 700; }
.amz-o-lines { width: 100%; border-collapse: collapse; font-size: 13px; }
.amz-o-lines td { padding: 5px 0; border-top: 1px solid var(--border, #E5E7EB); }
.amz-o-lines tr.row-total td { font-weight: 700; }
.amz-o-st { margin-top: 8px; }
.amz-o-scroll .table-wrap { max-height: 560px; overflow: auto; }
.amz-o-scroll .data-table thead th { position: sticky; top: 0; z-index: 1; }
.amz-ch { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; vertical-align: 1px; }
.amz-ch.fba { background: #EAF2FE; color: #1D4ED8; }
.amz-ch.fbm { background: #FEF3E2; color: #B45309; }
@media (max-width: 1000px) { .amz-o-sum { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .amz-o-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* FBA/FBM stock table: 12 columns, keep them on screen */
.amz-inv-t th, .amz-inv-t td { padding-left: 7px; padding-right: 7px; }
.amz-inv-t th { white-space: normal; line-height: 1.25; }
.amz-inv-t td:first-child { min-width: 220px; }
.amz-inv-t .cost-input { width: 64px; }
/* FBA/FBM stock filter pop-ups */
.amz-pop { max-width: 1100px; }
.amz-pop-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
.amz-pop-k { background: var(--bg); border-radius: var(--r-md); padding: 10px 12px; }
.amz-pop-k .k-l { font-size: 12px; color: var(--muted); }
.amz-pop-k .k-v { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.amz-pop-scroll { max-height: 52vh; overflow: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
.amz-pop-scroll .data-table thead th { position: sticky; top: 0; z-index: 1; }
.amz-pop .pk-modal-foot { align-items: center; margin-top: 12px; flex-wrap: wrap; }
.amz-pop .pk-modal-head { align-items: flex-start; gap: 12px; }
tr.amz-pop-done td { background: var(--pos-soft); }
/* Cost of goods: latest scanner cost */
.amz-scan { white-space: nowrap; color: var(--accent, #4F46E5); }
.amz-scan svg { vertical-align: -2px; }
.btn.btn-xs { height: 20px; min-height: 0; padding: 0 7px; font-size: 11px; line-height: 18px; margin-left: 4px; }
/* Profit tables (Amazon + eBay): fixed, even columns */
.pk-table { table-layout: fixed; width: 100%; min-width: 900px; }
.pk-table th, .pk-table td { padding-left: 8px; padding-right: 8px; }
.pk-table col.pk-col-title { width: 26%; }
.pk-table th { white-space: nowrap; }
.pk-table td.num, .pk-table th.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pk-th { display: inline-flex; align-items: center; gap: 3px; }
.pk-sort { display: inline-block; width: 9px; font-size: 9px; }
th.num .pk-th { flex-direction: row; }
.pk-table td { padding-top: 9px; padding-bottom: 9px; }
.pk-prod { display: flex; align-items: flex-start; min-width: 0; }
.pk-flag { flex: 0 0 16px; padding-top: 6px; }
.pk-flag .dot-warn { margin-right: 0; }
.pk-prod-b { min-width: 0; flex: 1; }
.pk-prod-b .cell-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-prod-b .cell-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-table td.num .dot-warn { margin-right: 6px; }
/* Profit analysis: product of the period + recommendations */
.amz-ins { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; margin-bottom: 16px; }
.amz-ins > .card { margin-bottom: 0; display: flex; flex-direction: column; }
.amz-pod { margin-top: 12px; }
.amz-pod-name { font-size: 16px; font-weight: 700; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.amz-pod-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.amz-pod-kpis > div { background: var(--bg); border-radius: var(--r-md); padding: 8px 10px; min-width: 0; }
.amz-pod-kpis .k-l, .amz-pod-run .k-l { font-size: 11.5px; color: var(--muted); }
.amz-pod-kpis .k-v { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.amz-pod-kpis .k-s { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amz-pod-run { margin-top: 12px; }
.amz-pod-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px 72px; gap: 8px; font-size: 13px; padding: 4px 0; border-top: 1px solid var(--border); }
.amz-pod-row .tnum { text-align: right; }
.amz-pod-rt { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.amz-pod-tot { margin-top: auto; padding-top: 10px; }
.amz-rec { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--border); }
.amz-rec:first-child { border-top: 0; margin-top: 6px; }
.amz-rec-ic { flex: 0 0 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); color: var(--muted); }
.amz-rec.lvl-high .amz-rec-ic { background: #FEE2E2; color: #B91C1C; }
.amz-rec.lvl-medium .amz-rec-ic { background: var(--warn-soft); color: #B45309; }
.amz-rec.lvl-good .amz-rec-ic { background: var(--pos-soft); color: var(--pos); }
.amz-rec-b { flex: 1; min-width: 0; }
.amz-rec-h { font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.amz-rec-t { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.amz-rec-go { flex: none; margin-top: 2px; }
.amz-ai { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--accent-soft, #EEF2FF); font-size: 13px; }
.amz-ai-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.amz-ai-h .btn { margin-left: auto; }
.amz-ai-head { margin-top: 6px; font-weight: 600; }
.amz-ai-r { margin-top: 6px; line-height: 1.4; }
@media (max-width: 1100px) { .amz-ins { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .amz-pod-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Profit & loss statement + fixed costs pop-up */
.amz-pnl-card { display: flex; flex-direction: column; }
table.pnl { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; margin-top: 10px; font-variant-numeric: tabular-nums; }
table.pnl td { padding: 4px 6px; }
table.pnl td:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.pnl td.num { text-align: right; white-space: nowrap; }
table.pnl .pnl-ind { padding-left: 18px; }
table.pnl tr.pnl-h td { font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; color: var(--muted); padding-top: 12px; }
table.pnl tr.pnl-h:first-child td { padding-top: 2px; }
table.pnl tr.pnl-sh td { padding-left: 10px; font-weight: 600; font-size: 12.5px; padding-top: 6px; }
table.pnl tr.pnl-t td { font-weight: 700; border-top: 1px solid var(--border); }
table.pnl tr.pnl-gp td { background: var(--bg); border-top: 1px solid var(--border); }
table.pnl tr.pnl-net td { background: var(--bg); border-top: 2px solid var(--text); border-bottom: 3px double var(--text); font-size: 14px; }
.pnl-inv { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.pnl-inv > div { background: var(--bg); border-radius: var(--r-md); padding: 8px 10px; }
.pnl-inv .k-l { font-size: 11.5px; color: var(--muted); }
.pnl-inv .k-v { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pnl-inv .k-v.sm { font-size: 14px; }
.amz-fx { max-width: 760px; }
.amz-fx-list { margin-top: 12px; max-height: 50vh; overflow-y: auto; }
.amz-fx-row { display: grid; grid-template-columns: 1.3fr 1.3fr 110px 120px 34px; gap: 8px; align-items: center; margin-bottom: 8px; }
.amz-fx-row select, .amz-fx-row input { height: 34px; border: 1px solid var(--border); border-radius: var(--r-md); padding: 0 8px; font: inherit; font-size: 13px; background: var(--surface); color: var(--text); min-width: 0; }
.amz-fx-row .fx-amt { text-align: right; font-variant-numeric: tabular-nums; }
.amz-fx-hd { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.amz-fx-foot { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 8px; }
@media (max-width: 640px) { .amz-fx-row { grid-template-columns: 1fr 1fr; } .amz-fx-hd { display: none; } .pnl-inv { grid-template-columns: 1fr 1fr; } }
/* Business P&L (Home) */
table.pnl thead th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 4px 6px 6px; border-bottom: 1px solid var(--border); text-align: right; }
table.pnl-multi { min-width: 560px; }
.pnl-pick { min-width: 170px; height: 34px; }
.pnl-custom { display: inline-flex; align-items: center; gap: 6px; }
.pnl-custom input { height: 34px; border: 1px solid var(--border); border-radius: var(--r-md); padding: 0 8px; font: inherit; font-size: 13px; background: var(--surface); color: var(--text); }
.pnl-custom[hidden], .pnl-pick[hidden] { display: none; }
/* Fees & payouts: payout tiles */
.amz-pay-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px 6px; }
.amz-pay-k { background: var(--bg); border-radius: var(--r-md); padding: 10px 12px; }
.amz-pay-k .k-l { font-size: 12px; color: var(--muted); }
.amz-pay-k .k-v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.amz-pay-k.big .k-v { font-size: 24px; color: var(--pos); }
.amz-pay-k .k-s { font-size: 11.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
/* AI Buyer: Keepa line */
.si-keepa { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.si-good { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; font-size: 11.5px; color: var(--pos); }
.si-good span { display: inline-flex; align-items: center; gap: 3px; }
/* Product lookup (desktop sourcing) */
.pl-bar { display: grid; grid-template-columns: minmax(260px, 2.4fr) 120px auto minmax(160px, 1.2fr) auto; gap: 12px; align-items: end; margin-bottom: 14px; }
.pl-bar .pk-field { margin: 0; }
.pl-bar .pl-code input { font-size: 15px; }
.pl-go { height: 36px; }
.pl-hint { color: var(--muted); font-size: 13px; padding: 4px 2px; }
.pl-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.pl-img { width: 84px; height: 84px; object-fit: contain; border-radius: var(--r-md); background: #fff; border: 1px solid var(--border); flex: none; }
.pl-img.empty { display: flex; align-items: center; justify-content: center; color: var(--faint); }
.pl-head-b { min-width: 0; flex: 1; }
.pl-title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.pl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pl-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--bg); color: var(--text-2); }
.pl-tag svg { flex: none; }
.pl-cost-row { display: grid; grid-template-columns: 160px auto minmax(160px, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 14px; }
.pl-cost-row .pk-field { margin: 0; }
.pl-decide { margin: 0; }
.pl-decide .su-d { padding: 7px 12px; font-size: 13px; }
.pl-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.pl-two > .card, .pl-three > .card { margin-bottom: 0; }
.pl-ch-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pl-ch-name { font-size: 15px; font-weight: 700; }
.pl-ch-h .su-verdict { margin: 0; padding: 4px 10px; font-size: 12px; white-space: nowrap; }
.pl-ch-k { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 8px; }
.pl-ch-k > div { background: var(--bg); border-radius: var(--r-md); padding: 8px 10px; }
.pl-ch-k span { display: block; font-size: 11.5px; color: var(--muted); }
.pl-ch-k b { font-size: 18px; font-variant-numeric: tabular-nums; }
.pl-eprice { display: inline-flex; width: 96px; height: 28px; padding: 0 6px; vertical-align: middle; }
.pl-eprice input { font-size: 13px; }
.pl-three { display: grid; grid-template-columns: 0.9fr 1.2fr 1fr; gap: 14px; margin-bottom: 14px; }
.pl-panel { min-width: 0; }
.pl-ph { font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.pl-ph-r { margin-left: auto; font-weight: 400; font-size: 11.5px; }
table.pl-kv { width: 100%; border-collapse: collapse; font-size: 13px; }
table.pl-kv td { padding: 5px 0; border-top: 1px solid var(--border); }
table.pl-kv tr:first-child td { border-top: 0; }
table.pl-kv td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 8px; }
.pl-eb-list { margin-top: 8px; display: flex; flex-direction: column; }
.pl-eb-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; padding: 6px 0; border-top: 1px solid var(--border); font-size: 12.5px; text-decoration: none; color: var(--text); }
.pl-eb-item:hover .pl-eb-t { text-decoration: underline; }
.pl-eb-t { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pl-eb-item .muted { grid-column: 1 / -1; font-size: 11.5px; }
.pl-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; flex-wrap: wrap; }
@media (max-width: 1100px) { .pl-bar { grid-template-columns: 1fr 120px auto; } .pl-three { grid-template-columns: 1fr; } .pl-cost-row { grid-template-columns: 1fr auto; } }
@media (max-width: 760px) { .pl-two { grid-template-columns: 1fr; } .pl-bar { grid-template-columns: 1fr; } .pl-ch-k { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pl-tag.lvl-bg-ok { background: var(--pos-soft); color: var(--pos); }
.pl-tag.lvl-bg-warn { background: var(--warn-soft); color: var(--warn); }
.pl-tag.lvl-bg-bad { background: var(--neg-soft); color: var(--neg); }
/* Product lookup: label/value rows that stay tidy in narrow panels */
table.pl-kv td:first-child { white-space: nowrap; color: var(--text-2); padding-right: 10px; }
table.pl-kv td:last-child { white-space: normal; }

/* Product lookup: decision tiles + buying rules (lookuprules.js) */
.lr-strip { margin-bottom: 14px; }
.lr-bar { padding: 8px 14px; margin-bottom: 0; }
.lr-row { display: grid; grid-template-columns: 56px 64px repeat(4, minmax(64px, auto)) minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.lr-pill { display: inline-block; text-align: center; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; padding: 3px 0; border-radius: 6px; }
.lr-pill.lr-ok { background: var(--pos); color: #fff; } .lr-pill.lr-bad { background: var(--neg); color: #fff; }
.lr-pill.lr-warn { background: var(--warn); color: #fff; } .lr-pill.lr-muted { background: var(--surface-2); color: var(--muted); }
.lr-ch { font-weight: 700; }
.lr-n { display: flex; flex-direction: column; line-height: 1.15; }
.lr-n i { font-style: normal; font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.lr-n b { font-size: 14px; font-variant-numeric: tabular-nums; }
.lr-why { color: var(--neg); font-size: 12.5px; min-width: 0; }
.lr-tg { color: var(--faint); }
.lr-flags { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 2px; }
.lr-flag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--text-2); }
.lr-f-ok { color: var(--pos); background: var(--pos-soft); } .lr-f-bad { color: var(--neg); background: var(--neg-soft); } .lr-f-warn { color: var(--warn); background: var(--warn-soft); }
.lr-det { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; font-size: 12.5px; color: var(--muted); }
.lr-det summary { cursor: pointer; }
.lr-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lr-head b { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.lr-v-ok { color: var(--pos); } .lr-v-bad { color: var(--neg); } .lr-v-warn { color: var(--warn); } .lr-v-muted { color: var(--muted); }
.lr-list { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; }
.lr-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto 76px; gap: 8px; align-items: center; padding: 5px 0; border-top: 1px solid var(--border); }
.lr-list li:first-child { border-top: 0; }
.lr-list .lr-l { color: var(--text-2); }
.lr-list .lr-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.lr-list .lr-t { text-align: right; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.lr-list .lr-ok svg { color: var(--pos); } .lr-list .lr-bad svg { color: var(--neg); } .lr-list .lr-unk svg { color: var(--faint); }
.lr-list .lr-bad .lr-v { color: var(--neg); }
.lr-list .lr-unk .lr-v { color: var(--muted); font-weight: 500; }
.pk-modal.lr-modal { max-width: 860px; }
.lr-intro { font-size: 13px; margin-bottom: 4px; }
.lr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.lr-sel { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--text); font: inherit; }
@media (max-width: 760px) {
  .lr-cols { grid-template-columns: 1fr; }
  .pk-modal-back { padding: 12px 8px; }
  .lr-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 8px; }
  .lr-row .lr-pill { width: 52px; }
  .lr-row .lr-ch { grid-column: 2 / -1; }
  .lr-why { grid-column: 1 / -1; }
  .lr-list li { grid-template-columns: 18px minmax(0, 1fr) auto; }
  .lr-list .lr-t { grid-column: 2 / 4; text-align: left; margin-top: -4px; }
  .pl-cost-row { grid-template-columns: minmax(0, 1fr) auto; }
  .pl-cost-row > :nth-child(3), .pl-cost-row .pl-decide { grid-column: 1 / -1; }
  .pl-decide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pk-modal.lk-phone { max-width: 420px; }
.lk-qr { display: flex; justify-content: center; margin: 10px 0; }
.lk-qr svg { width: 220px; height: 220px; }
.lk-steps { margin: 6px 0 10px; padding-left: 20px; font-size: 13.5px; line-height: 1.6; }
/* eBay stock: add / import forms */
.eb-add-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.eb-imp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; font-size: 13px; }
@media (max-width: 760px) { .eb-add-grid { grid-template-columns: 1fr 1fr; } .eb-imp-grid { grid-template-columns: 1fr; } }

/* Scanner result (scanui.js): decision first, Amazon FBA or eBay */
.sr { --sr-c1: #7F1D1D; --sr-c2: #D4A20A; --sr-c3: #7C3AED; --sr-c4: #0E7490; --sr-c5: #CBD5E1; display: grid; gap: 10px; padding-bottom: 8px; }
.sr .card { margin: 0; }
.sr-prod { display: flex; gap: 12px; }
.sr-img { width: 60px; height: 76px; object-fit: contain; border-radius: 10px; background: var(--surface-2); flex: none; }
.sr-img.empty { display: grid; place-items: center; color: var(--faint); }
.sr-pb { min-width: 0; }
.sr-title { font-weight: 650; font-size: 15px; line-height: 1.25; }
.sr-sub { font-size: 12px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.sr-code { font: 600 11.5px ui-monospace, Menlo, Consolas, monospace; color: var(--text-2); background: var(--surface-2); border: 0; border-radius: 5px; padding: 1px 5px; cursor: pointer; }
.sr-ch { display: grid; grid-template-columns: 1fr 1fr; }
.sr-ch button { font-weight: 600; padding: 8px 0; }
.sr-ch-start { margin: 10px 0 0; }
.sr-verdict { border-radius: 14px; padding: 12px 14px; display: flex; gap: 14px; align-items: center; }
.sr-vbig { font-size: 26px; font-weight: 800; letter-spacing: .02em; min-width: 84px; }
.sr-vwhy { font-size: 13px; color: var(--text-2); }
.sr-vwhy b { color: var(--text); }
.sr-v-ok { background: var(--pos-soft); } .sr-v-ok .sr-vbig { color: var(--pos); }
.sr-v-bad { background: var(--neg-soft); } .sr-v-bad .sr-vbig { color: var(--neg); }
.sr-v-warn { background: var(--warn-soft); } .sr-v-warn .sr-vbig { color: var(--warn); }
.sr-v-muted { background: var(--surface-2); } .sr-v-muted .sr-vbig { color: var(--muted); }
.sr-in2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sr-field { border: 1.5px solid var(--border); border-radius: 10px; padding: 6px 10px; display: block; }
.sr-field:focus-within { border-color: var(--accent); }
.sr-field > span:first-child { display: block; font-size: 11px; color: var(--muted); }
.sr-iv { display: flex; align-items: baseline; gap: 4px; }
.sr-iv i { font-style: normal; color: var(--faint); }
.sr-iv input { width: 100%; min-width: 0; border: 0; background: transparent; font: 700 21px inherit; font-family: inherit; color: var(--text); padding: 0; font-variant-numeric: tabular-nums; }
.sr-iv input:focus { outline: none; }
.sr-row2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.sr-row2 .seg button { font-size: 12px; padding: 4px 10px; }
.sr-saved { font-size: 11.5px; color: var(--muted); }
.sr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sr-chip { font: 500 12px inherit; font-family: inherit; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); cursor: pointer; }
.sr-chip i { font-style: normal; color: var(--faint); }
.sr-chip.on { background: var(--accent-soft, #EEF2FF); border-color: var(--accent); color: var(--accent); font-weight: 650; }
.sr-chip.off { cursor: default; color: var(--faint); }
.sr-k4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.sr-k4 > div { background: var(--surface-2); border-radius: 10px; padding: 7px 8px; }
.sr-k4 span, .sr-plan span { display: block; font-size: 10.5px; color: var(--muted); }
.sr-k4 b { font-size: 16.5px; font-variant-numeric: tabular-nums; }
.sr-foot { font-size: 11.5px; color: var(--faint); margin-top: 7px; }
.sr-none { font-size: 13px; color: var(--muted); padding: 4px 0; }
.sr-h { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sr-h span { text-transform: none; letter-spacing: 0; font-weight: 500; text-align: right; }
.sr-k2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sr-d { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.sr-d > span { font-size: 11px; color: var(--muted); }
.sr-d b { display: block; font-size: 16.5px; font-variant-numeric: tabular-nums; }
.sr-d em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); }
.sr-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-flag { font-size: 12px; font-weight: 500; padding: 5px 9px; border-radius: 8px; text-decoration: none; }
.sr-f-ok { background: var(--pos-soft); color: var(--pos); } .sr-f-warn { background: var(--warn-soft); color: var(--warn); }
.sr-f-bad { background: var(--neg-soft); color: var(--neg); } .sr-f-muted { background: var(--surface-2); color: var(--muted); }
.sr-plan { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; }
.sr-plan b { font-size: 15.5px; font-variant-numeric: tabular-nums; }
.sr-qty { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 10px; }
.sr-qty button { border: 0; background: none; color: var(--accent); font-size: 20px; width: 34px; height: 38px; cursor: pointer; }
.sr-qty output { min-width: 30px; text-align: center; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.sr-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: 2px 0 6px; background: var(--surface-2); }
.sr-bar i { display: block; height: 100%; }
.sr-line { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 13px; }
.sr-line:first-child, .sr-bar + .sr-line { border-top: 0; }
.sr-line span { color: var(--text-2); min-width: 0; }
.sr-line b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.sr-off { display: grid; grid-template-columns: 16px 40px minmax(0, 1fr) 58px 40px; gap: 6px; align-items: center; font-size: 13px; padding: 7px 0; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; color: inherit; text-decoration: none; }
.sr-h + .sr-off { border-top: 0; }
.sr-off em { font-style: normal; font-size: 11px; color: var(--muted); }
.sr-off > b:nth-child(4) { text-align: right; } .sr-off > span:last-child { text-align: right; color: var(--muted); font-size: 12px; }
.sr-tag { font-size: 10.5px; font-weight: 700; border-radius: 5px; padding: 2px 0; text-align: center; }
.sr-t-fba { background: var(--pos-soft); color: var(--pos); } .sr-t-fbm { background: var(--warn-soft); color: var(--warn); }
.sr-eb .sr-ebt { min-width: 0; } .sr-eb .sr-ebt > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.sr-eb { grid-template-columns: 16px minmax(0, 1fr) 58px 40px; }
.sr-eb > b:nth-child(3) { text-align: right; }
.sr-det summary { cursor: pointer; font-weight: 600; font-size: 13.5px; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.sr-det summary::-webkit-details-marker { display: none; }
.sr-det summary::after { content: "Show"; font-weight: 500; font-size: 12px; color: var(--accent); flex: none; }
.sr-det[open] summary::after { content: "Hide"; }
.sr-det[open] summary { margin-bottom: 10px; }
.sr-hl { font-size: 13px; margin-bottom: 6px; }
.sr-dock { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 20; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 8px; box-shadow: 0 6px 18px rgba(15, 23, 42, .10); margin: 0; }
.sr-savedline { text-align: center; }
@media (max-width: 360px) { .sr-k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sr-plan { grid-template-columns: auto 1fr 1fr; } }
/* Home: scanner tile with two buttons */
.hm-qa-scan { cursor: default; }
.hm-scan-btns { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.hm-scan-btns a { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--accent-soft, #EEF2FF); color: var(--accent); text-decoration: none; white-space: nowrap; }
.hm-scan-btns a:hover { background: var(--accent); color: #fff; }

/* Phones: iPhone zooms the whole page when you tap a box with text under 16px, and stays zoomed (page looks cut off on the right).
   Every box on a touch screen is at least 16px, so that never happens. */
@media (pointer: coarse) { input, select, textarea { font-size: max(16px, 1em); } }

.ship-profit{font-weight:650;font-variant-numeric:tabular-nums;padding:2px 8px;border-radius:999px;font-size:12.5px}
.ship-profit.pos{background:var(--pos-soft,#E7F8F0);color:var(--pos,#059669)}.ship-profit.neg{background:var(--neg-soft,#FDECEC);color:var(--neg,#DC2626)}

/* nav-owl: section headings */
.nav-group-head > span:not(.chan-mark) { font-size: 13px !important; font-weight: 700; display: inline-flex; align-items: center; }
.nav-item[data-page="start"] .nav-label { font-size: 15.5px !important; font-weight: 700; display: inline-flex; align-items: center; }
.nav-group-head > span:not(.chan-mark)::before,
.nav-item[data-page="start"] .nav-label::before {
  content: ""; width: 18px; height: 18px; margin-right: 6px; flex: none;
  background: url("/icons/quidowl-mark.png") center / contain no-repeat;
}

/* si-scan: scanner pop-up */
.pk-modal.si-scan { max-width: 1180px; padding: 16px 18px; }
.si-scan-back { padding-top: 3vh; }
.si-asin { color: var(--primary, #4f46e5); text-decoration: underline; cursor: pointer; }
.si-asin:hover { text-decoration: none; }

/* onboarding + help */
.ob-wrap { max-width: 860px; margin: 0 auto; padding-bottom: 40px; }
.ob-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 14px; }
.ob-head .ph-title { margin: 0; }
.ob-head .ob-help { margin-left: auto; }
.ob-progress { padding: 14px 18px; margin-bottom: 12px; }
.ob-bar { height: 8px; border-radius: 6px; background: var(--border, #e5e7eb); overflow: hidden; margin-top: 8px; }
.ob-bar > div { height: 100%; background: var(--primary, #4f46e5); transition: width .3s; }
.ob-step { padding: 0; margin-bottom: 10px; overflow: hidden; }
.ob-sh { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; }
.ob-sh:focus-visible { outline: 2px solid var(--primary, #4f46e5); outline-offset: -2px; }
.ob-st { font-weight: 600; font-size: 15px; flex: 1; }
.ob-dot { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  background: var(--surface-2, #f1f5f9); color: var(--text-2, #475569); border: 1px solid var(--border, #e2e8f0); flex: none; }
.ob-dot.ok { background: #16a34a; color: #fff; border-color: #16a34a; }
.ob-tag { font-size: 12px; color: var(--muted, #64748b); }
.ob-tag.req { color: #b45309; font-weight: 600; }
.ob-step.is-done .ob-tag { color: #15803d; font-weight: 600; }
.ob-sb { padding: 0 18px; }
.ob-step.is-open .ob-sb { padding: 0 18px 16px; border-top: 1px solid var(--border, #eef2f7); }
.ob-p { margin: 12px 0; color: var(--text-2, #334155); }
.ob-grid { display: grid; gap: 12px; }
.ob-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ob-hint { display: block; font-size: 12px; color: var(--muted, #64748b); margin-top: 4px; }
.ob-checks { display: flex; gap: 18px; padding-top: 4px; }
.ob-checks label { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.ob-seg button { padding: 7px 14px; }
.ob-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ob-conn { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border, #eef2f7); }
.ob-ok { color: #15803d; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.ob-finish { text-align: center; margin-top: 18px; display: grid; gap: 8px; justify-items: center; }
.ob-banner { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 900; border: 0; border-radius: 999px; padding: 8px 16px;
  background: #b45309; color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.ob-banner.hidden { display: none; }
@media (max-width: 700px) { .ob-grid3 { grid-template-columns: 1fr; } .ob-head .ob-help { display: none; } }

.hp-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; }
.hp-side { position: sticky; top: 12px; padding: 12px; max-height: calc(100vh - 40px); overflow-y: auto; }
.hp-search { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.hp-search input { width: 100%; }
.hp-g { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #64748b); margin: 12px 4px 4px; }
.hp-l { display: block; padding: 6px 8px; border-radius: 8px; color: var(--text, #0f172a); text-decoration: none; font-size: 13.5px; }
.hp-l:hover { background: var(--surface-2, #f1f5f9); }
.hp-l.on { background: var(--primary-soft, #eef2ff); color: var(--primary, #4f46e5); font-weight: 600; }
.hp-main { padding: 20px 24px; min-width: 0; }
.hp-crumb { font-size: 12px; color: var(--muted, #64748b); }
.hp-title { margin: 2px 0 12px; font-size: 22px; }
.hp-body { line-height: 1.6; overflow-wrap: anywhere; }
.hp-body h2 { font-size: 17px; margin: 22px 0 8px; }
.hp-body h3 { font-size: 15px; margin: 16px 0 6px; }
.hp-body table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 13.5px; display: block; overflow-x: auto; }
.hp-body td, .hp-body th { border: 1px solid var(--border, #e2e8f0); padding: 6px 8px; vertical-align: top; text-align: left; }
.hp-body blockquote { margin: 12px 0; padding: 10px 14px; border-left: 3px solid var(--primary, #4f46e5); background: var(--surface-2, #f8fafc); border-radius: 0 8px 8px 0; }
.hp-foot { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--border, #eef2f7); font-size: 13px; color: var(--muted, #64748b); }
.hp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.hp-card, .hp-hit { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--border, #e2e8f0); border-radius: 10px; text-decoration: none; color: var(--text, #0f172a); }
.hp-card span, .hp-hit span { font-size: 13px; color: var(--muted, #64748b); }
.hp-card:hover, .hp-hit:hover { border-color: var(--primary, #4f46e5); }
.hp-hit { margin-bottom: 8px; }
.hp-hit mark { background: #fef08a; color: inherit; }
.hp-fab { position: fixed; right: 22px; bottom: 82px; z-index: 950; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border, #e2e8f0);
  background: var(--surface, #fff); color: var(--primary, #4f46e5); font-weight: 800; font-size: 18px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
@media (max-width: 800px) { .hp-wrap { grid-template-columns: 1fr; } .hp-side { position: static; max-height: none; order: 2; } .hp-main { padding: 16px; } .hp-fab { bottom: 74px; right: 14px; } }
.ob-verify { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 18px; margin-bottom: 12px; border-left: 4px solid #d97706; }
@media (max-width: 600px) { .ob-verify { flex-direction: column; align-items: flex-start; } }

/* integrations */
.ig-intro { max-width: 760px; margin: 0 0 12px; }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.ig-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.ig-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ig-name { font-weight: 700; font-size: 16px; }
.ig-pill { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2, #f1f5f9); color: var(--muted, #64748b); }
.ig-pill.on { background: #dcfce7; color: #15803d; font-weight: 600; }
.ig-b { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ig-b .ph-meta { flex-basis: 100%; }
.ig-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; width: 100%; }
.ig-row input { flex: 1; min-width: 160px; padding: 8px 10px; border: 1px solid var(--border, #cbd5e1); border-radius: 8px; background: transparent; color: inherit; font: inherit; }
.ig-more { width: 100%; } .ig-more summary { cursor: pointer; font-size: 13px; color: var(--primary, #4f46e5); }

/* Scanner traffic light + simple cost box */
.pl-costbox { height: 36px; } .pl-costbox:focus-within { box-shadow: none; } .pl-costbox input { font-size: 16px; font-weight: 600; }
.lr-why .lr-w, .sr-fbm { color: var(--warn); font-weight: 600; } .lr-why .pos { color: var(--pos); }
.su-vat button { white-space: nowrap; padding-left: 10px; padding-right: 10px; }

/* Offers now (Keepa) table */
.ot-wrap { overflow-x: auto; }
.ot { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.ot th { text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 6px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ot td { padding: 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ot .ot-n { text-align: right; }
.ot td em { display: block; font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; }
.ot td em.ot-prime { color: var(--accent); }
.ot .sr-tag { display: inline-block; min-width: 34px; }
.ot-s a { color: var(--text); text-decoration: none; } .ot-s a:hover { text-decoration: underline; }
.ot-you td { background: var(--pos-soft); }
.ot-tot td { font-weight: 700; border-bottom: 0; }
.ot-spark { display: block; }

/* Tables fit the page (no sideways scrolling at 1500px+): tighter cells, headers may wrap */
.data-table th { white-space: normal; padding: 8px 8px; font-size: 11.5px; line-height: 1.25; vertical-align: bottom; }
.data-table td { padding: 8px 8px; font-size: 13px; }
.data-table th:first-child, .data-table td:first-child { padding-left: 14px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 14px; }
.data-table .cell-title { max-width: 300px; }
.rp-table td:nth-child(2) { max-width: 220px; } .rp-table .cell-title { max-width: 220px; }
.rp-table td:nth-child(2) .cell-sub { white-space: normal; overflow-wrap: anywhere; }
.rp-table .rp-why { min-width: 130px; } .rp-table .rp-lim { width: 56px; }
.rp-table select.rp-strat { width: 96px !important; max-width: 96px; min-width: 0 !important; font-size: 12.5px; }
.rp-table select.rp-preset { width: 88px !important; max-width: 88px; min-width: 0 !important; font-size: 12.5px; }
.rp-table td.num { white-space: normal; }
.fo-table td:nth-child(1), .fo-table td:nth-child(2) { max-width: 260px; } .fo-table .cell-sub { white-space: normal; overflow-wrap: anywhere; }

/* Phone app: Receipts tab */
.m-rc-h b { font-size: 17px; } .m-rc-h span { display: block; font-size: 13px; margin: 4px 0 12px; }
.m-rc-big { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 16px; border-radius: 16px; background: var(--accent); color: #fff; font-weight: 700; font-size: 17px; cursor: pointer; text-align: center; }
.m-rc-big em { font-style: normal; font-weight: 400; font-size: 12.5px; opacity: .85; }
.m-rc-up { display: flex; width: 100%; justify-content: center; gap: 6px; margin-top: 10px; cursor: pointer; }
.m-rc-msg { margin-top: 10px; font-size: 14px; min-height: 1px; }
.m-rc-t { margin: 18px 0 4px; font-weight: 600; font-size: 13px; color: var(--muted); }
.m-rc-s { display: block; font-size: 12px; margin-top: 2px; color: var(--muted); }
.m-rc-s.warn { color: var(--warn); } .m-rc-s.pos { color: var(--pos); } .m-rc-s.neg { color: var(--neg); }
.m-rc-row .m-row-end .muted { display: block; font-size: 11.5px; }
.m-tabs { grid-template-columns: repeat(5, 1fr); } .m-tabs button { font-size: 10.5px; min-width: 0; } .m-tabs button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* No "box in a box": a focused field shows one border in the accent colour, no glow rings inside or outside */
input:focus, select:focus, textarea:focus, .pk-plain:focus, .su-manual input:focus, .su-notes:focus, .m-pair input:focus, .ai-form textarea:focus { box-shadow: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
.pk-input:focus-within, .scan-input:focus-within { box-shadow: none; border-color: var(--accent); }
.pk-input input, .pk-input select, .pk-input textarea { box-shadow: none !important; outline: none !important; }
.arb-scanrow form input:focus { outline: none; border-color: var(--accent); }

/* AI Buyer: can you sell it */
.si-gate { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 2px; padding: 3px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 600; }
.si-gate.ok { background: var(--pos-soft); color: var(--pos); }
.si-gate.bad { background: var(--neg-soft); color: var(--neg); }
.si-gate.unk { background: var(--surface-2); color: var(--muted); font-weight: 500; }
.si-gate-btn { margin-left: 4px; padding: 1px 8px; border-radius: 5px; background: var(--neg); color: #fff !important; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.si-gate-btn:hover { filter: brightness(1.1); }

/* Phone app: shop basket */
.m-bk-bar { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent-soft); color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.m-bk-bar svg { color: var(--accent); flex: none; } .m-bk-bt { flex: 1; min-width: 0; } .m-bk-bar em { font-style: normal; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.m-bk-prod { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; font-weight: 600; font-size: 14px; } .m-bk-prod img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #fff; }
.m-bk-qty { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px 0 8px; }
.m-bk-qty button { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: 26px; font-weight: 700; cursor: pointer; color: var(--text); }
.m-bk-qty input { width: 80px; height: 52px; text-align: center; font-size: 24px; font-weight: 700; border: 1px solid var(--border); border-radius: 12px; }
.m-bk-qty.sm { margin: 0; gap: 6px; flex: none; } .m-bk-qty.sm button { width: 34px; height: 34px; font-size: 18px; border-radius: 8px; } .m-bk-qty.sm b { min-width: 22px; text-align: center; }
.m-bk-info, .m-bk-tot { text-align: center; font-size: 13.5px; margin: 4px 0; } .m-bk-tot { font-size: 15px; }
.m-bk-go { width: 100%; justify-content: center; height: 48px; margin-top: 10px; font-size: 16px; }
.m-bk-sum { font-size: 14px; margin-bottom: 10px; } .m-bk-bud { margin-bottom: 12px; } .m-bk-bud > span:last-child { font-size: 12.5px; }
.m-bk-shop { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; background: var(--surface); }
.m-bk-sh { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding-bottom: 6px; border-bottom: 1px solid var(--border); } .m-bk-sh span { font-size: 12.5px; color: var(--muted); }
.m-bk-it { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.m-bk-t { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; } .m-bk-t em { display: block; font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); }
.m-bk-warn { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--warn); }
.m-bk-n { min-width: 34px; text-align: center; }
.m-bk-rec { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); padding: 6px 0 0; }
.m-bk-acts { display: flex; gap: 8px; justify-content: space-between; margin-top: 10px; flex-wrap: wrap; } .m-bk-acts .btn { cursor: pointer; }
.m-tabs { grid-template-columns: repeat(4, 1fr); }

/* Book-keeping: VAT estimate for the accountant */
.bk-est { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--warn); border-radius: 10px; background: var(--warn-soft); font-size: 13.5px; }
.bk-est.ok { border-color: var(--pos); background: var(--pos-soft); }
.bk-est-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 8px; } .bk-est-row label { display: flex; flex-direction: column; font-size: 12px; gap: 2px; } .bk-est-row input { width: 110px; }

/* Scanner: cost carried from your last scan; basket empty state */
.sr-costfrom { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.m-bk-empty { border: 1px dashed var(--border); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 10px; }
.m-bk-empty ol { margin: 8px 0 0 18px; padding: 0; } .m-bk-empty li { margin: 4px 0; }

/* Product picture + ASIN next to product names */
.pt-row { display: flex; gap: 10px; align-items: flex-start; }
.pt-img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--border); flex: none; }
.pt-body { min-width: 0; flex: 1; }
.pt-asin { font-size: 11.5px; font-family: var(--mono, ui-monospace, monospace); margin-top: 1px; }
.pt-asin a { color: var(--accent); text-decoration: none; } .pt-asin a:hover { text-decoration: underline; }

/* Orders: order number compact */
.data-table td.amz-oid { font-size: 11.5px; white-space: normal; word-break: break-all; max-width: 110px; line-height: 1.3; color: var(--muted); }

/* Offers now: Sold 30d column stands out */
.ot .ot-sold { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.ot td.ot-sold b { font-size: 15px; }
.ot th.ot-sold { color: var(--accent); border-radius: 6px 6px 0 0; }
.ot tfoot td.ot-sold { border-radius: 0 0 6px 6px; }

/* Supplier Hunter */
.lr-f-info { color: var(--info); background: var(--info-soft); }
.sh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 12px; }
.sh-big { font-size: 24px; font-weight: 650; margin: 4px 0 2px; }
.sh-keys { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 13px; }
.sh-empty { line-height: 1.55; }
.sh-add { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.sh-add input { flex: 1; min-width: 200px; padding: 6px 8px; }
.sh-act { white-space: nowrap; text-align: right; }
.sh-off td { opacity: .55; }
.sh-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 16px; }
.sh-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); }
.sh-form input, .sh-form textarea { padding: 6px 8px; font: inherit; color: var(--text); }
.sh-form .sh-check { flex-direction: row; align-items: center; gap: 8px; }
.sh-form .sh-wide { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sh-form label.sh-wide { flex-direction: column; align-items: stretch; }
.sh-aicard { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Supplier Hunter: search */
.sh-runbar { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.sh-qs { margin: 6px 0 0 18px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.sh-why { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; margin-top: 6px; }
.sh-why[hidden] { display: none; }
.sh-evrow td { background: var(--surface-2); }
.sh-ev { display: flex; flex-direction: column; gap: 8px; white-space: normal; }
.sh-evi { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }

/* Supplier Hunter: checks */
.sh-btns { display: flex; flex-direction: column; gap: 6px; }
.sh-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.sh-score { margin-bottom: 6px; }
.sh-parts td { padding: 4px 8px; font-size: 13px; }

/* Supplier Hunter: AI review */
.sh-aicol { min-width: 180px; max-width: 280px; }
.sh-aisum { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; margin-top: 4px; }
.sh-aibox { border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 12px; background: var(--surface); }
.sh-ul { margin: 4px 0 6px 18px; font-size: 13px; line-height: 1.5; }

/* Repricer: strategy by stock age */
.rp-age-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.rp-age-all { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; font-size: 13px; }
.rp-age-t { max-width: 560px; }
.rp-age-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }

/* ── Consistency pass (Seb, 14 Nov 2026) ─────────────────────────────────────────────────────────────
   One height scale for every control so rows line up: 32 px (buttons, inputs, selects, search, segment bars)
   and 28 px compact (small buttons, inputs and selects inside tables). Tiles in a row are the same height;
   only tiles that go somewhere look clickable (pointer + hover), static tiles never do. */
:root { --ctl-h: 32px; --ctl-h-sm: 28px; }
.btn, .search input, .pk-input,
input[type=text], input[type=number], input[type=email], input[type=search], input[type=password], input[type=date], input[type=tel], input[type=url], input:not([type]), select {
  height: var(--ctl-h); min-height: var(--ctl-h); box-sizing: border-box;
}
.btn-sm, .pk-plain, .data-table .btn, .data-table select, .data-table input:not([type=checkbox]):not([type=radio]) { height: var(--ctl-h-sm); min-height: var(--ctl-h-sm); box-sizing: border-box; }
.btn-lg { height: 44px; min-height: 44px; }
.btn.btn-xs { height: 20px; min-height: 0; }
.pk-input input, .pk-input select, .scan-input input, .search input[type=search] { min-height: 0; }
.pk-input input, .pk-input select, .scan-input input { height: 100%; }
.scan-input input { height: auto; }
/* toolbars: everything in one line is 32 px, including compact selects */
.table-toolbar .pk-plain, .ph-actions .pk-plain, .table-toolbar select, .ph-actions select { height: var(--ctl-h); min-height: var(--ctl-h); }
.table-toolbar, .ph-actions, .rp-bulk { align-items: center; }
.btn { justify-content: center; white-space: nowrap; line-height: 1; }
.btn svg { flex: none; }
/* tiles */
.kpis { align-items: stretch; }
.kpis > .kpi { height: 100%; box-sizing: border-box; }
button.kpi { font: inherit; color: inherit; text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--border) !important; }
.kpi.is-link, button.kpi, .card.is-link { cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .12s; }
.kpi.is-link:hover, button.kpi:hover, .card.is-link:hover { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-ring), var(--shadow-sm); transform: translateY(-1px); }
.kpi.is-link:focus-visible, button.kpi:focus-visible, .card.is-link:focus-visible { outline: 0; border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-ring); }
.kpi.is-link .kpi-label::after, button.kpi .kpi-label::after, .card.is-link > .card-title::after, .card.is-link .kpi-label:first-child::after { content: '›'; margin-left: auto; color: var(--faint); font-size: 15px; line-height: 1; }
.kpi.is-active { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-ring); }
/* page header actions: one height for every button in the bar; tile rows the same height across wrapped rows */
.ph-actions .btn, .ph-actions .btn-sm, .page-header .btn { height: var(--ctl-h); min-height: var(--ctl-h); }
.kpis { grid-auto-rows: 1fr; }
.arb-sec .btn:not(.btn-sm):not(.btn-lg) { height: var(--ctl-h); min-height: var(--ctl-h); padding-top: 0; padding-bottom: 0; }
/* repricer: selection column + bulk Min / Max row */
.rp-selcol { width: 28px; padding-right: 0 !important; }
.rp-bulkrow th { background: var(--surface-2); padding-top: 6px; padding-bottom: 6px; vertical-align: middle; text-transform: none; letter-spacing: 0; font-weight: 500; }
.rp-bulk-lab { color: var(--muted); font-size: 12.5px; }
.si-recheck { background: transparent; color: var(--neg) !important; border: 1px solid var(--neg); cursor: pointer; font: inherit; font-weight: 600; line-height: inherit; }
.si-recheck[disabled] { opacity: .6; cursor: default; }
/* Product scanning: phone + websites on the left, lookup and every scan on the right */
.pl-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.pl-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 12px; }
.pl-side-card { display: flex; flex-direction: column; gap: 8px; }
.pl-side-card .card-title { display: flex; align-items: center; gap: 6px; }
.pl-side-card .btn { align-self: flex-start; }
.pl-qr svg { width: 100%; max-width: 200px; height: auto; display: block; margin: 4px auto; }
.pl-soon { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--r-md); padding: 6px 10px; }
.pl-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pl-main > .card, .pl-main > #pl-result { margin: 0; }
.pl-hist { padding: 0; overflow: hidden; }
.pl-hist-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.pl-hist-head .card-title { display: flex; align-items: center; gap: 6px; }
.pl-hist .sh-filters { box-shadow: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; margin: 0; }
.pl-pick { display: flex; flex-direction: column; gap: 6px; }
.pl-pick-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 8px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
.pl-pick-row:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.pl-pick-row img, .pl-pick-noimg { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; background: #fff; display: grid; place-items: center; color: var(--faint); }
.pl-pick-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pl-pick-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .pl-layout { grid-template-columns: 1fr; } .pl-side { position: static; flex-direction: row; flex-wrap: wrap; } .pl-side-card { flex: 1 1 260px; } }


/* Wholesale scans (Product Sourcing) */
.ws-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 16px;align-items:end}
.ws-form .pk-input{width:100%}
.ws-form .pk-input select{border:0;background:transparent;font:inherit;font-size:14px;width:100%;outline:none;color:inherit;height:100%;padding:0 !important;margin:0;box-shadow:none}
.ws-form .pk-input i:last-child:not(:first-child){white-space:nowrap}
.ws-form .ws-span2{grid-column:span 2}
.ws-form .pk-field.is-off .pk-input{background:var(--surface-2,#f7f7f9)}
.ws-form .pk-field.is-off input{color:var(--faint)}
.ws-file{margin-top:16px;height:72px}
.ws-file.over,.ws-file.has-file{border-color:var(--accent);color:var(--accent);background:var(--accent-ring,rgba(79,70,229,.06))}
.ws-note{margin-top:8px}
.ws-sum{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}
@media (max-width:900px){.ws-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.ws-form{grid-template-columns:1fr}.ws-form .ws-span2{grid-column:auto}}

/* Scan history table + hover pop-up */
.ws-cats th,.ws-cats td{white-space:nowrap;vertical-align:middle}
.ws-cats td.ws-sup{max-width:250px}
.ws-cats td.ws-sup .cell-sub{overflow:hidden;text-overflow:ellipsis;max-width:250px}
.ws-cats td.ws-acts{text-align:right;width:1%}
.ws-cats td.ws-acts>div{display:inline-flex;gap:6px;justify-content:flex-end}
.ws-cats td.ws-acts .btn{min-width:84px;justify-content:center}
.ws-cats tbody tr{cursor:default}
.ws-cats tbody tr:hover td{background:var(--surface-2,#f7f7f9)}

/* Scan results under the row */
.ws-cats tbody tr[data-row]{cursor:pointer}
.ws-cats tbody tr.is-open td{background:var(--surface-2,#f7f7f9)}
.ws-cats .ws-chev{display:inline-flex;vertical-align:-2px;margin-right:6px;color:var(--faint);transition:transform .15s}
.ws-cats tr.is-open .ws-chev{transform:rotate(90deg);color:var(--accent)}
.ws-cats tr.ws-exp>td{padding:0;white-space:normal;background:var(--surface-2,#f7f7f9)}
.ws-cats tr.ws-exp:hover td{background:var(--surface-2,#f7f7f9)}
.ws-exp-in{margin:0 12px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface,#fff);overflow:hidden}
.ws-exp-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 14px;border-bottom:1px solid var(--border)}
.ws-exp-bar .pk-input{height:var(--ctl-h-sm,28px)}
.ws-exp-q{width:240px}.ws-exp-sort{width:150px}
.ws-exp-sort select{border:0;background:transparent;font:inherit;font-size:13px;width:100%;outline:none;color:inherit;height:100%;padding:0 !important}
.ws-exp-n{margin-left:auto;color:var(--muted);font-size:12px}
.ws-exp-msg{padding:28px 16px;text-align:center;color:var(--muted)}
.ws-exp-in td,.ws-exp-in th{white-space:normal}
.ws-exp-in tbody tr{cursor:default}
/* AI Buyer results table: headers on one line, numbers don't break */
.si-table th{white-space:nowrap}
.si-table td.num{white-space:nowrap;min-width:92px}
.si-table td.num .cell-sub{white-space:normal;max-width:150px;margin-left:auto}
.si-table td:nth-child(3){min-width:190px}
.si-table td.si-acts{white-space:nowrap;text-align:right;width:1%}
.si-table td.si-acts .btn{min-width:78px;justify-content:center;margin-left:6px}

/* Product scanning: phone | lookup | websites on one row, everything else full width */
.pl-top{display:grid;grid-template-columns:260px minmax(0,1fr) 260px;gap:16px;align-items:stretch;margin-bottom:16px}
.pl-top>.card{margin:0}
.pl-top .pl-side-card{display:flex;flex-direction:column;gap:10px;padding:16px}
.pl-top .pl-side-card>:last-child{margin-top:auto}
.pl-top .pl-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px 14px;align-items:end;padding:16px}
.pl-top .pl-code{grid-column:1 / 4;grid-row:1}
.pl-top .pl-go{grid-column:4;grid-row:1;height:var(--ctl-h,34px)}
.pl-top .pl-bar .pk-field{min-width:0}
.pl-top .pl-bar .pk-input{width:100%}
.pl-top #pl-vat{display:flex;width:100%}.pl-top #pl-vat button{flex:1}
@media (max-width:1200px){.pl-top{grid-template-columns:1fr 1fr}.pl-top .pl-bar{grid-column:1 / -1;grid-row:1}}
@media (max-width:640px){.pl-top{grid-template-columns:1fr}.pl-top .pl-bar{grid-template-columns:1fr}.pl-top .pl-code,.pl-top .pl-go{grid-column:auto;grid-row:auto}}
#page-scanner #pl-result{margin-bottom:16px}
/* Menu section headings: owl + name on one line, all starting at the same point, no channel dots (Seb 14 Nov 2026) */
.nav-group-head { text-align: left; }
.nav-group-head .chan-mark { display: none; }
.nav-group-head > span:not(.chan-mark) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* Qogita scanning: brand chips */
.ws-form .ws-span4{grid-column:1 / -1}
.qg-bfield{position:relative}
.qg-brands{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:var(--ctl-h,34px);padding:4px 8px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface);cursor:text}
.qg-brands:focus-within{border-color:var(--accent)}
.qg-chips{display:contents}
.qg-chip{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 4px 0 10px;border-radius:999px;background:var(--accent-ring,rgba(79,70,229,.08));color:var(--accent);font-size:13px;font-weight:500;text-transform:capitalize}
.qg-chip button{display:inline-grid;place-items:center;width:18px;height:18px;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer;padding:0}
.qg-chip button:hover{background:rgba(79,70,229,.15)}
.qg-brands input{flex:1;min-width:180px;border:0;outline:0;background:transparent;font:inherit;font-size:14px;height:24px;color:var(--text)}
.qg-sugg{position:absolute;left:0;right:0;top:100%;margin-top:4px;z-index:30;background:var(--surface,#fff);border:1px solid var(--border);border-radius:10px;box-shadow:0 10px 28px rgba(15,23,42,.12);max-height:280px;overflow:auto;padding:4px}
.qg-sugg button{display:flex;justify-content:space-between;gap:12px;width:100%;padding:8px 10px;border:0;border-radius:8px;background:none;font:inherit;font-size:14px;text-align:left;cursor:pointer;color:inherit}
.qg-sugg button:hover{background:var(--surface-2,#f7f7f9)}
.qg-sugg .muted{font-size:12px}
.qg-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;flex-wrap:wrap}
.qg-acts{display:inline-flex;gap:8px}
.qg-acts .btn{min-width:96px;justify-content:center}
.qg-note{margin-top:8px}
/* Watchlist, Buy list, seen at suppliers (Product Sourcing) */
.si-acts-in{display:inline-flex;gap:6px;justify-content:flex-end;flex-wrap:nowrap}
.si-table td.si-acts .si-acts-in .btn{margin-left:0;min-width:0}
.btn.on{border-color:var(--accent);color:var(--accent)}
.sp-tabs{margin-bottom:12px}
.sp-cnt:not(:empty){display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;margin-left:4px;border-radius:999px;background:var(--neg,#DC2626);color:#fff;font-size:11px;font-weight:600}
.sp-wl td,.sp-bl td{vertical-align:middle}
.sp-wl .cell-title,.sp-bl .cell-title{max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sp-in{width:120px;margin-left:auto;height:var(--ctl-h-sm,28px)}.sp-in input{text-align:right}
.sp-qty{width:72px;margin-left:auto;height:var(--ctl-h-sm,28px)}.sp-qty input{text-align:right}
.sp-acts{white-space:nowrap;text-align:right;width:1%}.sp-acts .btn{margin-left:6px}
.sp-feed{display:flex;flex-direction:column}
.sp-ev{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--border)}
.sp-ev.new{background:var(--accent-ring,rgba(79,70,229,.05));box-shadow:inset 3px 0 0 var(--accent)}
.sp-ev-ic{flex:0 0 32px;height:32px;border-radius:8px;display:grid;place-items:center;background:var(--surface-2,#f4f4f6);color:var(--muted)}
.sp-ev-ic.pos{background:var(--pos-soft,#E7F8F0);color:var(--pos,#059669)}
.sp-ev-main{flex:1;min-width:0}.sp-ev-msg{color:var(--muted);font-size:13px;margin-top:2px}
.sp-ev-at{color:var(--faint);font-size:12px;white-space:nowrap}
.sp-ug{border-bottom:1px solid var(--border)}
.sp-ug-head{display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--surface-2,#f7f7f9)}
.sp-ug-head .btn{margin-left:auto}
.sp-seen{margin-top:16px;padding:0;overflow:hidden}
.sp-acts-row{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--border)}
.sp-acts-row .ph-meta{margin-right:auto}
.sp-seen-head{display:flex;align-items:baseline;gap:10px;padding:12px 16px 8px}
.sp-seen-empty{padding:12px 16px 16px;color:var(--muted);font-size:13px}
.sp-seen-t td{vertical-align:middle}
.sp-wl th,.sp-bl th,.sp-seen-t th,.sp-wl td.num,.sp-bl td.num,.sp-seen-t td.num{white-space:nowrap}
.sp-wl .cell-title,.sp-bl .cell-title{max-width:300px}
.sp-wl .sp-in{width:92px}.sp-wl .cell-title{max-width:250px}
.ws-cats tr.ws-exp>td>.ws-exp-in{width:0;min-width:calc(100% - 24px);box-sizing:border-box}
.si-acts-in{display:inline-grid;grid-template-columns:auto auto;gap:6px}
.si-acts-in .btn{justify-content:center}
/* Results under a scan row: type badge inside the product cell, tighter number columns, so it fits */
.si-kind-in{display:none}
.ws-exp-in .si-kind-in{display:block;margin:6px 0 2px}
.ws-exp-in .si-table th:first-child,.ws-exp-in .si-table td:first-child{display:none}
.ws-exp-in .si-table td.num{min-width:76px}
.ws-exp-in .si-table td:nth-child(3){min-width:160px}
.si-acts-in{grid-template-columns:1fr;min-width:96px}
.si-acts-in .btn{white-space:nowrap;width:100%}
.ws-exp-in .si-table td:nth-child(2){min-width:0}
.si-table td.si-acts{min-width:112px}
.ws-exp-in .arb-ptitle{max-width:240px}
/* Results inside an open scan: no row hover fill, buttons at the top of their cell */
.ws-cats .ws-exp-in tbody tr:hover td{background:transparent}
.ws-exp-in .si-table td.si-acts{vertical-align:top}
.arb-switch{width:230px;height:var(--ctl-h,34px)}.arb-switch select{border:0;background:transparent;font:inherit;font-size:14px;width:100%;outline:none;color:inherit;height:100%;padding:0 !important}
/* Menu section names never cut off ("Product Sourcing") */
.nav-group-head > span:not(.chan-mark) { overflow: visible; text-overflow: clip; letter-spacing: 0.02em; }
/* Product page: Register on Amazon / eBay */
.sv-head{position:relative}
.sv-reg-btns{position:absolute;top:0;right:0;display:flex;gap:6px}
@media (max-width:720px){.sv-reg-btns{position:static;order:3;width:100%;margin-top:8px}}
@media (min-width:721px){.sv-head .scan-title{padding-right:290px}}
/* List on eBay pop-up */
.pk-modal.ebl{max-width:920px}
.ebl-msg{padding:24px 4px;color:var(--muted)}
.ebl-prod{display:flex;gap:12px;align-items:flex-start;margin:6px 0 14px}
.ebl-prod img{width:56px;height:56px;object-fit:contain;border:1px solid var(--border);border-radius:8px;background:#fff}
.ebl-sec{font-weight:600;margin:16px 0 8px}
.ebl .ws-form .pk-input select{border:0;background:transparent;font:inherit;font-size:14px;width:100%;outline:none;color:inherit;height:100%;padding:0 !important}
.ebl-photos{display:flex;flex-wrap:wrap;gap:8px}
.ebl-ph,.ebl-add{width:88px;height:88px;border:1px solid var(--border);border-radius:10px;display:grid;place-items:center;position:relative;overflow:hidden;background:var(--surface)}
.ebl-ph img{width:100%;height:100%;object-fit:cover}
.ebl-ph button{position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
.ebl-add{border-style:dashed;cursor:pointer;color:var(--muted);font-size:12px;gap:2px;align-content:center}
.ebl-add:hover{border-color:var(--accent);color:var(--accent)}
.ebl-desc{width:100%;box-sizing:border-box;border:1px solid var(--border);border-radius:var(--r-md);padding:10px;font:inherit;font-size:14px;resize:vertical;background:var(--surface);color:var(--text)}
.ebl-ready{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:12px 14px;margin-top:12px;border:1px solid var(--accent);border-radius:10px;background:var(--accent-ring,rgba(79,70,229,.05))}
#ebl-result .alert{margin-top:12px}
.ebl input.ebl-filled{background:var(--accent-ring,rgba(79,70,229,.06))}
.ebl .pk-input:has(input.ebl-filled){border-color:var(--accent)}
.ebl-steps{margin:12px 0 14px 20px;padding:0;line-height:1.6}
.ebl-copies{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:10px;overflow:hidden}
.ebl-copy{display:grid;grid-template-columns:170px 1fr auto;gap:12px;align-items:center;padding:8px 12px;border-bottom:1px solid var(--border)}
.ebl-copy:last-child{border-bottom:0}
.ebl-copy-v{white-space:pre-wrap;word-break:break-word;font-size:14px}
/* Back to the page you came from */
#qo-backbar{padding-top:14px}
#qo-backbar[hidden]{display:none}
#qo-backbar .btn{gap:4px}
/* Scan lists: tick boxes and delete */
.ws-cats th.ws-tick,.ws-cats td.ws-tick{width:28px;padding-right:0}
.ws-cats .ws-tick input{width:16px;height:16px;cursor:pointer;accent-color:var(--accent)}
.ws-cats .ws-del{min-width:0 !important;width:32px;padding:0;justify-content:center}
.ws-cats .ws-del:hover{color:var(--neg,#DC2626);border-color:var(--neg,#DC2626)}
#ws-delsel{color:var(--neg,#DC2626)}
/* Scan panel: report inside, product table */
.ws-exp-in .card.arb-sec{box-shadow:none;border:0;margin:0}
.ws-exp-in .si-prod .si-kind-in{display:block;margin-top:6px}
.ws-exp-bar .seg{flex-wrap:nowrap}
/* Up / down arrows in number boxes: one size everywhere, always on the box's right edge */
.qo-step{display:inline-flex;flex-direction:column;justify-content:center;flex:none;width:18px;height:26px;margin-left:2px;opacity:.6;transition:opacity .12s;vertical-align:middle;align-self:center}
.qo-step.qo-step-in{position:relative;z-index:1;margin-left:-22px;margin-right:4px}
input.qo-has-step{padding-right:24px !important}
.qo-sbox{position:relative;display:inline-flex;align-items:center;min-width:0}
.qo-sbox>input{flex:1 1 auto}
.qo-sbox>.qo-step.qo-step-in{position:absolute;right:3px;top:50%;transform:translateY(-50%);margin:0}
.rp-table input.rp-mm{min-width:0 !important}
.pk-input:hover .qo-step,.pk-input:focus-within .qo-step,input:hover+.qo-step,input:focus+.qo-step,.qo-step:hover{opacity:1}
.qo-step-b{display:grid;place-items:center;width:18px;height:13px;padding:0;border:0;border-radius:3px;background:transparent;color:var(--muted);cursor:pointer;line-height:0}
.qo-step-b:hover{background:var(--accent-ring,rgba(79,70,229,.1));color:var(--accent)}
.qo-step-b:active{background:var(--accent);color:#fff}
input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
input[type=number]{-moz-appearance:textfield}

/* Repricer: header stays put */
/* (while you scroll the SKUs) */
.table-wrap:has(> .rp-table){max-height:calc(100vh - 150px);overflow:auto}
.rp-table thead{position:sticky;top:0;z-index:3}
.rp-table thead th{background:var(--surface)}
.rp-table thead .rp-bulkrow th{background:var(--surface-2);box-shadow:inset 0 -1px 0 var(--border)}
/* Repricer: fit to page (product column wraps; the tick-box column moved it to 3rd) */
.rp-table td:nth-child(3){width:240px;max-width:240px}
.rp-table td:nth-child(3) .cell-sub{white-space:normal;overflow-wrap:anywhere}
.rp-table td:nth-child(3) .cell-title{max-width:none}
/* Review 15 Nov: tables fit the page */
.data-table td:has(.pt-row){width:240px;max-width:240px}
.data-table .pt-body .cell-sub{white-space:normal;overflow-wrap:anywhere}
.data-table .pt-body .cell-title{max-width:100%}
.ws-cats td.ws-sup{max-width:210px}
.ws-cats td.ws-sup .cell-sub{max-width:210px}
.amz-sold-t td .cell-sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Repricer header tidy (15 Nov) */
.rp-table thead tr:first-child th{vertical-align:bottom;padding-top:10px;padding-bottom:10px;line-height:1.3}
.rp-table thead select.rp-metric{height:24px !important;min-height:0 !important;width:auto !important;min-width:0 !important;padding:0 22px 0 8px;font:600 11px/22px var(--font) !important;text-transform:uppercase;letter-spacing:.04em;color:var(--text-2);border-radius:6px;background-position:right 6px center}
.rp-table thead .th-sub{margin-top:3px;font-size:10.5px}
.rp-table thead #rp-vat{display:block;margin:3px 0 0 auto;height:auto !important;min-height:0 !important;padding:0;border:0;background:none;font:500 10.5px var(--font);color:var(--accent);text-transform:none;letter-spacing:0;cursor:pointer}
.rp-table thead #rp-vat:hover{text-decoration:underline}
.rp-bulkrow th{vertical-align:middle}
.rp-bulkrow .ph-meta{display:block;margin-top:4px;font-size:11px;white-space:normal}
.rp-bulkrow #rp-bulk-go{height:28px}
.rp-table thead select.rp-metric{max-width:118px}
/* Review 15 Nov (2): every table fits at 1400px */
.data-table .cell-title{max-width:220px}
.data-table td:has(.pt-row){width:230px;max-width:230px}
.rp-table td:nth-child(3){width:230px;max-width:230px}
.fo-table td:nth-child(1){max-width:230px}
.data-table .amz-scan{white-space:normal}
.data-table td .badge{white-space:normal;max-width:170px}
.ws-cats td.ws-sup,.ws-cats td.ws-sup .cell-sub{max-width:190px}
.fo-table td:last-child{max-width:180px;white-space:normal}
/* Codes: one look everywhere (Seb, 15 Nov 2026): ASIN / EAN / SBR- IDs are highlighted links to the scan result */
a.qo-code, a.si-asin, a[href^="#scan-history/product/"]{color:var(--accent);font-weight:500;text-decoration:none;border-bottom:1px dotted currentColor;cursor:pointer;white-space:nowrap}
a.qo-code:hover, a.si-asin:hover, a[href^="#scan-history/product/"]:hover{border-bottom-style:solid}
.cogs-found{display:flex;flex-direction:column;gap:8px;padding:12px 16px;margin-bottom:12px;border:1px solid var(--box-border,var(--border));border-left:4px solid var(--accent);border-radius:var(--r-lg);background:var(--box,var(--surface))}
.cogs-found>div{display:flex;flex-direction:column;gap:2px}
/* Book-keeping: Suppliers & Stock Costs */
.bks-t td{vertical-align:top}
.bks-desc{max-width:280px;white-space:normal;overflow-wrap:anywhere}
.bks-t .cell-title{max-width:260px}
.bks-act{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;max-width:300px;margin-left:auto}
.bks-use{display:inline-flex;gap:6px;align-items:center}
.bks-use select{max-width:170px;font-size:12px}
.bks-find{margin-top:6px;max-width:300px}
.bks-find input{width:100%}
.bks-res{display:flex;flex-direction:column;gap:2px;margin-top:4px;max-height:220px;overflow:auto}
.bks-pick{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:6px 8px;border:1px solid var(--border);border-radius:var(--r-sm);background:var(--surface);cursor:pointer;font:inherit;color:var(--text)}
.bks-pick:hover{border-color:var(--accent)}
/* ▲ / ▼ % against the same dates last month on the dashboard boxes */
.kpi-delta{display:inline-block;margin-left:8px;padding:1px 6px;border-radius:999px;font-size:12px;font-weight:600;vertical-align:middle;letter-spacing:0;white-space:nowrap;cursor:help}
.kpi-delta.pos{color:var(--pos);background:var(--pos-soft)}
.kpi-delta.neg{color:var(--neg);background:var(--neg-soft)}
.kpi-delta.muted{color:var(--muted);background:var(--surface-2)}
.ws-brands{font-size:12px;font-weight:600;color:var(--accent);margin-top:1px;white-space:normal;overflow-wrap:anywhere;max-width:190px;line-height:1.3}
/* Book-keeping: Reports & Accountant Pack */
.bkr-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.bkr-grid-s{grid-template-columns:repeat(5,minmax(0,1fr))}
.bkr-box .kpi-label{display:flex;gap:8px;align-items:center}
.bkr-n{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:6px;background:var(--accent-soft);color:var(--accent);font-weight:700;font-size:12px}
.bkr-grid-s .kpi-value{font-size:18px}
.bkr-notes{margin:8px 0 0 18px;padding:0;display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--text-2)}
.bkr-tot td{font-weight:700;border-top:2px solid var(--border)}
@media (max-width:900px){.bkr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bkr-grid-s{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Watchlist: park a SKU */
.sp-park-add{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:0 16px 12px}
.sp-park-add .input{height:32px}

/* Back office (only what the app does not already have) */
.bo-care{display:grid;grid-template-columns:minmax(260px,1fr) 2fr;gap:12px;margin-top:12px;align-items:start} @media(max-width:800px){.bo-care{grid-template-columns:1fr}}
.bo-tk{display:block;padding:10px 14px;cursor:pointer;border-top:1px solid var(--border);color:var(--text);text-decoration:none} .bo-tk.on,.bo-tk:hover{background:var(--surface-2)}
.bo-msgs{display:flex;flex-direction:column;gap:8px;margin:12px 0} .bo-msg{padding:8px 10px;border-radius:var(--r-md,8px);background:var(--surface-2)} .bo-msg.quidowl{border-left:3px solid var(--accent,#6366f1)}
.bo-in{width:96px;text-align:right} .sp-t{margin:10px 0} .sp-t summary{cursor:pointer}

/* Navigation reshuffle (Seb, 20 Nov 2026): heading opens the section page, chevron button opens / closes, hover shows the list */
.nav-group { position: relative; }
.nav-group-head { padding-right: 32px; }
.nav-group-head.active { color: var(--accent); }
.nav-group-chev { position: absolute; right: 6px; top: 5px; border: 0; background: none; color: var(--faint); padding: 3px; border-radius: var(--r-sm); cursor: pointer; display: grid; place-items: center; }
.nav-group-chev:hover, .nav-group-chev:focus-visible { color: var(--text); background: var(--surface-2); }
.nav-group-chev .chev { transition: transform .15s ease; }
.nav-group.closed .nav-group-chev .chev { transform: rotate(-90deg); }
body.sb-collapsed .nav-group-chev { display: none; }
@media (hover: hover) and (min-width: 861px) { body:not(.sb-collapsed) .nav-group.closed:hover .nav-group-items, body:not(.sb-collapsed) .nav-group.closed:focus-within .nav-group-items { display: block; } }
.nav-soon { cursor: default; opacity: .6; } .nav-soon:hover { background: none; }
.nav-badge-soon { background: var(--surface-2); color: var(--muted); }
.sb-bell { border: 0; background: none; color: var(--faint); padding: 4px; border-radius: var(--r-sm); cursor: pointer; display: grid; place-items: center; position: relative; }
.sb-bell:hover { color: var(--text); background: var(--surface-2); }
.sb-brand .sb-bell + .sb-collapse { margin-left: 0; }
.qo-bell .qo-bell-badge { position: absolute; top: -3px; right: -5px; margin: 0; }
body.sb-collapsed .sb-brand .sb-bell { margin: 0; }
.hm-sec .hm-qa { padding: 10px 12px; gap: 10px; }
.hm-sec .hm-qa-ic { width: 30px; height: 30px; border-radius: 8px; }
.hm-sec .hm-qa b { font-size: 13px; } .hm-sec .hm-qa small { font-size: 11.5px; }
.sec-tools { display: none; }
@media (max-width: 860px) { .sec-tools:not([hidden]) { display: grid; margin: 12px 0 14px; } }

/* Sidebar by section (Seb, 20 Nov 2026): Home shows only the section titles; inside a section, only Home + that section's pages */
.nav-group-chev { display: none !important; }
body:not(.in-sec) .nav-group .nav-group-items { display: none !important; }
body.in-sec .sidebar-nav > .nav-item:not([data-page="start"]) { display: none; }
body.in-sec .nav-group:not(.cur) { display: none; }
body.in-sec .nav-group.cur .nav-group-items { display: block !important; }

/* v3: "Back to Home" at the top of a section's sidebar; Home itself is hidden there */
.sidebar-nav > .nav-item.nav-back { display: none; }
body.in-sec .sidebar-nav > .nav-item.nav-back { display: flex; }
body.in-sec .sidebar-nav > .nav-item[data-page="start"] { display: none; }
body.in-sec .nav-group.cur .nav-group-head { pointer-events: auto; }

/* Fonts v2 (Seb, 20 Nov 2026) */
/* Sidebar: Home keeps its size; section titles and pages 1px smaller */
.sidebar-nav .nav-item:not([data-page="start"]) .nav-label { font-size: 12.5px; }
.nav-group-head > span:not(.chan-mark) { font-size: 12px !important; }
/* One font on every page: codes, ASINs, SKUs and keys in Inter too (were the system monospace), figures line up */
.mono, .sr-code, .pt-asin, .qg-kv input, code, kbd, samp, pre { font-family: var(--font) !important; font-variant-numeric: tabular-nums; }
.num, .data-table td.num, .kpi-value, .hm-big { font-variant-numeric: tabular-nums; }
/* Older pages (Book-keeping, Suppliers, Goals, Email reports, Fee calculator, Settings): same title and subtitle as the rest */
.page-title { font-size: 22px; font-weight: 600; letter-spacing: -0.4px; line-height: 1.2; color: var(--text); }
.page-sub { font-size: 12px; color: var(--faint); margin-top: 3px; }
@media (max-width: 860px) { .page-title { font-size: 20px; } }

/* sec-tools compact (phones): one row of small chips, swipe sideways; the dashboard stays at the top of the screen */
@media (max-width: 860px) {
  .sec-tools:not([hidden]) { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 10px -16px 12px; padding: 0 16px 2px; -webkit-overflow-scrolling: touch; }
  .sec-tools::-webkit-scrollbar { display: none; }
  .sec-tools .hm-qa { flex: none; padding: 7px 12px 7px 8px; gap: 7px; border-radius: 999px; box-shadow: none; }
  .sec-tools .hm-qa:hover { transform: none; }
  .sec-tools .hm-qa-ic { width: 24px; height: 24px; border-radius: 999px; }
  .sec-tools .hm-qa-ic svg { width: 14px; height: 14px; }
  .sec-tools .hm-qa b { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
  .sec-tools .hm-qa small { display: none; }
}

/* scan result fits the screen (Seb, 20 Nov 2026): one column that never grows past the screen; long names wrap; offer tables scroll inside their card */
.sr { grid-template-columns: minmax(0, 1fr); }
.sr > * { min-width: 0; }
.sr-title, .sr-sub, .sr-vwhy { overflow-wrap: anywhere; }
.ot-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.m-app { overflow-x: hidden; }

/* verdict compact (Seb, 20 Nov 2026): same size family as the cards around it */
.sr-verdict { padding: 9px 12px; gap: 10px; border-radius: var(--r-lg); }
.sr-vbig { font-size: 13px; font-weight: 700; letter-spacing: .06em; min-width: 0; flex: none; padding: 3px 9px; border-radius: 999px; background: var(--surface); line-height: 1.4; }
.sr-vwhy { font-size: 12.5px; line-height: 1.4; }

/* phone fit v1 (Seb, 20 Nov 2026): found by checking every page at iPhone width */
@media (max-width: 860px) {
  /* period bars (Today / Yesterday / 7 days ... Custom) and tab bars: swipe sideways instead of pushing the page wider */
  .seg { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .seg::-webkit-scrollbar { display: none; }
  .seg > * { flex: none; }
  /* tables outside a scrolling box (Home, Featured Offer, vs Seller Snap, Reports): scroll inside their card */
  .main-content table:not(.data-table), .main-content .hm-table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* long codes and SKUs wrap */
  .main-content .mono { white-space: normal; overflow-wrap: anywhere; }
  /* belt and braces: the page itself never scrolls sideways */
  html, body { max-width: 100%; overflow-x: clip; }
  .main-content { min-width: 0; max-width: 100vw; }
}

/* basket rows v2: name takes the room (two lines max), small Add button on the right */
.m-sheet-body .m-bk-it .btn { width: auto; flex: none; height: 32px; padding: 0 14px; }
.m-bk-n { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* orders compact (Seb, 20 Nov 2026): order number small on two lines, status badges stacked, product name up to two lines */
#amz-o-table td.amz-oid { font-size: 11px; line-height: 1.35; width: 92px; max-width: 92px; color: var(--muted); }
#amz-o-table td.amz-ost { width: 1%; white-space: nowrap; }
#amz-o-table td.amz-ost > * { display: table; margin: 0 0 3px; font-size: 11px; }
#amz-o-table .cell-title { white-space: normal; overflow: hidden; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-width: none; min-width: 260px; line-height: 1.3; }

/* orders compact v2: the product cell owns the width (no overlap); order number breaks only at its dashes */
#amz-o-table .cell-title { min-width: 0; }
#amz-o-table td:nth-child(2) { min-width: 320px; }
#amz-o-table td.amz-oid { word-break: normal; overflow-wrap: normal; white-space: normal; width: 96px; max-width: 96px; }

.qo-home-logo { cursor: pointer; }

/* home sections phone: one row of five, icon above a short name */
@media (max-width: 860px) {
  .hm-quick.hm-sec { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
  .hm-sec .hm-qa { flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 5px; padding: 9px 3px 8px; }
  .hm-sec .hm-qa-ic { width: 32px; height: 32px; border-radius: 9px; }
  .hm-sec .hm-qa b { font-size: 11px; line-height: 1.2; font-weight: 600; }
  .hm-sec .hm-qa small { display: none; }
}

/* lp header phone: logo, Register, Login and the menu button all fit */
@media (max-width: 600px) {
  .lp-nav .lp-brand { min-width: 0; flex: 0 1 auto; overflow: hidden; }
  .lp-nav .lp-brand img { max-height: 34px; width: auto; }
  .lp-nav-r { gap: 6px; flex: none; }
  .lp-nav-r .btn { height: 34px; padding: 0 10px; font-size: 13px; }
  .lp-burger { width: 36px; height: 36px; }
}
@media (max-width: 360px) { .lp-nav-r .btn:not(.btn-primary) { display: none; } }

/* front page waiting list (Seb, 20 Nov 2026) */
.lp-wl { max-width: 640px; margin: 0 auto; padding: 22px; }
.lp-wl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-bottom: 16px; }
.lp-wl label { display: block; font-size: 13px; font-weight: 600; }
.lp-wl input[type=text], .lp-wl input[type=email], .lp-wl select { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md); font: inherit; font-weight: 400; background: var(--surface); color: var(--text); }
.lp-opt { font-weight: 400; color: var(--muted); }
.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lp-wl-msg { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-md); font-weight: 500; }
.lp-wl-msg.ok { background: var(--pos-soft); color: var(--pos); } .lp-wl-msg.bad { background: var(--neg-soft); color: var(--neg); }
@media (max-width: 600px) { .lp-wl-grid { grid-template-columns: 1fr; } .lp-wl { padding: 16px; } }

/* front page v2 (Seb, 20 Nov 2026): "what we do" strip */
.lp-what { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lp-what li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.lp-what b { display: block; color: var(--text); font-size: 14.5px; margin-bottom: 2px; }
.lp-what .lp-ic { flex: none; }
.lp-theme { display: inline-flex; }
@media (max-width: 900px) { .lp-what { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lp-what { grid-template-columns: 1fr; gap: 8px; } .lp-what li { padding: 12px 14px; } }

/* waiting list form v2: same height boxes, dropdown text not cut off, button beside the last field */
.lp-wl input[type=text], .lp-wl input[type=email], .lp-wl select { height: 44px; padding: 0 12px; line-height: normal; box-sizing: border-box; }
.lp-wl select { appearance: auto; -webkit-appearance: menulist; }
.lp-wl-btn { display: flex; align-items: flex-end; }
.lp-wl-btn .btn { width: 100%; height: 44px; justify-content: center; }

/* hero eyebrow bigger (Seb, 20 Nov 2026) */
.lp-hero .lp-eyebrow { font-size: 16px; padding: 7px 16px; gap: 8px; }
.lp-hero .lp-eyebrow svg { width: 17px; height: 17px; }

/* header steps (Seb, 20 Nov 2026): Scan · Analyse · Source · List · Sell · Reprice · Report · Account, joined by a line */
.lp-hnav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.lp-hsteps { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; gap: 0; position: relative; }
.lp-hsteps::before { content: ''; position: absolute; left: 30px; right: 30px; top: 15px; height: 2px; background: var(--accent-ring); }
.lp-hsteps li { position: relative; }
.lp-hstep { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 64px; padding: 0; background: none; border: 0; cursor: pointer; font: inherit; color: var(--text); }
.lp-hstep-ic { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; position: relative; transition: background .15s, color .15s, transform .15s; }
.lp-hstep b { font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); }
.lp-hstep:hover .lp-hstep-ic, .lp-hstep:focus-visible .lp-hstep-ic { background: var(--accent); color: #fff; transform: translateY(-1px); }
.lp-hstep:hover b { color: var(--accent); }
@media (max-width: 1240px) { .lp-hstep { width: 54px; } .lp-hstep b { font-size: 10px; } }

/* header steps row 2 (Seb, 21 Nov 2026): under 1100px the steps sit on their own row, spread across the full width */
@media (max-width: 1100px) {
  .lp-nav-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; row-gap: 8px; column-gap: 12px; }
  .lp-hnav { order: 3; flex: 0 0 100%; }
  .lp-hsteps { width: 100%; }
  .lp-hsteps li { flex: 1 1 0; display: flex; justify-content: center; min-width: 0; }
  .lp-hstep { width: 100%; max-width: 72px; }
  .lp-hsteps::before { left: 6.25%; right: 6.25%; }
  .lp section[id] { scroll-margin-top: 130px; }
}
@media (max-width: 600px) {
  .lp-nav-r .btn:not(.btn-primary) { display: none; }   /* Login is in the menu */
  .lp-hstep-ic { width: 30px; height: 30px; }
  .lp-hstep-ic svg { width: 14px; height: 14px; }
  .lp-hsteps::before { top: 14px; }
  .lp-hstep b { font-size: 10px; letter-spacing: 0; }
}

/* header row 1 phone fit (Seb, 21 Nov 2026): logo + Become a tester + day/night + menu on one line */
@media (max-width: 600px) {
  .lp-nav-in { flex-wrap: wrap; column-gap: 8px; }
  .lp-nav .lp-brand { flex: 0 1 auto; min-width: 0; }
  .lp-nav .qo-lock { gap: 6px; }
  .lp-nav .qo-mark { width: 30px; height: 30px; }
  .lp-nav .qo-words { width: 96px; }
  .lp-nav .qo-text { width: 96px; height: 20px; }
  .lp-nav .qo-tag { display: none; }
  .lp-nav .lp-brand img { max-height: none; }
  .lp-nav-r { gap: 6px; }
  .lp-nav-r .btn-primary { padding: 0 10px; font-size: 13px; }
}
@media (max-width: 380px) {
  .lp-nav .qo-mark { width: 26px; height: 26px; }
  .lp-nav .qo-words, .lp-nav .qo-text { width: 84px; } .lp-nav .qo-text { height: 18px; }
  .lp-nav-r .btn-primary { padding: 0 8px; font-size: 12.5px; }
  .lp-nav-r .lp-burger { width: 34px; height: 34px; }
}

/* header row 1 phone fit v2 (measured: logo 148 + buttons 207 did not fit in 343) */
@media (max-width: 600px) {
  .lp-nav .qo-words, .lp-nav .qo-text { width: 84px; } .lp-nav .qo-text { height: 18px; }
  .lp-nav .qo-lock { padding-left: 4px !important; padding-right: 8px !important; }
  .lp-nav-r .btn-primary { padding: 0 9px; font-size: 12.5px; }
}
@media (max-width: 380px) {
  .lp-nav-in { column-gap: 6px; }
  .lp-nav .qo-words, .lp-nav .qo-text { width: 74px; } .lp-nav .qo-text { height: 16px; }
  .lp-nav-r { gap: 5px; }
  .lp-nav-r .btn-primary { padding: 0 7px; font-size: 12px; }
  .lp-nav-r .lp-burger { width: 33px; height: 33px; }
}

/* buttons = header corner (Seb, 21 Nov 2026): hero, "How it connects" and footer buttons are exactly the header-corner buttons
   (desktop: 32px high, 13px text, 12px side padding; phone: 34px, 12.5px, 9px), natural width, centred */
.lp .lp-cta .btn, .lp .lp-cta .btn-lg, .lp .lp-foot .btn { min-height: 0; height: 32px; padding: 0 12px; font-size: 13px; min-width: 0; }
.lp .lp-cta { gap: 8px; }
@media (max-width: 600px) {
  .lp .lp-cta .btn, .lp .lp-cta .btn-lg, .lp .lp-foot .btn { height: 34px; padding: 0 9px; font-size: 12.5px; }
  .lp .lp-cta { justify-content: center; }
}

/* buttons = header corner, small phones (header uses 12px / 7px there) */
@media (max-width: 380px) { .lp .lp-cta .btn, .lp .lp-cta .btn-lg, .lp .lp-foot .btn { padding: 0 7px; font-size: 12px; } }

/* front page logo a bit smaller (Seb, 21 Nov 2026): header only, above phone width (phones already have their own size) */
@media (min-width: 601px) {
  .lp-nav .qo-mark { width: 40px; height: 40px; }
  .lp-nav .qo-words { width: 132px; gap: 3px; }
  .lp-nav .qo-text { width: 132px; height: 28px; }
  .lp-nav .qo-tag { font-size: 7.6px; }
}

/* sv-head phone fix */
@media (max-width:720px){
  .sv-head{flex-wrap:wrap}
  .sv-head .sv-reg-btns{position:static;order:3;flex:0 0 100%;margin-top:4px;flex-wrap:wrap}
  .sv-head .scan-title{padding-right:0;word-break:normal;overflow-wrap:anywhere}
}

/* qo-ids */
.qo-ids{display:inline-flex;gap:10px;flex-wrap:wrap;align-items:center;vertical-align:middle}
.qo-id{white-space:nowrap;display:inline-flex;align-items:center;gap:3px}
.qo-id b,.qo-id a{font-weight:600}
.qo-copy{border:0;background:transparent;color:var(--accent,#7c6cf0);cursor:pointer;padding:2px 3px;line-height:0;border-radius:4px}
.qo-copy:hover{background:rgba(124,108,240,.15)}
.qo-copy.done{color:#16a34a;line-height:1;font-size:12px}

/* qo-qg */
.qo-qg{height:24px;padding:0 8px;font-size:12px;gap:4px;margin-top:4px}
.qo-ean-need{opacity:.7}

/* system check 22/11/2026 */
/* one button size: small 28px, normal 32px (as the header corner). Small table buttons (Use, Claim, Log, Open) were 20px */
.btn.btn.btn-xs { height: 28px; min-height: 28px; padding: 0 10px; font-size: 12.5px; line-height: 26px; }
.btn.btn-sm { white-space: nowrap; }
@media (max-width: 860px) {
  /* period / tab bars never wider than the screen: swipe sideways */
  .seg { max-width: calc(100vw - 32px); min-width: 0; }
  .period, .table-toolbar { min-width: 0; max-width: 100%; }
  .amz-rec-h { overflow-wrap: anywhere; min-width: 0; }
  #page-reports table { display: block; max-width: 100%; overflow-x: auto; }
}
@media (max-width: 600px) {
  /* Scan history filters: two even columns, search across the top */
  .sh-filters { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }
  .sh-filters > * { width: 100% !important; min-width: 0; margin: 0 !important; }
  .sh-filters .sh-search { grid-column: 1 / -1; }
  .sh-filters > label:not(.sh-search) { display: flex; align-items: center; gap: 6px; }
  .sh-filters > label input { flex: 1; min-width: 0; }
}

/* system check 22/11/2026 b */
.arb-sec-a .btn.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.arb-sec-a .btn:not(.btn-sm):not(.btn-xs) { height: 32px; }
@media (max-width: 860px) { .amz-rec-h span { white-space: normal; } }

/* front page: tagline under the subheading (Seb, 22 Nov 2026) */
.lp-hero p.lp-hero-tag, p.lp-hero-tag { margin-top: 10px; font-weight: 600; color: var(--text); }

/* hero one line */
.lp-hero2 .lp-hero-top p:not(.lp-tagline) { max-width: 900px; text-wrap: balance; }
.lp-hero2 .lp-hero-top p.lp-hero-tag { margin-top: 8px; }

/* Repricer: extra profit from price rises (23 Nov 2026) */
.rp-g-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.rp-g-chart { display: flex; align-items: flex-end; gap: 3px; height: 90px; margin-top: 12px; padding: 6px 0; border-bottom: 1px solid var(--border, #e5e7eb); }
.rp-g-day { flex: 1; min-width: 4px; height: 100%; display: flex; align-items: flex-end; gap: 1px; }
.rp-g-day i { flex: 1; display: block; border-radius: 2px 2px 0 0; min-height: 0; }
.rp-g-day i.up { background: var(--success, #16a34a); } .rp-g-day i.dn { background: var(--danger, #dc2626); opacity: .7; }

.rp-g-scroll { max-height: 340px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--r-md, 8px); }
.rp-g-scroll thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); }
