/* Stage 28 — container-driven Telegram layout and wide web workspace. */
.cst-app[data-shell-ready="true"]{container-type:inline-size;container-name:luckyblock;max-width:none;overflow:hidden}
.cst-app[data-shell-ready="true"] :is(.dashboard-screen,.tab-panel,.ui-card,section,article,header,div){min-width:0}
.cst-app[data-shell-ready="true"] .tab-panel{width:100%;max-width:100%;overflow-x:hidden}
.cst-app[data-shell-ready="true"] .auth-v3-card{width:min(100%,440px);justify-self:center}
.cst-app[data-shell-ready="true"] .terms-v3-card{width:min(100%,620px);justify-self:center}
.miner-v3-chart-card,.miner-v3-command,.miner-v3-proof,.wallet-v3-activity{max-width:100%;overflow:hidden}
.miner-v3-chart-card .miner-signal-meter{min-width:0;gap:clamp(2px,.7cqw,5px)}
.miner-v3-chart-card .miner-signal-meter i{min-width:0}
.miner-v3-chart-card .miner-earn-scroll{max-width:100%}
.miner-v3-kpis article>b,.wallet-v3-balances article>b{max-width:100%;white-space:nowrap}
.miner-v3-head-actions,.miner-v3-chart-card>header,.wallet-v3-head,.games-v3-head{max-width:100%}

@media(min-width:900px){
  .cst-app[data-shell-ready="true"][data-runtime="web"]{width:min(calc(100vw - 48px),1180px);height:min(100svh,920px);min-height:min(100svh,920px);margin-inline:auto;padding-inline:22px;border-right:1px solid var(--border);border-left:1px solid var(--border);background:var(--background)!important}
  .cst-app[data-shell-ready="true"][data-runtime="web"] .dashboard-screen{grid-template-rows:64px minmax(0,1fr) 72px!important;gap:12px;padding-top:12px}
  .cst-app[data-shell-ready="true"][data-runtime="web"] .shell-v3-header{height:64px}
  .cst-app[data-shell-ready="true"][data-runtime="web"] :is(.miner-v3-panel,.games-v3-panel,.wallet-v3-panel){padding:24px 4px 28px}
  .cst-app[data-shell-ready="true"][data-runtime="web"] .miner-v3-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cst-app[data-shell-ready="true"][data-runtime="web"] .miner-v3-command-grid{grid-template-columns:1.25fr repeat(3,minmax(0,1fr))}
  .cst-app[data-shell-ready="true"][data-runtime="web"] .games-v3-lobby{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cst-app[data-shell-ready="true"][data-runtime="web"] .wallet-v3-balances{grid-template-columns:1.55fr 1fr}
  .cst-app[data-shell-ready="true"][data-runtime="web"] .shell-v3-nav{width:min(620px,100%);justify-self:center}
}

@media(min-width:681px) and (max-width:899px){.cst-app[data-shell-ready="true"]{width:min(100vw,760px);padding-inline:16px}.cst-app[data-shell-ready="true"] :is(.miner-v3-panel,.games-v3-panel,.wallet-v3-panel){padding-inline:8px}.miner-v3-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.miner-v3-command-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.miner-v3-pulse{grid-column:1/-1}}

@container luckyblock (max-width:680px){
  .miner-v3-panel,.games-v3-panel,.wallet-v3-panel{padding:16px 12px 104px!important}
  .miner-v3-page-head{display:grid!important}.miner-v3-head-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}.miner-v3-head-actions>.ui-badge{grid-column:1/-1}.miner-v3-head-actions .ui-button{min-width:0;padding-inline:9px;overflow:hidden}.miner-v3-head-actions .ui-button b{overflow:hidden;text-overflow:ellipsis}
  .miner-v3-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.miner-v3-kpis .ui-card{min-height:128px!important;padding:13px!important}.miner-v3-kpis article>b{font-size:clamp(1.25rem,7.5cqw,1.75rem)!important}
  .miner-v3-chart-card,.miner-v3-command,.miner-v3-proof{padding:14px!important}.miner-v3-command-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.miner-v3-pulse{grid-column:1/-1!important}
  .miner-v3-chart-card .miner-signal-row{grid-template-columns:48px minmax(0,1fr) 30px!important;gap:6px!important}.miner-v3-chart-card .miner-signal-row>span,.miner-v3-chart-card .miner-signal-row>b{font-size:8px!important}.miner-v3-chart-card .miner-signal-meter i{height:13px!important}
  .games-v3-lobby{grid-template-columns:1fr!important}.game-v3-card{min-height:150px!important}.games-v3-panel>:is(.crown-game,.vault-game,.star-drop-game,.core-game){padding:14px!important}
  .wallet-v3-balances{grid-template-columns:1fr!important}.wallet-v3-balances article{min-height:178px!important}.wallet-v3-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}.wallet-v3-activity{padding:14px!important}
}

@container luckyblock (max-width:390px){
  .shell-v3-brand{display:none}.shell-v3-header{grid-template-columns:auto 1fr auto}.shell-v3-view{justify-self:center}
  .miner-v3-chart-card>header{display:grid!important}.miner-v3-command-grid{grid-template-columns:1fr!important}.miner-v3-pulse{grid-column:auto!important}
  .wallet-v3-stats{grid-template-columns:1fr!important}.wallet-v3-stats article{min-height:92px!important}.wallet-v3-connect{grid-template-columns:40px minmax(0,1fr)!important}.wallet-v3-connect-status{grid-column:1/-1}
}

@container luckyblock (max-width:340px){.miner-v3-kpis{grid-template-columns:1fr!important}.miner-v3-kpis .ui-card{min-height:112px!important}.miner-v3-head-actions{grid-template-columns:1fr!important}.miner-v3-head-actions>.ui-badge{grid-column:auto}.wallet-v3-balance-actions{grid-template-columns:1fr}.shell-v3-language{display:none}}

@supports not (container-type:inline-size){@media(max-width:680px){.miner-v3-page-head{display:grid}.miner-v3-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.miner-v3-command-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.games-v3-lobby,.wallet-v3-balances{grid-template-columns:1fr}}}
