:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: rgba(14, 18, 29, .74);
  --panel-strong: rgba(16, 21, 34, .92);
  --line: rgba(255, 255, 255, .085);
  --muted: #798398;
  --text: #f5f7fb;
  --cyan: #51f6d3;
  --blue: #61a8ff;
  --violet: #9a7cff;
  --danger: #ff617b;
  --warning: #ffca6b;
  --chart-cpu: #51f6d3;
  --chart-memory: #61a8ff;
  --chart-temperature: #ffca6b;
  --chart-primary: #51f6d3;
  --chart-secondary: #9a7cff;
  --chart-marker: #f5f7fb;
  --radius: 24px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { min-height: 100vh; margin: 0; color: var(--text); background:
  radial-gradient(circle at 55% -20%, rgba(60, 108, 179, .18), transparent 38%),
  linear-gradient(145deg, #070a12 0%, #04060b 55%, #060810 100%); overflow-x: hidden; }
button, input { font: inherit; }
button { color: inherit; }

.noise { position: fixed; inset: 0; opacity: .025; pointer-events: none; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.aurora { position: fixed; width: 36rem; height: 36rem; filter: blur(130px); opacity: .09; border-radius: 50%; pointer-events: none; animation: float 14s ease-in-out infinite alternate; }
.aurora-a { background: var(--cyan); top: -14rem; right: -10rem; }
.aurora-b { background: var(--violet); bottom: -20rem; left: -13rem; animation-delay: -7s; }

.dashboard { width: min(1380px, calc(100% - 64px)); margin: 0 auto; padding: 25px 0 20px; transition: filter .7s, opacity .7s, transform .7s; }
.dashboard.is-locked { filter: blur(18px); opacity: .28; transform: scale(.985); pointer-events: none; user-select: none; height: 100vh; overflow: hidden; }
.topbar { position: relative; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding-bottom: 25px; overflow: visible; }
.brand, .topbar-actions { display: flex; align-items: center; }
.brand { gap: 13px; }
.brand-mark { width: 36px; height: 36px; position: relative; border: 1px solid rgba(81,246,211,.32); border-radius: 12px; transform: rotate(45deg); box-shadow: inset 0 0 15px rgba(81,246,211,.08); }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; position: absolute; inset: 8px; border: 1px solid var(--cyan); border-radius: 6px; }
.brand-mark::after { inset: 14px; background: var(--cyan); border: 0; box-shadow: 0 0 18px var(--cyan); }
.brand strong { display: block; font-size: .86rem; letter-spacing: .17em; }
.brand small { display: block; color: var(--muted); font-size: .59rem; letter-spacing: .16em; margin-top: 4px; }
.topbar-actions { gap: 20px; }
.service-menu { position: relative; z-index: 30; }
.service-menu summary { display: flex; align-items: center; gap: 9px; padding: 8px 11px; color: #8490a5; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); cursor: pointer; list-style: none; font-size: .52rem; font-weight: 750; letter-spacing: .13em; transition: color .25s, border-color .25s, background .25s; user-select: none; }
.service-menu summary::-webkit-details-marker { display: none; }
.service-menu summary i { width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s; }
.service-menu[open] summary { color: var(--cyan); border-color: rgba(81,246,211,.3); background: rgba(81,246,211,.07); }
.service-menu[open] summary i { transform: translateY(2px) rotate(225deg); }
.service-menu nav { position: absolute; top: calc(100% + 10px); right: 0; width: 210px; padding: 7px; border: 1px solid rgba(81,246,211,.18); border-radius: 15px; background: rgba(10,14,23,.97); box-shadow: 0 20px 45px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.04); backdrop-filter: blur(16px); }
.service-menu nav::before { content: "MEDIA SERVICES"; display: block; padding: 8px 10px 7px; color: #566176; font-size: .45rem; font-weight: 750; letter-spacing: .17em; }
.service-menu a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px; color: #c7ceda; border-radius: 9px; text-decoration: none; font-size: .7rem; transition: color .2s, background .2s, transform .2s; }
.service-menu a:hover, .service-menu a:focus-visible { color: var(--cyan); background: rgba(81,246,211,.08); outline: none; transform: translateX(2px); }
.service-menu a small { color: #5e697c; font: 500 .54rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.theme-switch { display: flex; align-items: center; gap: 8px; padding: 6px 9px; color: #667186; border: 1px solid var(--line); border-radius: 100px; background: rgba(255,255,255,.025); cursor: pointer; font-size: .48rem; font-weight: 700; letter-spacing: .11em; }
.theme-switch > i { position: relative; width: 34px; height: 18px; border-radius: 20px; background: rgba(255,255,255,.08); box-shadow: inset 0 1px 4px rgba(0,0,0,.4); }
.theme-switch > i > b { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(81,246,211,.7); transition: transform .3s ease, background .3s; }
.theme-switch[aria-pressed="true"] > i > b { transform: translateX(16px); }
.theme-switch:hover { color: var(--text); border-color: rgba(81,246,211,.3); }
.live-pill { display: flex; align-items: center; gap: 8px; color: var(--cyan); background: rgba(81,246,211,.07); border: 1px solid rgba(81,246,211,.14); border-radius: 100px; padding: 8px 13px; font-size: .64rem; letter-spacing: .14em; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 2s infinite; }
.live-pill.offline { color: var(--danger); border-color: rgba(255,97,123,.2); background: rgba(255,97,123,.07); }
.live-pill.offline i { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
#clock { color: #9ba5b7; font: 500 .72rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.icon-button { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(255,255,255,.025); cursor: pointer; transition: .25s; }
.icon-button:hover { border-color: rgba(81,246,211,.3); color: var(--cyan); transform: translateY(-2px); }
.icon-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.hero { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 13px; font-size: .62rem; letter-spacing: .23em; color: var(--cyan); font-weight: 700; }
.hero h1 { margin: 0; font-size: clamp(2.35rem, 4.4vw, 4.8rem); line-height: .95; letter-spacing: -.055em; font-weight: 510; }
.hero h1 span { color: #aeb6c5; }
.hero h1 i { color: var(--cyan); font-style: normal; text-shadow: 0 0 24px rgba(81,246,211,.7); }
.hero-copy { margin: 13px 0 0; color: var(--muted); font-size: .8rem; }
.hero-meta { min-width: 180px; text-align: right; padding-bottom: 4px; }
.hero-meta span { display: block; color: var(--muted); font-size: .57rem; letter-spacing: .2em; }
.hero-meta strong { display: block; font: 500 1.2rem ui-monospace, SFMono-Regular, Menlo, monospace; margin: 9px 0; }
.hero-meta small { color: #5f6879; font-size: .68rem; }

.range-bar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-bottom: 10px; }
.range-bar > span { color: #596274; font-size: .52rem; letter-spacing: .16em; }
.range-toggle { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02); }
.range-toggle button { border: 0; border-radius: 7px; padding: 7px 10px; background: transparent; color: #687285; cursor: pointer; font-size: .51rem; letter-spacing: .1em; transition: .25s; }
.range-toggle button:hover { color: #c7ced9; }
.range-toggle button.is-active { color: #06120f; background: var(--cyan); box-shadow: 0 4px 15px rgba(81,246,211,.12); }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-card, .panel { position: relative; background: linear-gradient(145deg, rgba(18,23,36,.83), rgba(10,13,22,.74)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 22px 50px rgba(0,0,0,.15); }
.metric-card::before, .panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.045), transparent 24%); }
.metric-card { min-height: 228px; padding: 18px 20px 16px; transition: transform .35s, border-color .35s, background .35s; }
.metric-card:hover { transform: translateY(-5px); border-color: rgba(81,246,211,.2); background: linear-gradient(145deg, rgba(21,28,42,.9), rgba(10,14,23,.78)); }
.card-head, .metric-foot { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 3; }
.card-head span { font-size: .62rem; letter-spacing: .19em; color: #8d97aa; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(81,246,211,.7); }
.metric-value { position: relative; z-index: 3; display: flex; align-items: baseline; gap: 6px; margin: 23px 0 14px; }
.metric-value strong { font-size: 2.75rem; letter-spacing: -.06em; font-weight: 400; line-height: 1; }
.metric-value small { color: #697487; font-size: .75rem; }
.network-values { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 30px; }
.network-values > div + div { padding-left: 10px; border-left: 1px solid var(--line); }
.network-values strong { display: block; font-size: 1.62rem; font-weight: 420; letter-spacing: -.055em; }
.network-values small { display: block; margin-top: 4px; color: #697487; font-size: .48rem; letter-spacing: .08em; }
.network-foot span { display: flex; gap: 4px; color: #687285; }
.network-foot b { color: #9da7b9; }
.metric-stats { position: absolute; z-index: 3; left: 20px; right: 20px; bottom: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding-top: 7px; border-top: 1px solid rgba(255,255,255,.055); color: #596376; font-size: .43rem; letter-spacing: .09em; }
.metric-stats span:nth-child(2) { text-align: center; }
.metric-stats span:last-child { text-align: right; }
.metric-stats b { color: #b2bbca; font-size: .5rem; font-weight: 550; letter-spacing: .03em; }
.metric-foot { color: #687285; font-size: .52rem; letter-spacing: .11em; position: absolute; left: 20px; right: 20px; bottom: 12px; }
.metric-foot b { color: #9da7b9; font-weight: 500; }
.progress-track { height: 3px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.progress-track i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 14px var(--cyan); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.sparkline { position: absolute; z-index: 1; inset: 46px 10px 28px; height: auto; margin: 0; opacity: .52; pointer-events: none; mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), #000 55%, rgba(0,0,0,.72)); }
.sparkline::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 42%, rgba(8,11,18,.18)); pointer-events: none; }
.sparkline canvas { width: 100%; height: 100%; }
.metric-card:hover .sparkline { opacity: .7; }
.thermal-scale { position: relative; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--warning) 65%, var(--danger)); }
.thermal-scale i { position: absolute; width: 9px; height: 9px; top: -3px; left: 0; border-radius: 50%; background: white; box-shadow: 0 0 12px white; transition: left .8s cubic-bezier(.2,.8,.2,1); }

.lower-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 15px; margin-top: 15px; }
.panel { min-height: 330px; padding: 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 17px; }
.panel-head h2 { margin: 0; font-size: 1.35rem; font-weight: 480; letter-spacing: -.025em; }
.score, .cooldown { border: 1px solid var(--line); border-radius: 100px; padding: 8px 12px; color: #97a2b5; font: 600 .58rem ui-monospace, monospace; letter-spacing: .1em; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.service { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 11px; border: 1px solid rgba(255,255,255,.055); border-radius: 12px; background: rgba(255,255,255,.018); transition: .3s; }
.service:hover { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.1); }
.service-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px rgba(81,246,211,.55); flex: 0 0 auto; }
.service.is-down .service-indicator { background: var(--danger); box-shadow: 0 0 12px rgba(255,97,123,.6); }
.service-text { min-width: 0; flex: 1; }
.service-text strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; font-weight: 500; }
.service-text small { display: block; color: #5e687a; font: .56rem ui-monospace, monospace; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; }
.service-state { color: var(--cyan); font-size: .48rem; letter-spacing: .08em; }
.service.is-down .service-state { color: var(--danger); }

.storage-section { margin-top: 15px; }
.storage-panel { min-height: 0; }
.storage-volumes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.storage-volume { padding: 14px; border: 1px solid rgba(255,255,255,.055); border-radius: 14px; background: rgba(255,255,255,.018); }
.storage-volume-head, .storage-volume-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.storage-volume-head strong { display: block; font-size: .78rem; font-weight: 520; }
.storage-volume-head small { display: block; color: #5e687a; font: .54rem ui-monospace, monospace; margin-top: 4px; }
.storage-volume-head span { color: var(--cyan); font-size: .5rem; letter-spacing: .08em; white-space: nowrap; }
.storage-track { height: 4px; margin: 14px 0 9px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.06); }
.storage-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 12px rgba(81,246,211,.5); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.storage-volume-foot { color: #687285; font-size: .49rem; letter-spacing: .08em; }
.storage-volume-foot b { color: #9da7b9; font-weight: 500; }
.storage-volume.is-down { border-color: rgba(255,97,123,.22); }
.storage-volume.is-down .storage-volume-head span { color: var(--danger); }
.storage-volume.is-down .storage-track i { background: var(--danger); box-shadow: 0 0 12px rgba(255,97,123,.5); }

.speed-display { display: grid; grid-template-columns: 1fr 1px 1fr; align-items: center; margin: 31px 0 20px; }
.speed-display > div:not(.speed-divider) { text-align: center; }
.speed-display span { display: block; color: var(--muted); font-size: .55rem; letter-spacing: .18em; margin-bottom: 8px; }
.speed-display strong { font-size: 2.15rem; font-weight: 420; letter-spacing: -.055em; }
.speed-display small { color: #697487; font-size: .58rem; margin-left: 4px; }
.speed-divider { height: 52px; background: var(--line); }
.speed-meta { display: flex; justify-content: space-between; color: #687285; font-size: .58rem; letter-spacing: .08em; border-top: 1px solid var(--line); padding-top: 16px; }
.speed-stats { margin-top: 12px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.055); border-radius: 10px; background: rgba(4,7,13,.2); }
.speed-stats > div { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); align-items: center; min-height: 17px; color: #687285; font-size: .47rem; letter-spacing: .08em; }
.speed-stats > div > *:not(:first-child) { text-align: right; }
.speed-stats b { color: #aeb8c8; font-size: .53rem; font-weight: 550; }
.speed-stats .speed-stat-head { min-height: 13px; color: #4f596b; font-size: .42rem; }
.speed-meta b { color: #aeb8c8; }
.speed-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.scheduled-test { height: 47px; display: flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid rgba(81,246,211,.13); border-radius: 13px; background: rgba(81,246,211,.035); color: #8a95a8; font-size: .56rem; letter-spacing: .11em; }
.scheduled-test i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.scheduled-test b { margin-left: auto; color: var(--cyan); font-size: .5rem; }
.action-button { position: relative; height: 47px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(255,255,255,.025); cursor: pointer; font-size: .59rem; letter-spacing: .14em; overflow: hidden; transition: .3s; }
.action-button::before { content: ""; position: absolute; inset: 0; transform: translateX(-105%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); transition: transform .6s; }
.action-button:hover::before { transform: translateX(105%); }
.action-button:hover { transform: translateY(-2px); border-color: rgba(81,246,211,.3); }
.action-button.primary { background: var(--cyan); border-color: var(--cyan); color: #04120f; font-weight: 800; box-shadow: 0 10px 30px rgba(81,246,211,.1); }
.action-button:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.speed-note { margin: 14px 0 0; text-align: center; color: #596274; font-size: .63rem; }
.speed-panel.is-running .cooldown { color: var(--cyan); border-color: rgba(81,246,211,.2); animation: pulse 1.6s infinite; }
.speed-panel > *:not(.speed-chart) { position: relative; z-index: 2; }
.speed-chart { position: absolute; z-index: 1; inset: 62px 18px 82px; opacity: .22; pointer-events: none; mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), #000 62%, transparent); }
.speed-chart canvas { width: 100%; height: 100%; }
.speed-panel:hover .speed-chart { opacity: .34; }

.footer { display: flex; justify-content: space-between; padding: 17px 3px 0; color: #424a5a; font-size: .52rem; letter-spacing: .15em; }

.login-shell { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(3,5,10,.28); backdrop-filter: blur(14px); transition: opacity .7s, visibility .7s; }
.login-shell.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.login-card { position: relative; width: min(430px, 100%); padding: 52px 45px 35px; background: linear-gradient(155deg, rgba(20,27,42,.91), rgba(8,11,19,.94)); border: 1px solid rgba(255,255,255,.1); border-radius: 30px; text-align: center; box-shadow: 0 40px 100px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.05); overflow: hidden; animation: loginIn .8s cubic-bezier(.2,.8,.2,1) both; }
.login-card::after { content: ""; position: absolute; width: 230px; height: 230px; top: -170px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: var(--cyan); filter: blur(75px); opacity: .18; }
.brand-orbit { width: 61px; height: 61px; margin: 0 auto 26px; border: 1px solid rgba(81,246,211,.26); border-radius: 20px; transform: rotate(45deg); position: relative; box-shadow: inset 0 0 25px rgba(81,246,211,.05), 0 0 30px rgba(81,246,211,.06); }
.brand-orbit::before, .brand-orbit span { content: ""; position: absolute; inset: 11px; border: 1px solid rgba(81,246,211,.6); border-radius: 12px; }
.brand-orbit span { inset: 23px; background: var(--cyan); border: 0; box-shadow: 0 0 22px var(--cyan); }
.brand-orbit i { position: absolute; inset: -6px; border-top: 1px solid var(--cyan); border-radius: 23px; animation: spin 4s linear infinite; }
.login-card h1 { margin: 0; font-size: 2rem; letter-spacing: .06em; font-weight: 650; }
.login-card h1 span { color: var(--cyan); }
.login-copy { color: var(--muted); font-size: .76rem; margin: 12px 0 35px; }
.login-card form { text-align: left; }
.login-card label { display: block; color: #8b95a8; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px 4px; }
.pin-field { display: flex; height: 56px; border: 1px solid rgba(255,255,255,.11); border-radius: 16px; background: rgba(3,6,12,.5); overflow: hidden; transition: .25s; }
.pin-field:focus-within { border-color: rgba(81,246,211,.5); box-shadow: 0 0 0 3px rgba(81,246,211,.06); }
.pin-field input { min-width: 0; flex: 1; border: 0; outline: 0; color: white; background: transparent; padding: 0 20px; font: 500 1.15rem ui-monospace, monospace; letter-spacing: .45em; }
.pin-field button { width: 56px; border: 0; background: var(--cyan); color: #03120e; cursor: pointer; transition: .25s; }
.pin-field button:hover { background: #75ffe2; }
.pin-field button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.form-message { margin: 10px 4px 0; color: #5c6678; font-size: .62rem; min-height: 16px; }
.form-message.error { color: var(--danger); }
.login-footer { display: flex; align-items: center; gap: 12px; margin-top: 38px; color: #4f5869; font-size: .5rem; letter-spacing: .16em; }
.login-footer span { height: 1px; flex: 1; background: var(--line); }

.reveal { animation: reveal .8s both; }
.metric-grid { animation-delay: .08s; }
.lower-grid { animation-delay: .16s; }
.footer { animation-delay: .22s; }

@keyframes reveal { from { opacity: 0; transform: translateY(18px); } }
@keyframes loginIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .45; } }
@keyframes float { to { transform: translate3d(4rem, 3rem, 0) scale(1.1); } }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .lower-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .storage-volumes { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .dashboard { width: min(100% - 28px, 1420px); padding-top: 20px; }
  .topbar { padding-bottom: 35px; }
  .topbar-actions { gap: 10px; }
  #clock { display: none; }
  .hero { display: block; }
  .hero-meta { text-align: left; margin-top: 28px; }
  .range-bar { justify-content: space-between; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 230px; }
  .services { grid-template-columns: 1fr; }
  .panel { padding: 22px; }
  .speed-display strong { font-size: 2rem; }
  .speed-actions { grid-template-columns: 1fr; }
  .footer span:nth-child(2) { display: none; }
  .login-card { padding: 45px 25px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Chrome Diner — a warm mid-century instrument-panel theme. */
html[data-theme="diner"] {
  color-scheme: light;
  --bg: #173e41;
  --panel: #f4e8c9;
  --panel-strong: #fff8df;
  --line: rgba(60, 47, 35, .22);
  --muted: #716554;
  --text: #302a25;
  --cyan: #169e9a;
  --blue: #2f838c;
  --violet: #d93b3b;
  --danger: #b51f2d;
  --warning: #d89b2b;
  --chart-cpu: #138f8b;
  --chart-memory: #d13b3b;
  --chart-temperature: #d38d23;
  --chart-primary: #138f8b;
  --chart-secondary: #c42e38;
  --chart-marker: #5f4c37;
}

html[data-theme="diner"] body {
  color: var(--text);
  background-color: #e8ddbd;
  background-image:
    radial-gradient(circle at 50% -20%, rgba(255,255,255,.8), transparent 42%),
    linear-gradient(135deg, rgba(19,111,111,.08) 25%, transparent 25%),
    linear-gradient(225deg, rgba(19,111,111,.08) 25%, transparent 25%),
    linear-gradient(45deg, rgba(19,111,111,.08) 25%, transparent 25%),
    linear-gradient(315deg, rgba(19,111,111,.08) 25%, #e8ddbd 25%);
  background-position: 0 0, 18px 0, 18px -18px, 0 18px, 0 0;
  background-size: auto, 36px 36px, 36px 36px, 36px 36px, 36px 36px;
}

html[data-theme="diner"] .noise { opacity: .045; mix-blend-mode: multiply; }
html[data-theme="diner"] .aurora { display: none; }
html[data-theme="diner"] .dashboard { width: min(1440px, calc(100% - 64px)); }
html[data-theme="diner"] .topbar { margin-bottom: 18px; padding: 14px 20px; color: #f8efd6; border: 4px solid transparent; border-radius: 22px; background: linear-gradient(#145f61, #0e4649) padding-box, linear-gradient(135deg, #fafafa 0%, #787878 22%, #f5f5f5 45%, #666 70%, #fff 100%) border-box; box-shadow: 0 8px 18px rgba(70,49,31,.25), inset 0 1px rgba(255,255,255,.28); }
html[data-theme="diner"] .brand-mark { border-radius: 50%; border-color: #fff; background: radial-gradient(circle, #d8353e 0 24%, #f8ebc9 26% 44%, #188f8d 46% 62%, #d9d9d9 64% 75%, #6c6c6c 77%); box-shadow: 0 2px 4px #062b2d, inset 0 2px 5px rgba(255,255,255,.9); }
html[data-theme="diner"] .brand-mark::before,
html[data-theme="diner"] .brand-mark::after,
html[data-theme="diner"] .brand-mark span { display: none; }
html[data-theme="diner"] .brand strong { font-family: Georgia, serif; font-style: italic; font-size: 1rem; letter-spacing: .08em; }
html[data-theme="diner"] .brand small { color: #b9dfd7; }
html[data-theme="diner"] #clock { color: #f5dfb3; }
html[data-theme="diner"] .live-pill { color: #fff8dd; border-color: rgba(255,255,255,.35); background: #b82932; box-shadow: inset 0 1px rgba(255,255,255,.28), 0 2px 5px rgba(0,0,0,.2); }
html[data-theme="diner"] .live-pill i { background: #fff2ba; box-shadow: 0 0 8px #fff2ba; }
html[data-theme="diner"] .theme-switch { color: #f3e7c8; border-color: rgba(255,255,255,.4); background: rgba(0,0,0,.15); }
html[data-theme="diner"] .theme-switch > i { background: linear-gradient(#777, #e8e8e8 48%, #666); box-shadow: inset 0 1px 3px #333; }
html[data-theme="diner"] .theme-switch > i > b { background: #cf3038; box-shadow: inset 0 1px rgba(255,255,255,.65), 0 1px 3px #222; }
html[data-theme="diner"] .service-menu summary { color: #f3e7c8; border-color: rgba(255,255,255,.4); background: rgba(0,0,0,.15); }
html[data-theme="diner"] .service-menu[open] summary { color: #fff8df; background: #b82932; }
html[data-theme="diner"] .service-menu nav { color: #302a25; border: 4px solid transparent; background: linear-gradient(#fff8df, #dfcfa9) padding-box, linear-gradient(135deg, #fff, #777 25%, #eee 48%, #666 70%, #fff) border-box; box-shadow: 0 12px 25px rgba(40,32,25,.32), inset 0 1px white; backdrop-filter: none; }
html[data-theme="diner"] .service-menu nav::before { color: #9a2930; }
html[data-theme="diner"] .service-menu a { color: #303631; }
html[data-theme="diner"] .service-menu a:hover,
html[data-theme="diner"] .service-menu a:focus-visible { color: #a5252d; background: rgba(184,41,50,.09); }
html[data-theme="diner"] .service-menu a small { color: #81715b; }
html[data-theme="diner"] .icon-button { color: #f9e9c5; border-color: rgba(255,255,255,.35); background: rgba(0,0,0,.12); }

html[data-theme="diner"] .hero { position: relative; padding: 18px 24px 20px; border: 2px solid rgba(137,35,40,.55); border-radius: 18px; background: rgba(255,248,224,.78); box-shadow: 0 6px 15px rgba(75,53,31,.16), inset 0 0 0 4px rgba(255,255,255,.45); }
html[data-theme="diner"] .eyebrow { color: #a5252d; font-family: "Arial Narrow", Arial, sans-serif; }
html[data-theme="diner"] .hero h1 { color: #193f42; font-family: Georgia, serif; font-style: italic; font-weight: 700; text-shadow: 2px 2px #fff8df; }
html[data-theme="diner"] .hero h1 span { color: #bf2932; }
html[data-theme="diner"] .hero h1 i { color: #169e9a; text-shadow: none; }
html[data-theme="diner"] .hero-copy,
html[data-theme="diner"] .hero-meta span,
html[data-theme="diner"] .hero-meta small { color: #756857; }
html[data-theme="diner"] .hero-meta strong { color: #a5252d; }
html[data-theme="diner"] .range-bar > span { color: #746653; }
html[data-theme="diner"] .range-toggle { border: 3px solid #888; background: linear-gradient(#eee, #888); box-shadow: 0 2px 5px rgba(0,0,0,.2); }
html[data-theme="diner"] .range-toggle button { color: #51483e; }
html[data-theme="diner"] .range-toggle button.is-active { color: #fff8df; background: #b82932; box-shadow: inset 0 1px rgba(255,255,255,.4); }

html[data-theme="diner"] .metric-card,
html[data-theme="diner"] .panel { border: 6px solid transparent; background: linear-gradient(145deg, #fff9e4, #e3d4af) padding-box, linear-gradient(135deg, #fafafa 0%, #777 18%, #f7f7f7 36%, #656565 55%, #efefef 74%, #777 88%, #fff 100%) border-box; box-shadow: 0 9px 18px rgba(69,48,30,.25), inset 0 0 0 2px rgba(112,84,52,.18), inset 0 7px 12px rgba(255,255,255,.45); }
html[data-theme="diner"] .metric-card { min-height: 250px; border-radius: 38px; }
html[data-theme="diner"] .metric-card { --gauge-angle: -120deg; }
html[data-theme="diner"] .metric-card::before,
html[data-theme="diner"] .panel::before { background: radial-gradient(circle at 18px 18px, #666 0 2px, #eee 3px 5px, transparent 6px), radial-gradient(circle at calc(100% - 18px) 18px, #666 0 2px, #eee 3px 5px, transparent 6px); opacity: .7; }
html[data-theme="diner"] .metric-card:hover { transform: translateY(-3px); border-color: transparent; background: linear-gradient(145deg, #fffced, #e8d9b8) padding-box, linear-gradient(135deg, #fff, #777 20%, #fff 42%, #666 65%, #fff) border-box; }
html[data-theme="diner"] .card-head span { color: #8f2930; font-weight: 800; }
html[data-theme="diner"] .status-dot { background: #1a9993; box-shadow: 0 0 0 3px #eadfbe, 0 0 0 5px #888, inset 0 1px white; }
html[data-theme="diner"] .metric-value { justify-content: center; margin-top: 27px; }
html[data-theme="diner"] .metric-value { min-height: 105px; margin: 8px 0 13px; align-items: center; }
html[data-theme="diner"] .metric-value::before { content: ""; position: absolute; left: 50%; top: 50%; width: 116px; height: 116px; transform: translate(-50%, -50%); border: 4px solid transparent; border-radius: 50%; background: radial-gradient(circle, #fffbed 0 66%, transparent 67% 82%, #fffbed 83% 100%) padding-box, repeating-conic-gradient(from -120deg, #594c3d 0 1deg, transparent 1deg 12deg) padding-box, conic-gradient(from 0deg, transparent 0 72deg, #bd2933 72deg 120deg, transparent 120deg 360deg) padding-box, linear-gradient(#fffbed, #fffbed) padding-box, linear-gradient(135deg, #fff 0%, #696969 20%, #f7f7f7 42%, #666 65%, #fff 100%) border-box; box-shadow: 0 3px 6px rgba(65,46,29,.24), inset 0 2px 6px rgba(83,60,37,.13); }
html[data-theme="diner"] .metric-value::after { content: ""; position: absolute; z-index: 2; left: calc(50% - 2px); top: calc(50% - 43px); width: 4px; height: 43px; border-radius: 4px 4px 2px 2px; background: #b82932; box-shadow: 1px 1px 2px rgba(0,0,0,.28); transform: rotate(var(--gauge-angle)); transform-origin: 50% 100%; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
html[data-theme="diner"] .metric-value strong,
html[data-theme="diner"] .metric-value small { position: relative; z-index: 3; transform: translateY(25px); }
html[data-theme="diner"] .metric-value strong { font-size: 1.8rem; letter-spacing: -.035em; }
html[data-theme="diner"] .metric-value small { font-size: .52rem; }
html[data-theme="diner"] .metric-value strong,
html[data-theme="diner"] .network-values strong,
html[data-theme="diner"] .speed-display strong { color: #263b3c; font-family: "Arial Narrow", Impact, sans-serif; text-shadow: 1px 1px white; }
html[data-theme="diner"] .metric-value small,
html[data-theme="diner"] .network-values small { color: #8c382f; }
html[data-theme="diner"] .sparkline { inset: 55px 16px 32px; opacity: .48; mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), #000 60%, transparent); }
html[data-theme="diner"] .metric-stats { border-top-color: rgba(78,58,36,.18); color: #8b7a64; }
html[data-theme="diner"] .metric-stats b,
html[data-theme="diner"] .metric-foot b { color: #5b4e40; }
html[data-theme="diner"] .metric-foot { color: #8a382f; }
html[data-theme="diner"] .network-values > div + div { border-left-color: rgba(69,53,35,.22); }

html[data-theme="diner"] .panel { border-radius: 28px; }
html[data-theme="diner"] .panel-head h2 { color: #183f41; font-family: Georgia, serif; font-style: italic; font-weight: 700; }
html[data-theme="diner"] .score,
html[data-theme="diner"] .cooldown { color: #fff8df; border: 3px solid #777; background: #b82932; box-shadow: inset 0 1px rgba(255,255,255,.35), 0 2px 4px rgba(0,0,0,.15); }
html[data-theme="diner"] .storage-volume,
html[data-theme="diner"] .service { border-color: rgba(73,54,34,.24); background: rgba(255,252,235,.6); box-shadow: inset 0 1px rgba(255,255,255,.75); }
html[data-theme="diner"] .storage-volume-head strong,
html[data-theme="diner"] .service-text strong { color: #2f342f; }
html[data-theme="diner"] .storage-volume-head small,
html[data-theme="diner"] .service-text small { color: #85745e; }
html[data-theme="diner"] .storage-volume-head span,
html[data-theme="diner"] .service-state { color: #117b77; font-weight: 800; }
html[data-theme="diner"] .storage-track { height: 9px; border: 2px solid #7a7a76; background: #c5b894; box-shadow: inset 0 2px 3px rgba(0,0,0,.24); }
html[data-theme="diner"] .storage-track i { background: repeating-linear-gradient(90deg, #168d89 0 10px, #36b9b2 10px 16px); box-shadow: none; }
html[data-theme="diner"] .storage-volume-foot { color: #87745b; }
html[data-theme="diner"] .storage-volume-foot b { color: #574a3b; }
html[data-theme="diner"] .service-indicator { width: 12px; height: 12px; border: 2px solid #777; background: #1b9a87; box-shadow: inset 0 1px white, 0 1px 3px rgba(0,0,0,.3); }
html[data-theme="diner"] .service.is-down .service-indicator { background: #bd2933; }
html[data-theme="diner"] .speed-divider { background: rgba(74,57,37,.24); }
html[data-theme="diner"] .speed-meta { color: #756652; border-top-color: rgba(74,57,37,.22); }
html[data-theme="diner"] .speed-stats { border-color: rgba(72,54,34,.24); background: rgba(255,253,239,.52); }
html[data-theme="diner"] .speed-stats b,
html[data-theme="diner"] .speed-meta b { color: #51473b; }
html[data-theme="diner"] .scheduled-test { color: #4f4940; border-color: #178c88; background: rgba(23,140,136,.1); }
html[data-theme="diner"] .scheduled-test b { color: #a5252d; }
html[data-theme="diner"] .action-button { color: #fff9df; border: 4px solid #777; background: #b82932; box-shadow: inset 0 1px rgba(255,255,255,.4), 0 3px 5px rgba(0,0,0,.2); }
html[data-theme="diner"] .speed-note { color: #776854; }
html[data-theme="diner"] .footer { color: #6a5c4a; font-weight: 700; }

html[data-theme="diner"] .login-shell { background: rgba(19,63,65,.72); backdrop-filter: blur(9px); }
html[data-theme="diner"] .login-card { color: #302a25; border: 8px solid transparent; background: linear-gradient(#fff8df, #dfcfa9) padding-box, linear-gradient(135deg, #fff, #777 20%, #eee 42%, #666 64%, #fff) border-box; box-shadow: 0 30px 80px rgba(25,34,30,.5), inset 0 2px white; }
html[data-theme="diner"] .login-card::after { background: #1a9892; opacity: .12; }
html[data-theme="diner"] .brand-orbit { border-radius: 50%; border: 5px solid #888; background: #f8edcf; box-shadow: inset 0 0 0 6px #168f8b, 0 3px 6px rgba(0,0,0,.25); }
html[data-theme="diner"] .brand-orbit::before { border-color: #b82932; border-radius: 50%; }
html[data-theme="diner"] .brand-orbit span { background: #b82932; box-shadow: 0 0 0 4px #f6e7c0; }
html[data-theme="diner"] .brand-orbit i { border-top-color: #b82932; }
html[data-theme="diner"] .login-card h1 { color: #16484a; font-family: Georgia, serif; font-style: italic; }
html[data-theme="diner"] .login-card h1 span { color: #b82932; }
html[data-theme="diner"] .login-copy,
html[data-theme="diner"] .login-card label,
html[data-theme="diner"] .form-message { color: #776956; }
html[data-theme="diner"] .pin-field { border: 3px solid #888; background: #fffdf0; box-shadow: inset 0 2px 5px rgba(58,44,29,.18); }
html[data-theme="diner"] .pin-field input { color: #302a25; }
html[data-theme="diner"] .pin-field button { color: #fff8df; background: #b82932; }
html[data-theme="diner"] .login-footer { color: #796a56; }

@media (max-width: 650px) {
  html[data-theme="diner"] .dashboard { width: min(100% - 24px, 1440px); }
  .theme-switch span { display: none; }
  .service-menu nav { right: -92px; }
  html[data-theme="diner"] .topbar { padding: 12px; }
}
