:root {
    color-scheme: dark;
    --background: #0d1015;
    --surface: #151a21;
    --surface-soft: #1b222c;
    --border: #29323e;
    --text: #f4f6f8;
    --muted: #9ea8b5;
    --accent: #59df9a;
    --operational: #59df9a;
    --degraded: #f4c96b;
    --outage: #ff7d7d;
    --maintenance: #7fb6ff;
}

* { box-sizing: border-box; }

html { background: var(--background); }

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% -20%, rgba(89, 223, 154, .12), transparent 38rem),
        var(--background);
    color: var(--text);
    font: 500 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.status-shell {
    width: min(100%, 880px);
    margin: 0 auto;
    padding: max(18px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
}

.site-header {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    text-decoration: none;
    font-weight: 750;
    letter-spacing: -.02em;
}

.brand-logo {
    width: 54px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    object-fit: cover;
    object-position: center;
}

nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 13px;
    border-radius: 12px;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
}

nav a[aria-current="page"] {
    background: var(--surface-soft);
    color: var(--text);
}

.language-switch {
    width: fit-content;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: visible;
}

.language-switch a {
    min-width: 44px;
    min-height: 40px;
    justify-content: center;
    padding: 0 10px;
}

.language-switch a[aria-current="true"] {
    color: var(--text);
    background: var(--surface-soft);
}

.overall-panel,
.status-section {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(21, 26, 33, .96);
}

.overall-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 22px;
    margin-bottom: 14px;
}

.overall-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--state-color, var(--muted)) 15%, transparent);
    color: var(--state-color, var(--muted));
    font-size: 23px;
    font-weight: 850;
}

.overall-panel.operational { --state-color: var(--operational); }
.overall-panel.degraded,
.overall-panel.partial_outage { --state-color: var(--degraded); }
.overall-panel.major_outage { --state-color: var(--outage); }
.overall-panel.maintenance { --state-color: var(--maintenance); }

.eyebrow {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 5px; font-size: clamp(21px, 6vw, 30px); line-height: 1.18; letter-spacing: -.035em; }
h2 { margin-bottom: 0; font-size: 20px; letter-spacing: -.025em; }
h3 { font-size: 15px; }
.overall-panel p:last-child { margin: 0; color: var(--muted); }

.status-section {
    padding: 18px;
    margin-top: 14px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-heading time { color: var(--muted); font-size: 12px; text-align: right; }

.component-list { border-top: 1px solid var(--border); }

.component-row {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.state::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.state.operational { color: var(--operational); }
.state.degraded,
.state.partial_outage { color: var(--degraded); }
.state.major_outage { color: var(--outage); }
.state.maintenance { color: var(--maintenance); }

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

.metric-grid article {
    min-width: 0;
    padding: 15px;
    border-radius: 15px;
    background: var(--surface-soft);
}

.metric-grid strong {
    display: block;
    margin-bottom: 3px;
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: -.035em;
}

.metric-grid span { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }

.platform-panel { margin-top: 20px; }
.platform-panel h3 { margin-bottom: 10px; }
.platform-list { display: flex; flex-wrap: wrap; gap: 8px; }
.platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
}
.platform-pill strong { color: var(--text); }
.empty { margin: 0; color: var(--muted); }

.privacy-note {
    margin: 20px 0 0;
    padding: 14px 15px;
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: rgba(89, 223, 154, .07);
    color: var(--muted);
    font-size: 13px;
}

footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 4px 0;
    color: var(--muted);
    font-size: 12px;
}

footer span:last-child { display: flex; gap: 16px; }

@media (min-width: 620px) {
    .status-shell { padding-left: 24px; padding-right: 24px; }
    .site-header { flex-direction: row; align-items: center; justify-content: space-between; }
    .overall-panel { padding: 28px; }
    .status-section { padding: 24px; }
    .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    footer { flex-direction: row; justify-content: space-between; }
}

@media (prefers-color-scheme: light) {
    :root {
        color-scheme: light;
        --background: #f3f5f7;
        --surface: #ffffff;
        --surface-soft: #edf1f3;
        --border: #d9e0e5;
        --text: #111820;
        --muted: #63707d;
        --accent: #137c4a;
        --operational: #137c4a;
        --degraded: #8b6500;
        --outage: #b4232a;
        --maintenance: #175da6;
    }
    body { background: var(--background); }
    .overall-panel, .status-section { background: rgba(255, 255, 255, .97); }
}

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