:root {
  color-scheme: light;
  --paper: #f7f5ec;
  --surface: #fffdf7;
  --ink: #203b3a;
  --green: #285e59;
  --muted: #606961;
  --line: #d3d9ce;
  font-family: system-ui, -apple-system, "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; }
.entry { width: min(100%, 480px); margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); }
.identity { display: flex; align-items: center; gap: 13px; margin: 16px 0 44px; font-size: 22px; font-weight: 650; letter-spacing: .04em; }
.seal { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--green); border-radius: 12px 3px 12px 3px; color: var(--green); font-family: "Noto Serif CJK SC", "Songti SC", SimSun, serif; font-size: 24px; font-weight: 400; }
.identity-caption { display: block; font-size: 11px; font-weight: 400; letter-spacing: .15em; margin-top: 2px; color: var(--muted); }
.eyebrow { font-size: 12px; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
h1 { font-family: "Noto Serif CJK SC", "Songti SC", SimSun, serif; font-size: clamp(25px, 6.5vw, 30px); line-height: 1.45; font-weight: 500; margin: 0; }
.intro { font-size: 15px; color: var(--muted); line-height: 1.65; margin: 10px 0 25px; }
form { display: grid; min-width: 0; }
label { margin-bottom: 8px; font-size: 14px; font-weight: 600; }
input:not([type="hidden"]) { width: 100%; min-width: 0; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 17px; margin-bottom: 22px; scroll-margin-block: 24px; }
button, .back { display: flex; justify-content: space-between; align-items: center; min-height: 52px; border: 0; border-radius: 10px; padding: 13px 17px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; background: var(--green); color: #fffdf7; text-decoration: none; }
button:disabled { opacity: .65; cursor: progress; }
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #86b7ad; outline-offset: 3px; }
.hint, details, footer { font-size: 12px; line-height: 1.75; color: var(--muted); }
.hint { margin: 15px 0 23px; }
details { border-top: 1px solid var(--line); padding-top: 18px; }
summary { cursor: pointer; min-height: 32px; }
details p { margin-top: 5px; overflow-wrap: anywhere; }
footer { margin-top: 42px; font-size: 11px; text-align: center; letter-spacing: .02em; }
.notice { font-size: 14px; line-height: 1.6; padding: 12px 14px; border: 1px solid #d2b7a7; border-radius: 8px; color: #773e2c; background: #fbefe4; overflow-wrap: anywhere; }
.notice[hidden] { display: none; }
.account { border-block: 1px solid var(--line); padding: 16px 0; margin: 24px 0; }
.account dt { font-size: 12px; color: var(--muted); }
.account dd { margin: 4px 0 0; font-size: 20px; }
.back { margin-bottom: 14px; }
.secondary { background: transparent; color: var(--green); border: 1px solid var(--line); justify-content: center; }
@media (max-width: 340px) { .entry { padding-inline: 18px; } .identity { margin-bottom: 30px; } }
@media (max-height: 580px) { .identity { margin: 0 0 18px; } .intro { margin-bottom: 16px; } footer { margin-top: 24px; } }
