/* Accessibility and production states. The reference CSS is kept unchanged. */
/* Viewport rules supplied by the Claude artifact host, outside authored.css. */
:root{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
img{max-width:100%}
.skip{position:fixed;top:8px;left:8px;z-index:10000;padding:10px 16px;background:var(--accent);border-radius:10px;transform:translateY(-150%)}
.skip:focus{transform:none}
.auth-note{padding:12px 14px;border-radius:10px;background:rgba(227,177,84,.08);color:#e8cc96;font-size:13px;margin:0;line-height:1.5}
.auth-divider{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:12px}
.auth-divider::before,.auth-divider::after{content:'';height:1px;background:var(--stroke);flex:1}
.telegram-btn{background:rgba(61,160,208,.12);border:1px solid rgba(61,160,208,.25)}
.telegram-btn:hover{background:rgba(61,160,208,.2)}
.telegram-btn svg{fill:#83c7e8;width:22px;height:22px}
.auth-links{display:flex;justify-content:center;gap:15px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.auth-links button{font:inherit;border:0;background:none;padding:4px;color:inherit;text-decoration:underline;text-underline-offset:3px}
.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}
.ov{overscroll-behavior:contain}
.body-locked{overflow:hidden!important}
.qrbox.qr-error{line-height:1.5;color:#0f1729;font-size:13px;max-width:248px}
.auth-error{display:grid;gap:18px}
footer .wrap{gap:12px;flex-wrap:wrap}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

.otp.otp-eight{grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}.otp.otp-eight input{font-size:22px;min-width:0}
@media(max-width:360px){.otp.otp-eight{gap:4px}.otp.otp-eight input{font-size:19px}}

/* Real account labels and balances can be wider than the prototype fixtures. */
.hdr .bal-chip{min-width:0;max-width:100%}
#balTxt{min-width:0;overflow:hidden;text-overflow:ellipsis}
.hdr .bal-chip .pl{flex:none}
.hdr .hdr-r{flex:0 1 auto}
.fillcard>.hint{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
/* Keep the same bottom sheet inside the browser's changing visible height. */
@supports(height:100dvh){.sheet{max-height:calc(100dvh - 40px)}
@media(max-width:720px){.sheet{max-height:min(88vh,calc(100dvh - env(safe-area-inset-top,0px)))}}}

/* Preserve the reference spacing; allow real names and a three-digit term to fit. */
.h1,.h2,.sheet h3{overflow-wrap:anywhere}
.st2{flex-wrap:wrap}
.st2>.btn{margin-left:auto}
.st2>.days{min-width:0}
@media(max-width:360px){.hdr .wrap{gap:8px}.bal-chip{gap:6px;padding-right:10px}}

/* An account identity and its balance must not set a grid's minimum width. */
.pcard{min-width:0;grid-template-columns:minmax(0,1fr)}
.pcard>.prof,.pcard>.pbal{min-width:0;width:100%}
.pbal{flex-wrap:wrap}
.pbal>div{min-width:0;max-width:100%}
.pbal .bal{overflow-wrap:anywhere}
.pbal>.btn{margin-left:auto}
