/* CCL v1.9.55–57 : compact but accessible, no auth changes */
body.ccl-my-teams #myTeamsPanel>.section-label, body.ccl-my-teams #myTeamsPanel>h3, body.ccl-my-teams #myTeamsPanel>.muted{margin-block:.2rem!important}
.ccl-team-hq{border:1px solid #615537;border-radius:12px;background:linear-gradient(135deg,#1b231e,#25261c);padding:14px;margin:.6rem 0 1rem}
.ccl-hq-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.ccl-hq-top h3{margin:.15rem 0}.ccl-hq-top p{margin:0}
.ccl-hq-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}.ccl-hq-metric{background:#111b17;border:1px solid #3d4539;border-radius:8px;padding:10px}.ccl-hq-metric strong{display:block;color:#e5be76;font-size:1.15rem}.ccl-hq-metric small{display:block;color:#bec8bb;font-size:.72rem}
.ccl-hq-actions{display:flex;flex-wrap:wrap;gap:7px}.ccl-hq-actions button{min-height:38px}.ccl-hq-alert{color:#f1c773}
.ccl-hq-roster-table{display:block;overflow-x:auto;max-width:100%;border:1px solid #3e4a3f;border-radius:9px}.ccl-hq-roster-table .application-item{display:grid!important;grid-template-columns:minmax(180px,2fr) minmax(125px,1fr) minmax(135px,1fr) auto;align-items:center;gap:8px;padding:8px 10px;margin:0!important;border:0;border-bottom:1px solid #3a4239;border-radius:0;background:transparent}.ccl-hq-roster-table .application-item:last-child{border-bottom:0}.ccl-hq-roster-table .application-item>div:first-child{min-width:0}.ccl-hq-roster-table .application-item strong{display:block}.ccl-hq-roster-table .application-item small{display:block}.ccl-hq-roster-table .application-actions{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}.ccl-hq-roster-table button{font-size:.78rem;padding:6px 9px;min-height:34px}
.ccl-hq-roster-table .ccl-hq-pos,.ccl-hq-roster-table .ccl-hq-status{font-size:.81rem}.ccl-hq-status.ccl-hq-warning{color:#eecb84}.ccl-hq-toolbar{display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap;margin:8px 0}.ccl-hq-toolbar input{max-width:240px;min-width:130px}
body.ccl-my-teams #rosterManager{margin-top:.6rem}body.ccl-my-teams #rosterManager .ccl-reporter-card{padding:8px;margin-block:.4rem}body.ccl-my-teams #rosterManager .ccl-reporter-card .hint{margin:.2rem 0}
@media(max-width:760px){.ccl-hq-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ccl-hq-roster-table .application-item{grid-template-columns:minmax(130px,1fr) auto;gap:5px}.ccl-hq-roster-table .ccl-hq-pos,.ccl-hq-roster-table .ccl-hq-status{grid-column:1}.ccl-hq-roster-table .application-actions{grid-column:2;grid-row:1/span 3;flex-direction:column}.ccl-hq-roster-table .application-actions button{font-size:.74rem}.ccl-hq-top{flex-wrap:wrap}}

/* v1.9.56 */
body.ccl-my-teams #ccl-hire-first{padding:8px 12px;margin:8px 0}body.ccl-my-teams #ccl-hire-first>h3{font-size:1rem;margin:4px 0}body.ccl-my-teams #ccl-hire-first>.hint{font-size:.75rem;margin:0 0 8px}
body.ccl-my-teams #playerEditPanel{border:1px solid #9b7c4d;padding:12px;border-radius:8px}
body.ccl-my-teams #cclPlayersHeading{margin:8px 0}

/* v1.9.57 — attention without excessive vertical space */
.ccl-hq-alerts{display:flex;gap:8px;align-items:center;margin:-3px 0 12px;font-size:.81rem;color:#e5c58a}
.ccl-hq-alerts:before{content:'◆';font-size:.68rem;color:#caa566}
.ccl-hq-spp-state{border-left:3px solid #caa566;padding:7px 12px;background:#222a22;color:#d8dfcf;margin:8px 0}
.ccl-hq-spp-state.ccl-hq-warning{color:#f4c46e}
body.ccl-my-teams #rosterManager details.ccl-secondary-controls{margin:7px 0}
body.ccl-my-teams #rosterManager details.ccl-secondary-controls>summary{cursor:pointer;padding:8px 10px}

/* v1.9.61: hiring desk closed by default, accessible when requested */
body.ccl-my-teams .ccl-hire-disclosure{border:1px solid #675735;border-radius:9px;margin:8px 0;padding:0 12px}body.ccl-my-teams .ccl-hire-disclosure>summary{cursor:pointer;color:#e6bf78;font-weight:700;padding:11px 6px}body.ccl-my-teams .ccl-hire-disclosure:not([open]){background:#171f19}body.ccl-my-teams .ccl-hire-disclosure form{padding:8px 3px 12px}body.ccl-my-teams .ccl-hire-disclosure input,body.ccl-my-teams .ccl-hire-disclosure select{max-width:100%;}

/* v1.9.62 — compact TourPlay-style positional slots */
.ccl-pos-tracker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 14px;margin:10px 0}.ccl-pos-item{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px 7px;background:#151e18;border-radius:5px;font-size:.78rem}.ccl-pos-bubbles{display:inline-flex;gap:3px;flex-wrap:wrap;justify-content:flex-end}.ccl-pos-bubbles i{display:inline-block;width:11px;height:11px;border:1px solid #9a8969;border-radius:50%}.ccl-pos-bubbles i.filled{background:#d1a75b;border-color:#d1a75b}@media(max-width:650px){.ccl-pos-tracker{grid-template-columns:1fr}}

/* v1.9.63 — eliminate unused vertical space in team HQ */
body.ccl-my-teams #rosterManager .panel{margin-top:8px}body.ccl-my-teams #rosterManager .section-label{margin-bottom:3px}body.ccl-my-teams #rosterManager h3,body.ccl-my-teams #rosterManager h4{margin:7px 0}body.ccl-my-teams #rosterManager p.hint{margin:5px 0}body.ccl-my-teams #playerListing .application-item{min-height:0}body.ccl-my-teams #hireForm input[type=number]{max-width:105px}body.ccl-my-teams #rosterManager .ccl-team-hq{margin-top:5px}body.ccl-my-teams #rosterManager .ccl-hq-metrics{margin:7px 0}body.ccl-my-teams #rosterManager #cclHireDisclosure:not([open]) + .hint{display:none}

/* v1.9.64 — Team Assets before roster controls */
body.ccl-my-teams #assetShop.ccl-assets-shop{margin:7px 0 12px!important;padding:12px;border:1px solid #705c37;border-radius:10px;background:#1a221d}
body.ccl-my-teams #assetShop .application-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.ccl-my-teams #assetShop .application-item{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0;padding:9px;background:#121c16;border:1px solid #3c4736;border-radius:8px}
body.ccl-my-teams #assetShop .application-item strong{display:block;font-size:.9rem}body.ccl-my-teams #assetShop .application-item small{display:block;font-size:.75rem}
body.ccl-my-teams #assetShop .application-actions{display:flex;align-items:center;gap:5px}body.ccl-my-teams #assetShop input[type=number]{width:65px!important}
@media(max-width:720px){body.ccl-my-teams #assetShop .application-list{grid-template-columns:1fr}}

/* v1.9.65 — compact expandable roster with ratings and skills */
.ccl-players-disclosure{border:1px solid #665737;border-radius:9px;padding:0 10px 10px;margin:10px 0}
.ccl-players-disclosure>summary{cursor:pointer;font-size:1.08rem;font-weight:750;color:#edc883;padding:11px 6px;list-style-position:inside}
.ccl-players-disclosure:not([open]){padding-bottom:0;background:#151d17}
body.ccl-my-teams #playerListing .application-item{grid-template-columns:minmax(135px,1fr) minmax(90px,.65fr) minmax(110px,.6fr) minmax(240px,1.6fr) auto}
.ccl-hq-statline{min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:2px 9px}
.ccl-hq-characteristics{font-size:.8rem;white-space:normal;color:#dbe4d6}
.ccl-hq-player-spp{font-size:.8rem;color:#f0bf6c;white-space:nowrap}
.ccl-hq-skills{display:block;flex-basis:100%;font-size:.72rem;color:#b9c7b5;overflow-wrap:anywhere}
@media(max-width:1100px){body.ccl-my-teams #playerListing .application-item{grid-template-columns:minmax(130px,1fr) minmax(100px,.7fr) minmax(220px,1.6fr) auto}.ccl-hq-statline{grid-column:3}.ccl-hq-status{display:none}}
@media(max-width:760px){body.ccl-my-teams #playerListing .application-item{grid-template-columns:minmax(135px,1fr) auto}.ccl-hq-statline{grid-column:1;grid-row:auto}.ccl-hq-status{display:none}.ccl-hq-roster-table .application-actions{grid-column:2;grid-row:1/span 3}}

/* v1.9.66 — single player-management panel */
body.ccl-my-teams #ccl-player-detail{margin:10px 0;border:1px solid #745f3c;border-radius:10px;padding:12px}
body.ccl-my-teams #ccl-player-detail .ccl-team-home-bar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
body.ccl-my-teams #ccl-player-detail #advancementPanel{border:0;box-shadow:none;margin:6px 0!important;padding:7px 0!important}
body.ccl-my-teams #ccl-player-detail select{max-width:560px}
body.ccl-my-teams .ccl-roster-guide{font-size:.78rem;margin:5px 0 8px!important}

/* v1.9.68 — dense Blood Bowl roster rows, without losing core characteristics */
body.ccl-my-teams #playerListing.ccl-hq-roster-table .application-item{grid-template-columns:minmax(136px,1.3fr) minmax(95px,.7fr) minmax(275px,2fr) auto;gap:6px 10px;padding:7px 10px;align-items:center}
body.ccl-my-teams #playerListing .application-item>div:first-child strong{font-size:.88rem;line-height:1.3}
body.ccl-my-teams #playerListing .ccl-hq-pos{font-size:.76rem;color:#bfcbb9}
body.ccl-my-teams #playerListing .ccl-hq-status{display:none}
body.ccl-my-teams #playerListing .ccl-hq-statline{grid-column:3;display:flex;align-content:center;gap:2px 12px}
body.ccl-my-teams #playerListing .ccl-hq-characteristics{font-size:.78rem;font-variant-numeric:tabular-nums}
body.ccl-my-teams #playerListing .ccl-hq-player-spp{font-size:.82rem}
body.ccl-my-teams #playerListing .application-actions{grid-column:4;gap:4px}
body.ccl-my-teams #playerListing .application-actions button{padding:5px 8px;min-height:30px;font-size:.73rem}
@media(max-width:920px){body.ccl-my-teams #playerListing.ccl-hq-roster-table .application-item{grid-template-columns:minmax(120px,1fr) minmax(175px,1.5fr) auto}body.ccl-my-teams #playerListing .ccl-hq-pos{display:none}body.ccl-my-teams #playerListing .ccl-hq-statline{grid-column:2}body.ccl-my-teams #playerListing .application-actions{grid-column:3}}
@media(max-width:640px){body.ccl-my-teams #playerListing.ccl-hq-roster-table .application-item{grid-template-columns:minmax(0,1fr) auto;gap:4px;padding:8px}body.ccl-my-teams #playerListing .ccl-hq-statline{grid-column:1;grid-row:2;gap:2px 8px}body.ccl-my-teams #playerListing .application-actions{grid-column:2;grid-row:1/span 2;align-self:center;flex-direction:column}body.ccl-my-teams #playerListing .ccl-hq-characteristics{font-size:.73rem}}

/* v1.9.69 — show skill list only on demand */
body.ccl-my-teams #playerListing.ccl-roster-details-ready .ccl-hq-skills{display:none}
body.ccl-my-teams #playerListing.ccl-roster-details-ready .ccl-skills-open .ccl-hq-skills{display:block;flex-basis:100%;padding:6px 9px;margin-top:4px;background:#273027;border-left:2px solid #d3b374;color:#e5e9dd;font-size:.76rem}
body.ccl-my-teams #playerListing .ccl-skills-open{background:#232c23}
body.ccl-my-teams #playerListing .ccl-roster-skills-toggle[aria-expanded=true]{border-color:#d8b476;color:#f6d69b}

/* v1.9.70 — roster sorting controls */
body.ccl-my-teams #cclHQRosterToolbar{gap:7px 12px}
body.ccl-my-teams #cclHQRosterToolbar .ccl-roster-sort{display:flex;align-items:center;gap:7px;white-space:nowrap;color:#c8d4c1;font-size:.78rem}
body.ccl-my-teams #cclRosterSort{font-size:.8rem;min-width:145px;width:auto;max-width:190px;padding:7px;color:#f4e5c8;background:#18221b;border:1px solid #796841;border-radius:6px}
@media(max-width:610px){body.ccl-my-teams #cclRosterSort{max-width:165px}body.ccl-my-teams #cclHQRosterToolbar{align-items:stretch}}

/* CCL v1.9.77 — less scrolling, more Blood Bowling */
body.ccl-my-teams #cclRecruitDialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-height:88dvh;overflow-y:auto;overscroll-behavior:contain;border:1px solid #b0955b;border-radius:14px;background:#1b271e;color:#e9e7d9;box-shadow:0 25px 90px #000c;padding:20px;z-index:100000}
body.ccl-my-teams #cclRecruitDialog::backdrop{background:rgba(0,0,0,.78);backdrop-filter:blur(3px)}
body.ccl-my-teams #cclRecruitDialog[open]{display:block}
body.ccl-my-teams #cclRecruitDialog .ccl-recruit-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:12px;border-bottom:1px solid #5d543a}
body.ccl-my-teams #cclRecruitDialog .ccl-recruit-heading h2{color:#e8cc8e;margin:3px 0;font-size:1.5rem}
body.ccl-my-teams #cclRecruitDialog .ccl-recruit-heading small{color:#bdad88;font-size:.68rem;letter-spacing:.08em}
body.ccl-my-teams #cclRecruitDialog .ccl-recruit-heading button{flex-shrink:0;padding:7px 12px}
body.ccl-my-teams #cclRecruitDialog .ccl-recruit-intro{font-size:.83rem;color:#bcc8b9;line-height:1.5;margin:13px 0}
body.ccl-my-teams #cclRecruitDialog .ccl-hire-disclosure{border:0;padding:0;margin:0;background:transparent}
body.ccl-my-teams #cclRecruitDialog #hireForm{display:grid;gap:6px;padding:0}
body.ccl-my-teams #cclRecruitDialog #hireForm label{margin:3px 0;color:#ecd8ad}
body.ccl-my-teams #cclRecruitDialog #hireForm select{width:100%}
body.ccl-my-teams #cclRecruitDialog #hireQuantity{width:95px}
body.ccl-my-teams #cclRecruitDialog #hireForm .hint{font-size:.78rem;color:#c0cbba}
body.ccl-my-teams #cclRecruitDialog #hireButton{margin-top:10px}
body.ccl-my-teams .ccl-recruit-float{display:flex;justify-content:flex-end;margin:6px 0 -5px}
body.ccl-my-teams .ccl-recruit-plus{display:flex;align-items:center;gap:7px;border:1px solid #bb9655;border-radius:8px;background:#28351f;color:#f1d18d;padding:5px 11px;cursor:pointer;font-weight:750}
body.ccl-my-teams .ccl-recruit-plus>span:first-child{font-size:1.45rem;line-height:1}
body.ccl-my-teams .ccl-recruit-plus:hover{background:#374526}
body.ccl-my-teams .ccl-recruit-plus:disabled{opacity:.4;cursor:not-allowed}
body.ccl-my-teams #cclHQHire{font-weight:800}
@media(max-width:540px){body.ccl-my-teams #cclRecruitDialog{padding:13px;max-height:94dvh}body.ccl-my-teams .ccl-recruit-label{font-size:.8rem}}

/* CCL v1.9.78 — small asset bar; purchase list only appears in dialog. */
body.ccl-my-teams .ccl-assets-compact{margin:6px 0 10px;border:1px solid #615437;background:#1a241c;border-radius:10px;padding:8px 12px}
body.ccl-my-teams .ccl-assets-compact-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
body.ccl-my-teams .ccl-assets-compact-head>strong{font-size:.78rem;letter-spacing:.08em;color:#edcd8c}
body.ccl-my-teams #cclAssetsAdd{padding:5px 11px;font-size:.78rem;min-height:32px}
body.ccl-my-teams #cclAssetsAdd:disabled{opacity:.5;cursor:not-allowed}
body.ccl-my-teams .ccl-assets-overview{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
body.ccl-my-teams .ccl-asset-chip{display:inline-flex;align-items:center;gap:5px;border:1px solid #414e3c;border-radius:6px;background:#101b14;padding:5px 8px}
body.ccl-my-teams .ccl-asset-chip strong{color:#f1ce80;font-size:.89rem}
body.ccl-my-teams .ccl-asset-chip small{font-size:.75rem;color:#c7d0bf}
body.ccl-my-teams .ccl-assets-loading{font-size:.8rem;color:#b6c3b6}
body.ccl-my-teams .ccl-management-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(670px,calc(100vw - 24px));max-height:88dvh;overflow-y:auto;overscroll-behavior:contain;border:1px solid #ad8f55;border-radius:14px;background:#1b271d;color:#eee7d5;padding:18px 20px;box-shadow:0 26px 95px #000b;z-index:100001}
body.ccl-my-teams .ccl-management-dialog[open]{display:block}
body.ccl-my-teams .ccl-management-dialog::backdrop{background:rgba(0,0,0,.77);backdrop-filter:blur(3px)}
body.ccl-my-teams .ccl-modal-bar{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:12px;border-bottom:1px solid #65563c;margin-bottom:12px}
body.ccl-my-teams .ccl-modal-bar small{font-size:.72rem;letter-spacing:.08em;color:#c8b68c}
body.ccl-my-teams .ccl-modal-bar h2{font-size:1.42rem;margin:5px 0;color:#f1d398}
body.ccl-my-teams .ccl-modal-bar button{flex-shrink:0}
body.ccl-my-teams #cclAssetsDialog #assetShop{margin:0!important;padding:0;border:0;background:transparent}
body.ccl-my-teams #cclAssetsDialog #assetShop .application-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.ccl-my-teams #cclAssetsDialog #assetShop .application-item{padding:10px}
body.ccl-my-teams #cclAssetsDialog #assetMessage{margin:10px 0 0}
@media(max-width:650px){body.ccl-my-teams .ccl-management-dialog{padding:12px;max-height:94dvh}body.ccl-my-teams #cclAssetsDialog #assetShop .application-list{grid-template-columns:1fr}}

/* v1.9.79 — finance details live in a dialog; summary metrics stay in headquarters. */
body.ccl-my-teams #cclFinanceDialog #teamFinancePanel{margin:0!important;padding:8px 0!important;border:0;box-shadow:none;background:transparent}
body.ccl-my-teams #cclFinanceDialog #teamFinancePanel h3{font-size:1.12rem;color:#eacf98}
body.ccl-my-teams #cclFinanceDialog #teamFinancePanel label{margin:10px 0 6px;display:block}
body.ccl-my-teams #cclFinanceDialog #teamValueTeam{width:100%;max-width:100%;margin-bottom:8px}
body.ccl-my-teams #cclFinanceDialog #teamSheetPrint{margin:7px 0}
body.ccl-my-teams #cclFinanceDialog #teamFinancePanel details{border:1px solid #596348;border-radius:8px;padding:9px 12px;margin:12px 0}
body.ccl-my-teams #cclFinanceDialog details>summary{cursor:pointer;color:#e6c78b;font-weight:750}
body.ccl-my-teams #cclFinanceDialog #treasuryLedgerDisclosure{border:1px solid #596348;background:#172119;border-radius:8px;margin:14px 0 0!important;padding:10px 12px!important}
body.ccl-my-teams #cclFinanceDialog #treasuryLedgerPanel{padding-top:10px}
body.ccl-my-teams #cclFinanceDialog #ledgerEntries{max-height:42vh;overflow-y:auto;overscroll-behavior:contain}
body.ccl-my-teams #cclFinanceDialog #teamValuePlayers{max-height:40vh;overflow-y:auto}

/* v1.9.80 — on-demand headquarters sections, compact hierarchy. */
body.ccl-my-teams .ccl-hq-fold{border:1px solid #4f5b46;background:#171f19;border-radius:9px;margin:8px 0;padding:0 10px}
body.ccl-my-teams .ccl-hq-fold>summary{cursor:pointer;display:list-item;padding:10px 6px;color:#e8cf9c;font-weight:760;font-size:.89rem;list-style-position:inside}
body.ccl-my-teams .ccl-hq-fold>summary:hover{color:#ffe0a0}
body.ccl-my-teams .ccl-hq-fold[open]>summary{border-bottom:1px solid #4b5643;margin-bottom:9px}
body.ccl-my-teams #cclCoachDashboardFold{margin-bottom:9px}
body.ccl-my-teams #cclCoachDashboardFold #cclCoachDashboard{margin:0!important;border:0;box-shadow:none;padding:8px 5px 14px;background:transparent}
body.ccl-my-teams #cclReadinessFold #readinessPanel{margin:0!important;border:0;box-shadow:none;padding:6px 5px 12px!important;background:transparent}
body.ccl-my-teams #cclPositionFold{margin:7px 0 9px;background:#18231a}
body.ccl-my-teams #cclPositionFold>summary{padding:7px 5px;font-size:.76rem}
body.ccl-my-teams #cclPositionFold #cclHQPositions{padding:7px 4px 11px;margin:0}
body.ccl-my-teams #cclReporterFold{margin:6px 0 9px}
body.ccl-my-teams #cclReporterFold>summary{padding:8px 4px;font-size:.82rem}
body.ccl-my-teams #cclReporterFold #reporterRosterCard{margin:0!important;border:0;box-shadow:none;background:transparent;padding:6px 4px 11px}
body.ccl-my-teams #rosterManager>.ccl-hq-duplicate-label,body.ccl-my-teams #rosterManager>.ccl-hq-duplicate-title{display:none}
body.ccl-my-teams #rosterManager .ccl-team-hq{margin-top:0!important;margin-bottom:7px!important;padding:11px 13px}
body.ccl-my-teams #rosterManager .ccl-hq-metrics{margin:7px 0}
body.ccl-my-teams #rosterManager .ccl-hq-metric{padding:7px 9px}
body.ccl-my-teams #rosterManager .ccl-hq-metric strong{font-size:1.03rem}
body.ccl-my-teams #rosterManager .ccl-hq-actions{gap:5px}
body.ccl-my-teams #rosterManager .ccl-hq-actions button{padding:6px 9px;min-height:33px;font-size:.77rem}
body.ccl-my-teams #rosterManager #cclHQNotice:empty{display:none}
body.ccl-my-teams .former-player-archive>summary{padding:7px 9px;cursor:pointer}
@media(max-width:650px){body.ccl-my-teams #rosterManager .ccl-team-hq{padding:9px}body.ccl-my-teams #rosterManager .ccl-hq-metric{padding:7px}body.ccl-my-teams .ccl-hq-fold>summary{font-size:.82rem}}

/* v1.9.81 — closed hiring dialog must never consume roster page space. */
body.ccl-my-teams #cclRecruitDialog:not([open]){display:none!important;visibility:hidden!important}
body.ccl-my-teams #cclRecruitDialog[open]{display:block!important;visibility:visible!important}
body.ccl-my-teams #rosterManager>#treasuryLabel{display:none!important}
body.ccl-my-teams #rosterManager #cclHireDisclosure:not(:is(#cclRecruitDialog *)){display:none!important}

/* v1.9.85 — less scrolling, fewer inline actions per player */
body.ccl-my-teams #playerListing .application-item{position:relative}
body.ccl-my-teams #playerListing .ccl-roster-compact-actions{display:flex!important;justify-content:flex-end;gap:4px;flex-wrap:wrap;align-items:center}
body.ccl-my-teams #playerListing .ccl-roster-compact-actions>button:not(:first-child):not(.ccl-roster-more){display:none!important}
body.ccl-my-teams #playerListing .ccl-actions-open .ccl-roster-compact-actions>button:not(:first-child):not(.ccl-roster-more){display:inline-flex!important}
body.ccl-my-teams #playerListing .ccl-roster-more{padding:4px 8px!important;font-size:.73rem!important;min-height:28px!important;white-space:nowrap}
body.ccl-my-teams #playerListing .ccl-roster-compact-actions>button:first-child{padding:5px 9px!important;font-size:.73rem!important;min-height:29px!important}
body.ccl-my-teams #playerListing .ccl-actions-open{background:#263025;outline:1px solid #aa8e56}
@media(max-width:660px){body.ccl-my-teams #playerListing .ccl-roster-compact-actions{flex-direction:column;align-items:stretch;gap:4px}body.ccl-my-teams #playerListing .ccl-roster-compact-actions>button{width:100%;justify-content:center}}

/* v1.9.86 — roster status filters fit the existing search/sort toolbar. */
body.ccl-my-teams #cclHQRosterToolbar{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px}
body.ccl-my-teams .ccl-roster-filters{display:flex;gap:4px;align-items:center;flex-wrap:wrap}
body.ccl-my-teams .ccl-roster-filters button{font-size:.73rem;min-height:28px;padding:4px 8px;border-radius:6px}
body.ccl-my-teams .ccl-roster-filters button.selected{color:#231c0c;background:#d7b474;border-color:#d7b474;font-weight:800}
body.ccl-my-teams #cclRosterFilterResult{font-size:.72rem;color:#bac8b8;padding-left:5px;white-space:nowrap}
body.ccl-my-teams #playerListing .application-item[hidden]{display:none!important}

/* v1.9.87 — prominent exceptions, quiet normal states. */
body.ccl-my-teams #playerListing .ccl-roster-injury{display:inline-block;margin:4px 0 0;padding:2px 6px;background:#4f2e20;border:1px solid #e5a077;border-radius:5px;color:#ffceaa;font-size:.7rem;font-weight:800;white-space:nowrap}
body.ccl-my-teams #playerListing .ccl-roster-unavailable{border-left:3px solid #d78e5b}
body.ccl-my-teams #cclHQAlerts:not(.ccl-hq-has-injuries){font-size:.76rem;margin:1px 0 5px;color:#b8ceb0}
body.ccl-my-teams #cclHQAlerts.ccl-hq-has-injuries{color:#ffceaa;font-weight:750}
body.ccl-my-teams #cclHQNotice{font-size:.76rem;color:#bbc8b9;line-height:1.3}

/* v1.9.88 — no duplicate back navigation or repeated whitespace. */
body.ccl-my-teams #rosterManager > .ccl-team-home-bar{display:none!important}
body.ccl-my-teams #cclHQNotice{margin:4px 0!important;min-height:0}
body.ccl-my-teams #cclPlayersDisclosure>.ccl-roster-guide{font-size:.76rem;line-height:1.3;padding:0;margin:3px 0 8px!important}
body.ccl-my-teams #cclPlayersDisclosure>summary{padding:8px 10px}
body.ccl-my-teams #cclHQRosterToolbar{margin:5px 0 8px!important}
body.ccl-my-teams #playerListing .application-item{margin:3px 0}
body.ccl-my-teams #rosterManager .ccl-team-hq{margin-bottom:5px!important}

/* v1.9.89 — live roster counts and one-click clear */
body.ccl-my-teams #cclRosterClear{color:#edca87;border-color:#947c50}
body.ccl-my-teams #cclRosterClear[hidden]{display:none!important}
body.ccl-my-teams .ccl-roster-filters{gap:5px}

/* v1.9.90 — secondary player actions use a top-layer popover, never expanding roster rows. */
body.ccl-my-teams .ccl-roster-action-popover{position:fixed;inset:auto;margin:0;padding:7px;border:1px solid #a88b55;border-radius:9px;background:#19251c;color:#f6dfb2;box-shadow:0 12px 38px #000a;z-index:999999;flex-direction:column;gap:5px}
body.ccl-my-teams .ccl-roster-action-popover:popover-open{display:flex}
body.ccl-my-teams .ccl-roster-action-popover button{display:block;width:100%;min-height:34px;padding:6px 10px;text-align:left;border-radius:5px;white-space:normal;font-size:.78rem}
body.ccl-my-teams #playerListing .ccl-roster-more{padding:4px 8px!important;font-size:.72rem!important}
body.ccl-my-teams #playerListing .ccl-roster-compact-actions{flex-wrap:nowrap}

/* v1.9.91 — optional dense roster, remembered for each team in the current browser tab. */
body.ccl-my-teams #cclRosterDensity{font-size:.73rem;min-height:30px;padding:4px 9px;margin-left:auto;border-color:#82734b;color:#edc781}
body.ccl-my-teams #playerListing.ccl-density-compact .application-item{padding:4px 8px!important;gap:3px 7px!important}
body.ccl-my-teams #playerListing.ccl-density-compact .application-item>div:first-child strong{font-size:.78rem!important;line-height:1.13}
body.ccl-my-teams #playerListing.ccl-density-compact .ccl-hq-pos{font-size:.68rem}
body.ccl-my-teams #playerListing.ccl-density-compact .ccl-hq-characteristics{font-size:.7rem!important}
body.ccl-my-teams #playerListing.ccl-density-compact .ccl-hq-player-spp{font-size:.72rem}
body.ccl-my-teams #playerListing.ccl-density-compact .application-actions button{min-height:26px!important;padding:3px 7px!important;font-size:.7rem!important}

/* v1.9.92 — filter to a specific player position without scrolling. */
body.ccl-my-teams .ccl-roster-position-label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;color:#c6cfba;font-size:.77rem}
body.ccl-my-teams #cclRosterPosition{max-width:190px;min-width:120px;width:auto;padding:6px;font-size:.77rem;background:#132017;color:#eed29c;border:1px solid #776546;border-radius:6px}
@media(max-width:540px){body.ccl-my-teams #cclRosterPosition{max-width:155px;min-width:100px}}

/* v1.9.93 — switch owned teams from the headquarters header. */
body.ccl-my-teams #cclHQName{min-width:0}
body.ccl-my-teams .ccl-team-switch{display:flex;flex-direction:column;gap:3px;margin-left:auto;max-width:240px;font-size:.72rem;color:#bfc8bb}
body.ccl-my-teams .ccl-team-switch[hidden],body.ccl-my-teams #cclTeamSwitch[hidden]{display:none!important}
body.ccl-my-teams #cclTeamSwitch{width:100%;max-width:240px;min-width:130px;color:#e8d6b1;background:#152019;border:1px solid #736443;border-radius:6px;padding:7px;font-size:.77rem}
body.ccl-my-teams .ccl-hq-top #cclHQBack{white-space:nowrap}
@media(max-width:640px){body.ccl-my-teams .ccl-team-switch{order:3;flex-basis:100%;max-width:none;width:100%;margin-left:0}body.ccl-my-teams #cclTeamSwitch{max-width:100%}}

/* v1.9.94 — roster-friendly phone layout and fast team/roster navigation. */
body.ccl-my-teams #cclJumpRoster,body.ccl-my-teams #cclJumpTeam{border:1px solid #796c4a;color:#ebcf99;background:#1c2a1f;padding:6px 9px;font-size:.77rem;min-height:32px}
body.ccl-my-teams #cclTeamHQ,body.ccl-my-teams #cclPlayersDisclosure{scroll-margin-top:70px}
@media(max-width:700px){
 body.ccl-my-teams #rosterManager .ccl-hq-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 body.ccl-my-teams #rosterManager .ccl-hq-actions{display:flex;flex-wrap:wrap;gap:5px}
 body.ccl-my-teams #rosterManager .ccl-hq-actions button{min-height:36px}
 body.ccl-my-teams #cclHQRosterToolbar{display:flex;align-items:center;gap:7px;padding:7px 2px}
 body.ccl-my-teams #cclHQRosterToolbar #cclHQRosterSearch{min-width:0;flex:1 1 160px;max-width:none}
 body.ccl-my-teams #cclHQRosterToolbar #cclHQRosterCount{flex-basis:100%}
 body.ccl-my-teams #playerListing.ccl-hq-roster-table{overflow-x:visible}
 body.ccl-my-teams #playerListing.ccl-hq-roster-table .application-item{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;column-gap:8px!important;row-gap:4px!important;padding:9px 8px!important;align-items:start}
 body.ccl-my-teams #playerListing .application-item>div:first-child{grid-column:1;grid-row:1}
 body.ccl-my-teams #playerListing .ccl-hq-statline{grid-column:1!important;grid-row:2!important;display:flex;flex-wrap:wrap;gap:3px 7px;min-width:0}
 body.ccl-my-teams #playerListing .ccl-hq-characteristics{overflow-wrap:anywhere;font-size:.71rem!important;line-height:1.35}
 body.ccl-my-teams #playerListing .ccl-hq-player-spp{font-size:.72rem;color:#f4d78f}
 body.ccl-my-teams #playerListing .application-actions{grid-column:2!important;grid-row:1 / span 2!important;display:flex;flex-direction:column;justify-content:flex-start;gap:5px;min-width:95px}
 body.ccl-my-teams #playerListing .application-actions button{min-height:32px!important}
 body.ccl-my-teams #playerListing .ccl-hq-skills{font-size:.72rem}
 body.ccl-my-teams #cclJumpTeam{margin-left:auto}
}
@media(min-width:701px){
 body.ccl-my-teams #cclJumpTeam{display:none}
}

/* v1.9.96 — player search shortcut without adding another oversized section */
body.ccl-my-teams #cclQuickFind{font-size:.73rem;min-height:30px;padding:5px 9px;border-color:#847047;color:#edd097}
body.ccl-my-teams #cclHQRosterSearch:focus{outline:2px solid #e3bf79;outline-offset:2px}

/* v1.9.97 — portable, read-only roster sheet */
body.ccl-my-teams #cclRosterExport{font-size:.73rem;min-height:30px;padding:4px 9px;border-color:#9c8051;color:#f0d59a}
body.ccl-my-teams #cclRosterExport:disabled{opacity:.45;cursor:not-allowed}
body.ccl-my-teams .ccl-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* v1.9.98 — clear zero-results feedback, no phantom roster space. */
body.ccl-my-teams #cclRosterEmpty{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;margin:7px 0;border:1px dashed #73664c;border-radius:8px;background:#19241c;color:#e4d19f}
body.ccl-my-teams #cclRosterEmpty[hidden]{display:none!important}
body.ccl-my-teams #cclRosterEmpty strong{font-size:.8rem}
body.ccl-my-teams #cclRosterEmpty button{font-size:.75rem;padding:5px 9px;flex-shrink:0}

/* v1.9.100 — one-click league team summary for chat and Discord. */
body.ccl-my-teams #cclCopyTeamSummary{font-size:.75rem;padding:6px 9px;min-height:33px;border-color:#907a4b;color:#edcd8c}
body.ccl-my-teams #cclCopyTeamSummary:disabled{opacity:.45;cursor:not-allowed}

/* v1.9.102 — compact, clearly scoped game-day player availability snapshot */
body.ccl-my-teams .ccl-roster-readiness{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:.79rem;padding:7px 10px;border:1px solid #47674a;border-radius:7px;background:#1c2a20;color:#bcd4b3;margin:5px 0}
body.ccl-my-teams .ccl-roster-readiness[data-state="attention"]{border-color:#a77b48;background:#302719;color:#f2d0a0}
body.ccl-my-teams .ccl-roster-readiness span{font-size:.73rem}

/* Player editing uses the same modal pattern as recruitment and advancements. */
body.ccl-my-teams dialog.ccl-player-edit-dialog{width:min(540px,calc(100vw - 24px));max-height:min(85vh,800px);overflow-y:auto;border:1px solid #a88b55;border-radius:14px;padding:22px;background:#19271f;color:#f3e3c2;box-shadow:0 20px 85px #000b}
body.ccl-my-teams dialog.ccl-player-edit-dialog::backdrop{background:rgba(0,0,0,.75);backdrop-filter:blur(3px)}
body.ccl-my-teams dialog.ccl-player-edit-dialog #playerEditPanel{display:block!important;border:0!important;padding:0!important;margin:0!important;background:transparent!important}
body.ccl-my-teams dialog.ccl-player-edit-dialog #playerEditForm{display:grid;gap:10px}
body.ccl-my-teams dialog.ccl-player-edit-dialog #playerEditPanel h3{margin:0 0 14px;color:#e9c37d}
body.ccl-my-teams dialog.ccl-player-edit-dialog #playerEditForm button{min-height:38px}

/* Coach HQ action-first layout: one compact toolbar; preserve every original control. */
/* Primary roster actions are created once; no hidden backup toolbar. */
body.ccl-my-teams .ccl-hq-actions .ccl-team-public-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-height:39px;padding:8px 12px}
body.ccl-my-teams .ccl-hq-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:8px}
body.ccl-my-teams .ccl-hq-actions button{min-height:39px;padding:8px 12px;flex:0 1 auto}
body.ccl-my-teams #cclHQNotice{margin:6px 0!important;font-size:.78rem}
@media(max-width:640px){
 body.ccl-my-teams .ccl-hq-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 body.ccl-my-teams .ccl-hq-actions button{min-width:0;width:100%;padding:9px 7px;font-size:.8rem}
 body.ccl-my-teams .ccl-hq-actions .ccl-team-public-link{min-width:0;width:100%;padding:9px 7px;font-size:.8rem}
}

/* Package 27C: common dialog spacing, readable controls and touch targets.
   Presentation only: all RPCs and form submit handlers remain unchanged. */
body.ccl-my-teams :is(#cclRecruitDialog,#cclAssetsDialog,#cclFinanceDialog,#cclAdvancementDialog,dialog.ccl-player-edit-dialog){
 box-sizing:border-box;max-width:calc(100vw - 20px);max-height:min(90dvh,880px);
 overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;
 border-color:#a88b55;border-radius:13px;color:#f3e4c9;
}
body.ccl-my-teams :is(#cclRecruitDialog,#cclAssetsDialog,#cclFinanceDialog,#cclAdvancementDialog,dialog.ccl-player-edit-dialog)::backdrop{
 background:rgba(3,8,5,.78);
}
body.ccl-my-teams :is(#cclRecruitDialog,#cclAssetsDialog,#cclFinanceDialog,#cclAdvancementDialog,dialog.ccl-player-edit-dialog) :is(input,select,textarea){
 box-sizing:border-box;max-width:100%;min-width:0;
}
body.ccl-my-teams :is(#cclRecruitDialog,#cclAssetsDialog,#cclFinanceDialog,#cclAdvancementDialog,dialog.ccl-player-edit-dialog) :is(button,input,select,textarea,a):focus-visible{
 outline:2px solid #e8c17a;outline-offset:3px;
}
body.ccl-my-teams :is(#cclRecruitDialog,#cclAssetsDialog,#cclFinanceDialog,#cclAdvancementDialog,dialog.ccl-player-edit-dialog) :is(.message,[role="status"]){
 overflow-wrap:anywhere;line-height:1.45;
}
body.ccl-my-teams #cclAssetsOverview[aria-busy="true"]{opacity:.8}
body.ccl-my-teams #cclAssetsOverview .ccl-assets-loading{display:inline-flex;align-items:center;min-height:30px}
@media(max-width:650px){
 body.ccl-my-teams :is(#cclRecruitDialog,#cclAssetsDialog,#cclFinanceDialog,#cclAdvancementDialog,dialog.ccl-player-edit-dialog){
  width:calc(100vw - 16px);max-width:calc(100vw - 16px);
  max-height:calc(100dvh - 16px);padding:14px;
 }
 body.ccl-my-teams :is(#cclRecruitDialog,#cclAssetsDialog,#cclFinanceDialog,#cclAdvancementDialog,dialog.ccl-player-edit-dialog) :is(button,select,input:not([type="checkbox"]),textarea){
  min-height:42px;
 }
 body.ccl-my-teams .ccl-modal-bar,body.ccl-my-teams .ccl-recruit-heading{position:sticky;top:-14px;z-index:2;background:#1b271d;padding-top:6px}
 body.ccl-my-teams #rosterManager .ccl-hq-actions{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;
 }
 body.ccl-my-teams #rosterManager .ccl-hq-actions :is(button,a){
  width:100%;min-width:0;min-height:42px;align-content:center;
  overflow-wrap:anywhere;text-align:center;
 }
}
@media(prefers-reduced-motion:reduce){
 body.ccl-my-teams :is(#cclRecruitDialog,#cclAssetsDialog,#cclFinanceDialog,#cclAdvancementDialog,dialog.ccl-player-edit-dialog){scroll-behavior:auto}
}
