:root {
  color: #222;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --blue: #0068ed;
  --gray: #666;
  --line: #f2f2f2;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
h1, h2, h3, p, ol { margin: 0; }
button, input, textarea, select { color: inherit; font: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid #004aa8; outline-offset: 3px; }
textarea { resize: none; }
a { color: var(--blue); }

.mobile-page { max-width: 480px; min-height: 100svh; margin: auto; background: #fff; }
.topbar { position: sticky; top: 0; z-index: 2; height: 46px; display: grid; place-items: center; background: #fff; }
.topbar.warm { background: #fef0e9; height: 50px; }
.topbar h1 { font-size: 17px; font-weight: 700; line-height: 1.2; }
.top-actions { position: absolute; right: 9px; display: flex; align-items: center; }
.topbar.warm .top-actions { right: 12px; }
.icon-button { width: 42px; height: 44px; display: grid; place-items: center; }
.back-button { position: absolute; left: 3px; }
.back-button:disabled { opacity: 1; cursor: default; }
.chevron { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-right: 1.45px solid currentColor; border-top: 1.45px solid currentColor; transform: rotate(45deg); }
.back-button .chevron { width: 10px; height: 10px; border-width: 1.8px; transform: rotate(-135deg); }
.headset { position: relative; width: 21px; height: 19px; margin-top: -3px; border: 2px solid currentColor; border-bottom-color: transparent; border-radius: 50%; }
.headset::before, .headset::after { content: ""; position: absolute; top: 7px; width: 6px; height: 8px; border: 2px solid currentColor; border-radius: 5px; background: #fff; }
.warm .headset::before, .warm .headset::after { background: #fef0e9; }
.headset::before { left: -3px; }
.headset::after { right: -3px; }
.headset i { position: absolute; right: 0; top: 12px; width: 10px; height: 7px; border-bottom: 2px solid currentColor; border-right: 2px solid currentColor; border-radius: 0 0 7px 0; }
.headset i::after { content: ""; position: absolute; bottom: -3px; left: -1px; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.share-icon { position: relative; width: 23px; height: 24px; }
.share-icon::before, .share-icon::after { content: ""; position: absolute; left: 5px; top: 11px; width: 14px; height: 2px; background: currentColor; transform: rotate(-30deg); transform-origin: left; }
.share-icon::after { transform: rotate(29deg); }
.share-icon i { position: absolute; z-index: 1; width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 50%; background: #fef0e9; }
.share-icon i:first-child { left: 0; top: 8px; }
.share-icon i:nth-child(2) { right: 1px; top: 0; }
.share-icon i:last-child { right: 1px; bottom: 0; }

.home { padding: 0 16px 5px; background: linear-gradient(#fef0e9 0, #fcf7f5 166px, #fff 300px); }
.hero { position: relative; display: flex; align-items: flex-start; min-height: 104px; padding: 9px 0 18px 20px; }
.hero-copy { position: relative; z-index: 1; }
.hero h2 { color: #f54b28; background: linear-gradient(#fc552e 30%, #ef300b 56%, #ff8c65 77%, #f6401a 96%); background-clip: text; -webkit-text-fill-color: transparent; font-size: clamp(18px, 5.85vw, 24px); line-height: 1.25; font-weight: 900; letter-spacing: .3px; white-space: nowrap; }
.hero-art { position: absolute; top: 6px; right: 22px; width: clamp(73px, 27vw, 112px); height: 84px; object-fit: contain; }
.hero-link { display: flex; width: max-content; align-items: center; justify-content: center; gap: 10px; margin-top: 13px; padding: 0 14px; height: 32px; border-radius: 20px; color: var(--blue); background: #fff; font-size: 15px; box-shadow: 0 3px 5px #f9d7cd9c; white-space: nowrap; }
.slender-arrow { position: relative; display: inline-block; width: 13px; height: 1px; border-radius: 4px; background: currentColor; margin-top: 5px; }
.slender-arrow::after { content: ""; position: absolute; right: 0; bottom: 0; width: 6px; height: 1px; border-radius: inherit; background: currentColor; transform: rotate(48deg); transform-origin: right; }
.offer { padding: 32px 16px; text-align: center; border-radius: 8px; background: #fff; box-shadow: 0 3px 15px #31221715; }
.offer-label, .offer-note { font-size: 14px; line-height: 20px; color: var(--gray); }
.amount { margin-top: 11px; font-size: clamp(27px, 9vw, 37px); line-height: 49px; font-weight: 750; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.rate { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 5px; font-size: clamp(12px, 3.95vw, 16px); line-height: 23px; font-weight: 700; white-space: nowrap; }
.info-button { height: 18px; width: 18px; border-radius: 50%; border: 1.2px solid #666; color: #666; font: italic bold 14px/15px Georgia, serif; }
.offer-note { margin-top: 9px; font-size: clamp(11px, 3.45vw, 14px); }
.primary { display: inline-grid; place-items: center; min-height: 44px; padding: 10px 16px; background: var(--blue); border-radius: 4px; color: #fff; font-size: 16px; font-weight: 700; text-align: center; text-decoration: none; line-height: 1.2; }
.offer .primary { margin-top: 16px; width: 100%; }
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.benefits article, .steps { border-radius: 8px; background: #f8f8f8; }
.benefits article { min-height: 134px; padding: 20px 2px 14px; text-align: center; }
.benefit-icon { position: relative; display: block; width: 32px; height: 32px; margin: 0 auto 6px; border-radius: 50%; background: linear-gradient(135deg, #fff3e1, #ffe0ca); }
.benefit-icon i, .benefit-icon i::before, .benefit-icon i::after { display: block; position: absolute; content: ""; }
.rocket i { left: 13px; top: 6px; width: 7px; height: 14px; border-radius: 55% 55% 35% 35%; background: radial-gradient(circle at 50% 43%, #ff9261 1px, transparent 2px), linear-gradient(135deg, #fff9dd, #ffab68); box-shadow: -3px 5px 0 -1px #ff792c, 3px 5px 0 -1px #ff792c; }
.rocket i::after { left: 2px; top: 14px; width: 3px; height: 6px; border-radius: 70% 70% 100% 100%; background: #ff7b39; }
.clock i { left: 8px; top: 9px; width: 16px; height: 16px; background: linear-gradient(140deg, #ffe8c9, #ffb276); border-radius: 50%; box-shadow: -7px -6px 0 -5px #ff7629, 7px -6px 0 -5px #ff7629; }
.clock i::after { width: 7px; height: 7px; top: 3px; left: 7px; border-left: 1.5px solid #fff6e2; border-bottom: 1.5px solid #fff6e2; border-radius: 1px; transform: skewY(27deg); }
.blocks i { left: 10px; top: 11px; width: 11px; height: 11px; background: linear-gradient(145deg, #ffe8c6, #ffc58d); border-radius: 50%; }
.blocks i::before { top: -5px; left: 4px; border: 2.5px solid transparent; border-bottom: 5px solid #ff7b2c; transform: translateY(-2px); }
.blocks i::after { right: -3px; bottom: -2px; width: 6px; height: 6px; background: #ff812f; box-shadow: -10px 1px 0 -1px #ff8153; }
.benefits h3 { font-size: clamp(12px, 3.4vw, 14px); line-height: 19px; font-weight: 700; }
.benefits p { margin-top: 6px; color: var(--gray); font-size: clamp(9px, 3vw, 12px); line-height: 16px; }
.steps { padding: 20px 16px 16px; }
.steps h2 { margin-bottom: 12px; font-size: 18px; line-height: 24px; }
.steps ol { list-style: none; padding: 0; }
.steps li { position: relative; padding: 0 0 27px 38px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; top: 3px; left: 2px; width: 12px; height: 12px; border: 2px solid #ffa08e; border-radius: 50%; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 7px; bottom: 5px; width: 2px; background: #ffd0c8; border-radius: 2px; }
.steps h3 { font-size: 14px; line-height: 18px; font-weight: 400; }
.steps p { margin-top: 5px; color: var(--gray); font-size: 12px; line-height: 16px; }

.form-background { background: #f2f2f2; }
.application { min-height: calc(100svh - 46px); background: #f2f2f2; padding: 0 8px 40px; }
.form-card { border-radius: 4px; background: #fff; }
.personal { overflow: hidden; }
.form-row { min-height: 53px; display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: center; padding: 9px 16px; font-size: 16px; }
.personal .form-row { border-top: 1px solid #f2f2f2; }
.form-row > label, .form-row > strong { font-weight: 700; line-height: 1.2; }
.form-row input, .form-row textarea { width: 100%; border: 0; outline-offset: 3px; padding: 0; background: transparent; }
.form-row input::placeholder, .form-row textarea::placeholder { color: #bcbcbc; opacity: 1; }
.form-row input { min-height: 34px; }
.row-choice { display: flex; justify-content: flex-end; align-items: center; text-align: right; min-height: 34px; gap: 8px; line-height: 1.25; }
.row-choice span:first-child { overflow-wrap: anywhere; }
.choice-placeholder { color: var(--gray); }
.address-row { min-height: 128px; align-items: start; padding-top: 16px; grid-template-rows: 1fr auto; }
.address-row textarea { min-height: 64px; line-height: 1.4; }
.counter { grid-column: 1; font-size: 14px; color: var(--gray); }
.identity-panel { padding: 14px 16px 12px; }
.identity-panel h2 { font-size: 16px; margin-bottom: 9px; }
.identity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.identity-choice { position: relative; }
.identity-tile { min-height: 74px; position: relative; display: grid; align-content: center; justify-items: center; gap: 5px; border: 1px dashed #b8c5d8; border-radius: 5px; background: #f5f8fc; color: #596d88; overflow: hidden; cursor: pointer; }
.id-label { font-size: 12px; }
.id-symbol { position: relative; width: 24px; height: 15px; border: 1px solid currentColor; border-radius: 2px; }
.id-symbol::before { position: absolute; left: 4px; top: 3px; width: 6px; height: 6px; background: currentColor; border-radius: 50%; content: ""; }
.id-back-symbol::before { border-radius: 1px; }
.id-symbol::after { position: absolute; left: 12px; top: 4px; width: 7px; height: 1px; background: currentColor; box-shadow: 0 3px currentColor, 0 6px currentColor; content: ""; }
.id-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #f5f8fc; }
.file-input { position: absolute; width: 1px; height: 1px; left: 0; top: 0; opacity: 0; }
.identity-choice:focus-within .identity-tile { outline: 2px solid var(--blue); outline-offset: 2px; }
.remove-file { margin-top: 4px; font-size: 12px; min-height: 25px; }
.photo-note { color: var(--gray); font-size: 12px; margin-top: 7px; }
.statement { margin-top: 20px; }
.statement p { padding: 0 8px; font-size: 14px; color: var(--gray); line-height: 21px; }
.text-button { display: inline; color: #0067bf; text-align: left; text-decoration: none; }
.statement textarea { display: block; width: 100%; margin-top: 9px; border: 0; min-height: 121px; padding: 16px; line-height: 1.45; }
.statement textarea::placeholder { color: #aaa; }
.form-heading { margin: 18px 16px 10px; font-size: 14px; line-height: 18px; font-weight: 700; }
.marketing-row { margin-top: 8px; }
.application-actions { margin: 38px 8px 0; }
.agreement { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 10px; align-items: start; color: var(--gray); font-size: 14px; line-height: 20px; }
.agreement input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--blue); }
.application-actions .primary { width: 100%; margin-top: 24px; }
.form-error { color: #b42318; margin-top: 8px; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }

.branch-summary { overflow: hidden; }
#branch-details .form-row { border-top: 1px solid var(--line); }
#branch-details .form-row > span { text-align: right; color: var(--gray); line-height: 1.25; overflow-wrap: anywhere; }
.branch-screen, .authorization-screen { min-height: calc(100svh - 46px); background: #f2f2f2; padding: 12px 8px 42px; }
.branch-intro, .authorization-intro { margin: 0 8px 9px; color: var(--gray); font-size: 14px; line-height: 21px; }
.branch-options { overflow: hidden; }
.branch-option { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 11px; align-items: center; min-height: 180px; padding: 13px 12px 20px 16px; cursor: pointer; }
.branch-option + .branch-option { border-top: 1px solid var(--line); }
.branch-option input { width: 20px; height: 20px; accent-color: var(--blue); margin: 0; }
.branch-option strong { font-size: 16px; line-height: 22px; }
.branch-info { display: grid; gap: 8px; margin-top: 9px; border-radius: 4px; padding: 9px 11px; background: #f4f4f4; color: var(--gray); font-size: 14px; line-height: 20px; }
.branch-info > span { display: grid; grid-template-columns: 15px minmax(0, 1fr); gap: 10px; overflow-wrap: anywhere; }
.branch-icon { color: var(--gray); position: relative; text-align: center; width: 15px; line-height: 18px; }
.branch-name-line .branch-icon { font-size: 20px; line-height: 16px; }
.branch-address-line .branch-icon::before { content: ""; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border: 1px solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.branch-address-line .branch-icon::after { content: ""; position: absolute; top: 6px; left: 6px; width: 4px; height: 4px; border-radius: 50%; border: 1px solid currentColor; }
.branch-phone-line { color: var(--blue); }
.branch-screen > .primary { display: grid; margin: 40px 10px 0; width: calc(100% - 20px); }
#branch-error { margin-inline: 10px; }
#branch-error:not([hidden]) + .primary { margin-top: 8px; }

.authorization-intro { margin-bottom: 10px; letter-spacing: .4px; }
.authorization-options { overflow: hidden; }
.authorization-option { display: grid; grid-template-columns: 21px minmax(0, 1fr); align-items: center; gap: 12px; padding: 15px 16px 9px; cursor: pointer; }
.authorization-option + .authorization-option { border-top: 1px solid var(--line); }
.authorization-option strong { display: block; font-size: 16px; line-height: 22px; }
.authorization-copy { display: block; margin-top: 6px; color: var(--gray); font-size: 14px; line-height: 20.5px; }
.authorization-option input { appearance: none; display: grid; place-items: center; width: 20px; height: 20px; margin: 0; border: 1px solid #c5c5c5; border-radius: 2px; background: #fff; cursor: pointer; }
.authorization-option input:checked { border-color: #286beb; background: #286beb; }
.authorization-option input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.authorization-actions { display: grid; row-gap: 11px; margin: 40px 8px 0; }
.authorization-actions .primary { min-height: 45px; background: #286beb; }
#skip-authorization { min-height: 44px; color: #286beb; font-size: 16px; }

.status-view { padding: clamp(70px, 18vh, 150px) 24px 28px; text-align: center; }
.status-view h2 { font-size: 21px; line-height: 1.3; }
.status-view p { margin-top: 9px; color: var(--gray); font-size: 14px; }
.status-view .primary { width: 100%; margin-top: 28px; }
.state-mark { position: relative; display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; margin-bottom: 17px; background: #edf5ff; color: var(--blue); }
.state-mark::after { content: ""; }
.state-success { background: #e7f8eb; color: #1d9a4d; }
.state-success::after { width: 24px; height: 13px; border-left: 3px solid; border-bottom: 3px solid; transform: translateY(-2px) rotate(-45deg); }
.state-qr::after { width: 25px; height: 25px; border: 2px dashed; border-radius: 5px; background: radial-gradient(circle, currentColor 2px, transparent 3px) 1px 1px / 8px 8px; }

dialog { width: min(90%, 340px); border: 0; padding: 20px; border-radius: 10px; color: #222; box-shadow: 0 12px 35px #0002; }
dialog::backdrop { background: #0006; }
dialog h2 { font-size: 18px; }
dialog p, dialog input { margin-top: 12px; }
dialog p { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
dialog input { width: 100%; padding: 8px; border: 1px solid #bbb; border-radius: 4px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.secondary { display: inline-grid; place-items: center; min-height: 36px; border: 1px solid #d0dbeb; padding: 7px 12px; border-radius: 4px; color: #0759ad; font-size: 14px; font-weight: 600; text-decoration: none; }
.dialog-actions .primary { min-height: 36px; font-size: 14px; }

.bottom-sheet { position: fixed; inset: auto 0 0; width: min(100%, 480px); max-width: none; max-height: none; margin: 0 auto; padding: 0; border-radius: 8px 8px 0 0; overflow: hidden; background: #fff; box-shadow: none; }
.bottom-sheet[open] { display: flex; flex-direction: column; }
.bottom-sheet::backdrop { background: rgb(0 0 0 / 72%); }
.sheet-header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; padding-inline: 16px; min-height: 52px; }
.sheet-header h2 { font-size: 18px; }
.region-sheet { height: min(410px, 54svh); }
.region-sheet .sheet-header { min-height: 59px; }
.close-sheet { position: relative; width: 40px; height: 44px; margin-inline-end: -8px; }
.close-sheet::before, .close-sheet::after { content: ""; position: absolute; top: 21px; left: 9px; width: 22px; height: 1.4px; background: #222; transform: rotate(45deg); }
.close-sheet::after { transform: rotate(-45deg); }
.region-levels { display: flex; align-items: stretch; gap: clamp(14px, 7vw, 34px); min-height: 40px; padding-inline: 17px; border-bottom: 1px solid #e1e1e1; overflow-x: auto; scrollbar-width: none; flex: 0 0 auto; }
.region-tab { border-bottom: 1px solid transparent; white-space: nowrap; font-size: 16px; font-weight: 700; }
.region-tab[aria-pressed="true"] { color: #ec2548; border-bottom-color: #ec2548; }
.region-options { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-block: 10px 13px; }
.region-option { display: flex; align-items: center; justify-content: flex-start; gap: 7px; min-height: 43px; width: 100%; padding-inline: 17px; font-size: 14px; text-align: left; }
.region-option[aria-pressed="true"] { color: #ec2548; }
.region-option[aria-pressed="true"]::after { content: ""; display: inline-block; width: 13px; height: 7px; margin-top: -3px; border-left: 2.5px solid; border-bottom: 2.5px solid; transform: rotate(-45deg); }
.picker-status, .retry-region { margin: 0 16px 12px; }
.education-sheet { height: min(354px, 58svh); background: #f8f8f8; }
.education-actions { background: #fff; border-bottom: 1px solid #e4e4e4; }
.education-actions button { min-height: 44px; font-size: 17px; font-weight: 700; }
#confirm-education { color: #1d70cc; }
.education-wheel-frame { --wheel-row: 50px; --wheel-height: min(268px, calc(58svh - 53px)); position: relative; height: var(--wheel-height); }
.education-wheel-frame::after { content: ""; position: absolute; inset: calc(50% - var(--wheel-row) / 2) 0; border-block: 1px solid #e0e0e0; pointer-events: none; }
.education-wheel { height: 100%; padding-block: calc((var(--wheel-height) - var(--wheel-row)) / 2); overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none; }
.education-option { display: block; width: 100%; min-height: var(--wheel-row); text-align: center; scroll-snap-align: center; font-size: 15px; color: #686868; }
.education-option[aria-pressed="true"] { color: #222; font-size: 20px; font-weight: 700; }

.admin-html, .admin-body { background: #f3f6fa; }
.admin-body { min-height: 100vh; min-height: 100dvh; color: #152539; }
.admin-shell { width: min(800px, calc(100% - 28px)); margin: 0 auto; padding: 36px 0 50px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.admin-header h1 { font-size: 23px; }
.admin-actions { display: flex; align-items: center; gap: 7px; }
.admin-panel { margin-bottom: 16px; border: 1px solid #dde5ef; border-radius: 10px; background: #fff; padding: 19px; }
.admin-panel h2 { font-size: 17px; margin-bottom: 12px; }
.admin-label { display: grid; row-gap: 6px; font-size: 14px; }
.admin-label + .admin-label { margin-top: 12px; }
.admin-label input, .admin-label select, #qr-link { width: 100%; min-width: 0; min-height: 38px; padding: 7px 9px; border: 1px solid #cdd8e5; border-radius: 4px; background: #fff; }
.admin-login { max-width: 380px; margin-inline: auto; }
.admin-login .primary { margin-top: 16px; width: 100%; }
.admin-notice { color: #177046; margin-top: 12px; font-size: 14px; line-height: 1.4; }
#password-dialog form { margin-top: 12px; }
#password-dialog input { margin-top: 0; }
.expiry-controls { display: grid; grid-template-columns: minmax(0, 1fr) 82px; gap: 8px; }
.generate-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.generate-form .primary { min-height: 38px; font-size: 14px; }
.admin-hint { color: #5a6a7b; font-size: 13px; margin-top: 7px; }
.admin-list { list-style: none; padding: 0; margin: 0; }
.admin-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid #e9eef5; }
.qr-record time { font-size: 13px; color: #536578; }
.qr-record strong { display: block; font-size: 14px; margin-bottom: 4px; }
.qr-record .expired { color: #a54138; }
.qr-record .valid { color: #177046; }
.admin-list .secondary { flex-shrink: 0; }
#load-more { margin-top: 12px; }
#qr-dialog { text-align: center; }
#qr-canvas { display: block; width: min(100%, 220px); height: auto; margin: 10px auto; image-rendering: pixelated; }
.qr-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
#qr-feedback { min-height: 19px; }

@media (max-width: 345px) {
  .hero { padding-left: 9px; }
  .hero-art { right: 4px; }
  .offer { padding-inline: 9px; }
  .form-row { grid-template-columns: 88px minmax(0, 1fr); padding-inline: 12px; font-size: 14px; }
}
