:root {
  color-scheme: dark;
  --accent-rgb: 169, 85, 22;
  --bg: #121315;
  --bg-soft: #1b1c1f;
  --panel: rgba(15, 14, 12, 0.92);
  --panel-2: rgba(21, 20, 18, 0.94);
  --line: rgba(var(--accent-rgb), 0.24);
  --line-strong: rgba(var(--accent-rgb), 0.30);
  --text: #f3f1ec;
  --muted: #b5b5b3;
  --accent: #a95516;
  --accent-soft: #a95516;
  --ok: #287658;
  --danger: #ff6a8a;
  --radius: 16px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100vh; }
body {
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--accent-rgb), 0.14), transparent 28%),
    radial-gradient(circle at 86% 0%, rgba(var(--accent-rgb), 0.10), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.shell {
  min-height: 100vh;
}

.shell-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 0;
}

.shell-mast {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.shell-brandline {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-kicker {
  color: var(--accent-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shell-title {
  margin-top: 6px;
  font-size: 30px;
  line-height: 0.94;
  font-weight: 800;
}

.shell-copy {
  margin-top: 8px;
  max-width: 68ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.shell-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.shell-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  height: 38px;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 10px;
  background: rgba(21, 20, 18, 0.6);
  color: var(--text);
  padding: 0 14px;
  cursor: pointer;
}

.shell-link.subtle {
  border-color: var(--line);
  background: rgba(21, 20, 18, 0.6);
}

.shell-link.active {
  border-color: rgba(var(--accent-rgb), 0.34);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.26), rgba(var(--accent-rgb), 0.12));
  color: var(--text);
}

.shell-user {
  color: var(--muted);
  font-size: 13px;
}

.shell-status-dock {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shell-status-chip {
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(27, 26, 24, 0.86), rgba(16, 15, 13, 0.96));
  padding: 12px 14px;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.shell-status-chip span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shell-status-chip strong {
  font-size: 20px;
  line-height: 1;
  color: var(--text);
}

.shell-top-tabs {
  margin-top: 0;
}

.main {
  padding: 18px 22px 24px;
}

.workspace-shell {
  margin-bottom: 18px;
  padding: 0 0 6px;
}

.workspace-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.20);
}

.workspace-label {
  color: var(--accent-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-title {
  margin: 0;
  font-size: 28px;
  line-height: 0.98;
}

.workspace-copy {
  margin: 10px 0 0;
  max-width: 72ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.workspace-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace-pill {
  cursor: default;
}

.workspace-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.workspace-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  height: 38px;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(21, 20, 18, 0.6);
  color: var(--muted);
  padding: 0 14px;
  font-weight: 700;
}

.workspace-tab.active {
  border-color: rgba(var(--accent-rgb), 0.34);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.26), rgba(var(--accent-rgb), 0.12));
  color: var(--text);
}

.hero,
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  box-shadow: var(--shadow);
}

.card {
  border-color: rgba(var(--accent-rgb), 0.24);
  position: relative;
}

.card::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0), rgba(var(--accent-rgb), 0.42), rgba(var(--accent-rgb), 0));
  pointer-events: none;
}

.hero {
  padding: 32px;
  position: relative;
  overflow: hidden;
  border-color: rgba(var(--accent-rgb), 0.24);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto auto -70px -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.10) 0%, rgba(var(--accent-rgb), 0) 72%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -48px;
  right: -36px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.10) 0%, rgba(var(--accent-rgb), 0) 70%);
  pointer-events: none;
}

.hero-kicker {
  font-size: 11px;
  color: var(--accent-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 10px 0 12px;
  font-size: 56px;
  line-height: 0.92;
  max-width: 12ch;
}

.hero p {
  margin: 0;
  max-width: 65ch;
  color: var(--muted);
  line-height: 1.7;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.stats-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-chip-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-chip {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(32, 31, 29, 0.66), rgba(20, 19, 17, 0.92));
  padding: 14px;
  display: grid;
  gap: 8px;
}

.summary-chip-label {
  color: var(--accent-soft);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-chip-value {
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  color: var(--text);
}

.summary-chip-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.summary-chip-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.summary-chip-button.active {
  border-color: rgba(var(--accent-rgb), 0.34);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.12);
}

.summary-chip-value.sm {
  font-size: 20px;
}

.status-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-item {
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-left: 3px solid rgba(var(--accent-rgb), 0.52);
  border-radius: 10px;
  background: rgba(17, 16, 14, 0.58);
  padding: 10px 12px;
}

.status-item.ok {
  border-color: rgba(var(--accent-rgb), 0.2);
  border-left-color: rgba(var(--accent-rgb), 0.7);
}

.status-item.warn {
  border-color: rgba(var(--accent-rgb), 0.24);
  border-left-color: rgba(var(--accent-rgb), 0.74);
}

.status-item-label {
  color: var(--accent-soft);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-item-value {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text);
}

.status-item-copy {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.inline-stat-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.inline-stat {
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 10px;
  background: rgba(19, 18, 16, 0.56);
  padding: 9px 10px;
}

.inline-stat-label {
  color: var(--accent-soft);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inline-stat-value {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
}

.panel-intro {
  margin-top: 4px;
  max-width: 78ch;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(32, 31, 29, 0.66), rgba(20, 19, 17, 0.92));
  padding: 18px;
}

.stat-label {
  color: var(--accent-soft);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 10px;
  font-size: 38px;
  line-height: 0.95;
  font-weight: 700;
}

.stat-copy {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.stat-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.delta-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.delta-chip.up {
  border-color: #2c6944;
  color: #9aefbf;
}

.delta-chip.down {
  border-color: #7d2f2f;
  color: #ffb0b0;
}

.delta-chip.flat {
  border-color: rgba(var(--accent-rgb), 0.18);
  color: #d8e2de;
}

.btn,
.btn-ghost,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  height: 40px;
  line-height: 1;
  white-space: nowrap;
  border-radius: 14px;
  padding: 11px 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn {
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.34), rgba(var(--accent-rgb), 0.14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.icon-btn {
  width: 40px;
  min-width: 40px;
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(20, 19, 17, 0.74);
  color: var(--text);
}

.color-swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.color-swatch.active {
  border-color: var(--accent-soft);
  transform: scale(1.06);
}

.color-swatch:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.store-logo-preview {
  aspect-ratio: 1 / 1;
  width: min(160px, 100%);
  min-height: 160px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(27, 26, 24, 0.92), rgba(17, 16, 14, 0.98));
  overflow: hidden;
}

.store-logo-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #17191c;
}

.store-logo-preview-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 18px;
}

.vendor-stats-grid {
  margin-top: 0;
}

.vendor-revenue-panel,
.vendor-ops-panel {
  grid-column: span 6;
}

.chart-stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.chart-stack-lg {
  gap: 14px;
}

.chart-row {
  display: grid;
  gap: 8px;
}

.chart-row-card {
  padding: 12px 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(24, 23, 21, 0.92), rgba(17, 16, 14, 0.98));
}

.chart-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.chart-row-label {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.chart-row-value {
  color: var(--muted);
  font-size: 12px;
}

.chart-track {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1b1c1f 0%, #17191c 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  overflow: hidden;
}

.chart-track-tall {
  height: 10px;
}

.chart-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 100%);
}

.chart-row-subtle {
  color: var(--muted);
  font-size: 12px;
}

.chart-fill.accent {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 100%);
}

.chart-fill.ok {
  background: linear-gradient(90deg, #8be0b0 0%, #2fba70 100%);
}

.chart-fill.warn {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 100%);
}

.vendor-shop-card {
  gap: 14px;
}

.list-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.score-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  border: 1px solid rgba(206, 242, 178, 0.16);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(40, 54, 42, 0.84) 0%, rgba(18, 24, 20, 0.96) 100%);
  color: var(--accent-soft);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.score-badge small {
  color: var(--muted);
  font-size: 10px;
}

.vendor-card-metrics .metric {
  min-width: 0;
}

.vendor-card-footer {
  border-top: 1px solid rgba(var(--accent-rgb), 0.08);
  padding-top: 12px;
}

.compare-note {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.compare-note-value {
  font-size: 34px;
  line-height: 0.95;
  font-weight: 700;
}

.compare-note-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.analytics-grid {
  align-items: start;
}

.analytics-hero {
  padding-bottom: 18px;
}

.store-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.store-strip-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(32, 31, 29, 0.44), rgba(18, 17, 15, 0.82));
  padding: 16px;
}

.store-strip-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.store-strip-value {
  margin-top: 10px;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}

.analytics-main-card,
.analytics-side-card,
.analytics-orders-card {
  background: linear-gradient(180deg, rgba(27, 26, 24, 0.9), rgba(17, 16, 14, 0.96));
}

.analytics-main-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.analytics-tab-shell {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(29, 28, 26, 0.8);
}

.analytics-tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.analytics-tab.active {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.24), rgba(var(--accent-rgb), 0.10));
  color: #f3f1ec;
}

.analytics-metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.analytics-metric-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(32, 31, 29, 0.42), rgba(18, 17, 15, 0.8));
  padding: 16px;
}

.analytics-metric-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.analytics-metric-value {
  margin-top: 10px;
  font-size: 32px;
  line-height: 0.95;
  font-weight: 700;
}

.analytics-metric-copy {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.time-chart-shell {
  display: grid;
  gap: 10px;
}

.time-chart-values {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
}

.time-chart-frame {
  position: relative;
  height: 220px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 19, 17, 0.98) 0%, rgba(16, 15, 13, 0.98) 100%);
  border: 1px solid var(--line);
  padding: 16px 12px 12px;
  overflow: hidden;
}

.time-chart-gridlines {
  position: absolute;
  inset: 16px 12px 12px;
  display: grid;
  align-content: space-between;
  pointer-events: none;
}

.time-chart-gridlines span {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.time-chart-bars {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  align-items: end;
}

.time-bar-col {
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
}

.time-bar-value {
  min-height: 16px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.time-bar-fill {
  width: 100%;
  max-width: 34px;
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent) 100%);
  min-height: 4px;
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.22);
}

.time-chart-labels {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
}

.time-bar-label {
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.vendor-cockpit-hero {
  overflow: hidden;
}

.vendor-cockpit-hero::before {
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.24), transparent 42%),
    radial-gradient(circle at right center, rgba(var(--accent-rgb), 0.12), transparent 38%);
}

.cockpit-chip {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(22, 21, 19, 0.92), rgba(15, 14, 12, 0.98));
  padding: 18px;
}

.cockpit-chip::after {
  content: "";
  position: absolute;
  inset: auto -18px -22px auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), transparent 68%);
}

.cockpit-chip-label,
.analytics-summary-card span,
.command-deck-card span,
.analytics-snapshot-label,
.trend-stage-metric span,
.mix-row-label,
.leader-copy,
.pressure-row-copy {
  color: rgba(240, 239, 237, 0.62);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cockpit-chip-value {
  margin-top: 10px;
  font-size: 30px;
  line-height: 0.95;
  font-weight: 800;
}

.cockpit-chip-copy,
.analytics-summary-card div,
.command-deck-card div,
.analytics-snapshot-copy,
.mix-row-copy,
.pressure-row-copy {
  margin-top: 10px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
}

.cockpit-chip-copy.up,
.command-deck-card div.up,
.delta-pill.up {
  color: #8ef0c9;
}

.cockpit-chip-copy.down,
.command-deck-card div.down,
.delta-pill.down {
  color: #ff8f8f;
}

.cockpit-chip-copy.flat,
.command-deck-card div.flat,
.delta-pill.flat {
  color: var(--muted);
}

.analytics-summary-strip,
.analytics-snapshot-grid,
.command-deck-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.analytics-summary-card,
.analytics-snapshot-card,
.command-deck-card {
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(25, 24, 22, 0.84), rgba(15, 14, 12, 0.96));
  padding: 16px;
}

.analytics-summary-card strong,
.analytics-snapshot-value,
.command-deck-card strong {
  display: block;
  margin-top: 10px;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
}

.trend-stage {
  display: grid;
  gap: 18px;
}

.trend-stage-head {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trend-stage-metric {
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 18px;
  background: rgba(17, 16, 14, 0.84);
  padding: 14px 16px;
}

.trend-stage-metric strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  line-height: 1;
}

.trend-chart-shell {
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  border-radius: 24px;
  background: radial-gradient(circle at top, rgba(var(--accent-rgb), 0.16), transparent 45%), linear-gradient(180deg, rgba(17, 16, 14, 0.98), rgba(13, 12, 10, 1));
  padding: 14px;
}

.trend-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.trend-grid line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.trend-area {
  fill: url(#trendFill);
}

.trend-line {
  fill: none;
  stroke: var(--accent-soft);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 10px 22px rgba(var(--accent-rgb), 0.18));
}

.trend-dot {
  fill: var(--text);
  stroke: rgba(var(--accent-rgb), 0.36);
  stroke-width: 2;
}

.trend-chart-labels {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  margin-top: 12px;
}

.trend-label-col {
  text-align: center;
}

.trend-label-col strong {
  display: block;
  font-size: 11px;
}

.trend-label-col span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.leaderboard-list,
.mix-list,
.pressure-list {
  display: grid;
  gap: 12px;
}

.leader-row,
.pressure-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  border-radius: 18px;
  background: rgba(18, 17, 15, 0.82);
  padding: 14px 16px;
}

.leader-main,
.pressure-row > div {
  min-width: 0;
}

.leader-title,
.pressure-row-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.leader-side {
  text-align: right;
}

.leader-value {
  font-size: 18px;
  font-weight: 800;
}

.delta-pill {
  display: inline-flex;
  margin-top: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
}

.mix-panel + .mix-panel {
  border-top: 1px solid rgba(var(--accent-rgb), 0.08);
  padding-top: 18px;
}

.mix-row {
  display: grid;
  gap: 10px;
}

.mix-row-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.mix-row-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.18);
}

.stats-top-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-side-stack,
.stats-list,
.mix-stack {
  display: grid;
  gap: 12px;
}

.stats-submetrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-top-strip .summary-chip,
.stats-submetrics .summary-chip {
  min-height: 0;
}

.stats-metric-card {
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(27, 26, 24, 0.78), rgba(17, 16, 14, 0.94));
  padding: 14px 16px;
  min-height: 118px;
  display: grid;
  align-content: start;
}

.stats-metric-label {
  color: var(--accent-soft);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stats-metric-value {
  margin-top: 10px;
  font-size: 30px;
  line-height: 0.95;
  font-weight: 800;
}

.stats-metric-detail {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.stats-metric-delta {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
}

.stats-metric-delta.up {
  color: var(--ok);
}

.stats-metric-delta.down {
  color: var(--danger);
}

.stats-metric-delta.flat {
  color: var(--muted);
}

.stats-chart-frame {
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 19, 17, 0.96), rgba(15, 14, 12, 1));
  padding: 12px;
}

.stats-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.stats-chart-grid line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.stats-chart-area {
  fill: url(#statsTrendFill);
}

.stats-chart-line {
  fill: none;
  stroke: var(--accent-soft);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stats-chart-dot {
  fill: var(--text);
  stroke: var(--accent-soft);
  stroke-width: 2.5;
}

.stats-chart-dot-halo {
  fill: rgba(var(--accent-rgb), 0.14);
  stroke: rgba(var(--accent-rgb), 0.34);
  stroke-width: 1;
}

.stats-chart-point:hover .stats-chart-dot {
  fill: var(--accent-soft);
  stroke: var(--text);
}

.stats-chart-axis-label {
  fill: rgba(240, 239, 237, 0.62);
  font-size: 10px;
  font-weight: 700;
}

.stats-chart-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 4px 0;
  color: var(--muted);
  font-size: 11px;
}

.stats-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.stats-chart-legend i {
  width: 20px;
  height: 3px;
  border-radius: 99px;
  background: var(--accent-soft);
}

.sales-visual-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  align-items: stretch;
}

.sales-visual-layout .stats-chart-frame {
  height: 100%;
  padding: 18px;
  background:
    radial-gradient(circle at 80% 0%, rgba(var(--accent-rgb), 0.17), transparent 34%),
    linear-gradient(180deg, rgba(23, 22, 20, 0.98), rgba(13, 12, 10, 1));
}

.sales-insight-panel {
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 20px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.11), rgba(var(--accent-rgb), 0.12) 54%, rgba(16, 15, 13, 0.96));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sales-insight-label {
  color: var(--accent-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sales-insight-value {
  margin-top: 12px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.sales-insight-copy {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.sales-insight-rule {
  height: 1px;
  margin: 20px 0;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.42), transparent);
}

.stats-chart-strip {
  display: grid;
  gap: 10px;
}

.stats-scroll-box {
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
}

.stats-scroll-box-compact {
  max-height: 300px;
}

.stats-scroll-box-tall {
  max-height: 420px;
}

.stats-strip-cell {
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  border-radius: 14px;
  background: rgba(18, 17, 15, 0.62);
  padding: 12px 14px;
}

.stats-strip-top,
.mix-stack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stats-strip-top strong,
.mix-stack-head strong {
  font-size: 13px;
}

.stats-strip-top span,
.mix-stack-head span {
  color: var(--muted);
  font-size: 12px;
}

.stats-strip-bar,
.mix-stack-bar {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.stats-strip-bar span,
.mix-stack-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

.stats-strip-copy {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.stats-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  border-radius: 16px;
  background: rgba(18, 17, 15, 0.62);
  padding: 14px 16px;
}

.stats-list-main {
  min-width: 0;
}

.stats-list-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.stats-list-copy {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.stats-list-side {
  text-align: right;
}

.stats-list-value {
  font-size: 18px;
  font-weight: 800;
}

.stats-list-delta {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
}

.stats-list-delta.up {
  color: var(--ok);
}

.stats-list-delta.down {
  color: var(--danger);
}

.stats-list-delta.flat {
  color: var(--muted);
}

.status-pill-block {
  border-top: 1px solid rgba(var(--accent-rgb), 0.08);
  padding-top: 14px;
}

.section-kicker.tight {
  margin-bottom: 0;
}

.dash-metric-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dash-tile {
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(26, 25, 23, 0.82), rgba(16, 15, 13, 0.94));
  padding: 16px;
  min-height: 120px;
  display: grid;
  align-content: start;
}

.dash-tile.warn {
  border-color: rgba(var(--accent-rgb), 0.22);
}

.dash-tile-label {
  color: var(--accent-soft);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dash-tile-value {
  margin-top: 12px;
  font-size: 32px;
  line-height: 0.94;
  font-weight: 800;
}

.dash-tile-detail {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.dash-progress-stack,
.store-command-stack {
  display: grid;
  gap: 12px;
}

.vendor-stage-copy h1 {
  max-width: 9ch;
}

.dash-progress-row {
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  border-radius: 16px;
  background: rgba(18, 17, 15, 0.62);
  padding: 14px;
}

.dash-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dash-progress-head strong {
  font-size: 13px;
}

.dash-progress-head span {
  color: var(--muted);
  font-size: 12px;
}

.dash-progress-track {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.dash-progress-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

.dash-progress-track span.warn {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.9), rgba(var(--accent-rgb), 0.9));
}

.store-command-card {
  position: relative;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.08), rgba(var(--accent-rgb), 0) 24%),
    linear-gradient(180deg, rgba(26, 25, 23, 0.82), rgba(16, 15, 13, 0.96));
  padding: 18px 18px 16px 22px;
  overflow: hidden;
}

.store-command-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
}

.store-command-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.store-command-title {
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
}

.store-command-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.store-command-flag {
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}

.store-command-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.store-command-signal {
  display: inline-grid;
  gap: 6px;
  min-width: 120px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  border-radius: 14px;
  background: rgba(19, 18, 16, 0.62);
}

.store-command-signal small {
  color: var(--accent-soft);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.store-command-signal strong {
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
}

.store-command-signal.ok {
  border-color: rgba(var(--accent-rgb), 0.18);
}

.store-command-signal.warn {
  border-color: rgba(var(--accent-rgb), 0.16);
}

.store-command-toolbar {
  margin-top: 16px;
}

.store-command-toolbar {
  gap: 8px;
}

.vendor-board-hero {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  align-items: start;
}

.vendor-board-copy {
  min-width: 0;
}

.vendor-store-action-card {
  border-color: rgba(var(--accent-rgb), 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.vendor-store-action-card .store-rail-side {
  min-width: 120px;
}

.dash-progress-row.warn strong,
.dash-progress-row.warn span {
  color: var(--text);
}

.ops-compact-grid {
  display: grid;
  gap: 12px;
}

.ops-compact-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(32, 31, 29, 0.42), rgba(18, 17, 15, 0.8));
  padding: 14px;
}

.ops-compact-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ops-compact-value {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

.split-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.order-list {
  display: grid;
  gap: 12px;
}

.order-list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(32, 31, 29, 0.42), rgba(18, 17, 15, 0.8));
  padding: 14px 16px;
}

.order-list-main {
  min-width: 0;
}

.order-list-title {
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}

.order-list-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.order-list-side {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.order-list-amount {
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}

.order-list-status {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.order-list-status.warn {
  color: #f2d98d;
}

.order-open-btn {
  min-width: 84px;
  text-align: center;
}

.spark-grid {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 190px;
}

.spark-col {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.spark-bar-wrap {
  display: flex;
  align-items: end;
  justify-content: center;
  width: 100%;
  height: 132px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1b1c1f 0%, #17191c 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  padding: 8px 4px;
}

.spark-bar {
  width: 100%;
  max-width: 18px;
  min-height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe4b7 0%, #f2bd6b 100%);
}

.ops-nav-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ops-nav-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(27, 26, 24, 0.9), rgba(17, 16, 14, 0.96));
  padding: 12px;
}

.ops-nav-label {
  color: var(--accent-soft);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ops-nav-title {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
}

.ops-nav-copy {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.mini-graph {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mini-graph-row {
  display: grid;
  gap: 6px;
}

.mini-graph-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.mini-graph-label {
  font-size: 12px;
  color: var(--text);
}

.mini-graph-value {
  font-size: 11px;
  color: var(--muted);
}

.mini-graph-track {
  height: 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 999px;
  background: #1b1c1f;
  overflow: hidden;
}

.mini-graph-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 100%);
}

.mini-graph-fill.ok {
  background: linear-gradient(90deg, #b8ff8a 0%, #74d24a 100%);
}

@media (max-width: 980px) {
  .ops-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ops-nav-grid {
    grid-template-columns: 1fr;
  }
}

.spark-value {
  min-height: 14px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.spark-label {
  color: var(--muted);
  font-size: 10px;
}

.btn-danger {
  border: 1px solid rgba(255, 143, 143, 0.24);
  background: linear-gradient(180deg, #ffb0b0 0%, #e56a6a 100%);
  color: #2f1111;
}

.grid {
  display: grid;
  gap: 18px;
  margin-top: 16px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }

.card {
  padding: 18px;
}

.tab-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  height: 38px;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(21, 20, 18, 0.6);
  color: var(--muted);
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}

.tab-btn.active {
  border-color: rgba(var(--accent-rgb), 0.34);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.26), rgba(var(--accent-rgb), 0.12));
  color: var(--text);
}

.tab-btn small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--text);
  font-size: 10px;
  line-height: 1;
}

.tab-btn.active small {
  border-color: rgba(var(--accent-rgb), 0.36);
  background: rgba(var(--accent-rgb), 0.2);
  color: var(--text);
}

.integration-grid {
  margin-top: 18px;
  align-items: stretch;
}

.integration-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  border-color: rgba(var(--accent-rgb), 0.28);
}

.integration-head {
  display: grid;
  gap: 6px;
}

.integration-pills {
  margin-bottom: 2px;
}

.integration-fields {
  margin-top: 0;
  gap: 10px 12px;
  align-items: start;
}

.integration-field-span {
  grid-column: 1 / -1;
}

.integration-help {
  margin-top: 6px;
}

.integration-error {
  display: block;
  margin-top: 2px;
}

.integration-service {
  margin-top: 2px;
}

.integration-toolbar {
  margin-top: auto;
  padding-top: 8px;
}

.integration-shop-media {
  margin-top: 14px;
  border-color: rgba(var(--accent-rgb), 0.28);
}

.integration-notice {
  margin-top: 12px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.inline-note {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(27, 26, 24, 0.84) 0%, rgba(17, 16, 14, 0.94) 100%);
  padding: 14px;
}

.editor-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(27, 26, 24, 0.84) 0%, rgba(17, 16, 14, 0.94) 100%);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.catalog-split {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-title {
  margin: 6px 0 0;
  font-size: 18px;
  line-height: 1.1;
}

.section-kicker {
  color: var(--accent-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.section-title {
  margin: 8px 0 10px;
  font-size: 22px;
  line-height: 1;
}

.section-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.store-summary-brief {
  margin-top: -4px;
  margin-bottom: 10px;
}

.auth-title {
  font-size: 36px;
}

.mt-0 { margin-top: 0 !important; }
.mt-10 { margin-top: 10px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-18 { margin-top: 18px !important; }
.mb-10 { margin-bottom: 10px !important; }

.align-end {
  align-self: end;
}

.justify-end {
  justify-items: end;
}

.inline-flex-end {
  display: flex;
  align-items: end;
}

.minw-180 {
  min-width: 180px;
}

.field-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.field-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(21, 17, 19, 0.9);
  color: var(--text);
  padding: 12px 13px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-height: 48px;
  line-height: 1.3;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select::-ms-expand {
  display: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(164, 163, 161, 0.82);
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(var(--accent-rgb), 0.28);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.42);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

input:disabled,
textarea:disabled,
select:disabled {
  background: rgba(21, 17, 19, 0.56);
  color: rgba(164, 163, 161, 0.68);
  cursor: not-allowed;
}

textarea { min-height: 110px; resize: vertical; }

.list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.list-scroll {
  margin-top: 14px;
  max-height: min(72vh, 920px);
  overflow-y: auto;
  padding-right: 6px;
}

.scroll-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.scroll-card .list-scroll {
  flex: 1 1 auto;
  min-height: 240px;
  max-height: min(72vh, 920px);
}

.list-scroll > .list,
.list-scroll > .toolbar:first-child,
.list-scroll > .toolbar:last-child {
  margin-top: 0;
}

.list-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(30, 29, 27, 0.74) 0%, rgba(18, 17, 15, 0.94) 100%);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.list-item.compact {
  padding: 14px;
}

.list-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.list-title {
  font-size: 20px;
  line-height: 1;
}

.list-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: rgba(23, 22, 20, 0.92);
  padding: 0 10px 0 9px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #fffdfd;
  white-space: nowrap;
  overflow: hidden;
}

.pill::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  pointer-events: none;
}

.pill.ok {
  border-color: var(--accent);
}

.pill.warn {
  border-color: var(--accent);
}

.pill.danger {
  border-color: var(--accent);
}

.pill.soft {
  border-color: var(--accent);
  color: var(--text);
}

.pill-toggle {
  gap: 6px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: normal;
  overflow: visible;
}

.pill-toggle::before {
  display: none;
}

.pill-toggle input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--accent-soft);
}

.stack {
  display: grid;
  gap: 10px;
}

.notice {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--muted);
  padding: 12px 14px;
  display: none;
}

.notice.ok { color: var(--ok); border-color: #2c6944; }
.notice.error { color: var(--danger); border-color: #7d2f2f; }

.hidden {
  display: none !important;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel-2);
  box-shadow: var(--shadow);
  padding: 26px;
}

.boot-shell {
  min-height: 220px;
  display: grid;
  align-content: center;
}

.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--accent-rgb), 0.14), transparent 28%),
    radial-gradient(circle at 86% 0%, rgba(var(--accent-rgb), 0.10), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.boot-overlay .hero {
  width: min(760px, 100%);
}

.vendor-brief-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
}

.vendor-brief-totals {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brief-total {
  padding: 8px 0 12px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
}

.brief-total span {
  display: block;
  font-size: 28px;
  line-height: 0.95;
  font-weight: 700;
}

.brief-total small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vendor-brief-list {
  display: grid;
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
}

.brief-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
}

.vendor-intro-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.1fr 0.9fr;
}

.hero-note {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(32, 31, 29, 0.38), rgba(20, 19, 17, 0.76));
  padding: 18px;
}

.tonal-card {
  backdrop-filter: blur(10px);
}

.task-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.task-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  border-radius: 16px;
  background: rgba(21, 16, 13, 0.32);
  padding: 12px 14px;
}

.task-list-title {
  font-size: 14px;
  line-height: 1.5;
}

.store-health-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.store-health-cell {
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  border-radius: 16px;
  background: rgba(21, 16, 13, 0.32);
  padding: 14px;
}

.store-health-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.store-health-value {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

.task-callout {
  border: 1px solid rgba(206, 242, 178, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(51, 74, 54, 0.18), rgba(16, 22, 18, 0.72));
  padding: 16px;
}

.task-callout-label,
.section-tag {
  color: var(--accent-soft);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.task-callout-copy {
  margin-top: 8px;
  color: var(--text);
  line-height: 1.6;
}

.vendor-card-footer {
  border-top: 1px solid rgba(var(--accent-rgb), 0.08);
  padding-top: 12px;
}

.vendor-rail-shell {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.store-rail-row {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
  padding: 20px 0;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
}

.store-rail-row:first-child {
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
}

.store-rail-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.store-rail-title {
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
}

.store-rail-copy {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 68ch;
}

.store-rail-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.store-rail-kpis strong {
  color: var(--text);
}

.store-rail-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.store-rail-action {
  display: grid;
  gap: 4px;
  padding-left: 14px;
  border-left: 2px solid rgba(206, 242, 178, 0.18);
}

.store-rail-action-label {
  color: var(--accent-soft);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.store-rail-action-copy {
  line-height: 1.6;
}

.store-rail-footer {
  margin-top: 14px;
}

.store-rail-toolbar {
  margin-top: 0;
}

.review-stars {
  margin-top: 10px;
  color: var(--accent-soft);
  letter-spacing: 0.08em;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.compact-rail {
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(29, 28, 26, 0.76), rgba(20, 19, 17, 0.92));
}

.compact-rail .store-rail-title {
  font-size: 19px;
}

.compact-rail:last-child {
  margin-bottom: 0;
}

.compact-rail .store-rail-side {
  align-content: center;
  justify-items: end;
}

.compact-rail .store-rail-toolbar {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.ticket-rail-row {
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
}

.ticket-rail-row .store-rail-toolbar {
  gap: 8px;
}

.ticket-rail-row .store-rail-toolbar .btn:not(.icon-btn) {
  flex: 1 1 auto;
}

.ticket-rail-row .store-rail-toolbar .icon-btn {
  flex: 0 0 40px;
}

.offer-editor-row {
  grid-template-columns: 1fr;
}

.offer-editor-row .store-rail-side {
  justify-items: stretch;
  align-content: start;
  padding-top: 12px;
  border-top: 1px solid rgba(var(--accent-rgb), 0.1);
}

.offer-editor-row .store-rail-toolbar {
  justify-content: flex-start;
}

.offer-editor-row .inline-stat-grid {
  margin-top: 14px;
}

.eligible-target-grid {
  grid-template-columns: 1fr;
}

.eligible-target-grid select {
  min-height: 152px;
}

.library-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.library-row .store-rail-copy,
.library-row .section-copy {
  max-width: none;
}

.library-row-side {
  justify-items: end;
  align-content: center;
}

.library-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.rail-empty {
  padding: 18px 0;
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
}

.ops-form-shell {
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
  padding: 18px 0;
}

.ops-form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-form-grid .span-2 {
  grid-column: span 2;
}

.ops-form-grid .span-3 {
  grid-column: span 3;
}

.ops-form-grid.single-column {
  grid-template-columns: 1fr;
}

.aside-panel {
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(36, 35, 33, 0.64), rgba(25, 24, 22, 0.82));
  padding: 16px;
}

.settings-hero {
  padding-bottom: 22px;
  display: grid;
  gap: 8px;
}

.settings-hero-pills {
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-grid {
  align-items: start;
}

.settings-rail-card {
  padding: 20px;
  border-color: rgba(var(--accent-rgb), 0.12);
  background: linear-gradient(180deg, rgba(23, 22, 20, 0.9), rgba(17, 16, 14, 0.98));
}

.settings-rail-row {
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.settings-main {
  display: grid;
  gap: 12px;
}

.settings-side {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.settings-panel {
  display: grid;
  gap: 10px;
  min-height: 100%;
  min-width: 0;
}

.settings-security-panel {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
}

.settings-rail-row .aside-panel,
.tab-panel[data-settings-panel="security"] .aside-panel,
.tab-panel[data-settings-panel="store"] .aside-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.settings-sidebar-accent {
  border-color: rgba(206, 242, 178, 0.14);
  background: linear-gradient(180deg, rgba(43, 58, 44, 0.2), rgba(25, 24, 22, 0.82));
}

.settings-form-grid {
  margin-top: 14px;
  grid-template-columns: 1fr;
  gap: 12px;
}

.settings-form-shell {
  margin-top: 18px;
}

.settings-stack-sm {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.settings-logo-preview {
  margin-top: 14px;
  width: min(220px, 100%);
  min-height: 220px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(27, 26, 24, 0.92), rgba(17, 16, 14, 0.98));
  overflow: hidden;
  padding: 0;
  place-self: start;
}

.settings-action-toolbar {
  margin-top: 2px;
  justify-content: space-between;
  align-items: center;
}

.settings-inline-notice {
  margin-top: 2px;
}

.settings-list-shell {
  margin-top: 18px;
}

.compact-rail .store-rail-copy {
  color: var(--muted);
}

.settings-form-grid .span-2,
.settings-form-grid .span-3 {
  grid-column: span 1;
}

.settings-form-grid > div {
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.05);
  padding: 12px;
}

.settings-form-grid > div label {
  display: block;
  margin: 0;
}

.settings-form-grid > div input,
.settings-form-grid > div textarea,
.settings-form-grid > div select {
  margin-top: 8px;
}

.settings-grid textarea {
  min-height: 120px;
}

.inline-toggle-row {
  align-items: center;
}

.ops-feature-card .section-copy {
  margin-top: 8px;
}

.order-queue-card {
  gap: 10px;
}

.vendor-orders-shell {
  align-items: start;
}

.vendor-orders-list-shell,
.vendor-orders-detail-shell {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.vendor-orders-inbox-shell {
  margin-top: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(24, 23, 21, 0.96), rgba(17, 16, 14, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.vendor-orders-inbox-toolbar {
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
  background:
    radial-gradient(circle at right top, rgba(var(--accent-rgb), 0.08), transparent 34%),
    linear-gradient(180deg, rgba(31, 30, 28, 0.86), rgba(22, 21, 19, 0.92));
}

.vendor-orders-filter-copy {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  max-width: 56ch;
}

#vendor-order-guidance {
  padding: 14px 14px 0;
}

.queue-guidance-card {
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at right top, rgba(var(--accent-rgb), 0.1), transparent 38%),
    linear-gradient(180deg, rgba(35, 34, 32, 0.82), rgba(22, 21, 19, 0.94));
  padding: 14px 16px;
}

.queue-guidance-kicker {
  color: var(--accent-soft);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.queue-guidance-title {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
}

.queue-guidance-copy {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  max-width: 62ch;
}

#vendor-order-list,
#vendor-order-detail {
  min-height: 0;
}

#vendor-order-list {
  max-height: 980px;
  overflow-y: auto;
  padding: 14px 14px 16px;
  display: grid;
  gap: 12px;
}

#vendor-order-detail {
  min-height: 980px;
  max-height: 980px;
  overflow-y: auto;
  padding-right: 8px;
}

.order-row {
  display: grid;
  gap: 18px;
  grid-template-columns: 148px minmax(0, 1fr) 220px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(29, 28, 26, 0.78), rgba(20, 19, 17, 0.94));
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.order-row::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0), rgba(var(--accent-rgb), 0.38), rgba(var(--accent-rgb), 0));
  pointer-events: none;
}

.order-row:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.42);
  outline-offset: 6px;
}

.order-row.active {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: linear-gradient(180deg, rgba(38, 48, 22, 0.42), rgba(24, 23, 21, 0.96));
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.12), var(--shadow-soft);
}

.order-row-titleline {
  display: grid;
  gap: 8px;
}

.order-row-title {
  font-size: 20px;
  font-weight: 700;
}

.order-row-rail {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-right: 4px;
}

.order-row-state {
  color: var(--accent-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-row-amount {
  font-size: 28px;
  line-height: 0.95;
  font-weight: 700;
  color: var(--text);
}

.order-row-sidecopy {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.order-row-contact {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.order-row-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.queue-flag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(168, 208, 72, 0.42);
  border-radius: 999px;
  background: rgba(26, 25, 23, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding: 0 11px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  white-space: nowrap;
}

.queue-flag.ok {
  border-color: rgba(168, 208, 72, 0.42);
  background: rgba(168, 208, 72, 0.12);
}

.queue-flag.warn {
  border-color: rgba(255, 201, 71, 0.42);
  background: rgba(255, 201, 71, 0.12);
}

.queue-flag.danger {
  border-color: rgba(255, 92, 92, 0.42);
  background: rgba(255, 92, 92, 0.12);
}

.order-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.order-row-note {
  margin-top: 14px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  max-width: 64ch;
}

.order-row-actions {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-left: 14px;
  border-left: 2px solid rgba(var(--accent-rgb), 0.18);
}

.order-row-actions-copy {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.order-row-toolbar {
  margin-top: 0;
  display: grid;
  gap: 10px;
  justify-items: stretch;
  align-content: start;
}

.vendor-order-toolbar {
  align-items: stretch;
}

.vendor-order-toolbar input {
  min-width: 240px;
  flex: 1 1 240px;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(17, 16, 14, 0.72);
  color: var(--text);
  padding: 12px 14px;
}

.vendor-order-stage-select {
  display: grid;
  gap: 6px;
  min-width: 180px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vendor-order-stage-select select {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(17, 16, 14, 0.72);
  color: var(--text);
  padding: 0 14px;
}

.tab-bar.compact {
  margin: 0;
  padding: 12px 14px 0;
}

.order-queue-meta {
  display: grid;
  gap: 10px;
}

.order-queue-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.order-detail-shell {
  display: grid;
  gap: 16px;
}

.order-detail-page {
  display: grid;
  gap: 14px;
}

.order-detail-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.order-detail-title {
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
}

.order-detail-subcopy {
  margin-top: 8px;
}

.order-detail-state {
  display: grid;
  justify-items: end;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-grid {
  display: grid;
  gap: 12px;
}

.order-detail-columns {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.order-detail-main,
.order-detail-side {
  display: grid;
  gap: 14px;
}

.order-detail-actions {
  margin-top: 0;
}

.order-detail-copy {
  margin-top: 10px;
}

.order-detail-meta {
  margin-top: 12px;
}

.order-detail-facts {
  margin-top: 14px;
}

.order-items-stack {
  margin-top: 12px;
}

.order-items-stack-tight {
  margin-top: 10px;
}

.order-address-block {
  margin-top: 12px;
}

.order-summary-inline {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
}

.order-summary-inline div {
  padding-right: 12px;
}

.order-summary-inline span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.order-summary-inline strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.order-brief-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.line-item-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
}

.line-item-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.line-item-row span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.soft-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(var(--accent-rgb), 0.06);
  padding: 16px;
}

.order-summary-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-summary-grid div {
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
}

.order-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.order-summary-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.brief-row strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

.order-detail-facts-tight {
  gap: 8px;
  margin-top: 10px;
}

.order-payment-facts {
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
  gap: 8px;
}

@media (max-width: 1200px) {
  .order-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-row-actions {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(var(--accent-rgb), 0.12);
    padding-top: 12px;
  }
}

@media (max-width: 980px) {
  .shell-status-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid,
  .catalog-split {
    grid-template-columns: 1fr 1fr;
  }

  .store-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-metric-grid,
  .analytics-summary-strip,
  .analytics-snapshot-grid,
  .command-deck-grid,
  .trend-stage-head,
  .stats-submetrics,
  .stats-top-strip,
  .dash-metric-grid,
  .store-command-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vendor-board-hero {
    grid-template-columns: 1fr;
  }

  .vendor-intro-grid,
  .vendor-brief-grid,
  .vendor-brief-totals,
  .status-grid,
  .inline-stat-grid,
  .store-health-grid,
  .order-summary-grid,
  .order-summary-inline,
  .summary-chip-grid,
  .order-detail-columns {
    grid-template-columns: 1fr 1fr;
  }

  .span-12,
  .span-8,
  .span-7,
  .span-6,
  .span-5,
  .span-4 {
    grid-column: span 12;
  }
}

@media (max-width: 720px) {
  .shell-header,
  .workspace-header {
    align-items: start;
    flex-direction: column;
  }

  .shell-actions,
  .workspace-tabs {
    width: 100%;
  }

  .shell-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shell-link,
  .workspace-tab {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .main {
    padding: 14px 16px 20px;
  }

  .workspace-shell {
    padding: 0 0 6px;
  }

  .shell-status-dock {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 36px;
  }

  .field-grid,
  .field-grid.cols-3,
  .field-grid.cols-4,
  .ops-form-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .catalog-split {
    grid-template-columns: 1fr;
  }

  .vendor-brief-totals,
  .status-grid,
  .inline-stat-grid,
  .store-health-grid,
  .order-summary-grid,
  .summary-chip-grid {
    grid-template-columns: 1fr;
  }

  .spark-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .store-strip,
  .analytics-metric-grid,
  .analytics-summary-strip,
  .analytics-snapshot-grid,
  .command-deck-grid,
  .trend-stage-head,
  .stats-submetrics,
  .stats-top-strip,
  .dash-metric-grid,
  .store-command-grid,
  .store-health-grid,
  .order-summary-grid,
  .order-summary-inline,
  .vendor-brief-grid,
  .vendor-brief-totals,
  .order-detail-columns {
    grid-template-columns: 1fr;
  }

  .scroll-card .list-scroll {
    min-height: 0;
    max-height: 420px;
  }

  #vendor-order-list,
  #vendor-order-detail {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .scroll-card .list-scroll {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .chart-row-head {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .vendor-board-hero,
  .store-command-top,
  .store-command-toolbar,
  .toolbar.settings-action-toolbar,
  .workspace-meta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .store-command-flag {
    align-self: flex-start;
  }

  .store-command-footer {
    grid-template-columns: 1fr 1fr;
  }

  .settings-rail-card,
  .vendor-orders-inbox-toolbar {
    padding: 16px;
  }

  .vendor-orders-shell {
    gap: 14px;
  }

  #vendor-order-guidance {
    padding: 12px 12px 0;
  }

  .queue-guidance-card {
    padding: 12px 14px;
  }

  .tab-bar.compact {
    padding: 12px 12px 0;
  }

  #vendor-order-list {
    padding: 12px;
    gap: 10px;
  }

  .order-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }

  .order-row::before {
    left: 12px;
    right: 12px;
  }

  .order-row-title {
    font-size: 17px;
  }

  .order-row-amount {
    font-size: 22px;
  }

  .order-row-rail,
  .order-row-actions {
    width: 100%;
    padding: 0;
    border: 0;
    gap: 8px;
  }

  .order-row-toolbar {
    grid-template-columns: 1fr;
  }

  .vendor-order-toolbar input,
  .vendor-order-stage-select {
    min-width: 0;
    width: 100%;
  }

  .order-detail-page {
    gap: 12px;
  }

  .order-detail-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .order-detail-title {
    font-size: 22px;
  }

  .order-detail-state {
    justify-items: start;
    text-align: left;
  }

  .order-summary-inline {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-bottom: 12px;
  }

  .order-summary-inline div {
    padding-right: 0;
  }

  .settings-rail-row {
    gap: 14px;
  }

  .settings-rail-row .aside-panel,
  .settings-main,
  .settings-side,
  .settings-panel {
    width: 100%;
  }

  .settings-main,
  .settings-side {
    gap: 12px;
  }

  .settings-panel,
  .settings-rail-row .aside-panel {
    padding: 14px;
  }

  .settings-form-grid > div {
    padding: 10px;
  }

  .settings-action-toolbar {
    gap: 10px;
  }

  .settings-action-toolbar .btn,
  .settings-action-toolbar .btn-secondary,
  .settings-action-toolbar .btn-danger {
    width: 100%;
    justify-content: center;
  }

  .settings-logo-preview {
    width: 100%;
    max-width: 260px;
  }

  .order-detail-shell,
  .order-detail-header,
  .order-queue-amounts {
    gap: 10px;
  }

  .brief-row strong {
    text-align: left;
  }

  .stat-top {
    flex-direction: column;
    align-items: start;
  }

  .split-head {
    flex-direction: column;
  }

  .analytics-main-head {
    flex-direction: column;
  }

  .analytics-tab-shell {
    width: 100%;
    justify-content: space-between;
  }

  .time-chart-values,
  .time-chart-bars,
  .time-chart-labels {
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  }

  .order-list-card {
    flex-direction: column;
    align-items: start;
  }

  .leader-row,
  .pressure-row,
  .stats-list-row {
    flex-direction: column;
    align-items: start;
  }

  .leader-side {
    text-align: left;
  }

  .stats-list-side {
    text-align: left;
  }

  .task-list-row,
  .list-head,
  .split-head {
    flex-direction: column;
    align-items: start;
  }

  .ops-form-grid .span-2,
  .ops-form-grid .span-3 {
    grid-column: span 1;
  }

  .store-rail-row,
  .order-row,
  .order-detail-header,
  .line-item-row,
  .brief-row {
    display: flex;
    flex-direction: column;
    align-items: start;
  }

  .order-list-side {
    width: 100%;
    justify-items: start;
    text-align: left;
  }

  .order-detail-state {
    justify-items: start;
    text-align: left;
  }

  .order-row-actions {
    padding-left: 0;
    border-left: 0;
  }

  .order-row-toolbar {
    width: 100%;
  }

}

@media (max-width: 520px) {
  .shell-actions,
  .workspace-tabs,
  .store-command-footer {
    grid-template-columns: 1fr;
  }

  .order-summary-inline {
    grid-template-columns: 1fr;
  }

  .queue-guidance-title {
    font-size: 16px;
  }

  .vendor-orders-filter-copy,
  .queue-guidance-copy,
  .order-row-note,
  .order-row-sidecopy {
    font-size: 12px;
  }
}

.product-sheet {
  gap: 18px;
}

.product-sheet-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.product-sheet-copy {
  display: grid;
  gap: 8px;
}

.product-sheet-title {
  font-size: 34px;
  line-height: 0.94;
}

.product-sheet-description {
  max-width: 68ch;
  font-size: 13px;
  line-height: 1.7;
}

.product-summary-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
}

.product-visual-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0)), #222326;
  min-height: 260px;
}

.product-visual-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-visual-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}

.product-facts-panel {
  display: grid;
  gap: 14px;
}

.product-facts-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-fact-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(31, 30, 28, 0.86) 0%, rgba(20, 19, 17, 0.94) 100%);
  padding: 14px;
}

.product-fact-box.accent {
  border-color: rgba(206, 242, 178, 0.24);
  background: linear-gradient(180deg, rgba(158, 232, 111, 0.16), rgba(158, 232, 111, 0.04));
}

.product-fact-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.product-fact-value {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 700;
}

.product-fact-value.small {
  font-size: 15px;
  line-height: 1.4;
}

.product-fact-value.caps {
  text-transform: capitalize;
}

.product-fact-value.ok {
  color: var(--ok);
}

.product-fact-value.warn {
  color: var(--accent-soft);
}

.product-sheet-slug {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-work-columns {
  align-items: start;
}

.product-subcard {
  gap: 10px;
}

.media-row-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.media-thumb-wrap {
  width: 74px;
  height: 74px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #1b1c1f;
  flex: 0 0 74px;
}

.media-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.break-anywhere {
  word-break: break-word;
}

@media (max-width: 980px) {
  .sales-visual-layout {
    grid-template-columns: 1fr;
  }

  .product-summary-grid,
  .product-facts-grid,
  .catalog-split.product-work-columns {
    grid-template-columns: 1fr;
  }
}
