.mobile-nav,.mobile-payout-list,.mobile-dashboard-motto{display:none}
@media(max-width:650px){
 body:not(:has(.kael-login)){grid-template:"header" auto "content" minmax(0,1fr) "sidebar" auto/minmax(0,1fr)}
 body:not(:has(.kael-login))>header{grid-template-columns:minmax(0,1fr) auto;padding:7px 12px;min-height:48px}
 body>header .header-motto,body>header .staff-pill{display:none!important}
 body>aside{z-index:4;padding:0 5px env(safe-area-inset-bottom,0px);background:#fff;border-top:1px solid #eae2f3;box-shadow:0 -4px 18px #26133e12}
 body>aside #nav{display:none}
 .mobile-nav{display:flex;align-items:stretch;justify-content:space-evenly;min-height:56px}
 .mobile-nav>button,.mobile-more>summary{width:100%;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;background:none;padding:4px 2px;font-size:11px;white-space:nowrap;color:#514761;cursor:pointer}
 .mobile-nav>button,.mobile-more{flex:1;min-width:0}
 .mobile-nav svg{width:19px;height:19px}
 .mobile-more summary svg{fill:currentColor}.mobile-more summary{list-style:none}.mobile-more summary::-webkit-details-marker{display:none}
 .mobile-nav [aria-current=page],.mobile-more .is-current{color:#6336bf;background:#f3ebff;border-radius:10px;font-weight:700}
 .mobile-more-menu{position:absolute;right:8px;bottom:calc(100% + 6px);display:grid;gap:3px;max-height:60dvh;overflow:auto;width:min(210px,calc(100vw - 16px));padding:6px;background:#fff;border:1px solid #e6dcf1;border-radius:12px;box-shadow:0 9px 24px #27194026}
 .mobile-more-menu button{display:flex;align-items:center;gap:8px;text-align:left;min-height:43px;padding:7px 10px;border:0;font-size:13px}
 .mobile-dashboard-motto{display:block;margin:8px 0 0;font-weight:600;color:#6646a0;font-size:13px}
 .desktop-payout-table{display:none!important}
 .mobile-payout-list{display:grid;gap:8px;margin-top:12px}
 .mobile-payout{min-width:0;padding:10px 12px;border:1px solid #e9e0f3;border-radius:12px;background:#fff}
 .mobile-payout-primary,.mobile-payout-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
 .mobile-payout-primary>strong{font-size:18px;color:#322147}
 .mobile-payout-meta{margin:6px 0 0;color:#685d75;font-size:13px}.mobile-payout-meta button,.mobile-payout dd button{font-size:inherit;padding:4px 5px}
 .mobile-payout details{margin-top:8px;border-top:1px solid #f0eaf7}.mobile-payout summary{padding:8px 0 2px;color:#63449a;font-size:13px;cursor:pointer}
 .mobile-payout dl{margin:5px 0 0;font-size:13px}.mobile-payout dl>div{display:grid;grid-template-columns:88px minmax(0,1fr);gap:5px;padding:4px 0}.mobile-payout dt{color:#776c84}.mobile-payout dd{margin:0;overflow-wrap:anywhere}
 .mobile-payout .withdrawal-reason,.mobile-payout .partner-withdrawal-status{vertical-align:middle}
 .mobile-payout .withdrawal-info svg,.mobile-payout .partner-withdrawal-info svg{width:15px;height:15px}
 .team-pager button{min-height:34px}.team-pager{padding-bottom:4px}
 body>main:has(#partnerLogin),body>main:has(#staffLogin){padding:0}
}

@media(max-width:650px){
 .mobile-more:not([open]) .mobile-more-menu{display:none}
 .mobile-payout .withdrawal-reason{display:inline-flex;align-items:center;gap:5px;padding:0;border:0;background:transparent;color:#805315}.mobile-payout .withdrawal-reason.failed{color:#99314b}
 .mobile-payout .partner-withdrawal-info{display:grid;place-items:center;padding:0;border:0;background:transparent;color:#7042b5}
 .mobile-payout .withdrawal-state-label{width:auto;white-space:nowrap}.mobile-payout .partner-payout-label{white-space:nowrap}
}

/* Shared pagination alignment for desktop tables and mobile dialogs. */
.team-pager{align-items:center;column-gap:8px;row-gap:7px}
.team-pager>span,.team-pager>label,.team-pager>.page-jump{flex:0 0 auto;white-space:nowrap}
.team-pager>label,.team-pager>.page-jump,.team-pager>.page-jump>label{display:inline-flex;flex-wrap:nowrap;align-items:center;gap:6px;margin:0}
.team-pager>label>.period-picker,.team-pager>label>select{flex:none;width:auto;margin:0}
.team-pager>button,.team-pager>.page-jump>button,.team-pager .page-jump input,.team-pager>label>select,.team-pager>label>.period-picker>summary{box-sizing:border-box;min-height:36px;line-height:20px}
.team-pager>button,.team-pager>.page-jump>button{white-space:nowrap}
.team-pager>label>.period-picker>summary{display:flex;align-items:center;margin:0}
.team-pager>label>.period-picker::after{top:50%}
@media(max-width:440px){
 .team-pager{justify-content:flex-start}
 .team-pager>span{flex-basis:100%}
}

@media(max-width:650px){
 body>aside .mobile-nav{align-items:center;gap:4px}
 body>aside .mobile-nav>button,.mobile-nav>.mobile-more>summary{
  box-sizing:border-box;height:52px;min-height:52px;
  display:grid;grid-template-rows:20px 15px;place-content:center;justify-items:center;
  gap:3px;margin:0;padding:0 2px;border-radius:10px;line-height:15px;
 }
 .mobile-nav>button svg,.mobile-nav>.mobile-more>summary svg{display:block;width:20px;height:20px;margin:0}
 body>aside .mobile-nav>button .nav-icon{color:currentColor}
 body>aside .mobile-nav>button[aria-current=page],.mobile-nav>.mobile-more>summary.is-current{
  color:#6336bf;background:#f3ebff;font-weight:700;
 }
}
.password-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px}
tr[hidden]{display:none!important}.local-list-pager{margin-top:12px}
