/* ═══════════════════════════════════════════════════════════════════════
   Sentinel Dashboard — Halo Forerunner / Sentinel Theme
   Fonts: Orbitron (headings) + Exo (body) + monospace fallback (data)
   Design: hard-light surfaces, angular motifs, cyan glows, holographic UI
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Custom Properties ────────────────────────────────────────────────── */
:root {
    /* Core palette */
    --bg-deep:     #080c14;
    --bg-base:     #0c1220;
    --bg-panel:    #101828;
    --bg-elevated: #162032;
    --bg-hover:    #1c2a3e;
    --border:      #1e3048;
    --border-glow: #2a4a6e;
    --border-holo: rgba(34,211,238,0.25);
    --text:        #e2e8f0;
    --text-soft:   #94a3b8;
    --text-muted:  #5c6e88;
    --text-accent: #5ee8ff;
    --cyan:        #22d3ee;
    --cyan-glow:   rgba(34,211,238,0.35);
    --cyan-dim:    rgba(34,211,238,0.12);
    --blue:        #60a5fa;
    --blue-glow:   rgba(96,165,250,0.30);
    --blue-dim:    rgba(96,165,250,0.10);
    --silver:      #bcc9db;
    --gold:        #fbbf24;
    --gold-dim:    rgba(251,191,36,0.15);
    --green:       #34d399;
    --green-bg:    rgba(52,211,153,0.12);
    --red:         #f87171;
    --red-bg:      rgba(248,113,113,0.12);
    --orange:      #fb923c;
    --orange-bg:   rgba(251,146,60,0.12);
    --radius-sm:  4px;
    --radius:     6px;
    --radius-lg:  10px;
    --shadow-panel: 0 4px 24px rgba(0,0,0,0.5);
    --glow-cyan:  0 0 12px var(--cyan-glow),0 0 40px var(--cyan-dim);
    --font-heading: Orbitron,Exo,system-ui,sans-serif;
    --font-body:    Exo,system-ui,sans-serif;
    --mono: JetBrains Mono,Cascadia Code,Fira Code,monospace;
    --ease: cubic-bezier(0.33,1,0.68,1);
    --dur-fast: 0.2s;
    --dur: 0.35s;
    --dur-slow: 0.6s;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
    background: var(--bg-deep);
}
body {
    font-family: var(--font-body);
    background:
        radial-gradient(ellipse at 20% 10%, rgba(34,211,238,0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 90%, rgba(96,165,250,0.03) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-base) 50%, var(--bg-deep) 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── Subtle circuit-grid overlay ──────────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(34,211,238,0.015) 2px, rgba(34,211,238,0.015) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(34,211,238,0.012) 2px, rgba(34,211,238,0.012) 4px);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
}
@media (prefers-reduced-motion: reduce) { body::before { display: none; } }

/* ── Typography ────────────────────────────────────────────────────────── */
h1 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--text);
}
h2 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--silver);
}
a { color: var(--cyan); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--text-accent); text-shadow: 0 0 8px var(--cyan-dim); }
code {
    font-family: var(--mono);
    background: var(--bg-elevated);
    padding: 0.1em 0.4em;
    border-radius: var(--radius-sm);
    font-size: 0.8em;
    color: var(--cyan);
    border: 1px solid var(--border);
}

/* ── Header — Sentinel command bar ────────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(16,24,40,0.97) 0%, rgba(12,18,32,0.94) 100%);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 1rem;
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    box-shadow: 0 1px 0 var(--border-glow), 0 4px 16px rgba(0,0,0,0.3);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: 2px solid var(--border-glow);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    flex-shrink: 0;
    position: relative;
    clip-path: polygon(6px 0, calc(100% - 4px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 6px) 100%, 4px 100%, 0 calc(100% - 6px), 0 8px);
    box-shadow: 0 0 0 1px var(--cyan-dim), var(--glow-cyan);
    animation: brandPulse 4s ease-in-out infinite;
}
@keyframes brandPulse {
    0%, 100% { box-shadow: 0 0 0 1px var(--cyan-dim), 0 0 12px var(--cyan-glow), 0 0 40px var(--cyan-dim); }
    50%      { box-shadow: 0 0 0 1px var(--cyan-dim), 0 0 18px var(--cyan-glow), 0 0 54px var(--cyan-dim); }
}
@media (prefers-reduced-motion: reduce) { .brand-icon { animation: none; } }
.brand-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    text-shadow: 0 0 20px var(--cyan-dim);
}
.brand-tag {
    font-size: 0.6rem;
    color: var(--cyan);
    font-weight: 600;
    display: block;
    margin-top: -2px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: var(--font-heading);
}
.header-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.update-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    color: var(--text-soft);
    font-family: var(--mono);
    background: var(--bg-elevated);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.dot-live {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
    animation: dotPulse 3s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) { .dot-live { animation: none; } }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-soft);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
    clip-path: polygon(3px 0, calc(100% - 2px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 3px) 100%, 2px 100%, 0 calc(100% - 3px), 0 4px);
}
.btn:hover {
    background: var(--bg-hover);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 12px var(--cyan-dim), inset 0 0 12px var(--cyan-dim);
}
.btn:active { transform: scale(0.97); }
.btn-icon { padding: 6px; }
.btn-icon svg { width: 18px; height: 18px; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-small { padding: 3px 8px; font-size: 0.7rem; }

/* ── Summary Bar ───────────────────────────────────────────────────────── */
.summary-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 0.55rem 1rem; max-width: 1200px; margin: 0 auto;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
}
.summary-item {
    display: flex; align-items: center; gap: 5px;
    padding: 3px 10px 3px 7px;
    background: var(--bg-panel); border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: 0.72rem; font-weight: 500;
    clip-path: polygon(2px 0,calc(100% - 1px) 0,100% 3px,100% calc(100% - 3px),calc(100% - 2px) 100%,1px 100%,0 calc(100% - 2px),0 3px);
}
.summary-dot {
    width: 10px; height: 10px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0;
}
.summary-dot.up   { background: var(--green); box-shadow: 0 0 8px rgba(52,211,153,0.5); }
.summary-dot.down { background: var(--red);  box-shadow: 0 0 8px rgba(248,113,113,0.5); animation: troubleBlink 1s ease-in-out infinite; }
@keyframes troubleBlink {
    0%,100% { opacity: 1; } 50% { opacity: 0.4; }
}
@media (prefers-reduced-motion:reduce) { .summary-dot.down { animation: none; } }
.summary-label { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.65rem; }
.summary-count { font-family: var(--mono); font-weight: 600; color: var(--text); font-size: 0.82rem; }

/* Toggle switch */
.summary-toggle { display: flex; align-items: center; cursor: pointer; margin-left: auto; }
.summary-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
    width: 36px; height: 20px; background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: 10px;
    position: relative; transition: all var(--dur-fast) var(--ease);
}
.toggle-knob {
    position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
    border-radius: 50%; background: var(--text-muted); transition: all var(--dur-fast) var(--ease);
}
.summary-toggle input:checked + .toggle-track { background: var(--cyan-dim); border-color: var(--cyan); }
.summary-toggle input:checked + .toggle-track .toggle-knob {
    transform: translateX(16px); background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}

/* ── Grid Layout ───────────────────────────────────────────────────────── */
.grid {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 12px;
    max-width: 1200px; margin: 0 auto; padding: 0.5rem 1rem 2rem;
}
.card-wide { grid-column: span 2; }
main { position: relative; z-index: 1; }

/* ── Card — Forerunner Panel ──────────────────────────────────────────── */
.card {
    background: linear-gradient(170deg, var(--bg-panel) 0%, var(--bg-base) 100%);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    position: relative; overflow: hidden;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    clip-path: polygon(4px 0,calc(100% - 2px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 4px) 100%,2px 100%,0 calc(100% - 4px),0 6px);
}
.card::before {
    content: ''; position: absolute; top: 0; left: 12px; right: 12px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
    opacity: 0.6; transition: opacity var(--dur) var(--ease);
}
.card:hover { border-color: var(--border-glow); box-shadow: var(--shadow-panel), 0 0 20px rgba(34,211,238,0.06); }
.card:hover::before { opacity: 1; }
.card-head {
    padding: 0.7rem 1rem 0.4rem; display: flex;
    justify-content: space-between; align-items: flex-start; gap: 8px;
}
.card-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-icon { font-size: 1rem; }
.card-sub { font-size: 0.65rem; color: var(--text-muted); font-family: var(--mono); letter-spacing: 0.04em; }
.card-body { padding: 0.4rem 1rem 0.85rem; }

/* ── Pills / Badges ───────────────────────────────────────────────────── */
.pill {
    font-size: 0.6rem; font-weight: 700; font-family: var(--font-heading);
    letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px;
    border-radius: var(--radius-sm); border: 1px solid transparent;
    clip-path: polygon(2px 0,calc(100% - 1px) 0,100% 3px,100% calc(100% - 3px),calc(100% - 2px) 100%,1px 100%,0 calc(100% - 2px),0 3px);
}
.pill-pi { background: var(--blue-dim); border-color: rgba(96,165,250,0.2); color: var(--blue); }
.pill-up { background: var(--green-bg); border-color: rgba(52,211,153,0.2); color: var(--green); }
.pill-down { background: var(--red-bg); border-color: rgba(248,113,113,0.2); color: var(--red); }
.pill-warn { background: var(--orange-bg); border-color: rgba(251,146,60,0.2); color: var(--orange); }

/* ── Skeleton Loading ──────────────────────────────────────────────────── */
.skel { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.skel-line {
    height: 12px; border-radius: 3px;
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-hover) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%; animation: shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
@media (prefers-reduced-motion:reduce) { .skel-line { animation: none; } }
.w-30 { width: 30%; } .w-40 { width: 40%; } .w-50 { width: 50%; } .w-60 { width: 60%; }
.w-70 { width: 70%; } .w-80 { width: 80%; } .w-90 { width: 90%; }

/* ── Stat Row ───────────────────────────────────────────────────────────── */
.stat-row {
    display: flex; justify-content: space-between; padding: 4px 0;
    border-bottom: 1px solid rgba(30,48,72,0.5); font-size: 0.78rem;
}
.stat-row:last-child { border-bottom: none; }
.stat-label { color: var(--text-muted); font-weight: 500; }
.stat-value { font-family: var(--mono); font-size: 0.76rem; font-weight: 600; color: var(--text); }

/* ── Meter / Bar ────────────────────────────────────────────────────────── */
.meter {
    width: 100%; height: 6px; background: var(--bg-deep);
    border-radius: 3px; margin-top: 4px; border: 1px solid var(--border); overflow: hidden;
}
.meter-fill { height: 100%; border-radius: 3px; transition: width var(--dur-slow) var(--ease); }
.meter-fill.low  { background: var(--green); box-shadow: 0 0 8px rgba(52,211,153,0.4); }
.meter-fill.mid  { background: var(--orange); box-shadow: 0 0 8px rgba(251,146,60,0.4); }
.meter-fill.high { background: var(--red); box-shadow: 0 0 8px rgba(248,113,113,0.4); animation: meterWarn 1.5s ease-in-out infinite; }
@keyframes meterWarn { 0%,100%{opacity:0.85} 50%{opacity:1} }
@media (prefers-reduced-motion:reduce) { .meter-fill.high { animation: none; } }

/* ── Temperature Grid ──────────────────────────────────────────────────── */
.temp-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(80px,1fr)); gap: 6px; }
.temp-item {
    text-align: center; padding: 8px 6px; background: var(--bg-elevated);
    border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.temp-value { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; color: var(--text); }
.temp-label { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; font-family: var(--font-heading); }
.temp-warn { color: var(--orange); }
.temp-hot  { color: var(--red); }

/* ── Container List ─────────────────────────────────────────────────────── */
.cont-search {
    width: 100%; padding: 7px 10px; background: var(--bg-deep);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); font-family: var(--font-body); font-size: 0.75rem;
    margin-bottom: 8px; outline: none;
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.cont-search:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px var(--cyan-dim); }
.cont-search::placeholder { color: var(--text-muted); }
.cont-list { display: flex; flex-direction: column; gap: 3px; max-height: 280px; overflow-y: auto; }
.cont-item {
    display: flex; align-items: center; gap: 8px; padding: 5px 8px;
    border-radius: var(--radius-sm); font-size: 0.72rem;
    transition: background var(--dur-fast) var(--ease);
}
.cont-item:hover { background: var(--bg-hover); }
.cont-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.cont-dot.running { background: var(--green); box-shadow: 0 0 6px rgba(52,211,153,0.5); }
.cont-dot.exited  { background: var(--red); }
.cont-dot.paused  { background: var(--orange); box-shadow: 0 0 6px rgba(251,146,60,0.3); }
.cont-name { font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cont-status { color: var(--text-muted); font-size: 0.68rem; font-family: var(--mono); text-transform: uppercase; }

/* ── Drive Cards ────────────────────────────────────────────────────────── */
.drive-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 8px; }
.drive-item {
    padding: 10px 12px; background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius); transition: all var(--dur-fast) var(--ease);
    position: relative;
    clip-path: polygon(3px 0,calc(100% - 1px) 0,100% 4px,100% calc(100% - 4px),calc(100% - 3px) 100%,1px 100%,0 calc(100% - 3px),0 4px);
}
.drive-item:hover { border-color: var(--border-glow); box-shadow: 0 0 12px rgba(34,211,238,0.05); }
.drive-item::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 2px;
    background: var(--text-muted); transition: background var(--dur-fast) var(--ease);
}
.drive-item:has(.drive-health.pass)::before    { background: var(--green); box-shadow: 0 0 6px var(--green); }
.drive-item:has(.drive-health.fail)::before    { background: var(--red); }
.drive-item:has(.drive-health.unknown)::before { background: var(--orange); }
.drive-header { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.drive-icon {
    width: 28px; height: 28px; border-radius: var(--radius-sm);
    background: var(--bg-deep); border: 1px solid var(--border);
    flex-shrink: 0; display: flex; align-items: center; justify-content: center; position: relative;
}
.drive-icon::after { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--text-muted); transition: all var(--dur) var(--ease); }
.drive-icon[data-health="PASSED"] { border-color: rgba(52,211,153,0.3); }
.drive-icon[data-health="PASSED"]::after { background: var(--green); box-shadow: 0 0 6px var(--green); }
.drive-icon[data-health="FAILED"]  { border-color: rgba(248,113,113,0.3); }
.drive-icon[data-health="FAILED"]::after  { background: var(--red); }
.drive-info { flex: 1; min-width: 0; }
.drive-name { font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; color: var(--silver); text-transform: uppercase; }
.drive-model { font-size: 0.62rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.drive-temp { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; padding: 2px 7px; border-radius: var(--radius-sm); flex-shrink: 0; border: 1px solid var(--border); }
.drive-temp.cool { color: var(--green); border-color: rgba(52,211,153,0.2); background: var(--green-bg); }
.drive-temp.warm { color: var(--orange); border-color: rgba(251,146,60,0.2); background: var(--orange-bg); }
.drive-temp.hot  { color: var(--red); border-color: rgba(248,113,113,0.2); background: var(--red-bg); }

/* Usage bar */
.drive-usage { margin-top: 6px; }
.drive-usage-bar { width: 100%; height: 5px; background: var(--bg-deep); border-radius: 3px; border: 1px solid var(--border); overflow: hidden; }
.drive-usage-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--blue)); box-shadow: 0 0 8px var(--cyan-dim); transition: width var(--dur-slow) var(--ease); }
.drive-usage-bar.warn .drive-usage-fill  { background: linear-gradient(90deg, var(--orange), var(--gold)); box-shadow: 0 0 8px rgba(251,146,60,0.3); }
.drive-usage-bar.critical .drive-usage-fill { background: linear-gradient(90deg, var(--orange), var(--red)); box-shadow: 0 0 8px rgba(248,113,113,0.3); animation: criticalPulse 1.5s ease-in-out infinite; }
@keyframes criticalPulse { 0%,100%{opacity:0.8} 50%{opacity:1} }
@media (prefers-reduced-motion:reduce) { .drive-usage-bar.critical .drive-usage-fill { animation: none; } }
.drive-usage-stats { display: flex; justify-content: space-between; font-size: 0.65rem; color: var(--text-muted); margin-top: 3px; font-family: var(--mono); }
.drive-usage-pct { color: var(--text-soft); }
.drive-mounts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.drive-mount-tag { font-size: 0.6rem; font-family: var(--mono); padding: 1px 6px; background: var(--bg-deep); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); }
.drive-health { font-size: 0.65rem; font-weight: 700; margin-top: 6px; font-family: var(--font-heading); letter-spacing: 0.06em; display: flex; align-items: center; gap: 4px; }
.drive-health.pass    { color: var(--green); }
.drive-health.fail    { color: var(--red); }
.drive-health.unknown { color: var(--orange); }
.health-glyph { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.drive-health.pass .health-glyph    { background: var(--green); box-shadow: 0 0 6px var(--green); }
.drive-health.fail .health-glyph    { background: var(--red); }
.drive-health.unknown .health-glyph { background: var(--orange); }

/* ── Disk I/O Rows ──────────────────────────────────────────────────────── */
.io-list { display: flex; flex-direction: column; gap: 8px; }
.io-row {
    padding: 8px 10px; background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: border-color var(--dur-fast) var(--ease);
}
.io-row:hover { border-color: var(--border-glow); }
.io-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.io-name { font-family: var(--mono); font-weight: 700; font-size: 0.8rem; color: var(--silver); text-transform: uppercase; }
.io-throughput { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; color: var(--cyan); }
.io-detail { display: flex; gap: 12px; margin-bottom: 4px; font-family: var(--mono); font-size: 0.68rem; }
.io-rw.io-read { color: var(--green); }
.io-rw.io-write { color: var(--orange); }
.io-util { color: var(--text-muted); }

/* ── Events ─────────────────────────────────────────────────────────────── */
.event-list { display: flex; flex-direction: column; gap: 4px; max-height: 250px; overflow-y: auto; }
.event-item {
    display: flex; align-items: center; gap: 10px; padding: 6px 8px;
    border-radius: var(--radius-sm); background: var(--bg-elevated);
    border: 1px solid transparent; font-size: 0.72rem;
    transition: all var(--dur-fast) var(--ease);
}
.event-item:hover { background: var(--bg-hover); border-color: var(--border); }
.event-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.event-dot.outage   { background: var(--red);  box-shadow: 0 0 6px rgba(248,113,113,0.4); }
.event-dot.recovery { background: var(--green); box-shadow: 0 0 6px rgba(52,211,153,0.4); }
.event-time { color: var(--text-muted); font-family: var(--mono); font-size: 0.65rem; white-space: nowrap; }
.event-type { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; padding: 1px 6px; border-radius: var(--radius-sm); font-family: var(--font-heading); letter-spacing: 0.05em; }
.event-type.outage   { background: var(--red-bg); color: var(--red); }
.event-type.recovery { background: var(--green-bg); color: var(--green); }
.event-duration { color: var(--text-soft); margin-left: auto; font-size: 0.68rem; font-family: var(--mono); }
.text-muted { font-size: 0.76rem; color: var(--text-muted); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
    text-align: center; padding: 1.5rem; color: var(--text-muted);
    font-size: 0.68rem; border-top: 1px solid var(--border);
    position: relative; z-index: 1; font-family: var(--font-heading);
    letter-spacing: 0.06em; text-transform: uppercase;
}
.footer a { color: var(--text-soft); transition: color var(--dur-fast) var(--ease); }
.footer a:hover { color: var(--cyan); }
.ts-ip { font-family: var(--mono); color: var(--text-muted); }

/* ── Scrollbar — Forerunner style ──────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-glow); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ── Animations ────────────────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.card-body > :not(.skel) { animation: fadeUp 0.3s ease; }

/* ── Energy Sweep — horizontal scan line over cards ────────────────────── */
.card::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, transparent 0%, rgba(34,211,238,0.035) 48%, rgba(34,211,238,0.07) 50%, rgba(34,211,238,0.035) 52%, transparent 100%);
    transform: translateX(-120%); transition: none; z-index: 0;
}
.card:hover::after { animation: energySweep 2.5s var(--ease) infinite; }
@keyframes energySweep { 0%{transform:translateX(-120%)} 100%{transform:translateX(120%)} }
@media (prefers-reduced-motion:reduce) { .card:hover::after { animation: none; display: none; } }

/* ── Holographic Utility Classes ───────────────────────────────────────── */
.holo-border { border: 1px solid var(--border-holo); box-shadow: 0 0 8px var(--cyan-dim), inset 0 0 8px var(--cyan-dim); }
.glow-text { text-shadow: 0 0 12px var(--cyan-glow); }
.sentinel-angle { clip-path: polygon(6px 0,calc(100% - 3px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 6px) 100%,3px 100%,0 calc(100% - 6px),0 8px); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .card-wide { grid-column: span 2; }
}
@media (max-width: 600px) {
    .grid { grid-template-columns: 1fr; }
    .card-wide { grid-column: span 1; }
    .drive-grid { grid-template-columns: 1fr; }
    .brand-name { font-size: 1rem; }
    .brand-icon { width: 34px; height: 34px; }
    .brand-icon svg { width: 22px; height: 22px; }
    .update-badge { font-size: 0.62rem; padding: 3px 8px; }
    .header { padding: 0.5rem 0.75rem; }
    .summary-bar { gap: 6px; padding: 0.4rem 0.75rem; }
    .summary-item { padding: 2px 7px 2px 5px; font-size: 0.65rem; }
    .card-head { padding: 0.6rem 0.75rem 0.3rem; }
    .card-body { padding: 0.3rem 0.75rem 0.75rem; }
    .temp-grid { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 1.05rem; }
    h2 { font-size: 0.8rem; }
}
@media (max-width: 400px) {
    .grid { padding: 0 0.6rem 1.5rem; gap: 8px; }
    .brand-icon { width: 30px; height: 30px; }
    .temp-value { font-size: 1.1rem; }
}

/* ── Reduced Motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
