:root{
  color-scheme:dark;
  --bg:#0f1627;
  --surface:#151f35;
  --surface-2:#1d2945;
  --surface-3:#23304f;
  --line:#2a3552;
  --line-soft:#222d47;
  --text:#f7f9ff;
  --muted:#9eafd0;
  --dim:#788cad;
  --green:#22c96b;
  --orange:#ffab2e;
  --red:#ef3340;
  --blue:#377cf6;
  --nodata:#2e3749;
  --width:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-width:320px;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
.container{width:min(calc(100% - 48px),var(--width));margin-inline:auto}
.skip-link{position:fixed;z-index:1000;top:8px;left:8px;padding:9px 12px;background:#fff;color:#000;border-radius:6px;transform:translateY(-160%)}
.skip-link:focus{transform:none}
.hidden{display:none!important}

.site-header{border-bottom:1px solid var(--line-soft);background:#111a2c}
.header-inner{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:24px;min-height:72px}
.brand{display:inline-flex;align-items:center;gap:10px;font-weight:800;letter-spacing:-.035em}
.logo{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;background:#fff;color:#0c1423;font-size:14px;font-weight:900;letter-spacing:-.06em}
.brand-text{font-size:20px;color:#fff}
.header-title{color:#8395b6;font-size:13px;font-weight:700}
.header-actions{display:flex;align-items:center;gap:8px}
.header-link,.header-status-link{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 13px;border-radius:8px;color:#b7c4dc;font-size:12px;font-weight:700}
.header-link:hover,.header-status-link:hover{background:#18233b;color:#fff}
.header-status-link{border:1px solid var(--line)}

.status-hero{padding:52px 0 28px}
.status-hero-row{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:26px}
.eyebrow{display:block;margin-bottom:8px;color:#7e93b9;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
h1{margin:0;font-size:clamp(34px,4.4vw,52px);line-height:1.05;letter-spacing:-.045em}
.status-meta{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;color:#8ea2c4;font-size:12px;font-variant-numeric:tabular-nums}
.live-state{display:inline-flex;align-items:center;gap:7px;font-weight:700}
.live-state i{width:8px;height:8px;border-radius:50%;background:var(--nodata)}
.live-state.operational{color:#6ee59c}.live-state.operational i{background:var(--green)}
.live-state.degraded{color:#ffc56d}.live-state.degraded i{background:var(--orange)}
.live-state.outage{color:#ff7982}.live-state.outage i{background:var(--red)}

.overall-banner,.monitoring-warning{display:flex;align-items:center;gap:14px;padding:16px 18px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:#b9c5dc}
.overall-banner strong,.monitoring-warning strong{display:block;color:#fff;font-size:15px}
.overall-banner span:not(.overall-icon),.monitoring-warning span{display:block;margin-top:2px;color:#8ea0c0;font-size:12px}
.overall-icon{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#29344d;color:#8798b5;font-weight:900}
.overall-banner.operational{border-color:rgba(34,201,107,.3);background:rgba(34,201,107,.055)}
.overall-banner.operational .overall-icon{background:rgba(34,201,107,.14);color:#4be18a}
.overall-banner.degraded{border-color:rgba(255,171,46,.32);background:rgba(255,171,46,.055)}
.overall-banner.degraded .overall-icon{background:rgba(255,171,46,.14);color:#ffc264}
.overall-banner.outage{border-color:rgba(239,51,64,.34);background:rgba(239,51,64,.06)}
.overall-banner.outage .overall-icon{background:rgba(239,51,64,.14);color:#ff7a84}
.monitoring-warning{margin-top:10px;border-color:rgba(255,171,46,.35)}

.status-content{padding-bottom:60px}
.status-section{padding-top:48px}
.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:28px;margin-bottom:18px}
.section-head h2{margin:0;font-size:22px;line-height:1.2;letter-spacing:-.025em}
.section-head p{margin:7px 0 0;color:#8fa2c4;font-size:12px}
.section-side,.average-uptime{padding-top:2px;color:#8ca0c3;font-size:12px;font-variant-numeric:tabular-nums}
.status-legend{display:flex;flex-wrap:wrap;gap:16px 24px;margin:18px 0 24px;color:#9eafd0;font-size:12px}
.status-legend span{display:inline-flex;align-items:center;gap:8px}
.status-legend i{width:16px;height:16px;border-radius:3px;background:var(--nodata)}
.legend-operational{background:var(--green)!important}.legend-degraded{background:var(--orange)!important}.legend-outage{background:var(--red)!important}.legend-maintenance{background:var(--blue)!important}

.component-groups{display:grid;gap:18px}
.component-group{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
.component-group[open] .group-arrow{transform:rotate(90deg)}
.component-group summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:22px;min-height:74px;padding:0 28px;background:var(--surface-2);border-bottom:1px solid transparent}
.component-group[open] summary{border-bottom-color:var(--line-soft)}
.component-group summary::-webkit-details-marker{display:none}
.group-title{display:flex;align-items:center;gap:13px;min-width:0}
.group-arrow{display:inline-block;color:#8ca0c3;font-size:18px;line-height:1;transition:transform .12s ease}
.group-title strong{font-size:17px}
.group-meta{display:flex;align-items:center;gap:11px;color:#8ea3c8;font-size:12px}
.group-meta strong{color:#edf3ff;font-size:14px;font-variant-numeric:tabular-nums}
.group-count{color:#8ea3c8;font-size:13px;font-weight:800}

.component-row{padding:24px 28px;border-top:1px solid var(--line-soft)}
.component-row:first-child{border-top:0}
.component-row-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:7px}
.component-name strong{font-size:16px;letter-spacing:-.015em}
.component-name span{display:block;margin-top:2px;color:#8296b9;font-size:11px}
.component-state{display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:800}
.component-state::after{content:"";width:10px;height:10px;border-radius:50%;background:currentColor}
.component-state.operational{color:#35dc7c}.component-state.degraded{color:#ffb43e}.component-state.outage{color:#ff5965}.component-state.no_data{color:#7e8da8}
.uptime-bars{display:flex;align-items:stretch;gap:3px;width:100%;height:40px;margin:3px 0 7px}
.uptime-bar{position:relative;display:block;flex:1 1 0;min-width:3px;background:var(--nodata);border-radius:1px}
.uptime-bar.operational{background:#1fb85e}.uptime-bar.degraded{background:#ff9f1c}.uptime-bar.outage{background:#ed2f3a}.uptime-bar.maintenance{background:#2f6fe6}.uptime-bar.no_data{background:#2b3344}
.uptime-bar::after{content:attr(data-tooltip);position:absolute;left:50%;bottom:calc(100% + 9px);z-index:20;transform:translateX(-50%);padding:6px 8px;border:1px solid #3a4766;border-radius:6px;background:#0b1221;color:#f6f8fd;font-size:11px;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none}
.uptime-bar:hover::after,.uptime-bar:focus-visible::after{opacity:1;visibility:visible}
.uptime-labels{display:flex;justify-content:space-between;color:#8ea2c5;font-size:11px}
.uptime-labels strong{color:#edf3ff;font-size:12px;font-variant-numeric:tabular-nums}
.history-note{display:flex;align-items:flex-start;gap:11px;margin-top:14px;color:#8296b9;font-size:11px}
.history-note>span{display:grid;place-items:center;width:20px;height:20px;flex:none;border:1px solid #34405d;border-radius:50%;color:#9fb2d4;font-weight:800}
.history-note p{margin:0}

.event-list{display:grid;gap:12px}
.empty-state{display:flex;align-items:center;gap:16px;min-height:82px;padding:0 28px;border:1px dashed #405074;border-radius:14px;background:var(--surface);color:#a6b7d5}
.empty-state>span{color:#36dc7c;font-size:25px;line-height:1}
.empty-state strong{font-size:14px;font-weight:500}
.empty-state.warning>span{color:#ffb43e}
.event-card{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.event-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:18px 22px;border-bottom:1px solid var(--line-soft);background:var(--surface-2)}
.event-card-head strong{display:block;font-size:15px}
.event-meta{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:5px;color:#8ea2c4;font-size:11px}
.event-badge{padding:4px 8px;border-radius:999px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.event-badge.degraded{background:rgba(255,171,46,.13);color:#ffc268}.event-badge.outage{background:rgba(239,51,64,.14);color:#ff7781}.event-badge.maintenance{background:rgba(55,124,246,.14);color:#80aaff}
.event-body{padding:18px 22px;color:#a4b4d0;font-size:12px}
.event-components{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.event-components span{padding:4px 7px;border:1px solid var(--line);border-radius:6px;color:#93a8cb;font-size:10px}
.incident-link{display:inline-flex;align-items:center;gap:8px;margin-top:18px;color:#f4f7ff;font-size:13px;font-weight:800}
.incident-link:hover{color:#8fb3ff}

.status-policy{display:flex;align-items:center;justify-content:space-between;gap:26px;margin-top:48px;padding:22px 24px;border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft)}
.status-policy strong{font-size:13px}.status-policy p{max-width:800px;margin:5px 0 0;color:#8194b4;font-size:11px}.status-policy a{flex:none;color:#9eb7e9;font-size:12px;font-weight:800}

@media(max-width:820px){
  .container{width:min(calc(100% - 30px),var(--width))}
  .header-inner{grid-template-columns:auto 1fr}.header-title{display:none}.header-actions{justify-self:end}.header-link{display:none}
  .status-hero{padding-top:38px}.status-hero-row{align-items:flex-start;flex-direction:column}.status-meta{justify-content:flex-start}
  .component-group summary{grid-template-columns:1fr auto;padding:0 18px}.group-meta{grid-column:1/-1;margin:-10px 0 14px 31px}.group-count{grid-row:1;grid-column:2}.component-row{padding:20px 18px}.uptime-bars{gap:2px;height:34px}
  .section-head{flex-direction:column;gap:8px}.section-side,.average-uptime{padding:0}
  .status-policy{align-items:flex-start;flex-direction:column}
}
@media(max-width:520px){
  .header-status-link{padding-inline:10px}.brand-text{font-size:18px}.logo{width:33px;height:33px}
  h1{font-size:34px}.status-legend{gap:12px 16px}.status-legend i{width:13px;height:13px}
  .component-row-head{align-items:flex-start;flex-direction:column;gap:8px}.uptime-bars{gap:1px;height:30px}.uptime-bar{min-width:1px}.component-group{border-radius:13px}
  .event-card-head{flex-direction:column}.empty-state{padding:18px 20px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.group-arrow{transition:none}}
