:root{
  --bg:#090b10;
  --panel:#11161f;
  --panel-2:#171e29;
  --border:#2a3442;
  --text:#eef2ff;
  --muted:#a9b3c4;
  --red:#d31217;
  --red-soft:#64141a;
  --amber:#d7a22d;
  --green:#35c16f;
  --cyan:#6fd2ff;
  --shadow:0 20px 50px rgba(0,0,0,.38);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:radial-gradient(circle at top,#1a1013 0%,#0a0d12 42%,#06080b 100%);color:var(--text);font-family:Segoe UI,Arial,Helvetica,sans-serif}
a{color:inherit;text-decoration:none}
.monitor-body{min-height:100vh}
.monitor-header{position:sticky;top:0;z-index:20;background:rgba(9,11,16,.86);backdrop-filter:blur(10px);border-bottom:1px solid rgba(211,18,23,.18)}
.monitor-header-inner{max-width:1880px;margin:0 auto;padding:18px 24px;display:flex;justify-content:space-between;align-items:flex-start;gap:24px}
.eyebrow{margin:0 0 6px 0;color:#ff7a7f;letter-spacing:.14em;text-transform:uppercase;font-size:12px;font-weight:700}
.monitor-header h1{margin:0;font-size:38px;line-height:1.05}
.subtitle{margin:10px 0 0 0;color:var(--muted);font-size:16px;max-width:900px}
.header-actions{display:flex;gap:12px;flex-wrap:wrap;padding-top:8px}
.header-link{padding:10px 14px;border-radius:999px;border:1px solid var(--border);background:rgba(255,255,255,.03);font-weight:600}
.header-link:hover{border-color:rgba(111,210,255,.55);color:#bde9ff}
.header-link-speedtest{
  border-color:rgba(111,210,255,.45);
  background:linear-gradient(180deg,rgba(111,210,255,.14),rgba(111,210,255,.055));
  color:#d8f4ff;
  box-shadow:0 0 18px rgba(111,210,255,.08);
}
.header-link-speedtest:hover{
  border-color:rgba(111,210,255,.85);
  color:#ffffff;
  background:linear-gradient(180deg,rgba(111,210,255,.24),rgba(111,210,255,.095));
}
.monitor-main{max-width:1880px;margin:0 auto;padding:24px}
.monitor-status-bar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:18px;align-items:center;margin-bottom:24px;padding:16px 18px;background:linear-gradient(180deg,rgba(18,23,32,.94),rgba(13,17,24,.94));border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow)}
.status-pill{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid var(--border);font-weight:700}
.status-pill::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--amber);box-shadow:0 0 10px rgba(215,162,45,.65)}
.status-pill.ok::before{background:var(--green);box-shadow:0 0 12px rgba(53,193,111,.65)}
.status-pill.error::before{background:var(--red);box-shadow:0 0 12px rgba(211,18,23,.75)}
.status-meta{display:flex;gap:18px;flex-wrap:wrap;color:var(--muted)}
.status-meta strong{color:var(--text)}
.gauges-grid{display:grid;grid-template-columns:repeat(5,minmax(260px,1fr));gap:22px}
.gauge-card{background:linear-gradient(180deg,rgba(18,22,31,.98),rgba(11,15,22,.98));border:1px solid var(--border);border-radius:26px;box-shadow:var(--shadow);padding:18px 18px 16px 18px;display:flex;flex-direction:column;gap:14px;min-height:640px;overflow:hidden}
.gauge-card-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.gauge-card h2{margin:0;font-size:28px}
.gauge-badge{display:inline-flex;min-width:80px;justify-content:center;padding:8px 12px;border-radius:999px;background:rgba(211,18,23,.12);border:1px solid rgba(211,18,23,.35);font-weight:800;color:#ffd6d8}
.gauge-wrap{display:flex;justify-content:center;align-items:center;padding:4px 0;min-height:335px}
.analog-gauge{width:100%;max-width:360px;height:auto;overflow:visible}
.gauge-shell{fill:rgba(255,255,255,.01);stroke:rgba(211,18,23,.95);stroke-width:10}
.gauge-track{fill:none;stroke:#253245;stroke-width:15;stroke-linecap:round}
.gauge-zone{fill:none;stroke-width:12;stroke-linecap:round;opacity:.95}
.gauge-zone-safe{stroke:var(--green)}
.gauge-zone-warn{stroke:var(--amber)}
.gauge-zone-danger{stroke:var(--red)}
.gauge-needle{stroke:#d8dde8;stroke-width:10;stroke-linecap:round;transform-origin:150px 150px;transition:transform .35s cubic-bezier(.22,1,.36,1)}
.gauge-pivot{fill:#0d1118;stroke:#8b96aa;stroke-width:10}
.gauge-value,.gauge-subvalue{paint-order:stroke;stroke:rgba(8,10,14,.9);stroke-width:3px;stroke-linejoin:round}
.gauge-value{fill:var(--text);font-weight:800;font-size:30px}
.gauge-subvalue{fill:var(--muted);font-size:16px}
.gauge-details{display:grid;gap:10px}
.detail-row{display:flex;justify-content:space-between;gap:14px;padding:10px 12px;background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.01));border:1px solid rgba(255,255,255,.05);border-radius:14px;align-items:flex-start}
.detail-row span{color:var(--muted);min-width:0;flex:1 1 auto}
.detail-row strong{text-align:right;word-break:break-word;max-width:58%;display:block;line-height:1.2}
.monitor-notes-card{margin-top:22px;padding:18px 20px;background:linear-gradient(180deg,rgba(18,22,31,.98),rgba(11,15,22,.98));border:1px solid var(--border);border-radius:24px;box-shadow:var(--shadow)}
.monitor-notes-card h2{margin:0 0 12px 0}
.monitor-notes-card ul{margin:0;padding-left:18px;color:var(--muted);display:grid;gap:8px}
@media (max-width:1700px){.gauges-grid{grid-template-columns:repeat(3,minmax(260px,1fr))}}
@media (max-width:1150px){.gauges-grid{grid-template-columns:repeat(2,minmax(260px,1fr))}}
@media (max-width:840px){
  .monitor-header-inner{padding:16px 16px 14px 16px}
  .monitor-main{padding:16px}
  .gauges-grid{grid-template-columns:1fr}
  .gauge-card{min-height:auto}
  .monitor-header h1{font-size:30px}
}

.gauge-details .detail-row strong{font-variant-numeric:tabular-nums;}

.monitor-report-button{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  margin-top:2px;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.035);
  color:var(--text);
  font-weight:800;
  letter-spacing:.02em;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03);
  transition:border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}
.monitor-report-button:hover{
  border-color:rgba(111,210,255,.55);
  color:#bde9ff;
  background:rgba(111,210,255,.07);
  transform:translateY(-1px);
}