@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
body.lhgmq-roster{background:#f1f5f6!important;color:#142c3b!important;font-family:'DM Sans',sans-serif!important;font-size:14px;margin:0;padding:24px}
.lhgmq-roster *{box-sizing:border-box}.lhgmq-roster input,.lhgmq-roster select,.lhgmq-roster button{font-family:inherit}.lhgmq-roster :focus-visible{outline:3px solid #f4b84a;outline-offset:3px}
body.lhgmq-roster #rostereditor,body.lhgmq-roster .pagewrapperrostereditor{width:100%!important;max-width:1420px;margin:0 auto!important;position:static!important;float:none!important;padding:0!important;background:none!important}
body.lhgmq-roster .lhgmq-editor-return{display:flex;gap:8px;max-width:1420px;margin:0 auto 16px;padding:0;background:none}body.lhgmq-roster .lhgmq-editor-return a{padding:9px 14px;background:white;border:1px solid #dce5e9;border-radius:8px;text-decoration:none;color:#142c3b;font-size:14px;font-weight:600}
.lhgmq-roster>form{max-width:1420px;margin:0 auto}.lhgmq-roster select{padding:8px;border:1px solid #dce5e9;border-radius:7px;background:white}
body.lhgmq-roster h1{font-family:Manrope,sans-serif;font-size:30px;letter-spacing:-1px;margin:20px 0 7px;padding:0;background:none;border:0;color:#142c3b}
body.lhgmq-roster #rostereditor .r2-toolbar{display:flex;align-items:center;gap:16px;margin:4px 0 16px;padding:8px 0}
body.lhgmq-roster #rostereditor .Save{position:static!important;display:flex!important;gap:8px;float:none!important;width:auto!important;margin:0!important;padding:0!important;height:auto!important;background:none!important;flex-shrink:0}
body.lhgmq-roster #rostereditor .Save input{width:auto!important;height:auto!important;padding:10px 14px!important;background:white!important;border:1px solid #dce5e9!important;border-radius:8px!important;color:#142c3b!important;font-size:12px!important;font-weight:700}
body.lhgmq-roster #rostereditor #saveroster{background:#087d78!important;border-color:#087d78!important;color:white!important}
body.lhgmq-roster #rostereditor h3.withsave{flex:1;min-width:0;margin:0;padding:0;border:0;background:none!important;font-size:12px;line-height:1.5;color:#637987}
body.lhgmq-roster #rostereditor .rostererror{border:1px solid #eed4ca;border-radius:8px;padding:10px 14px;margin:0 0 12px;background:#fff5ef;font-size:12px!important;line-height:1.5}
body.lhgmq-roster #rostereditor .rostererror:has(.rostercomplete){background:#edf8f1;border-color:#c9e6d8;color:#286848}
body.lhgmq-roster #rostereditor .positionlist{display:flex;gap:5px;margin:12px 0 16px;padding:0;background:none}
body.lhgmq-roster #rostereditor .positionlist label{display:flex;align-items:center;gap:5px;padding:7px 10px;border-radius:6px;background:#e7eeee;font-size:11px;color:#637987;cursor:pointer}body.lhgmq-roster #rostereditor .positionlist label:has(input:checked){background:#087d78;color:white}body.lhgmq-roster .positionlist input{accent-color:#087d78;margin:0}
body.lhgmq-roster #rostereditor .columnwrapper{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;overflow:visible!important}
body.lhgmq-roster #rostereditor .col4{width:100%!important;float:none!important;padding:0!important;min-width:0}
body.lhgmq-roster #rostereditor ol{background:white!important;border:1px solid #dce5e9!important;border-radius:12px;padding:16px!important;margin:0!important;min-height:100px;box-shadow:0 2px 4px #142c3b03!important;overflow:visible}
body.lhgmq-roster #rostereditor h4{font-family:Manrope,sans-serif;color:#142c3b;text-align:left!important;font-size:14px;margin:0 0 14px!important;background:none;border:0;padding:0}
body.lhgmq-roster #rostereditor li{display:block;list-style:none;background:#eef5f5!important;color:#142c3b!important;border:1px solid #d5e6e5!important;border-radius:7px!important;box-shadow:none!important;padding:10px!important;margin:0!important;font-size:12px!important;line-height:1.4;overflow:hidden;min-height:38px}
body.lhgmq-roster #rostereditor li+li{margin-top:6px!important}body.lhgmq-roster #rostereditor li:hover{border-color:#087d78!important}
body.lhgmq-roster #rostereditor .rowinfo{width:100%!important;float:none!important;display:flex;flex-wrap:wrap;align-items:center;gap:5px;justify-content:space-between}
body.lhgmq-roster #rostereditor .rowname{float:none!important;margin:0!important;min-width:0;font-weight:600;font-size:12px!important}body.lhgmq-roster #rostereditor .rowinfoline{float:none!important;margin:0!important;color:#637987;font-size:9px!important}
body.lhgmq-roster #rostereditor li.injury,body.lhgmq-roster #rostereditor li.suspension{background:#fff1eb!important;border-color:#e9baa9!important}body.lhgmq-roster #rostereditor li.movetowaiver{background:#fff5da!important;border-color:#e7ce88!important}body.lhgmq-roster #rostereditor li.nocontract{opacity:.5}body.lhgmq-roster #rostereditor li.protofarmsalary{border:2px solid #bd4b39!important}
body.lhgmq-roster #accordionfuture,body.lhgmq-roster #accordionfuture>div{padding:0!important;border:0!important;background:none!important;font-family:inherit;overflow:visible;height:auto!important}
@media(max-width:900px){body.lhgmq-roster{padding:16px}body.lhgmq-roster #rostereditor .columnwrapper{grid-template-columns:repeat(2,minmax(0,1fr))}body.lhgmq-roster h1{font-size:25px}}
@media(max-width:620px){body.lhgmq-roster{padding:12px}body.lhgmq-roster .lhgmq-editor-return a{padding:8px 10px;font-size:11px}body.lhgmq-roster #rostereditor .r2-toolbar{gap:8px;align-items:flex-start}body.lhgmq-roster #rostereditor h3.withsave{font-size:10px}body.lhgmq-roster #rostereditor .Save{gap:4px;flex-direction:column}body.lhgmq-roster #rostereditor .Save input{padding:7px 9px!important;font-size:10px!important;width:100%!important}body.lhgmq-roster #rostereditor .columnwrapper{gap:8px}body.lhgmq-roster #rostereditor ol{padding:10px!important;min-height:80px}body.lhgmq-roster #rostereditor li{padding:7px!important;min-height:36px}body.lhgmq-roster #rostereditor .rowname{font-size:10px!important}body.lhgmq-roster #rostereditor .rowinfoline{font-size:8px!important}body.lhgmq-roster #rostereditor h4{font-size:12px;margin-bottom:10px!important}}
body.lhgmq-roster #rostereditor .Save input{letter-spacing:0!important;box-shadow:none!important;margin:0!important}body.lhgmq-roster #rostereditor h3.withsave{text-transform:none!important;letter-spacing:0!important}body.lhgmq-roster #rostereditor .rostercomplete{background:none!important;padding:0!important}body.lhgmq-roster #rostereditor .positionlist{border:0!important;box-shadow:none!important}
/* Remove the legacy divider above the roster action buttons. */
body.lhgmq-roster #rostereditor .Save{border:0!important;box-shadow:none!important;background-image:none!important}body.lhgmq-roster #rostereditor .Save:before,body.lhgmq-roster #rostereditor .Save:after{display:none!important}
body.lhgmq-roster #rostereditor .r2-player-stats{display:flex;gap:8px;flex-basis:100%;font-size:10px;color:#637987;line-height:1.3}body.lhgmq-roster #rostereditor .r2-player-stats span{white-space:nowrap}body.lhgmq-roster #rostereditor .r2-condition-low{color:#bd4b39;font-weight:700}@media(max-width:620px){body.lhgmq-roster #rostereditor .r2-player-stats{font-size:9px;gap:6px}}
body.lhgmq-roster #rostereditor .r2-player-stats .r2-condition-green{color:#16804a;font-weight:700}body.lhgmq-roster #rostereditor .r2-player-stats .r2-condition-orange{color:#b66a08;font-weight:700}body.lhgmq-roster #rostereditor .r2-player-stats .r2-condition-red{color:#bd4b39;font-weight:700}
/* Compact player rows: name, position, overall and condition aligned. */
body.lhgmq-roster #rostereditor .rowinfo{display:grid!important;grid-template-columns:minmax(0,1fr) 38px 72px;gap:6px!important;align-items:center!important;flex-wrap:nowrap!important}
body.lhgmq-roster #rostereditor .rowname{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.lhgmq-roster #rostereditor .rowinfoline{text-align:right;white-space:nowrap}
body.lhgmq-roster #rostereditor .r2-player-stats{display:grid;grid-template-columns:25px 41px;gap:6px;flex-basis:auto;font-size:11px;text-align:right;font-variant-numeric:tabular-nums}
body.lhgmq-roster #rostereditor .r2-player-stats span:last-child{padding:2px 4px;border-radius:4px;background:#f8fcfa}
@media(max-width:620px){body.lhgmq-roster #rostereditor .rowinfo{grid-template-columns:minmax(0,1fr) 30px 57px;gap:3px!important}body.lhgmq-roster #rostereditor .r2-player-stats{grid-template-columns:19px 35px;gap:3px;font-size:9px}body.lhgmq-roster #rostereditor li{padding:7px 5px!important}body.lhgmq-roster #rostereditor ol{padding:9px 6px!important}}
@media(max-width:620px){body.lhgmq-roster #rostereditor .rowname{font-size:0!important}body.lhgmq-roster #rostereditor .rowname:after{content:attr(data-short);font-size:10px}}
body.lhgmq-roster #rostereditor .r2-player-stats>span:first-child{font-weight:700;color:#142c3b}
/* Position precedes the name; ratings remain aligned on the right. */
body.lhgmq-roster #rostereditor .rowinfo{grid-template-columns:38px minmax(0,1fr) 72px!important}
body.lhgmq-roster #rostereditor .rowinfoline{grid-column:1;grid-row:1;text-align:left}
body.lhgmq-roster #rostereditor .rowname{grid-column:2;grid-row:1}
body.lhgmq-roster #rostereditor .r2-player-stats{grid-column:3;grid-row:1}
@media(max-width:620px){body.lhgmq-roster #rostereditor .rowinfo{grid-template-columns:30px minmax(0,1fr) 57px!important}}

/* Four compact roster columns and actions below the next-game label on mobile. */
@media(max-width:900px){
body.lhgmq-roster{padding:10px}
body.lhgmq-roster #rostereditor .r2-toolbar{flex-direction:column;align-items:stretch;gap:8px}
body.lhgmq-roster #rostereditor h3.withsave{width:100%;flex:auto}
body.lhgmq-roster #rostereditor .Save{flex-direction:row!important;width:100%!important;gap:8px}
body.lhgmq-roster #rostereditor .Save input{flex:1;min-width:0;width:auto!important;padding:8px 6px!important;font-size:11px!important}
body.lhgmq-roster #rostereditor .columnwrapper{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px}
body.lhgmq-roster #rostereditor ol{padding:7px 3px!important;min-width:0;width:100%}
body.lhgmq-roster #rostereditor li{padding:6px 3px!important;min-width:0;width:100%}
body.lhgmq-roster #rostereditor .r2-player-stats{display:none!important}
body.lhgmq-roster #rostereditor .rowinfo{grid-template-columns:minmax(0,1fr)!important;gap:2px!important}
body.lhgmq-roster #rostereditor .rowname{grid-column:1;grid-row:1;font-size:0!important;white-space:normal;overflow-wrap:anywhere;line-height:1.3}
body.lhgmq-roster #rostereditor .rowname:after{content:attr(data-short);font-size:10px}
body.lhgmq-roster #rostereditor .rowinfoline{grid-column:1;grid-row:2;text-align:left;font-size:8px!important}
body.lhgmq-roster #rostereditor h4{font-size:10px;overflow-wrap:anywhere;margin-bottom:8px!important}
body.lhgmq-roster #rostereditor .positionlist{flex-wrap:wrap}
}

body.lhgmq-roster #rostereditor [data-condition="green"]{background:#e8f5ec!important;border-color:#a8d7b6!important}
body.lhgmq-roster #rostereditor [data-condition="yellow"]{background:#fff7d6!important;border-color:#e8d17a!important}
body.lhgmq-roster #rostereditor [data-condition="red"]{background:#fdebea!important;border-color:#e7aaa5!important}

@media(max-width:900px){body.lhgmq-roster #rostereditor .rowinfo{grid-template-columns:minmax(0,1fr) 22px!important}body.lhgmq-roster #rostereditor .rowname{grid-column:1 / -1}body.lhgmq-roster #rostereditor .r2-player-stats{display:block!important;grid-column:2;grid-row:2;font-size:10px;line-height:1.3;text-align:right;min-width:0}body.lhgmq-roster #rostereditor .r2-player-stats>span{padding:0!important;background:none!important}}
@media(min-width:901px){body.lhgmq-roster #rostereditor .rowinfo{grid-template-columns:38px minmax(0,1fr) 28px!important;width:100%!important}body.lhgmq-roster #rostereditor .r2-player-stats{display:block;justify-self:end;grid-template-columns:none;gap:0}body.lhgmq-roster #rostereditor .r2-player-stats>span{padding:0!important;background:none!important}}
body.lhgmq-roster #rostereditor .confirm{display:block!important;box-sizing:border-box!important;width:100%!important;margin:0 0 12px!important;padding:10px 14px!important;border:1px solid #c9e6d8!important;border-radius:8px!important;background:#edf8f1!important;color:#286848!important;font-family:inherit!important;font-size:12px!important;font-weight:400!important;line-height:1.5!important;letter-spacing:0!important;text-transform:none!important;text-shadow:none!important;box-shadow:none!important}
