:root {
  color-scheme: dark; font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg:#0e111a; --panel:#151b2a; --line:#293249; --text:#f3f6ff; --muted:#a2adc4;
  --blue:#a9bafc; --green:#77e1b1; --red:#ffa2a9; --amber:#ffd497;
}
* { box-sizing:border-box }
[hidden] {display:none!important}
body { margin:0; min-height:100vh; color:var(--text); background:radial-gradient(ellipse at 95% 1%,#1b2542 0,transparent 39rem),var(--bg); line-height:1.5 }
a { color:var(--blue); text-decoration:none }
a:hover { text-decoration:underline }
button,input { font:inherit }
button { cursor:pointer }
button:disabled { opacity:.55; cursor:wait }
a:focus-visible,button:focus-visible,input:focus-visible { outline:2px solid #c2ceff; outline-offset:4px }
.shell { width:min(100% - 3rem, 1220px); margin-inline:auto }
.top { background:#101522d9; border-bottom:1px solid var(--line) }
.top-inner { height:65px; display:flex; justify-content:space-between; gap:1rem; align-items:center }
.brand { display:inline-flex; gap:.75rem; align-items:center; font-weight:700; color:var(--text); letter-spacing:-.015em }
.mark { display:flex; align-items:flex-end; gap:3px; justify-content:center; width:33px; height:33px; padding:8px; border-radius:9px; background:#bdc9ff }
.mark i { width:3px; height:8px; background:#1a2446; border-radius:2px }
.mark i:nth-child(2) {height:15px}.mark i:nth-child(3) {height:11px}
nav { display:flex; align-items:center; gap:1rem; font-size:.875rem; font-weight:600 }
.quiet { color:var(--muted); background:transparent; border:1px solid var(--line); border-radius:8px; padding:.48rem .72rem; font-size:.875rem }
.quiet:hover { color:var(--text); border-color:#617095 }
main { padding:1.35rem 0 3rem }
.section-head { display:flex; justify-content:space-between; align-items:baseline; gap:1rem }
h1,h2,h3,p { margin:0 }
h1 { font-size:clamp(2rem,5vw,3.1rem); letter-spacing:-.055em; line-height:1.1; font-weight:730 }
.signin p { margin-top:.5rem; color:var(--muted) }
.notice { border:1px solid var(--line); border-radius:10px; padding:.65rem .95rem; background:#1a2234; margin-bottom:.85rem; color:var(--muted); font-size:.9375rem; display:flex; align-items:center; gap:.6rem }
.notice.warn {color:var(--amber); background:#34291d; border-color:#624b30}
.notice::before,.pill::before { content:""; width:.46rem; height:.46rem; border-radius:50%; background:currentColor; flex:none }
.section-head { margin-bottom:.65rem }
.section-head h1,.section-head h2 { font-size:1.24rem; letter-spacing:-.028em }
.server-head span { color:var(--muted); font-size:.875rem }
.server-head>div { display:flex; gap:1rem; align-items:baseline; font-size:.875rem }
.project-grid { display:grid; gap:.9rem; grid-template-columns:repeat(3,minmax(0,1fr)) }
.project { display:flex; flex-direction:column; min-width:0; border:1px solid var(--line); border-radius:12px; padding:1.14rem; background:var(--panel) }
.project-head { display:flex; align-items:center; gap:.75rem; min-width:0; margin-bottom:1rem }
.project-icon { display:grid; place-items:center; border-radius:9px; width:2.5rem; height:2.5rem; background:#243457; color:#c2d4ff; font-weight:750; flex:none }
.project.frotion .project-icon { background:#3b2855; color:#e2caff }
.project.home .project-icon { background:#173b41; color:#a0eee7 }
.project h3 { font-size:1.125rem; letter-spacing:-.025em; line-height:1.25 }
.project-head p { color:var(--muted); font-size:.8125rem; margin-top:.1rem }
.pill { display:inline-flex; gap:.4rem; align-items:center; align-self:flex-start; border-radius:99px; padding:.26rem .6rem; border:1px solid var(--line); background:#20283d; font-size:.8125rem; color:var(--muted); font-weight:650 }
.pill.good { color:var(--green); background:#17362d; border-color:#285647 }
.pill.warn { color:var(--amber); background:#372c22; border-color:#654b32 }
.pill.down { color:var(--red); background:#3b252c; border-color:#6d424b }
.project ul { margin:.8rem 0 0; padding:0; list-style:none; display:grid; gap:0 }
.project > ul { min-height:6.65rem; align-content:start }
.project li { display:flex; align-items:baseline; justify-content:space-between; gap:.5rem; border-top:1px solid #273047; padding:.42rem 0; color:var(--muted); font-size:.875rem }
.project li span:last-child { text-align:right; white-space:nowrap; color:var(--text) }
.project li span.good {color:var(--green)} .project li span.warn {color:var(--amber)} .project li span.down {color:var(--red)}
.server-head { margin-top:2rem }
.stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.9rem }
.stat { min-width:0; padding:.9rem 1rem; border:1px solid var(--line); border-radius:11px; background:#131927 }
.stat h3 { color:var(--muted); font-weight:650; font-size:.875rem }
.value { font-variant-numeric:tabular-nums; letter-spacing:-.04em; font-size:1.75rem; font-weight:700; margin:.2rem 0 }
.stat p { color:var(--muted); font-size:.8125rem }
.meter { height:5px; background:#2b3550; width:100%; display:block; border:0; border-radius:5px; margin:.55rem 0 .45rem; overflow:hidden; appearance:none }
.meter::-webkit-progress-bar { background:#2b3550 }
.meter::-webkit-progress-value { background:#aabaff; border-radius:5px }
.meter::-moz-progress-bar {background:#aabaff}
.stat.warn .meter::-webkit-progress-value {background:var(--amber)}
.stat.warn .meter::-moz-progress-bar {background:var(--amber)}
.signin { margin:clamp(1rem,8vw,5rem) auto 0; padding:2rem; max-width:425px; border:1px solid var(--line); border-radius:14px; background:var(--panel) }
.signin h1 {font-size:2.25rem}
.signin form { display:grid; margin-top:1.5rem; gap:.5rem }
.signin label { font-size:.875rem; font-weight:650 }
.signin input { color:var(--text); width:100%; background:#101626; border:1px solid #414c68; padding:.65rem .75rem; border-radius:8px; margin-bottom:.5rem }
.primary { color:#11182e; background:#bdc9ff; border:0; padding:.65rem 1rem; border-radius:8px; font-weight:720; margin-top:.3rem }
.primary:hover { background:#d5ddff }
#login-error { color:var(--red); font-size:.875rem }
#login-error:empty {display:none}
@media(max-width:850px) { .project-grid {grid-template-columns:repeat(2,minmax(0,1fr))}.stat-grid {grid-template-columns:repeat(2,minmax(0,1fr))} }
@media(max-width:560px) { .shell {width:calc(100% - 2rem)}main {padding-top:1.6rem}.project-grid {grid-template-columns:1fr}.server-head>div {gap:.45rem; flex-wrap:wrap; justify-content:end}.server-head span {font-size:.75rem}nav {gap:.5rem}.signin {padding:1.4rem}.reload {padding:.4rem .5rem}.top-inner {height:60px} }

.history-legend { display:flex; flex-wrap:wrap; gap:.35rem .75rem; justify-content:flex-end; color:var(--muted); font-size:.75rem }
.history-legend span { white-space:nowrap }
.history-legend i { display:inline-block; width:.5rem; height:.5rem; border-radius:2px; margin-right:.17rem }
.history { margin:.78rem 0 .02rem; border-top:1px solid #273047; padding-top:.74rem; min-width:0 }
.history-title { display:flex; justify-content:space-between; align-items:baseline; gap:.5rem; font-size:.8125rem; color:var(--muted) }
.history-title strong { font-size:.8125rem; font-weight:650; color:var(--text) }
.timeline { display:flex; gap:2px; margin:.42rem 0 .21rem; height:.74rem }
.timeline span { flex:1 1 0; min-width:0; border-radius:2px }
.timeline span:hover { outline:1px solid var(--text); outline-offset:1px }
.timeline .up,.history-legend .up { background:#54bf90 }
.timeline .warning,.history-legend .warning { background:#e3ac59 }
.timeline .down,.history-legend .down { background:#f57888 }
.timeline .unknown,.history-legend .unknown { background:#48516a }
.history-axis { display:flex; justify-content:space-between; font-variant-numeric:tabular-nums; color:var(--muted); font-size:.75rem }
.history-caption { color:var(--muted); font-size:.8125rem; margin-top:.47rem }
.history details { margin-top:.45rem; font-size:.8125rem; color:var(--muted) }
.history summary { cursor:pointer; font-weight:650; color:var(--blue) }
.history .event-list { margin:.28rem 0 0; padding:0; display:block }
.history .event-list li { display:grid; grid-template-columns:1fr; gap:.05rem; font-size:.8125rem; padding:.34rem 0 }
.history .event-list li span { text-align:left; white-space:normal; color:var(--muted) }
.history .event-list li strong { color:var(--text); font-weight:600 }
@media(max-width:560px) {
  main {padding-top:1.05rem}
  .project > ul {min-height:0}
  .history-legend {gap:.2rem .5rem}
  nav {flex-wrap:wrap;justify-content:flex-end;line-height:1.15}
  nav>a,nav .quiet {font-size:.75rem}
  nav .quiet {padding:.36rem .43rem}
}
@media(max-width:360px) {
  .top-inner {height:auto; min-height:60px; padding:.45rem 0; gap:.5rem}
  .brand {gap:.4rem}
}
