@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --canvas: #eef2ee;
  --nav: #203f33;
  --nav-muted: #b9cdbf;
  --accent: #2f7a5b;
  --accent-strong: #205a42;
  --accent-soft: #dcebe2;
  --surface: #ffffff;
  --surface-soft: #f7faf8;
  --ink: #14251e;
  --muted: #718079;
  --line: #dbe5de;
  --warning: #d8963a;
  --warning-soft: #faedd8;
  --shadow: rgba(30, 61, 47, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.45 'DM Sans', sans-serif; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
.shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 18px 20px; background: var(--nav); color: #fff; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 34px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--accent); color: #fff; font: 700 13px 'Space Grotesk'; }
.brand strong, .brand small { display: block; }
.brand strong { font: 600 14px 'Space Grotesk'; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: var(--nav-muted); font-size: 10px; }
.nav { display: grid; gap: 4px; }
.nav a { padding: 10px 12px; border-radius: 11px; color: var(--nav-muted); font-size: 12px; transition: .22s ease; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,.13); color: #fff; }
.nav a.active { box-shadow: inset 3px 0 0 var(--accent); }
.sidebar-footer { margin-top: auto; padding: 18px 10px 0; border-top: 1px solid rgba(255,255,255,.12); color: var(--nav-muted); font-size: 10px; }
.profile { display: flex; align-items: center; gap: 9px; margin-top: 9px; color: #fff; }
.avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--accent); font: 600 11px 'Space Grotesk'; }
.main { min-width: 0; padding: 34px clamp(22px, 4vw, 64px) 58px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 38px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font: 600 10px 'Space Grotesk'; letter-spacing: .16em; text-transform: uppercase; }
.topbar h1 { margin: 0; font: 600 clamp(26px, 3vw, 38px)/1.05 'Space Grotesk'; letter-spacing: -.045em; }
.topbar p { margin: 10px 0 0; color: var(--muted); }
.primary { border: 0; border-radius: 12px; padding: 12px 17px; background: var(--accent-strong); color: #fff; font-weight: 600; cursor: pointer; box-shadow: 0 8px 18px var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px var(--shadow); }
.primary:active { transform: translateY(0) scale(.98); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.metric { min-height: 126px; padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 9px 24px rgba(30,61,47,.045); }
.metric span, .metric small { display: block; color: var(--muted); }
.metric span { font-size: 11px; }
.metric strong { display: block; margin: 15px 0 3px; font: 600 29px 'Space Grotesk'; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric small { font-size: 10px; }
.grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(300px,.8fr); gap: 18px; }
.card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 12px 32px rgba(30,61,47,.045); }
.card.dark { background: var(--nav); border-color: transparent; color: #fff; box-shadow: 0 14px 32px rgba(20,43,34,.15); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card h2 { margin: 0; font: 600 19px 'Space Grotesk'; letter-spacing: -.025em; }
.card p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.dark p { color: var(--nav-muted); }
.link { color: var(--accent); font-size: 11px; font-weight: 600; }
.dark .link { color: #d7ebdf; }
.count { min-width: 32px; padding: 6px 8px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-strong); font: 600 11px 'Space Grotesk'; text-align: center; }
.progress { display: flex; height: 9px; gap: 3px; overflow: hidden; margin: 24px 0 14px; border-radius: 999px; background: rgba(255,255,255,.13); }
.progress i { display: block; border-radius: inherit; }
.progress i:nth-child(1) { width: 18%; background: var(--warning); }
.progress i:nth-child(2) { width: 57%; background: var(--accent); }
.progress i:nth-child(3) { width: 25%; background: #d6e7dd; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--nav-muted); font-size: 10px; }
.legend b { margin-left: 4px; color: #fff; font-weight: 500; }
.dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--accent); }
.dot.warning { background: var(--warning); }
.dot.muted { background: #9fb4a7; }
.orders { display: grid; gap: 9px; margin-top: 22px; }
.order { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; background: rgba(255,255,255,.08); }
.order b, .order small { display: block; }
.order b { font-size: 12px; }
.order small { margin-top: 3px; color: var(--nav-muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { padding: 6px 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong); font-size: 9px; font-weight: 600; white-space: nowrap; }
.status.warning { background: var(--warning-soft); color: #9b611e; }
.bars { display: grid; gap: 17px; margin-top: 25px; }
.bar-row { display: grid; gap: 7px; }
.bar-label { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.bar-label span { color: var(--muted); }
.bar-label b { font-weight: 600; }
.track { height: 7px; overflow: hidden; border-radius: 999px; background: var(--accent-soft); }
.track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.lower { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 18px; margin-top: 18px; }
.attention-list { display: grid; gap: 0; margin-top: 20px; }
.attention { display: grid; grid-template-columns: 9px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.attention:first-child { border-top: 0; }
.attention .dot { width: 8px; height: 8px; background: var(--warning); }
.attention b, .attention small { display: block; }
.attention b { font-size: 11px; }
.attention small { margin-top: 3px; color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attention strong { color: var(--accent); font: 600 11px 'Space Grotesk'; }
.chart { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 9px; height: 132px; margin-top: 21px; padding: 16px 4px 0; border-bottom: 1px solid var(--line); }
.chart div { display: grid; justify-items: center; align-items: end; gap: 7px; height: 100%; color: var(--muted); font-size: 9px; }
.chart i { display: block; width: 100%; max-width: 28px; min-height: 12px; border-radius: 7px 7px 2px 2px; background: var(--accent); }
.chart i:nth-child(1) { height: 30%; }
.chart i:nth-child(2) { height: 52%; }
.chart i:nth-child(3) { height: 43%; }
.chart i:nth-child(4) { height: 76%; }
.chart i:nth-child(5) { height: 62%; }
.chart i:nth-child(6) { height: 90%; }
.chart i:nth-child(7) { height: 68%; }
.footnote { display: flex; justify-content: space-between; margin-top: 13px; color: var(--muted); font-size: 10px; }
.footnote strong { color: var(--accent); }
.comparison-link { position: fixed; right: 22px; bottom: 18px; z-index: 2; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.9); color: var(--accent-strong); font-size: 10px; box-shadow: 0 6px 18px var(--shadow); }
.theme-graphite { --canvas:#eff0ec; --nav:#282e2c; --nav-muted:#c2c8be; --accent:#76844a; --accent-strong:#5c6b36; --accent-soft:#e3e8d3; --ink:#202521; --muted:#737b73; --line:#dde2d9; --shadow:rgba(58,68,35,.12); }
.theme-slate { --canvas:#edf2f5; --nav:#243945; --nav-muted:#b9cbd0; --accent:#3c7181; --accent-strong:#2f5e6c; --accent-soft:#dcecef; --ink:#182b32; --muted:#71838a; --line:#d9e3e7; --warning:#e0a34d; --warning-soft:#faecd1; --shadow:rgba(33,66,78,.12); }
@media (max-width: 1040px) { .shell { grid-template-columns: 200px minmax(0,1fr); } .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid, .lower { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .shell { display: block; } .sidebar { position: static; height: auto; padding: 17px 14px; } .brand { padding: 0 5px 15px; } .nav { display: flex; overflow-x: auto; gap: 5px; padding-bottom: 1px; } .nav a { flex: none; } .sidebar-footer { display: none; } .main { padding: 26px 15px 44px; } .topbar { align-items: flex-start; flex-direction: column; margin-bottom: 24px; } .primary { width: 100%; } .metrics { gap: 10px; } .metric { min-height: 112px; padding: 15px; } .metric strong { margin-top: 10px; font-size: 25px; } .card { padding: 18px; border-radius: 18px; } .order { grid-template-columns: 1fr; } .status { justify-self: start; } .comparison-link { right: 13px; bottom: 13px; } }
