.mw-workspace{padding:14px;min-width:0}.mw-management{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 12px}.mw-management button{background:none;border:0;color:var(--muted,#9eacc0);padding:4px 0;font-size:12px}.mw-tabs{margin-bottom:8px}.mw-summary{display:flex;align-items:center;gap:18px;flex-wrap:wrap;font-size:12px}.mw-summary button:first-of-type{margin-left:auto}.mw-filters{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:12px 0}.mw-filters label,.mw-dialog label{display:grid;gap:5px;font-size:11px;color:#afbed0}.mw-filters input,.mw-filters select,.mw-dialog input,.mw-dialog select,.mw-dialog textarea{background:#111b29;color:#ecf1f8;border:1px solid #35445a;border-radius:5px;padding:7px;min-width:0}.mw-filters input[type=search]{width:220px}.mw-extra-filters{display:flex;gap:10px;flex-wrap:wrap;padding:10px 0}.mw-extra-filters input{width:100px}.mw-filters details{flex-basis:100%;font-size:12px}.mw-count,.mw-hint{color:#aab8ca;font-size:12px}.mw-table-wrap{overflow-x:auto}.mw-table{border-collapse:collapse;width:100%;font-size:11px;white-space:nowrap}.mw-table th,.mw-table td{padding:7px 8px;text-align:left;border-bottom:1px solid #273446}.mw-table th{background:#132033}.mw-table th button{border:0;background:none;padding:0;color:#aebdd0;font-size:10px;font-weight:600}.mw-table th[aria-sort=ascending] button,.mw-table th[aria-sort=descending] button{color:#efc77a}.mw-table tbody tr:hover{background:#18283c;cursor:pointer}.mw-table td small{display:block;color:#91a4ba;font-size:10px}.mw-table td button{padding:4px 7px;font-size:10px}.mw-table .mw-name{padding:0;background:none;border:0;color:#edf4ff;font-weight:700;font-size:12px;text-align:left}.mw-priority{border-radius:4px;padding:3px 6px;background:#27394f}.mw-priority.high{color:#ffc789;background:#503523}.mw-priority.low{color:#adc1d4}.mw-pagination{display:flex;justify-content:flex-end;gap:12px;align-items:center;margin-top:12px;font-size:11px}.mw-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.mw-dialog{width:min(850px,94vw);max-height:88vh;padding:0;border:1px solid #3d5169;border-radius:10px;background:#101a28;color:#edf3fa}.mw-dialog::backdrop{background:#030912b8}.mw-dialog header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid #304057}.mw-dialog header small{color:#aebed2}.mw-dialog h2{margin:5px 0;font-size:22px}.mw-detail-content{padding:18px 20px}.mw-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:12px;background:#172538;border-radius:6px}.mw-facts dt{font-size:11px;color:#a7b7ca}.mw-facts dd{margin:6px 0 0;font-size:15px;font-weight:700}.mw-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.mw-dialog form{display:grid;gap:10px}.mw-dialog h3{font-size:14px;color:#efc77a}.mw-dialog h4{font-size:12px;margin:12px 0 5px}.mw-skill{display:grid;grid-template-columns:1fr 100px 25px;gap:8px;align-items:center;font-size:12px;margin:6px 0}.mw-dialog meter{width:100%;height:5px}.mw-dialog textarea{resize:vertical}.mw-dialog input[type=checkbox]{width:auto}.mw-dialog p{font-size:12px;line-height:1.6}.mw-dialog [data-mw-feedback]{color:#f0ce8d;min-height:20px}.mw-dialog button{padding:7px 12px;font-size:12px}.mw-dialog [data-mw-negotiation]{margin-top:20px;padding-top:10px;border-top:1px solid #304057}.mw-dialog [data-mw-offer],.mw-dialog [data-mw-precontract]{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.mw-dialog [data-mw-precontract] input{width:130px}@media(max-width:650px){.mw-facts{grid-template-columns:1fr 1fr}.mw-detail-grid{grid-template-columns:1fr}.mw-summary{gap:10px}.mw-filters input[type=search]{width:180px}}


/* Shared CS-GM graphite/amber presentation; trading actions stay server-owned. */
.csgm-workspace .mw-tabs{margin:0 0 12px}
.csgm-workspace .mw-hero{position:relative;isolation:isolate;overflow:hidden;min-width:0;min-height:182px;display:grid;gap:15px;padding:21px 22px;margin:0 0 12px;border:1px solid #414b5c;border-left:3px solid #ff9b35;border-radius:4px;background:#111820}
.mw-hero-art{position:absolute;inset:0 0 0 auto;width:72%;height:100%;object-fit:cover;object-position:right center;opacity:.84;z-index:-2;pointer-events:none;mask-image:linear-gradient(90deg,transparent,#000 25%);-webkit-mask-image:linear-gradient(90deg,transparent,#000 25%)}
.mw-hero::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#111820,#111820d9 28%,#11182040 67%,#11182020);z-index:-1;pointer-events:none}
.mw-hero::after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(125deg,transparent 0 48px,#ffffff03 49px 50px);z-index:-1;pointer-events:none}
.csgm-workspace .mw-kicker{font:600 10px/1.4 Inter,sans-serif;letter-spacing:.09em;color:#a2b2c8}
.csgm-workspace .mw-hero-copy{max-width:68%}
.csgm-workspace .mw-hero h2{margin:6px 0;font:700 25px/1.2 Inter,sans-serif;letter-spacing:-.04em;color:#edf4ff;text-shadow:0 1px 12px #0008;overflow-wrap:anywhere}
.csgm-workspace .mw-hero p{margin:0;font-size:11px;color:#a0aec1}
.mw-hero-stats{display:flex;align-items:start;gap:28px;max-width:68%}
.mw-hero-stats:empty{display:none}
.mw-hero-stats small{display:block;font:400 10px/1.4 Inter,sans-serif;color:#9cacc1}
.mw-hero-stats strong{display:block;margin-top:5px;font:700 19px/1.2 Inter,sans-serif;color:#f0f4fb;font-variant-numeric:tabular-nums}
.mw-hero-stats>div:last-child strong{color:#ffb463}
.csgm-workspace .mw-management{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px;padding:0}
.csgm-workspace .mw-management button{padding:7px 10px;min-height:31px;border:1px solid #333d4c;border-radius:4px;background:#161b23;color:#9fadc2;font:500 10px/1.4 Inter,sans-serif;cursor:pointer}
.csgm-workspace .mw-management button:hover{color:#f0f4fb;border-color:#60728b}
.csgm-workspace .mw-management button.active{color:#ffd5a4;border-color:#d58a40;background:#ff9b3510}
.csgm-workspace .mw-workspace,.csgm-workspace .mw-rules{padding:16px;margin:0;min-width:0;border-radius:4px;background:#171b23;border:1px solid #303947}
.csgm-workspace .mw-section-head{display:flex;justify-content:space-between;align-items:center;gap:8px 14px;flex-wrap:wrap;margin-bottom:12px}
.csgm-workspace .mw-section-head h3{margin:0;font:600 15px/1.4 Inter,sans-serif}
.csgm-workspace .mw-section-head>small{font-size:10px;color:#92a3bb}
.mw-tools{display:flex;gap:6px}
.csgm-workspace .mw-tools button,.csgm-workspace .mw-filters>button,.csgm-workspace .mw-pagination button{min-height:30px;padding:5px 9px;border:1px solid #39475c;border-radius:4px;background:#141c28;color:#b5c5da;font:500 10px/1.4 Inter,sans-serif;cursor:pointer}
.csgm-workspace .mw-tools button:first-child{color:#ffbc7a;border-color:#805731}
.csgm-workspace .mw-filters{gap:8px;margin:0 0 10px;padding:10px;background:#121822;border:1px solid #2c3747;border-radius:4px}
.csgm-workspace .mw-filters label{font-size:10px;gap:4px;min-width:0}
.csgm-workspace .mw-filters>label:first-child{flex:1 1 210px}
.csgm-workspace .mw-filters>label:first-child input{width:100%}
.csgm-workspace .mw-filters input,.csgm-workspace .mw-filters select{min-height:31px;max-width:100%;padding:6px 8px;font:400 11px/1.4 Inter,sans-serif;background:#171e2a;border-color:#364153;border-radius:3px}
.csgm-workspace .mw-filters>button[type=submit]{border-color:#b47436;color:#ffd5a4;background:#ff9b3510}
.csgm-workspace .mw-filters details{font-size:10px}
.mw-filters summary{color:#a9b8cf;cursor:pointer;list-style-position:inside}
.csgm-workspace .mw-extra-filters{padding:10px 0 0;gap:8px}
.csgm-workspace .mw-count{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:8px 0;font:400 10px/1.4 Inter,sans-serif;color:#a4b3c8}
.mw-count>span{color:#7f91ac}
.csgm-workspace .mw-table-wrap{max-width:100%;max-height:570px;overflow:auto;border:1px solid #2f3949;border-radius:3px;scrollbar-width:thin;scrollbar-color:#4a586e #131923}
.mw-table-wrap:focus-visible{outline:2px solid #7fb6ff;outline-offset:3px}
.csgm-workspace .mw-table{width:100%;font-size:11px;color:#c7d3e4}
.csgm-workspace .mw-table th,.csgm-workspace .mw-table td{height:42px;padding:6px 8px;border-bottom:1px solid #2a3341;font-variant-numeric:tabular-nums}
.csgm-workspace .mw-table th{position:sticky;top:0;z-index:2;height:34px;background:#111923;color:#8799b0}
.csgm-workspace .mw-table th button{font:600 10px Inter,sans-serif;color:inherit}
.csgm-workspace .mw-table th[aria-sort=ascending],.csgm-workspace .mw-table th[aria-sort=descending]{color:#ffb96d}
.csgm-workspace .mw-table :is(th,td):first-child{position:sticky;left:0;z-index:1;min-width:156px;max-width:230px;background:#171d27;border-right:1px solid #2a3545}
.csgm-workspace .mw-table th:first-child{z-index:3;background:#111923}
.csgm-workspace .mw-table tbody tr:hover,.csgm-workspace .mw-table tbody tr:hover td:first-child{background:#202a39}
.csgm-workspace .mw-table .mw-name{display:flex;gap:7px;align-items:center;max-width:215px;color:#e4ecf8;font:600 11px/1.4 Inter,sans-serif;padding:0}
.mw-name>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mw-avatar{display:inline-flex;align-items:center;justify-content:center;width:25px;height:27px;flex:0 0 25px;border:1px solid #485b73;border-radius:4px;background:linear-gradient(145deg,#35455c,#1c2533);color:#ceddf3;font:700 8px Inter,sans-serif}
.csgm-workspace .mw-table td .mw-person-status{font-size:9px;margin:2px 0 0 32px}
.csgm-workspace .mw-table td button:not(.mw-name){padding:5px 7px;font-size:10px;border-radius:3px;border:1px solid #3b4c63;background:#17212e;color:#b8cbe4;cursor:pointer}
.csgm-workspace .mw-table td button[aria-label^="Deixar"]{color:#ffd4a0;border-color:#ad753d;background:#ff9b3510}
.mw-skill-value{display:inline-flex;position:relative;justify-content:center;min-width:30px;padding:2px 1px 6px;font-size:10px;color:#bfcee2}
.mw-skill-value b{font-weight:500}
.mw-skill-value i{position:absolute;bottom:0;left:0;width:100%;height:3px;border-radius:2px;background:linear-gradient(90deg,#b3834d var(--skill),#303c4e var(--skill))}
.mw-overall{display:inline-flex;align-items:center;justify-content:center;min-width:29px;height:26px;border-radius:4px;border:1px solid #7e6240;background:#ff9b3510;color:#ffd3a0;font-weight:700}
.csgm-workspace .mw-pagination{margin-top:10px;gap:10px;font-size:10px;color:#9dacc2}
.mw-pagination button:disabled{opacity:.35;cursor:default}
.csgm-workspace [data-mw-status]{font-size:11px;line-height:1.5;color:#ffc582;margin:0 0 10px}
.csgm-workspace [data-mw-status]:empty{display:none}
.mw-rules .mw-section-head{margin-bottom:6px}
.mw-rule{border-bottom:1px solid #303a49}
.mw-rule:last-child{border-bottom:0}
.mw-rule summary{display:flex;align-items:center;gap:12px;padding:12px 0;cursor:pointer;list-style:none}
.mw-rule summary::after{content:'+';margin-left:auto;color:#a7b6cb;font-size:18px}
.mw-rule[open] summary::after{content:'−'}
.mw-rule-number{display:flex;align-items:center;justify-content:center;width:30px;height:32px;flex:0 0 30px;border:1px solid #655039;border-radius:4px;background:#ff9b3508;color:#ffb66d;font:600 10px Inter,sans-serif}
.mw-rule summary strong{display:block;font:600 12px/1.5 Inter,sans-serif;color:#e5edf9}
.mw-rule summary small{display:block;font-size:10px;color:#8fa2be}
.csgm-workspace .mw-rule p{margin:0;padding:0 22px 13px 42px;max-width:850px;font-size:11px;line-height:1.7;color:#a9b7cd}
body .mw-dialog{border-radius:5px;background:#161c26;border-color:#43516a}
body .mw-dialog header{padding:12px 16px;background:#121923}
body .mw-dialog .mw-facts{background:#111923;border:1px solid #303b4d;border-radius:4px}
@media(max-width:600px){
 .csgm-workspace .mw-hero{padding:16px;min-height:185px;gap:16px}
 .mw-hero-art{width:100%;object-position:76% center;opacity:.65}
 .mw-hero::before{background:linear-gradient(90deg,#111820ef,#111820a0 60%,#11182055),linear-gradient(0deg,#111820b0,transparent)}
 .csgm-workspace .mw-hero-copy{max-width:100%}
 .csgm-workspace .mw-hero h2{font-size:21px}
 .mw-hero-stats{max-width:100%;gap:12px;justify-content:space-between}
 .mw-hero-stats strong{font-size:17px}
 .mw-hero-stats small{font-size:9px}
 .csgm-workspace .mw-management{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
 .csgm-workspace .mw-management button{flex-shrink:0;white-space:nowrap}
 .csgm-workspace .mw-workspace,.csgm-workspace .mw-rules{padding:12px}
 .csgm-workspace .mw-section-head h3{font-size:13px}
 .csgm-workspace .mw-filters>label:first-child{flex-basis:100%}
 .csgm-workspace .mw-filters>label:not(:first-child){flex:1 1 95px}
 .csgm-workspace .mw-filters>label select{width:100%}
 .csgm-workspace .mw-extra-filters>label{flex:1 1 95px;min-width:0}
 .csgm-workspace .mw-extra-filters :is(input,select){width:100%}
 .csgm-workspace .mw-table :is(th,td):first-child{min-width:125px;max-width:150px}
 .csgm-workspace .mw-table .mw-name{max-width:132px;font-size:10px}
 .mw-avatar{width:22px;height:24px;flex-basis:22px;font-size:7px}
 .csgm-workspace .mw-table td .mw-person-status{margin-left:29px}
 .csgm-workspace .mw-pagination{justify-content:space-between;gap:6px}
 .mw-rule summary{gap:9px}
 .csgm-workspace .mw-rule p{padding-left:39px}
}
/* Keep alert controls compact inside the details dialog. */
body .mw-dialog label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px}
body .mw-dialog input[type=checkbox]{width:14px;height:14px;min-width:14px;min-height:14px;max-width:14px;flex:0 0 14px;margin:0;padding:0;accent-color:#ff9b35}


/* Staff uses the player table rhythm, with role-specific skill badges. */
.mw-staff-role{display:inline-flex;padding:3px 6px;border:1px solid #80603a;border-radius:4px;color:#efbe80;background:#ef9c2710;font-size:10px;white-space:nowrap}
.mw-staff-role[data-staff-kind=analyst]{color:#9dbfe8;border-color:#435f81;background:#6192cc10}
.mw-staff-role[data-staff-kind=scout]{color:#b3c6a0;border-color:#536b42;background:#8daa6510}
.mw-staff-role[data-staff-kind=psychologist]{color:#dfc5ac;border-color:#846c55;background:#b8997710}
.mw-staff-skill{display:inline-grid;justify-items:center;gap:2px;min-width:35px;margin-right:6px;vertical-align:middle}
.mw-staff-skill small{font-size:8px;color:#92a3bb;letter-spacing:.04em}
.mw-staff-skill .mw-skill-value{min-width:27px}
.mw-avatar{overflow:hidden}
.mw-avatar .csgm-person-portrait{width:100%;height:100%;object-fit:cover;object-position:center 20%}

/* Filtered results keep their column geometry and horizontal position. */
.csgm-workspace .mw-table{table-layout:fixed}
.csgm-workspace .mw-table-wrap{scrollbar-gutter:stable;min-width:0}
.csgm-workspace .mw-table td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}
.csgm-workspace .mw-table .mw-name{width:100%;min-width:0;max-width:100%}
.csgm-workspace .mw-table .mw-name>span:last-child{min-width:0}
.csgm-workspace .mw-table th button{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.csgm-workspace .mw-filters>label:has(select){flex:0 1 170px;width:170px}

/* Market modal: facts and skill/benefit columns share fluid grid sizing. */
.mw-dialog .mw-fluid-facts.csgm-fluid-workspace,
.mw-dialog .mw-fluid-detail.csgm-fluid-workspace{
 --csgm-layout-gap:12px;display:grid;grid-template-columns:repeat(var(--csgm-layout-tracks),minmax(0,1fr));
 grid-auto-flow:row dense;gap:var(--csgm-layout-gap);align-items:start
}
.mw-dialog .mw-fluid-facts.csgm-fluid-workspace>div{grid-column:span 6;min-width:0}
.mw-dialog .mw-fluid-detail.csgm-fluid-workspace>section{grid-column:span 12;min-width:0}
@media(max-width:1100px){
 .mw-dialog .mw-fluid-facts.csgm-fluid-workspace>div{grid-column:span 6}
 .mw-dialog .mw-fluid-detail.csgm-fluid-workspace>section{grid-column:span 12}
}
@media(max-width:680px){
 .mw-dialog .mw-fluid-facts.csgm-fluid-workspace>div{grid-column:span 1}
 .mw-dialog .mw-fluid-detail.csgm-fluid-workspace>section{grid-column:1/-1}
}
