/* frontend/src/theme.css */
:root {
  --bg: #d8e1e5;
  --surface: #edf2f4;
  --surface-2: #e1e9ed;
  --border: #bfced7;
  --border-strong: #aebfc9;
  --text: #24313c;
  --text-muted: #607184;
  --text-faint: #90a0ae;
  --brand-charcoal: #24313c;
  --brand-red: #c8202a;
  --brand-red-dark: #a81820;
  --teal: #168f85;
  --teal-soft: #e4f3f1;
  --steel: #456f98;
  --steel-soft: #d7e3eb;
  --amber: #bf7d17;
  --amber-soft: #f7efdE;
  --red: #b5423a;
  --red-soft: #f7e9e7;
  --green: #3b8755;
  --chart-grid: #eef1f5;
  --chart-tick: #647084;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(30, 44, 58, 0.025);
  --font:
    "Segoe UI",
    system-ui,
    -apple-system,
    "Helvetica Neue",
    Arial,
    sans-serif;
  --mono:
    "Cascadia Mono",
    "SF Mono",
    Consolas,
    "Liberation Mono",
    monospace;
}
* {
  box-sizing: border-box;
}
html,
body,
#root {
  height: 100%;
  margin: 0;
}
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--steel);
}
.app {
  display: grid;
  grid-template-columns: 216px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #26333d;
  color: #d2dae2;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  display: grid;
  gap: 6px;
  padding: 6px 8px 16px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.sidebar .brand .logo-full {
  width: 172px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.sidebar .brand small {
  display: block;
  color: var(--brand-red);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 1px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #d2dae2;
  cursor: pointer;
  font-size: 13px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.nav-item:hover {
  background: #33434f;
  color: #fff;
}
.nav-item.active {
  background: var(--brand-red);
  color: #fff;
}
.nav-item.disabled {
  color: #5d6775;
  cursor: not-allowed;
}
.nav-item.disabled:hover {
  background: none;
  color: #5d6775;
}
.nav-section {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #6b7785;
  padding: 14px 10px 4px;
}
.nav-badge {
  margin-left: auto;
  font-size: 9px;
  background: #3a4756;
  color: #97a1b0;
  padding: 1px 6px;
  border-radius: 999px;
  text-transform: uppercase;
}
.sidebar-foot {
  margin-top: 12px;
  padding: 12px 10px 4px;
  border-top: 1px solid #2b3947;
  color: #8c97a5;
  font-size: 11px;
  line-height: 1.5;
}
.sidebar-foot .co {
  color: #e4e9ef;
  font-weight: 600;
  font-size: 11.5px;
  margin-bottom: 5px;
}
.sidebar-foot .row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 3px;
}
.sidebar-foot .row svg {
  flex: none;
  margin-top: 1px;
  color: #6b7785;
}
.sidebar-foot a {
  color: #8c97a5;
  text-decoration: none;
}
.sidebar-foot a:hover {
  color: #c7d0db;
}
.sidebar-foot .src {
  margin-top: 9px;
  color: #6b7785;
  font-size: 10px;
}
.sidebar-signout {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #3b4a59;
  background: #1f2b35;
  color: #e4e9ef;
  border-radius: 6px;
  padding: 8px 10px;
  margin: 0 0 12px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.sidebar-signout:hover {
  background: #33434f;
  border-color: #526373;
}
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.header {
  height: 56px;
  background: rgba(237, 242, 244, 0.96);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.header h1 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.header .spacer {
  flex: 1;
}
.hamburger {
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: 7px;
  cursor: pointer;
  padding: 0;
}
.hamburger:hover {
  background: var(--surface-2);
}
.sidebar-backdrop {
  display: none;
}
.content {
  padding: 20px 24px 40px;
}
.timeframe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.timeframe select {
  min-width: 104px;
}
.timeframe input[type=date] {
  width: 138px;
  padding: 6px 8px;
}
.range-note {
  color: var(--text-muted);
  font-size: 12px;
  margin: -6px 0 14px;
}
.range-note b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.freshness {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 9px 14px;
  background: #d6e1e8;
  border: 1px solid #bbccd7;
  border-radius: var(--radius);
  color: #2c4a6b;
  font-size: 12.5px;
  margin-bottom: 18px;
}
.freshness .dot {
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.freshness b {
  color: #1f3a57;
  font-variant-numeric: tabular-nums;
}
.freshness.empty {
  background: var(--amber-soft);
  border-color: #ecd7a8;
  color: #8a6212;
}
.freshness.warning {
  background: #f2ead6;
  border-color: #e2c990;
  color: #7d5f14;
}
.freshness.warning b {
  color: #6d4f0e;
}
.freshness .stale-note {
  color: inherit;
  font-weight: 600;
}
.freshness-expand {
  display: block;
}
.freshness-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  cursor: pointer;
}
.freshness-summary::-webkit-details-marker {
  display: none;
}
.freshness-toggle {
  margin-left: auto;
  color: var(--steel);
  font-size: 11px;
  font-weight: 700;
}
.freshness-expand[open] .freshness-toggle {
  color: var(--text-muted);
}
.freshness-toggle-open {
  display: none;
}
.freshness-expand[open] .freshness-toggle-closed {
  display: none;
}
.freshness-expand[open] .freshness-toggle-open {
  display: inline;
}
.freshness-extra {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(69, 111, 152, 0.2);
  color: var(--text-muted);
  line-height: 1.35;
}
.freshness-extra b {
  color: var(--text);
}
.snapshot-disclosure {
  margin: -8px 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(237, 242, 244, 0.7);
  color: var(--text-muted);
  font-size: 12px;
}
.snapshot-disclosure.has-warning {
  border-color: #e0c586;
  background: #f4ecd7;
  color: #785b14;
}
.snapshot-disclosure summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  list-style: none;
}
.snapshot-disclosure summary::-webkit-details-marker {
  display: none;
}
.snapshot-disclosure summary::after {
  content: "Show";
  margin-left: auto;
  color: var(--steel);
  font-weight: 600;
  font-size: 11px;
}
.snapshot-disclosure[open] summary::after {
  content: "Hide";
}
.snapshot-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.snapshot-title svg {
  color: var(--amber);
}
.snapshot-short {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.snapshot-detail {
  border-top: 1px solid rgba(120, 91, 20, 0.18);
  padding: 8px 12px 10px;
  line-height: 1.4;
}
.snapshot-detail p {
  margin: 0;
}
.snapshot-detail p + p {
  margin-top: 8px;
}
.snapshot-detail b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.snapshot-warning {
  color: #765912;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
}
.panel-head .sub {
  color: var(--text-faint);
  font-weight: 400;
  font-size: 12px;
  margin-left: auto;
}
.panel-body {
  padding: 14px 16px;
  min-width: 0;
}
.grid {
  display: grid;
  gap: 16px;
}
.grid > * {
  min-width: 0;
}
.cols-2 {
  grid-template-columns: 1fr 1fr;
}
.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1100px) {
  .cols-2,
  .cols-3 {
    grid-template-columns: 1fr;
  }
}
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
@media (max-width: 1200px) {
  .kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.kpi .label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.kpi .value {
  font-size: 24px;
  font-weight: 650;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.kpi .hint {
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 3px;
}
.kpi .icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
}
.kpi.accent-teal .icon {
  background: var(--teal-soft);
  color: var(--teal);
}
.kpi.accent-steel .icon {
  background: var(--steel-soft);
  color: var(--steel);
}
.kpi.accent-amber .icon {
  background: var(--amber-soft);
  color: var(--amber);
}
.kpi.accent-red .icon {
  background: var(--red-soft);
  color: var(--red);
}
.kpi .value.neg {
  color: var(--red);
}
.table-wrap {
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
table.data th {
  text-align: left;
  padding: 8px 12px;
  background: #dbe5ea;
  border-bottom: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
table.data td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data tr:hover td {
  background: var(--surface-2);
}
table.data td.num,
table.data th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.neg {
  color: var(--red);
}
.part-toggle-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}
.expand-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  flex: none;
}
.expand-btn:hover {
  color: var(--text);
  background: var(--surface-2);
}
table.data tr.expand-parent.expanded td {
  background: #d4e1e8;
  border-bottom-color: #bbccd7;
}
table.data tr.expand-detail-row:hover td,
table.data tr.expand-detail-row td {
  background: #e1e9ed;
}
.expand-detail-row > td {
  padding: 10px 12px 14px 44px;
  border-bottom-color: var(--border-strong);
}
.nested-table-wrap {
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: auto;
  background: #e5ecef;
}
.nested-count {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11.5px;
}
table.data.nested-data {
  font-size: 12px;
}
table.data.nested-data th {
  top: auto;
  background: #d8e3e9;
}
table.data.nested-data tr:last-child td {
  border-bottom: none;
}
.code-cell {
  color: var(--text);
  font-weight: 600;
}
.detail-loading,
.detail-error {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 12px;
  padding: 8px 0;
}
.detail-error {
  color: var(--red);
}
.smart-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items: start;
}
.smart-summary {
  display: grid;
  gap: 10px;
}
.action-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.action-summary .action-stack {
  grid-column: 1 / -1;
}
.jump-anchor {
  scroll-margin-top: 76px;
}
.empty-queue-note {
  margin: 0;
}
.smart-metric {
  border: 1px solid var(--border);
  background: #e2eaee;
  border-radius: 7px;
  padding: 10px 12px;
}
.smart-metric span {
  display: block;
  color: var(--text-muted);
  font-size: 11.5px;
  margin-bottom: 4px;
}
.smart-metric b {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.action-stack {
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  background: #e5ecef;
}
.action-line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.action-line:last-child {
  border-bottom: none;
}
.action-line b {
  font-variant-numeric: tabular-nums;
}
.smart-table-wrap {
  max-height: 360px;
}
table.data.smart-data {
  font-size: 12px;
}
.score-cell {
  font-weight: 700;
  color: var(--steel);
}
.reason-cell {
  min-width: 220px;
  white-space: normal;
}
.action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface-2);
}
.action-buy {
  background: var(--red-soft);
  color: var(--red);
  border-color: #ebc8c3;
}
.action-price {
  background: #e8f1db;
  color: #4b752f;
  border-color: #cddfb8;
}
.action-pull {
  background: var(--teal-soft);
  color: var(--teal);
  border-color: #c6e3df;
}
.action-stock-deeper {
  background: var(--amber-soft);
  color: #936016;
  border-color: #ead7aa;
}
.action-review {
  background: var(--steel-soft);
  color: var(--steel);
  border-color: #ccddeb;
}
.action-list {
  background: #edf2f6;
  color: #53697d;
  border-color: #d1dce5;
}
.action-watch {
  background: #f3f6f8;
  color: var(--text-faint);
  border-color: var(--border);
}
.rec-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.rec-status-pending-verification {
  background: var(--amber-soft);
  color: #8a6212;
  border-color: #ecd7a8;
}
.rec-status-still-flagged {
  background: var(--red-soft);
  color: var(--red);
  border-color: #ebc8c3;
}
.rec-status-verified {
  background: var(--teal-soft);
  color: var(--teal);
  border-color: #c6e3df;
}
.queue-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.queue-stat {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-2);
  padding: 10px 12px;
}
.queue-stat span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}
.queue-stat b {
  display: block;
  margin-top: 5px;
  font-size: 22px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.queue-stat.alert b {
  color: var(--brand-red);
}
.todo-done,
.queue-done {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: 6px;
  padding: 6px 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.todo-done:hover:not(:disabled),
.queue-done:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--brand-red);
  color: var(--brand-red);
}
.todo-done:disabled,
.queue-done:disabled {
  opacity: 0.65;
  cursor: default;
}
.pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.pill.sev-error {
  background: var(--red-soft);
  color: var(--red);
}
.pill.sev-warning {
  background: var(--amber-soft);
  color: var(--amber);
}
.pill.sev-info {
  background: var(--steel-soft);
  color: var(--steel);
}
.pill.type {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.health-warning-list {
  display: grid;
  gap: 10px;
}
.health-warning-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.health-warning-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.health-warning-row b {
  display: block;
  font-size: 12.5px;
  margin-bottom: 2px;
}
.health-warning-row p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}
.pricing-fixer-grid {
  grid-template-columns: 260px 1fr;
}
.pricing-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pricing-groups {
  display: grid;
  gap: 10px;
}
.pricing-group {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  overflow: hidden;
}
.pricing-group-head {
  display: grid;
  grid-template-columns: 28px 94px minmax(180px, 1fr) 142px minmax(110px, auto) 122px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}
.pricing-group-spacer {
  width: 26px;
  height: 1px;
}
.pricing-group-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.pricing-group-main b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pricing-group-main span,
.pricing-group-value span {
  color: var(--text-muted);
  font-size: 11.5px;
}
.pricing-group-value {
  display: grid;
  justify-items: end;
  font-variant-numeric: tabular-nums;
}
.pricing-group-detail {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  max-height: 340px;
}
input,
select {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 6px 9px;
}
input:focus,
select:focus {
  outline: 2px solid var(--steel-soft);
  border-color: var(--steel);
}
button.btn {
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--brand-red);
  background: var(--brand-red);
  color: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
button.btn:hover {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
}
button.btn.ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
button.btn.ghost:hover {
  background: var(--surface-2);
}
button.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.toolbar .grow {
  flex: 1;
}
.drop-zone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 12px 12px 10px;
  margin-bottom: 14px;
}
.drop-zone.drag {
  border-color: var(--steel);
  background: var(--steel-soft);
}
.drop-zone .toolbar {
  margin-bottom: 8px;
}
.drop-hint {
  margin: 0;
  font-size: 12px;
}
.import-help {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.import-help > b {
  color: var(--text);
}
.import-help ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.import-help li {
  margin-top: 4px;
}
.import-help li b {
  color: var(--text);
}
.empty-state {
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.empty-state .ico {
  color: var(--steel);
  margin-bottom: 12px;
}
.empty-state h2 {
  margin: 0 0 6px;
  font-size: 17px;
}
.empty-state p {
  color: var(--text-muted);
  margin: 0 auto 18px;
  max-width: 420px;
}
.muted {
  color: var(--text-muted);
}
.mono {
  font-family: var(--mono);
}
.loading {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
}
.spin {
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.banner-error {
  background: var(--red-soft);
  border: 1px solid #eecac6;
  color: var(--red);
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13px;
}
.panel-warn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--amber-soft);
  border: 1px solid #ecd7a8;
  color: #8a6212;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 12.5px;
  margin-bottom: 16px;
}
:root[data-theme=dark] .panel-warn {
  background: #2a2412;
  border-color: #4a3d17;
  color: #e0c98a;
}
button.linklike {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--steel);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
button.linklike:hover {
  color: var(--text);
}
@media (max-width: 760px) {
  .app {
    display: block;
  }
  .hamburger {
    display: inline-grid;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 268px;
    max-width: 84vw;
    padding: 16px 12px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 60;
    overflow-y: auto;
    box-shadow: 2px 0 18px rgba(0, 0, 0, 0.4);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .sidebar-backdrop.show {
    opacity: 1;
    pointer-events: auto;
  }
  .sidebar .nav-badge,
  .sidebar .nav-item.disabled {
    display: none;
  }
  .header {
    position: sticky;
    top: 0;
    height: auto;
    display: grid;
    grid-template-columns: 36px minmax(96px, max-content) minmax(0, 1fr) 36px 36px;
    align-items: center;
    padding: 10px 12px;
    gap: 8px;
    z-index: 5;
  }
  .header h1 {
    display: none;
  }
  .header .spacer {
    display: block;
    grid-column: 3;
  }
  .hamburger {
    grid-column: 1;
    grid-row: 1;
  }
  .header-refresh {
    grid-column: 4;
    grid-row: 1;
    width: 36px;
    height: 36px;
    justify-content: center;
    padding: 0;
    min-width: 0;
  }
  .header-refresh .btn-label {
    display: none;
  }
  .header-refresh svg,
  .theme-toggle svg {
    flex: none;
  }
  .theme-toggle {
    grid-column: 5;
    grid-row: 1;
    width: 36px;
    height: 36px;
  }
  .timeframe {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    flex-wrap: wrap;
  }
  .timeframe select {
    min-width: 102px;
    height: 36px;
  }
  .content {
    padding: 12px;
  }
  .kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
  }
  .kpi {
    padding: 11px 12px;
    min-width: 0;
  }
  .kpi .label {
    gap: 5px;
    font-size: 10px;
    line-height: 1.15;
    letter-spacing: 0.25px;
  }
  .kpi .icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    flex: none;
  }
  .kpi .value {
    font-size: 20px;
    line-height: 1.08;
    margin-top: 7px;
    overflow-wrap: anywhere;
  }
  .kpi .hint {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 10.5px;
    line-height: 1.25;
  }
  .smart-grid {
    grid-template-columns: 1fr;
  }
  .smart-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .action-summary .action-stack {
    grid-column: 1 / -1;
  }
  .queue-stats,
  .pricing-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .queue-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
  }
  .pricing-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .queue-stat {
    padding: 9px 10px;
  }
  .queue-stat span {
    font-size: 10px;
    line-height: 1.15;
  }
  .queue-stat b {
    font-size: 19px;
  }
  .queue-stats:not(.pricing-stats) .queue-stat {
    min-height: 46px;
    padding: 7px 6px;
  }
  .queue-stats:not(.pricing-stats) .queue-stat span {
    font-size: 8.5px;
    letter-spacing: 0.18px;
    line-height: 1.05;
  }
  .queue-stats:not(.pricing-stats) .queue-stat b {
    margin-top: 4px;
    font-size: 17px;
  }
  .smart-metric {
    padding: 9px 10px;
  }
  .smart-metric span {
    font-size: 10.5px;
    line-height: 1.2;
  }
  .smart-metric b {
    font-size: 18px;
    overflow-wrap: anywhere;
  }
  .action-stack {
    grid-column: 1 / -1;
  }
  .action-line {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "chip chip" "codes value";
    gap: 5px 10px;
    padding: 8px 10px 9px;
  }
  .action-line > .action-chip {
    grid-area: chip;
    width: 100%;
    min-width: 0;
  }
  .action-line > span:not(.action-chip) {
    grid-area: codes;
    min-width: 0;
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
  }
  .action-line > b {
    grid-area: value;
    justify-self: end;
    white-space: nowrap;
  }
  .freshness {
    align-items: center;
    gap: 7px 14px;
    padding: 8px 10px;
    margin-bottom: 12px;
  }
  .freshness .dot {
    flex: 0 1 auto;
    min-width: 0;
  }
  .freshness-summary {
    gap: 7px 14px;
  }
  .freshness-toggle {
    margin-left: 0;
    font-size: 10.5px;
  }
  .freshness-extra {
    font-size: 12px;
    line-height: 1.3;
  }
  .freshness-label {
    display: none;
  }
  .freshness .file-dot {
    display: none;
  }
  .panel-head {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .panel-head .sub {
    margin-left: 0;
    width: 100%;
  }
  .panel-body {
    padding: 11px 12px;
  }
  .range-note {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
  }
}
:root[data-theme=dark] {
  --bg: #10151b;
  --surface: #1a212a;
  --surface-2: #232c37;
  --border: #2b3742;
  --border-strong: #3a4856;
  --text: #e6ebf0;
  --text-muted: #9fb0bf;
  --text-faint: #6f7e8c;
  --brand-charcoal: #0d1117;
  --brand-red: #e0474f;
  --brand-red-dark: #c8333b;
  --teal: #2bb8a8;
  --teal-soft: #16302d;
  --steel: #6aa0d8;
  --steel-soft: #17283a;
  --amber: #e0a444;
  --amber-soft: #322914;
  --red: #e57368;
  --red-soft: #331e1c;
  --green: #4caf6e;
  --chart-grid: #2b3742;
  --chart-tick: #9fb0bf;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.02);
}
:root[data-theme=dark] .sidebar {
  background: #11161c;
}
:root[data-theme=dark] .nav-item:hover {
  background: #1d2630;
}
:root[data-theme=dark] .header {
  background: rgba(17, 22, 29, 0.96);
}
:root[data-theme=dark] .freshness {
  background: #13212e;
  border-color: #1f3346;
  color: #bcd2e6;
}
:root[data-theme=dark] .freshness b {
  color: #e3edf6;
}
:root[data-theme=dark] .freshness.warning {
  background: #2a2412;
  border-color: #4a3d17;
  color: #e0c98a;
}
:root[data-theme=dark] .freshness.warning b {
  color: #f0dca0;
}
:root[data-theme=dark] .freshness.empty {
  background: #2a2412;
  border-color: #4a3d17;
  color: #e0c98a;
}
:root[data-theme=dark] table.data th {
  background: #222c37;
}
:root[data-theme=dark] table.data tr.expand-parent.expanded td {
  background: #243140;
  border-bottom-color: #2f4150;
}
:root[data-theme=dark] .expand-detail-row > td,
:root[data-theme=dark] table.data tr.expand-detail-row:hover td,
:root[data-theme=dark] table.data tr.expand-detail-row td {
  background: #1d2530;
}
:root[data-theme=dark] .nested-table-wrap,
:root[data-theme=dark] .action-stack {
  background: #1b232d;
}
:root[data-theme=dark] table.data.nested-data th {
  background: #222c37;
}
:root[data-theme=dark] .smart-metric {
  background: #1d2530;
}
:root[data-theme=dark] .action-price {
  background: #1c2c16;
  color: #9fd07a;
  border-color: #2f4a23;
}
:root[data-theme=dark] .action-list {
  background: #1b2430;
  color: #9fb6cb;
  border-color: #2c3a48;
}
:root[data-theme=dark] .action-watch {
  background: #1a212a;
  color: var(--text-faint);
  border-color: var(--border);
}
:root[data-theme=dark] .action-stock-deeper {
  background: #2a2412;
  color: #e0b057;
  border-color: #4a3d17;
}
:root[data-theme=dark] .banner-error {
  border-color: #5a2a26;
}
:root[data-theme=dark] .rec-status-pending-verification {
  background: #2a2412;
  color: #e0c98a;
  border-color: #4a3d17;
}
:root[data-theme=dark] .rec-status-still-flagged {
  background: #331e1c;
  color: #e57368;
  border-color: #5a2a26;
}
:root[data-theme=dark] .rec-status-verified {
  background: #14302b;
  color: #7fd8c9;
  border-color: #1f4a44;
}
.freshness.ok {
  background: var(--teal-soft);
  border-color: #bfe7e1;
  color: #0a6b60;
}
.freshness.ok b {
  color: #094f47;
}
:root[data-theme=dark] .freshness.ok {
  background: #14302b;
  border-color: #1f4a44;
  color: #7fd8c9;
}
:root[data-theme=dark] .freshness.ok b {
  color: #adeadf;
}
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}
.theme-toggle:hover {
  color: var(--text);
  background: var(--surface-2);
}
.home-verdict {
  color: var(--text-muted);
  font-size: 13px;
  margin: -4px 0 16px;
}
.home-verdict b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.home-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
  }
}
.hero-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}
.hero-card.alarm {
  border-color: var(--border-strong);
}
.hero-card .cap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.delta {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: tabular-nums;
  padding: 2px 7px;
  border-radius: 999px;
}
.delta.up {
  color: var(--green);
  background: var(--teal-soft);
}
.delta.down {
  color: var(--red);
  background: var(--red-soft);
}
.action-chip.action-relist {
  background: var(--steel-soft);
  color: var(--steel);
  border-color: var(--steel);
}
.action-chip.action-scrap {
  background: var(--red-soft);
  color: var(--red);
  border-color: var(--red);
}
.hero-card .big {
  font-size: 38px;
  font-weight: 680;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.hero-card.alarm .big {
  color: var(--brand-red);
}
.hero-card .sub {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 6px;
}
.hero-card .sub b {
  color: var(--text);
}
.hero-card .est {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  padding-top: 9px;
}
.home-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 900px) {
  .home-tiles {
    grid-template-columns: 1fr;
  }
}
.home-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
.home-tile .cap {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}
.home-tile .val {
  font-size: 22px;
  font-weight: 650;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.home-tile .note {
  color: var(--text-faint);
  font-size: 11.5px;
  margin-top: 3px;
}
.home-tile.clickable {
  cursor: pointer;
}
.home-tile.clickable:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.priced-high-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.unpriced-summary-tile {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(160px, 0.55fr) minmax(0, 1.45fr);
  gap: 18px;
  align-items: center;
}
.unpriced-primary {
  min-width: 0;
}
.unpriced-money {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-left: 1px solid var(--border);
  padding-left: 18px;
}
.metric-half {
  min-width: 0;
  padding-right: 18px;
}
.metric-half + .metric-half {
  border-left: 1px solid var(--border);
  padding-left: 18px;
  padding-right: 0;
}
.todo-list {
  display: grid;
  gap: 0;
}
.todo-row {
  display: grid;
  grid-template-columns: 92px 150px minmax(0, 1fr) auto 118px 36px;
  gap: 10px;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.todo-dismiss {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-faint);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
}
.todo-dismiss:hover {
  color: var(--red);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.todo-row:last-child {
  border-bottom: none;
}
.todo-row .what {
  display: grid;
  gap: 2px;
}
.todo-row .what .code {
  font-weight: 600;
}
.todo-row .what .why {
  color: var(--text-muted);
  font-size: 11.5px;
}
.todo-row .est {
  text-align: right;
}
.todo-row .est b {
  font-variant-numeric: tabular-nums;
}
.todo-row .est small {
  display: block;
  color: var(--text-faint);
  font-size: 10px;
}
.value-cell .money-main {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}
.value-cell .money-label {
  display: block;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
}
.home-actions {
  display: flex;
  justify-content: flex-end;
  margin: -6px 0 10px;
}
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.home-tile .note.strong-note {
  color: var(--text);
  font-weight: 600;
}
.dismiss-confirm {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  margin: 6px 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: var(--surface-2);
  font-size: 12.5px;
}
.dismiss-confirm input {
  flex: 1;
  min-width: 160px;
}
.dismiss-error {
  color: var(--red);
  font-size: 12px;
  width: 100%;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.trust-chip.ok {
  color: var(--green);
}
.trust-chip.warn {
  color: var(--amber);
}
.caveat {
  color: var(--text-faint);
  font-size: 11.5px;
  margin-top: 8px;
}
@media (max-width: 760px) {
  .home-hero,
  .home-tiles {
    gap: 12px;
  }
  .home-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .priced-high-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .priced-high-tiles .home-tile {
    padding: 8px 7px;
  }
  .priced-high-tiles .home-tile .cap {
    font-size: 8.5px;
    letter-spacing: 0.12px;
    line-height: 1.1;
  }
  .priced-high-tiles .home-tile .val {
    font-size: 16px;
    line-height: 1.05;
    margin-top: 5px;
    white-space: nowrap;
  }
  .priced-high-tiles .home-tile .note {
    -webkit-line-clamp: 1;
    font-size: 9px;
    line-height: 1.1;
    margin-top: 3px;
  }
  .hero-card {
    padding: 14px 16px;
  }
  .hero-card .big {
    font-size: 30px;
  }
  .hero-card .est {
    display: none;
  }
  .home-tile {
    padding: 11px 12px;
    min-width: 0;
  }
  .home-tile .cap {
    font-size: 10px;
    line-height: 1.15;
    letter-spacing: 0.25px;
  }
  .home-tile .val {
    font-size: 19px;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }
  .home-tile .note {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 10.5px;
    line-height: 1.25;
  }
  .unpriced-summary-tile {
    grid-column: 1 / -1;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 9px;
    align-items: stretch;
  }
  .unpriced-primary {
    border-bottom: none;
    padding-bottom: 0;
    padding-right: 9px;
    border-right: 1px solid var(--border);
  }
  .unpriced-money {
    border-left: none;
    padding-left: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .unpriced-money .metric-half {
    padding-right: 7px;
  }
  .unpriced-money .metric-half + .metric-half {
    padding-left: 7px;
  }
  .unpriced-summary-tile .cap {
    font-size: 9.5px;
    letter-spacing: 0.18px;
  }
  .unpriced-summary-tile .val {
    font-size: 18px;
    margin-top: 5px;
    white-space: nowrap;
  }
  .unpriced-summary-tile .note {
    font-size: 10px;
    line-height: 1.15;
    margin-top: 2px;
    -webkit-line-clamp: 1;
  }
  .home-verdict {
    font-size: 12.5px;
  }
  .home-actions {
    display: none;
  }
  .panel-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .todo-row {
    grid-template-columns: 84px minmax(0, 1fr) auto 26px;
    grid-template-areas: "chip what . dismiss" "status est done dismiss";
    gap: 6px 8px;
    padding: 8px 2px;
  }
  .todo-row > .action-chip {
    grid-area: chip;
    justify-self: start;
    min-width: 82px;
    padding: 1px 7px;
    font-size: 10.5px;
  }
  .todo-row > .rec-status {
    grid-area: status;
    justify-self: start;
    min-width: 82px;
    padding: 1px 7px;
    font-size: 10px;
  }
  .todo-row > .what {
    grid-area: what;
    min-width: 0;
  }
  .todo-row .what .code {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .todo-row .what .why {
    display: none;
  }
  .todo-row > .est {
    grid-area: est;
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 5px;
    justify-self: start;
    text-align: left;
    white-space: nowrap;
  }
  .todo-row > .est b {
    flex: 0 0 auto;
    font-size: 12.5px;
  }
  .todo-row > .est small {
    display: inline;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
  }
  .todo-row > .todo-done {
    grid-area: done;
    align-self: center;
    justify-self: end;
    padding: 5px 8px;
    font-size: 11.5px;
  }
  .todo-row > .todo-dismiss {
    grid-area: dismiss;
    align-self: center;
    justify-self: end;
    width: 26px;
    height: 26px;
  }
  .pricing-group-head {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-areas: "expand chip status" "main main value" "done done done";
    gap: 7px 10px;
  }
  .pricing-group-head > .expand-btn {
    grid-area: expand;
  }
  .pricing-group-head > .pricing-group-spacer {
    grid-area: expand;
  }
  .pricing-group-head > .action-chip {
    grid-area: chip;
    justify-self: start;
  }
  .pricing-group-main {
    grid-area: main;
  }
  .pricing-group-main b {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pricing-group-main span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pricing-group-head > .rec-status {
    grid-area: status;
    justify-self: end;
  }
  .pricing-group-value {
    grid-area: value;
    align-self: start;
    justify-items: end;
  }
  .pricing-group-head > .queue-done {
    grid-area: done;
    width: 100%;
    justify-content: center;
  }
  .trust-strip {
    gap: 8px 12px;
  }
  .header {
    gap: 10px;
  }
  .header h1 {
    font-size: 15px;
  }
  .table-wrap {
    -webkit-overflow-scrolling: touch;
  }
  .reason-cell {
    min-width: 160px;
  }
  .action-queue-wrap {
    max-height: none;
    overflow: visible;
  }
  table.action-queue thead {
    display: none;
  }
  table.action-queue,
  table.action-queue tbody {
    display: block;
    width: 100%;
  }
  table.action-queue tr {
    display: grid;
    grid-template-columns: 78px 48px minmax(0, 1fr) auto;
    grid-template-areas: "chip status code done" "name name name score" "est est est unmet" "why why why shelf";
    gap: 4px 8px;
    align-items: center;
    padding: 8px 0 9px;
    border-bottom: 1px solid var(--border);
  }
  table.action-queue tr:last-child {
    border-bottom: none;
  }
  table.action-queue td {
    display: block;
    padding: 0;
    border: none;
    white-space: normal;
  }
  table.action-queue tr:hover td {
    background: none;
  }
  table.action-queue td.num {
    text-align: left;
  }
  table.action-queue td:nth-child(1) {
    grid-area: chip;
  }
  table.action-queue td:nth-child(1) .action-chip,
  table.action-queue td:nth-child(2) .rec-status,
  table.action-queue .queue-done {
    height: 20px;
    min-height: 20px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1;
  }
  table.action-queue td:nth-child(1) .action-chip {
    width: 78px;
    min-width: 78px;
  }
  table.action-queue td:nth-child(2) {
    grid-area: status;
  }
  table.action-queue td:nth-child(2) .rec-status {
    width: 48px;
    min-width: 48px;
    font-size: 10px;
  }
  table.action-queue td:nth-child(3) {
    grid-area: done;
    justify-self: end;
    align-self: center;
  }
  table.action-queue .queue-done {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 11px;
    border-radius: 999px;
  }
  table.action-queue td:nth-child(4) {
    grid-area: code;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
  }
  table.action-queue td:nth-child(5) {
    grid-area: name;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 11.5px;
    line-height: 1.2;
  }
  table.action-queue td:nth-child(6) {
    grid-area: score;
    justify-self: end;
    font-size: 11.5px;
    white-space: nowrap;
  }
  table.action-queue td:nth-child(7) {
    grid-area: est;
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-weight: 700;
    min-width: 0;
    white-space: nowrap;
  }
  table.action-queue td:nth-child(7) .money-main {
    display: inline;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  table.action-queue td:nth-child(7) .money-label {
    display: inline;
    flex: 0 0 auto;
  }
  table.action-queue td:nth-child(8) {
    grid-area: unmet;
    justify-self: end;
    white-space: nowrap;
    font-size: 11.5px;
  }
  table.action-queue td:nth-child(9) {
    grid-area: shelf;
    justify-self: end;
    white-space: nowrap;
    font-size: 11.5px;
  }
  table.action-queue td:nth-child(10) {
    grid-area: why;
    color: var(--text-muted);
    font-size: 11.5px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  table.action-queue td:nth-child(6)::before {
    content: "Score ";
    color: var(--text-faint);
    font-weight: 400;
  }
  table.action-queue td:nth-child(8)::after {
    content: " demand";
    color: var(--text-faint);
  }
  table.action-queue td:nth-child(9)::after {
    content: " on shelf";
    color: var(--text-faint);
  }
}
@media print {
  :root,
  :root[data-theme=dark] {
    --bg: #fff;
    --surface: #fff;
    --surface-2: #f2f2f2;
    --border: #bbb;
    --border-strong: #888;
    --text: #000;
    --text-muted: #333;
    --text-faint: #555;
    --shadow: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  .sidebar,
  .sidebar-backdrop,
  .header,
  .hamburger,
  .theme-toggle,
  .home-actions,
  .todo-dismiss,
  .dismiss-confirm,
  button {
    display: none !important;
  }
  .app {
    display: block;
  }
  .content {
    padding: 0;
  }
  .grid.cols-2,
  .grid.cols-3,
  .home-hero,
  .home-tiles,
  .kpi-row {
    grid-template-columns: 1fr !important;
  }
  .panel,
  .hero-card,
  .home-tile,
  .kpi {
    break-inside: avoid;
  }
  .table-wrap,
  .smart-table-wrap {
    overflow: visible;
    max-height: none;
  }
  table.data th {
    position: static;
  }
}
