:root {
    color-scheme: dark;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #e8f0fa;
    background: #080e18;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; isolation: isolate; font-size: 15px; line-height: 1.6; }
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(8, 14, 24, .16), rgba(8, 14, 24, .6)),
        url("assets/freelancer-defender-scene.webp") center top / cover no-repeat;
}
a { color: #38bdf8; text-decoration: none; }
a:hover { color: #a5e7ff; text-decoration: underline; }
a:focus-visible { outline: 3px solid #a5e7ff; outline-offset: 4px; }
.page { max-width: 1120px; margin: 0 auto; padding: 40px 24px 24px; }
.page-header { text-align: center; }
.eyebrow { margin: 0 0 8px; color: #38bdf8; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(26px, 4vw, 38px); font-weight: 650; line-height: 1.2; letter-spacing: -.025em; }
.page-intro { margin: 12px 0 0; color: #95a8c0; }
.update-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin: 18px 0 28px; color: #95a8c0; font-size: 12px; }
.update-info strong { color: #bdcce0; font-weight: 600; }
.summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
.summary > div { padding: 20px 24px; border: 1px solid #27364c; background: #0f1726; }
.summary dt { color: #95a8c0; font-size: 11px; font-weight: 650; letter-spacing: .09em; }
.summary dd { margin: 4px 0 0; color: #38bdf8; font-size: 34px; font-weight: 650; line-height: 1.3; font-variant-numeric: tabular-nums; }
.summary > div + div dd { color: #34d399; }
.table-panel { border: 1px solid #27364c; background: #0f1726; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid #27364c; }
.panel-heading h2 { margin: 0; font-size: 18px; font-weight: 600; }
.panel-heading > span { color: #95a8c0; font-size: 12px; }
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline: 2px solid #38bdf8; outline-offset: -2px; }
table { width: 100%; min-width: 500px; border-collapse: collapse; text-align: left; }
.averaged-table { min-width: 720px; }
thead { background: #131f31; }
th { padding: 13px 24px; color: #95a8c0; font-size: 11px; font-weight: 650; letter-spacing: .07em; }
td { padding: 15px 24px; border-top: 1px solid #202d40; }
tbody tr:nth-child(even) { background: #111c2d; }
tbody tr:hover { background: #1b2b40; }
.rank-column { width: 88px; }
.rank { display: inline-block; min-width: 28px; padding: 2px 5px; color: #95a8c0; text-align: center; font-variant-numeric: tabular-nums; }
.rank-leading { color: #38bdf8; background: #19364b; font-weight: 650; }
.numeric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.numeric { color: #34d399; font-weight: 600; }
.capacity { color: #95a8c0; font-weight: 400; }
.server-name { font-weight: 600; overflow-wrap: anywhere; }
.server-address { white-space: nowrap; font-size: 13px; font-variant-numeric: tabular-nums; }
.server-address a { color: #95a8c0; }
.server-address a:hover { color: #a5e7ff; }
.empty-state { padding: 36px 24px; color: #95a8c0; text-align: center; }
.status-message { padding: 24px; border: 1px solid #40546e; background: #0f1726; color: #bdcce0; }
.page-footer { margin-top: 28px; color: #95a8c0; text-align: center; }
.page-footer p { margin: 8px 0; }
.generation-time { font-size: 11px; }

/* Homepage sections share the listing panels' palette and square borders. */
.page-home { max-width: 836px; }
.dashboard-section { margin-top: 36px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.section-heading .eyebrow { margin-bottom: 4px; font-size: 10px; }
.section-heading h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.section-heading > p { margin: 0; color: #95a8c0; font-size: 13px; }
.section-heading > a { font-size: 13px; font-weight: 600; }
.section-intro { margin: -4px 0 18px; color: #95a8c0; font-size: 14px; }
.graph-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.graph-card { min-width: 0; margin: 0; padding: 18px; border: 1px solid #27364c; background: #0f1726; }
.graph-card-wide { grid-column: 1 / -1; }
.graph-card figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 16px; }
.graph-card h3 { margin: 0; font-size: 15px; font-weight: 600; }
.graph-card figcaption span { color: #95a8c0; font-size: 12px; }
.graph-card img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.server-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 32px; padding: 24px; border: 1px solid #27364c; background: #0f1726; }
.server-callout h2 { margin: 0; font-size: 18px; font-weight: 600; }
.server-callout p { margin: 4px 0 0; color: #95a8c0; font-size: 13px; }
.action-link { display: inline-block; padding: 10px 18px; border: 1px solid #38bdf8; background: #19364b; font-weight: 600; }
.action-link:hover { background: #1b3148; text-decoration: none; }

@media (max-width: 600px) {
    body::before { background-position: 65% top; }
    .page { padding: 28px 16px 20px; }
    .summary { gap: 10px; }
    .summary > div { padding: 16px; }
    .summary dd { font-size: 28px; }
    .panel-heading { padding: 16px; }
    th, td { padding-left: 16px; padding-right: 16px; }
    .dashboard-section { margin-top: 28px; }
    .graph-card { padding: 12px; }
    .server-callout { padding: 18px; }
}
