:root {
  --resource-icon: oklch(0 0 0);
  --resource-surface: #ffffff;
  --resource-text: #172033;
  --resource-muted: #64748b;
  --resource-border: #e2e8f0;
  --resource-track: #edf1f5;
  --resource-bandwidth: #2563eb;
  --resource-disk: #0d9488;
  --resource-traffic: #64748b;
  --resource-good: #15803d;
  --resource-warning: #a16207;
  --resource-critical: #be123c;
}
.dark {
  --resource-icon: oklch(1 0 0);
  --resource-surface: #0f172a;
  --resource-text: #f1f5f9;
  --resource-muted: #94a3b8;
  --resource-border: #334155;
  --resource-track: #1e293b;
  --resource-bandwidth: #60a5fa;
  --resource-disk: #2dd4bf;
  --resource-traffic: #94a3b8;
  --resource-good: #4ade80;
  --resource-warning: #facc15;
  --resource-critical: #fb7185;
}
.resource-overview { color: var(--resource-text); }
.resource-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.resource-heading h2 { font-size:18px; font-weight:700; line-height:1.4; margin:0; letter-spacing:0; }
.resource-heading p { color:var(--resource-muted); font-size:12px; margin:4px 0 0; }
.resource-source { display:flex; align-items:center; gap:7px; font-size:11px; color:var(--resource-muted); white-space:nowrap; }
.resource-source > span { width:6px; height:6px; border-radius:50%; background:var(--resource-good); }
.resource-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.resource-card { background:var(--resource-surface); border:1px solid var(--resource-border); border-radius:8px; padding:24px; min-width:0; }
.resource-bandwidth { --resource-series:var(--resource-bandwidth); }
.resource-disk { --resource-series:var(--resource-disk); }
.resource-traffic { --resource-series:var(--resource-traffic); }
.resource-card-heading { display:flex; align-items:center; gap:10px; }
.resource-card-heading h3 { font-size:14px; font-weight:650; margin:0; }
.resource-icon { display:flex; align-items:center; color:var(--resource-icon); }
.resource-icon svg { width:22px; height:22px; }
.resource-total { font-size:28px; line-height:1.3; font-weight:700; margin:20px 0 0; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.resource-total > span { display:block; font-weight:400; font-size:11px; color:var(--resource-muted); margin-top:4px; }
.resource-ring, .bandwidth-graph, .traffic-graph { height:188px; display:flex; justify-content:center; flex-direction:column; position:relative; }
.resource-ring svg { width:160px; height:160px; align-self:center; }
.resource-ring circle { fill:none; stroke-width:11px; }
.ring-track { stroke:var(--resource-track); }
.ring-used { stroke:var(--resource-series); }
.ring-label { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column; }
.ring-label strong, .resource-percent { font-size:27px; font-weight:650; font-variant-numeric:tabular-nums; }
.ring-label span, .resource-percent span { color:var(--resource-muted); font-size:11px; font-weight:400; }
.resource-percent { display:flex; align-items:baseline; gap:8px; margin-bottom:18px; }
.resource-meter, .traffic-track { height:22px; background:var(--resource-track); overflow:hidden; border-radius:3px; }
.resource-meter > div, .traffic-track > div { height:100%; background:var(--resource-series); }
.meter-axis { display:flex; justify-content:space-between; color:var(--resource-muted); font-size:10px; margin-top:8px; }
.traffic-bar-label { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px; margin-bottom:12px; font-size:11px; color:var(--resource-muted); }
.traffic-bar-label strong { color:var(--resource-text); font-weight:600; }
.resource-facts { border-top:1px solid var(--resource-border); padding-top:16px; margin:0; font-size:11px; }
.resource-facts > div { display:flex; justify-content:space-between; gap:12px; margin-bottom:9px; }
.resource-facts dt { color:var(--resource-muted); }
.resource-facts dd { margin:0; font-weight:600; text-align:right; overflow-wrap:anywhere; }
.resource-status { display:flex; align-items:center; gap:6px; color:var(--resource-good); font-size:10px; margin:14px 0 0; }
.resource-status > span { height:5px; width:5px; border-radius:50%; background:currentColor; flex-shrink:0; }
.resource-status.warning { color:var(--resource-warning); }
.resource-status.critical { color:var(--resource-critical); }
.resource-status.neutral { color:var(--resource-muted); }
@media(max-width:900px) { .resource-grid { gap:12px; } .resource-card { padding:18px; } }
@media(max-width:700px) { .resource-grid { grid-template-columns:minmax(0,1fr); gap:16px; } .resource-card { padding:24px; } .resource-heading { flex-wrap:wrap; gap:8px; } }

.trend-card { border:1px solid #e2e8f0; border-radius:16px; background:#fff; padding:18px; }
.dark .trend-card { border-color:#1e293b; background:#0f172a; }
.trend-head { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
.trend-head h3 { margin:0; font-size:14px; font-weight:700; color:#0f172a; }
.dark .trend-head h3 { color:#fff; }
.trend-head p { margin:2px 0 0; font-size:11px; color:#64748b; }
.trend-legend { display:flex; gap:14px; font-size:11px; color:#475569; }
.dark .trend-legend { color:#94a3b8; }
.trend-legend span { display:flex; align-items:center; gap:6px; }
.trend-legend i { width:10px; height:10px; border-radius:3px; display:block; }
.trend-key-disk { background:#4f46e5; }
.trend-key-traffic { background:#0d9488; }
.trend-figures { display:flex; flex-wrap:wrap; gap:22px; margin-bottom:10px; }
.trend-figures div span { display:block; font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:#64748b; }
.trend-figures div strong { font-size:19px; color:#0f172a; }
.dark .trend-figures div strong { color:#fff; }
.trend-plot { width:100%; height:auto; display:block; }
.trend-plot .grid-line { stroke:#e2e8f0; stroke-width:1; }
.dark .trend-plot .grid-line { stroke:#1e293b; }
.trend-plot .axis-text { font-size:9px; fill:#94a3b8; }
.trend-plot .disk-fill { fill:#4f46e5; fill-opacity:.12; }
.trend-plot .disk-line { fill:none; stroke:#4f46e5; stroke-width:2; stroke-linejoin:round; stroke-linecap:round; }
.trend-plot .traffic-bar { fill:#0d9488; }
.trend-plot .point { fill:#4f46e5; }
.trend-empty { padding:22px 0; font-size:12px; color:#64748b; text-align:center; }

.live-card { border:1px solid #e2e8f0; border-radius:16px; background:#fff; padding:18px; }
.dark .live-card { border-color:#1e293b; background:#0f172a; }
.live-dot { width:8px; height:8px; border-radius:50%; background:#16a34a; display:inline-block; margin-right:6px; animation:live-pulse 1.6s ease-in-out infinite; }
.live-dot.idle { background:#94a3b8; animation:none; }
@keyframes live-pulse { 0%,100% { opacity:1 } 50% { opacity:.25 } }
.live-figures { display:flex; flex-wrap:wrap; gap:22px; margin:12px 0 8px; }
.live-figures div span { display:block; font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:#64748b; }
.live-figures div strong { font-size:22px; color:#0f172a; }
.dark .live-figures div strong { color:#fff; }
.live-plot { width:100%; height:auto; display:block; }
.live-plot .grid-line { stroke:#e2e8f0; stroke-width:1; }
.dark .live-plot .grid-line { stroke:#1e293b; }
.live-plot .axis-text { font-size:9px; fill:#94a3b8; }
.live-plot .speed-fill { fill:#4f46e5; fill-opacity:.12; }
.live-plot .speed-line { fill:none; stroke:#4f46e5; stroke-width:2; stroke-linejoin:round; stroke-linecap:round; }
.live-plot .traffic-line { fill:none; stroke:#0d9488; stroke-width:2; stroke-linejoin:round; stroke-linecap:round; }
.live-note { font-size:11px; color:#64748b; margin-top:8px; }
