body:has(.portal-landing),body:has(.basketball-portal){background:#17171d;background-image:radial-gradient(at 15% 20%,#a4003d66,transparent 48%),radial-gradient(at 90% 80%,#b32a403f,transparent 48%),linear-gradient(145deg,#280b1c,#191a20 48%,#351021);background-attachment:fixed}body:has(.portal-landing)::before,body:has(.basketball-portal)::before{content:"";position:fixed;z-index:-1;left:50%;bottom:-300px;width:1400px;height:850px;pointer-events:none;border:2px solid #ffffff20;border-radius:22px;background:linear-gradient(90deg,transparent calc(50% - 1px),#ffffff20 calc(50% - 1px),#ffffff20 calc(50% + 1px),transparent calc(50% + 1px)),radial-gradient(circle,transparent 105px,#ffffff25 106px,#ffffff25 108px,transparent 109px),repeating-linear-gradient(0deg,transparent 0 34px,#ffffff04 35px 36px);transform:translateX(-50%) perspective(900px) rotateX(46deg) rotate(-12deg);transform-origin:center bottom}.portal-landing{position:relative;min-height:100vh;padding-top:28px}.portal-welcome{background:#17171dbd;backdrop-filter:blur(4px);border:1px solid #ffffff25;border-bottom:4px solid #801d34}.portal-welcome .portal-league-logo{width:155px;height:155px;border-radius:18px;background:white;padding:6px;box-shadow:0 5px 24px #0005}.portal-welcome h1{margin-top:8px}.portal-league-logo{display:block;width:58px;height:58px;object-fit:contain;background:white;border-radius:9px;padding:3px;flex-shrink:0}.portal-brand .portal-brand-team-logo{width:58px;height:58px;object-fit:contain;filter:none}.team-stat-heading{justify-content:flex-start;gap:14px}.team-stat-heading .stats-team-logo{width:70px;height:70px;object-fit:contain;filter:none;flex-shrink:0}.portal-content>h1,.portal-content>.section-head>h1{color:white}.portal-game-group>h2{color:#f4e5e9}.portal-content>p.hint{color:#c6c4cd}.portal-content>.portal-officials,.portal-content>p{color:#eee}.portal-content>.actions{margin-bottom:18px}.portal-content>.card{color:#222}.portal-tabs{background:#f8f8f8}.portal-email-login{background:#fffffff2}.flag-badge{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.03em;border-radius:4px;padding:4px 6px;margin:6px 6px 0 0}.app-error-badge{color:#8f1730;background:#ffe3e8}.exception-badge{color:#825000;background:#fff0c9}.game-review-section{margin-top:16px}.game-review-section h2{font-size:19px}.game-review-item{background:white;border:1px solid #d7dbe0;border-left:5px solid #bd842c;border-radius:7px;padding:13px;margin:12px 0}.game-review-item.app-error-item{border-left-color:#b82446;background:#fff8fa}.game-review-item>div:first-child{display:flex;gap:10px;justify-content:space-between;align-items:center;font-size:12px}.flag-state{font-size:9px;font-weight:800;white-space:nowrap;color:#8b4c00}.flag-reviewed .flag-state{color:#41624a}.game-review-item p{font-size:13px;line-height:1.5}.game-review-item small{font-size:10px;color:#64707a;line-height:1.6}.game-review-item .btn{font-size:11px;min-height:36px;margin-top:10px}.flag-resolution{background:#f0f3ef;padding:8px;border-radius:4px}.flag-reviewed{opacity:.8}.flagged-game-card{margin:18px 0}.game-flags-popup{width:min(760px,calc(100vw - 20px))}.flag-review-popup textarea,.scoring-handoff-popup input{width:100%;min-height:44px;padding:9px;border:1px solid #b8c0c6;border-radius:6px;font-size:15px}.flag-review-popup>label,.scoring-handoff-popup>label{display:grid;gap:6px;margin:14px 0;font-size:13px}.game-staff-line button.has-flags{background:#fff0c9;border-color:#c89e43;color:#6f4400}.possession-bar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:stretch;gap:5px;padding:5px 8px;background:#171717;border-bottom:1px solid #555}.possession-bar button{min-height:34px;border:1px solid #555;border-radius:5px;background:#303030;color:#aaa;font-size:11px;cursor:pointer;overflow-wrap:anywhere;padding:4px 6px}.possession-bar .selected{background:#fed37d;color:#241b0d;border-color:#ffd379;font-weight:850}.possession-bar .possession-caption{display:grid;gap:1px;background:transparent;border:0;color:#ddd;min-width:100px}.possession-caption b{font-size:9px;letter-spacing:.05em}.possession-caption small{font-size:8px}.possession-bar button:disabled{cursor:default}.scoring-session-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:5px 8px;background:#fff3dc;color:#613f18;font-size:11px}.scoring-session-bar>span{flex:1;min-width:130px}.scoring-session-bar button{min-height:32px;padding:4px 7px;background:white;color:#6a2436;border:1px solid #c7b89d;border-radius:5px;font-size:10px}.compact-planner-popup{width:min(1020px,calc(100vw - 12px));max-width:none;max-height:96dvh;padding:12px}.compact-planner-popup header h2{font-size:18px;margin:0}.compact-planner-popup header p{font-size:10px;margin:5px 0 10px;color:#5f6872}.compact-plan-grid table{width:100%;table-layout:fixed;border-collapse:collapse;min-width:0}.compact-plan-grid th,.compact-plan-grid td{border:1px solid #d2d9df;padding:3px;text-align:center;font-size:10px}.compact-plan-grid thead th{background:#252525;color:white;padding:5px 2px}.compact-plan-grid thead th:first-child{width:24%}.compact-plan-grid tbody th{font-size:11px;text-align:left;font-weight:650;background:#f5f7f8;overflow-wrap:anywhere}.compact-plan-grid tbody tr{height:clamp(25px,calc((100dvh - 220px)/var(--plan-rows)),42px)}.compact-plan-grid .rotation-plan{min-width:0;display:flex;justify-content:center;align-items:center;gap:0}.compact-plan-grid .rotation-plan span{display:none}.compact-plan-grid .rotation-plan input{width:25px;height:25px;min-height:20px;margin:0;accent-color:#801d34}.compact-plan-grid .plan-player-out th{color:#8a8f95;background:#e9ebed}.compact-planner-popup footer{display:flex;gap:8px;align-items:center;justify-content:space-between;padding-top:10px}.compact-planner-popup footer .btn{font-size:12px;min-height:36px;padding:7px 9px}.compact-planner-popup footer .hint{font-size:10px}.flag-review-error,.handoff-error{color:#9c2341;font-size:12px}
@media(max-width:700px){.portal-welcome .portal-league-logo{width:125px;height:125px}.portal-welcome{padding:18px 10px}.portal-welcome h1{font-size:25px}.portal-email-login{margin-top:16px}.portal-brand .portal-league-logo,.portal-brand .portal-brand-team-logo{width:48px;height:48px}.portal-logout{grid-column:1/-1;width:max-content}.portal-filters .portal-logout{font-size:10px;min-height:30px}.team-stat-heading .stats-team-logo{width:52px;height:52px}.team-stat-heading h2{font-size:17px}.game-staff-line{display:flex;gap:4px}.game-staff-line>span{flex-basis:100%;font-size:9px}.game-staff-line button{font-size:9px;padding:3px 6px;min-height:29px}.possession-bar{padding:4px 6px;gap:3px}.possession-bar button{font-size:10px;min-height:31px}.possession-bar .possession-caption{min-width:82px}.possession-caption b{font-size:8px}.possession-caption small{font-size:7px}.compact-planner-popup{padding:8px}.compact-planner-popup header h2{font-size:14px}.compact-plan-grid th,.compact-plan-grid td{font-size:8px;padding:1px}.compact-plan-grid tbody th{font-size:9px}.compact-plan-grid .rotation-plan input{width:clamp(20px,calc((100dvh - 260px)/var(--plan-rows)),25px);height:clamp(20px,calc((100dvh - 260px)/var(--plan-rows)),25px)}.compact-plan-grid tbody tr{height:clamp(24px,calc((100dvh - 205px)/var(--plan-rows)),36px)}.compact-planner-popup footer .btn{font-size:10px;padding:6px;min-height:34px}.compact-planner-popup footer .hint{font-size:8px}.scoring-session-bar{font-size:10px}.game-review-item{padding:10px}.game-review-item>div:first-child{font-size:10px}.game-review-item p{font-size:12px}}
/* Keep full roster names readable beside all eight regulation slots on phones. */
.compact-plan-grid thead tr:first-child th:first-child{width:32%}
.compact-plan-grid tbody th{white-space:normal;text-transform:none;letter-spacing:0;line-height:1.15;overflow:visible}
@media(max-width:600px){.compact-plan-grid tbody th{font-size:10px}.compact-plan-grid th,.compact-plan-grid td{padding:2px}.compact-plan-grid .rotation-plan input{width:24px;height:24px}}
.account-preview-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;background:#fff0c7;border-bottom:2px solid #bd8a22;color:#4e3609}.account-preview-banner small{display:block;margin-top:4px;font-size:12px}.account-preview-banner .btn{white-space:nowrap;min-height:40px}.account-preview-button{justify-self:start;font-size:12px;min-height:36px}.portal-welcome{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(at 15% 20%,#a4003d66,transparent 55%),radial-gradient(at 90% 80%,#b32a403f,transparent 50%),linear-gradient(145deg,#280b1c,#191a20 48%,#351021)}.portal-welcome::before{content:"";position:absolute;z-index:-1;pointer-events:none;width:105%;height:135%;left:50%;top:25%;border:2px solid #ffffff36;border-radius:18px;background:linear-gradient(90deg,transparent calc(50% - 1px),#ffffff36 calc(50% - 1px),#ffffff36 calc(50% + 1px),transparent calc(50% + 1px)),radial-gradient(circle,transparent 65px,#ffffff36 66px,#ffffff36 68px,transparent 69px),repeating-linear-gradient(0deg,transparent 0 25px,#ffffff08 26px 27px);transform:translateX(-50%) perspective(700px) rotateX(46deg) rotate(-12deg);transform-origin:center center}.portal-welcome .portal-league-logo{margin-left:auto;margin-right:auto}.portal-welcome h1,.portal-welcome p{text-shadow:0 2px 8px #0009}
.referee-directory-row{display:flex;gap:16px;justify-content:space-between;align-items:start;padding:16px 0;border-bottom:1px solid #dde1e5}.referee-directory-row p{font-size:13px;line-height:1.5;margin:7px 0}.referee-status{display:inline-block;margin-left:10px;padding:4px 7px;border-radius:5px;font-size:10px;color:#255d38;background:#e8f4ea}.referee-unavailable .referee-status{color:#92243b;background:#ffe4e8}.referee-editor-popup>label,.referee-assignment-popup>label{display:grid;gap:6px;margin:14px 0;font-size:13px}.referee-editor-popup input:not([type=checkbox]),.referee-editor-popup textarea,.referee-assignment-popup input,.referee-assignment-popup select,.referee-schedule-filters select{width:100%;min-height:42px;padding:9px;border:1px solid #bfc6ce;border-radius:6px;font-size:14px}.referee-editor-popup .referee-checkbox{display:flex;align-items:center;gap:10px}.referee-checkbox input{width:23px;height:23px}.referee-error{color:#9c2341;font-size:12px}.referee-schedule-filters{display:flex;gap:15px;align-items:end;flex-wrap:wrap;color:white;margin:15px 0}.referee-schedule-filters label{display:grid;gap:6px;font-size:12px}.referee-schedule-filters span{font-size:12px;padding-bottom:10px}.referee-schedule-table{overflow:auto}.referee-schedule-table table{width:100%;border-collapse:collapse;font-size:13px;min-width:600px}.referee-schedule-table th,.referee-schedule-table td{padding:12px 8px;text-align:left;border-bottom:1px solid #ddd;line-height:1.5}.referee-schedule-table th{background:#262626;color:white}.referee-schedule-table small{display:block;color:#67747e}.referee-schedule-table .btn{font-size:11px;white-space:nowrap}.portal-content>.actions>span{color:white;align-self:center}.referee-assignment-popup .actions,.referee-editor-popup .actions{display:flex;flex-wrap:wrap;gap:8px}
.referee-day-popup>label{display:grid;gap:6px;margin:14px 0;font-size:13px}.referee-day-popup select{width:100%;min-height:42px;padding:9px;border:1px solid #bfc6ce;border-radius:6px;font-size:14px}.referee-day-popup .actions{display:flex;flex-wrap:wrap;gap:8px}.referee-replacement-review{background:#f4f5f6;border-radius:7px;padding:0 12px;margin:10px 0}.referee-replacement-review p{padding:10px 0;font-size:13px;line-height:1.5}.referee-directory-row .hint{font-size:11px}
.testing-area-banner{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:14px 18px;background:#e5f1ff;border-bottom:3px solid #3974ad;color:#17456e}.testing-area-banner small{display:block;margin-top:4px;font-size:12px}.testing-area-banner>div,.testing-role-buttons{display:flex;flex-wrap:wrap;gap:7px}.testing-area-banner .btn{font-size:11px;min-height:38px;padding:7px 9px}.testing-launch-popup p{font-size:14px;line-height:1.6}.testing-launch-popup>.btn{margin-top:16px}.testing-role-buttons .btn{flex:1;min-width:140px}.testing-launch-button{white-space:nowrap}
/* Warm, low-glare surfaces; retain dark scoreboard bars and risk highlights. */
:root{--cg-surface:#f1f3f5;--cg-control:#f8fafb;--cg-border:#c8cfd5}.card,.portal-email-login,.portal-game-card,.portal-team-card,.sheet,.rule-popup,.portal-role-card{background-color:var(--cg-surface)}.portal-tabs,.portal-tabs button{background-color:#e9edf0}.btn.secondary,.scoring-session-bar button,.bench-jersey-button,.director-edit-button{background-color:var(--cg-control)}.rule-popup input:not([type=checkbox]):not([type=radio]),.rule-popup select,.rule-popup textarea,.portal-email-login input,.portal-filters select,.referee-schedule-filters select{background-color:var(--cg-control);color:#23303a}.portal-game-card,.portal-team-card,.card,.portal-email-login{border-color:var(--cg-border)}.game-review-item:not(.app-error-item){background-color:#f1f3f5}.compact-plan-grid tbody th{background-color:#e9edf0}.compact-plan-grid td{background-color:#f4f6f8}.standings-policy{padding:13px 15px;border-left:4px solid #d5b06c;border-radius:6px;background:#e7edf2;color:#334653;font-size:13px;line-height:1.6}.standings-table tbody th{display:flex;gap:10px;align-items:center;min-width:160px}.standings-team-logo{width:34px;height:34px;object-fit:contain;filter:none}.standings-own-team{background:#e8eee4}.standings-explanation{margin-top:18px;font-size:13px;line-height:1.7}.standings-explanation summary{font-weight:700;cursor:pointer}.standings-table th,.standings-table td{padding:10px 8px}
.quick-stat-number,.quick-coach-number,.stat-readonly output{background-color:var(--cg-control)}.portal-person-popup,.referee-editor-popup,.referee-assignment-popup,.referee-day-popup,.compact-planner-popup{background-color:var(--cg-surface)}
/* Align both roster tables while the temporary opponent picker is present. */
.sheet-scroll:has(.opponent-link select) .sheet>.opponent-link{height:74px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:6px 10px;margin:0;line-height:1.3}.sheet-scroll .opponent-link select{width:100%;min-height:34px;height:34px;padding:4px 7px;margin:0}.sheet-scroll:not(:has(.opponent-link select)) .sheet>.opponent-link{min-height:44px;box-sizing:border-box;display:flex;align-items:center;padding:8px 10px;margin:0;line-height:1.3}
.jersey-import-popup{width:min(780px,calc(100vw - 24px));max-height:92dvh;overflow:auto}.jersey-import-popup>label{display:grid;gap:8px;font-size:13px;margin:16px 0}.jersey-import-popup p{font-size:13px;line-height:1.6}.jersey-import-popup details{padding:10px 0;border-top:1px solid #ccd3d9}.jersey-import-popup summary{font-size:13px;font-weight:700;cursor:pointer}.jersey-import-popup .actions{display:flex;flex-wrap:wrap;gap:8px}.jersey-import-status{color:#425b6e}
.jersey-import-popup .jersey-align-choice{display:flex;gap:9px;align-items:start;font-size:12px;line-height:1.5}.jersey-align-choice input{width:22px;height:22px;flex-shrink:0}
.roster-review-panel{margin-bottom:24px}.roster-review-panel>p{font-size:13px;line-height:1.6}.roster-review-filters{display:flex;gap:14px;flex-wrap:wrap;align-items:center;margin:14px 0;font-size:12px}.roster-review-filters label{display:flex;gap:7px;align-items:center}.roster-review-filters select{min-height:38px;padding:6px;border:1px solid #bcc6ce;border-radius:6px;background:var(--cg-control)}.roster-review-item{border:1px solid #c7d0d8;border-left:4px solid #b28435;border-radius:7px;padding:14px;margin:13px 0;background:#edf1f4}.roster-review-item>div:first-child{display:flex;gap:12px;justify-content:space-between;align-items:center;font-size:13px}.roster-review-item>div>span{font-size:9px;color:#7b5518;white-space:nowrap}.roster-review-item p{font-size:13px;line-height:1.6}.roster-review-item small{font-size:10px;color:#647789}.roster-review-item .actions{display:flex;flex-wrap:wrap;gap:7px}.roster-review-item .btn{font-size:11px;min-height:36px}.roster-review-note{border-top:1px solid #cbd3d9;padding-top:10px}.roster-review-popup>label{display:grid;gap:7px;font-size:13px}.roster-review-popup textarea{width:100%;padding:9px;border:1px solid #bcc6ce;border-radius:6px;font-size:14px}.roster-review-error{color:#9c2341;font-size:12px}

.referee-grade-options{display:flex;flex-wrap:wrap;gap:10px}.referee-grade-options label,.referee-availability-row label{display:flex;align-items:center;gap:6px}.referee-grade-options input,.referee-availability-row input{width:22px;height:22px}.referee-availability-row{display:grid;grid-template-columns:minmax(90px,1fr) 1fr 1fr;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #d2d7dd}.referee-availability-popup{max-height:90dvh;overflow:auto}.referee-directory-row{flex-wrap:wrap}

.referee-editor-popup{max-height:90dvh;overflow:auto}.referee-editor-popup fieldset{margin:12px 0}.compact-planner-popup footer{flex-wrap:wrap}

.cgbbl-day-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:12px 0}.cgbbl-day-filters label{display:grid;gap:5px;min-width:140px;flex:1}.cgbbl-day-filters select{min-height:42px;max-width:100%}.cgbbl-website-links{text-align:center}.portal-header>a{white-space:nowrap}.portal-header{flex-wrap:wrap}

.submitted-sub-toolbar{display:flex;gap:12px;align-items:center;padding:10px 14px;background:#e9edf0;border-bottom:1px solid #cbd2da}.submitted-sub-toolbar span{font-size:12px}.submitted-sub-team{padding:12px 0;border-bottom:1px solid #cbd2da}.submitted-sub-team input,.location-editor input[type=checkbox]{width:22px;height:22px}.submitted-sub-team p{margin:8px 0}.submitted-sub-popup,.locations-popup,.location-editor{max-height:90dvh;overflow:auto}.location-editor>label{display:grid;gap:6px;margin:12px 0}.submitted-plan-status{font-size:12px}

.submitted-sub-toolbar{color:#22303c}.submitted-sub-toolbar span{color:#22303c}

.starter-approval-banner{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px;color:#242c35;background:#fff2cb}.starter-approval-banner span{font-size:12px}.starter-approval-popup,.tip-winner-popup{max-height:90dvh;overflow:auto}.tip-winner-popup .actions button{min-height:48px}

.scoreboard-team-edit{font:inherit;color:inherit;background:transparent;border:0;padding:4px;cursor:pointer;border-bottom:1px dashed #aaa}.scoreboard-team-edit small{font-size:.65em}.scoreboard-team-popup label{display:grid;gap:8px}.scoreboard-team-popup select{min-height:44px;padding:8px;width:100%;margin-bottom:18px}

.team-sub-toolbar{display:flex;align-items:center;gap:10px;padding:10px;border-bottom:1px solid #cbd1d7;min-height:64px;background:#eef0f2}.team-sub-toolbar span{font-size:12px;color:#374151}.team-sub-toolbar .btn{min-height:44px;padding:10px 18px;flex-shrink:0}@media(max-width:600px){.team-sub-toolbar{padding:6px;gap:6px}.team-sub-toolbar span{font-size:10px}}

.position-roster-list{max-height:60vh;overflow:auto}.position-roster-list table{width:100%;border-collapse:collapse}.position-roster-list th,.position-roster-list td{padding:6px;text-align:left}.position-roster-list select{min-height:40px;width:100%;padding:6px}.player-positions-popup{width:min(650px,95vw)}.planned-position{font-size:10px;display:block;color:#801d34;font-weight:bold}
.compact-plan-grid .rotation-plan .planned-position{display:inline-block;min-width:8px;font-size:10px;margin-left:3px;color:#801d34;font-weight:800}

.library-plan-card{margin:16px 0;padding:14px;border:1px solid #c8cfd5;border-radius:8px}.library-game-list{display:grid;gap:12px;max-height:55vh;overflow:auto}.library-game-list label{display:flex;gap:9px;align-items:center;min-height:40px}.library-game-list input{width:22px;height:22px}.library-editor-popup header input{min-height:40px;width:100%;padding:8px}.library-editor-popup tbody th input{width:18px;height:18px}.library-editor-popup tbody th label{display:flex;gap:3px;align-items:center}.library-editor-popup footer{flex-wrap:wrap}

.referee-name-button{font:inherit;font-weight:800;color:#801d34;background:transparent;border:0;padding:5px 0;text-align:left;cursor:pointer}.ref-game-line{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #c8cfd5}.ref-game-line small{display:block;margin-top:5px}.ref-group{margin:18px 0;padding:16px}.ref-bulk-popup{width:min(900px,96vw)}.ref-bulk-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ref-bulk-filters label{display:grid;gap:5px}.ref-bulk-filters select{min-height:44px;padding:8px;width:100%}.ref-bulk-games{max-height:45vh;overflow:auto;margin:12px 0}.ref-bulk-games label,.ref-bulk-all{display:flex;align-items:center;gap:12px;min-height:52px;padding:8px;border-bottom:1px solid #ccd1d7}.ref-bulk-games input,.ref-bulk-all input{width:26px;height:26px;flex-shrink:0}.referee-directory-row{flex-wrap:wrap}.portal-filters select{max-width:min(360px,90vw)}

.portal-header{align-items:flex-end;gap:16px}.portal-header .portal-filters{align-items:flex-end;gap:10px}.portal-header .portal-filters>button,.portal-header .portal-filters>a.btn,.portal-header .portal-filters select{height:40px;min-height:40px;box-sizing:border-box;margin:0}.portal-header .portal-filters>button,.portal-header .portal-filters>a.btn{display:inline-flex;align-items:center;justify-content:center;line-height:1.2;padding:8px 12px;white-space:nowrap}.portal-content>.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.portal-content>.actions>.btn{margin:0;min-height:40px;display:inline-flex;align-items:center;justify-content:center}.player-position-label{display:inline-block;font-size:11px;font-weight:600;color:#64707a;white-space:nowrap;margin-left:5px}.referee-directory-row .btn{margin:0;min-height:40px}.referee-directory-row{align-items:center;gap:10px}
.portal-header .portal-filters>button,.portal-header .portal-filters>a.btn{grid-column:auto!important}@media(max-width:900px){.portal-header .portal-filters>button,.portal-header .portal-filters>a.btn{width:100%}}
@media(min-width:800px){.portal-header{flex-direction:row;flex-wrap:nowrap;align-items:center;gap:12px;padding:10px 12px}.portal-header .portal-brand{flex:0 0 auto;gap:8px;font-size:18px;max-width:185px}.portal-header .portal-brand img{width:40px;height:40px;padding:2px}.portal-header .portal-brand small{font-size:9px;white-space:nowrap}.portal-header .portal-filters{display:flex;flex:1 1 auto;flex-wrap:nowrap;width:auto;min-width:0;justify-content:flex-end;align-items:flex-end;gap:8px}.portal-header .portal-filters label{flex:0 1 auto;min-width:0;font-size:10px}.portal-header .portal-filters select{min-width:0;width:100px;max-width:180px;height:36px;min-height:36px;padding:6px;font-size:11px}.portal-header .portal-filters select[aria-label="Director grade"]{width:90px}.portal-header .portal-filters select[aria-label="Coach team"]{width:180px}.portal-header .portal-filters select[aria-label="Referee view"]{width:180px}.portal-header .portal-filters>button,.portal-header .portal-filters>a.btn{flex:0 0 auto;width:auto;height:36px;min-height:36px;padding:6px 8px;font-size:11px}.portal-header .portal-brand>span{min-width:0}}

.portal-tabs .coach-nav-actions{display:flex;align-items:center;gap:8px;margin:0 0 0 auto;padding:6px 0 6px 12px;flex-shrink:0}.portal-tabs .coach-nav-actions .btn{min-height:36px;padding:7px 12px;font-size:12px;border-radius:7px;border:1px solid #c8cfd5;white-space:nowrap}.portal-tabs .coach-nav-actions .btn:not(.secondary){background:#801d34;color:#fff;border-color:#801d34}.portal-tabs{align-items:center}

.ref-bulk-quick{margin:16px 0}.ref-bulk-quick .btn{min-height:46px;font-size:15px}.ref-bulk-individual{margin:14px 0}.ref-bulk-individual summary{cursor:pointer;padding:10px 0;font-weight:700}
.ref-replacement-person{display:grid;gap:6px;margin:16px 0}.ref-replacement-person select{min-height:44px;padding:8px}
body,body:has(.portal-landing),body:has(.basketball-portal){background-color:#382020;background-image:radial-gradient(ellipse at 8% 5%,#ef354166,transparent 58%),linear-gradient(140deg,#c8222e 0%,#8d2027 42%,#252525 100%);background-attachment:fixed}

.portal-welcome{padding:38px 28px 42px;border:1px solid #ffffff30;border-bottom:5px solid #ec3341;border-radius:24px;background:radial-gradient(ellipse at 10% 0%,#ec283e66,transparent 58%),radial-gradient(ellipse at 95% 100%,#de542455,transparent 55%),linear-gradient(145deg,#242424,#111315 72%);box-shadow:0 18px 55px #23000045,inset 0 1px 0 #ffffff18}.portal-welcome::before{width:125%;height:112%;left:50%;top:28%;border:0;border-radius:0;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201120%20620%22%3E%3Cdefs%3E%3Cpattern%20id%3D%22wood%22%20width%3D%22120%22%20height%3D%2228%22%20patternUnits%3D%22userSpaceOnUse%22%3E%3Cpath%20d%3D%22M0%2028H120M60%200V28%22%20stroke%3D%22%23f8cf9b%22%20stroke-opacity%3D%22.13%22%20fill%3D%22none%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20x%3D%2210%22%20y%3D%2210%22%20width%3D%221100%22%20height%3D%22600%22%20rx%3D%2216%22%20fill%3D%22%23c58147%22%20fill-opacity%3D%22.21%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%2210%22%20width%3D%221100%22%20height%3D%22600%22%20rx%3D%2216%22%20fill%3D%22url(%23wood)%22%2F%3E%3Cg%20stroke%3D%22%23ffe1b1%22%20stroke-width%3D%223%22%20stroke-opacity%3D%22.55%22%20fill%3D%22none%22%3E%3Crect%20x%3D%2210%22%20y%3D%2210%22%20width%3D%221100%22%20height%3D%22600%22%20rx%3D%2216%22%2F%3E%3Cpath%20d%3D%22M560%2010V610%22%2F%3E%3Ccircle%20cx%3D%22560%22%20cy%3D%22310%22%20r%3D%2282%22%2F%3E%3Ccircle%20cx%3D%22560%22%20cy%3D%22310%22%20r%3D%2211%22%2F%3E%3Cpath%20d%3D%22M10%20210H200V410H10M1110%20210H920V410H1110%22%2F%3E%3Ccircle%20cx%3D%22200%22%20cy%3D%22310%22%20r%3D%2272%22%2F%3E%3Ccircle%20cx%3D%22920%22%20cy%3D%22310%22%20r%3D%2272%22%2F%3E%3Cpath%20d%3D%22M10%2080H70A230%20230%200%200%201%2070%20540H10M1110%2080H1050A230%20230%200%200%200%201050%20540H1110M28%20280V340M1092%20280V340%22%2F%3E%3Ccircle%20cx%3D%2243%22%20cy%3D%22310%22%20r%3D%2211%22%2F%3E%3Ccircle%20cx%3D%221077%22%20cy%3D%22310%22%20r%3D%2211%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");background-size:100% 100%;background-repeat:no-repeat;opacity:.85;transform:translateX(-50%) perspective(800px) rotateX(38deg) rotate(-12deg);filter:drop-shadow(0 0 22px #efac4c30)}.portal-welcome::after{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;background:linear-gradient(115deg,#ffffff0c,transparent 32%,transparent 65%,#ffb0540b),radial-gradient(ellipse at 50% 22%,#f5412e33,transparent 45%)}.portal-welcome .portal-league-logo{width:230px;height:230px;max-width:65vw;padding:13px;border-radius:30px;border:2px solid #e7bd7d;box-shadow:0 12px 36px #0007,0 0 0 8px #ffffff0a,0 0 65px #f12e3740;margin-bottom:25px}.portal-welcome h1{font-size:clamp(30px,4.5vw,50px);font-weight:900;letter-spacing:-.035em;line-height:1.12;margin:12px 0 20px}.portal-welcome p:first-of-type{font-size:12px;font-weight:750;letter-spacing:.23em;color:#f3c77d}.portal-welcome p:last-child{font-size:17px;line-height:1.5;color:#f2ece6;margin-bottom:0}@media(max-width:600px){.portal-welcome{padding:30px 16px 32px;border-radius:20px}.portal-welcome .portal-league-logo{width:185px;height:185px;padding:10px;margin-bottom:23px}.portal-welcome h1{font-size:32px}.portal-welcome p:last-child{font-size:15px}.portal-welcome::before{width:170%;top:32%;height:105%}}

.ref-coverage-bar{display:flex;align-items:center;gap:10px;margin-bottom:18px;flex-wrap:wrap}.referee-availability-row input[type=checkbox]{width:24px;height:24px}.referee-availability-row label{display:flex;align-items:center;gap:10px;min-height:42px}

.ref-time-choices{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px 16px;padding:12px}.ref-time-choices label{display:flex;align-items:center;gap:7px;min-height:34px}.ref-time-choices input{width:23px;height:23px}

.compact-plan-grid thead .library-player-heading{position:relative;text-align:center}.library-out-heading{position:absolute;left:3px;top:50%;transform:translateY(-50%);width:26px;text-align:center;font-size:10px}

.coach-roles-popup>label{display:grid;gap:6px;margin:14px 0}.coach-roles-popup select,.portal-coach-choices select{min-height:40px;padding:7px}.portal-coach-choices select{max-width:160px;font-size:12px}.library-plan-card p{font-size:12px;line-height:1.5}

body.team-colors,body.team-colors:has(.basketball-portal){background-color:#202323;background-image:radial-gradient(ellipse at 5% 0%,var(--team-glow),transparent 70%),linear-gradient(145deg,#232725,#181b20);background-attachment:fixed}.team-colors .portal-header{border-top:4px solid var(--team-color)}.team-colors .portal-tabs>button.active{color:var(--team-link);border-bottom-color:var(--team-color);background:var(--team-wash)}.team-colors .btn:not(.secondary):not(.danger):not(.warning){background:var(--team-color);border-color:var(--team-color);color:var(--team-ink)}.team-colors .portal-tabs .coach-nav-actions .btn:not(.secondary){background:var(--team-color);border-color:var(--team-color);color:var(--team-ink)}.team-colors .btn.secondary{border-color:var(--team-link);color:var(--team-link)}.team-colors .portal-content>.card,.team-colors .portal-content .portal-stats-table{border-color:var(--team-color)}.team-colors .portal-stats-table thead th,.team-colors .compact-plan-grid thead th{background:var(--team-color);color:var(--team-ink)}.team-colors .team-stat-heading{border-bottom:3px solid var(--team-color);padding-bottom:12px}.team-colors .portal-stats-table tbody tr:nth-child(even){background:var(--team-wash)}.team-colors .rule-popup{border-top:5px solid var(--team-color)}.team-colors .compact-plan-grid .rotation-plan input,.team-colors input[type=checkbox]{accent-color:var(--team-color)}.team-colors .planned-position,.team-colors .compact-plan-grid .rotation-plan .planned-position{color:var(--team-link)}.team-colors .library-plan-card{border-left:5px solid var(--team-color)}.portal-team-card[style*="--card-accent"]{border-top:4px solid var(--card-accent);background:linear-gradient(155deg,var(--card-wash),#f1f3f5 65%)}.portal-team-card[style*="--card-accent"] small{color:var(--card-link)}.portal-team-card[style*="--card-accent"]:hover{border-color:var(--card-accent)}
