/* Phone management and desktop player workspaces share the same routes and permissions. */
.admin-mobile-nav,.player-desktop-sidebar,.player-desktop-context{display:none}
.player-workspace{min-width:0}
.owner-game-id strong{overflow-wrap:anywhere}

@media(max-width:900px){
 .app-shell{display:block;min-height:100svh}
 .app-shell .app-main{grid-column:auto;min-width:0;padding-bottom:calc(82px + env(safe-area-inset-bottom))}
 .app-shell .sidebar{width:min(300px,86vw);transform:translateX(-100%);z-index:70;min-height:100svh;box-shadow:30px 0 80px #0008}
 .app-shell .sidebar.is-open{transform:none}
 .app-shell .mobile-sidebar-overlay{display:block;position:fixed;inset:0;z-index:65;background:#0009;opacity:0;pointer-events:none}
 .app-shell .mobile-sidebar-overlay.is-open{opacity:1;pointer-events:auto}
 .app-shell .mobile-menu{display:grid;flex:0 0 44px}
 .app-shell .topbar{height:64px;padding:0 14px;gap:8px}
 .app-shell .topbar-context strong{font-size:14px}
 .app-shell .topbar-context span{font-size:10px}
 .app-shell .global-search{display:none}
 .app-shell .icon-button{min-width:44px;min-height:44px}
 .app-shell .page-container{padding:20px 16px;max-width:700px}
 .app-shell .page-head{display:block;margin-bottom:20px}
 .app-shell .page-head h1{font-size:25px}
 .app-shell .page-head p{display:block;font-size:12px;margin-top:6px;line-height:1.6}
 .app-shell .page-eyebrow{font-size:10px;margin-bottom:8px}
 .app-shell .page-actions{display:flex;justify-content:flex-start;gap:8px;margin-top:16px;max-width:100%}
 .app-shell .page-actions .button{display:inline-flex!important;min-height:42px;font-size:12px;flex:1 1 auto;justify-content:center;white-space:normal}
 .app-shell .page-actions .segmented{width:100%;display:flex}
 .app-shell .page-actions .segment{flex:1;min-height:40px}
 .app-shell .page-actions .lx-date{flex:1;min-width:0;width:auto!important}
 .app-shell .page-actions>.input{width:calc(50% - 4px)!important;min-width:0}
 .app-shell .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
 .app-shell .metric-card{display:block!important;padding:16px 14px;min-width:0}
 .app-shell .metric-label{font-size:12px}
 .app-shell .metric-value{font-size:23px;overflow-wrap:anywhere}
 .app-shell .metric-note{font-size:10px;line-height:1.5}
 .app-shell .page-grid.cols-2,.app-shell .page-grid.equal,.app-shell .page-grid.cols-3{grid-template-columns:minmax(0,1fr)}
 .app-shell .panel{min-width:0;border-radius:14px}
 .app-shell .panel-header{padding:16px;gap:10px;flex-wrap:wrap}
 .app-shell .panel-body{padding:16px}
 .app-shell .panel-title h2{font-size:15px}
 .app-shell .panel-title p{font-size:11px;line-height:1.5}
 .app-shell .filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:16px;gap:12px}
 .app-shell .filters .field{display:flex!important;min-width:0;flex-direction:column}
 .app-shell .filters .field:first-child{grid-column:1/-1}
 .app-shell .filters label{font-size:12px}
 .app-shell .input,.app-shell .select,.app-shell .textarea{font-size:16px;min-height:44px}
 .app-shell .lx-control,.app-shell .lx-select-trigger,.app-shell .lx-date-trigger{min-width:0;min-height:44px}
 .app-shell .filter-actions{grid-column:1/-1;display:flex;gap:8px}
 .app-shell .filter-actions .button{min-height:42px;flex:1;font-size:13px}
 .app-shell .tabs{flex-wrap:wrap;gap:6px}
 :is(.app-shell,.overlay) .table-wrap:has(>.responsive-table){overflow:visible}
 :is(.app-shell,.overlay) .responsive-table{min-width:0;width:100%;display:block;border-collapse:separate}
 :is(.app-shell,.overlay) .responsive-table>thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 :is(.app-shell,.overlay) .responsive-table>tbody{display:grid;gap:12px;padding:0 12px 12px}
 :is(.app-shell,.overlay) .responsive-table>tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;padding:16px;background:#141419;border:1px solid #2b2b33;border-radius:13px;min-width:0}
 :is(.app-shell,.overlay) .responsive-table>tbody>tr>td{display:block;border:0;padding:0;min-width:0;font-size:13px;color:#e4e4e9;overflow-wrap:anywhere}
 :is(.app-shell,.overlay) .responsive-table>tbody>tr>td::before{content:attr(data-label);display:block;margin-bottom:5px;color:#93939f;font-size:11px;line-height:1.4;font-weight:400}
 :is(.app-shell,.overlay) .responsive-table>tbody>tr>td.responsive-primary{grid-column:1/-1;padding-bottom:12px;border-bottom:1px solid #ffffff0b}
 :is(.app-shell,.overlay) .responsive-primary::before{display:none!important}
 :is(.app-shell,.overlay) .responsive-primary .cell-primary{font-size:15px;line-height:1.5;white-space:normal}
 .app-shell .cell-secondary{font-size:11px;line-height:1.6;overflow-wrap:anywhere;white-space:normal}
 .app-shell .money-cell{font-size:15px;white-space:normal}
 :is(.app-shell,.overlay) .responsive-wide,:is(.app-shell,.overlay) .responsive-actions{grid-column:1/-1}
 :is(.app-shell,.overlay) .responsive-actions::before{display:none!important}
 :is(.app-shell,.overlay) .responsive-actions{padding-top:12px!important;border-top:1px solid #ffffff0b!important}
 .app-shell .row-actions{flex-wrap:wrap;justify-content:flex-start;gap:8px}
 .app-shell .row-actions .button{flex:1 1 auto;min-height:40px;font-size:12px;justify-content:center}
 .app-shell .seat-names{max-width:none;gap:6px}
 .app-shell .seat-name{font-size:11px;padding:5px 8px}
 :is(.app-shell,.overlay) .responsive-empty>td{grid-column:1/-1}
 :is(.app-shell,.overlay) .responsive-empty>td::before{display:none}
 .app-shell .table-footer{flex-wrap:wrap;padding:14px;gap:12px}
 .app-shell .pagination{flex-wrap:wrap}
 .app-shell .page-button{min-height:40px;min-width:40px}
 .app-shell .form-grid,.app-shell .grid-2,.app-shell .grid-3{grid-template-columns:minmax(0,1fr)}
 .app-shell .form-grid .span-2{grid-column:auto}
 .admin-mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:55;padding:8px max(10px,env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom));border-top:1px solid #2b2b33;background:#0e0e12}
 .admin-mobile-link{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-width:0;min-height:48px;font-size:11px;border:0;background:transparent;color:#9999a5;border-radius:10px}
 .admin-mobile-link i{font-style:normal;font-size:20px;line-height:1}
 .admin-mobile-link.is-active{color:#ff777d;background:#ef44440d}
 .app-shell .sidebar .nav-link{min-height:46px;font-size:14px}
 .app-shell .sidebar-user-meta strong{font-size:13px}
 .app-shell .sidebar-user-meta small{font-size:11px}
 .account-menu{max-width:calc(100vw - 24px)}
 .overlay .modal-panel{max-width:100%;max-height:100dvh}
 .overlay .modal-body .input,.overlay .modal-body .select,.overlay .modal-body .textarea{font-size:16px;min-height:44px}
 .overlay .modal-body .form-grid,.overlay .modal-body .grid-3,.overlay .modal-body .grid-2{grid-template-columns:minmax(0,1fr)}
 .overlay .modal-body .span-2{grid-column:auto}
 .overlay .responsive-table>tbody{padding:12px 0}
 .overlay .responsive-table>tbody>tr{padding:14px}
 .overlay .responsive-table td .input,.overlay .responsive-table td .lx-control{width:100%;min-width:0}
 .overlay [data-admin-slot] .responsive-primary{font-weight:700}
 .overlay [data-admin-slot] .responsive-primary::before{display:inline!important;content:"位置 ";color:var(--text);font-size:13px}
 .overlay .responsive-table td input[type=checkbox]{width:24px;height:24px}
 .overlay .modal-footer{gap:8px;padding-bottom:max(16px,env(safe-area-inset-bottom));flex-wrap:wrap}
 .overlay .modal-footer .button{min-height:44px;flex:1 1 auto;justify-content:center}
 .drawer{width:min(100vw,720px)}
 .drawer-footer{flex-wrap:wrap;padding-bottom:max(16px,env(safe-area-inset-bottom))}
 .drawer-footer .button{min-height:44px;flex:1 1 auto;justify-content:center}
}

@media(min-width:901px){
 .player-shell{--player-sidebar:224px;display:grid;grid-template-columns:var(--player-sidebar) minmax(0,1fr);max-width:none;margin:0;min-height:100vh;padding:0;background:radial-gradient(circle at 85% 0,#ef444409,transparent 35%),#09090b;box-shadow:none}
 .player-workspace{grid-column:2;min-width:0}
 .player-desktop-sidebar{display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:var(--player-sidebar);z-index:40;border-right:1px solid #ffffff0b;background:#0c0c10}
 .player-desktop-brand{display:flex;align-items:center;gap:12px;padding:24px 20px;border-bottom:1px solid #ffffff0b}
 .player-desktop-brand img{width:46px;height:46px;object-fit:contain}
 .player-desktop-brand strong{display:block;font-size:17px;letter-spacing:.07em}
 .player-desktop-brand small{display:block;font-size:10px;color:#777783;letter-spacing:.17em;margin-top:4px}
 .player-desktop-nav{display:grid;gap:6px;padding:24px 14px}
 .player-desktop-caption{font-size:10px;color:#686874;letter-spacing:.12em;padding:0 12px 8px}
 .player-desktop-link{display:flex;align-items:center;gap:12px;min-height:46px;padding:0 14px;border:1px solid transparent;border-radius:10px;color:#a7a7b3;font-size:13px}
 .player-desktop-link i{font-size:18px;font-style:normal;width:20px;text-align:center}
 .player-desktop-link:hover{color:#f4f4f5;background:#18181d}
 .player-desktop-link.is-active{color:#fff;background:linear-gradient(90deg,#ef444423,#ef444407);border-color:#ef44442b}
 .player-desktop-footer{margin-top:auto;padding:18px 16px;border-top:1px solid #ffffff0b}
 .player-desktop-identity{display:flex;gap:10px;align-items:center;margin-bottom:12px;min-width:0}
 .player-desktop-identity>div:last-child{min-width:0}
 .player-desktop-identity strong{display:block;font-size:13px;overflow-wrap:anywhere}
 .player-desktop-identity span{display:block;font-size:11px;color:#9797a3;margin-top:4px}
 .player-desktop-footer>.button{width:100%;justify-content:center;min-height:38px}
 .player-header{height:76px;padding:0 30px;gap:12px;position:sticky;top:0;border-bottom:1px solid #ffffff0b;background:#09090bed}
 .player-header>img{display:none}
 .player-desktop-context{display:block;flex:1}
 .player-desktop-context strong{display:block;font-size:16px}
 .player-desktop-context span{display:block;color:#767682;font-size:11px;margin-top:4px}
 .player-header-main{flex:0 1 auto;text-align:right;margin-right:6px}
 .player-header-main strong{font-size:13px}
 .player-header-main span{font-size:11px}
 .player-page{padding:28px 30px 36px;max-width:1580px;margin:0 auto}
 .player-bottom-nav{display:none}
 .player-hero{padding:24px 28px;border-radius:16px;display:flex;align-items:center;justify-content:space-between;gap:28px}
 .player-hero-top{flex:1;min-width:0;align-items:center}
 .player-hero h1{font-size:25px;margin-top:10px}
 .player-hero p{font-size:12px}
 .player-hero-metrics{width:min(48%,510px);margin:0;gap:12px;flex:0 0 auto}
 .player-hero-metric{padding:16px 12px;border-radius:11px}
 .player-hero-metric label{font-size:11px}
 .player-hero-metric strong{font-size:18px;margin-top:7px;overflow-wrap:anywhere}
 .mobile-section-head{margin:26px 0 14px}
 .mobile-section-head h2{font-size:18px}
 .mobile-section-head span{font-size:12px}
 .mobile-filter-row{gap:8px;flex-wrap:wrap;overflow:visible;margin-bottom:16px}
 .mobile-filter{min-height:38px;font-size:12px;padding:0 16px}
 .player-order-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:stretch}
 .player-order-grid>.order-card,.player-order-grid>.mobile-list-item{margin:0;min-width:0;padding:22px;border-radius:14px}
 .player-order-grid>.order-card{display:flex;flex-direction:column}
 .order-card-head h3,.mobile-list-item-head h3{font-size:17px;line-height:1.5;overflow-wrap:anywhere}
 .order-card-head p,.mobile-list-item-head p{font-size:11px;line-height:1.6}
 .order-card-price span{font-size:11px}
 .order-card-price strong{font-size:23px}
 .player-order-grid .order-card-actions{margin-top:auto;padding-top:18px}
 .order-card-actions .button{min-height:42px;font-size:13px}
 .player-order-grid .seat-grid{margin-bottom:14px}
 .player-order-grid .owner-game-id{margin:16px 0!important;background:#1c1519}
 .player-order-grid .owner-game-id strong{font-size:20px!important}
 .mobile-list-stats{gap:12px;margin-top:16px}
 .mobile-list-stat label{font-size:11px}
 .mobile-list-stat strong{font-size:16px}
 .my-arrival-row{margin-top:18px;flex-wrap:wrap;gap:8px}
 .my-arrival-row .button{min-height:38px;font-size:12px}
 .player-earnings-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 .player-earnings-list>.mobile-list-item{margin:0;padding:22px;min-width:0}
 .player-profile-layout{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:22px;align-items:start}
 .player-profile-layout .mobile-profile-card{margin:0;min-height:280px;padding:30px 24px}
 .player-profile-layout .mobile-menu-list{margin:0}
 .player-profile-layout .mobile-menu-item{min-height:58px;padding:16px 20px;font-size:13px;gap:16px}
 .player-profile-layout .mobile-menu-item strong{overflow-wrap:anywhere;text-align:right}
 .player-profile-layout .mobile-profile-main h2{font-size:23px}
 .leaderboard-hero{padding:28px}
 .leaderboard-hero h1{font-size:28px}
 .board-me{justify-content:flex-start;gap:80px}
 .rank-period-toolbar{margin:22px 0}
 .board-row{min-height:90px;padding:18px 24px}
 .board-person strong{font-size:16px}
 .board-person p{font-size:12px}
 .board-income strong{font-size:23px}
 .player-page>.site-footer{grid-column:1/-1;margin-top:32px;padding:16px 0}
}
@media(min-width:980px){.player-order-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1660px){.player-order-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:901px) and (max-width:1179px){
 .player-shell{--player-sidebar:200px}
 .player-page{padding:24px}
 .player-header{padding:0 24px}
 .player-hero{display:block}
 .player-hero-metrics{width:100%;margin-top:20px}
 .player-profile-layout,.player-earnings-list{grid-template-columns:1fr}
}
@media(max-width:900px){
 .player-shell{max-width:600px}
 .player-order-grid{display:block}
 .player-workspace{display:block}
 .player-bottom-nav{padding-bottom:max(8px,env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.app-shell .sidebar,.app-shell .mobile-sidebar-overlay{transition:none}}
