

:root {
  --bg: #040405;
  --bar: rgba(0, 0, 0, 0.75);
  --line: rgba(217, 217, 217, 0.10);
  --line2: rgba(255, 255, 255, 0.22);
  --white: #f4f5f7;
  --silver: #bdbdbd;
  --dim: #8f8f8f;
  --accent: #60ff78;
  --accentInk: #05070a;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --sans: "Roboto", "Roboto Flex", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --barH: 52px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--white); }

.backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  mask-image: radial-gradient(circle at 92% 92%, #000 0%, rgba(0, 0, 0, 0.5) 35%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 92% 92%, #000 0%, rgba(0, 0, 0, 0.5) 35%, transparent 70%);
}
.backdrop[data-side="left"] {
  mask-image: radial-gradient(circle at 8% 92%, #000 0%, rgba(0, 0, 0, 0.5) 35%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 8% 92%, #000 0%, rgba(0, 0, 0, 0.5) 35%, transparent 70%);
}
.backdrop.ready { opacity: 0.22; }

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 35%, transparent 45%, rgba(0, 0, 0, 0.65) 100%);
}

@media (max-width: 640px) {
  .vignette { display: none; }
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--barH) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) clamp(16px, 1.56vw, 24px) 0;
  display: flex;
  align-items: center;
  z-index: 10;
  background: var(--bar);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: padding 0.55s cubic-bezier(0.32, 0.72, 0.35, 1), background 0.4s, border-color 0.4s;
}
.topbar.scrolled {
  padding-left: max(16px, calc(50% - 350px));
  padding-right: max(16px, calc(50% - 350px));
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(100% + 48px);
  background: linear-gradient(to bottom, rgba(4, 4, 5, 0.92) 0%, rgba(4, 4, 5, 0));
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.4s;
}
.topbar.scrolled::before { opacity: 1; }

.path { display: flex; align-items: center; gap: 2px; min-width: 0; }
.sep { color: var(--dim); font-size: 16px; font-weight: 400; padding: 0 2px 0 6px; max-width: 1em; overflow: hidden; white-space: nowrap; transition: opacity 0.3s, max-width 0.5s cubic-bezier(0.32, 0.72, 0.35, 1), padding 0.5s cubic-bezier(0.32, 0.72, 0.35, 1); }
.topbar.scrolled .sep { max-width: 0; opacity: 0; padding: 0; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  user-select: none;
  padding: 6px 8px;
  margin-left: -8px;
  border-radius: 8px;
  transition: background 0.2s;
}
.brand:hover { background: rgba(255, 255, 255, 0.05); }
.topbar.scrolled .brand:hover { background: transparent; }
.brandIcon { width: 32px; height: auto; object-fit: contain; }
.brandText {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-block;
  max-width: 10em;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.5s cubic-bezier(0.32, 0.72, 0.35, 1), opacity 0.3s 0.1s;
}
.topbar.scrolled .brandText { max-width: 0; opacity: 0; }
.brandText .w1 { color: var(--white); }
.brandText .dot { color: var(--accent); }
.brandText .w2 { color: var(--dim); }

.crumb {
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 6px 8px;
  white-space: nowrap;
  max-width: 18em;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: max-width 0.5s cubic-bezier(0.32, 0.72, 0.35, 1), opacity 0.3s 0.1s, padding 0.5s cubic-bezier(0.32, 0.72, 0.35, 1);
}
.topbar.scrolled .crumb { max-width: 0; opacity: 0; padding-left: 0; padding-right: 0; }

.live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  color: var(--silver);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.liveDot { width: 6px; height: 6px; border-radius: 2px; background: var(--dim); transition: background 0.3s; }
.live.on .liveDot { background: var(--accent); }
.live.stale .liveDot { background: #fbbc05; }

.page { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: calc(var(--barH) + env(safe-area-inset-top, 0px) + 48px) 20px 120px; }

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - var(--barH) - 160px);
  color: var(--dim);
  font-size: 15px;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .topbar { padding-left: 16px; padding-right: 16px; }
  .brandText { display: none; }
  .brandIcon { width: 32px; height: 20px; }
  .page { padding-top: calc(var(--barH) + env(safe-area-inset-top, 0px) + 32px); }
  .live { font-size: 12px; }
}

.sp {
  --accent: #60ff78;
  --accentInk: #05070a;
  --spAmber: #fbbc05;
  --spRed: #ea4335;
  --spWhite: #f4f5f7;
  --spSilver: #bdbdbd;
  --spDim: #8f8f8f;
  --spLine: rgba(217, 217, 217, 0.10);
  --spLine2: rgba(255, 255, 255, 0.22);
  --spFill: rgba(255, 255, 255, 0.035);
  --spCard: rgba(0, 0, 0, 0.75);
  --spMono: ui-monospace, "SF Mono", Menlo, monospace;
  position: relative;
  color: var(--spWhite);
  font-family: "Roboto", "Roboto Flex", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.sp *, .sp *::before, .sp *::after { box-sizing: border-box; margin: 0; padding: 0; }

.sp .is-up { --st: var(--accent); }
.sp .is-partial { --st: var(--spAmber); }
.sp .is-down { --st: var(--spRed); }
.sp .is-none { --st: var(--spDim); }
.sp .s-up { --c: var(--accent); }
.sp .s-partial { --c: var(--spAmber); }
.sp .s-down { --c: var(--spRed); }
.sp .s-none { --c: rgba(217, 217, 217, 0.16); }

.sp-head { display: flex; align-items: center; gap: 16px; }
.sp-logo {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
  font-size: 21px;
  font-weight: 600;
  color: var(--accentInk);
  background: var(--accent);
  transition: background-color 0.4s, color 0.4s;
}
.sp-logo.has-img { background: var(--spFill); }
.sp-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sp-id { min-width: 0; }
.sp-name { font-size: 30px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; overflow-wrap: anywhere; }
.sp-desc { margin-top: 6px; color: var(--spSilver); font-size: 16px; line-height: 1.45; }

.sp-ico { width: 20px; height: 20px; flex: none; }
.sp-ico svg { display: block; width: 100%; height: 100%; }
.sp-ico rect { fill: var(--st); }
.sp-ico path { fill: none; stroke: var(--accentInk); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.sp-ico.is-none rect { fill: none; stroke: var(--spDim); stroke-width: 1.6; }
.sp-ico.lg { width: 52px; height: 52px; }
.sp-ico.lg path { stroke-width: 2.6; }

.sp-overall {
  margin-top: 36px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  padding: 28px 34px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--st) 22%, transparent);
  background: color-mix(in srgb, var(--st) 4%, rgba(0, 0, 0, 0.5));
}
.sp--page .sp-overall {
  margin: 0 calc(50% - 50vw);
  padding: 54px max(20px, calc(50vw - 410px)) 62px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(115deg, color-mix(in srgb, var(--st) 52%, #06100a) 0%, color-mix(in srgb, var(--st) 18%, #04080a) 100%);
}
.sp--page .sp-overall.is-up { background: linear-gradient(115deg, #ffffff 0%, #f4f6f9 100%); }
.sp--page .sp-overall.is-up .sp-ico rect { fill: #101214; }
.sp--page .sp-overall.is-up .sp-ico path { stroke: #e6e9ee; }
.sp--page .sp-overall.is-up h2 { color: #0b0c0d; }
.sp--page .sp-overall.is-up p { color: #2e3136; }
.sp--page .sp-overall.is-up p time { color: #0b0c0d; }
.sp--page .sp-overall.is-up .sp-overall-stat b { color: #101214; }
.sp--page .sp-overall.is-up .sp-overall-stat b small,
.sp--page .sp-overall.is-up .sp-overall-stat span { color: #34373d; }
.sp-overall-text { min-width: 0; }
.sp-overall h2 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 500; letter-spacing: -0.025em; }
.sp-overall p { margin-top: 7px; color: var(--spSilver); font-size: 15.5px; }
.sp-overall p time { color: var(--spWhite); font-variant-numeric: tabular-nums; }
.sp-overall-stat { margin-left: auto; text-align: right; flex: none; }
.sp-overall-stat b { display: block; font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em; color: var(--st); font-variant-numeric: tabular-nums; }
.sp-overall-stat b small { font-size: 0.55em; font-weight: 400; color: var(--spSilver); }
.sp-overall-stat span { display: block; margin-top: 3px; color: var(--spDim); font-size: 12.5px; }

.sp-section { margin-top: 44px; }
.sp-gh { margin: 0 2px 20px; }
.sp-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--spWhite);
  font-family: inherit;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: color 0.15s;
}
.sp-group:hover { color: var(--spSilver); }
.sp-arr { width: 15px; height: 15px; color: var(--spDim); transition: transform 0.35s cubic-bezier(0.32, 0.72, 0.35, 1), color 0.15s; }
.sp-group:hover .sp-arr { color: var(--spWhite); }
.sp-shut .sp-arr { transform: rotate(-90deg); }
.sp-shut > .sp-gh { margin-bottom: 0; }
.sp-shut + .sp-section { margin-top: 28px; }
.sp-collapse { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.55s cubic-bezier(0.32, 0.72, 0, 1); }
.sp-collapse > .sp-list { min-height: 0; overflow: hidden; transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.35s ease; }
.sp-shut > .sp-collapse { grid-template-rows: 0fr; }
.sp-shut > .sp-collapse > .sp-list { transform: translateY(-16px); opacity: 0; }
.sp-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.sp-sechead h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.sp-legend { display: inline-flex; align-items: center; gap: 6px; color: var(--spDim); font-size: 12.5px; white-space: nowrap; }
.sp-legend i { width: 7px; height: 7px; border-radius: 2px; background: var(--c); margin-left: 10px; }
.sp-legend i:first-child { margin-left: 0; }

.sp-list { list-style: none; }

.sp-mon { position: relative; padding: 6px 0 26px; }
.sp-mon + .sp-mon { margin-top: 20px; }
.sp-mon-top { display: flex; align-items: center; gap: 11px; min-width: 0; margin-bottom: 14px; }
.sp-mon-name { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-mon-state { font-size: 13px; color: var(--spDim); white-space: nowrap; }
.sp-mon:not(.is-up):not(.is-none) .sp-mon-state { color: var(--st); }
.sp-mon-meta { margin-left: auto; display: flex; gap: 20px; font-size: 13.5px; color: var(--spSilver); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-mon-meta small { color: var(--spDim); margin-left: 2px; }
.sp-na { color: var(--spDim); }

.sp-stripwrap { position: relative; }
.sp-stripfade {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 26px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.25s;
}
.sp-strip {
  height: 34px;
  display: flex;
  gap: 3px;
  cursor: default;
  outline: none;
  border-radius: 6px;
}
.sp-strip:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.sp-strip i { flex: 1 1 0; min-width: 0; border-radius: 99px; background: var(--c); transition: opacity 0.15s, background-color 0.4s, transform 0.18s ease-out, filter 0.25s, box-shadow 0.3s; }
.sp-strip.hovering i.on { transform: scale(1, 1.28); position: relative; z-index: 1; }
.sp-strip.hovering i.on + i, .sp-strip.hovering i:has(+ i.on) { transform: scale(1, 1.08); }
.sp-strip.hovering i.on + i + i, .sp-strip.hovering i:has(+ i + i.on) { transform: scale(1, 1.04); }

.sp-axis { display: flex; justify-content: space-between; margin-top: 10px; color: var(--spDim); font-size: 12.5px; }
.sp-rule { display: none; }

.sp-inc { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 12px; padding: 20px 24px; border-radius: 18px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)); }
.sp-inc .sp-ico { width: 24px; height: 24px; margin-top: 1px; }
.sp-inc-body { flex: 1; min-width: 0; }
.sp-inc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sp-inc-ago { font-size: 13px; color: var(--spSilver); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-inc h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.sp-inc p { margin-top: 4px; font-size: 14px; color: var(--spSilver); }
.sp-inc b { font-weight: 500; color: var(--spWhite); }

.sp-hist { border-radius: 18px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)); }
.sp-hrow { position: relative; display: grid; grid-template-columns: 24px 64px 1fr auto; align-items: center; gap: 14px; padding: 16px 24px; }
.sp-hrow + .sp-hrow::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: var(--spLine); }
.sp-hdate { font-size: 13px; color: var(--spDim); font-variant-numeric: tabular-nums; }
.sp-hmain { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.sp-htitle { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-hmon { font-size: 13px; color: var(--spDim); white-space: nowrap; }
.sp-hdur { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--spSilver); white-space: nowrap; }
.sp svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sp-ico svg { width: 100%; height: 100%; fill: none; stroke: none; }
.sp-hdur svg, .sp-calm svg { color: var(--accent); }
.sp-calm { display: flex; align-items: center; gap: 10px; padding: 20px 24px; font-size: 15px; color: var(--spSilver); border-radius: 18px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)); }

.sp-foot { margin-top: 40px; display: flex; align-items: center; gap: 8px; color: var(--spDim); font-size: 13px; }
.sp-foot time { color: var(--spSilver); font-variant-numeric: tabular-nums; }
.sp-foot-sep { opacity: 0.6; }
.sp-live { width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }

.sp-mark {
  position: sticky;
  bottom: 12px;
  z-index: 4;
  width: max-content;
  margin: 32px 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px 7px 9px;
  border-radius: 10px;
  background: rgba(28, 28, 32, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.sp-mark img { width: 19px; height: 12px; object-fit: contain; display: block; }
.sp-mark .w1 { color: var(--spWhite); }
.sp-mark .dot { color: var(--accent); }
.sp-mark .w2 { color: var(--spSilver); }
.sp-mark:hover { background: rgba(40, 40, 46, 0.9); }
.sp--page .sp-mark { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); margin: 0; }

.sp-tip {
  --c: var(--spDim);
  position: absolute;
  z-index: 6;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
  min-width: 140px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(36, 36, 40, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 13px;
  white-space: nowrap;
}
.sp-tip[hidden] { display: none; }
.sp-tip-date { font-weight: 600; color: var(--spWhite); }
.sp-tip-state { margin-top: 3px; display: flex; align-items: center; gap: 7px; color: var(--spSilver); }
.sp-tip-state i { width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.sp-tip-mon { margin-left: auto; padding-left: 14px; color: var(--spDim); }
.sp-tip-inc { margin-top: 6px; color: var(--spSilver); max-width: 240px; white-space: normal; }

.sp--compact .sp-logo { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
.sp--compact .sp-name { font-size: 18px; }
.sp--compact .sp-desc { font-size: 13px; margin-top: 2px; }
.sp--compact .sp-head { gap: 11px; }
.sp--compact .sp-overall { margin-top: 20px; padding: 14px 18px; border-radius: 18px; gap: 14px; }
.sp--compact .sp-overall-stat { display: none; }
.sp--compact .sp-ico.lg { width: 32px; height: 32px; }
.sp--compact .sp-overall h2 { font-size: 16px; }
.sp--compact .sp-overall p { font-size: 12px; margin-top: 2px; }
.sp--compact .sp-section { margin-top: 22px; }
.sp--compact .sp-group { font-size: 15px; margin-bottom: 12px; }
.sp--compact .sp-sechead { display: none; }
.sp--compact .sp-mon { padding-bottom: 18px; }
.sp--compact .sp-mon + .sp-mon { margin-top: 14px; }
.sp--compact .sp-mon-top { margin-bottom: 10px; gap: 9px; }
.sp--compact .sp-ico { width: 16px; height: 16px; }
.sp--compact .sp-mon-name { font-size: 14.5px; }
.sp--compact .sp-mon-state { font-size: 11.5px; }
.sp--compact .sp-mon-meta { font-size: 12px; gap: 12px; }
.sp--compact .sp-strip { height: 20px; gap: 2px; }
.sp--compact .sp-axis { display: none; }
.sp--compact .sp-mark { margin-top: 16px; }

@media (max-width: 560px) {
  .sp-name { font-size: 24px; }
  .sp-logo { width: 42px; height: 42px; font-size: 18px; border-radius: 12px; }
  .sp-overall { padding: 20px 22px; gap: 16px; border-radius: 22px; }
  .sp--page .sp-overall { padding: 26px 20px 30px; border-radius: 0; justify-content: center; }
  .sp-ico.lg { width: 42px; height: 42px; }
  .sp-overall p { font-size: 14px; }
  .sp-group { font-size: 20px; margin-bottom: 16px; }
  .sp-legend { display: none; }
  .sp-mon-name { font-size: 17px; }
  .sp-mon-meta { gap: 12px; font-size: 12.5px; }
  .sp-mon-state { display: none; }
  .sp-strip {
    gap: 2px;
    height: 42px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
    margin: -10px 0;
  }
  .sp-strip::-webkit-scrollbar { display: none; }
  .sp-strip i { flex: 0 0 5px; }
  .sp-stripfade { display: block; }
  .sp-stripwrap.can-left .sp-stripfade.is-l, .sp-stripwrap.can-right .sp-stripfade.is-r { opacity: 1; }
  .sp-stripfade.is-l { left: 0; background: linear-gradient(90deg, rgba(3, 3, 4, 0.9), transparent); }
  .sp-stripfade.is-r { right: 0; background: linear-gradient(-90deg, rgba(3, 3, 4, 0.9), transparent); }
  .sp--page .sp-overall-stat { display: none; }
  .sp-hrow { grid-template-columns: 24px 1fr auto; padding: 14px 18px; gap: 4px 12px; }
  .sp-hrow .sp-ico { grid-row: 1 / -1; }
  .sp-hdate { grid-column: 2 / -1; }
  .sp-hmain { flex-direction: column; gap: 2px; }
  .sp-inc { padding: 18px; }
  .sp-foot-sep, .sp-foot-sep + span { display: none; }
}

@media (hover: none) {
  .sp-strip i { transition: transform 0.22s ease-out, opacity 0.2s; }
  .sp-strip.hovering i { opacity: 0.35; }
  .sp-strip.hovering i.on { opacity: 1; transform: scale(1.08, 1.28); filter: none; box-shadow: none; }
  .sp-strip:focus-visible { box-shadow: none; }
  .sp-tip { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
