/* Accessible local preview dialogs; preserve ZIP's existing layout. */
html.jetton-dialog-open{overflow:hidden}
.jetton-action-shade{
 position:fixed;inset:0;z-index:100010;display:flex;align-items:center;justify-content:center;
 background:rgba(0,0,0,.79);padding:16px;
}
.jetton-action-dialog{
 position:relative;box-sizing:border-box;width:min(500px,96vw);max-height:calc(100dvh - 32px);
 overflow-y:auto;display:flex;flex-direction:column;gap:16px;
 padding:26px 23px 20px;background:#1d2023;color:#f5f6f7;border:1px solid #494e53;
 border-radius:16px;box-shadow:0 18px 65px rgba(0,0,0,.65);
 font:400 15px/1.55 system-ui,Arial,sans-serif;
}
.jetton-action-title{
 font:700 22px/1.35 system-ui,Arial,sans-serif;margin:0;padding-right:25px;color:#fff;
}
.jetton-action-description{color:#bbc1ca;display:flex;flex-direction:column;gap:9px}
.jetton-action-description p{margin:0}
.jetton-action-close{
 position:absolute;top:9px;right:12px;border:0;border-radius:7px;background:#30353b;
 color:#e9edf0;font-size:23px;line-height:1;width:34px;height:34px;cursor:pointer;
}
.jetton-action-image{
 width:120px;max-height:160px;object-fit:cover;border-radius:9px;align-self:center;
}
.jetton-action-footer{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:6px}
.jetton-action-footer a,.jetton-action-footer button{
 text-decoration:none;border:1px solid #393e44;min-height:39px;border-radius:9px;
 padding:9px 14px;cursor:pointer;font:650 13px/1.4 system-ui,Arial,sans-serif;
}
.jetton-action-guide{background:#bbed00;color:#141414}
.jetton-action-cancel{background:#34383e;color:#fff}
.jetton-action-close:focus-visible,.jetton-action-cancel:focus-visible,.jetton-action-guide:focus-visible{
 outline:2px solid #bbed00;outline-offset:3px
}
@media(max-width:480px){
 .jetton-action-dialog{padding:21px 17px 16px;gap:12px}
 .jetton-action-title{font-size:19px}
 .jetton-action-footer a,.jetton-action-footer button{flex:1 1 auto;text-align:center}
}

/* Header APK download matches the dark JetTon controls without overlaying auth. */
.sp-e124 .jetton-apk-header{display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-height:40px;margin-right:10px;padding:0 11px;border-radius:11px;border:1px solid #4d5b34;background:#2c331f;color:#bbed00;text-decoration:none;font:700 12px/1.2 system-ui,Arial,sans-serif;white-space:nowrap;flex:none;transition:background .15s}
.sp-e124 .jetton-apk-header:hover{background:#3a4922}
.sp-e124 .jetton-apk-header:focus-visible{outline:2px solid #bbed00;outline-offset:2px}
.jetton-apk-header-short{display:none}
@media(max-width:760px){
 .sp-e124 .jetton-apk-header{gap:3px;margin-right:5px;padding:0 5px;min-width:40px;min-height:34px;border-radius:8px;font-size:10px}
 .jetton-apk-header-long{display:none}
 .jetton-apk-header-short{display:inline}
}
@media(max-width:370px){.sp-e124 .jetton-apk-header{min-width:35px;padding:0 4px;gap:2px}.sp-e124 .jetton-apk-header svg{width:13px}}
/* Long Uzbek / Tajik auth labels: reserve the flag and APK space on phones. */
@media(max-width:760px){
 html[data-geo=uz] .sp-e124>button,
 html[data-geo=tj] .sp-e124>button{padding-left:4px!important;padding-right:4px!important;min-width:0!important}
 html[data-geo=uz] .sp-e124>button span,
 html[data-geo=tj] .sp-e124>button span{font-size:10px!important;letter-spacing:-.4px!important}
}
