:root {
    --bg: #06111f;
    --panel: rgba(7, 18, 34, 0.84);
    --panel-strong: rgba(10, 24, 44, 0.94);
    --panel-soft: rgba(11, 25, 45, 0.72);
    --line: rgba(125, 211, 252, 0.16);
    --line-strong: rgba(125, 211, 252, 0.28);
    --text: #edf6ff;
    --muted: #98b2ca;
    --accent: #7dd3fc;
    --accent-strong: #c3ecff;
    --lime: #34d399;
    --amber: #f59e0b;
    --red: #f87171;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
    --font-main: "Aptos", "Segoe UI Variable", "Trebuchet MS", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 18%, rgba(96, 165, 250, 0.22), transparent 28%),
        radial-gradient(circle at 86% 12%, rgba(52, 211, 153, 0.14), transparent 24%),
        linear-gradient(180deg, #04101d 0%, #071523 40%, #08101b 100%);
    font-family: var(--font-main);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at center, black 32%, transparent 78%);
    opacity: 0.55;
}

.ambient {
    position: fixed;
    width: 32rem;
    height: 32rem;
    border-radius: 999px;
    filter: blur(42px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.ambient--left {
    top: -10rem;
    left: -8rem;
    background: rgba(96, 165, 250, 0.24);
}

.ambient--right {
    top: 6rem;
    right: -10rem;
    background: rgba(34, 197, 94, 0.18);
}

.monitor-page,
.auth-page {
    position: relative;
}

.shell {
    position: relative;
    z-index: 1;
    width: min(1460px, calc(100% - 36px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.dashboard {
    display: grid;
    gap: 20px;
}

.panel {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(125, 211, 252, 0.08), transparent 32%),
        linear-gradient(180deg, var(--panel-strong), var(--panel));
    border: 1px solid rgba(125, 211, 252, 0.14);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.panel::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(195, 236, 255, 0.55), transparent);
    opacity: 0.8;
}

.panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 30%, transparent 70%, rgba(125, 211, 252, 0.08));
    opacity: 0.45;
    pointer-events: none;
}

.panel--hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto;
    gap: 22px;
    align-items: start;
    padding-block: 26px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 700;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 6px rgba(125, 211, 252, 0.08);
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(22px, 2.7vw, 30px);
    letter-spacing: -0.03em;
}

.masthead__copy {
    max-width: 690px;
}

.masthead__copy p,
.panel__lead,
.meta-note,
.auth-copy,
.auth-note,
.empty-state {
    color: var(--muted);
    line-height: 1.6;
}

.masthead__copy p {
    max-width: 54ch;
    margin-top: 14px;
    font-size: 15px;
}

.masthead__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-self: start;
    padding: 10px;
    border-radius: 22px;
    background: rgba(6, 18, 35, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.status-pill,
.button,
.lang-switch a,
.psu-chip,
.legend__item,
.status-tag {
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border: 1px solid transparent;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid transparent;
}

.status-pill::before,
.status-tag::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.05);
}

.status-pill--ok,
.status-tag--ok {
    color: #b8ffd9;
    border-color: rgba(52, 211, 153, 0.28);
    background: rgba(16, 78, 60, 0.42);
}

.status-pill--warning,
.status-tag--warning {
    color: #ffe7af;
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(102, 60, 10, 0.38);
}

.status-pill--problem,
.status-tag--problem {
    color: #ffd0d0;
    border-color: rgba(248, 113, 113, 0.34);
    background: rgba(100, 28, 28, 0.38);
}

.status-pill--neutral {
    color: #dce9f7;
    border-color: rgba(152, 178, 202, 0.22);
    background: rgba(152, 178, 202, 0.1);
    animation: statusPulse 1.8s ease-in-out infinite;
}

.button {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    padding: 11px 18px;
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.button:hover,
.lang-switch a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.button--primary {
    background: linear-gradient(135deg, rgba(195, 236, 255, 0.96), rgba(96, 165, 250, 0.88));
    color: #06111f;
    border-color: rgba(195, 236, 255, 0.22);
}

.button--ghost {
    background: rgba(255, 255, 255, 0.02);
}

.button--full {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.button.is-loading {
    opacity: 0.82;
    pointer-events: none;
}

.lang-switch {
    display: inline-flex;
    gap: 6px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.lang-switch a {
    padding: 8px 14px;
    color: var(--muted);
    text-decoration: none;
}

.lang-switch a.is-active {
    color: #06111f;
    background: linear-gradient(135deg, rgba(237, 246, 255, 0.96), rgba(195, 236, 255, 0.92));
}

.summary-grid,
.split-grid,
.server-grid,
.ups-grid,
.event-summary-grid {
    display: grid;
    gap: 16px;
}

.summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.server-grid {
    grid-template-columns: 1fr;
    gap: 18px;
}

.ups-grid,
.event-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.ups-tile,
.event-tile,
.metric-tile,
.quickstat,
.server-card__powerblock {
    text-align: center;
}

.stat-card,
.ups-tile,
.event-tile,
.metric-tile,
.quickstat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card,
.ups-tile,
.event-tile,
.server-card {
    position: relative;
    min-width: 0;
    padding: 18px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(9, 24, 44, 0.76), rgba(6, 16, 29, 0.78));
    border: 1px solid rgba(125, 211, 252, 0.11);
    animation: lift-in 0.6s ease both;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.stat-card:hover,
.ups-tile:hover,
.event-tile:hover,
.server-card:hover {
    transform: translateY(-2px);
    border-color: rgba(125, 211, 252, 0.24);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}

.stat-card::before,
.ups-tile::before,
.event-tile::before,
.server-card::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.85), rgba(52, 211, 153, 0.35), transparent);
}

.stat-card__label,
.ups-tile__label,
.event-tile__label,
.server-card__label {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.stat-card__value,
.ups-tile__value,
.event-tile__value {
    margin-top: 14px;
    font-size: clamp(24px, 2.6vw, 36px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.stat-card__note,
.ups-tile__note,
.event-tile__note {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.panel__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
}

.panel__lead {
    margin: 0 0 18px;
    max-width: 66ch;
}

.meta-note {
    font-size: 13px;
    text-align: right;
    max-width: 280px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.server-card__head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.server-card__title {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.server-card__meta {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.server-card__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(180px, 0.8fr);
    align-items: stretch;
    gap: 16px;
    margin-top: 18px;
}

.server-card__powerblock,
.server-card__quickstats {
    min-width: 0;
    padding: 16px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(125, 211, 252, 0.12), transparent 44%),
        linear-gradient(180deg, rgba(6, 18, 35, 0.92), rgba(9, 24, 44, 0.68));
    border: 1px solid rgba(125, 211, 252, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.server-card__power {
    margin-top: 10px;
    font-size: clamp(30px, 3.1vw, 44px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    overflow-wrap: anywhere;
}

.server-card__subline {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.server-card__quickstats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-content: start;
}

.quickstat {
    min-width: 0;
    padding: 14px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.quickstat span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    overflow-wrap: anywhere;
}

.quickstat strong {
    display: block;
    margin-top: 8px;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1;
    overflow-wrap: anywhere;
}

.server-card__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-top: 18px;
}

.metric-tile {
    min-width: 0;
    padding: 14px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.metric-tile:hover {
    transform: translateY(-1px);
    border-color: rgba(125, 211, 252, 0.2);
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.08), rgba(255, 255, 255, 0.03));
}

.metric-tile--emphasis {
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.16), rgba(255, 255, 255, 0.035));
    border-color: rgba(125, 211, 252, 0.18);
}

.metric-tile__label {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.metric-tile__value {
    margin-top: 8px;
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}

.metric-tile__note {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.metric-tile--fan .metric-tile__value {
    margin-top: 0;
}

.metric-tile--fan {
    background:
        radial-gradient(circle at top right, rgba(52, 211, 153, 0.1), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.metric-tile--fan-pair {
    min-height: 100%;
}

.fan-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.fan-pair__item {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(125, 211, 252, 0.1);
}

.fan-pair__top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.fan-pair__name {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.fan-pair__rpm {
    font-size: 17px;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--accent-strong);
}

.metric-tile--storage {
    grid-column: span 2;
    background:
        radial-gradient(circle at top right, rgba(125, 211, 252, 0.08), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.metric-tile--storage-ok {
    border-color: rgba(52, 211, 153, 0.22);
}

.metric-tile--storage-warning {
    border-color: rgba(245, 158, 11, 0.26);
}

.metric-tile--storage-problem {
    border-color: rgba(248, 113, 113, 0.28);
}

.metric-tile--storage-unknown {
    border-color: rgba(152, 178, 202, 0.18);
}

.metric-tile__value--storage {
    font-size: clamp(18px, 2vw, 24px);
    letter-spacing: -0.03em;
}

.storage-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 12px;
}

.storage-row {
    display: grid;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.storage-row__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.storage-row__label {
    min-width: 0;
    color: var(--text);
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.storage-row__status {
    min-width: 0;
    font-size: 12px;
    line-height: 1.4;
    text-align: right;
    overflow-wrap: anywhere;
}

.storage-row--ok .storage-row__status {
    color: #b8ffd9;
}

.storage-row--warning .storage-row__status {
    color: #ffe7af;
}

.storage-row--problem .storage-row__status {
    color: #ffd0d0;
}

.storage-row--unknown .storage-row__status {
    color: var(--muted);
}

.storage-metrics {
    display: grid;
    gap: 8px;
}

.storage-row__note {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.storage-metric {
    display: grid;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.storage-metric__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.storage-metric__label {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.storage-metric__value {
    color: var(--accent-strong);
    font-size: 13px;
    line-height: 1;
}

.storage-metric__track {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.storage-metric__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(52, 211, 153, 0.95), rgba(125, 211, 252, 0.92), rgba(245, 158, 11, 0.92), rgba(248, 113, 113, 0.95));
}

.storage-metric__note {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.fan-visual {
    position: relative;
    width: 54px;
    height: 54px;
    margin-top: 2px;
}

.fan-visual__halo {
    position: absolute;
    inset: -8px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(56, 189, 248, calc(var(--fan-glow, 0.78) * 0.24)) 0%, transparent 68%);
    filter: blur(9px);
}

.fan-visual__ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.14) 0 26%, transparent 27%),
        conic-gradient(from 0deg, rgba(56, 189, 248, 0.26), rgba(96, 165, 250, 0.74), rgba(245, 158, 11, 0.56), rgba(52, 211, 153, 0.4), rgba(56, 189, 248, 0.26));
    border: 1px solid rgba(125, 211, 252, 0.18);
    box-shadow: inset 0 0 0 8px rgba(6, 17, 31, 0.88);
}

.fan-visual__rotor {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background:
        conic-gradient(from 0deg, transparent 0 8%, rgba(223, 246, 255, 0.96) 8% 18%, transparent 18% 33%, rgba(125, 211, 252, 0.92) 33% 43%, transparent 43% 58%, rgba(96, 165, 250, 0.92) 58% 68%, transparent 68% 83%, rgba(52, 211, 153, 0.86) 83% 93%, transparent 93% 100%);
    filter: drop-shadow(0 0 10px rgba(125, 211, 252, 0.36));
    animation: fan-spin var(--fan-speed, 1.3s) linear infinite;
}

.fan-visual__rotor::before {
    content: "";
    position: absolute;
    inset: 11px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 38%, rgba(255, 255, 255, 0.46), rgba(6, 17, 31, 0.94) 72%);
}

.fan-visual__core {
    position: absolute;
    inset: 21px;
    border-radius: 50%;
    background: radial-gradient(circle, #ebf8ff 0 30%, #7dd3fc 31% 63%, rgba(4, 16, 29, 0.95) 64% 100%);
    box-shadow: 0 0 16px rgba(125, 211, 252, 0.44);
}

.temp-stack {
    display: grid;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}

.temp-row {
    width: 100%;
    display: grid;
    gap: 6px;
    justify-items: center;
}

.temp-row__top {
    width: min(180px, 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

.temp-row__value {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-strong);
}

.temp-row__track {
    width: min(180px, 100%);
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.temp-row__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #34d399 0%, #7dd3fc 30%, #f59e0b 65%, #f87171 100%);
    box-shadow: 0 0 16px rgba(125, 211, 252, 0.24);
}

.temp-row--warm .temp-row__value {
    color: #ffe7af;
}

.temp-row--hot .temp-row__value {
    color: #ffd0d0;
}

.meter {
    margin-top: 16px;
    height: 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.meter__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.95), rgba(34, 197, 94, 0.8));
    box-shadow: 0 0 24px rgba(96, 165, 250, 0.24);
}

.psu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    justify-content: center;
}

.psu-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.psu-chip--ok {
    color: #b8ffd9;
    border-color: rgba(52, 211, 153, 0.28);
}

.psu-chip--problem {
    color: #ffd0d0;
    border-color: rgba(248, 113, 113, 0.28);
}

.chart-shell {
    min-height: 340px;
}

.chart-frame {
    padding: 20px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(125, 211, 252, 0.09), transparent 32%),
        linear-gradient(180deg, rgba(5, 17, 31, 0.9), rgba(7, 18, 34, 0.74));
    border: 1px solid rgba(125, 211, 252, 0.14);
}

.chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

.chart-grid line {
    stroke: rgba(152, 178, 202, 0.18);
    stroke-width: 1;
}

.chart-series {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: draw-line 1.2s ease both;
}

.chart-series--emphasis {
    stroke-width: 3.5;
}

.chart-series--regular {
    stroke-width: 2.4;
}

.chart-point {
    stroke: #06111f;
    stroke-width: 2;
}

.chart-axis {
    fill: var(--muted);
    font-family: var(--font-main);
    font-size: 12px;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.legend__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
}

.legend__swatch {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 18px;
    overflow: hidden;
}

th,
td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(152, 178, 202, 0.12);
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

tbody tr:nth-child(odd) td {
    background: rgba(255, 255, 255, 0.018);
}

tbody tr:hover td {
    background: rgba(125, 211, 252, 0.05);
}

.empty-state {
    padding: 22px;
    border-radius: 18px;
    border: 1px dashed rgba(152, 178, 202, 0.24);
    background: rgba(255, 255, 255, 0.02);
}

.loading-card,
.loading-row {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, 0.14);
    background:
        radial-gradient(circle at top right, rgba(125, 211, 252, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(11, 25, 45, 0.92), rgba(8, 20, 36, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.loading-card::after,
.loading-row::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: translateX(-120%);
    animation: shimmer 1.6s ease-in-out infinite;
}

.loading-card--stat,
.loading-card--tile,
.loading-card--server,
.loading-card--chart {
    padding: 20px;
    border-radius: 22px;
}

.loading-card--stat {
    min-height: 124px;
    display: grid;
    align-content: end;
    gap: 14px;
}

.loading-card--tile {
    min-height: 108px;
    display: grid;
    align-content: center;
    gap: 14px;
}

.loading-card--server {
    display: grid;
    gap: 16px;
    border-radius: 26px;
}

.loading-card--chart {
    min-height: 280px;
}

.loading-line {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: rgba(233, 244, 255, 0.08);
}

.loading-line--prominent {
    height: 22px;
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.2), rgba(231, 245, 255, 0.62), rgba(52, 211, 153, 0.18));
}

.loading-grid {
    display: grid;
    gap: 16px;
}

.loading-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.loading-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.loading-server-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.loading-copy {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 10px;
}

.loading-chip {
    display: inline-flex;
    width: 72px;
    height: 34px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.24);
}

.loading-chart {
    min-height: 220px;
    display: flex;
    align-items: end;
    gap: 10px;
    padding-top: 18px;
}

.loading-chart__bar {
    flex: 1;
    border-radius: 999px 999px 12px 12px;
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.56), rgba(125, 211, 252, 0.08));
    transform-origin: bottom;
    animation: chartPulse 1.7s ease-in-out infinite;
}

.loading-chart__bar:nth-child(2n) {
    animation-delay: 0.16s;
}

.loading-chart__bar:nth-child(3n) {
    animation-delay: 0.3s;
}

.loading-table {
    display: grid;
    gap: 12px;
}

.loading-row {
    display: grid;
    grid-template-columns: 1.4fr 1.4fr 0.7fr 0.7fr;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
}

@keyframes shimmer {
    from {
        transform: translateX(-120%);
    }
    to {
        transform: translateX(120%);
    }
}

@keyframes chartPulse {
    0%,
    100% {
        opacity: 0.62;
        transform: scaleY(0.92);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.04);
    }
}

@keyframes statusPulse {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(125, 211, 252, 0);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(125, 211, 252, 0.08);
    }
}

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: min(520px, 100%);
}

.auth-copy,
.auth-note {
    margin-top: 12px;
}

.auth-form {
    margin-top: 22px;
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.field input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(152, 178, 202, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
}

.field input:focus {
    outline: none;
    border-color: rgba(125, 211, 252, 0.4);
    box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.08);
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.auth-footer a,
.auth-note {
    color: var(--muted);
    text-decoration: none;
}

.form-alert,
.form-success {
    padding: 14px 16px;
    border-radius: 16px;
    margin-top: 18px;
    font-size: 14px;
}

.form-alert {
    color: #ffd0d0;
    background: rgba(100, 28, 28, 0.42);
    border: 1px solid rgba(248, 113, 113, 0.24);
}

.form-success {
    color: #b8ffd9;
    background: rgba(16, 78, 60, 0.42);
    border: 1px solid rgba(52, 211, 153, 0.24);
}

@keyframes draw-line {
    from {
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes lift-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fan-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1120px) {
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-grid,
    .server-grid {
        grid-template-columns: 1fr;
    }

    .loading-grid--three,
    .loading-grid--two,
    .loading-row {
        grid-template-columns: 1fr;
    }

    .panel--hero {
        grid-template-columns: 1fr;
    }

    .masthead__actions {
        justify-content: flex-start;
    }

    .server-card__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-tile--storage {
        grid-column: span 2;
    }

    .storage-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .shell {
        width: min(100% - 18px, 1380px);
        padding-top: 18px;
    }

    .summary-grid,
    .ups-grid,
    .event-summary-grid {
        grid-template-columns: 1fr;
    }

    .loading-server-head {
        flex-direction: column;
        align-items: stretch;
    }

    .panel {
        padding: 18px;
    }

    .masthead__actions,
    .auth-footer {
        width: 100%;
        justify-content: flex-start;
    }

    .masthead__actions {
        border-radius: 18px;
    }

    .server-card__hero,
    .server-card__metrics,
    .server-card__quickstats {
        grid-template-columns: 1fr;
    }

    .metric-tile--storage {
        grid-column: span 1;
    }

    .status-pill,
    .status-tag {
        white-space: normal;
        line-height: 1.4;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
