:root {
  color-scheme: light;
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  background: #edf3f1;
  color: #102d32;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #edf3f1;
}

.topbar {
  width: 100%;
  background: #ffffff;
  border-bottom: 3px solid #d5a227;
}

.topbar-inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: block;
  width: min(300px, 70vw);
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.service-name {
  color: #426065;
  font-size: 15px;
  font-weight: 700;
}

.main-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 56px 0;
}

.status-band {
  padding: 44px 0;
  border-top: 1px solid #b8cac7;
  border-bottom: 1px solid #b8cac7;
}

.eyebrow {
  margin: 0 0 10px;
  color: #087f72;
  font-size: 12px;
  font-weight: 800;
}

h1 {
  margin: 0;
  color: #102d32;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 18px 0 36px;
  color: #52696d;
  font-size: 18px;
  line-height: 1.7;
}

.connection-row {
  width: min(680px, 100%);
  min-height: 88px;
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #c6d5d2;
  border-radius: 6px;
}

.connection-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d5a227;
}

.connection-dot[data-state="ready"] {
  background: #087f72;
}

.connection-dot[data-state="waiting"] {
  background: #b34a3c;
}

.connection-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.connection-row p {
  margin: 0;
  color: #63777a;
  font-size: 14px;
}

.button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #087f72;
  border-radius: 5px;
  background: #087f72;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.button:focus-visible {
  outline: 3px solid #d5a227;
  outline-offset: 3px;
}

.footer {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #52696d;
  font-size: 13px;
  border-top: 1px solid #cfdbd9;
}

@media (max-width: 640px) {
  .topbar-inner,
  .main-shell {
    width: min(100% - 28px, 1120px);
  }

  .topbar-inner {
    min-height: 68px;
  }

  .brand-logo {
    height: 50px;
  }

  .service-name {
    display: none;
  }

  .main-shell {
    padding: 28px 0;
  }

  .status-band {
    padding: 32px 0;
  }

  .lead {
    font-size: 16px;
  }

  .connection-row {
    grid-template-columns: 12px 1fr;
  }

  .button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
