:root {
  color-scheme: light;
  --bg: #f4f2ed;
  --surface: #fff;
  --surface-2: #faf9f6;
  --ink: #242522;
  --muted: #6e716b;
  --line: #e2dfd7;
  --line-2: #cbc6bb;
  --green: #2e6452;
  --green-soft: #e5f0ea;
  --amber: #8a611a;
  --amber-soft: #f6edd9;
  --red: #9b403b;
  --red-soft: #f8e8e7;
  --blue: #315f82;
  --blue-soft: #e5eef5;
  --radius: 10px;
  font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171917;
  --surface: #202320;
  --surface-2: #262926;
  --ink: #eeede8;
  --muted: #a7aaa3;
  --line: #363a36;
  --line-2: #4a504a;
  --green: #94c7b2;
  --green-soft: #263c33;
  --amber: #dfb96d;
  --amber-soft: #413721;
  --red: #eba09b;
  --red-soft: #462d2c;
  --blue: #94bfdf;
  --blue-soft: #283944;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); line-height: 1.6; }
button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 70%, transparent); outline-offset: 3px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 9px 12px; color: white; background: #242522; border-radius: 5px; }
.skip:focus { top: 16px; }
.header { position: sticky; top: 0; z-index: 20; min-height: 66px; padding: 0 clamp(18px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: color-mix(in srgb, var(--bg) 91%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; color: white; background: #2e6452; border-radius: 6px; font: 700 12px "SF Mono", monospace; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; line-height: 1.2; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.language-picker select { min-height: 40px; padding: 0 30px 0 11px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.server-state { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.server-state i { width: 7px; height: 7px; background: #3d906c; border-radius: 50%; box-shadow: 0 0 0 3px color-mix(in srgb, #3d906c 14%, transparent); }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; }
.icon-button svg { width: 18px; }
main { max-width: 1520px; margin: auto; padding: 0 clamp(18px, 4vw, 56px); }
.intro { padding: 30px 0 42px; display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(38px, 8vw, 120px); align-items: center; border-bottom: 1px solid var(--line); }
.eyebrow, .section-no, .lab-tag { color: var(--green); font: 700 11px "SF Mono", monospace; letter-spacing: .11em; text-transform: uppercase; }
.intro h1 { max-width: 820px; margin: 12px 0 24px; font-family: "Songti SC", "STSong", serif; font-size: clamp(48px, 7.2vw, 98px); line-height: .98; letter-spacing: -.055em; }
.lead { max-width: 700px; margin: 0; color: var(--muted); font-size: clamp(16px, 2vw, 20px); }
.start-card { padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step-kicker { color: var(--amber); font-size: 12px; font-weight: 700; }
.start-card ol { margin: 15px 0 0; padding-left: 20px; color: var(--muted); font-size: 13px; }
.start-card li + li { margin-top: 8px; }
kbd { padding: 2px 6px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; font: 11px "SF Mono", monospace; }
.key-sequence { display: inline-flex; flex-wrap: wrap; gap: 5px; align-items: center; vertical-align: middle; }
.key-sequence kbd { min-height: 24px; display: inline-flex; align-items: center; padding: 2px 7px; background: color-mix(in srgb, var(--surface) 82%, var(--bg)); box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--line-2) 60%, transparent); font-size: 10px; white-space: nowrap; }
.lab-layout { padding: 44px 0 80px; display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 28px; align-items: start; }
.scenario-panel { position: sticky; top: 92px; max-height: calc(100vh - 116px); overflow: hidden; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head { padding: 20px 19px 14px; display: flex; align-items: end; justify-content: space-between; }
.panel-head h2 { display: inline; margin: 0 0 0 9px; font-size: 17px; }
.panel-head > span { color: var(--muted); font-size: 11px; }
.filters { padding: 0 14px 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border-bottom: 1px solid var(--line); }
.filters button { min-height: 38px; padding: 7px 10px; overflow: hidden; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.filters button[aria-pressed="true"] { color: var(--green); background: var(--green-soft); font-weight: 700; }
.scenario-list { overflow-y: auto; padding: 8px; }
.scenario-button { width: 100%; min-height: 60px; padding: 10px; display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: center; border: 0; border-radius: 7px; background: transparent; text-align: left; cursor: pointer; }
.scenario-button:hover { background: var(--surface-2); }
.scenario-button.active { background: var(--green-soft); }
.scenario-button .num { color: var(--muted); font: 10px "SF Mono", monospace; }
.scenario-button strong { display: block; font-size: 13px; line-height: 1.3; }
.scenario-button small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.stage { min-width: 0; }
.stage-head { min-height: 91px; display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.stage-head h2 { margin: 6px 0 4px; font-family: "Songti SC", serif; font-size: clamp(27px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.025em; }
.stage-head p { margin: 0; color: var(--muted); font-size: 13px; }
.lab-tag { display: inline-block; padding: 3px 6px; background: var(--green-soft); border-radius: 3px; }
.reset-button { min-height: 40px; padding: 7px 11px; display: flex; align-items: center; gap: 7px; flex: none; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; font-size: 12px; }
.reset-button svg { width: 15px; }
.browser-frame { margin-top: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; }
.browser-bar { height: 45px; padding: 0 14px; display: grid; grid-template-columns: 65px minmax(100px, 1fr) 34px; gap: 10px; align-items: center; background: #e8e6e1; border-bottom: 1px solid #d7d3ca; color: #535750; }
[data-theme="dark"] .browser-bar { background: #2f332f; border-color: #414641; color: #c1c5bf; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 9px; height: 9px; display: block; background: #a7a59f; border-radius: 50%; }
.address { min-width: 0; height: 27px; padding: 3px 10px; display: flex; align-items: center; gap: 8px; overflow: hidden; background: color-mix(in srgb, var(--surface) 76%, transparent); border-radius: 5px; font: 11px "SF Mono", monospace; white-space: nowrap; text-overflow: ellipsis; }
.lock { color: #4b7867; }
.browser-menu { text-align: right; font-weight: 700; letter-spacing: 2px; }
.demo-app { min-height: 430px; padding: clamp(22px, 4vw, 48px); background: var(--surface-2); }
.product-shell { max-width: 760px; margin: auto; }
.app-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.app-logo { font-weight: 800; letter-spacing: -.03em; }
.app-user { width: 30px; height: 30px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); border-radius: 50%; font-size: 11px; }
.app-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.app-card h3 { margin: 0 0 6px; font-size: 21px; }
.app-card p { margin: 0; color: var(--muted); font-size: 13px; }
.app-card + .app-card { margin-top: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.field { padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; }
.field span { display: block; color: var(--muted); font-size: 10px; }
.field strong { display: block; margin-top: 4px; font-size: 14px; }
.bad-focus:focus { outline: none !important; box-shadow: none !important; }
.primary, .secondary { min-height: 43px; padding: 9px 15px; border-radius: 5px; cursor: pointer; font-weight: 700; }
.primary { color: white; background: #2f3934; border: 1px solid #2f3934; }
.primary:hover { background: #45534c; }
.primary:disabled { opacity: .58; cursor: wait; }
.secondary { background: var(--surface); border: 1px solid var(--line-2); }
.full-width { width: 100%; }
.mobile-flow { max-width: 430px; margin: -10px auto 0; }
.mobile-flow .app-card { border-radius: 14px; }
.screen-card { overflow: hidden; position: relative; }
.screen-topline { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; color: var(--muted); font-size: 11px; }
.screen-topline strong { color: var(--ink); font-family: "SF Mono", monospace; font-size: 10px; }
.quote-hero { min-height: 190px; padding-bottom: 78px; background: color-mix(in srgb, var(--green-soft) 62%, var(--surface)); }
.vehicle-plate { position: absolute; left: 24px; bottom: 24px; min-width: 132px; padding: 8px 13px; color: #111; background: #f7f4df; border: 2px solid #202020; border-radius: 5px; font: 800 16px "SF Mono", monospace; text-align: center; }
.quote-sections { display: grid; gap: 9px; margin: 12px 0; }
.quote-section { padding: 13px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.quote-section span, .amount-due span, .pay-method span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.quote-section strong, .pay-method strong { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; }
.quote-results { margin-top: 10px; }
.result-caption, .risk-caption { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.progress-steps { display: grid; gap: 10px; }
.progress-steps div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; color: var(--muted); }
.progress-steps span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; font: 700 11px "SF Mono", monospace; }
.progress-steps .active span { color: white; background: var(--blue); border-color: var(--blue); }
.progress-steps strong { font-size: 12px; }
.status-note { margin: 10px 0 0; font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif; font-size: 12px; line-height: 1.5; }
.progress-steps, .issue-banner, .insurer-list, .payment-timeline { font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif; }
.issue-banner { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.issue-banner strong { font-size: 13px; }
.issue-banner span { font-size: 12px; line-height: 1.45; }
.issue-banner.warning { color: var(--amber); background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 28%, var(--line)); }
.issue-banner.error { color: var(--red); background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 28%, var(--line)); }
.issue-banner.info { color: var(--blue); background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 28%, var(--line)); }
.insurer-list { display: grid; gap: 9px; margin-top: 12px; }
.insurer-card { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.insurer-card span, .insurer-card small { color: var(--muted); font-size: 10px; }
.insurer-card strong { font-size: 13px; }
.insurer-card em { grid-row: span 2; align-self: center; color: var(--green); font-style: normal; font-weight: 800; }
.insurer-card.best { border-color: color-mix(in srgb, var(--green) 34%, var(--line)); }
.devtools-evidence { display: grid; grid-template-columns: minmax(72px, auto) 1fr; gap: 6px 10px; margin-top: 12px; padding: 10px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); border-radius: 8px; }
.devtools-evidence span { color: var(--muted); font: 10px "SF Mono", monospace; text-transform: uppercase; }
.devtools-evidence code { min-width: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 11px; }
.payment-summary { background: var(--surface); }
.amount-due { margin: 18px 0 10px; padding: 16px; background: #2f3934; color: white; border-radius: 10px; }
.amount-due span { color: rgba(255,255,255,.72); }
.amount-due strong { display: block; margin-top: 4px; font-size: 28px; line-height: 1; }
.pay-method { padding: 13px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; }
.pay-button { margin-top: 12px; min-height: 52px; font-size: 15px; }
.fuse-phone { width: min(100%, 390px); margin: -20px auto 0; overflow: hidden; background: #f7f7f7; border: 1px solid color-mix(in srgb, var(--line-2) 70%, transparent); border-radius: 28px; box-shadow: 0 14px 34px rgba(32, 28, 24, .12); }
[data-theme="dark"] .fuse-phone { background: #181a18; box-shadow: none; }
.phone-status { height: 30px; padding: 8px 18px 0; display: flex; justify-content: space-between; color: #fff; background: #e72f2f; font: 700 10px "SF Mono", monospace; }
.cashier-flow { background: #f4f5f7; }
[data-theme="dark"] .cashier-flow { background: #151716; }
.cashier-header { min-height: 66px; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 8px; padding: 4px 12px 12px; color: #fff; background: #e72f2f; }
.cashier-header button { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24); border-radius: 999px; font: 800 22px/1 "SF Pro Display", sans-serif; cursor: pointer; }
.cashier-header strong { display: block; font-size: 18px; line-height: 1.1; }
.cashier-header span { display: block; margin-top: 4px; color: rgba(255,255,255,.78); font-size: 11px; }
.cashier-body { display: grid; gap: 10px; padding: 12px 14px 16px; }
.cashier-summary { margin-top: -26px; padding: 18px; color: #fff; background: linear-gradient(135deg, #292d2b, #111715); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; box-shadow: 0 10px 20px rgba(22, 18, 15, .16); }
.cashier-summary span { color: rgba(255,255,255,.72); font-size: 11px; font-weight: 700; }
.cashier-summary strong { display: block; margin-top: 6px; font-size: 29px; line-height: 1; letter-spacing: -.03em; }
.cashier-summary small { display: block; margin-top: 8px; color: rgba(255,255,255,.7); font-size: 11px; }
.cashier-card { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.policy-mini { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; margin-top: 12px; padding: 10px; background: var(--surface-2); border-radius: 12px; }
.policy-mini i { width: 44px; height: 44px; display: block; background: linear-gradient(135deg, #e9eef0, #cfd7dc); border: 1px solid var(--line); border-radius: 12px; position: relative; }
.policy-mini i::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 10px; height: 10px; background: #e72f2f; border-radius: 8px 8px 4px 4px; box-shadow: 6px 9px 0 -6px #202420, 24px 9px 0 -6px #202420; }
.policy-mini strong { display: block; font-size: 13px; line-height: 1.25; }
.policy-mini span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.cashier-rows { display: grid; gap: 8px; margin-top: 12px; }
.cashier-rows div, .payment-breakdown div { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.cashier-rows strong, .payment-breakdown strong { color: var(--ink); font-size: 12px; text-align: right; }
.method-option { min-height: 58px; display: grid; grid-template-columns: 18px 38px 1fr auto; align-items: center; gap: 9px; margin-top: 10px; padding: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.method-option.selected { border-color: color-mix(in srgb, #e72f2f 46%, var(--line)); background: color-mix(in srgb, #fff1f1 70%, var(--surface)); }
[data-theme="dark"] .method-option.selected { background: color-mix(in srgb, #4a1e1e 34%, var(--surface)); }
.method-option input { accent-color: #e72f2f; }
.bank-mark { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: #e72f2f; border-radius: 10px; font: 900 12px "SF Mono", monospace; }
.bank-mark.muted { color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.method-option strong { display: block; font-size: 12px; line-height: 1.2; }
.method-option small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.method-option em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 800; }
.payment-breakdown { display: grid; gap: 8px; }
.payment-breakdown .total { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.payment-breakdown .total strong { color: #e72f2f; font-size: 16px; }
.cashier-sticky { position: sticky; bottom: 0; z-index: 2; margin: 0 -14px -16px; padding: 12px 14px 14px; background: color-mix(in srgb, var(--surface) 94%, transparent); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
.cashier-sticky .pay-button { margin-top: 0; }
.fuse-red-top { padding: 8px 18px 22px; color: white; background: #e72f2f; }
.fuse-topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.fuse-topbar strong { font-size: 20px; line-height: 1; letter-spacing: 0; }
.fuse-topbar span { min-height: 24px; padding: 4px 9px; color: #e72f2f; background: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; }
.fuse-balance { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fuse-balance div { padding: 10px 11px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; }
.fuse-balance span { display: block; color: rgba(255,255,255,.74); font-size: 10px; }
.fuse-balance strong { display: block; margin-top: 3px; font-size: 14px; }
.fuse-content { position: relative; margin-top: -12px; padding: 0 14px 16px; }
.quick-menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 10px; padding: 12px 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.quick-menu button { min-height: 58px; display: grid; place-items: center; gap: 5px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.quick-menu i { width: 26px; height: 26px; display: grid; place-items: center; color: #e72f2f; background: #fff1f1; border-radius: 8px; font: 800 11px "SF Mono", monospace; font-style: normal; }
.quick-menu span { color: var(--muted); font-size: 10px; }
.payment-card { padding: 17px; border-radius: 16px !important; }
.payment-card h3 { font-size: 18px; line-height: 1.2; }
.payment-card p { line-height: 1.45; }
.fuse-amount { margin-top: 14px; background: #222f2a; border-radius: 12px; }
.payment-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.payment-detail-grid div { min-width: 0; padding: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; }
.payment-detail-grid span { display: block; color: var(--muted); font-size: 10px; }
.payment-detail-grid strong { display: block; margin-top: 3px; overflow-wrap: anywhere; font-size: 12px; line-height: 1.3; }
.payment-state { margin-top: 10px; padding: 11px 12px; background: var(--blue-soft); border: 1px solid color-mix(in srgb, var(--blue) 24%, var(--line)); border-radius: 10px; color: var(--blue); }
.payment-state span { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.payment-state strong { display: block; margin-top: 3px; font-size: 12px; line-height: 1.42; }
.payment-state.accepted { color: var(--green); background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 28%, var(--line)); }
.payment-state.blocked { color: var(--red); background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 28%, var(--line)); }
.phone-nav { height: 58px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: 0 8px; background: var(--surface); border-top: 1px solid var(--line); }
.phone-nav span { color: var(--muted); font-size: 10px; text-align: center; }
.phone-nav span::before { content: ""; width: 18px; height: 3px; display: block; margin: 0 auto 7px; background: var(--line-2); border-radius: 999px; }
.phone-nav .active { color: #e72f2f; font-weight: 800; }
.phone-nav .active::before { background: #e72f2f; }
.fuse-phone > .status-box { margin: 0; border-radius: 0; border-left: 0; border-top: 1px solid var(--line); font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif; }
.payment-timeline { display: grid; gap: 8px; margin-top: 10px; }
.payment-event { display: grid; grid-template-columns: 48px 1fr; gap: 2px 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.payment-event span { grid-row: span 2; align-self: center; font: 800 12px "SF Mono", monospace; }
.payment-event strong { font-size: 12px; }
.payment-event small { color: var(--muted); font-size: 11px; }
.payment-event.accepted span { color: var(--green); }
.payment-event.blocked span { color: var(--red); }
.compact-cashier { width: min(100%, 360px); }
.compact-cashier .phone-status { display: none; }
.compact-cashier .cashier-header { min-height: 42px; grid-template-columns: 32px 1fr 32px; padding: 6px 10px; }
.compact-cashier .cashier-header button { width: 30px; height: 30px; font-size: 18px; }
.compact-cashier .cashier-header strong { font-size: 16px; }
.compact-cashier .cashier-header span { display: none; }
.compact-cashier .cashier-body { gap: 7px; padding: 8px 10px 10px; }
.compact-cashier .cashier-summary { margin-top: -18px; padding: 12px 14px; border-radius: 14px; box-shadow: none; }
.compact-cashier .cashier-summary span { font-size: 10px; }
.compact-cashier .cashier-summary strong { margin-top: 3px; font-size: 23px; }
.compact-cashier .cashier-summary small { display: none; }
.compact-cashier .cashier-card { padding: 10px; border-radius: 13px; }
.compact-cashier .policy-mini { grid-template-columns: 34px 1fr; gap: 8px; margin-top: 7px; padding: 7px; border-radius: 10px; }
.compact-cashier .policy-mini i { width: 34px; height: 34px; border-radius: 9px; }
.compact-cashier .policy-mini i::after { left: 6px; right: 6px; bottom: 7px; height: 8px; }
.compact-cashier .policy-mini strong { font-size: 12px; }
.compact-cashier .policy-mini span { margin-top: 2px; font-size: 10px; }
.cashier-rows.compact { margin-top: 7px; gap: 4px; }
.compact-cashier .cashier-rows.compact { display: none; }
.cashier-rows.compact div { font-size: 10px; }
.cashier-rows.compact strong { font-size: 11px; }
.compact-cashier .method-option { min-height: 46px; grid-template-columns: 16px 32px 1fr auto; gap: 7px; margin-top: 7px; padding: 7px; border-radius: 10px; }
.compact-cashier .bank-mark { width: 30px; height: 30px; border-radius: 8px; font-size: 10px; }
.compact-cashier .method-option strong { font-size: 11px; }
.compact-cashier .method-option small, .compact-cashier .method-option em { font-size: 9px; }
.compact-cashier .payment-state { margin-top: 0; padding: 8px 10px; border-radius: 10px; }
.compact-cashier .payment-state span { font-size: 9px; }
.compact-cashier .payment-state strong { margin-top: 2px; font-size: 11px; line-height: 1.25; }
.compact-cashier .cashier-sticky { position: static; margin: 0 -10px; padding: 8px 10px 0; background: transparent; border-top: 0; backdrop-filter: none; }
.compact-cashier .pay-button { min-height: 44px; font-size: 13px; }
.compact-cashier .risk-caption { display: none; }
.compact-cashier > .status-box { display: none; }
.payment-timeline.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-top: 0; }
.compact-cashier .payment-event { grid-template-columns: 36px 1fr; gap: 1px 7px; padding: 7px 9px; border-radius: 8px; }
.compact-cashier .payment-event span { font-size: 11px; }
.compact-cashier .payment-event strong { font-size: 11px; }
.compact-cashier .payment-event small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.compact-diagnosis { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.compact-diagnosis strong { display: block; font-size: 11px; line-height: 1.25; }
.compact-diagnosis span { display: block; margin-top: 3px; font-size: 10px; line-height: 1.35; }
.compact-diagnosis code { display: block; margin-top: 5px; overflow-wrap: anywhere; font-size: 10px; }
.compact-diagnosis.info { color: var(--blue); background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 24%, var(--line)); }
.compact-diagnosis.warning { color: var(--amber); background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 24%, var(--line)); }
.compact-diagnosis.error { color: var(--red); background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 24%, var(--line)); }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.status-box { min-height: 48px; margin-top: 16px; padding: 12px 14px; color: var(--muted); background: var(--surface-2); border-left: 3px solid var(--line-2); font: 12px/1.6 "SF Mono", monospace; }
.status-box.loading { color: var(--blue); border-color: var(--blue); background: var(--blue-soft); }
.status-box.error { color: var(--red); border-color: var(--red); background: var(--red-soft); }
.status-box.success { color: var(--green); border-color: var(--green); background: var(--green-soft); }
.spinner { width: 16px; height: 16px; display: inline-block; margin-right: 8px; vertical-align: -3px; border: 2px solid color-mix(in srgb, var(--blue) 22%, transparent); border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.metric { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.metric span { color: var(--muted); font-size: 10px; }
.metric strong { display: block; margin-top: 5px; font-size: 23px; }
.code-preview { margin-top: 18px; padding: 15px; overflow-x: auto; color: #dfe5df; background: #202420; border-radius: 6px; font: 12px/1.7 "SF Mono", monospace; }
.poster { min-height: 240px; display: grid; place-items: center; overflow: hidden; background: #e1e8e3; border: 1px solid var(--line); border-radius: 7px; color: #456054; text-align: center; }
.poster img { width: 100%; height: auto; display: block; }
.overlay-demo { position: relative; min-height: 300px; }
.fake-overlay { position: absolute; inset: 90px 0 0; z-index: 4; background: rgba(255,255,255,.01); border: 1px dashed transparent; }
.memory-bars { height: 110px; margin-top: 20px; display: flex; align-items: end; gap: 8px; }
.memory-bars i { flex: 1; min-height: 8px; background: var(--blue); opacity: .72; transition: height .2s; }
.jank-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; margin-top: 22px; }
.jank-grid i { aspect-ratio: 1; background: var(--green); opacity: .3; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; max-width: 360px; padding: 12px 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 7px; font-size: 12px; }
.demo-app.duplicate-demo {
  min-height: 660px;
  padding: 26px;
}
.demo-app.standard-demo {
  min-height: 620px;
  padding: 28px;
}
.standard-demo .product-shell {
  max-width: 820px;
}
.standard-demo .app-nav {
  margin-bottom: 18px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.standard-demo .app-card {
  padding: 26px;
  border-radius: 16px;
}
.standard-demo .action-card {
  margin-top: 12px;
  padding: 16px;
}
.standard-demo .app-card h3 {
  font-size: 24px;
  line-height: 1.18;
}
.standard-demo .action-card h3 {
  font-size: 18px;
}
.standard-demo .app-card p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
}
.standard-demo .field {
  border-radius: 12px;
}
.standard-demo .field span,
.standard-demo .metric span {
  font-size: 11px;
}
.standard-demo .field strong,
.standard-demo .quote-section strong {
  font-size: 15px;
}
.standard-demo .primary,
.standard-demo .secondary {
  min-height: 48px;
  border-radius: 10px;
  font-size: 14px;
}
.standard-demo .dashboard-grid {
  gap: 12px;
}
.standard-demo .metric {
  border-radius: 12px;
}
.standard-demo .metric strong {
  font-size: 28px;
}
.scene-visual {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.scene-visual::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -58px;
  width: 190px;
  height: 190px;
  background: color-mix(in srgb, var(--green) 9%, transparent);
  border-radius: 50%;
}
.scene-visual-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.scene-kicker {
  color: var(--green);
  font: 800 11px/1.2 "SF Mono", monospace;
  letter-spacing: .12em;
}
.scene-visual h4 {
  margin: 5px 0 4px;
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: -.02em;
}
.scene-visual p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.scene-pill {
  position: relative;
  z-index: 1;
  flex: none;
  padding: 7px 10px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid color-mix(in srgb, var(--green) 16%, var(--line));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.scene-primary {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: 800 18px/1.2 "SF Mono", monospace;
  overflow-wrap: anywhere;
}
.scene-data-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.scene-data-grid div {
  min-width: 0;
  padding: 10px;
  background: color-mix(in srgb, var(--surface-2) 74%, transparent);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.scene-data-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.scene-data-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.3;
}
.scene-note {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  padding: 10px 12px;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid color-mix(in srgb, var(--amber) 16%, var(--line));
  border-left: 4px solid var(--amber);
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.45;
}
.generic-proof-panel {
  max-width: 820px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
  gap: 12px;
  margin: 16px auto 0;
}
.generic-proof-panel .proof-card {
  min-width: 0;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.generic-proof-panel .proof-card > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.generic-proof-panel .proof-card strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.35;
}
.generic-proof-panel .proof-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.generic-proof-panel .status-box {
  min-height: 0;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.generic-proof-panel .response-card.pending {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: color-mix(in srgb, var(--blue) 28%, var(--line));
}
.generic-proof-panel .response-card.accepted {
  color: var(--green);
  background: var(--green-soft);
  border-color: color-mix(in srgb, var(--green) 28%, var(--line));
}
.generic-proof-panel .response-card.blocked {
  color: var(--red);
  background: var(--red-soft);
  border-color: color-mix(in srgb, var(--red) 36%, var(--line));
  box-shadow: inset 4px 0 0 var(--red);
}
.generic-proof-panel .response-card.warning {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: color-mix(in srgb, var(--amber) 28%, var(--line));
}
.duplicate-workbench {
  max-width: 880px;
  display: grid;
  gap: 16px;
  justify-items: center;
  margin: 0 auto;
}
.duplicate-demo .compact-cashier {
  width: min(100%, 370px);
  margin: 0 auto;
  transform: none;
}
.duplicate-demo .compact-cashier .phone-status {
  height: 27px;
  display: flex;
  padding: 7px 18px 0;
  font-size: 10px;
}
.duplicate-demo .compact-cashier .cashier-header {
  min-height: 62px;
  grid-template-columns: 38px 1fr 38px;
  padding: 4px 12px 12px;
}
.duplicate-demo .compact-cashier .cashier-header strong {
  font-size: 18px;
}
.duplicate-demo .compact-cashier .cashier-header span {
  display: block;
  font-size: 11px;
}
.duplicate-demo .compact-cashier .cashier-body {
  gap: 10px;
  padding: 12px 14px 14px;
}
.duplicate-demo .compact-cashier .cashier-summary {
  margin-top: -8px;
  padding: 16px;
}
.duplicate-demo .compact-cashier .cashier-summary span,
.duplicate-demo .screen-topline {
  font-size: 12px;
}
.duplicate-demo .compact-cashier .cashier-summary strong {
  font-size: 29px;
}
.duplicate-demo .compact-cashier .cashier-summary small {
  display: block;
  font-size: 11px;
}
.duplicate-demo .compact-cashier .cashier-card {
  padding: 12px;
}
.duplicate-demo .policy-mini {
  grid-template-columns: 40px 1fr;
  padding: 10px;
}
.duplicate-demo .policy-mini i {
  width: 40px;
  height: 40px;
}
.duplicate-demo .policy-mini strong,
.duplicate-demo .method-option strong {
  font-size: 13px;
}
.duplicate-demo .policy-mini span,
.duplicate-demo .method-option small {
  font-size: 11px;
}
.duplicate-demo .method-option {
  min-height: 58px;
  grid-template-columns: 18px 38px 1fr;
  padding: 10px;
}
.duplicate-demo .bank-mark {
  width: 36px;
  height: 36px;
  font-size: 12px;
}
.duplicate-demo .cashier-sticky {
  position: static;
  margin: 0 -14px -14px;
  padding: 12px 14px 0;
  background: transparent;
  border-top: 0;
  backdrop-filter: none;
}
.duplicate-demo .pay-button {
  min-height: 52px;
  font-size: 15px;
}
.payment-proof-panel {
  width: min(100%, 880px);
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.2fr;
  gap: 10px;
  align-items: stretch;
}
.proof-card,
.payment-proof-panel .debounce-probe div {
  min-width: 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.proof-card span,
.payment-proof-panel .debounce-probe span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.proof-card strong,
.payment-proof-panel .debounce-probe strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}
.proof-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.proof-card code {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 11px;
}
.response-card.pending {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: color-mix(in srgb, var(--blue) 28%, var(--line));
}
.response-card.accepted {
  color: var(--green);
  background: var(--green-soft);
  border-color: color-mix(in srgb, var(--green) 28%, var(--line));
}
.response-card.blocked,
.payment-proof-panel .payment-state.blocked {
  color: var(--red);
  background: var(--red-soft);
  border-color: color-mix(in srgb, var(--red) 42%, var(--line));
}
.payment-proof-panel .payment-state {
  margin: 0;
}
.payment-proof-panel .payment-state span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}
.payment-proof-panel .payment-state strong {
  font-size: 13px;
}
.payment-proof-panel .debounce-probe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.coach-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; margin-top: 14px; }
.coach-grid, .coach-card, .hidden-body { overflow-anchor: none; }
.coach-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.mission-card { grid-row: span 2; }
.coach-card h3 { margin: 8px 0 12px; font-size: 16px; }
.coach-card ul, .coach-card ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; }
.coach-card li + li { margin-top: 7px; }
.disclosure { width: 100%; min-height: 38px; padding: 0; display: flex; justify-content: space-between; align-items: center; border: 0; background: transparent; cursor: pointer; text-align: left; }
.disclosure .section-no { display: block; margin-bottom: 4px; }
.disclosure-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.disclosure-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}
.disclosure:hover .disclosure-icon,
.disclosure[aria-expanded="true"] .disclosure-icon {
  color: var(--green);
  background: var(--green-soft);
  border-color: color-mix(in srgb, var(--green) 28%, var(--line));
}
.disclosure[aria-expanded="true"] .disclosure-icon svg {
  transform: rotate(180deg);
}
.hidden-body { display: none; padding-top: 14px; border-top: 1px solid var(--line); }
.hidden-body.open { display: block; }
.hidden-body p { margin: 0; color: var(--muted); font-size: 13px; }
.evidence { margin-top: 12px; padding: 10px; color: var(--green); background: var(--green-soft); border-radius: 5px; font: 11px/1.5 "SF Mono", monospace; }
.compact-cashier {
  width: min(100%, 370px);
}
.compact-cashier .phone-status {
  height: 24px;
  display: flex;
  padding: 6px 16px 0;
  font-size: 9px;
}
.compact-cashier .cashier-header {
  min-height: 58px;
  grid-template-columns: 34px 1fr 34px;
  padding: 6px 10px 10px;
}
.compact-cashier .cashier-header button {
  width: 30px;
  height: 30px;
}
.compact-cashier .cashier-header span {
  display: block;
  margin-top: 3px;
}
.compact-cashier .cashier-body {
  gap: 9px;
  padding: 10px 11px 12px;
}
.compact-cashier .cashier-summary {
  margin-top: 0;
  padding: 14px 15px;
}
.compact-cashier .cashier-summary small {
  display: block;
}
.compact-cashier .cashier-rows.compact {
  display: none;
}
.compact-cashier .method-option {
  min-height: 54px;
  grid-template-columns: 16px 34px 1fr;
  gap: 8px;
  padding: 9px;
}
.compact-cashier .payment-state {
  padding: 10px 11px;
}
.compact-cashier .payment-state span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}
.payment-state span i {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: currentColor;
  color: var(--surface);
  font-style: normal;
  font-size: 11px;
  line-height: 1;
}
.payment-state.blocked {
  border-color: color-mix(in srgb, var(--red) 50%, var(--line));
  box-shadow: inset 4px 0 0 var(--red);
}
.debounce-probe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.debounce-probe div {
  min-width: 0;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.debounce-probe span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.debounce-probe strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.debounce-probe.failed div:last-child {
  color: var(--red);
  background: var(--red-soft);
  border-color: color-mix(in srgb, var(--red) 30%, var(--line));
}
.compact-cashier .pay-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}
.compact-cashier .pay-button:active {
  transform: translateY(1px) scale(.99);
}
.compact-cashier .pay-button.is-processing {
  filter: saturate(.9);
}
.compact-cashier .pay-button.is-risk {
  background: var(--red);
}
.button-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.payment-timeline.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 0;
}
.compact-cashier .payment-event {
  grid-template-columns: 34px 1fr;
  padding: 7px 8px;
}
.compact-cashier .payment-event strong {
  overflow-wrap: anywhere;
  font-size: 10px;
  line-height: 1.2;
}
.compact-cashier .payment-event small {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.3;
}
footer { min-height: 74px; padding: 0 clamp(18px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }

@media (max-width: 980px) {
  .intro { grid-template-columns: 1fr; padding: 28px 0 38px; }
  .start-card { max-width: 620px; }
  .lab-layout { grid-template-columns: 1fr; }
  .scenario-panel { position: static; max-height: none; }
  .scenario-list { display: grid; grid-template-columns: repeat(2, 1fr); max-height: 320px; }
}
@media (max-width: 650px) {
  .server-state { display: none; }
  .language-picker select { width: 105px; }
  .intro h1 { font-size: 48px; }
  .scenario-list, .coach-grid { grid-template-columns: 1fr; }
  .generic-proof-panel, .payment-proof-panel { grid-template-columns: 1fr; }
  .scene-visual-head { flex-direction: column; gap: 10px; }
  .scene-data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-app.standard-demo { min-height: 560px; padding: 20px 14px; }
  .mission-card { grid-row: auto; }
  .stage-head { min-height: auto; flex-direction: column; }
  .form-row, .dashboard-grid { grid-template-columns: 1fr; }
  .demo-app { min-height: 460px; padding: 20px 14px; }
  .app-nav { margin-bottom: 24px; }
  footer { align-items: flex-start; flex-direction: column; padding-top: 20px; padding-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
