/* Customer portal: the local GPTPlus reference palette, surfaces and two-column flow. */
:root {
  color-scheme: light;
  --page: #f3f6f2; --paper: #fff; --paper-soft: #f8faf8;
  --ink: #15211d; --muted: #65736d; --muted-light: #8d9994;
  --line: #dce5e0; --line-strong: #cbd9d3;
  --primary: #087354; --primary-dark: #075843; --green: #087354;
  --primary-container: #eaf5f0; --on-primary-container: #075843;
  --teal: #28677a; --teal-soft: #edf5f6;
  --error: #b64d4d; --error-container: #fff2f1;
  --success: #087354; --success-container: #eaf5f0;
  --shadow: 0 18px 46px rgba(25,55,44,.09);
  --shadow-soft: 0 10px 30px rgba(25,55,44,.06);
  font-family: Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  font-size: 14px; color: var(--ink); background: var(--page);
}
* { box-sizing: border-box; }
html { min-width: 320px; scrollbar-gutter: stable; scroll-padding-top: 24px; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 4% 0%,rgba(255,255,255,.92),transparent 27rem),linear-gradient(180deg,#f8faf8 0,var(--page) 350px); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
button,input,textarea { font: inherit; }
button,a,input,textarea,summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { color: #8d9994; background: #e1e6e3; border-color: transparent; box-shadow: none; cursor: default; }
[hidden] { display: none!important; }
:focus-visible { outline: 3px solid rgba(8,115,84,.3); outline-offset: 3px; }
::selection { color: var(--primary-dark); background: #cce9dc; }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(26px,3vw,34px); font-weight: 750; line-height: 1.35; letter-spacing: -.04em; }
h1:focus { outline: 0; }
h2 { margin-bottom: 12px; font-size: 23px; font-weight: 700; line-height: 1.4; letter-spacing: -.035em; }
h3 { font-size: 17px; font-weight: 650; }
p { line-height: 1.7; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 50; padding: 16px; border-radius: 12px; background: var(--primary); color: #fff; }
.skip-link:focus { top: 12px; }

/* One shared header and route shell. */
.app-chrome { border-bottom: 1px solid rgba(203,217,211,.75); background: rgba(255,255,255,.75); }
.header-inner,main,footer { width: min(1180px,calc(100% - 40px)); margin: 0 auto; }
.header-main { display: flex; min-height: 104px; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; color: var(--ink); }
.brand-mark,.flow-mark { display: grid; place-items: center; flex: none; background: linear-gradient(145deg,var(--primary),var(--teal)); color: #fff; font-weight: 800; box-shadow: 0 8px 22px rgba(8,115,84,.14); }
.brand-mark { width: 49px; height: 49px; border-radius: 17px; font-size: 15px; }
.brand-copy small { display: block; margin-bottom: 2px; color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.brand-copy strong { display: block; font-size: 26px; font-weight: 750; letter-spacing: -.055em; line-height: 1.2; }
.primary-navigation { display: flex; width: 520px; gap: 6px; padding: 7px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.navigation-item { display: flex; min-width: 0; min-height: 54px; flex: 1; flex-direction: column; justify-content: center; padding: 8px 14px; border: 1px solid transparent; border-radius: 12px; color: var(--muted); transition: background .15s,color .15s,border-color .15s; }
.navigation-item strong { font-size: 13px; font-weight: 650; }
.navigation-item span { margin-top: 3px; color: var(--muted-light); font-size: 10px; }
.navigation-item:hover { background: var(--paper-soft); color: var(--ink); }
.navigation-item.active { border-color: #bddfd1; background: var(--primary-container); color: var(--primary); }
.navigation-item.active span { color: #4d8974; }
.header-caption { display: flex; min-height: 47px; align-items: center; gap: 10px; margin-bottom: 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); font-size: 11.5px; }
.caption-badge { padding: 5px 9px; border-radius: 20px; background: var(--teal-soft); color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.connection { margin-left: auto; font-size: 11px; white-space: nowrap; }
.connection:before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--muted-light); }
.connection.ready:before { background: var(--primary); box-shadow: 0 0 0 3px #eaf5f0; }
main { padding: 32px 0 40px; min-height: calc(100vh - 260px); }
[data-customer-view] { animation: view-in .18s ease-out; }
@keyframes view-in { from { opacity: .6; } to { opacity: 1; } }
.hero-banner { display: grid; min-height: 140px; grid-template-columns: minmax(0,1fr) 320px; gap: 28px; align-items: center; padding: 24px 26px; border-radius: 18px; background: radial-gradient(circle at 100% 0,rgba(255,255,255,.10),transparent 18rem),linear-gradient(105deg,#12332b,#087354 62%,#28677a); box-shadow: 0 16px 40px rgba(19,61,49,.14); color: #fff; }
.hero-label,.progress-kicker { display: block; margin: 0 0 7px; color: #d4e7e0; font-size: 10px; font-weight: 750; letter-spacing: .06em; }
.hero-banner p:not(.hero-label) { max-width: 600px; margin: 8px 0 0; color: #d7e9e3; font-size: 12px; line-height: 1.7; }
.hero-progress,.hero-summary { padding: 17px 18px; border: 1px solid rgba(255,255,255,.20); border-radius: 14px; background: rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.hero-progress strong,.hero-summary strong { display: block; font-size: 14px; line-height: 1.6; }
.hero-summary>span:last-child { display: block; margin-top: 8px; font-size: 11px; color: #e1eee8; }
.hero-progress progress { display: block; height: 6px; margin: 11px 0 0; background: #ffffff38; }
.hero-progress progress::-webkit-progress-bar { background: #ffffff38; }
.hero-progress progress::-webkit-progress-value { background: #f4d281; }
.hero-progress progress::-moz-progress-bar { background: #f4d281; }
.service-note { display: flex; align-items: center; gap: 11px; margin: 16px 0; padding: 14px 16px; border: 1px solid #ebcf8c; border-radius: 14px; background: #fff8e7; color: #8e601d; }
.service-note>span { display: grid; place-items: center; width: 23px; height: 23px; flex: none; border-radius: 7px; background: #f9e9c2; font-weight: 800; }
.service-note p { margin: 0; font-size: 11.5px; }

/* Reference-style left flow card and right form column. */
.redemption-layout,.query-layout,.history-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); align-items: start; gap: 18px; }
.query-layout,.history-layout { margin-top: 24px; }
.main-column { min-width: 0; }
.card,.panel { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.flow-card,.guide-card { position: sticky; top: 18px; padding: 17px; }
.flow-header { display: flex; align-items: center; gap: 12px; padding: 5px 4px 16px; border-bottom: 1px solid var(--line); }
.flow-mark { width: 45px; height: 45px; border-radius: 15px; font-size: 13px; }
.flow-mark svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.flow-header small { display: block; margin-bottom: 3px; color: var(--primary); font-size: 9px; font-weight: 750; letter-spacing: .06em; }
.flow-header h2 { margin: 0; font-size: 20px; }
.current-card { margin: 13px 0; padding: 14px; border: 1px solid #cce4d9; border-radius: 13px; background: linear-gradient(145deg,#f8fbf9,var(--primary-container)); }
.current-card>span { color: var(--muted); font-size: 10px; }
.current-card strong { display: block; margin: 4px 0; font-size: 13px; }
.current-card p { margin: 0; color: var(--primary); font-size: 11px; }
.checkout-steps { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.checkout-steps li { display: flex; min-height: 72px; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.checkout-steps li.current { border-color: #c4dce2; background: linear-gradient(145deg,#fff,var(--teal-soft)); }
.step-number { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; background: #eff4f1; color: var(--muted); font-size: 11px; font-weight: 750; }
.current .step-number { background: var(--teal); color: #fff; }
.complete .step-number { background: var(--primary-container); color: var(--primary); }
.checkout-steps strong { display: block; font-size: 12px; }
.checkout-steps small { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
.flow-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 4px 3px; font-size: 11px; }
.guide-steps { margin: 8px 0 0; padding: 0; list-style: none; }
.guide-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.guide-steps li>span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--teal-soft); color: var(--teal); font-size: 11px; font-weight: 700; flex: none; }
.guide-steps strong { font-size: 12px; }
.guide-steps p { color: var(--muted); font-size: 11px; margin: 5px 0 0; }
.guide-note { margin-top: 16px; padding: 13px; border-radius: 12px; background: var(--primary-container); color: var(--primary); font-size: 11px; line-height: 1.8; }

.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; }
.eyebrow { margin: 0 0 7px; color: var(--primary); font-size: 10px; font-weight: 750; letter-spacing: .05em; }
.hint,.muted { color: var(--muted); font-size: 12px; line-height: 1.8; }
.fine,.small { color: var(--muted); font-size: 11px; line-height: 1.8; }
.centered { text-align: center; margin: 14px 0 0; }
label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 600; }
.input-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.input-label label { margin: 0; }
.input-label>span { font-size: 10px; color: var(--muted-light); }
input:not([type=checkbox]),textarea { width: 100%; padding: 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--ink); outline: none; transition: border-color .15s,box-shadow .15s; }
textarea { display: block; min-height: 170px; resize: vertical; font: 12px/1.8 Consolas,"Microsoft YaHei",monospace; }
input::placeholder,textarea::placeholder { color: #899790; opacity: 1; }
input:not([type=checkbox]):focus,textarea:focus { border-color: #4f9c83; box-shadow: 0 0 0 3px #08735414; }
input:disabled,textarea:disabled { background: var(--paper-soft); color: var(--muted); }
#authorization-code { min-height: 51px; font-size: 14px; }
#code-status { margin: 9px 0 0; font-size: 11px; }
.form-guide { display: flex; align-items: center; gap: 11px; padding: 14px; margin-bottom: 24px; border: 1px solid #d4e5e9; border-radius: 12px; background: linear-gradient(110deg,#f7fafb,var(--teal-soft)); }
.guide-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; flex: none; color: #fff; background: var(--teal); font-size: 10px; font-weight: 800; }
.form-guide strong { font-size: 12px; }
.form-guide p { font-size: 11px; color: var(--muted); margin: 4px 0 0; }
.supported-plans { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 22px 0 25px; color: var(--muted); font-size: 11px; }
.supported-plans>span { margin-right: 4px; }
.supported-plans b { padding: 7px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper-soft); color: var(--ink); font-size: 12px; font-weight: 600; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.privacy-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.privacy-note svg { width: 15px; height: 15px; stroke: var(--primary); stroke-width: 1.8; flex: none; }
.primary,.secondary,.text-button,.button-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 11px 18px; border: 1px solid transparent; border-radius: 11px; font-size: 12px; font-weight: 650; line-height: 1.5; transition: background .15s,box-shadow .15s,border-color .15s; }
.primary { color: #fff; background: var(--primary); box-shadow: 0 7px 16px #08735418; }
.primary:hover:not(:disabled) { background: var(--primary-dark); box-shadow: 0 8px 20px #08735426; }
.primary:active:not(:disabled) { background: #064836; }
.secondary { color: var(--primary); background: #fff; border-color: var(--line); }
.secondary:hover:not(:disabled),.text-button:hover:not(:disabled) { border-color: #bedbcd; background: var(--primary-container); }
.text-button { color: var(--primary); background: transparent; border: 0; padding: 8px 12px; }
.full { width: 100%; }
.form-footer .primary { min-width: 175px; min-height: 46px; }
.pill { display: inline-flex; align-items: center; justify-content: center; padding: 5px 10px; border: 1px solid var(--line); border-radius: 20px; background: #f7f9f7; color: var(--muted); font-size: 10px; line-height: 1.5; white-space: nowrap; }
.pill.success,.pill.complete { color: var(--success); background: var(--success-container); border-color: #cce4d9; }
.pill.running { color: var(--teal); background: var(--teal-soft); border-color: #c4dce2; }
.pill.failed { color: var(--error); background: var(--error-container); border-color: #eed5d3; }
.pill.manual { color: #8e601d; background: #fff8e7; border-color: #ebcf8c; }

.workspace { display: grid; gap: 18px; margin-top: 18px; scroll-margin-top: 24px; }
.account-card.checked #session-form { display: none; }
.confirmation-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; font-size: 13px; }
.identity { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 15px; background: var(--primary-container); color: var(--primary); font-size: 23px; }
.identity strong { display: block; font-size: 18px; line-height: 1.6; overflow-wrap: anywhere; }
.caption { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.facts { margin: 0; }
.facts>div { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 14px 0; font-size: 12px; line-height: 1.8; }
.facts dt { color: var(--muted); flex: none; }
.facts dd { margin: 0; max-width: 70%; text-align: right; overflow-wrap: anywhere; }
.account-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; font-size: 12px; }
.account-privacy { display: flex; align-items: flex-start; gap: 10px; padding-top: 18px; margin-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.account-privacy svg { margin-top: 3px; flex: none; color: var(--primary); }
.account-privacy p { margin: 0; font-size: 11px; }
.help { margin: 16px 0 20px; font-size: 12px; color: var(--muted); }
.help summary { padding: 8px 0; cursor: pointer; }
.help p { margin-bottom: 8px; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
#plans { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.plan-option { display: flex; align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; min-height: 96px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper-soft); }
.plan-info strong { font-size: 17px; font-weight: 650; }
.code-plan-current { border-color: var(--primary); background: var(--primary-container); box-shadow: inset 0 0 0 1px var(--primary); }
.order-summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.order-summary>div>span { display: block; margin-bottom: 6px; font-size: 11px; color: var(--muted); }
.order-summary strong { font-size: 15px; font-weight: 650; }
.consent { display: flex; align-items: flex-start; gap: 11px; margin: 22px 0; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.8; }
.consent input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--primary); flex: none; }
.faq { margin-top: 18px; padding: 22px 26px; border: 1px solid var(--line); border-radius: 18px; background: #ffffffb3; }
.faq h2 { display: flex; align-items: center; gap: 9px; font-size: 14px; margin-bottom: 16px; }
.help-symbol { display: grid; place-items: center; width: 18px; height: 18px; border: 1.4px solid var(--muted); border-radius: 50%; font-size: 11px; color: var(--muted); }
.faq-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 22px; }
.faq details { font-size: 11px; color: var(--muted); }
.faq summary { font-size: 12px; color: var(--ink); font-weight: 550; line-height: 1.7; cursor: pointer; }
.faq p { margin: 12px 0 0; }

/* Progress and private account records. */
.progress-card { margin-bottom: 18px; }
.progress-card p { font-size: 13px; color: var(--muted); }
progress { width: 100%; height: 6px; overflow: hidden; border: 0; border-radius: 20px; background: #e4eee8; accent-color: var(--primary); margin: 10px 0 18px; }
progress::-webkit-progress-bar { background: #e4eee8; }
progress::-webkit-progress-value { background: var(--primary); border-radius: 20px; }
progress::-moz-progress-bar { background: var(--primary); border-radius: 20px; }
.progress-card details { margin: 10px 0 18px; font-size: 12px; }
.progress-card summary { color: var(--primary); cursor: pointer; }
.progress-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.mono { font-family: Consolas,monospace; overflow-wrap: anywhere; }
.progress-meta .mono { min-width: 0; }
.progress-meta .text-button { margin-left: auto; }
.progress-timeline { max-height: 280px; overflow: auto; padding-left: 24px; font-size: 12px; line-height: 1.8; }
.progress-timeline li { margin: 12px 0; }
.progress-timeline time { color: var(--muted); margin-right: 10px; }
.history-card .section-heading { flex-wrap: wrap; margin-bottom: 14px; }
.history-actions { display: flex; gap: 8px; }
.empty { padding: 45px 16px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 21px; color: var(--primary); background: var(--primary-container); font-size: 32px; }
.empty h3 { margin-bottom: 10px; }
.empty p { font-size: 12px; color: var(--muted); }
.empty .button-link { margin-top: 10px; }
.table-wrap { overflow: auto; margin-top: 24px; }
table { border-collapse: collapse; width: 100%; font-size: 12px; white-space: nowrap; }
th { padding: 15px; border-bottom: 1px solid var(--line); background: var(--paper-soft); color: var(--muted); font-weight: 550; text-align: left; }
td { padding: 18px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
td small { display: block; max-width: 190px; margin-top: 7px; font-size: 11px; color: var(--muted); white-space: normal; overflow-wrap: anywhere; }
td .text-button { padding-left: 0; font-size: 11px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; color: var(--muted); font-size: 12px; }
.pagination>div { display: flex; align-items: center; gap: 16px; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 2px 32px; color: var(--muted-light); font-size: 10px; }
.footer-brand { color: var(--primary); font-size: 11px; font-weight: 650; }
.alert,.notice { padding: 16px 20px; margin: 0 0 20px; border: 1px solid #eed5d3; border-radius: 14px; background: var(--error-container); color: var(--error); font-size: 13px; line-height: 1.7; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 14px 22px; border-radius: 12px; background: #173b30; color: #fff; box-shadow: var(--shadow); font-size: 12px; line-height: 1.6; z-index: 30; }
.funding-dialog { width: min(480px,calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px #12332b30; }
.funding-dialog::backdrop { background: #132b2466; backdrop-filter: blur(3px); }
.funding-dialog .section-heading { margin-bottom: 18px; }
.funding-dialog h2 { font-size: 22px; }
.funding-status { padding: 14px 16px; border-radius: 12px; background: var(--success-container); color: var(--success); font-size: 12px; line-height: 1.8; }
.funding-status.blocked { background: var(--error-container); color: var(--error); }
.funding-dialog .facts { padding-bottom: 12px; margin: 10px 0 18px; border-bottom: 1px solid var(--line); }
.funding-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
#funding-account { overflow-wrap: anywhere; }

@media(max-width:1050px) {
  .redemption-layout,.query-layout,.history-layout { grid-template-columns: 254px minmax(0,1fr); }
  .hero-banner { grid-template-columns: minmax(0,1fr) 280px; gap: 20px; }
  .faq-grid { grid-template-columns: 1fr; gap: 16px; }
  .primary-navigation { width: 490px; }
  .connection { font-size: 10px; }
}
@media(max-width:880px) {
  .header-main { gap: 24px; }
  .primary-navigation { width: 440px; }
  .brand-copy strong { font-size: 23px; }
  .brand-copy small { font-size: 8px; }
  .hero-banner { grid-template-columns: minmax(0,1fr) 245px; }
  .redemption-layout,.query-layout,.history-layout { grid-template-columns: 1fr; }
  .flow-card { position: static; padding: 12px; box-shadow: var(--shadow-soft); }
  .flow-card .flow-header,.current-card,.flow-link { display: none; }
  .checkout-steps { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .checkout-steps li { min-height: 70px; gap: 9px; }
  .guide-card { display: none; }
  .faq-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:720px) {
  .header-inner,main,footer { width: calc(100% - 32px); }
  .header-main { flex-wrap: wrap; padding: 20px 0 14px; gap: 18px; }
  .brand-mark { width: 43px; height: 43px; border-radius: 14px; }
  .brand-copy strong { font-size: 23px; }
  .brand-copy small { font-size: 9px; }
  .primary-navigation { width: 100%; padding: 5px; border-radius: 15px; gap: 4px; }
  .navigation-item { min-height: 52px; padding: 8px 10px; border-radius: 10px; }
  .navigation-item strong { font-size: 12px; }
  .navigation-item span { font-size: 9px; }
  .header-caption { min-height: 38px; padding: 9px 11px; margin-bottom: 14px; font-size: 10px; gap: 6px; }
  .caption-badge { display: none; }
  .connection { font-size: 9px; }
  main { padding: 22px 0 28px; }
  .hero-banner { grid-template-columns: 1fr; gap: 18px; padding: 22px; border-radius: 17px; }
  .hero-banner h1 { font-size: 27px; }
  .hero-banner p:not(.hero-label) { font-size: 11px; }
  .hero-progress,.hero-summary { padding: 13px 15px; }
  .hero-progress strong,.hero-summary strong { font-size: 12px; }
  .hero-summary>span:last-child { font-size: 10px; }
  .service-note { padding: 12px; margin: 14px 0; }
  .service-note p { font-size: 10px; }
  .flow-card { padding: 8px; border-radius: 15px; }
  .checkout-steps { gap: 6px; }
  .checkout-steps li { flex-direction: column; justify-content: center; min-height: 76px; gap: 7px; padding: 9px 4px; border-radius: 10px; }
  .step-number { width: 25px; height: 25px; border-radius: 8px; font-size: 10px; }
  .checkout-steps strong { font-size: 10px; }
  .checkout-steps small { display: none; }
  .card,.panel { padding: 22px; border-radius: 18px; }
  .flow-card { padding: 8px; }
  .section-heading { padding-bottom: 16px; margin-bottom: 20px; gap: 12px; }
  h2 { font-size: 21px; }
  .form-guide { padding: 12px; margin-bottom: 20px; }
  .form-guide p { font-size: 10px; }
  .input-label>span { font-size: 9px; }
  input:not([type=checkbox]),textarea { font-size: 16px; }
  textarea { min-height: 190px; }
  #authorization-code { font-size: 16px; }
  .supported-plans { gap: 7px; font-size: 10px; padding: 20px 0; }
  .supported-plans b { font-size: 11px; padding: 6px 10px; }
  .form-footer { align-items: stretch; flex-direction: column; gap: 14px; }
  .form-footer .privacy-note { order: 2; justify-content: center; font-size: 10px; }
  .primary,.secondary,.text-button { min-height: 44px; }
  .form-footer .primary { width: 100%; }
  .faq { padding: 20px 22px; }
  .faq-grid { grid-template-columns: 1fr; gap: 14px; }
  .faq-grid details+details { padding-top: 14px; border-top: 1px solid var(--line); }
  .facts>div { font-size: 11px; gap: 12px; }
  .facts dd { max-width: 68%; }
  .identity { gap: 12px; }
  .identity strong { font-size: 15px; }
  .avatar { width: 40px; height: 40px; border-radius: 12px; }
  .account-actions { flex-wrap: wrap; font-size: 11px; }
  .account-privacy p { font-size: 10px; }
  #plans { gap: 7px; }
  .plan-option { padding: 12px 10px; min-height: 86px; }
  .plan-info strong { font-size: 13px; }
  .plan-option .pill { font-size: 9px; padding: 4px 6px; }
  .consent { font-size: 11px; }
  .history-actions { width: 100%; }
  .history-actions .secondary { flex: 1; padding: 8px 12px; }
  .empty { padding: 30px 0; }
  .empty h3 { font-size: 16px; }
  .empty p { font-size: 11px; }
  .progress-meta .mono { width: 100%; font-size: 11px; }
  .progress-meta .text-button { margin-left: 0; }
  .pagination { flex-wrap: wrap; font-size: 11px; }
  .pagination .secondary { padding: 8px 12px; }
  .funding-dialog { padding: 22px; }
  .funding-actions { gap: 8px; }
  .funding-actions .primary { flex: 1; }
  footer { flex-wrap: wrap; gap: 10px; padding-bottom: 24px; font-size: 9px; }
  footer>a:last-child { display: none; }
  footer>span { max-width: 210px; }
  .toast { bottom: 16px; font-size: 11px; }
}
@media(max-width:370px) {
  .header-inner,main,footer { width: calc(100% - 24px); }
  .header-caption>span:nth-child(2) { max-width: 165px; }
  .navigation-item { padding: 8px; }
  .navigation-item span { font-size: 8px; }
  .hero-banner,.card,.panel { padding: 20px 17px; }
  .flow-card { padding: 7px; }
  .hero-banner h1 { font-size: 25px; }
  .supported-plans { gap: 6px; }
  .supported-plans b { padding: 6px 8px; }
  .plan-option { padding: 10px 8px; }
  .plan-info strong { font-size: 12px; }
}
@media(prefers-reduced-motion:reduce) { *,*:before,*:after { animation: none!important; transition: none!important; scroll-behavior: auto!important; } }
