*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f7f4ef;color:#171717}.shell{max-width:1180px;margin:0 auto;padding:24px}.top,.hero,.heading,.metrics{display:flex;align-items:center}.top{justify-content:space-between;margin-bottom:28px}.back{color:#171717;text-decoration:none;font-weight:700}.chip{font-size:12px;font-weight:800;letter-spacing:.08em;background:#171717;color:#fff;padding:8px 10px;border-radius:999px}.hero{justify-content:space-between;gap:24px;margin-bottom:22px}.hero h1{font-size:clamp(32px,5vw,58px);line-height:.98;max-width:720px;margin:8px 0}.eyebrow{font-size:12px;letter-spacing:.1em;font-weight:800;color:#f26f21}.muted,.fine{color:#6d675f}.fine{font-size:13px}.panel{background:#fff;border:1px solid #e5ded4;border-radius:24px;padding:22px;box-shadow:0 8px 30px rgba(0,0,0,.04);margin-bottom:18px}.state{text-align:center;padding:42px}.metrics{gap:14px;display:grid;grid-template-columns:repeat(3,1fr);margin-bottom:18px}.metrics article{background:#171717;color:#fff;border-radius:20px;padding:20px;display:grid;gap:6px}.metrics article:nth-child(2){background:#fff;color:#171717;border:1px solid #e5ded4}.metrics article:nth-child(3){background:#f58a45}.metrics strong{font-size:36px}.metrics small{opacity:.72}.button,.mini{border:0;border-radius:14px;padding:12px 16px;font-weight:800;text-decoration:none;cursor:pointer}.ghost{background:#fff;color:#171717;border:1px solid #d9d2c8}.mini{background:#f0ebe4}.heading{justify-content:space-between}.heading h2,.explainer h2{margin:5px 0 10px}.cards{display:grid;gap:14px}.rec{border:1px solid #e4ddd3;border-radius:20px;padding:18px;display:grid;grid-template-columns:1.3fr .8fr .8fr auto;gap:16px;align-items:center}.rec.NOW{border-color:#f26f21;background:#fff8f3}.rec.SOON{border-color:#d9a225;background:#fffdf5}.rec.WATCH{background:#fbfaf8}.name strong{display:block;font-size:18px}.name small,.stat small{display:block;color:#777168;margin-top:4px}.stat strong{display:block;font-size:20px}.urgency{font-size:12px;font-weight:900;letter-spacing:.06em;padding:8px 10px;border-radius:999px;background:#171717;color:#fff}.reason{grid-column:1/-1;color:#5e584f;font-size:14px;border-top:1px dashed #ded6cc;padding-top:12px}.actions{grid-column:1/-1;display:flex;gap:10px;justify-content:flex-end}.actions a{background:#171717;color:#fff;text-decoration:none;border-radius:12px;padding:10px 14px;font-weight:800}.empty{text-align:center;color:#777168}.confidence{font-size:12px;font-weight:800}.confidence.low{color:#8a6b00}.confidence.good{color:#257a43}@media(max-width:760px){.shell{padding:16px}.hero{align-items:flex-start;flex-direction:column}.metrics{grid-template-columns:1fr}.rec{grid-template-columns:1fr 1fr}.name,.reason,.actions{grid-column:1/-1}.urgency{justify-self:start}.actions{justify-content:stretch}.actions a{width:100%;text-align:center}}

/* Keep the selected workspace theme across the stock planning routes. */
.merchant-reorder-page {
  --reorder-bg: #f7f4ef;
  --reorder-surface: #fff;
  --reorder-text: #171717;
  --reorder-muted: #665e55;
  --reorder-line: #e1d7cc;
  --reorder-accent: #a83e0b;
  --reorder-now: #fff5ed;
  --reorder-soon: #fff9e9;
  --reorder-watch: #fbfaf8;
  --reorder-low: #795a00;
  --reorder-good: #166439;
  background: var(--reorder-bg);
  color: var(--reorder-text);
}
html[data-theme="dark"] .merchant-reorder-page {
  --reorder-bg: #101113;
  --reorder-surface: #1c1e21;
  --reorder-text: #f8f4f0;
  --reorder-muted: #c4bbb3;
  --reorder-line: #4a4039;
  --reorder-accent: #ffab77;
  --reorder-now: #342319;
  --reorder-soon: #30291b;
  --reorder-watch: #202225;
  --reorder-low: #f3cd70;
  --reorder-good: #86dda5;
}
.merchant-reorder-page .muted,
.merchant-reorder-page .fine,
.merchant-reorder-page .empty,
.merchant-reorder-page .name small,
.merchant-reorder-page .stat small,
.merchant-reorder-page .reason { color: var(--reorder-muted); }
.merchant-reorder-page .eyebrow { color: var(--reorder-accent); }
.merchant-reorder-page .panel,
.merchant-reorder-page .ghost,
.merchant-reorder-page .mini,
.merchant-reorder-page .metrics article:nth-child(2) {
  background: var(--reorder-surface);
  border: 1px solid var(--reorder-line);
  color: var(--reorder-text);
}
.merchant-reorder-page .metrics article:nth-child(3) { color: #21140d; }
.merchant-reorder-page .metrics small { opacity: 1; }
.merchant-reorder-page .rec,
.merchant-reorder-page .reason { border-color: var(--reorder-line); }
.merchant-reorder-page .rec.NOW { background: var(--reorder-now); }
.merchant-reorder-page .rec.SOON { background: var(--reorder-soon); }
.merchant-reorder-page .rec.WATCH { background: var(--reorder-watch); }
.merchant-reorder-page .confidence.low { color: var(--reorder-low); }
.merchant-reorder-page .confidence.good { color: var(--reorder-good); }
.merchant-reorder-page .actions a {
  background: #ff9a62;
  color: #21140d;
}
.merchant-reorder-page .hero .business-stock-links {
  flex: 0 0 12rem;
}
@media (max-width: 760px) {
  .merchant-reorder-page .hero .business-stock-links { flex-basis: auto; }
}
