 .dp-mobile-identity,.dp-mobile-details{display:none}
#dp-mobile-stats{display:none}
@media(max-width:640px){
 #dp-mobile-stats{display:flex;flex-shrink:0;gap:2px;padding:4px;background:#182932;border-bottom:1px solid #304752}
 #dp-mobile-stats button{flex:1;min-width:0;min-height:44px;padding:4px 2px;background:transparent;border:0;border-bottom:3px solid transparent;color:#b7c9d5;font:600 11px Arial,sans-serif;cursor:pointer}
 #dp-mobile-stats button[aria-pressed="true"]{color:#94e6c3;border-bottom-color:#94e6c3}
 #dp-mobile-stats button:focus-visible{outline:2px solid #94e6c3;outline-offset:-2px}
 #dp-body:not([data-view="pool"]) #dp-mobile-stats{display:none}
 #dp-shell #dp-t{table-layout:fixed;width:100%!important;min-width:100%!important}
 #dp-shell #dp-t [data-col]{display:none!important}
 #dp-shell #dp-t tr:not(.g)>[data-mobile-visible="true"]{display:table-cell!important;width:18%!important;min-width:0!important;max-width:none!important;font-size:12px;padding:10px 4px;overflow-wrap:anywhere}
 #dp-shell #dp-t tr:not(.g)>[data-col="player"]{width:46%!important}
 #dp-shell #dp-t [data-col="player"] .dp-nm{white-space:normal;font-size:13px;overflow-wrap:anywhere}
 #dp-shell #dp-t .dp-rz{display:none}
 #dp-shell #dp-t [data-col="rating"]{left:auto!important}
 html.dp-fit .dp-shell{padding-bottom:calc(112px + env(safe-area-inset-bottom));box-sizing:border-box}
 html.dp-fit #dp-body>.dp-layout:has(>.dp-side.open){grid-template-rows:minmax(0,1fr)}
 html.dp-fit #dp-body>.dp-layout{grid-template-rows:minmax(0,1fr)}
 #dp-body>.dp-views{position:fixed;inset:auto 0 0;z-index:120;margin:0;padding:6px 4px calc(6px + env(safe-area-inset-bottom));background:#182932;border-top:1px solid #304752;display:flex;gap:2px}
 #dp-body>.dp-views .dp-view{flex:1;min-width:0;min-height:44px;padding:6px 2px;font-size:11px;letter-spacing:0;border:0;border-top:3px solid transparent;background:transparent;color:#b7c9d5}
 #dp-body>.dp-views .dp-view[aria-selected="true"]{color:#94e6c3;border-top-color:#94e6c3}
 #dp-body>.dp-drawer{position:fixed;left:0;right:0;bottom:calc(59px + env(safe-area-inset-bottom));z-index:121;margin:0;padding:0 8px 5px;background:#0e191f}
 #dp-body>.dp-drawer button{border-radius:8px;color:#94e6c3;font-size:12px;text-align:center}
 #dp-body .dp-side.open{position:fixed;left:8px;right:8px;bottom:calc(110px + env(safe-area-inset-bottom));width:auto!important;height:60dvh;max-height:60dvh;z-index:122;border:1px solid #527769;border-radius:16px 16px 0 0;background:#182932;box-shadow:0 -16px 40px #0006;overflow:auto}
 #dp-body .dp-side.open .dp-sidetabs{position:sticky;top:0;background:#182932;z-index:3}
 #dp-body .dp-side.open .dp-sidecol{display:none}
 #dp-body .dp-side.open .dp-pane{display:block!important}
 #dp-body .dp-side.open .dp-siderail{display:none!important}
 /* Read-only history has no bottom editing controls. */
 html.dp-fit .dp-shell[data-frozen="1"]{padding-bottom:env(safe-area-inset-bottom)}
}

/* Phone player workspace: identity stays visible while the metrics change. */
@media(max-width:640px){
 html.dp-fit .dp-shell[data-fold="closed"] #dp-body[data-view="pool"]>.dp-controls{display:flex!important;padding:0 8px 4px;gap:4px}
 #dp-body[data-view="pool"]>.dp-controls>.dp-tabs:first-child{display:flex;flex-wrap:nowrap;width:100%;gap:2px}
 #dp-body[data-view="pool"]>.dp-controls>.dp-tabs:first-child button{flex:1;min-width:0;min-height:44px;padding:4px 0;font-size:12px;letter-spacing:0;border-radius:6px}
 #dp-body[data-view="pool"] .dp-qrow{margin:0}
 #dp-body[data-view="pool"] .dp-q{min-height:44px;font-size:16px;width:100%}
 html.dp-fit .dp-shell[data-fold="closed"] :is(#dp-dl-m,#dp-count,#dp-colreset){display:none!important}
 html.dp-fit .dp-shell[data-fold="closed"] #dp-chips:empty{display:none}
 #dp-body:not([data-view="pool"])>.dp-controls{display:none!important}
 #dp-shell #dp-t td[data-col="player"]{position:relative;padding:6px 24px 6px 40px!important;text-align:left}
 #dp-shell #dp-t td[data-col="player"]>.tm{display:none!important}
 #dp-shell #dp-t td[data-col="player"] .dp-add{position:absolute;left:0;top:50%;transform:translateY(-50%);width:38px;min-width:38px;height:44px;margin:0;border-radius:6px;background:#263e38;color:#94e6c3}
 #dp-shell #dp-t .dp-add .wd{display:none!important}
 #dp-shell #dp-t .dp-add .pl{display:inline!important}
 #dp-shell #dp-t td[data-col="player"] .dp-nm{font-size:12px;line-height:1.2;font-weight:700}
 #dp-shell #dp-t .dp-mobile-identity{display:block;font:10px/1.3 Arial,sans-serif;color:#b7c9d5;margin-top:2px;white-space:normal}
 #dp-shell #dp-t .dp-mobile-identity strong{display:block;color:#ecf2f4;font-size:11px;font-variant-numeric:tabular-nums}
 #dp-shell #dp-t .dp-mobile-details{position:absolute;right:0;top:0;bottom:0;display:block;width:24px;min-height:44px;background:none;border:0;padding:0;color:#94e6c3;font-size:0;cursor:pointer}
 #dp-shell #dp-t .dp-mobile-details::after{content:'›';font:600 18px Arial,sans-serif}
 #dp-shell #dp-t .dp-mobile-details[aria-expanded="true"]::after{content:'⌄'}
 #dp-shell #dp-t td[data-mobile-visible="true"]{padding-top:6px!important;padding-bottom:6px!important}
 #dp-shell #dp-t .dp-mobile-details:focus-visible{outline:2px solid #94e6c3}
 #dp-shell #dp-grid[data-mobile-columns="3"] #dp-t tr:not(.g)>[data-mobile-visible="true"]{width:23%!important}
 #dp-shell #dp-grid[data-mobile-columns="3"] #dp-t tr:not(.g)>[data-col="player"]{width:54%!important}
 #dp-shell #dp-grid[data-mobile-columns="5"] #dp-t tr:not(.g)>[data-mobile-visible="true"]{width:14.5%!important;font-size:12px!important;padding-left:2px;padding-right:2px}
 #dp-shell #dp-grid[data-mobile-columns="5"] #dp-t tr:not(.g)>[data-col="player"]{width:42%!important}
 #dp-shell #dp-grid[data-mobile-salary="true"] .dp-mobile-identity strong{display:none}
 #dp-shell #dp-t td[data-col="salary"]{white-space:nowrap;font-size:11px!important;overflow-wrap:normal!important}
 #dp-shell #dp-t td[data-col="player"]{height:44px}
 #dp-shell #dp-t tr.c th{letter-spacing:0;overflow-wrap:normal!important}
 #dp-shell #dp-t tr.c button{font-size:10px;letter-spacing:0}
 #dp-shell #dp-t .dp-xd{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #dp-shell #dp-t .dp-xra{flex-wrap:wrap}
 #dp-shell #dp-t .dp-xra button,#dp-shell #dp-t .dp-xra input{min-height:44px}
 #dp-body>.dp-drawer button{font-size:11px}
}
