
:root{
 --bg:#0a0e14;--panel:#141b24;--panel2:#1b2430;--line:#2c394a;--text:#edf4fb;--muted:#91a0b2;
 --blue:#63aaff;--green:#64d88d;--red:#ff7e7e;--gold:#ffd36b;--purple:#bd93ff;--cyan:#66d7e8;
}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 18% -12%,#173a67 0,transparent 30%),linear-gradient(180deg,#090d13,#101722 52%,#090d13);color:var(--text);font-family:Inter,Pretendard,system-ui,-apple-system,"Segoe UI",sans-serif}
button,select,input{font:inherit}button{cursor:pointer}.hidden{display:none!important}
.app{max-width:1440px;margin:auto;padding:12px}.top{position:sticky;top:7px;z-index:40;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 13px;background:#121923ed;border:1px solid var(--line);border-radius:15px;backdrop-filter:blur(12px)}
.brand{display:flex;gap:10px;align-items:center}.logo{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#67acff,#285e9e);display:grid;place-items:center;font-weight:900}.brand h1{font-size:18px;margin:0}.brand small{display:block;color:var(--muted)}
.btn{border:1px solid var(--line);background:#202a38;color:#edf4fb;border-radius:9px;padding:8px 11px}.btn:hover{filter:brightness(1.1)}.btn.primary{background:var(--blue);border-color:#83bfff;color:#081421;font-weight:800}.btn.good{background:#214d36;border-color:#31714e}.btn.red{background:#512727;border-color:#753939}.btn.gold{background:#57461f;border-color:#7c652e}.btn.purple{background:#382654;border-color:#5a3b86}
.actions{display:flex;gap:6px;flex-wrap:wrap}.layout{display:grid;grid-template-columns:235px 1fr;gap:12px;margin-top:12px}.side,.box{background:#141b24f4;border:1px solid var(--line);border-radius:15px}.side{position:sticky;top:82px;height:max-content;padding:9px}.clubchip{padding:11px;background:#0f151d;border:1px solid var(--line);border-radius:12px;margin-bottom:8px}.clubchip b{display:block}.clubchip small{color:var(--muted)}
.nav{width:100%;text-align:left;border:0;background:transparent;color:#c8d3e0;padding:9px 10px;border-radius:9px;margin:1px 0}.nav:hover,.nav.active{background:#263347;color:white}.main{min-width:0}.box{padding:15px}.card{background:var(--panel2);border:1px solid var(--line);border-radius:13px;padding:12px}.section{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}.section h2,.section h3{margin:0}
.g2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.g3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.g4{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.g5{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}
.kpi{background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:11px}.kpi span{display:block;color:var(--muted);font-size:12px}.kpi b{font-size:21px}.pill{display:inline-block;padding:4px 7px;border-radius:999px;background:#283445;color:#ccd8e7;font-size:11px}.pill.good{background:#1e4d35;color:#c1f3d1}.pill.bad{background:#4d2828;color:#ffc1c1}.pill.warn{background:#4c3c1f;color:#ffe1a5}.pill.blue{background:#173d66;color:#c1dfff}.pill.purple{background:#382658;color:#dec8ff}.pill.cyan{background:#173f45;color:#bff5fa}
.notice{background:#10233b;border:1px solid #28517b;color:#cbe6ff;padding:9px 11px;border-radius:10px;font-size:13px;line-height:1.55}.warnbox{background:#332915;border:1px solid #665329;color:#ffe2a8;padding:9px 11px;border-radius:10px;font-size:13px}
.table{overflow:auto;border:1px solid var(--line);border-radius:11px}table{width:100%;border-collapse:collapse;min-width:820px}th,td{padding:8px;border-bottom:1px solid #2a3645;text-align:center;font-size:12px}th{background:#202a37;color:#aab7c6;position:sticky;top:0;z-index:2}td:first-child,th:first-child{text-align:left}
.player{display:grid;grid-template-columns:42px 1fr auto;gap:9px;align-items:center;padding:8px 0;border-bottom:1px solid #293544}.player:last-child{border-bottom:0}.avatar{width:42px;height:42px;border-radius:10px;background:linear-gradient(135deg,#354b69,#202a38);display:grid;place-items:center;font-weight:900;color:#add5ff}.player small{color:var(--muted)}.rating{font-size:21px;font-weight:900}
.progress{height:7px;background:#0e141c;border-radius:99px;overflow:hidden}.progress>div{height:100%;background:linear-gradient(90deg,#5ea8ff,#78c2ff)}
.mail{padding:10px 0;border-bottom:1px solid #293544}.mail:last-child{border-bottom:0}.mail small{display:block;color:var(--muted);margin-top:3px}
.slider{display:grid;grid-template-columns:140px 1fr 54px;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #2a3544}.slider input{width:100%}
.row{display:grid;grid-template-columns:33px 1fr 60px 52px;gap:7px;align-items:center;padding:6px 0;border-bottom:1px solid #2a3544}.row select{background:#101720;color:white;border:1px solid #354257;padding:6px;border-radius:8px;width:100%}
.offer{background:#151d27;border:1px solid var(--line);border-radius:12px;padding:11px}.offer.selected{border-color:#69adff;background:#192b40}
.log{height:390px;overflow:auto;background:#0d131a;border:1px solid var(--line);border-radius:11px;padding:11px;font-size:13px;line-height:1.6}.log .s{color:var(--gold);font-weight:800}.log .h{color:#8dccff}.log .r{color:#7be49e;font-weight:800}.log .o{color:#98a5b5}.log .e{color:#d4b8ff}
.overlay{position:fixed;inset:0;background:rgba(4,7,11,.92);z-index:100;display:grid;place-items:center;padding:16px}.modal{width:min(1180px,97vw);max-height:93vh;overflow:auto;background:#131a23;border:1px solid #344457;border-radius:19px;padding:18px;box-shadow:0 35px 110px #000b}
.teamgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.teamopt,.philosophy{border:1px solid var(--line);background:#18212c;color:white;border-radius:13px;padding:13px;text-align:left}.teamopt.selected,.philosophy.selected{border-color:#70b3ff;background:#1a2e46}.teamopt h3,.philosophy h3{margin:0 0 5px}.teamopt p,.philosophy p{color:var(--muted);font-size:12px;line-height:1.45}.steps>div{display:none}.steps>div.active{display:block}
.phasebar{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}.phasebar span{padding:5px 8px;border-radius:999px;background:#202a36;color:#92a0b2;font-size:11px}.phasebar span.on{background:#204875;color:#d3eaff}
.money{font-variant-numeric:tabular-nums}.big{font-size:29px;font-weight:900}.center{text-align:center}.empty{text-align:center;color:var(--muted);padding:22px}
footer{text-align:center;color:#6c7887;font-size:12px;padding:16px}
@media(max-width:960px){.layout{grid-template-columns:1fr}.side{position:static;display:flex;overflow:auto;gap:4px;padding:7px}.clubchip{display:none}.nav{white-space:nowrap;width:auto}.g2,.g3,.teamgrid{grid-template-columns:1fr}.g4,.g5{grid-template-columns:repeat(2,1fr)}.top{position:static;flex-direction:column;align-items:flex-start}.slider{grid-template-columns:105px 1fr 45px}}

.playerlink{background:none;border:0;color:#d9ebff;font-weight:800;padding:0;cursor:pointer}.playerlink:hover{color:#78b9ff;text-decoration:underline}.task{display:flex;gap:10px;align-items:flex-start;padding:10px;border:1px solid var(--line);background:#131b25;border-radius:11px;margin:6px 0}.task .ico{width:34px;height:34px;border-radius:9px;background:#24354a;display:grid;place-items:center;font-weight:900}.newsitem{padding:10px 0;border-bottom:1px solid #293544}.newsitem:last-child{border-bottom:0}.trendup{color:#70e49a}.trenddown{color:#ff8c8c}.modal2{position:fixed;inset:0;background:#0009;z-index:120;display:grid;place-items:center;padding:16px}.modalcard{width:min(880px,96vw);max-height:90vh;overflow:auto;background:#151d27;border:1px solid #40516a;border-radius:18px;padding:16px}.statgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.statbox{background:#111821;border:1px solid var(--line);border-radius:10px;padding:9px;text-align:center}.statbox span{display:block;color:var(--muted);font-size:11px}.statbox b{font-size:20px}.seasonchip{display:inline-flex;gap:5px;align-items:center;padding:6px 8px;border-radius:9px;background:#1a2532;border:1px solid var(--line);margin:2px}.difficulty{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.difficulty button{padding:12px;text-align:left}.offstep{padding:11px;border-left:3px solid #31445b;background:#121923;margin:6px 0;border-radius:8px}.offstep.done{border-left-color:#59d487;opacity:.8}.foreigncard{background:#151e29;border:1px solid var(--line);border-radius:12px;padding:11px}.spark{font-family:monospace;letter-spacing:1px;color:#8ccaff}@media(max-width:760px){.statgrid,.difficulty{grid-template-columns:repeat(2,1fr)}}

.filterbar{display:flex;gap:7px;flex-wrap:wrap;align-items:center;padding:10px;background:#101720;border:1px solid var(--line);border-radius:11px;margin-bottom:10px}
.filterbar select,.filterbar input{background:#17202c;color:#eef4fb;border:1px solid #35445a;border-radius:8px;padding:7px 8px}
.filterbar input[type=number]{width:82px}.filterbar input[type=text]{min-width:150px;flex:1}
.scouttag{display:inline-block;margin-left:4px;padding:2px 5px;border-radius:6px;font-size:10px;background:#26364a;color:#bcd8fa}
.scout-A{background:#184c35;color:#c6f5d8}.scout-B{background:#183e62;color:#c9e4ff}.scout-C{background:#4b3d20;color:#ffe0a3}.scout-D{background:#4c2929;color:#ffc5c5}
.need-high{color:#ffba76}.need-mid{color:#ffe59b}.need-low{color:#8fe1ac}.tradehint{font-size:11px;color:var(--muted);line-height:1.5;margin-top:4px}
.valuebadge{float:right;font-weight:800;color:#a9d4ff}.sorthead{cursor:pointer;user-select:none}.sorthead:hover{color:#fff}
.pot-no-upside{color:#99a4b3}.pot-young{color:#8de6a9}.pot-risk{color:#ffd47d}


.offerbox{border:1px solid #3a4d66;background:#121c28;border-radius:13px;padding:12px;margin:8px 0}
.offerbox.hot{border-color:#d9a84a;background:#2a2416}.offerbox.done{opacity:.58}
.offerassets{display:flex;gap:5px;flex-wrap:wrap;margin:6px 0}.asset{font-size:11px;padding:4px 7px;border-radius:8px;background:#243247;color:#d9e8fa}
.deadline{padding:8px 10px;border-radius:10px;background:#221c13;border:1px solid #59461f;color:#ffe2a3;font-size:12px}
.badgecount{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;background:#d95757;color:#fff;border-radius:999px;font-size:10px;margin-left:4px}
.awardcard{padding:10px;border-bottom:1px solid #293544}.awardcard:last-child{border-bottom:0}.awardname{color:var(--gold);font-weight:800}
.timeline{border-left:2px solid #33445a;margin-left:8px;padding-left:13px}.timelineitem{margin:9px 0}.muted{color:var(--muted)}


.bizgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.bizline{display:grid;grid-template-columns:130px 1fr auto;gap:9px;align-items:center;padding:8px 0;border-bottom:1px solid #293544}
.skillrow{display:grid;grid-template-columns:120px 1fr 46px;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid #293544}
.jobcard{background:#141e2a;border:1px solid var(--line);border-radius:12px;padding:11px;margin:6px 0}.jobcard.hot{border-color:#d7a84d;background:#282216}
.fanbar{height:9px;background:#0c1219;border-radius:99px;overflow:hidden}.fanbar div{height:100%;background:linear-gradient(90deg,#67aaff,#66d7e8)}
.revenue{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.revenue>div{background:#111923;border:1px solid #293748;border-radius:9px;padding:8px}.revenue span{display:block;color:var(--muted);font-size:11px}.revenue b{font-size:16px}
.star{color:#ffd36b}.status-unemployed{background:#4c2929;color:#ffc5c5}.status-employed{background:#1e4d35;color:#c1f3d1}
.legacy{font-size:38px;font-weight:900;color:#ffd36b}.facility{display:grid;grid-template-columns:1fr 46px auto;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #293544}
.postingcard{border:1px solid #38506a;background:#142131;border-radius:12px;padding:12px;margin:7px 0}
@media(max-width:900px){.bizgrid{grid-template-columns:repeat(2,1fr)}.revenue{grid-template-columns:1fr}}


.roster-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:10px}
.roster-summary .kpi b{font-size:19px}
.roster-actions{display:flex;gap:7px;flex-wrap:wrap;margin:9px 0}
.active-yes{color:#78e49e;font-weight:800}.active-no{color:#a0aaba}.farmrisk-high{color:#ff8c8c;font-weight:800}.farmrisk-mid{color:#ffd37d}.farmrisk-low{color:#8fe1ac}
@media(max-width:900px){.roster-summary{grid-template-columns:repeat(2,1fr)}}


.simplefilters{display:flex;gap:7px;flex-wrap:wrap;align-items:center;padding:9px;background:#101720;border:1px solid var(--line);border-radius:10px;margin-bottom:9px}.simplefilters select,.simplefilters input{background:#17202c;color:#eef4fb;border:1px solid #35445a;border-radius:8px;padding:7px}.simplefilters input{width:78px}
.spring-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:10px}.spring-step{padding:10px 0;border-bottom:1px solid #293544}.spring-step:last-child{border-bottom:0}.campweek{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.campweek div{padding:9px;border:1px solid #344355;border-radius:9px;text-align:center;background:#121a24}.campweek .done{background:#183d2b;border-color:#2d6b4b}.campweek .now{background:#173a60;border-color:#3a76b0}
.interest-high{background:#1f4d35;color:#c4f2d3}.interest-mid{background:#4c3d20;color:#ffe1a5}.interest-low{background:#4a2d24;color:#ffd0b0}.interest-no{background:#4d2828;color:#ffc1c1}.country{color:#9bcfff;font-size:11px}.scoutlevel{font-size:11px;color:#b7c6d7}.pooltag{display:inline-block;padding:3px 6px;border-radius:6px;background:#243246;margin-right:4px;font-size:10px}.spring-head{font-size:13px;color:#9fb0c4}.opening{font-size:26px;font-weight:900}.contract-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}
@media(max-width:900px){.spring-grid{grid-template-columns:1fr}.campweek{grid-template-columns:repeat(2,1fr)}}


.storycard{border:1px solid #3b4f68;background:linear-gradient(135deg,#162334,#141c28);border-radius:13px;padding:12px;margin:8px 0}.storycard.urgent{border-color:#c99843;background:linear-gradient(135deg,#2d2618,#1b1b1d)}
.storychoices{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.storychoices .btn{flex:1;min-width:130px}.objective{display:grid;grid-template-columns:46px 1fr auto;gap:10px;align-items:center;padding:10px;background:#101923;border:1px solid #2d3b4e;border-radius:11px}.objective .icon{font-size:26px;text-align:center}.objective .reward{font-size:11px;color:#ffd36b}.objective.done{border-color:#28754c;background:#10251b}.timeline{display:flex;gap:4px;margin:8px 0 12px}.timeline>div{height:7px;flex:1;background:#232e3c;border-radius:99px}.timeline>div.on{background:#63aaff}.timeline>div.done{background:#54c77d}.achievement{display:inline-block;padding:5px 8px;margin:2px;border-radius:8px;background:#252038;border:1px solid #4a3d6d;color:#dccaff;font-size:11px}.quickplay{display:flex;gap:7px;flex-wrap:wrap}.quickplay .btn{flex:1;min-width:150px}.impact{font-size:11px;color:#99abc0;margin-top:3px}.storylog{padding:8px 0;border-bottom:1px solid #293544}.storylog:last-child{border-bottom:0}


.master-ribbon{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.master-ribbon span{background:#111923;border:1px solid var(--line);padding:7px 10px;border-radius:999px;font-size:11px;color:#b9c6d6}
.story-feed{display:grid;gap:8px}.story-entry{background:#121a24;border:1px solid #2b394a;border-radius:11px;padding:10px 11px}
.story-entry b{display:block;margin-bottom:4px}.story-entry small{color:var(--muted)}
.milestone-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.milestone-grid .card{min-height:96px}
.spark{color:#ffd36b}.story-choice{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:9px}
.story-choice .btn{white-space:normal;text-align:left;line-height:1.35}
.legend-pill{display:inline-block;padding:3px 7px;border-radius:999px;font-size:10px;background:#2c233c;color:#d7c2ff;margin-left:4px}
@media(max-width:900px){.milestone-grid,.story-choice{grid-template-columns:1fr}}


/* DIRECTOR FINAL */
.groupnav{margin-top:8px;display:grid;gap:5px;padding-top:7px;border-top:1px solid var(--line)}
.groupnav .subbtn{width:100%;text-align:left;background:#121a24;border:1px solid #2a3746;color:#bbc9d8;padding:8px 9px;border-radius:8px;font-size:12px}
.groupnav .subbtn:hover,.groupnav .subbtn.on{border-color:#5386ba;color:#fff;background:#1a2b3d}
.depthdiamond{position:relative;min-height:430px;border:1px solid #324457;border-radius:18px;background:radial-gradient(circle at 50% 55%,#1c3a2a 0 13%,#173321 14% 35%,#14241b 36% 100%);overflow:hidden}
.depthspot{position:absolute;width:120px;transform:translate(-50%,-50%);padding:8px;border-radius:11px;border:2px solid #4b6074;background:#111923dd;text-align:center;box-shadow:0 4px 18px #0005}
.depthspot b{font-size:18px}.depth-A{border-color:#62d68c}.depth-B{border-color:#a6d56a}.depth-C{border-color:#e0ca68}.depth-D{border-color:#e89b55}.depth-E{border-color:#dc6666}
.negobox{border:1px solid #3b5065;background:#121d29;border-radius:12px;padding:11px;margin:8px 0}.negobox.hot{border-color:#d29d4c;background:#292316}
.tradeassetgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.assetlist{max-height:520px;overflow:auto}.assetrow{width:100%;display:grid;grid-template-columns:26px 1fr auto;gap:8px;align-items:center;text-align:left;background:#101822;border:1px solid #273649;border-radius:8px;padding:7px;margin:3px 0}.assetrow.selected{background:#193451;border-color:#5593d2}.assetrow .mini{font-size:10px;color:var(--muted)}
.tradefilters,.directorfilters{display:flex;gap:6px;flex-wrap:wrap;margin:7px 0}.tradefilters select,.tradefilters input,.directorfilters select,.directorfilters input{min-height:34px}
.response-good{color:#84dfa4}.response-mid{color:#f1d27b}.response-bad{color:#f09183}.response-no{color:#ff8585;font-weight:800}
.foreignthread{border-left:3px solid #46617c;padding-left:10px;margin:9px 0}.foreignmsg{background:#121b26;border:1px solid #2b3948;border-radius:9px;padding:8px;margin:5px 0}
.tasklock{background:#301d20;border:1px solid #754149;border-radius:11px;padding:10px;margin:6px 0}.taskok{background:#163122;border-color:#2f6547}
.strategycard{border:1px solid #2e3e50;background:#121b25;border-radius:12px;padding:11px;margin:6px 0}.strategycard.selected{border-color:#66a6e6;background:#172b40}
.rolegrid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.rolegrid label{display:grid;grid-template-columns:90px 1fr;gap:7px;align-items:center}
.liveboard{display:grid;grid-template-columns:1fr 160px 1fr;gap:10px;align-items:center;text-align:center}.liveboard .score{font-size:48px;font-weight:900}.inningstrip{display:flex;gap:4px;overflow:auto;padding:5px 0}.inningstrip span{min-width:30px;border:1px solid #304154;border-radius:6px;padding:4px;font-size:11px}
.liveevent{background:#1d2631;border:1px solid #4d637a;border-radius:14px;padding:13px;margin:10px 0}.liveevent.urgent{border-color:#dba44a;background:#2c261b}.livechoices{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:8px}.livechoices button{text-align:left;white-space:normal}
.pitcherface{display:flex;gap:8px;align-items:center;padding:8px;border-radius:10px;background:#101923}
.skipbar{background:#101922;border:1px solid #2b3d51;border-radius:11px;padding:10px;margin:8px 0}.skipbar .progress{height:7px}
.scouthistory{font-size:11px;color:#aebdcb;margin-top:6px}.reportpending{color:#f1cb77}
.birdtable td,.birdtable th{white-space:nowrap}
@media(max-width:900px){
 .tradeassetgrid,.rolegrid,.livechoices{grid-template-columns:1fr}
 .liveboard{grid-template-columns:1fr}.depthdiamond{min-height:580px}
 .depthspot{width:108px}
}


/* COMPLETE FINAL */
.coachreport{background:#142130;border:1px solid #314963;border-radius:12px;padding:11px;margin:7px 0}
.coachreport strong{color:#d7eaff}.offcheck{display:grid;gap:7px}.offitem{border:1px solid #604349;background:#291d20;border-radius:10px;padding:9px}.offitem.done{border-color:#35694a;background:#172b20}
.compactchips{display:flex;gap:5px;flex-wrap:wrap}.tinyselect{min-width:130px}
.handtag{display:inline-block;font-size:9px;padding:2px 5px;border-radius:6px;background:#283747;color:#c7d8eb;margin-left:3px}
.role-note{font-size:10px;color:var(--muted);line-height:1.45}
.managertrust{font-size:20px;font-weight:900}


/* GRAND FINAL */
.foreign-rule-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.rulecard{background:#111a25;border:1px solid #2c3c4f;border-radius:11px;padding:10px}.rulecard b{font-size:18px}
.scout-shell{display:grid;grid-template-columns:360px 1fr;gap:10px}.scout-list{max-height:720px;overflow:auto}
.scout-candidate{display:grid;grid-template-columns:42px 1fr auto;gap:8px;align-items:center;width:100%;text-align:left;padding:8px;background:#111a24;border:1px solid #2b3b4c;border-radius:9px;margin:4px 0}
.scout-candidate.on{border-color:#67a4df;background:#172b3f}.fog{filter:blur(4px);user-select:none;opacity:.5}
.rangebig{font-size:31px;font-weight:900}.scout-grade{font-size:38px;font-weight:900}
.positionchips{display:flex;flex-wrap:wrap;gap:5px}.positionchip{border:1px solid #35495f;background:#121c28;border-radius:999px;padding:5px 8px;font-size:11px}.positionchip.primary{border-color:#68a5df;color:#d7ebff}
.defensebar{display:grid;grid-template-columns:55px 1fr 42px;gap:7px;align-items:center;padding:5px 0}
.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.service-card{border:1px solid #33475a;background:#121c27;border-radius:11px;padding:10px;margin:6px 0}
.ai-rec{border-left:3px solid #68a1d7;background:#142331;padding:8px 10px;border-radius:7px;margin:6px 0}
.contractchance{font-weight:800}.chance-high{color:#86dfa4}.chance-mid{color:#efd17c}.chance-low{color:#ee998a}
.capbar{height:10px;background:#0a1017;border-radius:999px;overflow:hidden}.capbar i{display:block;height:100%;background:#79aacd}
.asian{border-color:#c79b53!important}.military{border-color:#748db0!important}
.waiver{border-color:#9b7554!important}.unsigned{border-color:#79669f!important}
.small-note{font-size:10px;color:var(--muted);line-height:1.45}
@media(max-width:900px){.foreign-rule-grid{grid-template-columns:repeat(2,1fr)}.scout-shell,.admin-grid{grid-template-columns:1fr}}


/* FRANCHISE FINAL */
.biz-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.biz-card{background:#111a24;border:1px solid #2c3d50;border-radius:12px;padding:11px}
.biz-card h3{margin:0 0 4px}.biz-level{font-size:25px;font-weight:900}.roi{font-size:10px;color:#aebed0;line-height:1.45}
.money-plan{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.money-plan .kpi b{font-size:20px}
.invest-good{border-color:#3e7253!important}.invest-warn{border-color:#896e39!important}.invest-bad{border-color:#7b4248!important}
.project{border:1px solid #3a5169;background:#142130;border-radius:10px;padding:9px;margin:6px 0}
.staffgrade{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9px;font-weight:900;background:#26394c}
.staff-S{background:#654a20;color:#ffdb83}.staff-A{background:#274f3b;color:#9ce2b7}.staff-B{background:#244768;color:#a9d2f5}.staff-C{background:#4a4354;color:#d0bfdc}.staff-D{background:#4d3437;color:#ebb3b8}
.sponsor-card{border:1px solid #344b61;background:#121e2a;border-radius:11px;padding:10px;margin:6px 0}.sponsor-card.active{border-color:#6b9fd1;background:#172c41}
.cash-advisor{background:#182335;border-left:4px solid #6d9ccc;border-radius:9px;padding:10px;margin:8px 0}
.price-buttons{display:flex;gap:6px;flex-wrap:wrap}
.business-bar{height:9px;border-radius:999px;background:#0b1118;overflow:hidden}.business-bar i{display:block;height:100%;background:#6c9fc4}
@media(max-width:900px){.biz-grid,.money-plan{grid-template-columns:1fr 1fr}}
@media(max-width:580px){.biz-grid,.money-plan{grid-template-columns:1fr}}


/* FINANCE FINAL */
.corp-card{border:1px solid #3b536c;background:#132131;border-radius:12px;padding:11px;margin:7px 0}
.corp-strong{border-color:#6e9bc9}.corp-warn{border-color:#987847}
.budget-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.budget-grid .kpi b{font-size:18px}
.fa-thread{border-left:3px solid #6a8eb0;padding-left:10px;margin-top:6px}.fa-msg{background:#111a24;border:1px solid #2d3e50;border-radius:8px;padding:7px;margin:4px 0}
.commitment{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid #243244}
.capital-reserve{background:#171f30;border:1px solid #465c7b;border-radius:10px;padding:10px}
.supportmeter{height:9px;background:#0c1219;border-radius:999px;overflow:hidden}.supportmeter i{height:100%;display:block;background:#7ca4cb}
@media(max-width:900px){.budget-grid{grid-template-columns:1fr 1fr}}


/* BOARD FINAL */
.board-budget-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.board-budget{background:#111b26;border:1px solid #30445a;border-radius:12px;padding:10px}
.board-budget b{font-size:20px}.board-budget .remain{font-size:12px;color:#a9bbcd}
.board-up{border-color:#3e7654!important}.board-down{border-color:#87505a!important}.board-flat{border-color:#4a5c70!important}
.board-reason{background:#151f2d;border-left:3px solid #678db2;border-radius:8px;padding:8px 10px;margin:5px 0}
.board-note{font-size:11px;line-height:1.55;color:#b4c2d1}
.board-money{font-size:24px;font-weight:900}
.budget-lock{color:#e5b46b;font-weight:800}
.budget-room{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid #273747}
.review-card{background:#142030;border:1px solid #3c536b;border-radius:10px;padding:10px;margin:7px 0}
@media(max-width:900px){.board-budget-grid{grid-template-columns:1fr 1fr}}
@media(max-width:580px){.board-budget-grid{grid-template-columns:1fr}}


/* ==========================================================
   MOBILE UI FIX
   Primary navigation and sub-navigation are separated so that
   sub-menu height never stretches the top-level buttons.
   ========================================================== */
@media(max-width:960px){
  .app{
    width:100%;
    max-width:100%;
    padding:8px;
    overflow-x:hidden;
  }

  .layout{
    display:block;
    margin-top:8px;
    min-width:0;
  }

  .side{
    position:static;
    width:100%;
    height:auto;
    min-height:0;
    display:flex;
    flex-wrap:wrap;
    align-items:flex-start;
    align-content:flex-start;
    gap:5px;
    overflow:visible;
    padding:7px;
    border-radius:13px;
  }

  .side>.nav{
    flex:1 1 auto;
    width:auto;
    min-width:64px;
    max-width:none;
    min-height:40px;
    height:40px;
    margin:0;
    padding:7px 9px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    white-space:nowrap;
    line-height:1.15;
    font-size:13px;
    border:1px solid transparent;
  }

  .side>.nav.active{
    height:40px;
    min-height:40px;
    background:#263347;
    border-color:#40516a;
  }

  .groupnav{
    order:99;
    flex:0 0 100%;
    width:100%;
    min-width:0;
    margin:2px 0 0;
    padding:7px 0 1px;
    border-top:1px solid var(--line);
    display:flex;
    align-items:center;
    gap:5px;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .groupnav::-webkit-scrollbar{display:none}

  .groupnav .subbtn{
    flex:0 0 auto;
    width:auto;
    min-width:max-content;
    height:36px;
    min-height:36px;
    padding:7px 11px;
    margin:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    white-space:nowrap;
    word-break:keep-all;
    line-height:1;
    font-size:12px;
    text-align:center;
  }

  .main{
    width:100%;
    min-width:0;
    margin-top:8px;
  }

  .box{
    width:100%;
    min-width:0;
    padding:12px;
    border-radius:13px;
    overflow:hidden;
  }

  .card,.notice,.warnbox,.offer,.foreigncard,.negobox,.review-card,.corp-card{
    min-width:0;
    max-width:100%;
    overflow-wrap:anywhere;
  }

  .section{
    flex-wrap:wrap;
    align-items:flex-start;
  }

  .section>div{
    min-width:0;
  }

  .actions{
    max-width:100%;
  }

  button,.btn,select,input{
    max-width:100%;
  }

  select{
    min-width:0;
  }

  .tradefilters,.directorfilters,.simplefilters,.filterbar{
    width:100%;
    max-width:100%;
    gap:5px;
  }

  .tradefilters select,
  .directorfilters select,
  .simplefilters select,
  .filterbar select{
    flex:1 1 120px;
    min-width:0;
  }

  .tradefilters input,
  .directorfilters input,
  .simplefilters input,
  .filterbar input{
    max-width:110px;
  }

  .tradeassetgrid{
    grid-template-columns:1fr;
  }

  .assetlist{
    max-height:440px;
  }

  .assetrow{
    grid-template-columns:24px minmax(0,1fr) auto;
  }

  .assetrow span:nth-child(2){
    min-width:0;
    overflow-wrap:anywhere;
  }

  .table{
    width:100%;
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  table{
    min-width:720px;
  }

  .liveboard{
    grid-template-columns:1fr 120px 1fr;
  }

  .liveboard .score{
    font-size:38px;
  }

  .depthdiamond{
    min-height:520px;
  }

  .scout-shell,.admin-grid,.g2,.g3,.teamgrid{
    grid-template-columns:1fr;
  }

  .foreign-rule-grid,.g4,.g5,.budget-grid,.board-budget-grid,.money-plan,.biz-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .rolegrid{
    grid-template-columns:1fr;
  }

  .row{
    grid-template-columns:30px minmax(0,1fr) 52px 45px;
  }

  .top{
    position:static;
    width:100%;
    padding:10px;
    gap:10px;
  }

  .brand{
    width:100%;
    min-width:0;
  }

  .brand>div{
    min-width:0;
  }

  .brand h1{
    font-size:17px;
    line-height:1.2;
  }

  .brand small{
    line-height:1.35;
  }

  .top>.actions{
    width:100%;
  }

  .top>.actions .btn{
    flex:1 1 88px;
    text-align:center;
  }
}

@media(max-width:520px){
  .app{padding:6px}

  .side{
    gap:4px;
    padding:6px;
  }

  .side>.nav{
    flex:1 1 calc(33.333% - 4px);
    min-width:0;
    height:44px;
    min-height:44px;
    padding:6px 5px;
    font-size:12px;
  }

  .side>.nav.active{
    height:44px;
    min-height:44px;
  }

  .groupnav{
    padding-top:6px;
  }

  .groupnav .subbtn{
    height:34px;
    min-height:34px;
    padding:6px 10px;
    font-size:11px;
  }

  .box{
    padding:10px;
  }

  .foreign-rule-grid,.g4,.g5,.budget-grid,.board-budget-grid,.money-plan,.biz-grid{
    grid-template-columns:1fr;
  }

  .liveboard{
    grid-template-columns:1fr;
    gap:5px;
  }

  .liveboard .score{
    font-size:34px;
  }

  .livechoices{
    grid-template-columns:1fr;
  }

  .depthdiamond{
    min-height:560px;
  }

  .depthspot{
    width:96px;
    padding:6px;
    font-size:10px;
  }

  .depthspot b{
    font-size:16px;
  }

  h2{font-size:22px}
  h3{font-size:17px}

  .big{font-size:24px}
  .kpi b{font-size:18px}

  .modal,.modalcard{
    width:calc(100vw - 12px);
    max-width:calc(100vw - 12px);
    padding:11px;
  }
}


/* ==========================================================
   TRADE UX FIX
   ========================================================== */
.trade-level-filter{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  margin:7px 0;
}
.trade-check{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:32px;
  padding:5px 9px;
  border:1px solid #3a4f64;
  border-radius:8px;
  background:#111a24;
  color:#d6e1ec;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.trade-check input{
  width:16px;
  height:16px;
  accent-color:#70a7db;
}
.trade-player-card{
  width:100%;
  min-height:61px;
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 28px;
  gap:9px;
  align-items:center;
  text-align:left;
  padding:9px 10px;
  margin:5px 0;
  background:#131e2a;
  border:1px solid #34485c;
  border-radius:10px;
  color:#eef5fb;
}
.trade-player-card:hover{
  border-color:#6287aa;
  background:#172637;
}
.trade-player-card.selected{
  border:2px solid #6ca9df;
  background:#1a334b;
  box-shadow:0 0 0 1px #3b6f9d inset;
}
.trade-pos-badge{
  min-width:43px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:#26384a;
  color:#d9ecff;
  font-size:12px;
  font-weight:900;
}
.trade-player-card.selected .trade-pos-badge{
  background:#315f86;
  color:#fff;
}
.trade-player-main{
  min-width:0;
}
.trade-player-name{
  display:flex;
  align-items:center;
  gap:5px;
  flex-wrap:wrap;
  font-size:15px;
  line-height:1.25;
  font-weight:900;
  color:#f7fbff;
}
.trade-level{
  display:inline-flex;
  padding:2px 6px;
  border-radius:999px;
  background:#27394a;
  color:#c7d8e8;
  font-size:10px;
  font-weight:800;
}
.trade-level.level1{
  background:#24466a;
  color:#cce7ff;
}
.trade-level.level2{
  background:#3a3b48;
  color:#d8d7e4;
}
.trade-player-meta{
  margin-top:4px;
  color:#bdccdb;
  font-size:12px;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.trade-stats{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-top:4px;
}
.trade-stat{
  display:inline-flex;
  align-items:center;
  gap:3px;
  padding:2px 5px;
  border:1px solid #344b60;
  border-radius:6px;
  background:#0e1721;
  color:#cbd9e6;
  font-size:10px;
}
.trade-stat strong{
  color:#fff;
  font-size:11px;
}
.trade-selected-mark{
  font-size:20px;
  font-weight:900;
  color:#82c3ff;
  text-align:center;
}
.trade-side-summary{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  margin:6px 0 9px;
  padding:7px;
  border-radius:8px;
  background:#101923;
  border:1px solid #2d4052;
}
.trade-side-summary .pill{
  font-size:10px;
}
.trade-ai-counter{
  margin-top:10px;
  padding:10px;
  border:1px solid #526f8b;
  border-radius:10px;
  background:#142435;
}
.trade-ai-counter h4{
  margin:0 0 5px;
  color:#e7f2fc;
}
.trade-ai-counter .proposal{
  margin:7px 0;
  padding:8px;
  background:#101b27;
  border-radius:8px;
  color:#d5e1eb;
  line-height:1.55;
  font-size:12px;
}
.trade-team-memory{
  color:#9fb5c8;
  font-size:10px;
}
@media(max-width:960px){
  .trade-player-card{
    min-height:66px;
    grid-template-columns:44px minmax(0,1fr) 25px;
    padding:9px 8px;
  }
  .trade-player-name{
    font-size:15px;
  }
  .trade-player-meta{
    font-size:12px;
  }
}
@media(max-width:520px){
  .trade-player-card{
    min-height:69px;
    grid-template-columns:42px minmax(0,1fr) 24px;
    gap:7px;
    padding:8px 7px;
  }
  .trade-player-name{
    font-size:14.5px;
  }
  .trade-player-meta{
    font-size:11.5px;
  }
  .trade-stat{
    font-size:9.5px;
  }
  .trade-level-filter{
    gap:5px;
  }
  .trade-check{
    padding:5px 7px;
    font-size:11px;
  }
}


/* ==========================================================
   USABILITY FINAL
   - action first
   - compact mobile pages
   - page-local tabs
   - mobile cards instead of unreadable giant tables
   ========================================================== */

.ux-tabs{
  display:flex;
  gap:5px;
  overflow-x:auto;
  padding:3px 0 8px;
  margin-bottom:8px;
  scrollbar-width:none;
}
.ux-tabs::-webkit-scrollbar{display:none}
.ux-tab{
  flex:0 0 auto;
  min-height:36px;
  padding:7px 12px;
  border:1px solid #34495e;
  background:#111b26;
  color:#bcd0e1;
  border-radius:9px;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.ux-tab.on{
  background:#234465;
  border-color:#6aa7dd;
  color:#fff;
}
.ux-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:9px;
}
.ux-head h2{margin:0}
.ux-sub{font-size:11px;color:var(--muted);line-height:1.45;margin-top:3px}
.ux-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  margin:8px 0;
}
.ux-kpi{
  background:#111a25;
  border:1px solid #2e4052;
  border-radius:10px;
  padding:9px;
  min-width:0;
}
.ux-kpi span{display:block;color:#93a7ba;font-size:10px}
.ux-kpi b{display:block;margin-top:3px;font-size:18px;line-height:1.15;color:#f4f8fc}
.ux-action-center{
  border:1px solid #405b76;
  background:#122132;
  border-radius:12px;
  padding:10px;
  margin:8px 0;
}
.ux-action-item{
  display:grid;
  grid-template-columns:25px minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  padding:8px 0;
  border-bottom:1px solid #26384a;
}
.ux-action-item:last-child{border-bottom:0}
.ux-action-icon{font-size:17px;text-align:center}
.ux-action-main{min-width:0}
.ux-action-main b{display:block;color:#edf5fc}
.ux-action-main small{display:block;color:#9db0c2;line-height:1.35;margin-top:2px}
.ux-quick{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.ux-details{
  margin-top:8px;
  border:1px solid #2f4053;
  border-radius:10px;
  background:#101923;
}
.ux-details>summary{
  cursor:pointer;
  padding:9px 10px;
  color:#cbd9e6;
  font-size:12px;
  font-weight:800;
}
.ux-details-body{padding:0 10px 10px}
.ux-mobile-list{display:none}
.ux-player-card{
  display:grid;
  grid-template-columns:45px minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  padding:9px;
  margin:5px 0;
  border:1px solid #304357;
  background:#111b26;
  border-radius:10px;
}
.ux-player-card .name{
  color:#f4f8fc;
  font-size:14px;
  font-weight:900;
}
.ux-player-card .meta{
  color:#9fb2c3;
  font-size:10.5px;
  line-height:1.4;
  margin-top:3px;
}
.ux-player-card .score{
  text-align:right;
  font-size:20px;
  font-weight:900;
  color:#dfefff;
}
.ux-player-card .score small{
  display:block;
  color:#8fa5b7;
  font-size:9px;
  font-weight:600;
}
.ux-pos{
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:36px;
  border-radius:8px;
  background:#25384b;
  color:#d9ecff;
  font-weight:900;
  font-size:12px;
}
.ux-filter-row{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  margin:7px 0;
}
.ux-filter-row select,
.ux-filter-row input{
  min-height:36px;
}
.ux-filter-row select{flex:1 1 120px;min-width:0}
.ux-mini-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}
.ux-line-row{
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  gap:7px;
  align-items:center;
  padding:6px 0;
  border-bottom:1px solid #253548;
}
.ux-line-row:last-child{border-bottom:0}
.ux-line-row select{width:100%;min-width:0}
.ux-rank{
  width:28px;height:28px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  background:#26384b;color:#dceeff;font-weight:900;
}
.ux-candidate{
  border:1px solid #31465b;
  background:#111b27;
  border-radius:10px;
  padding:9px;
  margin:5px 0;
}
.ux-candidate .top{
  display:flex;
  position:static;
  padding:0;
  border:0;
  background:none;
  box-shadow:none;
  justify-content:space-between;
  gap:8px;
}
.ux-candidate .title{font-weight:900;color:#f1f7fc}
.ux-candidate .meta{font-size:10.5px;color:#9eb1c2;line-height:1.4;margin-top:3px}
.ux-statusline{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  margin-top:6px;
}
.ux-sticky-actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  padding:7px;
  border:1px solid #40566e;
  background:#101b27ee;
  border-radius:10px;
}
.ux-empty{
  padding:18px;
  text-align:center;
  color:#8799aa;
}
.ux-budget-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  padding:7px 0;
  border-bottom:1px solid #273748;
}
.ux-budget-row:last-child{border-bottom:0}
.ux-section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin:10px 0 6px;
}
.ux-section-title h3{margin:0}
.ux-note{
  padding:8px 9px;
  border-radius:8px;
  background:#142334;
  border:1px solid #34516d;
  color:#bfd2e3;
  font-size:11px;
  line-height:1.45;
}
.ux-bad{border-color:#75434a;background:#2b1d21}
.ux-good{border-color:#3e6d50;background:#17271f}
.ux-warning{border-color:#836b39;background:#2b2618}

@media(max-width:960px){
  .ux-desktop-table{display:none!important}
  .ux-mobile-list{display:block}
  .ux-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ux-mini-grid{grid-template-columns:1fr}
  #p-trade .box > .actions{
    position:sticky;
    bottom:6px;
    z-index:8;
    background:#101a26f4;
    border:1px solid #40566d;
    border-radius:10px;
    padding:7px;
    box-shadow:0 -4px 16px #0007;
  }
  .top .brand small{display:none}
  .top .logo{width:36px;height:36px;font-size:13px}
  .top .brand h1{font-size:15px}
}
@media(min-width:961px){
  .ux-desktop-table{display:block}
}
@media(max-width:520px){
  .top{padding:8px}
  .top>.actions .btn{
    min-height:35px;
    padding:6px 8px;
    font-size:11px;
  }
  .ux-action-item{
    grid-template-columns:23px minmax(0,1fr);
  }
  .ux-action-item>.btn{
    grid-column:2;
    width:max-content;
    min-width:62px;
    white-space:nowrap;
  }
  .ux-action-item>.ux-quick{
    grid-column:2;
    width:100%;
    display:flex;
    flex-wrap:wrap;
    gap:5px;
  }
  .ux-action-item>.ux-quick .btn{
    width:auto;
    min-width:62px;
    white-space:nowrap;
  }
  .ux-kpi b{font-size:16px}
  .ux-player-card{grid-template-columns:40px minmax(0,1fr) auto;padding:8px 7px}
  .ux-pos{width:38px;height:34px}
}

/* Make existing screen titles and muted text easier to read on mobile. */
@media(max-width:960px){
  .main h2{font-size:21px}
  .main h3{font-size:16px}
  .muted,.tradehint,.impact,.small-note{color:#aabccd!important}
  .btn{font-size:12px}
}


/* TRADE LOGIC FINAL */
.team-direction{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;font-size:10px;font-weight:900;margin-left:5px;vertical-align:2px}
.team-direction.contend{background:#5a2e34;color:#ffd2d7;border:1px solid #8e4e57}
.team-direction.balanced{background:#294764;color:#d4eaff;border:1px solid #49729a}
.team-direction.rebuild{background:#315037;color:#d3f0d9;border:1px solid #56845f}
.teamopt .team-summary{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}
.teamopt .team-direction-desc{margin:6px 0 0;color:#b6c8d8;font-size:11px;line-height:1.45}
.trade-logic-note{margin-top:6px;padding:8px;border-radius:8px;background:#111c28;border:1px solid #32495f;color:#bcd0e0;font-size:11px;line-height:1.5}
.trade-logic-note.bad{background:#2a1d20;border-color:#75444b;color:#efc7ca}
.trade-logic-note.good{background:#17291f;border-color:#3c6b4d;color:#c9ead4}
.trade-logic-note.warn{background:#2b2619;border-color:#806b3b;color:#eadcae}
.counter-rule{font-size:10px;color:#97aabc;margin-top:5px}


/* ==========================================================
   TRADE PICK FINAL
   ========================================================== */
.trade-chance-box{
  margin-top:7px;padding:8px 10px;border:1px solid #42607c;background:#132337;border-radius:9px;
  color:#d7e8f7;font-size:12px;line-height:1.45
}
.trade-chance-box strong{font-size:15px;color:#fff}
.trade-chance-low{border-color:#7a444b;background:#2b1d21}
.trade-chance-mid{border-color:#8b723d;background:#2d2719}
.trade-chance-high{border-color:#3f7254;background:#172a20}
.pick-chip{
  display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:96px;
  padding:7px 9px;border:1px solid #385069;background:#111d29;border-radius:8px;color:#dcebf7
}
.pick-chip.primary{border-color:#6aa8de;background:#1b3a55}
.pick-chip b{font-size:12px}.pick-chip small{font-size:9px;color:#9eb2c3;line-height:1.25}
.pick-owned-summary{display:flex;gap:5px;flex-wrap:wrap;margin:7px 0}
.pick-order-card{border:1px solid #31475c;background:#111c28;border-radius:10px;padding:9px;margin:5px 0}
.pick-order-card b{color:#f1f7fc}.pick-order-card small{display:block;color:#9fb1c1;margin-top:3px}
.trade-repeat-note{margin-top:6px;color:#e5bd79;font-size:10px}
.trade-news-badge{display:inline-block;padding:2px 6px;border-radius:999px;background:#24496b;color:#d7ecff;font-size:10px}


/* ==========================================================
   SPRING FIX
   ========================================================== */
.spring-timebar{
  margin:8px 0;
  padding:10px;
  border:1px solid #3c5771;
  background:#132234;
  border-radius:11px;
}
.spring-timebar .topline{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.spring-daybig{
  font-size:20px;
  font-weight:900;
  color:#f2f8fd;
}
.spring-pending{
  color:#aebfd0;
  font-size:11px;
  line-height:1.45;
}
.spring-day-actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:8px;
}
.roster-fix-note{
  margin:7px 0;
  padding:8px 9px;
  border:1px solid #42627d;
  background:#122235;
  border-radius:8px;
  color:#c7d8e8;
  font-size:11px;
  line-height:1.45;
}


/* ==========================================================
   POLISH FINAL
   ========================================================== */
.deadline-strip{
  display:flex;gap:7px;flex-wrap:wrap;align-items:center;
  padding:9px 10px;margin:7px 0;
  border:1px solid #405a73;background:#122132;border-radius:10px;
}
.deadline-chip{
  display:inline-flex;flex-direction:column;gap:1px;
  min-width:115px;padding:6px 8px;border-radius:8px;
  background:#0f1924;border:1px solid #31465a;
}
.deadline-chip b{font-size:11px;color:#edf6fd}
.deadline-chip small{font-size:9.5px;color:#9db0c1}
.trade-why{
  padding:8px 10px;margin-top:7px;border-radius:8px;
  background:#161f2a;border:1px solid #3b4d60;
  color:#c9d8e5;font-size:11px;line-height:1.5;
}
.trade-warning{
  color:#f0bf72;font-size:10px;line-height:1.45;margin-top:5px
}
.team-reco{
  display:flex;gap:5px;overflow-x:auto;padding:5px 0;scrollbar-width:none
}
.team-reco::-webkit-scrollbar{display:none}
.team-reco button{flex:0 0 auto}
.impact-overlay{
  position:fixed;inset:0;z-index:99999;
  background:#07111bd9;display:flex;align-items:center;justify-content:center;
  padding:20px;animation:impactFade .25s ease-out
}
.impact-card{
  width:min(520px,94vw);padding:22px;border-radius:18px;
  border:1px solid #6195c8;background:linear-gradient(145deg,#172b40,#0e1721);
  box-shadow:0 20px 80px #000c;text-align:center;
  animation:impactPop .28s cubic-bezier(.2,.9,.2,1.1)
}
.impact-card .spark{font-size:34px}
.impact-card h2{margin:6px 0;color:#fff}
.impact-card p{color:#bfd1e1;line-height:1.55}
@keyframes impactFade{from{opacity:0}to{opacity:1}}
@keyframes impactPop{from{transform:scale(.86) translateY(14px);opacity:0}to{transform:scale(1);opacity:1}}
.fan-feed{display:grid;gap:6px}
.fan-post{
  border:1px solid #30465a;background:#101b27;border-radius:9px;padding:8px;
  color:#c9d8e6;font-size:11px;line-height:1.45
}
.scout-help{
  margin-top:5px;padding:6px 8px;border-radius:7px;
  background:#141f2c;border:1px solid #34485a;color:#aabccc;font-size:10px;line-height:1.4
}
.finance-alert{
  border-left:4px solid #d19b55;background:#2a2418;border-radius:8px;padding:8px 10px;margin:6px 0;
  color:#e8d7b6;font-size:11px;line-height:1.45
}
.ai-start-big{
  width:100%;min-height:48px;font-size:14px;font-weight:900;
  border-color:#6aa8de!important;background:#23517a!important;color:#fff!important
}
.skip-explain{
  color:#9eb3c5;font-size:10px;line-height:1.4;margin-top:5px
}


/* ==========================================================
   IMMERSION FINAL
   ========================================================== */
.phase-hero{
  border:1px solid #40566f;
  border-radius:14px;
  padding:12px;
  margin:8px 0;
  background:linear-gradient(145deg,#142335,#0f1924);
}
.phase-hero.spring{background:linear-gradient(145deg,#173227,#111e1a);border-color:#3d6a52}
.phase-hero.regular{background:linear-gradient(145deg,#162b42,#101b29);border-color:#456a8e}
.phase-hero.offseason{background:linear-gradient(145deg,#302819,#171a1f);border-color:#796640}
.phase-hero.postseason{background:linear-gradient(145deg,#33213a,#161a24);border-color:#73537d}
.phase-title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;flex-wrap:wrap}
.phase-kicker{font-size:10px;color:#9fb4c7;font-weight:800;letter-spacing:.06em}
.phase-headline{font-size:20px;font-weight:900;color:#f4f9fd;line-height:1.25;margin-top:3px}
.phase-copy{font-size:11px;color:#b6c7d7;line-height:1.5;margin-top:5px}
.season-timeline-wrap{margin-top:10px}
.season-timeline{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:5px;
}
.season-stop{
  position:relative;
  min-width:0;
  padding:7px 5px;
  border-radius:8px;
  border:1px solid #304358;
  background:#101923;
  text-align:center;
  color:#8fa2b4;
  font-size:9px;
}
.season-stop b{display:block;color:#b9c8d6;font-size:10px;margin-bottom:2px}
.season-stop.done{background:#183027;border-color:#426a55;color:#9ebbac}
.season-stop.done b{color:#d8f0e1}
.season-stop.now{background:#1b3b59;border-color:#65a2d7;box-shadow:0 0 0 1px #3b6d98 inset}
.season-stop.now b{color:#fff}
.story-headline{
  border:1px solid #3d5871;background:#122235;border-radius:11px;padding:10px;margin:8px 0
}
.story-headline .label{font-size:9px;color:#8fa7ba;font-weight:900;letter-spacing:.06em}
.story-headline .title{font-size:15px;color:#f0f6fb;font-weight:900;margin-top:2px}
.story-headline .body{font-size:11px;color:#b7c7d5;line-height:1.5;margin-top:4px}
.decision-spotlight{
  border:2px solid #d39c4f;
  background:linear-gradient(145deg,#332817,#191b22);
  border-radius:14px;
  padding:13px;
  margin:9px 0;
  box-shadow:0 8px 28px #0005;
}
.decision-spotlight .decision-tag{font-size:10px;color:#f0be72;font-weight:900;letter-spacing:.08em}
.decision-spotlight h3{margin:3px 0 4px;color:#fff;font-size:18px}
.decision-spotlight p{margin:0;color:#d8cbb8;font-size:11px;line-height:1.5}
.decision-choice-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
  margin-top:9px;
}
.decision-choice{
  min-height:66px;
  padding:8px;
  text-align:left;
  border:1px solid #5a4b36;
  background:#161a20;
  border-radius:9px;
  color:#eef4f8;
}
.decision-choice:hover{border-color:#d4a052;background:#2a2419}
.decision-choice b{display:block;font-size:12px}
.decision-choice small{display:block;color:#b7aa98;font-size:9.5px;line-height:1.35;margin-top:4px}
.immersion-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:8px 0;
}
.immersion-card{
  border:1px solid #30465b;background:#101a25;border-radius:10px;padding:10px
}
.immersion-card h3{margin:0 0 6px;font-size:14px}
.career-strip{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:5px;
  margin-top:7px;
}
.career-stat{
  padding:7px 5px;border:1px solid #2c4053;background:#0d1721;border-radius:8px;text-align:center
}
.career-stat span{display:block;color:#8ea2b4;font-size:8.5px}
.career-stat b{display:block;color:#eef6fc;font-size:14px;margin-top:2px}
.story-stack{display:grid;gap:5px}
.story-mini{
  padding:7px 8px;border-left:3px solid #4d759a;background:#121d28;border-radius:6px;
  color:#c9d8e5;font-size:10px;line-height:1.4
}
.story-mini b{display:block;color:#eef6fc;font-size:11px}
.game-tension{
  margin:8px 0;padding:9px 10px;border:1px solid #445c74;background:#132131;border-radius:9px;
  display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap
}
.game-tension strong{color:#f2f8fd}
.game-tension small{color:#9eb1c2}
.recent-plays{margin-top:8px;padding:8px;border-radius:8px;background:#0e1721;border:1px solid #2b4052}
.recent-plays b{font-size:11px;color:#cfe1ef}
.recent-plays div{font-size:10px;color:#9fb1c1;line-height:1.5}
@media(max-width:720px){
  .decision-choice-grid{grid-template-columns:1fr}
  .immersion-grid{grid-template-columns:1fr}
  .career-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
  .season-stop{padding:6px 2px}
  .season-stop small{display:none}
}
@media(max-width:420px){
  .phase-headline{font-size:17px}
  .career-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* ==========================================================
   SCOUT & RULES FINAL
   ========================================================== */
.rulebook-card{
  border:1px solid #40566e;background:#122131;border-radius:11px;
  padding:10px;margin:7px 0
}
.rulebook-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:7px
}
.rulebook-item{
  padding:7px;border:1px solid #30465b;background:#0f1924;border-radius:8px
}
.rulebook-item span{display:block;color:#8fa4b7;font-size:9px}
.rulebook-item b{display:block;color:#eef6fc;font-size:13px;margin-top:2px}
.scout-capacity{
  display:flex;gap:7px;flex-wrap:wrap;align-items:center;
  padding:9px 10px;margin:7px 0;border:1px solid #3c5872;background:#122235;border-radius:10px
}
.scout-slot{
  min-width:100px;padding:6px 8px;border:1px solid #31485e;background:#0f1924;border-radius:8px
}
.scout-slot span{display:block;color:#91a6b8;font-size:9px}
.scout-slot b{display:block;color:#eef6fc;font-size:14px;margin-top:2px}
.scout-job{
  display:flex;justify-content:space-between;gap:8px;align-items:center;
  padding:7px 0;border-bottom:1px solid #283a4b;font-size:11px
}
.scout-job:last-child{border-bottom:0}
.rough-badge{
  display:inline-flex;padding:2px 6px;border-radius:999px;
  background:#3c3422;border:1px solid #7d6736;color:#e4c889;font-size:9px;font-weight:800
}
.rule-change{
  border-left:4px solid #c5964e;background:#2b2418;border-radius:8px;padding:8px 10px;margin:6px 0;
  color:#e4d1ad;font-size:10px;line-height:1.45
}
@media(max-width:700px){
 .rulebook-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* ==========================================================
   FOCUS FINAL — compact home + onboarding + touch ergonomics
   ========================================================== */
.home-focus-tabs{
  display:flex;gap:5px;overflow-x:auto;margin:8px 0;padding-bottom:2px;scrollbar-width:none
}
.home-focus-tabs::-webkit-scrollbar{display:none}
.home-focus-tab{
  flex:0 0 auto;min-height:38px;padding:7px 12px;border-radius:9px;
  border:1px solid #334a60;background:#101a25;color:#aec0d0;
  font-size:11px;font-weight:900;white-space:nowrap
}
.home-focus-tab.on{border-color:#68a6dd;background:#214563;color:#fff}
.home-focus-panel{min-height:110px}
.home-primary-actions{
  display:flex;gap:6px;flex-wrap:wrap;margin:7px 0
}
.home-primary-actions .btn{min-height:40px}
.home-compact-alert{
  display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:8px;align-items:center;
  padding:8px 0;border-bottom:1px solid #283a4c
}
.home-compact-alert:last-child{border-bottom:0}
.home-compact-alert b{display:block;color:#edf5fb;font-size:12px}
.home-compact-alert small{display:block;color:#9eb1c2;font-size:10px;line-height:1.4;margin-top:2px}
.home-story-card{
  border:1px solid #36516b;background:#122235;border-radius:10px;padding:9px;margin:6px 0
}
.home-story-card b{display:block;color:#f0f7fc;font-size:12px}
.home-story-card small{display:block;color:#a9bccb;font-size:10px;line-height:1.45;margin-top:3px}
.scout-intro{
  border:1px solid #5a7290;background:linear-gradient(145deg,#15283b,#101923);
  border-radius:12px;padding:11px;margin:8px 0
}
.scout-intro h3{margin:0 0 5px;color:#f1f7fc}
.scout-steps{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:8px 0
}
.scout-step{
  padding:7px;border:1px solid #31495f;background:#0e1822;border-radius:8px;
  font-size:9.5px;color:#aec1d1;line-height:1.35
}
.scout-step b{display:block;color:#eef6fc;font-size:10.5px;margin-bottom:2px}
.rule-popup-note{
  padding:8px 9px;border:1px solid #7d673d;background:#2c2518;border-radius:8px;
  color:#e8d4ad;font-size:10px;line-height:1.45
}
.runtime-note{
  display:none
}
@media(max-width:700px){
  .scout-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .btn,.ux-tab,.home-focus-tab,.subbtn,select{
    min-height:44px!important
  }
  .home-primary-actions .btn{
    flex:1 1 105px
  }
  .home-compact-alert{
    grid-template-columns:22px minmax(0,1fr)
  }
  .home-compact-alert>.btn{
    grid-column:2;width:max-content;min-width:70px;white-space:nowrap
  }
}


/* ==========================================================
   GAMEPLAY REFACTOR
   ========================================================== */
.trade-negotiation-meter{
  margin:8px 0;padding:9px 10px;border:1px solid #41617e;
  background:#122338;border-radius:10px
}
.trade-negotiation-meter .big{font-size:17px;font-weight:900;color:#fff}
.trade-negotiation-meter small{display:block;color:#9eb4c7;font-size:10px;line-height:1.45;margin-top:3px}
.trade-negotiation-meter.good{border-color:#42775a;background:#172a21}
.trade-negotiation-meter.warn{border-color:#8a713d;background:#2d2719}
.trade-negotiation-meter.bad{border-color:#81484f;background:#2b1d21}
.relation-effect{
  display:inline-flex;padding:2px 6px;border-radius:999px;
  font-size:9px;font-weight:900;margin-left:4px
}
.relation-good{background:#244b35;color:#a9e2bc}
.relation-mid{background:#3b3a2a;color:#e2d49e}
.relation-bad{background:#4b2c31;color:#efafb7}
.story-weekly{
  border-left:4px solid #5e8db8;background:#122131;
  border-radius:8px;padding:8px 10px;margin:5px 0;
  color:#c7d7e4;font-size:10.5px;line-height:1.45
}
.story-weekly b{display:block;color:#f0f7fc;font-size:11.5px;margin-bottom:2px}
.foreign-responsebar{
  display:flex;gap:6px;flex-wrap:wrap;align-items:center;
  padding:8px 9px;margin:7px 0;border:1px solid #3c5871;
  background:#122235;border-radius:9px
}
.draft-rule-row{
  display:flex;gap:6px;flex-wrap:wrap;margin:7px 0
}
@media(max-width:520px){
  .trade-negotiation-meter{padding:8px}
  .foreign-responsebar .btn{width:100%}
}


/* ==========================================================
   9PLUS FINAL — records / rules / roster / finance polish
   ========================================================== */
.statline-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:7px 0}
.statline-box{background:#0f1924;border:1px solid #30465a;border-radius:8px;padding:7px;text-align:center}
.statline-box span{display:block;color:#8ea3b5;font-size:9px}.statline-box b{display:block;color:#f1f7fc;font-size:14px;margin-top:2px}
.record-note{font-size:10px;color:#9eb1c3;line-height:1.45}
.dev-rec-card{border:1px solid #35506a;background:#111f2e;border-radius:9px;padding:8px;margin:5px 0}
.dev-rec-card b{color:#edf6fd}.dev-rec-card small{display:block;color:#9fb4c5;line-height:1.4;margin-top:3px}
.finance-action-card{border:1px solid #46617b;background:#132336;border-radius:10px;padding:9px;margin:7px 0}
.finance-action-card.warn{border-color:#8a6f3d;background:#2c261a}.finance-action-card.bad{border-color:#7d464d;background:#2b1d21}
.finance-action-card b{color:#f3f8fc}.finance-action-card small{display:block;color:#b5c5d3;line-height:1.45;margin-top:3px}
.rule-source-badge{display:inline-flex;padding:2px 6px;border:1px solid #49627a;border-radius:999px;background:#17283a;color:#bfd4e5;font-size:9px;font-weight:800}
.game-record-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:7px 0}
.game-record-strip>div{padding:6px;border:1px solid #30475c;border-radius:8px;background:#101b27;text-align:center}
.game-record-strip span{display:block;color:#8fa5b7;font-size:9px}.game-record-strip b{display:block;color:#eff7fd;font-size:13px;margin-top:2px}
@media(max-width:600px){.statline-grid,.game-record-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* ==========================================================
   LINEUP & TRADE UX FINAL
   ========================================================== */
.lineup-row2{
 display:grid;grid-template-columns:32px minmax(0,1fr) 92px;gap:6px;align-items:center;
 padding:6px 0;border-bottom:1px solid #263748
}
.lineup-row2:last-child{border-bottom:0}
.lineup-player-select,.lineup-pos-select{width:100%;min-width:0}
.lineup-pos-select.good{border-color:#4d765e;background:#14251d}
.lineup-pos-select.warn{border-color:#8d713b;background:#2c2518}
.lineup-pos-select.bad{border-color:#7c474c;background:#291c20}
.lineup-fit-summary{
 display:flex;gap:6px;flex-wrap:wrap;align-items:center;padding:8px 9px;margin:7px 0;
 background:#111d29;border:1px solid #354d63;border-radius:9px;font-size:10.5px;color:#aec0cf
}
.lineup-fit-summary b{color:#f0f7fc}
.primary-pos-card{border-color:#52728e!important;background:#132335!important}
.primary-pos-current{font-size:22px;font-weight:900;color:#f1f8fd}
.position-change-grid{display:grid;grid-template-columns:1fr auto;gap:6px;align-items:end;margin-top:8px}
.position-change-grid label{font-size:10px;color:#9fb2c2}
.position-change-grid select{width:100%}
.pos-tag-primary{border-color:#72a9d7!important;background:#1e4260!important;color:#fff!important}
.pos-rating-low{opacity:.52}
.rotation-row{display:grid;grid-template-columns:32px minmax(0,1fr);gap:7px;align-items:center;padding:6px 0;border-bottom:1px solid #273849}
.rotation-row select{width:100%;min-width:0}
.trade-sticky-command{
 position:sticky;top:6px;z-index:30;margin:8px 0;padding:8px 9px;
 border:1px solid #55718c;background:#101d2bf2;border-radius:11px;box-shadow:0 7px 22px #0008
}
.trade-sticky-top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;flex-wrap:wrap}
.trade-sticky-summary{font-size:10.5px;color:#bdd0df;line-height:1.45;min-width:0}
.trade-sticky-summary b{color:#f5f9fc}
.trade-sticky-actions{display:flex;gap:5px;flex-wrap:wrap}
.trade-sticky-actions .btn{min-height:36px}
.trade-scroll-hint{font-size:9px;color:#8fa5b7;margin-top:3px}
.roster-primary-badge{display:inline-flex;padding:2px 5px;border-radius:999px;background:#244b69;color:#d9edff;font-size:9px;font-weight:900}
@media(max-width:700px){
 .lineup-row2{grid-template-columns:30px minmax(0,1fr) 84px}
 .trade-sticky-command{top:4px}
 .trade-sticky-actions{width:100%}
 .trade-sticky-actions .btn{flex:1 1 92px;min-height:42px}
}
@media(max-width:480px){
 .lineup-row2{grid-template-columns:28px minmax(0,1fr);gap:5px}
 .lineup-row2 .lineup-pos-select{grid-column:2}
}


/* ==========================================================
   MARKET POOL FINAL
   Bigger overseas pools + honest Asian-quota market +
   range-aware filtering/sorting
   ========================================================== */
.market-filter-panel{
  border:1px solid #38516a;background:#101b27;border-radius:11px;
  padding:9px;margin:7px 0
}
.market-filter-row{
  display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:5px 0
}
.market-filter-row select,.market-filter-row input{
  min-height:38px;background:#17202c;color:#eef4fb;border:1px solid #35485b;
  border-radius:8px;padding:6px 8px
}
.market-filter-row select{flex:1 1 130px;min-width:105px}
.market-filter-row label{display:flex;align-items:center;gap:5px;color:#abc0d1;font-size:10px}
.market-filter-row input[type=number]{width:76px}
.market-filter-meta{
  display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;
  color:#9fb4c6;font-size:10px;line-height:1.4;margin-top:5px
}
.market-count{
  display:inline-flex;padding:3px 7px;border-radius:999px;background:#233548;
  color:#dbeaff;font-size:10px;font-weight:800
}
.market-unavailable{
  display:inline-flex;padding:3px 7px;border-radius:999px;
  background:#512c32;border:1px solid #82454e;color:#ffd0d5;
  font-size:9.5px;font-weight:900
}
.market-lowinterest{
  display:inline-flex;padding:3px 7px;border-radius:999px;
  background:#493d22;border:1px solid #765f31;color:#f4dc9c;
  font-size:9.5px;font-weight:900
}
.market-available{
  display:inline-flex;padding:3px 7px;border-radius:999px;
  background:#214633;border:1px solid #386c4e;color:#bce5ca;
  font-size:9.5px;font-weight:900
}
.market-more{
  width:100%;margin-top:8px;min-height:42px
}
.range-sort-note{
  padding:6px 8px;border-left:3px solid #5790c0;background:#122234;
  border-radius:7px;color:#bcd0df;font-size:10px;line-height:1.45;margin:6px 0
}
.pool-summary{
  display:flex;gap:6px;flex-wrap:wrap;margin:6px 0
}
@media(max-width:520px){
  .market-filter-row select{flex:1 1 calc(50% - 5px);min-width:0}
  .market-filter-row label{flex:1 1 calc(50% - 5px)}
  .market-filter-row input[type=number]{width:100%;min-width:0}
}


/* ==========================================================
   WORLD POOLS FINAL
   Persistent overseas world + Korean free-contract market
   ========================================================== */
.world-update{
  border:1px solid #3b5873;background:#122235;border-radius:10px;
  padding:9px 10px;margin:7px 0;color:#bfd1df;font-size:10.5px;line-height:1.45
}
.world-update b{color:#eef6fc}
.fa-market-tabs{
  display:flex;gap:5px;overflow-x:auto;margin:8px 0;scrollbar-width:none
}
.fa-market-tabs::-webkit-scrollbar{display:none}
.fa-market-tab{
  min-height:40px;padding:7px 12px;border:1px solid #344b61;background:#111b26;
  color:#b9cddd;border-radius:9px;font-weight:900;white-space:nowrap
}
.fa-market-tab.on{background:#214867;border-color:#69a6d9;color:#fff}
.free-filter{
  border:1px solid #344b60;background:#101a25;border-radius:10px;padding:8px;margin:7px 0
}
.free-filter-row{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.free-filter select,.free-filter input{
  min-height:38px;background:#17202c;color:#eef4fb;border:1px solid #35485b;
  border-radius:8px;padding:6px 8px
}
.free-filter select{flex:1 1 125px}
.free-filter label{display:flex;gap:5px;align-items:center;color:#aabfd0;font-size:10px}
.free-filter input[type=number]{width:72px}
.free-card{
  border:1px solid #31475c;background:#111c28;border-radius:10px;padding:9px;margin:5px 0
}
.free-card .topline{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.free-source{
  display:inline-flex;padding:2px 6px;border-radius:999px;background:#3a3448;
  color:#d8c8eb;font-size:9px;font-weight:800
}
.free-trend-up{color:#82dfa3;font-weight:900}
.free-trend-down{color:#ef9d9d;font-weight:900}
.free-trend-flat{color:#aab9c7;font-weight:900}
.world-history{
  color:#8fa4b6;font-size:9.5px;margin-top:4px;line-height:1.4
}
@media(max-width:520px){
  .free-filter select{flex:1 1 calc(50% - 4px);min-width:0}
  .free-card .topline{flex-direction:column}
  .free-card .topline>.actions{width:100%}
  .free-card .topline>.actions .btn{flex:1}
}


/* ==========================================================
   DEFENSE LINEUP FINAL
   Defense-first AI lineup + simpler manual lineup UX
   ========================================================== */
.defense-ai-note{
  border:1px solid #47657f;background:#122338;border-radius:10px;
  padding:9px 10px;margin:7px 0;color:#c4d7e6;font-size:10.5px;line-height:1.5
}
.defense-ai-note b{color:#f0f7fc}
.lineup-simple-row{
  display:grid;grid-template-columns:34px minmax(0,1fr) 92px;
  gap:7px;align-items:center;padding:7px 0;border-bottom:1px solid #293a4b
}
.lineup-simple-row:last-child{border-bottom:0}
.lineup-defense-badge{
  min-height:38px;border-radius:8px;border:1px solid #40566c;background:#142130;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  font-size:10px;color:#b8c9d8;line-height:1.15
}
.lineup-defense-badge b{font-size:13px;color:#fff}
.lineup-defense-badge.elite{border-color:#3f7653;background:#173024}
.lineup-defense-badge.good{border-color:#52784a;background:#202f1b}
.lineup-defense-badge.warn{border-color:#8a713d;background:#302819}
.lineup-defense-badge.bad{border-color:#80454d;background:#2b1c21}
.defense-field-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:7px
}
.defense-field-row{
  display:grid;grid-template-columns:44px minmax(0,1fr) 52px;gap:6px;align-items:center;
  padding:7px;border:1px solid #30465a;background:#101a25;border-radius:8px
}
.defense-field-pos{font-weight:900;color:#ddebfa;text-align:center}
.defense-fit-num{text-align:right;font-weight:900}
.defense-fit-elite{color:#7ce09b}
.defense-fit-good{color:#b4df8c}
.defense-fit-warn{color:#e9c674}
.defense-fit-bad{color:#ef9393}
.lineup-defense-summary{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:7px 0
}
.lineup-defense-summary>div{
  padding:7px;border:1px solid #30465a;background:#0f1924;border-radius:8px;text-align:center
}
.lineup-defense-summary span{display:block;color:#91a5b7;font-size:9px}
.lineup-defense-summary b{display:block;font-size:14px;color:#eef6fc;margin-top:2px}
@media(max-width:620px){
  .lineup-simple-row{grid-template-columns:32px minmax(0,1fr) 82px}
  .defense-field-grid{grid-template-columns:1fr}
  .lineup-defense-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* ==========================================================
   BATTING ORDER FINAL
   Manual ▲/▼ batting-order adjustment without disturbing defense
   ========================================================== */
.lineup-order-controls{
  display:flex;gap:4px;align-items:center;justify-content:flex-end
}
.lineup-order-btn{
  width:42px;height:42px;min-width:42px;padding:0;
  border:1px solid #40556b;background:#172434;color:#eaf3fb;
  border-radius:9px;font-size:16px;font-weight:900;
  display:inline-flex;align-items:center;justify-content:center
}
.lineup-order-btn:disabled{opacity:.24;cursor:default}
.lineup-order-btn:not(:disabled):active{transform:translateY(1px);background:#23425f}
.lineup-order-hint{
  color:#91a8ba;font-size:9.5px;line-height:1.4;margin:5px 0 8px
}
.lineup-simple-row.orderable{
  grid-template-columns:34px minmax(0,1fr) 82px 88px
}
@media(max-width:620px){
  .lineup-simple-row.orderable{
    grid-template-columns:32px minmax(0,1fr) 78px
  }
  .lineup-simple-row.orderable .lineup-order-controls{
    grid-column:2 / -1;
    justify-content:flex-end;
    margin-top:-2px
  }
  .lineup-order-btn{width:44px;height:44px;min-width:44px}
}


/* ==========================================================
   DRAG ORDER FINAL
   Drag handle for batting-order reordering
   ========================================================== */
.lineup-simple-row.orderable{
  grid-template-columns:34px 44px minmax(0,1fr) 82px 88px;
  position:relative;
}
.lineup-drag-handle{
  width:44px;height:44px;min-width:44px;padding:0;
  border:1px solid #415870;background:#152333;border-radius:9px;
  display:inline-flex;align-items:center;justify-content:center;
  cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;
}
.lineup-drag-handle:active{cursor:grabbing;background:#23425e}
.lineup-drag-lines{display:flex;flex-direction:column;gap:3px;width:18px}
.lineup-drag-lines i{
  display:block;height:2px;border-radius:2px;background:#c5d7e6;width:100%
}
.lineup-simple-row.dragging{
  opacity:.58;
  border:1px dashed #71a8d6;
  background:#14283a;
  border-radius:9px;
}
.lineup-simple-row.drag-over{
  box-shadow:0 -2px 0 #69a7d8 inset;
}
.lineup-drag-note{
  color:#93aabd;font-size:9.5px;line-height:1.45;margin:5px 0 8px
}
@media(max-width:620px){
  .lineup-simple-row.orderable{
    grid-template-columns:32px 44px minmax(0,1fr) 76px;
  }
  .lineup-simple-row.orderable .lineup-order-controls{
    grid-column:3 / -1;
    justify-content:flex-end;
  }
}


/* ==========================================================
   FOREIGN & SCOUT FINAL
   Current KBO foreign rules + quick scout popup
   ========================================================== */
.foreign-rule-card{
  border:1px solid #42627f;background:#12243a;border-radius:11px;
  padding:10px;margin:7px 0;color:#c5d7e5;font-size:10.5px;line-height:1.5
}
.foreign-rule-card b{color:#f2f8fd}
.scout-modal-backdrop{
  position:fixed;inset:0;z-index:400;background:rgba(4,8,13,.74);
  display:flex;align-items:center;justify-content:center;padding:14px;
}
.scout-modal{
  width:min(680px,100%);max-height:88vh;overflow:auto;
  border:1px solid #49657f;background:#101a26;border-radius:14px;
  box-shadow:0 20px 60px rgba(0,0,0,.48);padding:12px
}
.scout-modal-head{
  position:sticky;top:-12px;z-index:2;background:#101a26;
  display:flex;justify-content:space-between;gap:8px;align-items:center;
  padding:5px 0 9px;border-bottom:1px solid #2e4356;margin-bottom:8px
}
.scout-modal-head h3{margin:0}
.scout-modal-close{
  width:44px;height:44px;border:1px solid #425a70;background:#182635;
  color:#eaf3fa;border-radius:9px;font-size:20px
}
.scout-quick-time{
  display:flex;gap:5px;flex-wrap:wrap;margin:7px 0
}
.scout-time-pill{
  display:inline-flex;padding:4px 7px;border-radius:999px;background:#20384d;
  color:#d6e7f5;font-size:9.5px;font-weight:800
}
.scout-candidate{cursor:pointer}
body.scout-modal-open{overflow:hidden}
@media(max-width:520px){
  .scout-modal-backdrop{padding:7px;align-items:flex-end}
  .scout-modal{max-height:92vh;border-radius:14px 14px 6px 6px}
}


/* ==========================================================
   PLAYER SEARCH FINAL
   Search-first draft / recruiting workflow
   ========================================================== */
.player-search-hero{
  position:sticky;top:4px;z-index:25;
  border:1px solid #48657e;background:#101e2cf2;border-radius:12px;
  padding:9px;margin:7px 0;backdrop-filter:blur(6px)
}
.player-search-form{
  display:grid;grid-template-columns:minmax(0,1fr) auto auto;
  gap:6px;align-items:center
}
.player-search-input{
  width:100%;min-width:0;min-height:44px;
  background:#f5f7fa;color:#111827;border:1px solid #718297;
  border-radius:9px;padding:8px 11px;font-size:16px
}
.player-search-filter-row{
  display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-top:7px
}
.player-search-filter-row select{
  min-height:40px;flex:1 1 120px;min-width:100px;
  background:#172331;color:#ecf4fa;border:1px solid #3b5064;
  border-radius:8px;padding:6px 8px
}
.player-search-meta{
  display:flex;justify-content:space-between;gap:7px;flex-wrap:wrap;
  margin-top:6px;color:#93aabc;font-size:9.5px;line-height:1.4
}
.player-search-result{
  border:1px solid #31485d;background:#101b27;border-radius:10px;
  padding:9px;margin:6px 0
}
.player-search-result .head{
  display:flex;justify-content:space-between;gap:8px;align-items:flex-start
}
.player-search-result .name{
  font-size:14px;font-weight:900;color:#f1f7fc
}
.player-search-result .meta{
  margin-top:3px;color:#9fb4c5;font-size:10px;line-height:1.45
}
.player-search-actions{
  display:flex;gap:5px;flex-wrap:wrap;margin-top:7px
}
.player-search-actions .btn{min-height:38px}
.player-source-tag{
  display:inline-flex;padding:2px 6px;border-radius:999px;
  background:#2d4054;color:#dbe9f4;font-size:9px;font-weight:900
}
.draft-quick-search{
  position:sticky;top:4px;z-index:24;
  border:1px solid #4a6982;background:#102031f2;border-radius:11px;
  padding:8px;margin:7px 0;backdrop-filter:blur(6px)
}
.draft-quick-search-row{
  display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px
}
.draft-quick-search input{
  min-height:44px;width:100%;min-width:0;background:#f8fafc;color:#111827;
  border:1px solid #718296;border-radius:8px;padding:8px 10px;font-size:16px
}
.quick-search-help{
  margin-top:5px;color:#96adbf;font-size:9.5px;line-height:1.4
}
@media(max-width:520px){
  .player-search-form,.draft-quick-search-row{
    grid-template-columns:minmax(0,1fr) auto
  }
  .player-search-form .clear-search,.draft-quick-search-row .clear-search{
    grid-column:1 / -1
  }
  .player-search-actions .btn{flex:1 1 92px;min-height:44px}
}


/* ==========================================================
   FULL PLAYER SEARCH FINAL
   Independent all-player database with multi-checkbox scopes
   ========================================================== */
.all-player-search-head{
  position:sticky;top:4px;z-index:28;
  border:1px solid #48667f;background:#101e2cf2;border-radius:12px;
  padding:9px;margin:7px 0;backdrop-filter:blur(6px)
}
.all-player-search-row{
  display:grid;grid-template-columns:minmax(0,1fr) auto auto;
  gap:6px;align-items:center
}
.all-player-search-row input[type=text]{
  width:100%;min-width:0;min-height:44px;background:#f7f9fb;color:#111827;
  border:1px solid #718397;border-radius:9px;padding:8px 11px;font-size:16px
}
.scope-checks{
  display:flex;gap:6px;flex-wrap:wrap;margin-top:8px
}
.scope-check{
  display:inline-flex;align-items:center;gap:6px;min-height:40px;
  padding:6px 9px;border:1px solid #344b61;background:#111b27;
  color:#c3d4e2;border-radius:9px;font-size:10px;font-weight:800
}
.scope-check input{width:18px;height:18px;accent-color:#69a7dc}
.scope-check.on{border-color:#5e91bd;background:#1b344a;color:#fff}
.all-player-filter-row{
  display:flex;gap:6px;flex-wrap:wrap;margin-top:7px
}
.all-player-filter-row select{
  min-height:40px;flex:1 1 120px;min-width:100px;
  background:#172331;color:#eef5fa;border:1px solid #3a5065;
  border-radius:8px;padding:6px 8px
}
.all-player-search-meta{
  display:flex;justify-content:space-between;gap:7px;flex-wrap:wrap;
  margin-top:7px;color:#95aabd;font-size:9.5px;line-height:1.4
}
.all-player-card{
  border:1px solid #30475c;background:#101b27;border-radius:10px;
  padding:9px;margin:6px 0
}
.all-player-card .top{
  display:flex;justify-content:space-between;gap:8px;align-items:flex-start
}
.all-player-card .name{
  color:#f2f8fc;font-size:14px;font-weight:900
}
.all-player-card .meta{
  color:#9fb4c6;font-size:10px;line-height:1.45;margin-top:3px
}
.all-player-actions{
  display:flex;gap:5px;flex-wrap:wrap;margin-top:7px
}
.all-player-actions .btn{min-height:39px}
.player-db-source{
  display:inline-flex;padding:2px 6px;border-radius:999px;
  background:#2c4054;color:#dceaf5;font-size:9px;font-weight:900
}
.trade-eligible-tag{
  display:inline-flex;padding:2px 6px;border-radius:999px;
  background:#234a35;color:#bce4cb;font-size:9px;font-weight:900;margin-left:4px
}
.trade-ineligible-tag{
  display:inline-flex;padding:2px 6px;border-radius:999px;
  background:#443037;color:#e6bbc0;font-size:9px;font-weight:900;margin-left:4px
}
@media(max-width:520px){
  .all-player-search-row{grid-template-columns:minmax(0,1fr) auto}
  .all-player-search-row .clear-search{grid-column:1 / -1}
  .scope-check{flex:1 1 calc(33.33% - 6px);justify-content:center}
  .all-player-actions .btn{flex:1 1 95px;min-height:44px}
}


/* ==========================================================
   EASY TRADE FINAL
   League-wide shopping + conversational negotiation
   ========================================================== */
.easy-trade-panel{border:1px solid #496a84;background:#101e2d;border-radius:13px;padding:10px;margin:9px 0}
.easy-trade-step{font-size:10px;color:#9db2c3;font-weight:900;letter-spacing:.03em}
.easy-trade-title{font-size:16px;font-weight:900;color:#f2f8fc;margin:2px 0}
.easy-trade-sub{font-size:10px;color:#98adbf;line-height:1.5}
.easy-trade-assets{display:flex;gap:5px;flex-wrap:wrap;margin:8px 0}
.easy-trade-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;border-radius:8px;background:#24374a;color:#e3eef7;font-size:10px}
.easy-trade-chip button{border:0;background:transparent;color:#b8cadd;font-size:14px;padding:0;min-width:20px;height:20px}
.easy-trade-main-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.easy-trade-main-actions .btn{min-height:42px}
.market-reaction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:9px}
.market-reaction{border:1px solid #30495e;background:#101a26;border-radius:10px;padding:9px}
.market-reaction.hot{border-color:#4e7d61;background:#12251d}
.market-reaction.conditional{border-color:#806d42;background:#292416}
.market-reaction.cold{opacity:.72}
.market-reaction-head{display:flex;justify-content:space-between;gap:7px;align-items:flex-start}
.market-reaction-title{font-size:13px;font-weight:900;color:#eff7fd}
.market-reaction-note{font-size:10px;color:#9cb1c2;line-height:1.45;margin-top:5px}
.market-offer{margin-top:7px;padding:7px;border-radius:8px;background:#172534;border:1px solid #2d4459;font-size:10px;line-height:1.5}
.market-offer b{color:#f3f8fc}
.market-reaction-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}
.market-reaction-actions .btn{min-height:38px}
.trade-chat{margin-top:10px;border:1px solid #344d63;background:#0f1924;border-radius:11px;padding:9px}
.trade-chat-head{display:flex;justify-content:space-between;gap:7px;align-items:center;margin-bottom:7px}
.trade-chat-log{display:flex;flex-direction:column;gap:6px}
.trade-bubble{max-width:90%;padding:7px 9px;border-radius:10px;font-size:10px;line-height:1.5}
.trade-bubble.them{align-self:flex-start;background:#223446;border:1px solid #3b566e;color:#dce9f4}
.trade-bubble.me{align-self:flex-end;background:#1e3e32;border:1px solid #396851;color:#d9f0e4}
.trade-chat-status{padding:7px;border-radius:8px;background:#162432;border:1px solid #30485c;font-size:10px;line-height:1.5;margin:7px 0}
.trade-chat-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}
.trade-chat-actions .btn{min-height:39px}
.trade-selector-backdrop{position:fixed;inset:0;z-index:450;background:rgba(4,8,13,.76);display:flex;align-items:center;justify-content:center;padding:12px}
.trade-selector-modal{width:min(720px,100%);max-height:90vh;overflow:auto;background:#101a26;border:1px solid #49667f;border-radius:14px;padding:11px}
.trade-selector-head{position:sticky;top:-11px;z-index:4;background:#101a26;display:flex;justify-content:space-between;gap:7px;align-items:center;padding:5px 0 8px;border-bottom:1px solid #2d4356}
.trade-selector-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;margin:8px 0}
.trade-selector-search input{min-height:44px;width:100%;min-width:0;background:#f6f8fb;color:#111827;border:1px solid #718398;border-radius:8px;padding:8px 10px;font-size:16px}
.trade-selector-levels{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:7px}
.trade-selector-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.trade-selector-player,.trade-selector-pick{display:flex;align-items:center;gap:7px;padding:7px;border:1px solid #31485b;background:#111c28;border-radius:8px;font-size:10px;line-height:1.35}
.trade-selector-player input,.trade-selector-pick input{width:19px;height:19px;accent-color:#6aa9dd}
.trade-selector-player b{display:block;color:#eef6fb}
.trade-advanced-only{display:block}
.trade-simple-mode .trade-advanced-only,
.trade-simple-mode .negobox,
.trade-simple-mode .tradeassetgrid,
.trade-simple-mode .trade-sticky-command,
.trade-simple-mode .trade-logic-note,
.trade-simple-mode .trade-ai-counter{display:none!important}
@media(max-width:650px){
 .market-reaction-grid,.trade-selector-list{grid-template-columns:1fr}
 .trade-selector-backdrop{padding:6px;align-items:flex-end}
 .trade-selector-modal{max-height:94vh;border-radius:14px 14px 6px 6px}
 .market-reaction-actions .btn,.trade-chat-actions .btn{flex:1 1 115px;min-height:44px}
}


/* ==========================================================
   DEPTH CURRENT / FUTURE FINAL
   OOTP-inspired organization depth view
   ========================================================== */
.depth-toolbar{
  display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:8px 0
}
.depth-mode-btn{
  min-height:40px;padding:7px 12px;border:1px solid #3d5368;
  background:#162331;color:#d9e7f2;border-radius:9px;font-weight:800
}
.depth-mode-btn.active{border-color:#6aa4d2;background:#234663;color:#fff}
.depth-summary-strip{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:8px 0
}
.depth-summary-strip>div{
  border:1px solid #31485b;background:#101a25;border-radius:9px;
  padding:7px;text-align:center
}
.depth-summary-strip span{display:block;color:#91a7b9;font-size:9px}
.depth-summary-strip b{display:block;color:#f0f7fc;font-size:14px;margin-top:2px}
.depthspot.depth-clickable{
  appearance:none;color:inherit;cursor:pointer;
}
.depthspot.depth-clickable:active{transform:translate(-50%,-49%)}
.depth-dual{
  display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:4px
}
.depth-dual .boxlet{
  border:1px solid #31485a;background:#111c27;border-radius:7px;padding:4px 2px
}
.depth-dual small{display:block;color:#91a7b8;font-size:8px;line-height:1.1}
.depth-dual b{display:block;font-size:14px;margin-top:1px}
.depth-current-num{color:#e9f3fb}
.depth-future-num{color:#bfe6c9}
.depthspot .depth-topname{
  font-size:8.5px;color:#aebfcd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px
}
.depth-report-row{
  display:grid;grid-template-columns:44px minmax(0,1fr) 58px 58px 84px;
  gap:6px;align-items:center;padding:7px 0;border-bottom:1px solid #293c4e
}
.depth-report-row:last-child{border-bottom:0}
.depth-grade-pair{display:flex;gap:4px;justify-content:flex-end;flex-wrap:wrap}
.depth-grade-mini{
  display:inline-flex;min-width:36px;justify-content:center;padding:3px 5px;
  border-radius:999px;font-size:9px;font-weight:900;border:1px solid #3a5064
}
.depth-popup-backdrop{
  position:fixed;inset:0;z-index:470;background:rgba(3,8,13,.78);
  display:flex;align-items:center;justify-content:center;padding:12px
}
.depth-popup{
  width:min(760px,100%);max-height:90vh;overflow:auto;
  background:#101a26;border:1px solid #49677f;border-radius:14px;padding:11px
}
.depth-popup-head{
  position:sticky;top:-11px;z-index:3;background:#101a26;
  display:flex;justify-content:space-between;gap:8px;align-items:center;
  padding:5px 0 9px;border-bottom:1px solid #2d4356
}
.depth-popup-head h3{margin:0}
.depth-popup-close{
  width:44px;height:44px;border:1px solid #40576b;background:#172534;
  color:#eef6fb;border-radius:9px;font-size:20px
}
.depth-popup-summary{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:9px 0
}
.depth-popup-summary>div{
  border:1px solid #31485d;background:#111c28;border-radius:9px;padding:7px;text-align:center
}
.depth-popup-summary span{display:block;color:#92a9bb;font-size:9px}
.depth-popup-summary b{display:block;color:#f1f7fb;font-size:15px;margin-top:2px}
.depth-player-table{width:100%;border-collapse:collapse}
.depth-player-table th,.depth-player-table td{
  padding:7px 6px;border-bottom:1px solid #293c4e;text-align:left;font-size:10px
}
.depth-player-table th{color:#93a9bb;font-size:9px;position:sticky;top:55px;background:#101a26}
.depth-role-now,.depth-role-future{
  display:inline-flex;padding:2px 6px;border-radius:999px;font-size:8.5px;font-weight:800
}
.depth-role-now{background:#263b50;color:#d9e8f4}
.depth-role-future{background:#244334;color:#cce9d5}
@media(max-width:650px){
  .depth-summary-strip,.depth-popup-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .depth-report-row{grid-template-columns:40px minmax(0,1fr) 52px 52px}
  .depth-report-row .depth-grade-pair{grid-column:2 / -1;justify-content:flex-start}
  .depth-popup-backdrop{padding:6px;align-items:flex-end}
  .depth-popup{max-height:94vh;border-radius:14px 14px 6px 6px}
  .depth-player-table{min-width:650px}
  .depth-popup-table-wrap{overflow-x:auto}
}


/* ==========================================================
   AI POSITION FINAL
   Organization-wide position intelligence
   ========================================================== */
.ai-pos-note{
  border:1px solid #42627d;background:#112237;border-radius:10px;
  padding:8px 9px;margin:7px 0;color:#c5d8e7;font-size:10px;line-height:1.5
}
.ai-pos-note b{color:#f1f7fc}
.ai-pos-log{
  display:flex;gap:5px;flex-wrap:wrap;margin-top:6px
}
.ai-pos-log span{
  display:inline-flex;padding:3px 6px;border-radius:999px;
  background:#23384c;color:#dceaf5;font-size:9px
}
.ai-pos-badge{
  display:inline-flex;padding:2px 6px;border-radius:999px;
  background:#294536;color:#cce8d6;font-size:9px;font-weight:800
}


/* DEPTH FIX FINAL */
.depth-popup{width:min(980px,100%);overflow:hidden}
.depth-popup-head .tradehint{max-width:72vw;line-height:1.45;word-break:keep-all}
.depth-popup-summary b{line-height:1.25;word-break:keep-all}
.depth-popup-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.depth-player-card{border:1px solid #284157;background:#0f1823;border-radius:12px;padding:10px}
.depth-player-card-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;margin-bottom:6px}
.depth-player-card-head .main{min-width:0}
.depth-player-card-head .namebtn{background:none;border:0;padding:0;color:#f0f7fc;font-weight:800;font-size:15px;text-align:left;cursor:pointer}
.depth-player-card-head .sub{font-size:11px;color:#9db1c1;line-height:1.35;margin-top:3px;word-break:keep-all}
.depth-player-badges{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.depth-player-badge{display:inline-flex;padding:3px 7px;border-radius:999px;font-size:10px;font-weight:800;line-height:1;border:1px solid #35506a;background:#1d3042;color:#d9e8f5}
.depth-player-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.depth-player-stat{border:1px solid #21374b;background:#111f2c;border-radius:10px;padding:7px 6px;text-align:center}
.depth-player-stat span{display:block;color:#92a8ba;font-size:9px;line-height:1.15}
.depth-player-stat b{display:block;color:#f2f7fb;font-size:15px;line-height:1.2;margin-top:2px}
.depth-popup .ux-note{word-break:keep-all;line-height:1.55}
.depth-popup .cardhint{color:#90a8bb;font-size:11px;margin-top:8px}
@media (max-width:640px){
  .depth-popup-head{align-items:flex-start;gap:10px}
  .depth-popup-head h3{font-size:22px;line-height:1.15;word-break:keep-all}
  .depth-popup-head .tradehint{max-width:none;font-size:12px}
  .depth-popup-summary{gap:8px}
  .depth-popup-summary b{font-size:18px}
  .depth-popup-cards{grid-template-columns:1fr;gap:7px}
  .depth-player-card{padding:9px}
  .depth-player-card-head .namebtn{font-size:14px}
  .depth-player-card-head .sub{font-size:10px}
  .depth-player-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .depth-player-stat b{font-size:14px}
}


/* ==========================================================
   LINEUP PICKER & MOBILE DRAG FIX
   ========================================================== */
.lineup-player-picker{
  width:100%;min-width:0;min-height:48px;
  border:1px solid #556b80;background:#f7f8fa;color:#141a20;
  border-radius:8px;padding:8px 9px;
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  text-align:left;font-size:14px;font-weight:750;cursor:pointer;
}
.lineup-player-picker:active{background:#e8edf2}
.lineup-picker-name{
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.lineup-picker-arrow{font-size:16px;color:#35495a;flex:none}

.lineup-picker-backdrop{
  position:fixed;inset:0;z-index:520;background:rgba(3,7,12,.78);
  display:flex;align-items:center;justify-content:center;padding:12px
}
.lineup-picker-modal{
  width:min(720px,100%);max-height:90vh;overflow:auto;
  border:1px solid #496880;background:#101b27;border-radius:14px;padding:11px
}
.lineup-picker-head{
  position:sticky;top:-11px;z-index:3;background:#101b27;
  display:flex;align-items:flex-start;justify-content:space-between;gap:8px;
  padding:5px 0 9px;border-bottom:1px solid #2c4357;margin-bottom:8px
}
.lineup-picker-head h3{margin:0;font-size:18px;line-height:1.2}
.lineup-picker-head small{display:block;color:#94aabd;line-height:1.45;margin-top:3px}
.lineup-picker-close{
  width:44px;height:44px;min-width:44px;border:1px solid #40586d;
  background:#192837;color:#edf6fc;border-radius:9px;font-size:20px
}
.lineup-candidate-list{display:flex;flex-direction:column;gap:7px}
.lineup-candidate{
  width:100%;border:1px solid #30495e;background:#111d29;color:#edf5fb;
  border-radius:11px;padding:9px;text-align:left;cursor:pointer
}
.lineup-candidate.selected{border-color:#6ba5d2;background:#193047}
.lineup-candidate:active{background:#1c3143}
.lineup-candidate-top{
  display:flex;align-items:flex-start;justify-content:space-between;gap:8px
}
.lineup-candidate-name{font-size:14px;font-weight:900;line-height:1.3}
.lineup-candidate-meta{font-size:9.5px;color:#97adbf;line-height:1.4;margin-top:2px}
.lineup-candidate-tag{
  display:inline-flex;padding:3px 7px;border-radius:999px;
  background:#263b4e;color:#dceaf5;font-size:9px;font-weight:850;white-space:nowrap
}
.lineup-candidate-stats{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:7px
}
.lineup-stat{
  border:1px solid #31485a;border-radius:8px;padding:5px 4px;text-align:center;
  background:#14202c
}
.lineup-stat span{display:block;font-size:8px;line-height:1.1;color:#a3b5c4}
.lineup-stat b{display:block;font-size:13px;line-height:1.2;margin-top:2px}
.lineup-stat.elite{border-color:#3c7753;background:#162d21}
.lineup-stat.elite b{color:#87e2a3}
.lineup-stat.good{border-color:#426b88;background:#172938}
.lineup-stat.good b{color:#9bd1f4}
.lineup-stat.mid{border-color:#756b3e;background:#292619}
.lineup-stat.mid b{color:#e7d27a}
.lineup-stat.warn{border-color:#80583a;background:#2c2119}
.lineup-stat.warn b{color:#efb477}
.lineup-stat.bad{border-color:#7e424b;background:#2b1a20}
.lineup-stat.bad b{color:#ed909b}
.lineup-picker-empty{
  padding:18px 10px;text-align:center;color:#93a9ba;
  border:1px dashed #3a5065;border-radius:10px
}

/* Drag: do not reorder DOM while finger is moving.
   The handle stays under the finger and we only highlight the target row. */
.lineup-drag-active{user-select:none;-webkit-user-select:none}
.lineup-drag-handle{touch-action:none!important;overscroll-behavior:contain}
.lineup-simple-row.dragging{
  opacity:.58!important;background:#14283a!important;
  outline:2px solid #6aa7d7;outline-offset:-2px;border-radius:10px
}
.lineup-simple-row.drag-target{
  background:#18334a!important;
  outline:2px dashed #72b2e3;outline-offset:-2px;border-radius:10px
}
.lineup-drag-handle.dragging-handle{
  background:#2b5678!important;border-color:#80bde7!important
}
@media(max-width:620px){
  .lineup-player-picker{font-size:13px;min-height:48px}
  .lineup-picker-backdrop{padding:6px;align-items:flex-end}
  .lineup-picker-modal{max-height:94vh;border-radius:14px 14px 6px 6px}
  .lineup-candidate-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
  .lineup-stat{padding:5px 2px}
  .lineup-stat b{font-size:12px}
}


/* ==========================================================
   PITCHER ROLE FINAL
   Starter/reliever role eligibility + picker + rotation drag
   ========================================================== */
.pitching-explain{
  border:1px solid #42617b;background:#112238;border-radius:10px;
  padding:8px 9px;margin:7px 0;color:#c6d8e6;font-size:10px;line-height:1.5
}
.pitching-explain b{color:#f1f7fb}
.pitcher-rotation-row{
  display:grid;grid-template-columns:34px 44px minmax(0,1fr) 84px 88px;
  gap:7px;align-items:center;padding:7px 0;border-bottom:1px solid #293c4e
}
.pitcher-role-picker{
  min-height:48px;width:100%;min-width:0;
  border:1px solid #536a7f;background:#f7f8fa;color:#141a20;
  border-radius:8px;padding:8px 9px;display:flex;align-items:center;
  justify-content:space-between;gap:8px;text-align:left;font-size:13px;font-weight:750
}
.pitcher-role-picker .main{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pitcher-fit-badge{
  min-height:44px;border-radius:9px;border:1px solid #3e566b;background:#142130;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  font-size:9px;color:#9fb3c4;line-height:1.1;text-align:center
}
.pitcher-fit-badge b{font-size:13px;color:#eef6fb;margin-bottom:2px}
.pitcher-role-row{
  display:grid;grid-template-columns:90px minmax(0,1fr) 84px;
  gap:7px;align-items:center;padding:7px 0;border-bottom:1px solid #293c4e
}
.pitcher-role-row:last-child{border-bottom:0}
.pitcher-role-label{font-size:11px;font-weight:850;color:#dfeaf3}
.pitcher-picker-backdrop{
  position:fixed;inset:0;z-index:530;background:rgba(3,7,12,.78);
  display:flex;align-items:center;justify-content:center;padding:12px
}
.pitcher-picker-modal{
  width:min(720px,100%);max-height:90vh;overflow:auto;
  border:1px solid #496880;background:#101b27;border-radius:14px;padding:11px
}
.pitcher-picker-head{
  position:sticky;top:-11px;z-index:3;background:#101b27;
  display:flex;align-items:flex-start;justify-content:space-between;gap:8px;
  padding:5px 0 9px;border-bottom:1px solid #2c4357;margin-bottom:8px
}
.pitcher-picker-head h3{margin:0;font-size:18px;line-height:1.2}
.pitcher-picker-head small{display:block;color:#94aabd;line-height:1.45;margin-top:3px}
.pitcher-candidate-list{display:flex;flex-direction:column;gap:7px}
.pitcher-candidate{
  width:100%;border:1px solid #30495e;background:#111d29;color:#edf5fb;
  border-radius:11px;padding:9px;text-align:left
}
.pitcher-candidate.selected{border-color:#6ba5d2;background:#193047}
.pitcher-candidate-top{
  display:flex;justify-content:space-between;gap:8px;align-items:flex-start
}
.pitcher-candidate-name{font-size:14px;font-weight:900}
.pitcher-candidate-meta{font-size:9.5px;color:#97adbf;line-height:1.4;margin-top:2px}
.pitcher-candidate-stats{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:7px
}
.pitcher-stat{
  border:1px solid #31485a;border-radius:8px;padding:5px 4px;text-align:center;background:#14202c
}
.pitcher-stat span{display:block;font-size:8px;color:#a3b5c4;line-height:1.1}
.pitcher-stat b{display:block;font-size:13px;margin-top:2px}
.pitcher-stat.elite{border-color:#3c7753;background:#162d21}.pitcher-stat.elite b{color:#87e2a3}
.pitcher-stat.good{border-color:#426b88;background:#172938}.pitcher-stat.good b{color:#9bd1f4}
.pitcher-stat.mid{border-color:#756b3e;background:#292619}.pitcher-stat.mid b{color:#e7d27a}
.pitcher-stat.warn{border-color:#80583a;background:#2c2119}.pitcher-stat.warn b{color:#efb477}
.pitcher-stat.bad{border-color:#7e424b;background:#2b1a20}.pitcher-stat.bad b{color:#ed909b}
.pitcher-drag-row.dragging{opacity:.58;outline:2px solid #6aa7d7;outline-offset:-2px;border-radius:10px}
.pitcher-drag-row.drag-target{background:#18334a;outline:2px dashed #72b2e3;outline-offset:-2px;border-radius:10px}
@media(max-width:620px){
  .pitcher-rotation-row{grid-template-columns:32px 44px minmax(0,1fr) 78px}
  .pitcher-rotation-row .lineup-order-controls{grid-column:3 / -1;justify-content:flex-end}
  .pitcher-role-row{grid-template-columns:78px minmax(0,1fr) 76px}
  .pitcher-picker-backdrop{padding:6px;align-items:flex-end}
  .pitcher-picker-modal{max-height:94vh;border-radius:14px 14px 6px 6px}
  .pitcher-candidate-stats{gap:4px}
  .pitcher-stat b{font-size:12px}
}


/* ==========================================================
   TRADE OVERHAUL FINAL
   Search/filter/sort + complete AI position helper
   ========================================================== */
.trade-selector-toolbar{
  border:1px solid #30495d;background:#101b27;border-radius:10px;
  padding:8px;margin:8px 0
}
.trade-selector-row{
  display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-top:6px
}
.trade-selector-row:first-child{margin-top:0}
.trade-selector-row select,.trade-selector-row input[type=number]{
  min-height:40px;min-width:108px;flex:1 1 112px;
  background:#172331;color:#eef5fa;border:1px solid #3a5065;
  border-radius:8px;padding:6px 8px
}
.trade-pos-chips{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}
.trade-pos-chip{
  min-height:36px;border:1px solid #3b5268;background:#162330;color:#c9d8e4;
  border-radius:8px;padding:5px 8px;font-size:10px;font-weight:850
}
.trade-pos-chip.active{border-color:#69a5d4;background:#244b6a;color:#fff}
.trade-selector-summary{
  display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;
  margin:8px 0 6px;color:#97adbf;font-size:10px
}
.trade-selector-list.v2{grid-template-columns:1fr}
.trade-selector-player.v2{
  display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;align-items:center
}
.trade-selector-player.v2 .pname{font-size:12px;font-weight:900;color:#eef6fb}
.trade-selector-player.v2 .pmeta{font-size:9px;color:#9eb2c2;margin-top:2px;line-height:1.35}
.trade-selector-player.v2 .pstats{
  display:flex;gap:5px;flex-wrap:wrap;margin-top:4px
}
.trade-selector-player.v2 .pstats span{
  display:inline-flex;padding:2px 5px;border-radius:999px;background:#23374a;
  color:#dbe8f3;font-size:8.5px;font-weight:800
}
.trade-ai-helper-v2{
  border:1px solid #3c5870;background:#111f2d;border-radius:11px;
  padding:9px;margin-top:7px
}
.trade-ai-helper-v2 .helper-modes{display:flex;gap:5px;flex-wrap:wrap;margin:6px 0}
.trade-helper-note{
  font-size:9.5px;color:#96acbd;line-height:1.45;margin-top:6px
}
.trade-reco-detail{
  display:block;font-size:8.5px;color:#a9bdcc;margin-top:2px;line-height:1.3
}
.trade-advanced-extra{
  border:1px solid #30485c;background:#111d29;border-radius:9px;
  padding:7px;margin:6px 0
}
.trade-advanced-search{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px
}
.trade-advanced-search input{
  min-width:0;min-height:40px;background:#f6f8fb;color:#111827;
  border:1px solid #718397;border-radius:8px;padding:6px 9px;font-size:14px
}
.trade-advanced-row{
  display:flex;gap:5px;flex-wrap:wrap;margin-top:6px
}
.trade-advanced-row select,.trade-advanced-row input{
  min-height:38px;flex:1 1 95px;min-width:86px;
  background:#172331;color:#edf5fa;border:1px solid #3a5065;
  border-radius:8px;padding:5px 7px
}
.trade-need-pill{
  display:inline-flex;padding:2px 6px;border-radius:999px;font-size:8.5px;font-weight:850;
  background:#253b4e;color:#d9e7f3
}
.trade-need-pill.need{background:#473a25;color:#f0d89c}
.trade-need-pill.surplus{background:#214634;color:#c3e8d1}
@media(max-width:620px){
  .trade-selector-row select,.trade-selector-row input[type=number]{flex:1 1 calc(50% - 6px)}
  .trade-pos-chip{flex:1 1 calc(25% - 5px);text-align:center}
  .trade-advanced-row select,.trade-advanced-row input{flex:1 1 calc(50% - 5px)}
}


/* ==========================================================
   PITCHER DEPTH FIX FINAL
   Rotation/bullpen exclusivity + OVR-priority AI
   ========================================================== */
.pitcher-overlap-note{
  border:1px solid #48647b;background:#112238;border-radius:9px;
  padding:7px 9px;margin:7px 0;color:#c7d9e7;font-size:10px;line-height:1.5
}
.pitcher-overlap-note b{color:#f1f7fc}
.pitcher-fit-badge.rotation-locked{
  border-color:#596777;background:#202934;color:#b9c7d3
}


/* ==========================================================
   FULL AUDIT FINAL — regression/consistency fixes
   ========================================================== */
.pitcher-role-picker .main{white-space:normal!important;line-height:1.22!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
@media(max-width:620px){
 .pitcher-role-picker{font-size:12px!important;padding:7px 8px!important}
 .pitcher-role-picker .main{font-size:12px!important}
}
.audit-badge{display:inline-flex;padding:2px 6px;border-radius:999px;background:#214231;color:#caead5;font-size:9px;font-weight:850}


/* ==========================================================
   UX COMPLETE FINAL
   ========================================================== */
.ux-searchbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;margin:7px 0}
.ux-searchbar input{min-width:0;min-height:44px;border:1px solid #61768a;border-radius:9px;padding:8px 10px;background:#f7f9fb;color:#111827;font-size:16px}
.ux-result-note{display:flex;justify-content:space-between;gap:7px;flex-wrap:wrap;color:#93aabd;font-size:9.5px;margin:4px 0 7px}
.ux-preset-row{display:flex;gap:5px;flex-wrap:wrap;margin:7px 0}
.ux-preset-row .btn{min-height:38px}
.ux-rating-legend{display:flex;gap:4px;flex-wrap:wrap;margin:6px 0;color:#9eb1c1;font-size:9px}
.ux-rating-legend span{padding:2px 6px;border-radius:999px;border:1px solid #354b5e;background:#15222e}
.ux-control-label{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 105px;color:#92a8ba;font-size:9px;font-weight:800}
.ux-control-label>select,.ux-control-label>input{width:100%;min-width:0}
.trade-selector-row.ux-labeled{align-items:flex-end}
.trade-chat{scroll-margin-top:12px}
.market-reaction-grid{scroll-margin-top:12px}
.scout-intro.compact .scout-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
.scout-intro.compact .scout-step{min-height:0;padding:7px}
.scout-intro.compact .home-primary-actions{margin-top:7px}
@media(max-width:620px){
 .main .btn,.modal2 .btn,.overlay .btn{min-height:42px}
 .main select,.main input[type=number],.main input[type=text]{min-height:44px;font-size:16px}
 .playerlink{min-height:32px;padding:2px 0;display:inline-flex;align-items:center}
 .ux-searchbar{grid-template-columns:minmax(0,1fr) auto}
 .ux-searchbar .ux-clear{grid-column:1/-1}
 .ux-filter-row{gap:6px}
 .ux-filter-row>select{flex:1 1 calc(50% - 6px)}
 .trade-selector-row.ux-labeled{display:grid;grid-template-columns:1fr 1fr}
 .scout-intro.compact .scout-steps{grid-template-columns:1fr 1fr}
}


/* ==========================================================
   COMPLETE QA FINAL · whole-game UX + integrity finish
   ========================================================== */
@media(max-width:620px){
  .depthdiamond{min-height:610px!important}
  .depthspot{width:88px!important;padding:6px 4px!important;border-radius:10px!important}
  .depthspot b{font-size:13px!important}
  .depth-dual{gap:3px!important}
  .depth-dual .boxlet{padding:3px 1px!important}
  .depth-dual small{font-size:7px!important}
  .depth-dual b{font-size:11px!important;white-space:nowrap}
  .depthspot .depth-topname{font-size:7.5px!important;margin-top:3px!important}
  .playerlink{min-height:40px!important;display:inline-flex!important;align-items:center!important;padding:4px 2px!important}
  .trade-pos-chip{min-height:42px!important}
  .scope-check{min-height:44px!important}
  .ux-preset-row .btn{min-height:42px!important}
}
/* The scouting center now uses popup detail only; no duplicate long inline pane. */
#p-scouting .scout-shell.qa-popup-only{display:block!important}
#p-scouting .scout-shell.qa-popup-only>.scout-list{width:100%!important;max-width:none!important}
.qa-integrity-note{font-size:9.5px;color:#95aabd;line-height:1.45;margin-top:6px}


/* ==========================================================
   MASTER QA FINAL · UX + lifecycle performance
   ========================================================== */
@media(max-width:620px){
  .team-reco{display:grid!important;grid-template-columns:1fr 1fr!important;overflow:visible!important;gap:6px!important}
  .team-reco button{width:100%!important;min-width:0!important;white-space:normal!important;line-height:1.3!important}
}
@media(max-width:390px){.team-reco{grid-template-columns:1fr!important}}
.master-quickbar{display:flex;gap:5px;flex-wrap:wrap;margin:7px 0}
.master-quickbar .btn{min-height:38px}
.master-details{border:1px solid #30485d;background:#101b27;border-radius:10px;margin:7px 0;overflow:hidden}
.master-details>summary{list-style:none;cursor:pointer;padding:10px 11px;color:#dfeaf3;font-weight:850;font-size:11px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.master-details>summary::-webkit-details-marker{display:none}
.master-details>summary:after{content:'펼치기';font-size:9px;color:#8fa8ba;font-weight:700}
.master-details[open]>summary:after{content:'접기'}
.master-details-body{padding:0 8px 8px}
.master-draft-picks .card,.master-details .market-filter-panel,.master-details .coachreport{margin:0!important;border:0!important;background:transparent!important;padding:8px!important}
.master-help-note{font-size:9.5px;color:#98aebf;line-height:1.5;margin:5px 0}
.master-primary-flow{border:1px solid #3f5d76;background:#112337;border-radius:10px;padding:9px;margin:7px 0;font-size:10px;color:#c7d9e7;line-height:1.5}
.master-primary-flow b{color:#f1f7fc}
.master-boot-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.master-boot-actions .btn{min-height:44px}
/* make checkbox targets easier without making checkmarks huge */
.scope-check{min-height:44px!important;padding:8px 10px!important}
.scope-check input{width:20px!important;height:20px!important}
/* filter controls should remain readable on small Android screens */
@media(max-width:520px){
 .market-filter-row select,.market-filter-row input,.directorfilters select{min-height:44px!important;font-size:14px!important}
 .master-quickbar .btn{flex:1 1 calc(33.33% - 5px);min-width:88px}
}


/* MASTER QA UX PASS 2 */
.scout-candidate{color:#eaf3fa!important;text-align:left!important}
.scout-candidate b{color:#f5f9fc!important}.scout-candidate small{color:#a8bac9!important}
@media(max-width:620px){
 .depth-report-row>div:nth-child(2){min-width:0}.depth-report-row>div:nth-child(2)>b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .depth-report-row>div:nth-child(2)>small{display:block;font-size:9px;line-height:1.35;margin-top:2px;color:#98adbd;white-space:normal}
 .depth-report-row>div:nth-child(3),.depth-report-row>div:nth-child(4){text-align:center;border:1px solid #2b4256;border-radius:7px;padding:4px 2px;background:#111d29}
 .depth-report-row>div:nth-child(3) small,.depth-report-row>div:nth-child(4) small{display:block;font-size:8px;color:#91a7b8}
 .depth-report-row>div:nth-child(3) b,.depth-report-row>div:nth-child(4) b{font-size:13px}
 .mobile-batting-sidebar{display:flex!important;gap:6px;margin:7px 0}
 .mobile-batting-sidebar .btn{flex:1 1 0;min-height:44px}
}
@media(min-width:621px){.mobile-batting-sidebar{display:none!important}}


/* FINAL VERIFIED · last UX/lifecycle polish */
.final-offseason-help{border:1px solid #405e76;background:#112238;border-radius:10px;padding:8px 9px;margin:7px 0;color:#c5d8e7;font-size:10px;line-height:1.5}
.final-offseason-help b{color:#f1f7fc}
.final-task-count{display:inline-flex;padding:3px 7px;border-radius:999px;background:#293f54;color:#e1edf6;font-size:9px;font-weight:900;margin-left:5px}



/* PlayMarket mobile finishing layer */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;background:#090e15}
body{min-height:100dvh;overscroll-behavior-y:contain;padding-bottom:env(safe-area-inset-bottom)}
button,input,select,textarea{font:inherit}
button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #75c7ff;outline-offset:2px}
.storage-warning{position:fixed;z-index:9999;left:0;right:0;bottom:0;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:#713d0c;color:#fff;text-align:center;font-size:13px}
@media(max-width:600px){
  button,.btn,.menuBtn,input,select{min-height:44px}
  [class*="modal"],[class~="panel"]{max-width:100%}
}
@media(max-height:500px) and (orientation:landscape){
  [class*="modal"]{max-height:94dvh;overflow:auto;overscroll-behavior:contain}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.trade-proposal-summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px;padding:11px;border:1px solid #57a8e5;border-radius:11px;background:#10263a;color:#dcefff}.trade-proposal-summary b{width:100%}.trade-proposal-summary span{font-size:12px;color:#b7d4e8}.trade-proposal-ready{outline:3px solid #69bfff;outline-offset:3px;box-shadow:0 0 28px #318bd04d;transition:outline-color .25s,box-shadow .25s}.negobox{scroll-margin-top:12px}
@media(max-width:520px){.modal2{padding:8px}.modalcard{width:100%;max-height:calc(100dvh - 16px);border-radius:14px}.btn,.nav{min-height:44px}.top{padding-top:max(10px,env(safe-area-inset-top))}}
.btn,.nav{min-height:44px}
