/* BALI Telegram V6: true frameless home shortcuts and iOS-safe six-digit transfer. */
body.bali-guest-theme .tg-page-card .tg-card-toolbox{
 background:none!important;border:0!important;box-shadow:none!important;
 padding:0 4px!important;
}
body.bali-guest-theme .tg-page-card .tg-card-toolbox .tg-card-tool,
body.bali-guest-theme .tg-page-card .tg-card-toolbox .tg-card-tool-qr{
 position:relative!important;
 background:transparent!important;background-image:none!important;
 border:0!important;outline:0!important;border-radius:0!important;
 box-shadow:none!important;
 isolation:isolate!important;overflow:visible!important;
 transform:none!important;
 transition:none!important;
 -webkit-tap-highlight-color:transparent;
}
body.bali-guest-theme .tg-page-card .tg-card-toolbox .tg-card-tool::before,
body.bali-guest-theme .tg-page-card .tg-card-toolbox .tg-card-tool::after{
 display:none!important;content:none!important;
}
body.bali-guest-theme .tg-page-card .tg-card-toolbox .tg-card-tool .tg-card-tool-icon{
 transition:transform 160ms cubic-bezier(.17,.86,.23,1),
 box-shadow 160ms ease,filter 160ms ease!important;
 transform:translateY(0) scale(1);
}
body.bali-guest-theme .tg-page-card .tg-card-toolbox .tg-card-tool:is(:active,.tg-tool-pressed) .tg-card-tool-icon{
 transform:translateY(2px) scale(.87)!important;
 filter:brightness(1.24)!important;
 box-shadow:inset 0 3px 7px #020f0aba,
 0 1px 0 #291c0c,0 0 18px #d6f4a066!important;
}
body.bali-guest-theme .tg-page-card .tg-card-toolbox .tg-card-tool:is(:active,.tg-tool-pressed) b{
 color:#fff3be!important;text-shadow:0 0 8px #e9e3ad96!important;
}
body.bali-guest-theme .tg-page-card .tg-card-toolbox .tg-card-tool:focus-visible{
 outline:2px solid #e9efa8!important;outline-offset:2px!important;
 border-radius:12px!important;
}
/* Six real digits, without magnifying the whole Telegram viewport. */
body.bali-guest-theme .tg-page-transfer .tg-transfer-number-entry{
 display:flex!important;justify-content:center!important;
 width:100%!important;max-width:100%!important;
 margin:clamp(3px,.6dvh,7px) auto clamp(5px,1dvh,10px)!important;
 padding:0!important;
 background:none!important;
 border:0!important;box-shadow:none!important;
}
body.bali-guest-theme .tg-page-transfer .tg-transfer-number-entry input[name="number"]{
 display:block!important;
 width:clamp(186px,61vw,224px)!important;max-width:100%!important;
 height:clamp(38px,6.5dvh,48px)!important;
 margin:0 auto!important;
 box-sizing:border-box!important;
 padding:0 8px 0 12px!important;
 font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important;
 font-size:20px!important;font-weight:800!important;
 letter-spacing:clamp(7px,2.45vw,10px)!important;
 text-align:center!important;font-variant-numeric:tabular-nums!important;
 border:1px solid #b4d59b9b!important;border-radius:11px!important;
 color:#fff1cb!important;caret-color:#dff9ac!important;
 background:linear-gradient(90deg,transparent 16.22%,#b2ce9560 16.35%,transparent 16.5%,
 transparent 32.9%,#b2ce9560 33.1%,transparent 33.25%,
 transparent 49.5%,#b2ce9560 49.7%,transparent 49.85%,
 transparent 66.1%,#b2ce9560 66.3%,transparent 66.45%,
 transparent 82.7%,#b2ce9560 82.9%,transparent 83.05%),
 linear-gradient(160deg,#23392d,#10241d)!important;
 box-shadow:inset 0 2px 6px #010f0a82,0 3px 0 #0e2217!important;
}
body.bali-guest-theme .tg-page-transfer .tg-transfer-number-entry input[name="number"]::placeholder{
 color:#93a687!important;opacity:.55!important;
}
body.bali-guest-theme .tg-page-transfer .tg-transfer-number-entry input[name="number"]:focus{
 border-color:#e4f5b8!important;box-shadow:inset 0 2px 6px #010f0a82,
 0 0 0 2px #b9f49b44!important;
}
body.bali-guest-theme .tg-page-transfer :is(input,select,textarea){
 font-size:16px!important; /* Prevent WebKit auto-zoom on focus. */
}
body.bali-guest-theme .tg-page-transfer .tg-transfer-number-entry input[name="number"]{
 font-size:20px!important;
}
@media(prefers-reduced-motion:reduce){
 body.bali-guest-theme .tg-page-card .tg-card-toolbox .tg-card-tool .tg-card-tool-icon{
 transition:none!important;
 }
}

/* WORK v2 compact funnel: metrics stay readable, quest list alone scrolls. */
body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-content{
 display:flex!important;flex-direction:column!important;flex:1 1 0!important;
 min-height:0!important;overflow:hidden!important;gap:clamp(5px,.9dvh,8px)!important;
}
body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-stats{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:6px!important;flex:none!important;margin:0!important;
}
body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-stats>div{
 display:flex!important;flex-direction:column!important;justify-content:center!important;
 min-height:clamp(65px,11dvh,95px)!important;
 padding:clamp(5px,1dvh,9px)!important;
}
body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-stats strong{
 font-size:clamp(18px,3.35dvh,27px)!important;line-height:1.03!important;
}
body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-stats span,
body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-stats small{
 font-size:clamp(7px,1.2dvh,9px)!important;
}
body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-claim-button{
 height:clamp(24px,4dvh,32px)!important;
 font-size:clamp(9px,1.4dvh,11px)!important;
}
body.bali-guest-theme .tg-work-progress{
 flex:none!important;
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:3px!important;min-width:0;
}
body.bali-guest-theme .tg-work-metric{
 display:flex!important;flex-direction:column!important;
 gap:2px;min-width:0;align-items:center;text-align:center;
 border:1px solid #a0c98c4c;border-radius:8px;
 background:linear-gradient(145deg,#273c30,#132820);
 padding:clamp(3px,.7dvh,6px) 2px;
}
body.bali-guest-theme .tg-work-metric b{
 color:#f4e0a2;font:850 clamp(12px,2dvh,17px)/1 Manrope,Inter,sans-serif;
 font-variant-numeric:tabular-nums;
}
body.bali-guest-theme .tg-work-metric small{
 color:#c3d9b6;font:700 clamp(7px,1.1dvh,9px)/1.12 Manrope,Inter,sans-serif;
}
body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-missions{
 flex:1 1 0!important;min-height:0!important;
 display:flex!important;flex-direction:column!important;
 gap:clamp(5px,.9dvh,8px)!important;
 overflow-y:auto!important;overflow-x:hidden!important;
 overscroll-behavior-y:contain!important;touch-action:pan-y!important;
 scrollbar-width:thin;scrollbar-color:#a7c88f5e transparent;
 padding:2px 2px 8px!important;
}
body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-mission{
 display:grid!important;grid-template-columns:clamp(25px,5dvh,35px) minmax(0,1fr) auto!important;
 grid-template-rows:auto!important;align-items:center!important;
 gap:clamp(5px,1.6vw,9px)!important;
 min-height:clamp(92px,14dvh,128px)!important;
 height:auto!important;flex:0 0 auto!important;
 padding:clamp(8px,1.25dvh,11px)!important;
 border-radius:13px!important;
}
body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-mission-main{
 display:flex;flex-direction:column;gap:3px;min-width:0;
}
body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-mission h3{
 font:900 clamp(11px,1.8dvh,14px)/1.15 Manrope,Inter,sans-serif!important;
}
body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-mission p{
 display:block!important;margin:0!important;min-height:0!important;
 font:560 clamp(9px,1.36dvh,10px)/1.25 Manrope,Inter,sans-serif!important;
}
body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-mission small{
 display:block!important;
 font:640 clamp(8px,1.14dvh,9px)/1.2 Manrope,Inter,sans-serif!important;
}
body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-mission .tg-work-reward-label{
 font-weight:800!important;color:#ccec9e!important;
}
body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-mission>.button{
 width:clamp(70px,21vw,98px)!important;max-width:none!important;
 min-height:clamp(29px,4.3dvh,38px)!important;
 padding:5px!important;align-self:center!important;
 font:850 clamp(8px,1.2dvh,10px)/1.12 Manrope,Inter,sans-serif!important;
 white-space:normal!important;letter-spacing:0!important;
}
body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-disclaimer{
 flex:none!important;margin:0 0 2px!important;
 font:620 clamp(8px,1.1dvh,9px)/1.22 Manrope,Inter,sans-serif!important;
 color:#b4cfaa!important;
}
body.bali-guest-theme .tg-work-dialog{
 width:min(calc(100vw - 24px),460px)!important;
 max-height:calc(100dvh - 35px)!important;
 overflow-y:auto!important;
 border:1px solid #bed8979b!important;border-radius:19px!important;
 color:#f2f7e4!important;
 background:linear-gradient(160deg,#2c4231,#11261e 70%,#0c1b18)!important;
 box-shadow:0 20px 70px #000c,inset 0 1px #f5ffe828!important;
 padding:clamp(12px,3vw,20px)!important;
}
body.bali-guest-theme .tg-work-dialog h2{
 font:900 clamp(18px,3dvh,24px)/1.16 Manrope,Inter,sans-serif;
 color:#f3df9d;margin:0 0 8px;
}
body.bali-guest-theme .tg-work-dialog-note{
 color:#d4e4cc;font:600 11px/1.45 Manrope,Inter,sans-serif;
 margin:7px 0;
}
body.bali-guest-theme .tg-work-event-list,
body.bali-guest-theme .tg-work-activity-list{
 display:flex;flex-direction:column;gap:7px;
 max-height:min(53dvh,390px);overflow-y:auto;overscroll-behavior:contain;
}
body.bali-guest-theme .tg-work-event-row{
 display:grid;grid-template-columns:58px minmax(0,1fr) 14px;
 align-items:center;gap:10px;padding:6px;
 text-align:left;min-width:0;border-radius:11px;
 border:1px solid #c5e09b6a;color:#eff5db;
 background:linear-gradient(145deg,#385039,#183023);
}
body.bali-guest-theme .tg-work-event-row>img,
body.bali-guest-theme .tg-work-event-thumb{
 display:grid;place-items:center;width:58px;height:58px;
 object-fit:cover;border-radius:8px;background:#102218;
 color:#dbc989;
}
body.bali-guest-theme .tg-work-event-row>span:nth-child(2){
 display:flex;flex-direction:column;gap:5px;min-width:0;
}
body.bali-guest-theme .tg-work-event-row b{
 font-size:12px;overflow:hidden;text-overflow:ellipsis;
 white-space:nowrap;
}
body.bali-guest-theme .tg-work-event-row small{font-size:10px;color:#c7d8bf}
body.bali-guest-theme .tg-work-event-detail .tg-work-event-poster{
 width:min(100%,280px);aspect-ratio:1;object-fit:cover;display:block;
 margin:9px auto;border-radius:12px;border:1px solid #d8d3a69a;
}
body.bali-guest-theme .tg-work-event-description{
 white-space:pre-wrap;overflow-wrap:anywhere;
 font-size:11px;line-height:1.46;color:#e1e8d7;
}
body.bali-guest-theme .tg-work-event-links{
 display:grid;gap:6px;margin:9px 0;
}
body.bali-guest-theme .tg-work-share{width:100%;margin-top:9px}
body.bali-guest-theme .tg-work-close{width:100%;margin-top:12px}
body.bali-guest-theme .tg-work-activity{
 display:grid;gap:6px;padding:10px;border-radius:11px;
 border:1px solid #b5d3a967;
 background:linear-gradient(145deg,#2e4935,#172b25);
}
body.bali-guest-theme .tg-work-activity b{font-size:12px;color:#f5e2a6}
body.bali-guest-theme .tg-work-activity small{font-size:10px;color:#c8d7ba}
body.bali-guest-theme .tg-work-activity strong{font-size:11px;color:#dbf9ae}
@media(max-height:600px){
 body.bali-guest-theme .tg-work-progress{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.bali-guest-theme .tg-work-metric{padding:2px}
 body.bali-guest-theme .tg-work-metric b{font-size:12px}
 body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-mission{
  min-height:89px!important;
 }
}

/* Specificity guard: compact-screen.css has legacy #screen selectors with
   !important 12px shorthand. iOS WebKit requires >=16px on every focusable
   input to avoid auto-magnification. */
body.bali-guest-theme #root .tg-page-transfer #screen .tg-site-transfer-field input,
body.bali-guest-theme #root .tg-page-transfer #screen .tg-site-transfer-field select,
body.bali-guest-theme #root .tg-page-transfer #screen .tg-site-transfer-field textarea{
 font-size:16px!important;
}
body.bali-guest-theme #root .tg-page-transfer #screen .tg-transfer-number-entry input[name="number"]{
 font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important;
 font-size:20px!important;
 height:clamp(38px,6.5dvh,48px)!important;
 line-height:1.1!important;
}

/* Five separate conversion milestones inside each event detail card. */
body.bali-guest-theme .tg-work-event-funnel{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:5px;margin:10px 0;
}
body.bali-guest-theme .tg-work-event-funnel span{
 display:flex;flex-direction:column;justify-content:center;align-items:center;
 text-align:center;min-width:0;gap:4px;
 border:1px solid rgba(204,240,168,.4);border-radius:9px;
 background:linear-gradient(155deg,#314a36,#152e25);
 padding:7px 3px;
 font:680 9px/1.15 Manrope,Inter,sans-serif;color:#cde3c4;
}
body.bali-guest-theme .tg-work-event-funnel b{
 font-size:clamp(13px,2.8dvh,19px);font-variant-numeric:tabular-nums;
 color:#ffe3a2;
}
body.bali-guest-theme .tg-event-rich-dialog{
 width:min(calc(100vw - 24px),480px)!important;
 border:1px solid rgba(222,240,174,.63)!important;
 background:linear-gradient(153deg,#2c4633,#12281f 75%)!important;
 box-shadow:0 16px 60px #000a!important;
}
body.bali-guest-theme .tg-event-rich-dialog .tg-event-rich-poster{
 width:min(100%,320px);height:auto;aspect-ratio:1;
 object-fit:cover;display:block;margin:10px auto;
 border-radius:11px;border:1px solid #d4dbac83;
 box-shadow:0 7px 20px #0008;
}
body.bali-guest-theme .tg-event-rich-dialog .tg-event-rich-links{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;
 margin:12px 0;
}
body.bali-guest-theme .tg-event-rich-dialog .tg-event-rich-links>.button{
 min-height:38px!important;
 color:#e9fbd4!important;border:1px solid #c8e9a183!important;
 border-radius:10px!important;
 background:linear-gradient(158deg,#425d40,#1d392e)!important;
 font:850 10px/1.2 Manrope,Inter,sans-serif!important;
}
body.bali-guest-theme .tg-event-rich-dialog .tg-event-tracking-note{
 font:630 9px/1.4 Manrope,Inter,sans-serif;color:#afc4ab;
 padding:6px 0;margin:0;
}
@media(max-width:359px){
 body.bali-guest-theme .tg-event-rich-dialog .tg-event-rich-links{
  grid-template-columns:minmax(0,1fr);
 }
}
