:root {
  --bg: #ffffff;
  --text: #18181b;
  --muted: #2d4f68;
  --action: #12a7e8;
  --action-hover: #0b8fd8;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0f172a;
  --text: #f8fafc;
  --muted: #cbd5e1;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.page {
  padding: 24px;
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid rgba(45, 79, 104, 0.12);
  border-radius: 12px;
  background: var(--bg);
}

html[data-theme="dark"] .panel {
  border-color: rgba(148, 163, 184, 0.28);
}

.time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #ddf4fc;
  color: #0b8fd8;
}

html[data-theme="dark"] .mark {
  background: rgba(18, 167, 232, 0.16);
  color: #7ed3f3;
}

.label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.to {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.message {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.button {
  min-width: 112px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--action);
  border-radius: 8px;
  background: var(--action);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.button:hover:not(:disabled) {
  border-color: var(--action-hover);
  background: var(--action-hover);
}

.button:focus-visible {
  outline: 2px solid rgba(18, 167, 232, 0.4);
  outline-offset: 2px;
}

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

.mask {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(24, 24, 27, 0.36);
}

.mask[hidden] {
  display: none;
}

.dialog {
  width: min(100%, 320px);
  padding: 24px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  text-align: center;
}

html[data-theme="dark"] .dialog {
  background: #1e293b;
}

.dialog p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.dialog .button {
  margin-top: 20px;
}

@media (max-width: 640px) {
  .page {
    padding: 16px;
  }

  .panel {
    padding: 16px;
  }

  .action {
    align-items: center;
  }
}
