:root {
  color-scheme: light dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f0e5;
  color: #242320;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 28rem),
    linear-gradient(135deg, #f8f5ea, #e8e4d8);
}

a {
  color: inherit;
  font-weight: 700;
}

.shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(100%, 720px);
  border: 1px solid rgba(35, 34, 31, 0.16);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 44px);
  background: rgba(250, 248, 239, 0.86);
  box-shadow:
    0 24px 64px rgba(35, 34, 31, 0.14),
    inset 0 1px rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lede {
  max-width: 58ch;
  margin: 22px 0 0;
  font-size: clamp(1rem, 2.6vw, 1.18rem);
  line-height: 1.65;
  opacity: 0.78;
}

.status-card {
  display: grid;
  gap: 1px;
  margin: 30px 0;
  overflow: hidden;
  border: 1px solid rgba(35, 34, 31, 0.14);
  border-radius: 18px;
  background: rgba(35, 34, 31, 0.12);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.42);
}

.status-label {
  font-weight: 800;
  opacity: 0.68;
}

.status-value {
  font-weight: 800;
  text-align: right;
}

.primary-button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  background: #252420;
  color: #f7f4ea;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.primary-button:not(:disabled):hover {
  transform: translateY(-1px);
  background: #11110f;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.message {
  min-height: 1.6em;
  margin: 18px 0 0;
  font-weight: 700;
  line-height: 1.6;
  opacity: 0.76;
}

.message.error {
  color: #9f1d1d;
  opacity: 1;
}

.help {
  margin-top: 24px;
  border-top: 1px solid rgba(35, 34, 31, 0.14);
  padding-top: 18px;
  line-height: 1.65;
}

.help summary {
  cursor: pointer;
  font-weight: 900;
}

.help ol {
  padding-left: 1.35rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    background: #141413;
    color: #f4f1e8;
  }

  body {
    background:
      radial-gradient(circle at top left, rgba(255, 255, 255, 0.09), transparent 28rem),
      linear-gradient(135deg, #191918, #111110);
  }

  .panel {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(38, 37, 34, 0.88);
    box-shadow:
      0 24px 64px rgba(0, 0, 0, 0.34),
      inset 0 1px rgba(255, 255, 255, 0.08);
  }

  .status-card {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.12);
  }

  .status-row {
    background: rgba(255, 255, 255, 0.06);
  }

  .primary-button {
    background: #f4f1e8;
    color: #151412;
  }

  .primary-button:not(:disabled):hover {
    background: #ffffff;
  }

  .message.error {
    color: #ffb3b3;
  }

  .help {
    border-top-color: rgba(255, 255, 255, 0.14);
  }
}
