:root {
  --bg: #0b0d0e;
  --surface: #111416;
  --surface-raised: #171a1d;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f5f4;
  --muted: #9aa19e;
  --quiet: #707773;
  --on: #62d391;
  --on-soft: rgba(98, 211, 145, 0.13);
  --off: #ff716a;
  --off-soft: rgba(255, 113, 106, 0.13);
  --conflict: #f2c45f;
  --conflict-soft: rgba(242, 196, 95, 0.14);
  --unknown: #9aa19e;
  --unknown-soft: rgba(154, 161, 158, 0.12);
  --state: var(--unknown);
  --state-soft: var(--unknown-soft);
  --radius: 18px;
  --font-sans: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, rgba(255,255,255,0.055), transparent 36rem),
    var(--bg);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
}

body[data-status="on"] { --state: var(--on); --state-soft: var(--on-soft); }
body[data-status="off"] { --state: var(--off); --state-soft: var(--off-soft); }
body[data-status="conflict"] { --state: var(--conflict); --state-soft: var(--conflict-soft); }

button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 14, 0.86);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 11px;
  height: 19px;
  background: var(--text);
  clip-path: polygon(52% 0, 100% 0, 67% 42%, 100% 42%, 37% 100%, 49% 57%, 13% 57%);
}
.brand-divider { color: var(--quiet); }

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--state);
  box-shadow: 0 0 0 4px var(--state-soft);
}

main { padding-block: 44px 64px; }

.status-panel {
  position: relative;
  overflow: hidden;
  padding: 22px 24px 16px;
  border: 1px solid color-mix(in srgb, var(--state) 22%, transparent);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 15%, var(--state-soft), transparent 34%),
    var(--surface);
}

.status-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--state);
}

.eyebrow, .day-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.status-orb {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid color-mix(in srgb, var(--state) 35%, transparent);
  border-radius: 50%;
  background: var(--state-soft);
}
.status-orb span {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--state);
  box-shadow: 0 0 24px color-mix(in srgb, var(--state) 55%, transparent);
}

.status-title {
  margin: 0;
  color: var(--state);
  font-size: clamp(38px, 10vw, 66px);
  font-weight: 580;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.status-description {
  max-width: 640px;
  margin: 10px 0 0 66px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.status-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
}
.status-meta div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}
.status-meta dt { color: var(--quiet); font-size: 12px; }
.status-meta dd { margin: 0; color: var(--text); font-size: 13px; font-weight: 600; text-align: right; }

.data-alert {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(242, 196, 95, 0.28);
  border-radius: 10px;
  background: var(--conflict-soft);
  color: #f8dda0;
  font-size: 13px;
  line-height: 1.5;
}

.schedule-section { margin-top: 50px; }
.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(36px, 7vw, 52px);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.04em;
}

.legend { display: flex; flex-wrap: wrap; gap: 12px 16px; color: var(--muted); font-size: 11px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend-swatch { width: 8px; height: 8px; border-radius: 2px; }
.legend-swatch.is-on { background: var(--on); }
.legend-swatch.is-off { background: var(--off); }
.legend-swatch.is-unknown { background: #555b58; }

.schedule-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.schedule-card {
  min-width: 0;
  min-height: 330px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,0.025), transparent 38%),
    var(--surface);
}
.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.card-heading h3 { margin: 9px 0 0; font-size: clamp(26px, 4vw, 34px); font-weight: 570; letter-spacing: -0.03em; }
.day-summary {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.timeline-host { margin-top: 42px; }
.timeline-track {
  position: relative;
  height: 44px;
  overflow: hidden;
  border-radius: 8px;
  background: #292e2c;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.timeline-segment { position: absolute; inset-block: 0; min-width: 2px; }
.timeline-segment.is-on { background: var(--on); }
.timeline-segment.is-off { background: var(--off); }
.timeline-segment.is-conflict { background: var(--conflict); }
.timeline-segment.is-unknown { background: #555b58; }
.timeline-segment + .timeline-segment { border-left: 3px solid var(--surface); }

.timeline-axis {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 12px;
}
.timeline-axis::before {
  content: "";
  position: absolute;
  top: -57px;
  left: 50%;
  width: 1px;
  height: 44px;
  background: rgba(11,13,14,0.34);
}

.period-list { display: flex; flex-wrap: wrap; gap: 14px 26px; margin: 34px 0 0; padding: 0; list-style: none; }
.period-list li { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-family: var(--font-mono); font-size: 14px; }
.period-list i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.period-list .is-on { color: var(--on); }
.period-list .is-off { color: var(--off); }
.period-list .is-conflict { color: var(--conflict); }
.period-list .is-unknown { color: var(--unknown); }
.period-list .period-time { color: var(--muted); }

.empty-schedule {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}
.timeline-skeleton { height: 18px; border-radius: 5px; background: linear-gradient(90deg, #242826, #303532, #242826); background-size: 200% 100%; animation: loading 1.4s linear infinite; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.018);
}
.notice-symbol {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 13px;
}
.notice h2 { margin: 1px 0 4px; font-size: 13px; font-weight: 650; }
.notice p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; gap: 8px; padding-block: 25px; color: var(--quiet); font-size: 11px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--muted); text-underline-offset: 3px; }
.footer-inner a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--state); outline-offset: 4px; border-radius: 3px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.noscript { position: fixed; inset: auto 16px 16px; padding: 14px; border-radius: 10px; background: var(--off); color: #190403; font-weight: 600; }

@keyframes loading { to { background-position: -200% 0; } }

@media (min-width: 620px) {
  .shell { width: min(100% - 56px, 1120px); }
  main { padding-block: 64px 88px; }
  .status-panel { padding: 26px 40px 18px; }
  .status-description { font-size: 16px; }
  .status-meta { grid-template-columns: 1fr 1fr; }
  .status-meta div { display: block; padding: 12px 20px 2px 0; border-bottom: 0; }
  .status-meta div + div { padding-left: 20px; border-left: 1px solid var(--line); }
  .status-meta dd { margin-top: 7px; text-align: left; }
  .section-heading { flex-direction: row; align-items: end; justify-content: space-between; margin-bottom: 26px; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 860px) {
  .status-line { gap: 22px; }
  .status-orb { width: 56px; height: 56px; }
  .status-description { margin-left: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(255,255,255,0.24); --muted: #bdc4c0; --quiet: #9da4a0; }
}
