:root {
  --bg: #f4f1ea;
  --surface: #fffdf9;
  --ink: #1f2a26;
  --muted: #66716c;
  --line: #ddd8cc;
  --brand: #1d5c4d;
  --brand-ink: #ffffff;
  --danger: #a33a2c;
  --warn-bg: #fbf0d3;
  --warn-ink: #6e5312;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141917;
    --surface: #1d2421;
    --ink: #edf0ee;
    --muted: #a4aeaa;
    --line: #36403c;
    --brand: #6fc2ab;
    --brand-ink: #10231e;
    --danger: #f09a8d;
    --warn-bg: #3b3119;
    --warn-ink: #f0d995;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
[hidden] { display: none !important; }
.shell { width: min(100%, 520px); margin: 0 auto; padding: 24px 16px 48px; }
.demo { margin-bottom: 20px; padding: 10px 14px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; }
.head { margin-bottom: 20px; }
.eyebrow { margin: 0 0 4px; color: var(--brand); font-size: 14px; font-weight: 600; }
h1 { margin: 0; font-size: 28px; line-height: 1.25; overflow-wrap: anywhere; }
h2 { margin: 0 0 8px; font-size: 22px; }
.muted { margin: 8px 0 0; color: var(--muted); }
.card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.facts { margin: 0 0 20px; }
.facts div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
dt { color: var(--muted); font-size: 14px; }
dd { margin: 0; overflow-wrap: anywhere; }
fieldset { margin: 0 0 18px; padding: 0; border: 0; }
legend { margin-bottom: 8px; font-weight: 600; }
.scopes label { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.field { display: block; margin-bottom: 14px; font-weight: 600; }
input:not([type="checkbox"]) {
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.inline { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.check { display: flex; gap: 10px; margin: 16px 0; font-size: 15px; }
.check input { margin-top: 3px; }
a { color: var(--brand); }
.notice { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.hint { margin: -6px 0 14px; color: var(--warn-ink); font-size: 14px; }
.error { margin: 0 0 12px; color: var(--danger); font-weight: 600; }
button, .button {
  display: inline-block;
  width: 100%;
  min-height: 48px;
  padding: 11px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: var(--brand-ink);
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
button:disabled { opacity: .55; cursor: not-allowed; }
.secondary { width: auto; min-width: 112px; min-height: 46px; background: transparent; border: 1px solid var(--brand); color: var(--brand); white-space: nowrap; }
.link { margin-top: 10px; background: transparent; color: var(--muted); font-weight: 500; }
.link.danger { color: var(--danger); }
.result { text-align: center; }
.mark { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 28px; font-weight: 700; }
.result .button { margin-top: 18px; }
.agreement { max-width: 720px; margin: 0 auto; padding: 32px 16px 56px; }
.agreement h1 { margin-bottom: 12px; }
.agreement h2 { margin-top: 28px; font-size: 19px; }
