:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --bg: #eff1f5;
  --ink: #191c22;
  --secondary: #515966;
  --muted: #606874;
  --hair: rgba(41,49,66,.13);
  --outline: rgba(41,49,66,.25);
  --surface: rgba(255,255,255,.65);
  --strong-surface: rgba(255,255,255,.9);
  --inner: rgba(252,253,255,.82);
  --panel: linear-gradient(134deg,rgba(255,255,255,.87),rgba(249,250,253,.71) 58%,rgba(243,245,250,.74));
  --rim: rgba(255,255,255,.86);
  --shadow: 0 1px 3px rgba(28,36,58,.035), 0 9px 24px -16px rgba(26,34,56,.12), 0 30px 68px -37px rgba(36,44,66,.20);
  --well: linear-gradient(180deg,rgba(31,39,59,.051),rgba(45,55,78,.022));
  --well-shadow: inset 0 1px 3px rgba(32,39,57,.085),inset 0 0 0 1px rgba(36,43,60,.07),0 1px 0 rgba(255,255,255,.88);
  --button: #24272e;
  --button-ink: #fff;
  --status-bg: rgba(43,110,75,.09);
  --ok: #316547;
  --warn: #875f19;
  --bad: #9e433c;
  --ground: radial-gradient(ellipse at 7% 44%,rgba(196,204,221,.42),transparent 52%),radial-gradient(ellipse at 92% 19%,rgba(255,255,255,.85),transparent 53%),linear-gradient(130deg,#f2f3f6,#eceff4 68%,#e8ebf1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12151b;
  --ink: #f0f1f5;
  --secondary: #c2c6ce;
  --muted: #a5abb7;
  --hair: rgba(213,222,241,.13);
  --outline: rgba(213,222,241,.31);
  --surface: rgba(48,53,65,.61);
  --strong-surface: #272c35;
  --inner: rgba(42,46,56,.83);
  --panel: linear-gradient(132deg,rgba(44,49,61,.86),rgba(32,36,45,.84) 65%,rgba(30,34,43,.89));
  --rim: rgba(226,233,249,.15);
  --shadow: 0 1px 3px #0003,0 23px 50px -26px #000b;
  --well: linear-gradient(180deg,rgba(0,0,0,.30),rgba(0,0,0,.19));
  --well-shadow: inset 0 1px 3px #0005,inset 0 0 0 1px rgba(255,255,255,.09),0 1px 0 rgba(255,255,255,.06);
  --button: #eceef2;
  --button-ink: #171a20;
  --status-bg: rgba(128,206,157,.13);
  --ok: #9ad7aa;
  --warn: #e7c888;
  --bad: #f0a69d;
  --ground: radial-gradient(ellipse at 7% 42%,rgba(73,85,112,.22),transparent 52%),radial-gradient(ellipse at 89% 20%,rgba(68,77,101,.18),transparent 50%),linear-gradient(130deg,#181c23,#14171d 69%,#101318);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; font-family: var(--font); color: var(--ink); background: var(--bg); }
body { min-height: 100vh; min-height: 100svh; margin: 0; display: flex; flex-direction: column; background: var(--ground); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
a, button, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button, summary, select { cursor: pointer; }
button { color: inherit; border: 0; background: none; }
button:disabled { cursor: wait; opacity: .64; }
:focus-visible { outline: 2px solid var(--muted); outline-offset: 4px; }
button, a, summary { touch-action: manipulation; }
.ico { width: 19px; height: 19px; flex: 0 0 auto; display: block; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 8; top: 12px; left: 12px; padding: 8px 14px; background: var(--strong-surface); }
.mast { border-bottom: 1px solid var(--hair); background: color-mix(in srgb,var(--bg) 56%,transparent); }
.mast-inner, .page, .foot { width: min(1152px,calc(100% - 112px)); margin-inline: auto; }
.mast-inner { min-height: 77px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; white-space: nowrap; }
.brand img { width: 35px; height: 35px; border-radius: 10px; }
.brand span { font-size: 1.23rem; font-weight: 720; letter-spacing: -.052em; }
.brand i { width: 1px; height: 16px; background: var(--outline); margin-inline: 2px; }
.brand b { font-size: 1.05rem; font-weight: 520; color: var(--secondary); letter-spacing: -.035em; }
.mast nav { margin-left: auto; display: flex; gap: 5px; padding: 3px; border-radius: 23px; background: color-mix(in srgb,var(--ink) 4.5%,transparent); }
.mast nav a { display: flex; align-items: center; justify-content: center; min-height: 34px; padding: 5px 17px; border-radius: 20px; font-size: .88rem; color: var(--secondary); }
.mast nav a[aria-current="page"] { color: var(--ink); background: var(--strong-surface); box-shadow: 0 1px 4px #151a2514; font-weight: 630; }
.round { height: 39px; width: 39px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--secondary); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.round:hover,.small-button:hover,.secondary:hover { background: var(--strong-surface); }
html[data-theme="light"] .sun, html[data-theme="dark"] .moon { display: none; }
.page { padding: clamp(48px,6.5vh,80px) 0 37px; flex: 1 0 auto; }
.columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.98fr); column-gap: clamp(40px,6vw,96px); align-items: start; }
.identity { min-width: 0; padding-top: 11px; }
.product-label { display: flex; align-items: center; gap: 10px; color: var(--secondary); margin: 0 0 17px; font-size: .89rem; font-weight: 580; letter-spacing: .025em; }
.product-label span { width: 24px; height: 1px; background: var(--secondary); }
h1,h2,h3,p,dl,dd,ol { margin: 0; }
h1 { font-size: clamp(2.65rem,4.3vw,4.05rem); font-weight: 690; letter-spacing: -.035em; line-height: 1.13; }
.lead { margin: 17px 0 13px; font-size: 1.06rem; color: var(--secondary); line-height: 1.8; letter-spacing: .005em; }
selfpay-pass { display: block; min-width: 0; width: 100%; }
.workspace { background: var(--panel); border: 1px solid var(--rim); outline: 1px solid color-mix(in srgb,var(--ink) 4.5%,transparent); box-shadow: var(--shadow); border-radius: 27px; padding: 29px clamp(26px,3.2vw,45px) 34px; backdrop-filter: blur(20px) saturate(105%); min-width: 0; }
.workspace:focus { outline-color: transparent; }
.workspace.is-changing { min-height: 0; overflow: clip; interpolate-size: allow-keywords; }
.workspace.is-changing .pane { pointer-events: none; }
.steps { list-style: none; padding: 0 0 23px; display: grid; grid-template-columns: 1fr 1fr auto; margin: 0 0 28px; border-bottom: 1px solid var(--hair); }
.steps li { display: flex; align-items: center; color: var(--muted); font-weight: 540; gap: 6px; white-space: nowrap; font-size: .88rem; }
.steps li:not(:last-child)::after { content: ""; height: 1px; background: var(--hair); flex: 1; min-width: 6px; margin: 0 9px 0 3px; }
.step-index { display: inline-grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; font: 600 .75rem/1 var(--font); background: color-mix(in srgb,var(--ink) 5%,transparent); }
.steps li[aria-current="step"] { color: var(--ink); font-weight: 680; }
.steps li[aria-current="step"] .step-index { background: var(--button); color: var(--button-ink); }
.steps li.done .step-index { color: var(--ok); background: var(--status-bg); }
.pane { min-width: 0; }
h2 { font-size: clamp(1.48rem,2vw,1.93rem); line-height: 1.28; letter-spacing: -.025em; font-weight: 690; }
h2[tabindex="-1"]:focus { outline: 0; }
.sub { margin-top: 9px; font-size: .94rem; line-height: 1.65; color: var(--muted); }
form { margin-top: 29px; }
label { display: block; color: var(--secondary); font-size: .88rem; font-weight: 610; line-height: 1.5; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 8px; }
.text-action { color: var(--secondary); padding: 3px 0; font-size: .88rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--outline); }
.text-action:hover { color: var(--ink); text-decoration-color: currentColor; }
.well { display: flex; align-items: center; gap: 10px; min-width: 0; background: var(--well); box-shadow: var(--well-shadow); border-radius: 12px; }
.well:focus-within { box-shadow: var(--well-shadow),0 0 0 2px var(--outline); }
.well input,.well textarea { color: var(--ink); min-width: 0; width: 100%; padding: 13px 14px; border: 0; background: transparent; outline: 0; font-size: 1rem; line-height: 1.52; }
.well input::placeholder,.well textarea::placeholder { color: var(--muted); opacity: .9; }
.well textarea { resize: none; }
.with-icon { padding-left: 15px; color: var(--muted); }
.with-icon input { padding-left: 0; font-family: var(--mono), var(--font); }
.with-icon input::placeholder { font: .96rem var(--font); }
.primary,.secondary { display: flex; align-items: center; justify-content: center; min-height: 47px; width: 100%; padding: 10px 18px; border-radius: 12px; font-weight: 635; font-size: .98rem; line-height: 1.5; transition: background .16s, transform .16s; }
.primary { background: var(--button); color: var(--button-ink); box-shadow: inset 0 1px 0 #ffffff1f,0 5px 12px -9px #0d111dcc; }
.primary:hover { background: color-mix(in srgb,var(--button) 90%,var(--button-ink)); }
.primary:active,.secondary:active,.small-button:active { transform: translateY(1px); }
form > .primary,dialog .primary { margin-top: 16px; }
.secondary,.small-button { background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.small-button { font-size: .875rem; font-weight: 620; min-height: 33px; padding: 5px 12px; border-radius: 8px; white-space: nowrap; }
.micro { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 17px; color: var(--muted); font-size: .80rem; line-height: 1.6; }
.micro .ico { width: 14px; height: 14px; }
.align-left { justify-content: flex-start; }
.resume { margin-top: 12px; display: block; margin-inline: auto; }
.message { padding: 9px 12px; margin: 10px 0; border-radius: 9px; font-size: .87rem; line-height: 1.55; color: var(--bad); background: color-mix(in srgb,var(--bad) 8%,transparent); }
.demo-fill { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; margin: 19px 0; background: color-mix(in srgb,var(--ink) 4%,transparent); border-radius: 11px; }
.demo-fill span { color: var(--muted); font-size: .84rem; }
.pane > label,#details-form > label,dialog > label,.pair label { margin: 11px 0 5px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair > div { min-width: 0; }
.consent { display:flex; gap:9px; align-items:flex-start; margin:20px 0 0; font-weight:450; font-size:.82rem; }
.consent input { flex:0 0 16px; width:16px; height:16px; margin:3px 0 0; accent-color:var(--ink); }
.consent span { min-width:0; }
.pair .well input,.pane > .well input,#details-form > .well input { font-family: var(--mono),var(--font); }
.actions { display: grid; grid-template-columns: minmax(70px,.42fr) minmax(110px,1fr); gap: 10px; margin-top: 22px; }
.receipt { margin-top: 22px; }
.receipt > div,.mini-ledger,.balance-heading { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.receipt > div { padding: 13px 0; border-bottom: 1px solid var(--hair); }
.receipt dt,.mini-ledger > span { color: var(--muted); font-size: .90rem; }
.receipt dd { text-align: right; overflow-wrap: anywhere; font-weight: 600; }
.status-symbol { width: 43px; height: 43px; display: grid; place-items: center; background: color-mix(in srgb,var(--ink) 6%,transparent); border-radius: 14px; margin-bottom: 13px; }
.status-symbol[data-status=success],.tag { color: var(--ok); background: var(--status-bg); }
.status-symbol[data-status=failed] { color: var(--bad); background: color-mix(in srgb,var(--bad) 10%,transparent); }
.status-symbol[data-status=review],.status-symbol[data-status=needs_verification] { color: var(--warn); background: color-mix(in srgb,var(--warn) 10%,transparent); }
.progress-box { margin: 22px 0 18px; }
.progress-meta { display: flex; align-items: baseline; justify-content: space-between; font-size: .88rem; color: var(--secondary); }
.progress-meta strong { font: 600 1rem var(--mono); color: var(--ink); }
progress { width: 100%; display: block; appearance: none; border: 0; height: 5px; border-radius: 6px; overflow: hidden; background: var(--hair); margin-top: 9px; color: var(--ink); }
progress::-webkit-progress-bar { background: var(--hair); border-radius: 6px; }
progress::-webkit-progress-value { background: var(--ink); border-radius: 6px; transition: width .45s ease-out; }
progress::-moz-progress-bar { background: var(--ink); }
.timeline { padding: 0; list-style: none; }
.timeline li { display: flex; align-items: center; gap: 11px; min-height: 34px; font-size: .88rem; color: var(--muted); }
.timeline .pin { width: 9px; height: 9px; border: 1px solid var(--outline); border-radius: 50%; }
.timeline .is-done .pin { background: var(--ok); border-color: var(--ok); }
.timeline .is-active { color: var(--ink); font-weight: 640; }
.timeline .is-active .pin { background: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb,var(--ink) 8%,transparent); }
.timeline .mode { margin-left: auto; font-size: .78rem; }
.mini-ledger { margin-top: 15px; padding: 14px 0 0; border-top: 1px solid var(--hair); }
.mini-ledger b { font: 540 .87rem var(--mono); }
#another { margin-top: 18px; }
.order-tools { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; }
.balance-result { border-top: 1px solid var(--hair); margin-top: 20px; padding-top: 17px; }
.tag { font-size: .78rem; border-radius: 5px; padding: 2px 7px; }
.tag[data-tone=muted] { color: var(--secondary); background: var(--hair); }
.balance-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 14px 0; }
.balance-stats > div+div { border-left: 1px solid var(--hair); padding-left: 16px; }
.balance-stats dt { color: var(--muted); font-size: .84rem; }
.balance-stats dd { margin-top: 4px; font-variant-numeric: tabular-nums; font-size: 1.4rem; font-weight: 620; }
.balance-result button + button { margin-left: 12px; }
.help { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(25px,5vw,76px); padding: 22px 0; margin-top: 42px; border-block: 1px solid var(--hair); }
.help details { min-width: 0; }
.help summary { display: flex; gap: 13px; align-items: center; list-style: none; color: var(--secondary); font-size: .91rem; font-weight: 590; min-height: 39px; }
.help summary::-webkit-details-marker { display: none; }
.help-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); flex: 0 0 auto; display: grid; place-items: center; }
.help-icon .ico { width: 16px; height: 16px; }
.caret { width: 15px; height: 15px; margin-left: auto; transition: transform .16s; }
details[open] .caret { transform: rotate(180deg); }
.help details p { font-size: .9rem; line-height: 1.75; color: var(--muted); padding: 7px 10px 2px 47px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); padding: 10px 0 25px; font-size: .81rem; }
.foot > span { font-family: var(--mono); letter-spacing: .015em; }
.foot button { display: flex; align-items: center; gap: 7px; min-height: 36px; font-size: .83rem; }
.preview-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
dialog { color: var(--ink); background: var(--strong-surface); border: 1px solid var(--rim); border-radius: 22px; box-shadow: var(--shadow); width: min(390px,calc(100% - 32px)); max-height: calc(100svh - 36px); padding: 23px; }
dialog::backdrop { background: rgba(14,17,24,.38); backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-head h2 { font-size: 1.25rem; }
.dialog-head .round { width: 32px; height: 32px; }
dialog select { width: 100%; min-height: 43px; appearance: none; border: 1px solid var(--hair); border-radius: 9px; padding: 9px 31px 9px 12px; color: var(--ink); background-color: var(--surface); background-image: linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%); background-position: calc(100% - 17px) 53%,calc(100% - 13px) 53%; background-size: 4px 4px; background-repeat: no-repeat; }
dialog option { color: var(--ink); background: var(--strong-surface); }
@media (min-width: 1200px) {
  .identity { padding-left: 5px; }
  .workspace { margin-top: 9px; }
  body[data-screen="verify"] .workspace,body[data-screen="balance"] .workspace { padding-bottom: 39px; }
}
@media (max-width: 960px) {
  .mast-inner,.page,.foot { width: calc(100% - 64px); }
  .columns { grid-template-columns: minmax(0,.89fr) minmax(0,1fr); gap: 28px; }
  .workspace { padding: 25px 24px 27px; }
  .steps { margin-bottom: 22px; padding-bottom: 19px; }
  .steps li { font-size: .8rem; gap: 4px; }
  .steps li:not(:last-child)::after { margin-right: 5px; }
  .help { margin-top: 30px; }
}
@media (max-width: 740px) {
  .mast-inner,.page,.foot { width: min(570px,calc(100% - 36px)); }
  .mast-inner { min-height: 64px; gap: 10px; }
  .brand { gap: 6px; }
  .brand img { width: 30px; height: 30px; border-radius: 8px; }
  .brand span { font-size: 1.03rem; }
  .brand i { height: 13px; margin-inline: 0; }
  .brand b { font-size: .88rem; }
  .mast nav { padding: 2px; gap: 1px; }
  .mast nav a { font-size: .78rem; min-height: 33px; padding: 4px 9px; }
  .mast .round { width: 34px; height: 34px; }
  .page { padding: 28px 0 18px; }
  .columns { display: flex; flex-direction: column; gap: 0; }
  .identity { display: contents; }
  .product-label { order: 0; font-size: .82rem; margin: 0 0 9px; }
  h1 { order: 1; font-size: clamp(2.1rem,7.3vw,2.68rem); line-height: 1.15; }
  .lead { order: 2; font-size: .94rem; line-height: 1.6; margin: 10px 0 21px; }
  .workspace { order: 3; width: 100%; border-radius: 21px; padding: 22px; }
  selfpay-pass { order: 4; margin: 15px 0 0; }
  body:is([data-screen="details"],[data-screen="confirm"],[data-screen="order"],[data-screen="receipt"]) :is(selfpay-pass,.product-label,.lead) { display: none; }
  body:is([data-screen="details"],[data-screen="confirm"],[data-screen="order"],[data-screen="receipt"]) h1 { font-size: 1.72rem; margin: 0 0 15px; }
  .steps { padding-bottom: 15px; margin-bottom: 20px; }
  .steps li { font-size: .85rem; gap: 5px; }
  form { margin-top: 20px; }
  .help { grid-template-columns: 1fr; gap: 0; margin-top: 19px; padding: 3px 0; }
  .help details+details { border-top: 1px solid var(--hair); }
  .help summary { min-height: 51px; font-size: .88rem; }
  .help-icon { width: 28px; height: 28px; border-radius: 8px; }
  .help details p { padding: 0 4px 12px 41px; }
  .foot { padding-bottom: 13px; }
}
@media (max-width: 389px) {
  .mast-inner,.page,.foot { width: calc(100% - 26px); }
  .mast-inner { gap: 6px; }
  .brand b { display: none; }
  .brand i { display: none; }
  .workspace { padding: 18px; }
  .steps li { font-size: .81rem; }
  .step-index { width: 20px; height: 20px; }
  .demo-fill { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { transition-duration: .001ms !important; animation-duration: .001ms !important; scroll-behavior: auto !important; }
  progress::-webkit-progress-value { transition: none; }
}
