:root {
  color-scheme: light;
  --ink: #172943;
  --muted: #516681;
  --line: #d8e2ee;
  --brand: #1452ba;
  --brand-hover: #103f91;
  --blue-wash: #eff5ff;
  --canvas: #f4f7fb;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { background: white; border-bottom: 1px solid var(--line); }
.header-inner, main { width: min(1120px, calc(100% - 64px)); margin: auto; }
.header-inner { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand strong { font-size: 1.0625rem; }
.brand span { border-left: 1px solid var(--line); padding-left: 12px; color: var(--muted); font-size: .875rem; }
.notice { margin: 24px 0 0; padding: 10px 15px; background: #fff6e2; color: #70490a; font-size: .8125rem; border: 1px solid #eeddb7; border-radius: 6px; }
.intro { padding: 42px 0 32px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: 2.375rem; letter-spacing: -.025em; line-height: 1.2; }
.intro p, .lede { color: var(--muted); line-height: 1.65; margin-bottom: 0; }
.workspace { display: grid; grid-template-columns: 272px minmax(0, 1fr); align-items: start; border: 1px solid var(--line); background: white; border-radius: 14px; overflow: hidden; }
aside { padding: 32px 20px; }
aside h2 { font-size: .875rem; margin: 0 0 18px 12px; color: var(--muted); }
ol { margin: 0; padding: 0; list-style: none; }
li { border-radius: 8px; padding: 14px 12px; display: flex; gap: 12px; align-items: flex-start; }
li > span { flex: 0 0 30px; text-align: center; line-height: 28px; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); font-size: .75rem; font-weight: 650; font-variant-numeric: tabular-nums; }
li strong, li small { display: block; }
li strong { font-size: .9375rem; line-height: 1.45; }
li small { margin-top: 3px; color: var(--muted); font-size: .75rem; }
li[aria-current] { color: var(--brand); background: var(--blue-wash); }
li[aria-current] > span { background: var(--brand); border-color: var(--brand); color: white; }
li.done > span { color: #246451; border-color: #9dc3b7; }
#panels { border-left: 1px solid var(--line); min-height: 446px; }
.panel { padding: 42px 48px; }
.panel h2 { font-size: 1.5rem; margin-bottom: 8px; line-height: 1.35; }
.lede { font-size: .9375rem; }
form { max-width: 590px; display: grid; gap: 20px; margin-top: 28px; }
#login-form, #register-form { max-width: 400px; }
label { display: grid; gap: 8px; font-size: .875rem; font-weight: 650; }
input { min-width: 0; width: 100%; border: 1px solid #b9c8da; color: var(--ink); background: white; border-radius: 7px; min-height: 44px; padding: 10px 12px; font: inherit; font-weight: 400; }
input::placeholder { color: #586c85; }
:focus-visible { outline: 3px solid #6394ea; outline-offset: 3px; }
input[type=file] { font-size: .8125rem; padding: 7px; }
input::file-selector-button { font: inherit; color: var(--brand); background: var(--blue-wash); border: 0; border-radius: 4px; padding: 6px 8px; margin-right: 8px; cursor: pointer; }
button { min-height: 44px; padding: 0 22px; border: 1px solid transparent; border-radius: 7px; color: white; background: var(--brand); font: inherit; font-size: .875rem; font-weight: 650; cursor: pointer; transition: background-color 160ms ease; }
button:hover { background: var(--brand-hover); }
#login-form button[type=submit] { min-width: 128px; }
.secondary, .quiet { color: var(--brand); background: white; border-color: #b9c8da; }
.quiet { border-color: transparent; padding-inline: 10px; }
.secondary:hover, .quiet:hover { background: var(--blue-wash); }
.actions { display: flex; gap: 12px; margin-top: 4px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.commission { max-width: 220px; }
.hint, .error { margin: 0; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.error { color: #a82333; }
.agreement { border: 1px solid var(--line); padding: 18px; background: #f8fafc; border-radius: 8px; }
.agreement h3 { margin-bottom: 14px; font-size: 1rem; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: .875rem; line-height: 1.55; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.check { display: flex; align-items: center; gap: 9px; font-weight: 400; }
.check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand); margin: 0; flex: 0 0 18px; }
.result-icon { display: block; width: 46px; height: 46px; border-radius: 50%; background: #e5f4ee; margin-bottom: 16px; position: relative; }
.result-icon::after { content: ""; position: absolute; top: 13px; left: 17px; width: 9px; height: 16px; border: solid #246451; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.receipt { display: grid; gap: 6px; padding: 16px 0; margin: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.receipt span { color: var(--muted); font-size: .8125rem; }
footer { color: var(--muted); margin: 30px 0; font-size: .8125rem; }
@media (max-width: 760px) {
  .header-inner, main { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; gap: 4px; }
  .brand { gap: 7px; }
  .brand img { width: 28px; height: 28px; }
  .brand strong, .brand span { font-size: .8125rem; }
  .brand span { padding-left: 7px; }
  .intro { padding: 28px 0 20px; }
  h1 { font-size: 1.875rem; }
  .workspace { display: block; }
  aside { padding: 14px 8px; }
  aside h2, li small { display: none; }
  ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
  li { align-items: center; flex-direction: column; padding: 8px 1px; gap: 4px; }
  li > span { flex: auto; width: 28px; line-height: 26px; }
  li strong { font-size: .75rem; }
  #panels { border-left: 0; border-top: 1px solid var(--line); min-height: 0; }
  .panel { padding: 25px 18px 30px; }
  .pair { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
button:disabled { opacity: .62; cursor: wait; }
.consent { display: grid; gap: 8px; font-size: .8125rem; }
.consent a { color: var(--brand); width: fit-content; margin-left: 27px; }
.signing-actions { margin-top: 24px; flex-wrap: wrap; }
#signing-error { margin-top: 14px; }

.auth-actions { flex-wrap: wrap; }
.auth-demo-hint { margin-top: 18px; }

.full-agreement { background: #fff; font-size: .875rem; line-height: 1.75; overflow-wrap: anywhere; }
.full-agreement h2 { font-size: 1.0625rem; margin: 1.5em 0 .55em; }
.full-agreement h2:first-child { margin-top: 0; }
.full-agreement p:first-child { font-weight: 700; font-size: 1.125rem; }
.full-agreement p { margin: .55em 0; }
.full-agreement table { width: 100%; border-collapse: collapse; font-size: .75rem; }
.full-agreement th, .full-agreement td { padding: 5px; border: 1px solid var(--line); vertical-align: top; }
#agreement-consents { display: grid; gap: 14px; }
