:root {
  color-scheme: light dark;
  --background: #f6f8fa; --surface: #fff; --ink: #172b36; --muted: #62727d;
  --line: #dce4e9; --blue: #137bca; --blue-hover: #096ab5; --focus: #20b3ce; --danger: #b13737; --success: #147a5d;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--background); font-size: 14px; line-height: 1.65; }
button, input, select, textarea { font: inherit; }
button, a, summary { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:is(button, a, input, select, textarea, summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
a { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.skip-link { position: fixed; top: 12px; left: 18px; z-index: 5; padding: 10px 16px; background: var(--blue); color: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px max(24px, calc((100vw - 560px) / 2)); background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; text-decoration: none; }
.brand img { display: block; width: 123px; height: 48px; object-fit: contain; }
.logo-dark { display: none !important; }
.page-shell { max-width: 530px; margin: auto; padding: 34px 24px 24px; }
h1, h2, p { overflow-wrap: anywhere; }
h1, h2 { text-wrap: balance; }
h1 { margin: 0; font-size: 25px; font-weight: 650; line-height: 1.4; }
h2 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.5; }
.page-heading > p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.scope-note { margin-top: 16px; color: var(--muted); font-size: 12px; }
.verification-panel { margin-top: 20px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.verification-steps { display: flex; justify-content: space-between; gap: 12px; list-style: none; margin: 0 0 24px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.verification-steps li { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 12px; }
.step-number { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; }
.verification-steps li[aria-current="step"] { color: var(--blue); font-weight: 600; }
.verification-steps li[aria-current="step"] .step-number { border-color: var(--blue); background: var(--blue); color: var(--surface); }
.verification-steps li[data-phase="complete"] .step-number { border-color: var(--blue); color: var(--blue); }
.status-block { margin-bottom: 20px; }
.status-description { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.verification-panel[data-tone="success"] h2 { color: var(--success); }
.verification-panel[data-tone="danger"] h2 { color: var(--danger); }
form label:not(.consent-row), .demo-tools label { display: block; margin: 15px 0 6px; font-size: 13px; }
input:not([type="checkbox"]), select, textarea { display: block; width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
[aria-invalid="true"] { border-color: var(--danger); }
input:read-only { background: var(--background); }
.field-help { margin: 7px 0 12px; color: var(--muted); font-size: 12px; }
.notice-details { margin-top: 16px; }
summary { cursor: pointer; min-height: 44px; padding: 11px 0; color: var(--muted); font-size: 12px; }
.notice-details summary { color: var(--blue); }
.notice-details p { margin: 7px 0; font-size: 12px; color: var(--muted); white-space: pre-line; }
.consent-row { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0 18px; font-size: 12px; }
.consent-row input { flex: 0 0 auto; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--blue); }
.primary-button, .secondary-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 5px; font-size: 14px; font-weight: 600; text-decoration: none; }
.primary-button { width: 100%; background: var(--blue); border: 1px solid var(--blue); color: #fff; }
.primary-button:hover:not(:disabled) { background: var(--blue-hover); border-color: var(--blue-hover); }
.secondary-button { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.secondary-button:hover:not(:disabled) { background: var(--background); }
.text-button { min-height: 44px; padding: 7px 0; border: 0; background: transparent; color: var(--blue); font-size: 12px; text-align: left; }
.header-actions .text-button { display: inline-flex; align-items: center; justify-content: center; flex: none; line-height: 1.65; white-space: nowrap; text-decoration: none; }
.text-button:hover:not(:disabled) { text-decoration: underline; }
.danger { color: var(--danger); }
.feedback { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.feedback:empty { margin: 0; }
.feedback.error { color: var(--danger); }
.secondary-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
.other-methods { margin-top: 12px; }
.demo-tools { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); }
.demo-tools p { margin: 6px 0; color: var(--muted); font-size: 12px; }
.page-footer { display: flex; justify-content: flex-end; padding-top: 8px; }
dialog { width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overscroll-behavior: contain; }
dialog::backdrop { background: rgb(22 38 48 / 40%); }
dialog p { color: var(--muted); font-size: 13px; }
#qr-dialog { text-align: center; }
#qr-dialog h2 { font-size: 20px; }
#qr-dialog .text-button { display: block; margin: 4px auto 0; }
.qr-panel { display: flex; flex-direction: column; align-items: center; margin: 16px 0; }
.qr-image { display: flex; justify-content: center; align-items: center; width: 218px; height: 218px; padding: 10px; border: 1px solid #dce4e9; border-radius: 6px; background: #fff; color: #172b36; max-width: 100%; }
.qr-image svg { display: block; width: 100%; height: 100%; }
.qr-panel p { margin: 9px 0 0; font-size: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.dialog-actions .primary-button { width: auto; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; --background: #142029; --surface: #1c2b36; --ink: #e4edf3; --muted: #afbfcc; --line: #3b5264; --blue: #7abbff; --blue-hover: #9acbff; --focus: #58d0df; --danger: #ffb0b0; --success: #8dddbb; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
:root[data-theme="dark"] .primary-button { color: #102f48; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --background: #142029; --surface: #1c2b36; --ink: #e4edf3; --muted: #afbfcc; --line: #3b5264; --blue: #7abbff; --blue-hover: #9acbff; --focus: #58d0df; --danger: #ffb0b0; --success: #8dddbb; }
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block !important; }
  :root:not([data-theme="light"]) .primary-button { color: #102f48; }
}
@media (max-width: 480px) {
  .site-header { min-height: 68px; padding: 8px 20px; }
  .page-shell { padding: 26px 20px 20px; }
  .verification-panel { padding: 20px; }
  .verification-steps { gap: 8px; }
  .verification-steps li { gap: 5px; font-size: 11px; }
  h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.method-choice { margin-bottom: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.method-choice > label:first-child { margin-top: 0; }
textarea { resize: vertical; min-height: 88px; }
.materials { min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }
.materials legend { padding: 0; font-size: 14px; font-weight: 600; }
input[type="file"] { font-size: 12px; padding: 8px; overflow: hidden; }
input[type="file"]::file-selector-button { font: inherit; min-height: 32px; margin-right: 8px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--background); color: var(--ink); cursor: pointer; }
.review-note { margin: 16px 0; padding: 14px 16px; border-left: 3px solid var(--blue); background: var(--background); }
.review-note h3 { margin: 0; font-size: 13px; }
.review-note p { margin: 5px 0 0; font-size: 13px; white-space: pre-wrap; }
@media (max-width: 480px) { input:not([type="checkbox"]):not([type="file"]), textarea, select { font-size: 16px; } .header-actions { gap: 8px; } .header-actions .text-button { font-size: 11px; } }
