:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  --page-bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #252525;
  --muted: #6b6b6b;
  --line: #e5e5e2;
  --subtle: #f2f2ef;
  --button: #303030;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; color: var(--ink); background: var(--page-bg); }
[hidden], .hidden { display: none !important; }
.page { width: min(480px, calc(100% - 40px)); margin: 40px auto; }
.page--activation { width: min(600px, calc(100% - 40px)); }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 14px; font-weight: 600; }
.badge { margin-left: auto; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 400; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.eyebrow { margin: 0 0 10px; color: var(--muted); font-size: 10px; letter-spacing: .16em; }
h1 { margin: 0 0 10px; font-size: 27px; font-weight: 600; letter-spacing: -.025em; }
h2 { margin: 20px 0 10px; font-size: 17px; overflow-wrap: anywhere; }
.intro { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.8; }
label { display: block; margin: 20px 0 8px; font-size: 13px; font-weight: 500; }
input, textarea, button { font: inherit; }
input, textarea { width: 100%; min-height: 46px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); font-size: 16px; }
input::placeholder, textarea::placeholder { color: #707070; font-size: 13px; }
input:focus, textarea:focus { outline: 2px solid var(--muted); outline-offset: 2px; }
input:disabled, textarea:disabled { color: var(--muted); background: var(--subtle); }
button { min-height: 46px; padding: 11px 14px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-size: 13px; }
button:focus-visible, summary:focus-visible { outline: 2px solid var(--muted); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .55; }
.primary { width: 100%; margin-top: 24px; color: white; background: var(--button); font-weight: 500; }
.primary:hover:not(:disabled) { background: #171717; }
.secondary { color: var(--ink); border-color: var(--line); background: var(--surface); }
.secondary:hover:not(:disabled) { background: var(--subtle); }
.reset { display: block; min-height: 36px; margin: 8px auto 0; color: var(--muted); background: transparent; font-size: 12px; }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; min-width: 0; }
.code-row button { flex-shrink: 0; min-width: 108px; }
.hint, .footer, .usage { color: var(--muted); font-size: 12px; line-height: 1.8; }
.hint { margin: 7px 0 0; }
.footer { margin: 20px 0 0; text-align: center; }
.usage { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.usage p { margin: 4px 0; }
a { color: inherit; text-underline-offset: 4px; }
.status { margin: 18px 0 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--subtle); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.status[data-state="error"] { color: #93463f; border-color: #eadad6; background: #faf4f2; }
.status[data-state="success"] { color: #486250; border-color: #dce5dc; background: #f3f6f2; }
@media (max-width: 420px) {
  .page, .page--activation { width: calc(100% - 32px); margin: 24px auto; }
  .card { padding: 22px; }
  h1 { font-size: 25px; }
  .code-row button { min-width: 100px; padding-inline: 10px; }
}
