:root {
  color-scheme: dark;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --bg: #101415;
  --panel: #171d1e;
  --border: #2d3636;
  --ink: #f0f3ef;
  --muted: #a8b4b1;
  --green: #78e6ae;
  --red: #ff9288;
  --unknown: #546061;
  background: var(--bg);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 3px; }
h1, h2, h3, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
.wrap { width: min(60rem, calc(100% - 4rem)); margin-inline: auto; }
.skip { position: absolute; top: -6rem; left: 1rem; z-index: 2; background: var(--ink); color: var(--bg); padding: .7rem 1rem; }
.skip:focus { top: .5rem; }
.masthead { border-bottom: 1px solid var(--border); }
.masthead-inner { display: flex; align-items: center; min-height: 4.65rem; gap: 1.1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .43rem; font: 760 1.75rem/1 Arial, sans-serif; letter-spacing: -.095em; min-height: 44px; }
.brand-dot { color: #fb5147; }
.brand-symbol { display: flex; align-items: center; gap: 2px; width: 1.2rem; height: 1.4rem; transform: skewY(-17deg); }
.brand-symbol i { width: 4.5px; height: 1.05rem; border-radius: 1px; background: #fb5147; }
.brand-symbol i:nth-child(2) { height: 1.4rem; }
.brand-symbol i:nth-child(3) { height: .75rem; align-self: flex-start; }
.section-name { border-left: 1px solid #46504f; padding: .1rem 0 .1rem 1.1rem; color: var(--muted); font-size: .93rem; }
.cabinet-link { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; padding: .5rem .85rem; min-height: 42px; border: 1px solid #394141; border-radius: .6rem; font-size: .85rem; font-weight: 600; }
.cabinet-link:hover { background: var(--panel); border-color: #697674; }
.content { padding: clamp(1.75rem, 5.5vw, 4.1rem) 0 1.8rem; }
.operational { --signal: var(--green); --signal-rgb: 120, 230, 174; }
.incident { --signal: var(--red); --signal-rgb: 255, 146, 136; }
.waiting { --signal: #c1cbca; --signal-rgb: 193, 203, 202; }
.overview {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; min-height: 11.4rem;
  padding: 2.2rem clamp(1.3rem, 4vw, 2.5rem);
  border: 1px solid rgba(var(--signal-rgb), .27); border-radius: 1.35rem;
  background: linear-gradient(105deg, rgba(var(--signal-rgb), .09), rgba(var(--signal-rgb), .015)), var(--panel);
}
.overview-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: .55rem; color: var(--signal); text-transform: uppercase; font-size: .7rem; font-weight: 700; letter-spacing: .125em; }
.lamp, .state i { display: inline-block; width: .42rem; height: .42rem; background: var(--signal); border-radius: 50%; flex: none; }
.lamp { box-shadow: 0 0 0 .24rem rgba(var(--signal-rgb), .13); margin-inline: .2rem; }
h1 { margin: .7rem 0 .6rem; font-size: clamp(1.9rem, 4.9vw, 3.5rem); font-weight: 660; line-height: 1.06; letter-spacing: -.052em; text-wrap: balance; }
.checked { color: var(--muted); font-size: .84rem; }
#update-warning { max-width: 44ch; margin-top: .55rem; color: #ffd3a3; font-size: .84rem; }
.checked time { margin-left: .3rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.radar-field { position: absolute; z-index: 0; inset: 0 0 0 auto; width: 32%; overflow: hidden; color: var(--signal); background-image: radial-gradient(rgba(var(--signal-rgb), .2) .8px, transparent 1px); background-size: 12px 12px; mask-image: linear-gradient(90deg, transparent, black 27%); }
.radar {
  position: absolute; top: 50%; right: -3.6rem; transform: translateY(-50%);
  width: 18.8rem; aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle at center, transparent 0 22px, rgba(var(--signal-rgb), .22) 22.5px 23.5px, transparent 24px 30px);
}
.radar::before, .radar::after { content: ""; position: absolute; pointer-events: none; }
.radar::before { top: 50%; left: 0; width: 100%; height: 1px; background: rgba(var(--signal-rgb), .19); }
.radar::after { top: 0; left: 50%; width: 1px; height: 100%; background: rgba(var(--signal-rgb), .19); }
.radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 205deg, transparent 0deg, rgba(var(--signal-rgb), .19) 53deg, rgba(var(--signal-rgb), .62) 54deg, transparent 55deg); }
.radar-center { position: absolute; width: .54rem; height: .54rem; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 .32rem rgba(var(--signal-rgb),.12); }
.services { margin-top: clamp(2rem, 4vw, 3rem); }
.section-head, .service-summary, .chart-key, footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
h2 { font-size: 1.6rem; font-weight: 650; letter-spacing: -.04em; line-height: 1.2; }
.section-head p { margin-top: .35rem; color: var(--muted); font-size: .88rem; }
.ready-count { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.ready-count b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.service-list { margin-top: 1.12rem; border: 1px solid var(--border); border-radius: 1.1rem; background: var(--panel); }
.service { padding: 1.2rem clamp(1rem, 3.5vw, 1.65rem) 1.1rem; }
.service + .service { border-top: 1px solid var(--border); }
.service-identity { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.service-icon { display: grid; place-items: center; width: 2.55rem; height: 2.55rem; flex: none; border-radius: .75rem; border: 1px solid #35403f; background: #222b2b; color: #cad6d3; }
.service-icon svg { width: 1.3rem; height: 1.3rem; }
.service-name h3 { font-size: 1.02rem; letter-spacing: -.022em; line-height: 1.25; font-weight: 620; }
.service-name a { display: inline-block; padding-block: .12rem; }
.service-name a:hover, footer a:hover { color: var(--green); }
.service-name a span { color: var(--muted); font-weight: 400; font-size: .84em; margin-left: .12em; }
.host, .latency { color: var(--muted); font-size: .74rem; }
.current { text-align: right; display: grid; justify-items: end; gap: .15rem; }
.state { display: inline-flex; align-items: center; gap: .42rem; font-size: .83rem; font-weight: 600; color: var(--signal); }
.state i { width: .34rem; height: .34rem; }
.latency { font-variant-numeric: tabular-nums; }
.history-row { display: grid; grid-template-columns: minmax(0,1fr) 4.5rem; gap: 1rem; align-items: center; margin-top: .76rem; }
.history { display: grid; grid-template-columns: repeat(60,minmax(0,1fr)); gap: 3px; min-width: 0; align-items: center; }
.tick { display: block; height: .95rem; border-radius: 3px; }
.tick:hover { outline: 1px solid var(--ink); outline-offset: 1px; }
.up { background: #6acd9f; }
.down { background: repeating-linear-gradient(135deg,var(--red) 0 3px,#b3625f 3px 5px); }
.empty { background: var(--unknown); }
.uptime { text-align: right; color: var(--ink); font-size: .85rem; font-weight: 625; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-key { margin: .9rem .15rem 0; color: var(--muted); font-size: .76rem; flex-wrap: wrap; }
.legend, .legend li { display: flex; align-items: center; }
.legend { flex-wrap: wrap; gap: 1rem; }
.legend li { gap: .36rem; }
.legend i { display: inline-block; width: .52rem; height: .52rem; border-radius: 2px; }
footer { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 2rem; color: var(--muted); font-size: .8rem; flex-wrap: wrap; }
.frequency { display: inline-flex; align-items: center; gap: .4rem; }
.frequency svg { width: 1rem; height: 1rem; }
footer a { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; }
@media (max-width: 45rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .radar-field { width: 21%; opacity: .67; }
  .radar { right: -8.4rem; }
  .history { gap: 2px; }
}
@media (max-width: 32rem) {
  .wrap { width: calc(100% - 1.5rem); }
  .masthead-inner { min-height: 3.75rem; gap: .75rem; }
  .section-name { padding-left: .75rem; }
  .content { padding-top: 1.2rem; }
  .overview { min-height: 10.6rem; padding: 1.35rem 1rem; }
  .overview-copy { max-width: 92%; }
  .checked time { display: block; margin-left: 0; }
  .radar-field { width: 20%; opacity: .45; }
  .radar { right: -9.3rem; }
  .services { margin-top: 1.7rem; }
  .section-head { align-items: flex-start; gap: .5rem; }
  .section-head p { font-size: .78rem; }
  .ready-count { margin-top: .35rem; }
  .service { padding: 1rem .8rem; }
  .service-summary { gap: .4rem; }
  .service-identity { gap: .55rem; }
  .service-icon { width: 2rem; height: 2rem; border-radius: .6rem; }
  .service-name h3 { font-size: .92rem; }
  .history-row { grid-template-columns: minmax(0,1fr) 3.2rem; gap: .45rem; }
  .history { gap: 1px; }
  .tick { height: .75rem; border-radius: 1px; }
  .uptime, .state { font-size: .76rem; }
  .chart-key { gap: .45rem; }
  footer { gap: .3rem .9rem; margin-top: 1.35rem; }
}
