/* GAMELEET_MOBILE_6450 — no changes to desktop layouts. */
#glSections6450,#glMenu6450{display:none}
@media(max-width:767px){
  html{ -webkit-text-size-adjust:100%; }
  html.gl-mobile-panel6450 #app{display:block!important;grid-template-columns:minmax(0,1fr)!important;min-height:100dvh;height:auto!important}
  .gl-sidebar6450{position:relative!important;inset:auto!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;padding:10px 12px!important;overflow:visible!important;box-sizing:border-box}
  .gl-content6450{width:100%!important;min-width:0!important;margin:0!important;padding:12px!important;box-sizing:border-box}
  .gl-nav6450{height:auto!important;min-height:0!important;max-height:none!important;display:block!important;margin:8px 0!important;padding:0!important}
  .gl-nav6450 .nav[data-page]{display:none!important}
  #glSections6450{display:flex;align-items:center;gap:10px;width:100%;margin:0;box-sizing:border-box}
  #glSections6450>span{flex:0 0 auto;font-size:12px;color:#a6a0b6}
  #glSections6450 select{display:block;flex:1;min-width:0;width:auto;height:44px!important;margin:0;padding:0 34px 0 12px;border:1px solid #423954;border-radius:10px;background:#191422;color:#f4f1fb;font:600 16px system-ui}
  .gl-sidebar6450 #sidebarLicense{display:none!important}
  html.gl-mobile-panel6450 .page{min-width:0;max-width:100%;box-sizing:border-box}
  html.gl-mobile-panel6450 :is(.page .grid,.page .grid-2,.page .form-grid,.page .two-col){grid-template-columns:minmax(0,1fr)!important}
  html.gl-mobile-panel6450 :is(.page .stats,.page .stats-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html.gl-mobile-panel6450 :is(.page .card,.page .panel,.page .section){min-width:0;max-width:100%;box-sizing:border-box}
  html.gl-mobile-panel6450 :is(.row-actions,.page .actions,.page .toolbar){display:flex;flex-wrap:wrap;gap:8px;max-width:100%}
  html.gl-mobile-panel6450 .row-actions .btn{flex:1 1 120px;white-space:normal}
  html.gl-mobile-panel6450 :is(.btn,button,select){min-height:44px;touch-action:manipulation}
  html.gl-mobile-panel6450 :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important;min-width:0;max-width:100%;box-sizing:border-box}
  html.gl-mobile-panel6450 :is(#pageTitle,h1){font-size:24px;line-height:1.2}
  html.gl-mobile-panel6450 :is(#pageSub,.page p){overflow-wrap:anywhere}
  html.gl-mobile-panel6450 .user-row{display:flex;flex-wrap:wrap;gap:10px;min-width:0}
  html.gl-mobile-panel6450 .user-main{min-width:0;overflow-wrap:anywhere}
  #glCloudServerSwitcher{max-width:100%;min-width:0}
  #glCloudServerButton{min-height:44px;max-width:100%;white-space:normal}
  #glCloudServerMenu{max-width:calc(100vw - 24px)!important;max-height:65dvh;overflow:auto;box-sizing:border-box;z-index:70}
  .gl-cloud-server-row{min-height:48px;max-width:100%}
  .gl-cloud-server-row-main{min-width:0;overflow-wrap:anywhere}
  /* Compact admin header: all actions stay available in the menu. */
  .topbar:has(.gl-actions6450){position:relative!important;display:flex!important;flex-wrap:wrap;align-items:center!important;justify-content:space-between;min-height:64px;height:auto;padding:10px 12px!important;gap:8px!important}
  #glMenu6450{display:inline-flex!important;align-items:center;min-height:44px}
  .topbar .gl-actions6450{display:none!important;width:100%;max-width:100%;margin:0;padding:8px 0 0;box-sizing:border-box}
  .topbar .gl-actions6450.gl-open6450{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .topbar .gl-actions6450>.button:not(.hidden){display:block!important;min-height:44px;padding:8px;font-size:13px;white-space:normal}
  .topbar .gl-actions6450>.account-menu{grid-column:1/-1;width:100%;margin:0}
  .topbar .gl-actions6450 .account-button{width:100%}
  .topbar .gl-actions6450 .account-button i{display:block}
  .topbar .gl-actions6450>.connection{display:none!important}
  .shell{padding-top:18px!important;padding-bottom:28px!important;min-width:0}
  .intro{margin-bottom:18px}
  .intro h1{font-size:25px!important}
  .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:14px}
  .summary-grid .metric{padding:12px}.summary-grid .metric strong{font-size:24px;margin:5px 0}
  .panel-head{padding:16px;gap:12px}.filters{gap:8px}
  .table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
  table.gl-cards6450{display:block;width:100%!important;min-width:0!important;max-width:100%;border-collapse:separate}
  table.gl-cards6450 thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  table.gl-cards6450 tbody{display:grid;gap:12px;padding:10px}
  table.gl-cards6450 tbody tr{display:grid;gap:0;border:1px solid #373044;border-radius:12px;padding:8px;min-width:0;background:rgba(15,12,24,.5)}
  table.gl-cards6450 tbody td{display:grid;grid-template-columns:minmax(82px,32%) minmax(0,1fr);align-items:start;gap:10px;border:0;padding:7px 5px;white-space:normal!important;min-width:0;overflow-wrap:anywhere;text-align:left}
  table.gl-cards6450 tbody td::before{content:attr(data-mobile-label);font-size:11px;color:#a6a0b6;line-height:1.5}
  table.gl-cards6450 tbody td:last-child{grid-template-columns:1fr}
  table.gl-cards6450 .row-actions{justify-content:flex-start;flex-wrap:wrap;gap:8px}
  table.gl-cards6450 :is(.icon-action,.button.small){min-height:44px;font-size:12px}
  :is(dialog.modal,dialog#glManagementDialog6300,dialog#glAddServerDialog4200){width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 24px)!important;margin:auto!important;box-sizing:border-box;overflow:auto!important;overscroll-behavior:contain;border-radius:14px!important}
  dialog.modal{padding:0!important}dialog#glManagementDialog6300{padding:16px!important}
  .modal-head{padding:14px 16px!important;gap:10px}.modal-head h2{font-size:20px}
  .modal-head .icon-button{min-width:44px;min-height:44px}
  .modal-actions{display:flex!important;flex-wrap:wrap!important;gap:8px;padding:12px 16px!important}
  .modal-actions .button{flex:1 1 110px;width:auto!important;min-height:44px}
  .form-grid{padding:16px!important;gap:14px}.details-body{padding:16px}
  .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #glManagementDialog6300 button{min-height:44px}#glManagementDialog6300 h2{font-size:21px}
  .gm6300-card{padding:12px}.gm6300-card p{overflow-wrap:anywhere}.gm6300-actions{gap:8px}
  .gm6300-actions button{flex:1 1 120px}.gm6300-head{flex-wrap:nowrap;align-items:start}
  .auth-shell{min-height:100dvh}.auth-card{padding:22px 18px!important}.auth-brand{margin-bottom:22px}
  .auth-security{margin-top:18px;padding-top:14px}
  :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important}
  :is(.toast,#toast){max-width:calc(100vw - 24px)!important;left:12px!important;right:12px!important;bottom:calc(12px + env(safe-area-inset-bottom))!important}
}
