:root {
  font-family: "DM Sans", sans-serif;
  color: #17231d;
  background: #f5f7f4;
  --ink: #17231d;
  --muted: #78847d;
  --line: #e2e8e1;
  --surface: #fff;
  --green: #2e8b57;
  --lime: #d7ed76;
  --orange: #e68a3a;
  --blue: #4b8ac4;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 80% -20%, #e4f2dc 0, transparent 38%), #f5f7f4; color: var(--ink); }
button, input { font: inherit; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 76px; padding: 0 max(28px, calc((100% - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(226,232,225,.8); background: rgba(255,255,255,.72); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 19px; letter-spacing: -.5px; }
.brand strong { font-weight: 700; }.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: var(--lime); font-family: "Space Grotesk"; font-weight: 700; }
.topbar-meta, .date-chip { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }.connection-dot, .pulse { width: 7px; height: 7px; border-radius: 50%; background: #63bd70; box-shadow: 0 0 0 4px #dff3df; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 60px 0 30px; flex: 1; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }.dashboard-heading h1 { margin: 5px 0 8px; font: 600 clamp(30px, 4vw, 46px)/1.1 "Space Grotesk"; letter-spacing: -1.8px; }.accent { color: var(--green); }.eyebrow { color: var(--green); text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; font-weight: 700; }.hint { color: var(--muted); margin: 0; font-size: 14px; }.date-chip { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(27,52,34,.04); }.stats-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }.stat-card { min-height: 158px; position: relative; overflow: hidden; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }.stat-card-primary { background: var(--ink); color: white; border-color: var(--ink); }.stat-label { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; }.stat-card-primary .stat-label { color: #a9b5ad; }.stat-value { margin: 15px 0 7px; font: 600 32px "Space Grotesk"; letter-spacing: -1px; }.stat-value small { font: 500 14px "DM Sans"; color: var(--muted); letter-spacing: 0; }.stat-card-primary .stat-value small { color: #a9b5ad; }.stat-foot { color: var(--muted); font-size: 12px; }.trend-up { color: #8fd294; font-weight: 700; }.progress-track { height: 5px; margin-top: 21px; border-radius: 5px; background: #405348; }.progress-value { height: 100%; width: 72%; border-radius: inherit; background: var(--lime); }.metric-icon { position: absolute; right: 20px; bottom: 20px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; font-size: 18px; }.metric-icon.orange { background: #fff0e2; color: var(--orange); }.metric-icon.blue { background: #e8f2fb; color: var(--blue); }.metric-icon.green { background: #e6f4e7; color: var(--green); }.status-value { font-size: 23px; color: var(--green); }
.system-card { padding: 25px; margin-bottom: 34px; }.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }.section-heading h2 { margin: 5px 0 5px; font: 600 21px "Space Grotesk"; }.status-badge { padding: 7px 11px; background: #e7f5e8; color: #29844b; border-radius: 20px; font-size: 12px; font-weight: 700; }.system-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.system-details > div { padding: 17px 0; }.detail-label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }.system-details strong { font-size: 16px; }.alerts { padding: 12px 15px; border-radius: 10px; background: #fff9f0; color: #855b2f; font-size: 12px; }.alerts ul { margin: 6px 0 0; padding-left: 17px; }.alerts li { color: #966c3d; }.chart-title { margin: 0 0 4px; }.last-update { color: var(--muted); font-size: 12px; margin-top: 8px; }.latest-info { color: var(--green); font-size: 13px; font-weight: 600; margin: 10px 0 0; }.loading-status { margin: 4px 0 15px; font-size: 12px; }
.chart-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }.chart-card { padding: 19px 20px 15px; }.chart-card-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }.chart-card h3 { margin: 0; font: 600 15px "Space Grotesk"; }.chart-card-heading span { color: var(--muted); font-size: 12px; }.chart-wrap { height: 210px; position: relative; }
.demo-notice { display: flex; gap: 9px; align-items: center; width: fit-content; margin: 0 0 18px; padding: 9px 13px; border: 1px solid #d6e8ac; border-radius: 8px; background: #f4f9e6; color: #55703b; font-size: 12px; font-weight: 600; }.demo-notice span { color: #8bb43d; }.hidden { display: none !important; }
.login-card { max-width: 430px; margin: 40px auto; padding: 36px; }.login-card h1 { margin: 8px 0; font: 600 32px "Space Grotesk"; }.login-card form { display: grid; gap: 15px; margin-top: 25px; }.login-card label { display: grid; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 600; }.login-card input { padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; outline: none; }.login-card input:focus { border-color: var(--green); box-shadow: 0 0 0 3px #e1f1e4; }.button { border: 0; border-radius: 9px; padding: 12px 16px; cursor: pointer; font-weight: 700; }.button-primary { display: flex; justify-content: space-between; background: var(--ink); color: white; }.button-ghost { margin-left: 10px; padding: 7px 11px; background: transparent; color: var(--muted); border: 1px solid var(--line); }.error { min-height: 18px; color: #bc463d; font-size: 13px; }footer { padding: 24px; color: var(--muted); text-align: center; font-size: 12px; }footer span { color: var(--ink); font-weight: 700; }
@media (max-width: 850px) { .stats-grid { grid-template-columns: repeat(2, 1fr); }.stat-card-primary { grid-column: span 2; }.chart-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .topbar { padding: 0 18px; }.topbar-meta > span:last-of-type { display: none; }.container { width: min(100% - 28px, 1180px); padding-top: 38px; }.dashboard-heading { display: block; }.date-chip { width: fit-content; margin-top: 18px; }.stats-grid { gap: 10px; }.stat-card { padding: 16px; min-height: 145px; }.stat-value { font-size: 26px; }.system-details { grid-template-columns: 1fr; }.system-details > div { padding: 12px 0; }.system-card { padding: 18px; }.login-card { padding: 25px; margin-top: 15px; } }
