:root {
  color-scheme: light;
  --background: #f4f9fc;
  --surface: #ffffff;
  --surface-soft: #eaf7fd;
  --surface-strong: #dff3fb;
  --text: #142431;
  --muted: #637083;
  --border: #d3e1eb;
  --border-strong: #b7d7e7;
  --primary: #2ba8e0;
  --primary-action: #087faf;
  --primary-text: #ffffff;
  --success: #087a55;
  --success-soft: #ddf6ea;
  --warning: #a65d00;
  --warning-soft: #fff0cf;
  --info: #087faf;
  --info-soft: #dff3fb;
  --shadow: 0 18px 48px rgba(31, 70, 94, 0.12);
  --header-background: rgba(255, 255, 255, 0.96);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --background: #111923;
  --surface: #182431;
  --surface-soft: #202f3e;
  --surface-strong: #26394a;
  --text: #f4f7fb;
  --muted: #aab7c5;
  --border: #344658;
  --border-strong: #476075;
  --primary: #69d2ff;
  --primary-action: #69d2ff;
  --primary-text: #08131b;
  --success: #6de0b1;
  --success-soft: #173d34;
  --warning: #ffd27a;
  --warning-soft: #44341d;
  --info: #69d2ff;
  --info-soft: #183b4d;
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.3);
  --header-background: rgba(17, 25, 35, 0.96);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --background: #111923;
    --surface: #182431;
    --surface-soft: #202f3e;
    --surface-strong: #26394a;
    --text: #f4f7fb;
    --muted: #aab7c5;
    --border: #344658;
    --border-strong: #476075;
    --primary: #69d2ff;
    --primary-action: #69d2ff;
    --primary-text: #08131b;
    --success: #6de0b1;
    --success-soft: #173d34;
    --warning: #ffd27a;
    --warning-soft: #44341d;
    --info: #69d2ff;
    --info-soft: #183b4d;
    --shadow: 0 18px 52px rgba(0, 0, 0, 0.3);
    --header-background: rgba(17, 25, 35, 0.96);
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

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

button {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-180%);
  border-radius: 6px;
  background: var(--text);
  color: var(--surface);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: var(--header-background);
}

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

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  border-radius: 6px;
}

.brand:focus-visible,
.segmented-control a:focus-visible,
.segmented-control button:focus-visible,
.button:focus-visible,
.social-links a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent);
  outline-offset: 3px;
}

.brand-logo {
  display: block;
  width: 152px;
  height: auto;
}

.brand-logo-dark {
  display: none;
}

html[data-theme="dark"] .brand-logo-light {
  display: none;
}

html[data-theme="dark"] .brand-logo-dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .brand-logo-light {
    display: none;
  }

  html:not([data-theme]) .brand-logo-dark {
    display: block;
  }
}

.preference-controls {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.segmented-control {
  display: inline-flex;
  min-height: 42px;
  overflow: hidden;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.segmented-control a,
.segmented-control button {
  display: inline-flex;
  min-width: 64px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.segmented-control > :last-child {
  border-right: 0;
}

.segmented-control a:hover,
.segmented-control button:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.segmented-control a[aria-current="page"],
.segmented-control button[aria-pressed="true"] {
  background: var(--primary-action);
  color: var(--primary-text);
}

.theme-control button {
  min-width: 62px;
  padding-inline: 10px;
}

.main-content {
  display: grid;
  min-height: calc(100vh - 172px);
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  align-items: center;
  gap: 72px;
  padding-block: 76px;
}

.status-copy {
  min-width: 0;
}

.status-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  margin-bottom: 34px;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 5px var(--warning-soft);
  animation: status-pulse 2.4s ease-in-out infinite;
}

.eyebrow,
.board-label {
  margin: 0 0 12px;
  color: var(--primary-action);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.supporting-note {
  max-width: 650px;
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.target-time {
  display: flex;
  max-width: 520px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0 20px;
  padding: 15px 16px;
  border-left: 4px solid var(--primary-action);
  background: var(--surface-soft);
}

.target-time span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.target-time strong {
  text-align: right;
}

.primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary {
  background: var(--primary-action);
  color: var(--primary-text);
}

.button-primary:hover {
  background: color-mix(in srgb, var(--primary-action) 88%, var(--text));
}

.button-secondary {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--primary);
  background: var(--surface-soft);
}

.status-board {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-board-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.status-board h2 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.board-label {
  margin-bottom: 5px;
}

.live-indicator {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 5px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 11px;
  font-weight: 900;
}

.live-indicator > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.board-summary {
  margin: 22px 0 26px;
  color: var(--muted);
}

.service-list {
  border-top: 1px solid var(--border);
}

.service-row {
  display: grid;
  min-height: 76px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--border);
}

.service-symbol {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.service-symbol-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.service-symbol-success {
  background: var(--success-soft);
  color: var(--success);
}

.service-symbol-info {
  background: var(--info-soft);
  color: var(--info);
}

.service-name {
  min-width: 0;
  font-weight: 800;
}

.service-state {
  max-width: 155px;
  text-align: right;
  font-size: 12px;
}

.service-state-warning {
  color: var(--warning);
}

.service-state-success {
  color: var(--success);
}

.service-state-info {
  color: var(--info);
}

.board-progress {
  height: 8px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-strong);
}

.board-progress span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary-action);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 16px;
}

.social-links > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--primary-action);
}

.social-links a span {
  color: var(--primary-action);
}

@keyframes status-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    padding-block: 16px;
  }

  .preference-controls {
    flex-direction: column;
    align-items: flex-end;
  }

  .main-content {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 48px;
    padding-block: 60px;
  }

  h1 {
    font-size: 44px;
  }

  .status-board {
    width: min(100%, 620px);
  }

  .footer-inner {
    align-items: flex-start;
    padding-block: 24px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 28px, 1160px);
  }

  .header-inner {
    min-height: 0;
    flex-direction: column;
    gap: 14px;
  }

  .brand-logo {
    width: 136px;
  }

  .preference-controls {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .segmented-control {
    min-width: 0;
    min-height: 40px;
  }

  .segmented-control a,
  .segmented-control button,
  .theme-control button {
    min-width: 0;
    padding-inline: 9px;
    font-size: 12px;
  }

  .main-content {
    gap: 38px;
    padding-block: 44px;
  }

  .status-pill {
    margin-bottom: 26px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.12;
  }

  .lead {
    font-size: 17px;
    line-height: 1.58;
  }

  .target-time {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .target-time strong {
    text-align: left;
  }

  .primary-actions,
  .button {
    width: 100%;
  }

  .status-board {
    padding: 20px;
  }

  .service-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding-block: 13px;
  }

  .service-state {
    max-width: none;
    grid-column: 2;
    text-align: left;
  }

  .footer-inner {
    flex-direction: column;
  }

  .social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 390px) {
  .preference-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented-control {
    width: 100%;
  }

  .segmented-control a,
  .segmented-control button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .status-dot {
    animation: none;
  }

  .button {
    transition: none;
  }
}
