:root {
  --bg: #f6f7f9;
  --fg: #1d2939;
  --muted: #667085;
  --card: #ffffff;
  --line: #e4e7ec;
  --brand: #60a231;
  --brand-dark: #4d8327;
  --brand-soft: #eef6e8;
  --err: #d92d20;
  --err-soft: #fef3f2;
  --disabled: #e4e7ec;
  --disabled-fg: #98a2b3;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --fg: #f2f4f7;
    --muted: #98a2b3;
    --card: #1a1f26;
    --line: #2a313b;
    --brand-soft: rgba(96, 162, 49, .16);
    --err: #f97066;
    --err-soft: rgba(240, 68, 56, .12);
    --disabled: #252b33;
    --disabled-fg: #667085;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}
.wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.head { padding-top: 8vh; }
.brand { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
h1 { margin: 4px 0 2px; font-size: 28px; line-height: 1.2; font-weight: 650; }
.sub { margin: 0; color: var(--muted); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.sub .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--disabled-fg); flex: none; }
.sub .dot.on { background: var(--brand); }
.sub .dot.off { background: var(--err); }
.lead { margin: 0 0 16px; font-size: 16px; }
.big {
  width: 100%;
  min-height: 132px;
  border: 0;
  border-radius: 20px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 21px;
  font-weight: 650;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, transform .1s;
}
.big:active:not(:disabled) { transform: scale(.985); background: var(--brand-dark); }
.big:disabled { background: var(--disabled); color: var(--disabled-fg); cursor: default; }
.big.done { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.big.busy svg { animation: pulse 1s ease-in-out infinite; }
.big svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.big svg .knob { stroke-width: 2.6; }
@keyframes pulse { 50% { opacity: .35; } }
.msg { min-height: 1.5em; margin: 12px 2px 0; font-size: 15px; color: var(--muted); }
.msg.err { color: var(--err); }
.msg.ok { color: var(--brand); }
.steps { margin: 16px 0 0; padding-left: 20px; color: var(--fg); font-size: 15px; }
.steps li + li { margin-top: 8px; }
.link { display: inline-block; margin-top: 16px; color: var(--brand); font-weight: 600; text-decoration: none; }
.foot { margin-top: auto; color: var(--muted); font-size: 13px; }
