/* Administrator mobile layout: desktop and the other account types keep their layouts. */
.admin-mobile-menu,.admin-mobile-menu-close,.admin-mobile-nav,.admin-mobile-backdrop,.admin-client-info{display:none}
@media(max-width:760px),(max-width:1100px) and (max-height:500px){
 body.admin-session{background:#f2f5ef;overscroll-behavior-y:none}
 .workspace.admin{height:var(--admin-viewport,100dvh);min-height:0;position:relative;overflow:hidden}
 .admin .main{width:100%;padding-bottom:calc(70px + env(safe-area-inset-bottom));min-height:0}
 .admin .sidebar{display:none}
 .admin .topbar{height:auto;min-height:calc(62px + env(safe-area-inset-top));padding:max(8px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 8px max(14px,env(safe-area-inset-left));gap:10px;background:#fafcf8;position:relative;z-index:5}
 .admin .admin-mobile-menu{display:grid;width:44px;height:44px;flex:0 0 44px;background:#e8efdf;color:#224b37;border:1px solid #dbe6d2;border-radius:14px}
 .admin .breadcrumb{min-width:0;flex:1;font-size:0;line-height:1.3}.admin .breadcrumb:before{content:'NEXO DESK · ADMIN';display:block;font-size:8px;letter-spacing:1.4px;color:#799078;margin-bottom:4px}.admin .breadcrumb span{display:none}.admin .breadcrumb b{display:block;font-size:15px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#234837}
 .admin .top-right{gap:6px}.admin .top-right .icon-button{width:40px;height:40px}.admin .connection{font-size:0}.admin .connection i{width:9px;height:9px;box-shadow:0 0 0 4px #91bc6e18}.admin .today{display:none}
 .admin #page{padding:22px max(16px,env(safe-area-inset-right)) 24px max(16px,env(safe-area-inset-left));overflow:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;gap:0}
 .admin .page-title{flex-wrap:wrap;align-items:stretch;gap:14px;margin-bottom:20px}.admin .page-title>div:first-child{flex:1 1 100%;min-width:0}.admin .page-title h1{font-size:29px;line-height:1.18;margin:9px 0}.admin .page-title p{font-size:12px;line-height:1.65}.admin .page-title>.button{font-size:12px;min-height:46px;padding:12px 16px;justify-content:center;border-radius:13px}.admin .eyebrow{font-size:9px;letter-spacing:1.5px}
 .admin .button,body.admin-session dialog .button{min-height:44px;font-size:12px;padding:11px 14px;white-space:normal;line-height:1.4}.admin .icon-button,body.admin-session dialog .icon-button{min-width:40px;min-height:40px}.admin .button.small{font-size:11px;min-height:42px}
 .admin .panel{padding:20px 17px;border-radius:19px;min-width:0;max-width:100%;box-shadow:0 5px 22px #203c2e05}.admin .panel-title{gap:12px;align-items:flex-start;margin-bottom:18px;flex-wrap:wrap}.admin .panel-title h2{font-size:17px}.admin .panel-title p{font-size:12px;line-height:1.6}
 .admin input,.admin textarea,.admin select,body.admin-session dialog input,body.admin-session dialog textarea,body.admin-session dialog select{font-size:16px!important;max-width:100%}.admin .form-stack input:not([type=checkbox]):not([type=radio]),.admin .form-stack select,.admin .form-stack textarea,body.admin-session dialog .form-stack input:not([type=checkbox]):not([type=radio]){width:100%}.admin label,body.admin-session dialog label{min-width:0;line-height:1.5}.admin .form-stack{gap:18px}.admin .two-fields,body.admin-session dialog .two-fields{flex-direction:column;gap:16px}.admin .settings-grid,.admin .account-grid{grid-template-columns:minmax(0,1fr);gap:18px}.admin .prompt-panel,.admin .timing-panel{grid-column:auto;grid-row:auto}.admin .settings-actions{display:flex;flex-wrap:wrap;gap:12px;padding:14px 0 4px}.admin .settings-actions .button{flex:1 1 140px;width:auto}.admin .muted{font-size:12px;overflow-wrap:anywhere}
 .admin-mobile-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:absolute;bottom:0;left:0;right:0;z-index:20;padding:8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));min-height:70px;background:#fbfdf7f5;border-top:1px solid #dce7d6;backdrop-filter:blur(18px);box-shadow:0 -8px 28px #24432c08;gap:4px}.admin-mobile-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-height:54px;border-radius:14px;color:#788b76;background:none;font:inherit;font-size:10px;font-weight:600}.admin-mobile-nav .icon{width:22px;height:22px}.admin-mobile-nav button.active{background:#e7f0dc;color:#244f36}.admin-mobile-nav button:active{background:#dceacb}
 .admin-mobile-menu-open .sidebar{display:flex;position:absolute;inset:0 auto 0 0;width:min(340px,88%);z-index:80;padding:max(18px,env(safe-area-inset-top)) 20px max(18px,env(safe-area-inset-bottom));box-shadow:16px 0 60px #092b3255;overflow:auto;animation:admin-menu-enter .24s ease-out}.admin-mobile-menu-open .sidebar .brand{justify-content:flex-start;margin:12px 4px}.admin-mobile-menu-open .sidebar .brand>span{display:inline}.admin-mobile-menu-open .side-section{display:block;margin:18px 8px 12px}.admin-mobile-menu-open .sidebar nav{margin:0;gap:5px}.admin-mobile-menu-open .nav-item{justify-content:flex-start;min-height:46px;padding:12px 14px;font-size:13px}.admin-mobile-menu-open .nav-item>span{display:inline}.admin-mobile-menu-open .nav-dot{display:none!important}.admin-mobile-menu-open .side-profile{margin-top:24px;gap:12px}.admin-mobile-menu-open .side-profile>div,.admin-mobile-menu-open .side-profile>.avatar{display:block}.admin-mobile-menu-open .side-profile strong{max-width:190px;font-size:13px}.admin-mobile-menu-open .side-profile button{margin-left:auto}.admin-mobile-menu-close{display:flex;align-self:flex-end;color:#d0e4d4;background:#ffffff10;min-height:40px;font-size:12px}.admin-mobile-backdrop:not([hidden]){display:block;position:absolute;inset:0;z-index:79;background:#071f2b88;backdrop-filter:blur(3px)}
 .admin .table-wrap{overflow:visible}.admin .admin-card-table,body.admin-session dialog .admin-card-table{display:block;white-space:normal;width:100%;border:0}.admin-card-table thead{display:none}.admin-card-table tbody{display:grid;gap:16px}.admin-card-table tr{display:block;background:#fff;border:1px solid #dde7d6;border-radius:16px;padding:5px 16px;box-shadow:0 4px 14px #203c2e04}.admin-card-table td{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;width:100%;padding:13px 0;border-bottom:1px solid #edf1e8;white-space:normal;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.admin-card-table td:before{content:attr(data-mobile-label);font-size:9px;font-weight:650;letter-spacing:.8px;color:#7b8e73;flex:0 0 84px;padding-top:3px}.admin-card-table td:last-child{border-bottom:0;display:block}.admin-card-table td:last-child:before{display:block;margin-bottom:10px}.admin-card-table .assigned{font-size:13px;flex-wrap:wrap;justify-content:flex-end;min-width:0}.admin-card-table .team-online{font-size:10px}.admin-card-table .team-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:none;width:100%}.admin-card-table .team-actions .button{width:100%;font-size:11px}.admin-card-table .team-check{font-size:12px!important;max-width:none}.admin-card-table .status-pill{font-size:10px;padding:4px 9px}.admin-table-empty td:before{display:none}
 .admin .stats{gap:8px;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:18px}.admin .stat{border-radius:15px;padding:13px 10px;min-width:0}.admin .stat small{font-size:9px}.admin .stat strong{font-size:24px}.admin .desk{min-height:360px;flex:1 0 360px;box-shadow:none;border-radius:18px}.admin .conversation-list{padding:8px;overflow:auto}.admin .conversation-item{padding:16px 10px}.admin .conv-first strong{font-size:13px}.admin .conv-preview{font-size:12px}.admin .conv-meta{font-size:10px}.admin .list-tabs{padding:14px 15px 0;gap:12px}.admin .list-tabs button{min-height:40px;font-size:11px}.admin .search{padding:11px;margin:0 15px}.admin .search input{font-size:14px!important}
 .admin-chat-active .topbar,.admin-chat-active .admin-mobile-nav{display:none}.admin-chat-active .main{padding-bottom:0}.admin .desk.chat-open{position:absolute;inset:0;z-index:40;min-height:0;border:0;border-radius:0;background:#fff;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.admin .chat-open .chat{width:100%;min-width:0;min-height:0;position:relative}.admin .chat-header{height:auto;min-height:62px;padding:8px 12px;gap:7px;flex-wrap:wrap;border-bottom:1px solid #e7eddf}.admin .chat-header>div{flex:1;min-width:0}.admin .chat-header h2{font-size:14px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin .chat-header .avatar{width:32px;height:32px;border-radius:11px;font-size:11px}.admin .chat-header .back-button{width:38px;min-width:38px}.admin .channel-label{display:none}.admin .chat-header>.button{min-height:38px;font-size:10px;padding:8px}.admin .admin-client-info{display:grid;background:#edf4e7;color:#356144}.admin .chat-messages{padding:0 14px 16px;min-height:0;flex:1}.admin .bubble{font-size:14px;line-height:1.65}.admin .message-block{max-width:90%}.admin .message-author{font-size:10px}.admin .message-time{font-size:9px}.admin .composer{margin:0 10px;padding:8px 10px;gap:8px;border-radius:16px}.admin .composer textarea{min-height:40px;max-height:120px}.admin .send-button{width:42px;height:42px;flex-shrink:0}.admin .composer-foot{font-size:8px;padding:7px 12px 10px}.admin .chat-language-tools{padding:7px 12px;gap:8px;min-height:0}.admin .chat-language-tools>span{display:none}.admin .chat-language-tools .button{font-size:10px;padding:7px 9px;min-height:34px}.admin .activity:empty{display:none}
 body.admin-session dialog{width:calc(100% - 24px);max-width:600px;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:auto;padding:22px 18px;border-radius:22px;overflow:auto;overscroll-behavior:contain}body.admin-session dialog .modal-heading{margin-bottom:20px;gap:12px}body.admin-session dialog .modal-heading h2{font-size:21px;line-height:1.3}body.admin-session dialog .modal-heading p{font-size:12px;line-height:1.6}body.admin-session dialog .form-stack{gap:17px}body.admin-session .admin-client-sheet .details{display:block;width:100%;padding:0 2px;border:0;background:transparent}body.admin-session .admin-client-sheet .detail-section>p{font-size:13px}body.admin-session .admin-client-sheet .detail-section .button{font-size:12px;width:100%}
 .admin .tools-summary{gap:8px}.admin .tools-summary>div{padding:14px 10px;border-radius:15px;min-width:0}.admin .tools-summary small{font-size:10px}.admin .tools-summary strong{font-size:24px}.admin .tools-filters{gap:12px}.admin .tools-filters>label{width:100%;flex-wrap:wrap}.admin .tools-filters select{max-width:none;width:100%}.admin .gestion-grid{grid-template-columns:minmax(0,1fr)}.admin .gestion-card{padding:20px}.admin .pay-worker-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:18px}.admin .pay-worker-row>.button{grid-column:1/-1}.admin .pay-month{width:100%;font-size:12px;justify-content:space-between}.admin .pay-month input{font-size:16px!important;width:auto;min-width:0}.admin .pay-tier{grid-template-columns:minmax(0,1fr)}.admin .pay-tier button{grid-column:auto;width:100%}.admin .store-picture-editor{grid-template-columns:minmax(0,1fr)}.admin .game-admin-shop-item{min-width:0}
 body.admin-session #toast{bottom:calc(86px + env(safe-area-inset-bottom));font-size:12px}.admin .settings-actions,.admin .team-tabs{flex-shrink:0}
 @keyframes admin-menu-enter{from{transform:translateX(-30px);opacity:.5}to{transform:translateX(0);opacity:1}}
}
@media(max-width:360px){.admin #page{padding-left:12px;padding-right:12px}.admin-card-table td:before{flex-basis:70px}.admin .topbar{gap:6px}.admin .chat-header .avatar{display:none}.admin .page-title h1{font-size:26px}}
@media(max-width:760px),(max-width:1100px) and (max-height:500px){.admin .game-shop-editor-grid{grid-template-columns:minmax(0,1fr);gap:20px}.admin .shop-sale-check{flex-direction:row;align-items:center}.admin .shop-sale-check input{width:18px;flex:0 0 18px}.admin #game-shop-editor>button[type=submit],.admin #store-editor>.settings-actions{position:sticky;bottom:0;z-index:3;box-shadow:0 -8px 22px #173e3314;border-radius:14px}.admin #store-editor>.settings-actions{background:#f3f6ed;padding:12px;border:1px solid #dce7d3}.admin .daily-days{grid-template-columns:minmax(0,1fr)}.admin .admin-game-stats,body.admin-session dialog .admin-game-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-card-table td>div{min-width:0;max-width:100%}.admin .store-picture-editor{display:grid;gap:18px;grid-template-columns:minmax(0,1fr)}.admin .store-picture-editor img{max-width:100%;height:auto}.admin .team-tabs{display:flex;gap:10px}.admin .team-tabs .button{flex:1}}
@media(max-width:760px),(max-width:1100px) and (max-height:500px){.admin-card-table tr[data-team-user]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;padding:8px 14px}.admin-card-table tr[data-team-user] td{display:block;min-width:0}.admin-card-table tr[data-team-user] td:before{display:block;margin-bottom:5px;font-size:8px}.admin-card-table tr[data-team-user] td:first-child{grid-column:1/-1;padding:12px 0 16px}.admin-card-table tr[data-team-user] td:first-child:before{display:none}.admin-card-table tr[data-team-user] .assigned{justify-content:flex-start;font-size:14px}.admin-card-table tr[data-team-user] .team-online{margin-left:auto}.admin-card-table tr[data-team-user] td:nth-child(5),.admin-card-table tr[data-team-user] td:last-child{grid-column:1/-1}.admin-card-table tr[data-team-user] td.admin-cell-empty{display:none}.admin-card-table tbody{gap:14px}.admin .team-tabs{justify-content:flex-start;padding:0;border:0;gap:8px;margin:0 0 18px}.admin .team-tabs button{border:1px solid #dce7d6;border-radius:12px;background:#fff;font-size:12px;min-height:44px;padding:10px 18px}.admin .team-tabs button.active{background:#e8f0df;color:#315537;border-color:#bfd3aa}.admin[data-admin-view=users] #page>.panel{padding:0;background:transparent;border:0;box-shadow:none}}
@media(max-width:760px),(max-width:1100px) and (max-height:500px){.admin .chat-header>div{flex:1 0 calc(100% - 100px);padding-right:2px}.admin .chat-header .chat-state{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.admin .chat-header>button:not(.back-button){height:36px;min-height:36px;min-width:36px}.admin .chat-header h2{font-size:15px;line-height:1.35}.admin .chat-header{gap:6px;padding:9px 12px}.admin .chat-header>.button{padding:6px 10px}.admin .admin-game-fields,body.admin-session dialog .admin-game-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:15px}.admin .admin-game-history,body.admin-session dialog .admin-game-history{padding-left:0}.admin .admin-game-history li,body.admin-session dialog .admin-game-history li{overflow-wrap:anywhere}}
@media(max-width:760px),(max-width:1100px) and (max-height:500px){.admin #page{scroll-padding:16px 0 90px}.admin #game-shop-editor{padding-bottom:20px}.admin-client-sheet .toggle{width:44px;height:28px;padding:6px}.admin-client-sheet .toggle i{width:16px;height:16px}.admin-client-sheet .toggle.on i{transform:translateX(16px)}.admin .chat-header #chat-control{margin-left:auto}.admin .chat-header #chat-avatar{flex:0 0 32px}}
@media(max-width:760px),(max-width:1100px) and (max-height:500px){body.admin-session dialog .bank-seed-fields{grid-template-columns:minmax(0,1fr);gap:15px}body.admin-session dialog .bank-seed-fields label:first-child{grid-column:auto}body.admin-session .bank-top{padding-top:max(14px,env(safe-area-inset-top))}body.admin-session .bank-content{padding-bottom:max(24px,env(safe-area-inset-bottom))}}
@media(max-width:760px),(max-width:1100px) and (max-height:500px){.admin .inbox{width:100%;border:0}.admin .desk:not(.chat-open)>.chat{display:none}.admin .desk.chat-open>.inbox{display:none}.admin .desk.chat-open>.chat{display:flex}.admin .chat-header .back-button{display:grid}}
@media(prefers-reduced-motion:reduce){.admin-mobile-menu-open .sidebar{animation:none}}
