:root {
  --ink: #172526;
  --muted: #6f807e;
  --line: #d8e1df;
  --paper: #f5f8f6;
  --panel: #ffffff;
  --deep: #102b2b;
  --mint: #bce6d5;
  --teal: #187c71;
  --amber: #bd741c;
  --red: #c44b40;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 80% -10%, #e3f1e9, transparent 35%), var(--paper); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 236px 1fr; }
.sidebar { background: var(--deep); color: #dcece5; padding: 28px 18px; display: flex; flex-direction: column; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; }
.brand-mark { width: 30px; height: 30px; border: 2px solid var(--mint); display: grid; place-items: center; color: var(--mint); font-weight: 800; transform: rotate(45deg); }
.brand-mark span { transform: rotate(-45deg); }
.brand strong { letter-spacing: .08em; font-size: 14px; }
.nav { display: grid; gap: 6px; }
.nav button { border: 0; background: transparent; color: #a9c0ba; text-align: left; padding: 12px 14px; border-radius: 8px; }
.nav button:hover, .nav button.active { color: #fff; background: #1d4645; }
.side-note { margin-top: auto; color: #86a39b; font-size: 12px; line-height: 1.6; padding: 10px; }
.main { min-width: 0; padding: 28px clamp(20px, 4vw, 56px); }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; }
.eyebrow { color: var(--teal); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; }
h1 { margin: 6px 0 0; font-size: 36px; letter-spacing: 0; }
h2 { margin: 0 0 16px; font-size: 20px; }
.user-actions { display: flex; align-items: center; gap: 10px; }
.user-chip { background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 9px 13px; font-size: 13px; }
.button { border: 1px solid var(--deep); border-radius: 7px; padding: 10px 14px; background: var(--deep); color: #fff; }
.button.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 19px; box-shadow: 0 10px 30px rgba(21, 52, 47, .04); }
.metric { min-height: 112px; }
.metric-label { color: var(--muted); font-size: 12px; }
.metric-value { margin-top: 12px; font-size: 27px; font-weight: 700; }
.metric-foot { color: var(--muted); font-size: 12px; margin-top: 8px; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.ok { color: var(--teal); }.status.ok::before { background: var(--teal); }
.status.warn { color: var(--amber); }.status.warn::before { background: var(--amber); }
.status.bad { color: var(--red); }.status.bad::before { background: var(--red); }
.status.off { color: var(--muted); }
.list { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.row { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 14px; align-items: center; padding: 14px; background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; }
.row:last-child { border-bottom: 0; }
.muted { color: var(--muted); }
.tag { display: inline-block; padding: 4px 7px; border-radius: 4px; background: #edf5f1; color: var(--teal); font-size: 11px; font-weight: 700; }
.notice { padding: 12px 14px; border-left: 3px solid var(--amber); background: #fff8ed; color: #7c521c; font-size: 13px; }
.error { padding: 14px; border-left: 3px solid var(--red); background: #fff2f0; color: #873a33; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: linear-gradient(135deg, #102b2b 0 42%, #e3f1e9 42%); }
.login-card { width: min(430px, 100%); background: #fff; padding: 34px; border-radius: 12px; box-shadow: 0 22px 70px rgba(0,0,0,.2); }
.login-card h1 { font-size: 31px; margin-bottom: 8px; }.login-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.form { display: grid; gap: 12px; margin-top: 24px; }.form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }.form input, .form select { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 11px; color: var(--ink); background: #fff; }
.form .button { margin-top: 7px; }
details { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
summary { cursor: pointer; color: var(--teal); font-weight: 700; font-size: 13px; }
.compact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-form .button { align-self: end; min-height: 40px; }
.chart { height: 170px; display: flex; align-items: end; gap: 5px; padding: 15px 4px 0; border-bottom: 1px solid var(--line); }
.bar { flex: 1; min-width: 3px; background: linear-gradient(var(--teal), #9ed8bf); border-radius: 3px 3px 0 0; }
.empty { color: var(--muted); padding: 28px 0; text-align: center; font-size: 13px; }
.obs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.obs-grid div { padding: 11px 12px; background: #f4f8f6; border: 1px solid #e4ece8; }
.obs-grid span, .service-row span { display: block; color: var(--muted); font-size: 12px; }
.obs-grid strong { display: block; margin-top: 7px; font-size: 18px; }
.service-list { display: grid; gap: 8px; margin-top: 16px; }
.service-row { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); }
.mobile-menu { display: none; }
@media (max-width: 920px) { .shell { grid-template-columns: 76px 1fr; }.brand strong, .nav button span, .side-note { display: none; }.brand { justify-content: center; padding: 0; }.nav button { text-align: center; font-size: 0; }.nav button::first-letter { font-size: 18px; }.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .shell { display: block; }.sidebar { position: sticky; top: 0; z-index: 4; padding: 10px 12px; display: flex; flex-direction: row; align-items: center; }.nav { display: flex; overflow-x: auto; }.nav button { padding: 9px 11px; font-size: 12px; white-space: nowrap; }.nav button span { display: inline; }.brand { flex: 0 0 auto; }.brand strong { display: block; font-size: 12px; }.side-note { display: none; }.main { padding: 22px 16px 36px; }.topbar { align-items: flex-start; }h1 { font-size: 28px; }.user-chip { display: none; }.grid, .grid.two, .compact-form { grid-template-columns: 1fr; }.row { grid-template-columns: 1fr 1fr; gap: 8px; }.row > :last-child { grid-column: 1 / -1; } }
