:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --text: #26364b;
  --muted: #7c899a;
  --blue: #35669f;
  --line: #e5ebf2;
  --success: #23977c;
  --error: #c86469;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
a { text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid #86b5ed; outline-offset: 3px; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
.page {
  width: min(100% - 36px, 570px);
  margin: min(12vh, 96px) auto 48px;
}
.intro { text-align: center; margin-bottom: 28px; }
.intro h1 { margin: 0 0 11px; font-size: clamp(23px, 3.6vw, 29px); letter-spacing: -.7px; font-weight: 700; line-height: 1.45; }
.intro p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; }
.status-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 35px rgba(36, 62, 94, .045);
  border-radius: 17px;
  padding: 36px 38px 32px;
  text-align: center;
}
.status-icon {
  margin: 0 auto 18px;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  background: #eef4fc;
  color: var(--blue);
  border-radius: 50%;
}
.status-icon svg { width: 40px; height: 40px; }
.status-icon.is-success { background: #eaf8f3; color: var(--success); }
.status-icon.is-failed { background: #fff0f1; color: var(--error); }
.status-tag { font-size: 12px; font-weight: 600; letter-spacing: .6px; color: #6282a7; }
.status-icon.is-success ~ .status-tag { color: var(--success); }
.status-icon.is-failed ~ .status-tag { color: var(--error); }
.status-card h2 { font-size: 23px; font-weight: 720; letter-spacing: -.6px; margin: 10px 0 7px; line-height: 1.45; }
.status-description { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.65; overflow-wrap: anywhere; min-height: 22px; }
.progress-wrap { margin-top: 28px; }
.progress-track { height: 5px; overflow: hidden; border-radius: 10px; background: #eaf0f7; }
.progress-bar { width: 0%; height: 100%; border-radius: 10px; background: var(--blue); transition: width .24s ease; }
.progress-detail { text-align: right; font-size: 11px; margin: 8px 0 0; color: #98a6b6; }
.result-line {
  margin: 24px 0 0;
  padding: 0;
  color: #75879b;
  font-size: 13px;
  line-height: 1.7;
  min-height: 22px;
}
.result-line.is-success { color: var(--success); }
.countdown { color: #7a8c9f; margin-top: 7px; font-size: 12px; min-height: 19px; }
.actions { display: flex; gap: 12px; margin-top: 24px; }
.button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 9px;
  min-height: 46px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.button-icon { width: 18px; height: 18px; flex-shrink: 0; }
.primary { background: #315f96; color: white; border: 1px solid #315f96; }
.primary:hover { background: #264d7c; }
.secondary { background: white; color: #52718f; border: 1px solid #d6e0ec; }
.secondary:hover { background: #f5f8fc; }
.toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: max(30px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 30px);
  padding: 12px 17px;
  border-radius: 10px;
  background: #26364b;
  color: white;
  box-shadow: 0 8px 25px rgba(28, 42, 60, .2);
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .page { width: min(100% - 32px, 540px); margin-top: min(9vh, 68px); }
  .intro { margin-bottom: 23px; }
  .intro h1 { font-size: clamp(21px, 5.8vw, 25px); }
  .intro p { font-size: 12px; }
  .status-card { border-radius: 15px; padding: 29px 22px 25px; }
  .status-card h2 { font-size: 21px; }
  .status-icon { width: 67px; height: 67px; }
  .status-icon svg { width: 36px; height: 36px; }
  .progress-wrap { margin-top: 24px; }
  .result-line { margin-top: 20px; }
  .button { font-size: 12px; padding: 11px 6px; gap: 6px; }
  .button-icon { width: 16px; height: 16px; }
}
@media (max-width: 340px) {
  .actions { gap: 8px; }
  .status-card { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .progress-bar { transition: none; }
}
