/* Public recharge workspace, using the owner's SMS Workbench visual language. */
@font-face { font-family: Harmony; src: url('/static/fonts/HarmonyOS_SansSC_Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: JetBrains; src: url('/static/fonts/JetBrainsMono-Regular.ttf') format('truetype'); font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #08090d;
  --panel: rgba(17,19,27,.91);
  --line: rgba(255,255,255,.1);
  --line-strong: rgba(255,255,255,.18);
  --ink: #f3f5fb;
  --muted: #a4aaba;
  --subtle: #7f8b9f;
  --acid: #c6ff47;
  --cyan: #6de6ff;
  --danger: #ff766e;
  --font-main: Harmony, 'PingFang SC', system-ui, sans-serif;
  --font-mono: JetBrains, ui-monospace, monospace;
  font: 14px/1.6 var(--font-main);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  color: var(--ink);
  background: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; }
body { min-width: 320px; min-height: 100dvh; margin: 0; background: var(--bg); }
body::before { position: fixed; inset: 0; content: ''; opacity: .18; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(#000, transparent 88%); }
body::after { position: fixed; right: -13vw; top: -28vw; width: 54vw; height: 54vw; border-radius: 50%; content: ''; pointer-events: none; background: radial-gradient(circle, rgba(198,255,71,.09), transparent 67%); }
h1, h2, h3, p { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; }
svg { flex: 0 0 auto; width: 17px; height: 17px; stroke-width: 1.7; vertical-align: middle; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
input:focus, textarea:focus { outline: 0; border-color: rgba(198,255,71,.55); box-shadow: 0 0 0 3px rgba(198,255,71,.06); }
.hidden { display: none !important; }
.skip-link { position: fixed; z-index: 500; left: 16px; top: -80px; padding: 10px 16px; border-radius: 8px; color: var(--bg); background: var(--acid); text-decoration: none; }
.skip-link:focus { top: 12px; }
.public-shell { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(1160px,calc(100% - 56px)); min-height: 100dvh; margin: 0 auto; padding: 24px 0; }
.simple-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; min-height: 42px; }
.simple-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; }
.simple-brand-glyph { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: #fff; }
.simple-brand-glyph img { display: block; width: 100%; height: 100%; object-fit: contain; }
.simple-brand-copy { display: grid; gap: 3px; min-width: 0; }
.simple-brand-copy b { font-size: 16px; font-weight: 650; letter-spacing: -.025em; }
.simple-brand-copy small { color: #929eb2; font-size: 12px; }
.public-topbar-actions { display: flex; align-items: center; gap: 16px; }
.public-service-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.public-service-status > svg { width: 14px; height: 14px; color: #8f9caf; }
#healthDot { width: 6px; height: 6px; border-radius: 50%; background: #d3a86a; }
#healthDot.online { background: var(--acid); box-shadow: 0 0 13px rgba(198,255,71,.35); }
.simple-lang { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 56px; min-height: 36px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 12px; }
.simple-lang svg { width: 14px; height: 14px; }
.simple-lang:hover { color: var(--acid); border-color: rgba(198,255,71,.28); }
.simple-public-shell { display: grid; gap: 22px; min-width: 0; }
.simple-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; min-width: 0; }
.simple-header > div { min-width: 0; }
.public-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--acid); font-size: 11px; letter-spacing: .12em; }
.public-eyebrow svg { width: 13px; height: 13px; }
.simple-header h1 { display: flex; flex-wrap: wrap; gap: 0 12px; color: var(--ink); font-size: clamp(30px,3.6vw,46px); line-height: 1.25; font-weight: 650; letter-spacing: -.035em; }
.simple-header h1 em { color: var(--acid); font-style: normal; }
.public-lede { max-width: 650px; margin-top: 10px; color: #a7b4c8; font-size: 14px; line-height: 1.75; }
.public-trust { display: flex; flex-wrap: wrap; gap: 8px 14px; flex: 0 0 auto; padding-bottom: 3px; }
.public-trust > span { display: flex; align-items: center; gap: 6px; color: #a0aabe; font-size: 12px; }
.public-trust svg { width: 14px; height: 14px; color: #8ba1bd; }
.simple-flow-rail { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 13px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(17,19,27,.6); }
.simple-flow-rail > span { position: relative; display: grid; grid-template-columns: 27px 1fr; gap: 0 8px; padding-inline: 14px; border-right: 1px solid var(--line); color: var(--subtle); }
.simple-flow-rail > span:first-child { padding-left: 0; }
.simple-flow-rail > span:last-child { border-right: 0; }
.simple-flow-rail > span > svg { grid-row: 1 / 3; align-self: center; width: 17px; height: 17px; }
.simple-flow-rail b { font-size: 13px; line-height: 1.5; font-weight: 500; }
.simple-flow-rail small { font-size: 9px; line-height: 1.5; letter-spacing: .1em; color: #6e7c92; }
.simple-flow-rail > span[data-state=active], .simple-flow-rail > span[data-state=done] { color: var(--acid); }
.simple-flow-rail > span[data-state=active] small { color: #a7b380; }
.public-workspace { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(290px,.85fr); align-items: stretch; gap: 20px; min-width: 0; }
.public-primary, .public-workspace > *, .simple-page-card > * { min-width: 0; }
.public-primary { display: flex; flex-direction: column; }
.public-primary > .simple-page-card { display: flex; flex: 1 1 auto; flex-direction: column; }
.public-primary > .simple-page-card .simple-inline-note { margin-top: auto; }
.public-primary > #session-step .simple-actions,
.public-primary > #execution-section .simple-actions,
.public-primary > #success-section .simple-actions { margin-top: auto; }
/* An expanded support drawer is intentionally allowed to grow on its own;
 * the form should not become a tall empty panel just to mirror the drawer. */
body:has(.public-support[open]) .public-workspace { align-items: start; }
body:has(.public-support[open]) .public-primary { display: block; }
body:has(.public-support[open]) .public-primary > .simple-page-card { min-height: 0; }
.simple-page-card, .public-help-card, .public-query-card, .public-support { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 20px 55px rgba(0,0,0,.12); }
.simple-page-card { padding: 27px; }
.simple-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 21px; color: #8c9bb0; font-size: 11px; letter-spacing: .08em; }
.simple-card-topline > span:first-child { color: var(--acid); }
.simple-card-state { display: inline-flex; align-items: center; gap: 6px; color: #9aa7ba; font-size: 11px; letter-spacing: 0; }
.simple-card-state svg { width: 13px; height: 13px; }
.simple-step-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.simple-step-label > div { display: grid; gap: 6px; min-width: 0; }
.simple-step-label h2 { color: var(--ink); font-size: 23px; line-height: 1.5; letter-spacing: -.025em; font-weight: 650; }
.simple-step-label small { color: #a0adc1; font-size: 13px; line-height: 1.7; }
.simple-field-block { display: grid; gap: 10px; }
.simple-field-block > label { display: block; color: #a1afc4; font-size: 13px; font-weight: 500; }
.simple-input-row { display: grid; gap: 14px; }
.public-input-wrap { position: relative; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(5,8,12,.65); }
.public-input-wrap > svg { width: 17px; height: 17px; color: #7d8da5; }
.public-input-wrap input { min-width: 0; width: 100%; min-height: 50px; padding: 10px 0; outline: 0; border: 0; border-radius: 0; box-shadow: none; color: var(--ink); background: transparent; font-size: 15px; }
.public-input-wrap > span { color: #68758b; font-size: 11px; }
.public-input-wrap:focus-within { border-color: rgba(198,255,71,.55); box-shadow: 0 0 0 3px rgba(198,255,71,.05); }
input::placeholder, textarea::placeholder { color: #6d7990; opacity: 1; }
.simple-input-row button, .public-voucher-actions > button, .btn-submit-charge { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 11px 17px; border: 1px solid var(--acid); border-radius: 10px; color: #0a0d06; background: var(--acid); font-size: 14px; font-weight: 650; text-decoration: none; }
.simple-input-row button { width: 100%; }
.simple-input-row button:hover:not(:disabled), .public-voucher-actions > button:hover:not(:disabled), .btn-submit-charge:hover:not(:disabled) { border-color: #d8ff82; background: #d8ff82; }
.btn-submit-charge:disabled { color: #59634c; border-color: #56613f; background: #263021; box-shadow: none; }
.btn-clean, .public-guide-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: rgba(255,255,255,.025); font-size: 13px; font-weight: 500; text-decoration: none; }
.btn-clean:hover, .public-guide-button:hover { border-color: rgba(198,255,71,.3); color: var(--acid); background: rgba(198,255,71,.04); }
.public-text-button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; color: var(--acid); background: transparent; font-size: 13px; text-decoration: none; }
.public-text-button svg { width: 14px; height: 14px; }
.public-text-button:hover { color: #e1ffa6; }
.tier-pill { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: #94a3ba; background: rgba(255,255,255,.02); font-size: 12px; }
.redeem-verified-badge { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid rgba(198,255,71,.2); border-radius: 10px; color: var(--acid); background: rgba(198,255,71,.04); }
.redeem-verified-badge > svg { margin-top: 3px; }
.redeem-verified-badge > div { display: grid; gap: 4px; }
.public-policy-box { display: grid; gap: 8px; margin-top: 18px; padding: 15px 16px; border: 1px solid rgba(198,255,71,.24); border-left: 3px solid var(--acid); border-radius: 11px; background: rgba(198,255,71,.035); }
.public-policy-heading { display: flex; align-items: center; gap: 8px; color: var(--acid); font-size: 13px; font-weight: 650; }
.public-policy-heading svg { width: 16px; height: 16px; }
.public-policy-box p { color: #aebdd0; font-size: 12px; line-height: 1.7; }
.public-policy-box p + p { color: #93a5be; }
.public-policy-check { display: flex; align-items: flex-start; gap: 8px; margin-top: 3px; color: #d9e5f4; font-size: 12px; line-height: 1.55; cursor: pointer; }
.public-policy-check input { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--acid); }
.public-voucher-actions { display: grid; gap: 9px; margin-top: 16px; }
.public-voucher-actions > button { width: 100%; }
.policy-consent-feedback { color: #d8bc86; font-size: 12px; line-height: 1.7; }
.policy-consent-feedback.is-accepted { color: #a6bf81; }
.public-policy-box { scroll-margin-block: 24px; }
.public-policy-box.is-required { border-color: #f0bb61; background: rgba(240,187,97,.065); box-shadow: 0 0 0 3px rgba(240,187,97,.09); }
.public-policy-check:focus-within { border-radius: 5px; outline: 2px solid var(--acid); outline-offset: 5px; }
.public-voucher-actions > button:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
.public-policy-review { flex: 0 0 auto; margin-left: auto; padding: 0 2px; border: 0; color: inherit; background: transparent; font-size: inherit; line-height: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.public-policy-summary { display: flex; align-items: flex-start; gap: 7px; margin-top: 14px; padding: 9px 11px; border: 1px solid rgba(255,195,110,.22); border-radius: 9px; color: #e9c487; background: rgba(255,195,110,.045); font-size: 12px; line-height: 1.55; }
.public-policy-summary svg { width: 14px; height: 14px; margin-top: 2px; }
.public-policy-summary.is-accepted { color: var(--acid); border-color: rgba(198,255,71,.2); background: rgba(198,255,71,.035); }
.public-verification-note { margin-top: 18px !important; }
.b-title { font-size: 13px; font-weight: 550; }
.b-desc { color: #a7b4c8; font-size: 12px; }
.simple-inline-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 19px; color: #8e9db4; font-size: 12px; line-height: 1.75; }
.simple-inline-note > svg { width: 14px; height: 14px; margin-top: 3px; color: #8a9eac; }
.simple-field-block textarea { display: block; width: 100%; min-height: 175px; padding: 13px 15px; resize: vertical; border: 1px solid var(--line); border-radius: 11px; color: #ccd6e7; background: rgba(5,8,12,.65); font: 12px/1.8 var(--font-mono); overflow-wrap: anywhere; }
.account-preview-strip { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.015); }
.acc-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; color: var(--acid); background: rgba(198,255,71,.08); font-size: 12px; font-weight: 600; }
.account-preview-strip > div { display: grid; gap: 3px; min-width: 0; }
.account-preview-strip strong { color: #e3eaf5; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.account-preview-strip small, .account-preview-strip em { color: #8b9db8; font-size: 11px; line-height: 1.5; font-style: normal; }
.simple-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.simple-actions svg, .public-document-actions svg { width: 15px; height: 15px; }
.public-processing-icon, .simple-result-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; color: var(--acid); background: rgba(198,255,71,.08); }
.public-processing-icon > svg { width: 22px; height: 22px; animation: processing-turn 1.6s linear infinite; }
.simple-step-label > b { margin-left: auto; color: var(--acid); font-size: 24px; font-weight: 550; font-variant-numeric: tabular-nums; }
@keyframes processing-turn { to { transform: rotate(360deg); } }
.simple-progress { width: 100%; height: 7px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.06); }
.simple-progress > div { width: 0; height: 100%; border-radius: inherit; background: var(--acid); transition: width .3s ease; }
.simple-stage-list { display: grid; margin-top: 18px; }
.stage-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.stage-item-left { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.stage-status-icon { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 8px; color: #a8b5cd; background: rgba(160,177,205,.06); }
.stage-status-icon svg { width: 14px; height: 14px; }
.stage-title { color: #bbc8dc; line-height: 1.7; overflow-wrap: anywhere; }
.stage-time { flex: 0 0 auto; color: #71829d; font-size: 11px; }
.stage-item.done .stage-status-icon { color: var(--acid); background: rgba(198,255,71,.07); }
.stage-item.error .stage-status-icon, .stage-item.error .stage-title { color: #ffa69f; }
.public-processing-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 18px; color: #8696af; font-size: 12px; }
.public-processing-foot > span:first-child { display: inline-flex; align-items: center; gap: 7px; color: #aab8ce; font-variant-numeric: tabular-nums; }
.public-processing-foot svg { width: 14px; height: 14px; }
.result-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; padding: 1px 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: rgba(5,8,12,.2); }
.result-grid > div { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-grid > div:nth-child(2n) { border-right: 0; }
.result-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.result-grid small { color: #8495af; font-size: 12px; }
.result-grid strong { color: #dce7f6; font-size: 13px; font-weight: 500; line-height: 1.7; overflow-wrap: anywhere; }
.public-document-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 20px 0 12px; }
.public-document-heading h3 { color: #dce7f6; font-size: 14px; font-weight: 550; }
.public-document-heading > span { color: #899bb5; font-size: 12px; }
.public-document-status { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.public-document-status > span { display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 3px 7px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02); }
.public-document-status svg { color: #99b7d1; width: 16px; height: 16px; }
.public-document-status > span > span { color: #9caec8; font-size: 12px; }
.public-document-status strong { grid-column: 2; color: #d5e3f5; font-size: 12px; font-weight: 500; }
.public-document-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.public-document-actions .btn-clean { color: var(--acid); border-color: rgba(198,255,71,.22); }
.ui-docs-pending, .ui-renewal-pending, .ui-renewal-warning { flex: 1 1 100%; color: #93a7c3; font-size: 12px; line-height: 1.75; }
.ui-renewal-warning { color: #ffc28f; }
.result-help { display: flex; align-items: flex-start; gap: 7px; margin-top: 17px; color: #95a7c1; font-size: 12px; line-height: 1.75; }
.result-help svg { width: 14px; height: 14px; margin-top: 3px; }
.public-help-panel { display: grid; gap: 14px; }
.public-help-card { padding: 23px; }
.public-panel-kicker { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: #8493ab; font-size: 11px; letter-spacing: .11em; }
.public-panel-kicker svg { width: 13px; height: 13px; }
.public-help-card h2 { color: var(--ink); font-size: 18px; font-weight: 550; letter-spacing: -.025em; }
.public-guide-list { display: grid; gap: 18px; list-style: none; margin: 20px 0; padding: 0; }
.public-guide-list > li { display: flex; align-items: flex-start; gap: 11px; }
.public-guide-list > li > span { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; color: #abc97c; background: rgba(198,255,71,.06); border: 1px solid rgba(198,255,71,.1); border-radius: 8px; font-size: 10px; }
.public-guide-list strong { color: #d9e2ef; font-size: 13px; font-weight: 500; }
.public-guide-list p { margin-top: 4px; color: #8d9fb9; font-size: 12px; line-height: 1.75; }
.public-guide-button { width: 100%; justify-content: flex-start; color: #b3c7e2; font-size: 12px; }
.public-guide-button > svg:last-child { margin-left: auto; width: 13px; height: 13px; }
.public-query-card { display: flex; align-items: flex-start; gap: 13px; padding: 20px; }
.public-query-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; color: var(--cyan); background: rgba(109,230,255,.07); }
.public-query-card > div { min-width: 0; }
.public-query-card h3 { font-size: 14px; font-weight: 550; }
.public-query-card p { color: #8b9db9; margin: 5px 0 12px; font-size: 12px; line-height: 1.7; }
.public-support { position: relative; }
.public-support summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 18px; cursor: pointer; list-style: none; color: #a6b6cc; font-size: 13px; }
.public-support summary svg { width: 15px; height: 15px; color: #8fa6bf; }
.public-support summary svg:last-child { margin-left: auto; width: 13px; height: 13px; }
.public-support[open] summary { border-bottom: 1px solid var(--line); }
.public-support-content { display: grid; justify-items: center; gap: 12px; padding: 20px; }
.public-support-content img { display: block; width: min(100%, 220px); height: auto; max-height: 300px; object-fit: contain; border-radius: 8px; }
.public-support-content strong { color: #d1e1f5; font-size: 14px; font-weight: 500; }
.public-support-content p { color: #8f9fb7; font-size: 12px; line-height: 1.75; text-align: center; }
.public-support-content .public-support-note { max-width: 300px; color: #e7c58e; font-size: 12px; line-height: 1.65; }
.public-support-trigger { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 52px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 16px; color: #a6b6cc; background: var(--panel); font-size: 13px; text-align: left; }
.public-support-trigger svg:first-child { width: 15px; height: 15px; }
.public-support-trigger svg:last-child { width: 14px; height: 14px; margin-left: auto; }
.public-support-trigger:hover { color: var(--acid); border-color: rgba(198,255,71,.3); background: rgba(198,255,71,.035); }
.public-support-dialog { width: min(430px,100%); }
.public-support-dialog .public-support-content { padding: 2px 0 0; }
.public-support-dialog .public-support-content img { width: min(100%,220px); max-height: 330px; }
.public-workspace-topline { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px 20px; color: #7e90ab; font-size: 12px; }
.public-workspace-topline > span:first-child { display: inline-flex; align-items: flex-start; gap: 7px; }
.public-workspace-topline svg { width: 14px; height: 14px; margin-top: 3px; }
#public-current-step { white-space: nowrap; }
.public-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-top: 26px; margin-top: auto; color: #6b7d98; font-size: 11px; }
#public-version { margin-left: 5px; }
.modal-overlay, .ui-utility-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(2,4,9,.8); backdrop-filter: blur(6px); }
.simple-modal, .ui-utility-card { display: flex; flex-direction: column; width: min(570px,100%); max-height: calc(100dvh - 48px); min-height: 0; padding: 26px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line-strong); border-radius: 16px; color: var(--ink); background: #10141d; box-shadow: 0 28px 80px rgba(0,0,0,.5); }
.public-modal-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 23px; }
.public-modal-heading > span { display: flex; align-items: center; gap: 9px; }
.public-modal-heading > span > svg { color: #a9c98b; }
.public-modal-heading h2 { font-size: 20px; font-weight: 600; }
#modal-close-btn, .ui-utility-close { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; color: #8fa2bf; background: transparent; }
#modal-close-btn:hover, .ui-utility-close:hover { color: var(--ink); border-color: var(--line-strong); }
.public-session-guide { display: grid; gap: 21px; list-style: none; margin: 0; padding: 0; }
.public-session-guide > li { display: flex; align-items: flex-start; gap: 12px; }
.public-session-guide > li > b { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 8px; color: var(--acid); font-size: 11px; font-weight: 500; }
.public-session-guide strong { color: #dde7f6; font-size: 14px; font-weight: 500; }
.public-session-guide p { margin-top: 4px; color: #93a6c2; font-size: 13px; line-height: 1.75; }
.public-session-guide a { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; margin-top: 6px; color: var(--acid); font-size: 12px; overflow-wrap: anywhere; }
.public-session-guide svg { width: 12px; height: 12px; }
.public-modal-note { display: flex; align-items: flex-start; gap: 7px; margin: 20px 0; padding-top: 18px; border-top: 1px solid var(--line); color: #8d9fb9; font-size: 12px; line-height: 1.75; }
.public-modal-note svg { width: 14px; height: 14px; margin-top: 3px; }
.ui-utility-card { width: min(650px,100%); }
.ui-utility-card { padding: 24px; }
.ui-utility-head { flex: 0 0 auto; }
.ui-utility-body { max-height: min(420px, calc(100dvh - 220px)); overflow: auto; }
.ui-utility-close { flex: 0 0 34px; width: 34px; height: 34px; font-size: 0; }
.ui-utility-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.ui-utility-kicker { color: var(--subtle); font-size: 10px; letter-spacing: .09em; }
.ui-utility-head h2 { margin-top: 5px; color: #e3eaf5; font-size: 21px; font-weight: 550; }
.ui-utility-close svg { width: 16px; height: 16px; }
.ui-utility-body { display: grid; gap: 15px; color: #acbdd5; font-size: 13px; line-height: 1.7; }
.ui-utility-lead { color: #acbdd5; font-size: 14px; }
.ui-invoice-list-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ui-invoice-list-heading p { margin-top: 5px; color: #8499b7; font-size: 12px; }
.ui-invoice-list-heading > span { display: grid; place-items: center; min-width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; color: #b9c8dc; font-size: 11px; }
.ui-invoice-kicker { color: var(--subtle); font-size: 10px; letter-spacing: .1em; }
.ui-invoice-list { display: grid; gap: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(4,6,10,.42); }
.ui-invoice-row { display: grid; grid-template-columns: minmax(145px,1.35fr) minmax(92px,.85fr) minmax(72px,.65fr) minmax(95px,.8fr) 18px; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); color: #dbe5f3; background: transparent; text-align: left; cursor: pointer; }
.ui-invoice-row:last-child { border-bottom: 0; }
.ui-invoice-row:hover, .ui-invoice-row:focus-visible { color: var(--ink); background: rgba(198,255,71,.055); outline: 0; }
.ui-invoice-row time { color: #b4c0d2; font-size: 12px; white-space: nowrap; }
.ui-invoice-row strong { color: #edf3fb; font-size: 13px; font-weight: 550; text-align: right; white-space: nowrap; }
.ui-invoice-row > svg { width: 15px; height: 15px; color: #71839e; }
.ui-invoice-plan { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.ui-invoice-status { justify-self: start; padding: 3px 8px; border-radius: 4px; color: #d8e0ec; background: #3c4149; font-size: 11px; white-space: nowrap; }
.ui-invoice-status.is-ok { color: #e4f7c1; background: rgba(142,178,83,.32); }
.ui-invoice-status.is-error { color: #ffd0cb; background: rgba(170,73,68,.32); }
.ui-invoice-status.is-warn { color: #ffe3a9; background: rgba(168,123,49,.28); }
.ui-invoice-back { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 0; border: 0; color: var(--acid); background: transparent; font-size: 12px; cursor: pointer; }
.ui-invoice-back:hover { color: #e2ff9e; }
.ui-invoice-back svg { width: 14px; height: 14px; }
.ui-invoice-detail-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 4px 0 14px; border-bottom: 1px solid var(--line); }
.ui-invoice-detail-heading h3 { margin-top: 6px; color: #e4ebf6; font-size: 18px; font-weight: 550; }
.ui-invoice-detail-heading p { margin-top: 3px; color: #8499b7; font-size: 12px; }
.ui-invoice-detail-heading > strong { color: var(--acid); font-size: 18px; font-weight: 550; white-space: nowrap; }
.ui-check-list { display: grid; gap: 0; }
.ui-check-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--line); color: #9ab0cf; font-size: 13px; }
.ui-check-row strong { text-align: right; font-weight: 500; color: #e0eaf9; overflow-wrap: anywhere; }
.ui-check-row strong.is-ok { color: var(--acid); }
.ui-check-row strong.is-warn { color: #ffd08a; }
.ui-utility-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ui-utility-link { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 42px; padding: 9px 13px; border: 1px solid rgba(198,255,71,.22); border-radius: 9px; color: var(--acid); background: rgba(198,255,71,.04); text-decoration: none; font-size: 13px; }
.ui-utility-note { color: #8499b7; font-size: 12px; line-height: 1.75; }
.ui-empty-state { display: grid; gap: 9px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.015); }
.ui-empty-state strong { font-size: 14px; font-weight: 500; }
.ui-empty-state > span { color: #8fa1bc; font-size: 13px; line-height: 1.75; }
.ui-access-gate { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; overflow: auto; background: radial-gradient(ellipse at 65% 0, rgba(198,255,71,.06), transparent 55%), #08090d; }
.ui-access-card { width: min(420px,100%); padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: #10131b; }
.ui-access-kicker { color: var(--acid); font-size: 11px; letter-spacing: .1em; }
.ui-access-card h1 { margin: 10px 0; font-size: 25px; font-weight: 600; }
.ui-access-card p { margin: 0 0 20px; color: #97a6be; font-size: 13px; }
.ui-access-card input { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #080b10; }
.ui-access-card button { width: 100%; min-height: 44px; padding: 10px 16px; margin-top: 16px; border: 0; border-radius: 10px; color: #0a0d06; background: var(--acid); font-size: 14px; font-weight: 600; }
.ui-access-card .ui-access-feedback { min-height: 17px; margin: 8px 0 0; color: var(--danger); font-size: 12px; }
.toast-region { position: fixed; z-index: 200; top: 18px; right: 18px; display: grid; gap: 10px; width: min(390px,calc(100vw - 28px)); pointer-events: none; }
.toast-notice { display: grid; grid-template-columns: 19px minmax(0,1fr) 20px; align-items: start; gap: 10px; padding: 15px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); background: #161c26; box-shadow: 0 14px 50px rgba(0,0,0,.4); pointer-events: auto; }
.toast-symbol { color: var(--acid); }
.toast-notice.is-error .toast-symbol { color: var(--danger); }
.toast-body strong { display: block; font-size: 13px; font-weight: 550; }
.toast-body p { margin-top: 4px; color: #a3b0c5; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.toast-close { display: inline-flex; border: 0; padding: 0; color: #7d90ae; background: transparent; }
.toast-close svg { width: 15px; height: 15px; }

@media (max-width: 1000px) {
  .public-shell { width: calc(100% - 40px); }
  .simple-header { align-items: flex-start; flex-direction: column; gap: 13px; }
  .public-trust { gap: 16px; }
  .public-workspace { grid-template-columns: minmax(0,1.25fr) minmax(270px,.85fr); gap: 16px; }
  .simple-page-card { padding: 23px; }
  .public-help-card { padding: 21px; }
  .public-lede { font-size: 14px; }
}
@media (max-width: 760px) {
  .public-shell { width: calc(100% - 30px); padding-top: 18px; }
  .simple-topbar { margin-bottom: 24px; }
  .public-workspace { grid-template-columns: 1fr; gap: 18px; }
  .public-primary { display: block; }
  .public-primary > .simple-page-card { min-height: 0; }
  .public-help-panel { grid-template-columns: 1fr; }
  .public-help-card { padding: 22px; }
  .simple-header h1 { font-size: 34px; }
  .public-lede { max-width: 560px; }
  .public-trust { display: none; }
  .simple-flow-rail { padding: 12px; }
  .simple-flow-rail > span { grid-template-columns: 1fr; padding-inline: 11px; gap: 2px; justify-items: center; text-align: center; }
  .simple-flow-rail > span > svg { grid-row: auto; width: 15px; height: 15px; }
  .simple-flow-rail b { font-size: 12px; }
  .simple-flow-rail small { display: none; }
  .public-help-panel .public-help-card { order: 1; }
  .public-query-card { order: 2; }
  .public-support-trigger { order: 3; }
}
@media (max-width: 480px) {
  .public-shell { width: calc(100% - 24px); padding-top: 15px; padding-bottom: 18px; }
  .simple-topbar { gap: 10px; margin-bottom: 22px; }
  .simple-brand-glyph { flex-basis: 34px; width: 34px; height: 34px; border-radius: 10px; }
  .simple-brand-copy b { font-size: 13px; }
  .simple-brand-copy small { font-size: 10px; }
  .public-topbar-actions { gap: 8px; }
  .public-service-status { gap: 6px; font-size: 10px; }
  .public-service-status > svg { display: none; }
  .simple-lang { min-width: 38px; min-height: 34px; padding: 6px 7px; }
  .simple-lang > svg { display: none; }
  .simple-public-shell { gap: 18px; }
  .public-eyebrow { font-size: 9px; }
  .simple-header h1 { gap: 0 9px; font-size: 30px; }
  .public-lede { margin-top: 8px; font-size: 13px; line-height: 1.7; }
  .simple-flow-rail { padding: 10px 6px; }
  .simple-flow-rail > span { padding-inline: 6px; }
  .simple-flow-rail b { font-size: 11px; }
  .simple-page-card { padding: 22px 18px; }
  .public-policy-box { padding: 13px 12px; }
  .public-policy-box p, .public-policy-check, .public-policy-summary { font-size: 11px; }
  .simple-card-topline { margin-bottom: 19px; font-size: 10px; }
  .simple-card-state { font-size: 10px; }
  .simple-step-label { flex-wrap: wrap; gap: 12px; margin-bottom: 19px; }
  .simple-step-label h2 { font-size: 21px; }
  .simple-step-label small { font-size: 12px; }
  .simple-field-block textarea { min-height: 165px; font-size: 12px; }
  .public-input-wrap input { font-size: 16px; }
  .simple-actions { justify-content: stretch; }
  .simple-actions > button { flex: 1; }
  .account-preview-strip { padding: 11px; }
  .simple-inline-note { font-size: 12px; }
  .result-grid > div { padding: 12px; }
  .result-grid strong { font-size: 12px; }
  .public-document-status { grid-template-columns: 1fr; }
  .public-document-status > span { grid-template-columns: 18px 1fr auto; }
  .public-document-status strong { grid-column: 3; }
  .public-document-actions .btn-clean { flex: 1; }
  .public-workspace-topline { flex-direction: column; font-size: 11px; }
  .public-footer { font-size: 10px; }
  .modal-overlay, .ui-utility-modal { padding: 10px; }
  .simple-modal, .ui-utility-card { max-height: calc(100dvh - 20px); padding: 21px 18px; border-radius: 13px; }
  .public-modal-heading h2, .ui-utility-head h2 { font-size: 18px; }
  .public-session-guide p { font-size: 12px; }
  .public-session-guide a { font-size: 11px; }
  .ui-check-row { gap: 14px; font-size: 12px; }
  .ui-invoice-row { grid-template-columns: minmax(0,1fr) auto 15px; gap: 8px 10px; min-height: 66px; padding: 10px 12px; }
  .ui-invoice-row time { grid-column: 1; grid-row: 2; font-size: 11px; }
  .ui-invoice-row .ui-invoice-status { grid-column: 2; grid-row: 1 / span 2; }
  .ui-invoice-row strong { grid-column: 1; grid-row: 1; justify-self: start; margin-left: auto; margin-right: 2px; font-size: 12px; }
  .ui-invoice-row > svg { grid-column: 3; grid-row: 1 / span 2; }
  .ui-invoice-detail-heading h3 { font-size: 16px; }
  .ui-invoice-detail-heading > strong { font-size: 15px; }
}
@media (max-width: 350px) {
  .simple-brand-copy small { display: none; }
  .public-lede { font-size: 12px; }
  .simple-card-state { font-size: 9px; }
}
@media (min-width: 761px) and (max-height: 800px) {
  .public-shell { padding-top: 18px; }
  .simple-topbar { margin-bottom: 22px; }
  .simple-public-shell { gap: 18px; }
  .simple-header h1 { font-size: 36px; }
  .simple-card-topline { margin-bottom: 17px; }
  .simple-page-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
