:root {
    --portal-sidebar-width: 288px;
    --portal-topbar-height: 76px;
    --portal-primary: #0d0d0f;
    --portal-accent: #e11b22;
    --portal-secondary: #ffffff;
}

html, body { min-height: 100%; }
.min-w-0 { min-width: 0; }
.portal-body { margin: 0; background: #f4f5f7; color: #17181a; font-family: var(--k1-font-body, Arial, sans-serif); }

.portal-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1045; width: var(--portal-sidebar-width); min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--portal-accent) 18%, transparent), transparent 34%), var(--portal-primary); color: #fff; box-shadow: 12px 0 35px rgba(13,13,15,.12); }
.portal-sidebar-brand { min-height: var(--portal-topbar-height); display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.10); }
.portal-sidebar-brand > a { min-width: 0; display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; }
.portal-brand-mark { flex: 0 0 auto; display: inline-flex; align-items: baseline; font-family: var(--k1-font-display, Arial Narrow, sans-serif); font-style: italic; font-weight: 900; font-size: 35px; line-height: .9; letter-spacing: -3px; }
.portal-brand-mark strong { color: var(--portal-accent); }
.portal-school-logo { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #fff; }
.portal-school-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.portal-brand-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.08; }
.portal-brand-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--k1-font-display, Arial Narrow, sans-serif); font-size: 16px; font-style: italic; font-weight: 850; text-transform: uppercase; }
.portal-brand-copy small { margin-top: 5px; color: var(--portal-accent); font-size: 9px; font-weight: 850; letter-spacing: .17em; }
.portal-sidebar-close, .portal-menu-button { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; border-radius: 9px; }
.portal-sidebar-close { color: #fff; background: transparent; }
.portal-menu-button { background: #eef0f2; color: #151618; font-size: 24px; }
.portal-sidebar-backdrop { display: none; }

.portal-nav { padding: 18px 12px; overflow-y: auto; }
.portal-nav-label { padding: 0 12px 8px; color: rgba(255,255,255,.38); font-size: 10px; font-weight: 850; letter-spacing: .15em; }
.portal-nav-link { min-height: 46px; display: flex; align-items: center; gap: 12px; margin-bottom: 4px; padding: 10px 12px; border-radius: 9px; color: rgba(255,255,255,.75); text-decoration: none; font-weight: 680; transition: .18s ease; }
.portal-nav-link i { width: 22px; color: rgba(255,255,255,.52); font-size: 17px; text-align: center; }
.portal-nav-link small { margin-left: auto; color: rgba(255,255,255,.42); font-size: 9px; font-weight: 850; letter-spacing: .05em; }
.portal-nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.portal-nav-link.active { background: var(--portal-accent); color: #fff; }
.portal-nav-link.active i { color: #fff; }
.portal-nav-link.disabled-link { cursor: default; }
.portal-sidebar-foot { margin-top: auto; padding: 18px 22px; border-top: 1px solid rgba(255,255,255,.09); }
.portal-sidebar-foot small, .portal-sidebar-foot strong { display: block; }
.portal-sidebar-foot small { color: rgba(255,255,255,.48); font-size: 10px; }
.portal-sidebar-foot strong { margin-top: 3px; font-size: 11px; }

.portal-main { min-height: 100vh; margin-left: var(--portal-sidebar-width); display: flex; flex-direction: column; }
.portal-topbar { position: sticky; top: 0; z-index: 1030; min-height: var(--portal-topbar-height); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 30px; background: rgba(255,255,255,.95); border-bottom: 1px solid #e1e3e6; backdrop-filter: blur(12px); }
.portal-topbar-eyebrow, .portal-eyebrow { color: var(--portal-accent); font-family: var(--k1-font-display, Arial Narrow, sans-serif); font-size: 10px; font-style: italic; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.portal-topbar-title { font-family: var(--k1-font-display, Arial Narrow, sans-serif); font-size: 22px; font-style: italic; font-weight: 850; text-transform: uppercase; }
.portal-school-switcher { width: min(280px, 26vw); min-height: 38px !important; font-size: 12px; font-weight: 700; }
.portal-user-button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: #17181a; }
.portal-user-avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border-radius: 50%; background: var(--portal-primary); color: #fff; font-size: 12px; font-weight: 850; }
.portal-user-copy strong, .portal-user-copy small { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-user-copy small { color: #7b7f85; font-size: 10px; }

.portal-content { width: 100%; max-width: 1700px; margin: 0 auto; padding: 30px; }
.portal-footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 30px; color: #8b8e93; font-size: 11px; }
.portal-footer b { color: var(--portal-accent); }

.portal-welcome { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 24px; padding: 30px; border-radius: 18px; background: linear-gradient(118deg, var(--portal-primary), color-mix(in srgb, var(--portal-primary) 78%, #555)); color: #fff; box-shadow: 0 18px 42px rgba(13,13,15,.11); }
.portal-welcome::after { content: "K1"; position: absolute; right: 3%; bottom: -32px; color: rgba(255,255,255,.055); font-family: var(--k1-font-display, Arial Narrow, sans-serif); font-size: 180px; font-style: italic; font-weight: 900; letter-spacing: -.08em; pointer-events: none; }
.portal-welcome > * { position: relative; z-index: 1; }
.portal-welcome h1 { margin: 4px 0 7px; font-family: var(--k1-font-display, Arial Narrow, sans-serif); font-size: clamp(34px, 5vw, 54px); font-style: italic; font-weight: 900; text-transform: uppercase; }
.portal-welcome p { max-width: 760px; margin: 0; color: rgba(255,255,255,.68); }
.portal-school-status { flex: 0 0 auto; display: flex; align-items: center; gap: 11px; min-width: 210px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(255,255,255,.08); }
.portal-status-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: #47d17c; box-shadow: 0 0 0 5px rgba(71,209,124,.14); }
.portal-school-status strong, .portal-school-status small { display: block; }
.portal-school-status strong { font-size: 12px; }
.portal-school-status small { margin-top: 2px; color: rgba(255,255,255,.55); font-size: 10px; }

.portal-stat-card { min-height: 112px; display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid #e0e2e5; border-radius: 15px; background: #fff; box-shadow: 0 8px 24px rgba(13,13,15,.04); }
.portal-stat-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 48px; border-radius: 12px; background: color-mix(in srgb, var(--portal-accent) 10%, #fff); color: var(--portal-accent); font-size: 20px; }
.portal-stat-card small { display: block; color: #85888d; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.portal-stat-card strong { display: block; margin-top: 1px; font-family: var(--k1-font-display, Arial Narrow, sans-serif); font-size: 30px; font-style: italic; font-weight: 900; }

.portal-card { overflow: hidden; padding: 22px; border: 1px solid #e0e2e5; border-radius: 15px; background: #fff; box-shadow: 0 8px 28px rgba(13,13,15,.04); }
.portal-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.portal-card-head h2 { margin: 2px 0 0; font-family: var(--k1-font-display, Arial Narrow, sans-serif); font-size: 24px; font-style: italic; font-weight: 850; text-transform: uppercase; }
.portal-module-chip { padding: 6px 9px; border-radius: 999px; background: #f0f1f3; color: #70747a; font-size: 9px; font-weight: 850; letter-spacing: .06em; }

.portal-setup-grid { display: flex; flex-direction: column; }
.portal-setup-item { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 16px; padding: 17px 0; border-bottom: 1px solid #eceef0; }
.portal-setup-item:last-child { border-bottom: 0; }
.portal-setup-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #f0f1f3; color: #595d62; font-family: var(--k1-font-display, Arial Narrow, sans-serif); font-size: 18px; font-style: italic; font-weight: 900; }
.portal-setup-item.complete .portal-setup-number { background: var(--portal-primary); color: #fff; }
.portal-setup-item strong { font-size: 14px; }
.portal-setup-item p { margin: 3px 0 0; color: #777b81; font-size: 12px; }
.portal-setup-state { color: #8a8e94; font-size: 11px; font-weight: 750; white-space: nowrap; }
.portal-setup-item.complete .portal-setup-state { color: #18864b; }

.portal-snapshot-list { display: flex; flex-direction: column; }
.portal-snapshot-list > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 2px; border-bottom: 1px solid #eceef0; }
.portal-snapshot-list > div:last-child { border-bottom: 0; }
.portal-snapshot-list span { color: #5e6268; font-size: 12px; font-weight: 700; }
.portal-snapshot-list span i { width: 22px; color: var(--portal-accent); }
.portal-snapshot-list strong { font-family: var(--k1-font-display, Arial Narrow, sans-serif); font-size: 21px; font-style: italic; }
.portal-context-box { padding: 15px; border-radius: 11px; background: #f5f6f7; }
.portal-context-box > small { display: block; margin-bottom: 8px; color: #898d93; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.portal-context-box .badge { margin: 0 5px 5px 0; }

.portal-empty-state { min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; color: #777b80; text-align: center; }
.portal-empty-state.compact { min-height: 190px; }
.portal-empty-state i { margin-bottom: 12px; color: var(--portal-accent); font-size: 34px; }
.portal-empty-state strong { color: #24262a; }
.portal-empty-state p { max-width: 420px; margin: 5px 0 0; font-size: 12px; }
.portal-table > :not(caption) > * > * { padding: 14px 12px; border-bottom-color: #eceef0; }
.portal-table thead th { color: #8a8e94; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.portal-table tbody td { color: #5c6066; font-size: 12px; }
.portal-table tbody td strong { color: #25272b; }

.portal-event-list { display: flex; flex-direction: column; }
.portal-event-row { display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #eceef0; }
.portal-event-row:last-child { border-bottom: 0; }
.portal-event-date { width: 64px; padding: 8px 7px; border-radius: 9px; background: #f3f4f5; text-align: center; }
.portal-event-date strong, .portal-event-date small { display: block; }
.portal-event-date strong { color: #292b2f; font-size: 12px; }
.portal-event-date small { margin-top: 2px; color: #85898f; font-size: 9px; }
.portal-event-row > div > strong { font-size: 12px; }
.portal-event-row > div > small { color: #85898f; font-size: 10px; }

.btn-portal { --bs-btn-color: #fff; --bs-btn-bg: var(--portal-accent); --bs-btn-border-color: var(--portal-accent); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: color-mix(in srgb, var(--portal-accent) 86%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--portal-accent) 86%, #000); font-weight: 800; margin-bottom: 10px; }
.form-control, .form-select { min-height: 45px; border-color: #d7d9dd; }
.form-control:focus, .form-select:focus { border-color: var(--portal-accent); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--portal-accent) 12%, transparent); }

.portal-login-body { min-height: 100vh; margin: 0; background: #0d0d0f; }
.portal-login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(480px,.95fr); }
.portal-login-brand { display: flex; flex-direction: column; justify-content: center; padding: 10vw; background: radial-gradient(circle at 80% 30%, rgba(225,27,34,.18), transparent 28%), #0d0d0f; color: #fff; }
.portal-login-k1 { display: flex; align-items: baseline; font-family: var(--k1-font-display, Arial Narrow, sans-serif); font-size: clamp(100px,15vw,190px); font-style: italic; font-weight: 900; line-height: .73; letter-spacing: -.09em; }
.portal-login-k1 strong { color: #e11b22; }
.portal-login-athletics { margin-top: 25px; font-family: var(--k1-font-display, Arial Narrow, sans-serif); font-size: clamp(32px,5vw,58px); font-style: italic; font-weight: 800; letter-spacing: .15em; }
.portal-login-rule { margin-top: 15px; color: #e11b22; font-weight: 800; letter-spacing: .16em; }
.portal-login-brand p { max-width: 510px; margin-top: 30px; color: rgba(255,255,255,.55); }
.portal-login-panel { display: grid; place-items: center; padding: 42px; background: #f5f5f6; }
.portal-login-card { width: min(100%,470px); padding: 42px; border: 1px solid #dedfe1; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.12); }
.portal-login-card h1 { font-family: var(--k1-font-display, Arial Narrow, sans-serif); font-size: 38px; font-style: italic; font-weight: 900; text-transform: uppercase; }

@media (max-width: 991.98px) {
    .portal-sidebar { transform: translateX(-105%); transition: .22s ease; }
    .portal-sidebar-open .portal-sidebar { transform: translateX(0); }
    .portal-sidebar-open .portal-sidebar-backdrop { position: fixed; inset: 0; z-index: 1040; display: block; background: rgba(13,13,15,.52); }
    .portal-main { margin-left: 0; }
    .portal-content { padding: 20px 16px; }
    .portal-topbar { padding: 12px 16px; }
    .portal-welcome { align-items: flex-start; flex-direction: column; padding: 24px; }
    .portal-school-status { width: 100%; }
    .portal-login-shell { grid-template-columns: 1fr; }
    .portal-login-brand { min-height: 34vh; padding: 60px 34px; }
    .portal-login-k1 { font-size: 90px; }
    .portal-login-panel { padding: 28px 18px; }
}

@media (max-width: 575.98px) {
    .portal-topbar-title { font-size: 18px; }
    .portal-user-button { gap: 7px; }
    .portal-welcome h1 { font-size: 34px; }
    .portal-stat-card { min-height: 102px; padding: 14px; gap: 11px; }
    .portal-stat-icon { width: 42px; height: 42px; flex-basis: 42px; }
    .portal-stat-card strong { font-size: 26px; }
    .portal-stat-card small { font-size: 9px; }
    .portal-setup-item { grid-template-columns: 40px 1fr; gap: 12px; }
    .portal-setup-state { grid-column: 2; }
    .portal-card { padding: 18px; }
    .portal-event-row { grid-template-columns: 62px 1fr; }
    .portal-event-row > .badge { grid-column: 2; justify-self: start; }
    .portal-footer { flex-direction: column; padding: 20px 16px; }
    .portal-login-card { padding: 28px 22px; }
}

/* Plan & Billing */
.portal-billing-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:28px;border-radius:18px;background:#0d0d0f;color:#fff}.portal-billing-hero h1{margin:4px 0 5px;font-family:var(--k1-font-display,Arial Narrow,sans-serif);font-size:44px;font-style:italic;font-weight:900;text-transform:uppercase}.portal-billing-hero p{margin:0;color:rgba(255,255,255,.62)}.portal-current-plan-badge{min-width:210px;padding:15px 17px;border:1px solid rgba(255,255,255,.14);border-radius:12px;background:rgba(255,255,255,.07)}.portal-current-plan-badge strong,.portal-current-plan-badge small{display:block}.portal-current-plan-badge strong{color:#fff;font-family:var(--k1-font-display,Arial Narrow,sans-serif);font-size:22px;font-style:italic}.portal-current-plan-badge small{margin-top:2px;color:rgba(255,255,255,.55);font-size:10px}.portal-free-forever{display:flex;align-items:flex-start;gap:14px;margin-top:18px;padding:16px 18px;border:1px solid #cfe9d9;border-radius:13px;background:#f2fbf5}.portal-free-forever>i{color:#18864b;font-size:28px}.portal-free-forever strong{color:#165f39}.portal-free-forever p{margin:3px 0 0;color:#567064;font-size:12px}.portal-plan-feature-list{display:flex;flex-direction:column;gap:10px}.portal-plan-feature-list.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.portal-plan-feature-list>span{color:#4f5358;font-size:12px;font-weight:700}.portal-plan-feature-list>span i{width:22px;color:var(--portal-accent)}.portal-plan-feature-list>span.already-included{color:#85898f}.portal-plan-feature-list>span.already-included i{color:#18864b}.portal-plan-feature-list>span small{font-size:9px;font-weight:650}.portal-price-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.portal-price-option{padding:16px;border:1px solid #dedfe2;border-radius:12px;background:#fafafa}.portal-price-option small,.portal-price-option strong{display:block}.portal-price-option small{color:#85898f;font-size:9px;font-weight:850;letter-spacing:.08em}.portal-price-option strong{margin-top:3px;font-family:var(--k1-font-display,Arial Narrow,sans-serif);font-size:34px;font-style:italic;font-weight:900}.portal-price-option strong span{font-family:inherit;font-size:12px;font-style:normal;color:#74787e}.portal-upgrade-card{border-top:3px solid var(--portal-accent)}.portal-upgrade-foot{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:22px;padding-top:18px;border-top:1px solid #eceef0}.portal-upgrade-foot strong,.portal-upgrade-foot small{display:block}.portal-upgrade-foot small{margin-top:2px;color:#7f8389;font-size:10px}.portal-upgrade-foot .btn:disabled{opacity:.7}
@media(max-width:767.98px){.portal-billing-hero,.portal-upgrade-foot{align-items:flex-start;flex-direction:column}.portal-current-plan-badge{width:100%}.portal-plan-feature-list.two-col,.portal-price-options{grid-template-columns:1fr}.portal-billing-hero h1{font-size:36px}}

/* Workspace switcher */
.portal-topbar .dropdown-menu form{margin:0}.portal-topbar .dropdown-menu button.dropdown-item{width:100%;text-align:left;border:0;background:transparent}.portal-topbar .dropdown-menu button.dropdown-item.active{background:var(--portal-primary);color:#fff}.portal-sidebar-brand small{letter-spacing:.12em}

/* --------------------------------------------------------------------------
   Team workspace
   -------------------------------------------------------------------------- */
.team-workspace-head { margin-bottom: 20px; }
.team-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #198754; }
.team-status-label { color: #777b81; font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.team-workspace-shell { overflow: hidden; border: 1px solid #e0e2e5; border-radius: 17px; background: #fff; box-shadow: 0 10px 30px rgba(13,13,15,.045); }
.team-workspace-toolbar { display: flex; align-items: stretch; justify-content: space-between; gap: 20px; min-height: 64px; padding: 0 18px; border-bottom: 1px solid #e7e8ea; background: #fff; }
.team-tabs { display: flex; align-items: stretch; gap: 3px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.team-tabs::-webkit-scrollbar { display: none; }
.team-tab { position: relative; display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 0 14px; color: #74787e; font-size: 12px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.team-tab::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.team-tab:hover { color: #191b1f; }
.team-tab.active { color: #17191c; }
.team-tab.active::after { background: var(--portal-accent); }
.team-tab i { font-size: 14px; }
.team-season-picker { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.team-season-picker label { margin: 0; color: #8a8e94; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.team-season-picker .form-select { min-width: 150px; border-radius: 9px; font-size: 11px; font-weight: 700; }
.team-workspace-body { padding: 24px; }
.team-metric { display: flex; align-items: center; gap: 14px; height: 100%; min-height: 112px; padding: 18px; border: 1px solid #e7e8ea; border-radius: 14px; background: #fff; }
.team-metric-icon { display: grid; width: 42px; height: 42px; place-items: center; flex: 0 0 42px; border-radius: 12px; background: #f2f3f4; color: #303237; font-size: 18px; }
.team-metric small, .team-metric strong, .team-metric span { display: block; }
.team-metric small { color: #8a8e94; font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.team-metric strong { margin-top: -2px; color: #17191c; font-family: var(--k1-font-display,Arial Narrow,sans-serif); font-size: 30px; font-style: italic; font-weight: 900; }
.team-metric div > span { color: #8a8e94; font-size: 10px; }
.team-detail-tile { height: 100%; min-height: 86px; padding: 16px; border: 1px solid #e7e8ea; border-radius: 12px; background: #fbfbfc; }
.team-detail-tile small, .team-detail-tile strong { display: block; }
.team-detail-tile small { color: #8a8e94; font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.team-detail-tile strong { margin-top: 6px; color: #27292d; font-size: 13px; }
.team-current-season { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border-radius: 13px; background: #f5f6f7; }
.team-current-season h3 { margin: 2px 0 3px; font-family: var(--k1-font-display,Arial Narrow,sans-serif); font-size: 24px; font-style: italic; font-weight: 900; text-transform: uppercase; }
.team-current-season p { margin: 0; color: #777b81; font-size: 11px; }
.team-season-list { display: flex; flex-direction: column; gap: 8px; }
.team-season-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; border: 1px solid #e7e8ea; border-radius: 11px; color: inherit; text-decoration: none; }
.team-season-row:hover, .team-season-row.active { border-color: #cfd2d6; background: #f8f8f9; }
.team-season-row strong, .team-season-row small { display: block; }
.team-season-row strong { color: #2c2e32; font-size: 12px; }
.team-season-row small { margin-top: 2px; color: #8a8e94; font-size: 9px; }
.team-empty-mini { padding: 16px; border: 1px dashed #d8dade; border-radius: 11px; color: #777b81; font-size: 11px; text-align: center; }
.team-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.team-section-head h2 { margin: 2px 0 2px; font-family: var(--k1-font-display,Arial Narrow,sans-serif); font-size: 30px; font-style: italic; font-weight: 900; text-transform: uppercase; }
.team-section-head p { margin: 0; color: #7b7f85; font-size: 12px; }
.team-empty-state { display: flex; min-height: 310px; flex-direction: column; align-items: center; justify-content: center; padding: 30px; border: 1px dashed #d6d8db; border-radius: 14px; background: #fbfbfc; text-align: center; }
.team-empty-state > i { margin-bottom: 12px; color: #a0a4aa; font-size: 34px; }
.team-empty-state strong { color: #2b2d31; font-size: 15px; }
.team-empty-state p { max-width: 500px; margin: 5px 0 14px; color: #7d8187; font-size: 11px; }
.team-person-card { display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 16px; border: 1px solid #e7e8ea; border-radius: 13px; background: #fff; }
.team-avatar { display: grid; width: 46px; height: 46px; place-items: center; flex: 0 0 46px; border-radius: 50%; background: #eff0f2; color: #383b40; font-size: 13px; font-weight: 900; }
.team-person-main { flex: 1; min-width: 0; }
.team-person-main strong, .team-person-main > small { display: block; }
.team-person-main strong { color: #26282c; font-size: 13px; }
.team-person-main > small { margin-top: 1px; color: #92969c; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.team-person-meta { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; color: #73777d; font-size: 10px; }
.team-person-meta span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.team-person-meta i { width: 13px; color: #969aa0; }
.team-jersey { flex: 0 0 auto; color: #2a2d31; font-family: var(--k1-font-display,Arial Narrow,sans-serif); font-size: 22px; font-style: italic; font-weight: 900; }
.team-event-list, .team-message-list { display: flex; flex-direction: column; border: 1px solid #e7e8ea; border-radius: 14px; overflow: hidden; }
.team-event-row { display: flex; align-items: center; gap: 16px; padding: 15px 17px; border-bottom: 1px solid #eceef0; }
.team-event-row:last-child, .team-message-row:last-child { border-bottom: 0; }
.team-event-date { display: grid; width: 48px; height: 52px; place-items: center; align-content: center; flex: 0 0 48px; border-radius: 10px; background: #f1f2f3; line-height: 1; text-align: center; }
.team-event-date strong { color: #7f8389; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.team-event-date span { margin-top: 4px; font-family: var(--k1-font-display,Arial Narrow,sans-serif); font-size: 21px; font-style: italic; font-weight: 900; }
.team-event-main { flex: 1; min-width: 0; }
.team-event-main strong { color: #292b2f; font-size: 13px; }
.team-event-main small { display: block; margin-top: 4px; color: #7f8389; font-size: 10px; }
.team-message-row { display: flex; align-items: flex-start; gap: 14px; padding: 17px; border-bottom: 1px solid #eceef0; }
.team-message-icon { display: grid; width: 40px; height: 40px; place-items: center; flex: 0 0 40px; border-radius: 11px; background: #f1f2f3; }
.team-message-row strong { color: #292b2f; font-size: 13px; }
.team-message-row small { color: #8b8f95; font-size: 9px; }
.team-message-row p { margin: 6px 0 8px; color: #62666c; font-size: 11px; white-space: normal; }
.team-channel-list { display: flex; flex-wrap: wrap; gap: 7px; }
.team-channel-list span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 7px; background: #f3f4f5; color: #777b81; font-size: 9px; font-weight: 700; }
.team-campaign-card { height: 100%; padding: 19px; border: 1px solid #e7e8ea; border-radius: 14px; }
.team-campaign-card h3 { margin: 0; color: #24262a; font-size: 16px; font-weight: 800; }
.team-campaign-card p { margin: 9px 0 0; color: #777b81; font-size: 11px; }
.team-campaign-icon { color: #9a9ea4; font-size: 23px; }
.team-campaign-total { display: flex; align-items: baseline; gap: 7px; margin-top: 18px; }
.team-campaign-total strong { font-family: var(--k1-font-display,Arial Narrow,sans-serif); font-size: 28px; font-style: italic; font-weight: 900; }
.team-campaign-total span { color: #85898f; font-size: 10px; }
.team-campaign-card .progress { height: 6px; margin-top: 9px; background: #eceef0; }
.team-campaign-card .progress-bar { background: var(--portal-accent); }
.team-campaign-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: #8a8e94; font-size: 9px; }

@media (max-width: 991.98px) {
    .team-workspace-toolbar { flex-direction: column; gap: 0; padding: 0; }
    .team-tabs { width: 100%; padding: 0 10px; border-bottom: 1px solid #eceef0; }
    .team-tab { min-height: 55px; padding: 0 11px; }
    .team-tab::after { left: 11px; right: 11px; }
    .team-season-picker { padding: 10px 14px; }
    .team-season-picker .form-select { flex: 1; }
    .team-workspace-body { padding: 18px; }
}
@media (max-width: 575.98px) {
    .team-tab span { display: none; }
    .team-tab { justify-content: center; min-width: 46px; }
    .team-tab i { font-size: 16px; }
    .team-section-head { align-items: flex-start; flex-direction: column; }
    .team-section-head .btn { width: 100%; }
    .team-current-season { align-items: flex-start; flex-direction: column; }
    .team-event-row { gap: 11px; padding: 13px; }
}

/* --------------------------------------------------------------------------
   Team roster: Add Athlete
   -------------------------------------------------------------------------- */
.roster-add-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    align-items: start;
}

.roster-add-card {
    padding: 0;
    overflow: hidden;
}

.roster-add-mode {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-bottom: 1px solid var(--bs-border-color);
    background: rgba(0, 0, 0, .015);
}

.roster-add-mode-btn {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.15rem;
    color: var(--bs-body-color);
    text-decoration: none;
    border-right: 1px solid var(--bs-border-color);
    border-bottom: 3px solid transparent;
    transition: background-color .15s ease, border-color .15s ease;
}

.roster-add-mode-btn:last-child {
    border-right: 0;
}

.roster-add-mode-btn:hover {
    background: rgba(0, 0, 0, .025);
    color: var(--bs-body-color);
}

.roster-add-mode-btn.active {
    background: #fff;
    border-bottom-color: var(--portal-primary, #111827);
}

.roster-add-mode-btn > i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .055);
    font-size: 1rem;
}

.roster-add-mode-btn span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.roster-add-mode-btn strong {
    font-size: .95rem;
}

.roster-add-mode-btn small {
    margin-top: .1rem;
    color: var(--bs-secondary-color);
    font-size: .78rem;
}

.roster-add-panel {
    padding: 1.5rem;
}

.roster-search-form .input-group-text,
.roster-search-form .form-control {
    border-color: var(--bs-border-color);
}

.roster-search-results {
    margin-top: 1.5rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 16px;
    overflow: hidden;
}

.roster-search-count {
    padding: .7rem 1rem;
    background: rgba(0, 0, 0, .025);
    border-bottom: 1px solid var(--bs-border-color);
    color: var(--bs-secondary-color);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.roster-candidate {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: .9rem;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
    background: #fff;
}

.roster-candidate:last-child {
    border-bottom: 0;
}

.roster-candidate-avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 0, 0, .06);
    font-size: .85rem;
    font-weight: 800;
}

.roster-candidate-main {
    min-width: 0;
}

.roster-candidate-name {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    flex-wrap: wrap;
}

.roster-candidate-name strong {
    font-size: .98rem;
}

.roster-candidate-name > span {
    color: var(--bs-secondary-color);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.roster-candidate-meta {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: .35rem;
    color: var(--bs-secondary-color);
    font-size: .79rem;
}

.roster-candidate-meta span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.roster-add-hint,
.roster-form-note {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 14px;
    background: rgba(0, 0, 0, .02);
    color: var(--bs-secondary-color);
}

.roster-add-hint {
    margin-top: 1.5rem;
}

.roster-add-hint i,
.roster-form-note i {
    margin-top: .1rem;
}

.roster-add-hint div {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.roster-add-hint strong {
    color: var(--bs-body-color);
    font-size: .9rem;
}

.roster-add-hint span,
.roster-form-note span {
    font-size: .82rem;
}

.roster-context-card {
    position: sticky;
    top: 1.25rem;
}

.roster-context-list {
    display: grid;
    gap: .85rem;
}

.roster-context-list > div {
    padding-bottom: .8rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.roster-context-list span,
.roster-context-list strong {
    display: block;
}

.roster-context-list span {
    margin-bottom: .2rem;
    color: var(--bs-secondary-color);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.roster-context-list strong {
    font-size: .9rem;
}

.roster-context-help {
    display: flex;
    gap: .65rem;
    margin-top: 1rem;
    padding: .9rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, .035);
    color: var(--bs-secondary-color);
}

.roster-context-help p {
    margin: 0;
    font-size: .8rem;
    line-height: 1.5;
}

.roster-context-help strong {
    color: var(--bs-body-color);
}

.roster-search-empty {
    margin-top: 1.5rem;
}

@media (max-width: 991.98px) {
    .roster-add-layout {
        grid-template-columns: 1fr;
    }

    .roster-context-card {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .roster-add-mode {
        grid-template-columns: 1fr;
    }

    .roster-add-mode-btn {
        border-right: 0;
        border-bottom: 1px solid var(--bs-border-color);
    }

    .roster-add-mode-btn.active {
        border-bottom: 3px solid var(--portal-primary, #111827);
    }

    .roster-add-panel {
        padding: 1rem;
    }

    .roster-candidate {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .roster-candidate-avatar {
        width: 44px;
        height: 44px;
    }

    .roster-candidate-select {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* Team roster cards ------------------------------------------------------- */
.team-roster-card {
    align-items: flex-start;
}

.team-roster-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .55rem;
    margin-top: .8rem;
}

.team-roster-details > span {
    min-width: 0;
    padding: .55rem .6rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    background: rgba(0, 0, 0, .018);
}

.team-roster-details strong,
.team-roster-details small {
    display: block;
}

.team-roster-details strong {
    overflow: hidden;
    color: var(--bs-body-color);
    font-size: .82rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-roster-details small {
    margin-top: .18rem;
    color: var(--bs-secondary-color);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

@media (max-width: 575.98px) {
    .team-roster-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


.portal-page-head {margin-bottom: 10px;}


/* =========================================================
   Team roster player editor
   ========================================================= */

.team-roster-card-editable {
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.team-roster-card-editable:hover,
.team-roster-card-editable:focus-visible {
    border-color: rgba(16, 24, 40, .22);
    box-shadow: 0 10px 28px rgba(16, 24, 40, .08);
    transform: translateY(-1px);
    outline: none;
}

.team-avatar-photo {
    object-fit: cover;
    overflow: hidden;
}

.team-roster-edit-hint {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .75rem;
    color: #667085;
    font-size: .78rem;
    font-weight: 700;
}

.roster-player-modal {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
}

.roster-player-modal .modal-header,
.roster-player-modal .modal-footer {
    padding: 1.25rem 1.5rem;
}

.roster-player-modal .modal-body {
    padding: 1.5rem;
}

.roster-player-media-panel {
    height: 100%;
    padding: 1.25rem;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    background: #fafafa;
}

.roster-player-photo-preview {
    width: 100%;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px dashed #d0d5dd;
    border-radius: 16px;
    background: #f2f4f7;
    color: #98a2b3;
    font-size: 4rem;
}

.roster-player-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.roster-video-placeholder {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem;
    border: 1px dashed #d0d5dd;
    border-radius: 14px;
    background: #fff;
}

.roster-video-placeholder-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #f2f4f7;
    font-size: 1.2rem;
}

.roster-video-placeholder > div:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.roster-video-placeholder strong,
.roster-video-placeholder span:not(.badge) {
    display: block;
}

.roster-video-placeholder span:not(.badge) {
    margin-top: .15rem;
    color: #667085;
    font-size: .82rem;
    line-height: 1.35;
}

.roster-modal-position-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    max-height: 240px;
    overflow: auto;
    padding: .65rem;
    border: 1px solid #d0d5dd;
    border-radius: .5rem;
    background: #fff;
}

.roster-modal-position {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    min-width: 0;
    padding: .55rem .6rem;
    border-radius: .45rem;
    cursor: pointer;
}

.roster-modal-position:hover {
    background: #f8f9fa;
}

.roster-modal-position span {
    min-width: 0;
}

.roster-modal-position strong,
.roster-modal-position small {
    display: block;
}

.roster-modal-position small {
    color: #667085;
    line-height: 1.2;
}

@media (max-width: 991.98px) {
    .roster-player-photo-preview {
        max-width: 280px;
        margin-inline: auto;
    }

    .roster-modal-position-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .roster-modal-position-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Team roster AJAX search
   ========================================================= */

.team-roster-search-wrap {
    margin: 0 0 1.25rem;
}

.team-roster-search {
    display: flex;
    align-items: center;
    gap: .65rem;
    position: relative;
}

.team-roster-search > .bi-search {
    position: absolute;
    left: 1rem;
    z-index: 2;
    color: #667085;
    pointer-events: none;
}

.team-roster-search .form-control {
    min-height: 48px;
    padding-left: 2.75rem;
    border-radius: 12px;
}

.team-roster-search-clear {
    min-height: 48px;
    white-space: nowrap;
    border-radius: 12px;
}

.team-roster-search-status {
    min-height: 1.35rem;
    margin-top: .45rem;
    color: #667085;
    font-size: .85rem;
}

.team-roster-result[hidden] {
    display: none !important;
}

.team-roster-no-results {
    margin-top: .5rem;
}

@media (max-width: 575.98px) {
    .team-roster-search {
        align-items: stretch;
    }

    .team-roster-search .form-control {
        min-width: 0;
    }

    .team-roster-search-clear {
        padding-inline: .8rem;
    }
}


/* =========================================================
   K1 Athlete qualification + badge
   ========================================================= */

.team-roster-card {
    position: relative;
}

.k1-athlete-indicator {
    position: absolute;
    top: .7rem;
    right: .7rem;
    z-index: 5;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
}

.k1-athlete-indicator img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.k1-athlete-indicator:hover,
.k1-athlete-indicator:focus-visible {
    transform: scale(1.06);
    outline: none;
    filter: drop-shadow(0 4px 8px rgba(16, 24, 40, .18));
}

.team-roster-card.has-k1-athlete-badge .team-jersey {
    margin-right: 3.2rem;
}

.k1-athlete-info-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.k1-athlete-info-modal {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
}

.k1-athlete-definition {
    font-size: 1.05rem;
    line-height: 1.65;
}

.k1-public-standards {
    display: grid;
    gap: .75rem;
    margin: 1.25rem 0;
}

.k1-public-standard {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: .9rem 1rem;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
}

.k1-public-standard > i {
    margin-top: .1rem;
    font-size: 1.1rem;
}

.k1-public-standard strong,
.k1-public-standard span {
    display: block;
}

.k1-public-standard span {
    margin-top: .15rem;
    color: #667085;
    font-size: .9rem;
    line-height: 1.4;
}

.k1-qualification-editor {
    padding: 1.15rem;
    border: 1px solid #dfe3e8;
    border-radius: 18px;
    background: #fafbfc;
}

.k1-qualification-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.k1-qualification-editor-head h3 {
    margin: .15rem 0 .25rem;
    font-size: 1.15rem;
}

.k1-qualification-editor-head p {
    margin: 0;
    color: #667085;
    font-size: .9rem;
    line-height: 1.45;
}

.k1-qualification-summary {
    flex: 0 0 auto;
    min-width: 150px;
    padding: .75rem .9rem;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.k1-qualification-summary strong,
.k1-qualification-summary span {
    display: block;
}

.k1-qualification-summary strong {
    font-size: 1.05rem;
}

.k1-qualification-summary span {
    margin-top: .15rem;
    color: #667085;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.k1-criteria-list {
    display: grid;
    gap: .65rem;
}

.k1-criterion-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .85rem .9rem;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.k1-criterion-item:hover {
    border-color: #c9ced6;
}

.k1-criterion-item .form-check-input {
    margin-top: .2rem;
    flex: 0 0 auto;
}

.k1-criterion-copy,
.k1-criterion-title-row,
.k1-criterion-requirement,
.k1-criterion-description {
    display: block;
}

.k1-criterion-copy {
    min-width: 0;
    flex: 1;
}

.k1-criterion-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.k1-criterion-title-row small {
    color: #667085;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.k1-criterion-requirement {
    margin-top: .2rem;
    font-size: .88rem;
    font-weight: 600;
}

.k1-criterion-description {
    margin-top: .2rem;
    color: #667085;
    font-size: .82rem;
    line-height: 1.4;
}

.k1-qualification-result {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-top: 1rem;
    padding: .9rem 1rem;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
}

.k1-qualification-result img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    opacity: .38;
    filter: grayscale(1);
}

.k1-qualification-result strong,
.k1-qualification-result span {
    display: block;
}

.k1-qualification-result span {
    margin-top: .15rem;
    color: #667085;
    font-size: .84rem;
}

.k1-qualification-result.qualified {
    border-color: rgba(34, 139, 94, .28);
    background: rgba(34, 139, 94, .05);
}

.k1-qualification-result.qualified img {
    opacity: 1;
    filter: none;
}

@media (max-width: 767.98px) {
    .k1-qualification-editor-head {
        display: block;
    }

    .k1-qualification-summary {
        width: 100%;
        margin-top: .85rem;
    }

    .k1-athlete-indicator {
        width: 40px;
        height: 40px;
    }

    .team-roster-card.has-k1-athlete-badge .team-jersey {
        margin-right: 2.8rem;
    }
}


/* =========================================================
   Player editor tabs
   ========================================================= */

.roster-player-tabs {
    gap: .25rem;
    padding: 0 1.5rem;
    border-bottom: 1px solid #e4e7ec;
    background: #fff;
}

.roster-player-tabs .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 58px;
    padding: .9rem 1rem;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: #667085;
    font-weight: 700;
}

.roster-player-tabs .nav-link:hover {
    color: #101828;
}

.roster-player-tabs .nav-link.active {
    color: #101828;
    background: transparent;
    border-bottom-color: currentColor;
}

.roster-player-tabs .nav-link > i {
    font-size: 1.05rem;
}

.roster-player-tabs .nav-link > img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.roster-player-tabs .nav-link small {
    padding: .15rem .4rem;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    background: #f9fafb;
    color: #667085;
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.roster-tab-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #219653;
    box-shadow: 0 0 0 3px rgba(33, 150, 83, .12);
}

.roster-player-tabs .nav-link.is-qualified {
    color: #101828;
}

.roster-player-tab-content {
    padding: 1.5rem;
}

.k1-qualification-editor-tab {
    border: 0;
    background: transparent;
    padding: 0;
}

.k1-qualification-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.k1-qualification-hero > img {
    width: 66px;
    height: 66px;
    object-fit: contain;
}

.k1-qualification-hero h3 {
    margin: .15rem 0 .25rem;
}

.k1-qualification-hero p {
    margin: 0;
    color: #667085;
    line-height: 1.45;
}

/* =========================================================
   Player media future tab
   ========================================================= */

.player-media-future {
    min-height: 420px;
}

.player-media-future-hero {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    background: #fafbfc;
}

.player-media-future-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e4e7ec;
    font-size: 1.45rem;
}

.player-media-future-hero h3 {
    margin: .15rem 0 .25rem;
    font-size: 1.2rem;
}

.player-media-future-hero p {
    margin: 0;
    max-width: 760px;
    color: #667085;
    line-height: 1.5;
}

.player-media-placeholder-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.1rem;
    border: 1px dashed #d0d5dd;
    border-radius: 16px;
    background: #fff;
}

.player-media-placeholder-card.is-current {
    border-style: solid;
}

.player-media-placeholder-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: .8rem;
    border-radius: 12px;
    background: #f2f4f7;
    font-size: 1.15rem;
}

.player-media-placeholder-card strong {
    display: block;
    font-size: 1rem;
}

.player-media-placeholder-card p {
    flex: 1;
    margin: .35rem 0 .85rem;
    color: #667085;
    font-size: .88rem;
    line-height: 1.45;
}

.player-media-coming {
    display: block;
    margin-top: .55rem;
    color: #667085;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.player-media-roadmap {
    padding: 1.1rem 1.2rem;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: #fafafa;
}

.player-media-roadmap > strong {
    display: block;
    margin-bottom: .75rem;
}

.player-media-roadmap-steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
}

.player-media-roadmap-steps span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .65rem;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    background: #fff;
    font-size: .82rem;
    font-weight: 700;
}

.player-media-roadmap-steps > i {
    color: #98a2b3;
    font-size: .75rem;
}

.player-media-roadmap p {
    margin: .85rem 0 0;
    color: #667085;
    font-size: .85rem;
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    .roster-player-tabs {
        padding-inline: .75rem;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .roster-player-tabs .nav-link {
        white-space: nowrap;
        padding-inline: .75rem;
    }

    .roster-player-tab-content {
        padding: 1rem;
    }

    .k1-qualification-hero {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .k1-qualification-hero .k1-qualification-summary {
        grid-column: 1 / -1;
    }

    .player-media-future-hero {
        display: block;
    }

    .player-media-future-icon {
        margin-bottom: .85rem;
    }
}


/* =========================================================
   Player editor modal scrolling hotfix
   ========================================================= */

#editRosterAthleteModal .modal-dialog {
    height: calc(100vh - 2rem);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#editRosterAthleteModal .roster-player-modal {
    height: 100%;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

#editRosterAthleteModal .modal-header,
#editRosterAthleteModal .modal-footer {
    flex: 0 0 auto;
}

#editRosterAthleteModal .roster-player-modal-body {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#editRosterAthleteModal .roster-player-tabs {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    z-index: 10;
}

#editRosterAthleteModal .roster-player-tab-content {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#editRosterAthleteModal .tab-pane {
    min-height: 100%;
}

#editRosterAthleteModal #k1-athlete-pane {
    padding-bottom: 1rem;
}

#editRosterAthleteModal .k1-criteria-list {
    padding-bottom: .25rem;
}

@media (max-width: 575.98px) {
    #editRosterAthleteModal .modal-dialog {
        height: calc(100vh - 1rem);
        margin: .5rem;
    }

    #editRosterAthleteModal .roster-player-modal {
        max-height: calc(100vh - 1rem);
    }
}


/* =========================================================
   Player editor persistent action footer
   ========================================================= */

#editRosterAthleteModal {
    --k1-player-modal-viewport-gap: 1rem;
}

#editRosterAthleteModal .modal-dialog {
    height: calc(100dvh - (var(--k1-player-modal-viewport-gap) * 2));
    max-height: calc(100dvh - (var(--k1-player-modal-viewport-gap) * 2));
    margin-top: var(--k1-player-modal-viewport-gap);
    margin-bottom: var(--k1-player-modal-viewport-gap);
}

#editRosterAthleteModal .modal-content.roster-player-modal {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

#editRosterAthleteModal .roster-player-modal-body {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

#editRosterAthleteModal .roster-player-tabs {
    position: relative;
    top: auto;
    z-index: 3;
    flex: 0 0 auto;
}

#editRosterAthleteModal .roster-player-tab-content {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 1.5rem;
}

#editRosterAthleteModal .roster-player-modal-footer {
    position: relative;
    z-index: 5;
    flex: 0 0 auto;
    margin: 0;
    border-top: 1px solid #e4e7ec;
    background: #fff;
    box-shadow: 0 -8px 20px rgba(16, 24, 40, .04);
}

#editRosterAthleteModal #k1-athlete-pane {
    min-height: auto;
}

#editRosterAthleteModal .k1-criteria-list {
    padding-bottom: 0;
}

@media (max-width: 575.98px) {
    #editRosterAthleteModal {
        --k1-player-modal-viewport-gap: .5rem;
    }

    #editRosterAthleteModal .roster-player-modal-footer {
        padding: .85rem 1rem;
    }
}


/* =========================================================
   Player editor form flex-layout correction
   ========================================================= */

/*
   The modal-content is a flex container, but the <form> is its direct child.
   The previous rules tried to flex the header/body/footer without first
   making that form a flex container. That caused the content area to collapse
   while unused modal height appeared below the footer.
*/

#editRosterAthleteModal .roster-player-modal > form {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#editRosterAthleteModal .roster-player-modal > form > .modal-header {
    flex: 0 0 auto;
}

#editRosterAthleteModal .roster-player-modal > form > .roster-player-modal-body {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#editRosterAthleteModal .roster-player-modal > form > .roster-player-modal-footer {
    flex: 0 0 auto;
    margin-top: 0;
}

#editRosterAthleteModal .roster-player-tab-content {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Make each tab use the available width naturally without forcing height. */
#editRosterAthleteModal .roster-player-tab-content > .tab-pane {
    width: 100%;
    min-height: 0;
}

/* Footer always stays at the true bottom edge of the modal. */
#editRosterAthleteModal .roster-player-modal-footer {
    background: #fff;
    border-top: 1px solid #e4e7ec;
    box-shadow: 0 -6px 18px rgba(16, 24, 40, .04);
}


/* =========================================================
   Athlete + staff biography fields
   ========================================================= */

.athlete-bio-field,
.staff-bio-field {
    min-height: 132px;
    resize: vertical;
    line-height: 1.55;
}

.athlete-bio-field {
    min-height: 145px;
}

.staff-bio-field-wrap {
    width: 100%;
}


/* =========================================================
   Team Staff assignment
   ========================================================= */

.team-staff-card {
    align-items: flex-start;
}

.team-staff-position-list {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .35rem;
}

.team-staff-position-list span {
    display: inline-flex;
    align-items: center;
    padding: .22rem .48rem;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    background: #f9fafb;
    color: #667085;
    font-size: .72rem;
    font-weight: 700;
}

.team-staff-position-list span.primary {
    background: #fff;
    color: #101828;
    border-color: #cfd4dc;
}

.team-staff-bio-preview {
    margin: .75rem 0 0;
    color: #667085;
    font-size: .84rem;
    line-height: 1.45;
}

.team-staff-modal {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
}

.team-staff-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    overflow: hidden;
}

.team-staff-mode {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: 1rem 1.1rem;
    border: 0;
    background: #fff;
    text-align: left;
}

.team-staff-mode + .team-staff-mode {
    border-left: 1px solid #e4e7ec;
}

.team-staff-mode.active {
    background: #f8fafc;
    box-shadow: inset 0 -3px 0 #101828;
}

.team-staff-mode > i {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #f2f4f7;
    font-size: 1rem;
}

.team-staff-mode strong,
.team-staff-mode small {
    display: block;
}

.team-staff-mode small {
    margin-top: .15rem;
    color: #667085;
    line-height: 1.35;
}

.team-staff-search {
    position: relative;
    display: flex;
    gap: .6rem;
}

.team-staff-search > i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #667085;
}

.team-staff-search .form-control {
    min-height: 48px;
    padding-left: 2.75rem;
}

.team-staff-search-status {
    min-height: 1.3rem;
    margin-top: .45rem;
    color: #667085;
    font-size: .84rem;
}

.team-staff-search-results {
    display: grid;
    gap: .5rem;
    max-height: 270px;
    overflow-y: auto;
    margin-top: .65rem;
}

.team-staff-search-result {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .7rem .8rem;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
    text-align: left;
}

.team-staff-search-result:hover {
    border-color: #c9ced6;
    background: #fafafa;
}

.team-staff-search-result .team-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.team-staff-search-result-main {
    min-width: 0;
    flex: 1;
}

.team-staff-search-result-main strong,
.team-staff-search-result-main small {
    display: block;
}

.team-staff-search-result-main small {
    color: #667085;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-staff-search-result-meta {
    flex: 0 0 auto;
    color: #667085;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.team-staff-search-result.already-assigned
.team-staff-search-result-meta {
    color: #027a48;
}

.team-staff-selected-person {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-top: 1rem;
    padding: .85rem;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    background: #fafafa;
}

.team-staff-selected-person strong,
.team-staff-selected-person span {
    display: block;
}

.team-staff-selected-person span {
    color: #667085;
    font-size: .84rem;
}

.team-staff-additional-positions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    max-height: 250px;
    overflow-y: auto;
    padding: .65rem;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background: #fff;
}

.team-staff-position-option {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .55rem .6rem;
    border-radius: 9px;
    cursor: pointer;
}

.team-staff-position-option:hover {
    background: #f8f9fa;
}

.team-staff-position-option strong,
.team-staff-position-option small {
    display: block;
}

.team-staff-position-option small {
    color: #667085;
    font-size: .72rem;
}

@media (max-width: 767.98px) {
    .team-staff-mode-tabs {
        grid-template-columns: 1fr;
    }

    .team-staff-mode + .team-staff-mode {
        border-left: 0;
        border-top: 1px solid #e4e7ec;
    }

    .team-staff-additional-positions {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Team Staff modal v2
   ========================================================= */

#assignTeamStaffModal .modal-dialog {
    height: calc(100dvh - 2rem);
    max-height: calc(100dvh - 2rem);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#assignTeamStaffModal .team-staff-modal {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

#assignTeamStaffModal .team-staff-modal > form {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#assignTeamStaffModal .team-staff-modal > form > .modal-header {
    flex: 0 0 auto;
}

#assignTeamStaffModal .team-staff-modal-body {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#assignTeamStaffModal .team-staff-modal-footer {
    flex: 0 0 auto;
    position: relative;
    z-index: 5;
    margin: 0;
    border-top: 1px solid #e4e7ec;
    background: #fff;
    box-shadow: 0 -8px 20px rgba(16, 24, 40, .04);
}

.team-staff-photo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: #fafafa;
}

.team-staff-photo-preview {
    width: 86px;
    height: 86px;
    flex: 0 0 86px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px dashed #d0d5dd;
    border-radius: 50%;
    background: #f2f4f7;
    color: #98a2b3;
    font-size: 2rem;
}

.team-staff-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-staff-card .team-avatar-photo {
    object-fit: cover;
}

@media (max-width: 575.98px) {
    #assignTeamStaffModal .modal-dialog {
        height: calc(100dvh - 1rem);
        max-height: calc(100dvh - 1rem);
        margin: .5rem;
    }

    .team-staff-photo-section {
        align-items: flex-start;
    }

    .team-staff-photo-preview {
        width: 70px;
        height: 70px;
        flex-basis: 70px;
    }
}


/* =========================================================
   Editable Staff Cards + Edit Staff Modal
   ========================================================= */

.team-staff-card-editable {
    cursor: pointer;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.team-staff-card-editable:hover,
.team-staff-card-editable:focus-visible {
    border-color: rgba(16, 24, 40, .22);
    box-shadow: 0 10px 28px rgba(16, 24, 40, .08);
    transform: translateY(-1px);
    outline: none;
}

#editTeamStaffModal .modal-dialog {
    height: calc(100dvh - 2rem);
    max-height: calc(100dvh - 2rem);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#editTeamStaffModal .team-staff-modal {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

#editTeamStaffModal .team-staff-modal > form {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#editTeamStaffModal .team-staff-modal-body {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

#editTeamStaffModal .team-staff-modal-footer {
    flex: 0 0 auto;
    background: #fff;
    border-top: 1px solid #e4e7ec;
    box-shadow: 0 -8px 20px rgba(16, 24, 40, .04);
}

.team-staff-edit-photo-panel {
    padding: 1.15rem;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    background: #fafafa;
}

.team-staff-edit-photo-preview {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px dashed #d0d5dd;
    border-radius: 50%;
    background: #f2f4f7;
    color: #98a2b3;
    font-size: 4rem;
}

.team-staff-edit-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 575.98px) {
    #editTeamStaffModal .modal-dialog {
        height: calc(100dvh - 1rem);
        max-height: calc(100dvh - 1rem);
        margin: .5rem;
    }
}


/* =========================================================
   Existing staff search: single-row results + profile preview
   ========================================================= */

.team-staff-search-results {
    display: grid;
    grid-template-columns: 1fr;
}

.team-staff-search-result {
    min-height: 68px;
    padding: .8rem .9rem;
}

.team-staff-search-result-main {
    display: block;
    min-width: 0;
}

.team-staff-search-result-meta {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    white-space: nowrap;
}

.team-staff-search-result-meta i {
    font-size: .85rem;
    color: #98a2b3;
}

.team-staff-profile-preview {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #d0d5dd;
    border-radius: 16px;
    background: #fff;
}

.team-staff-profile-preview-head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-staff-profile-photo {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #f2f4f7;
    color: #344054;
    font-weight: 800;
    font-size: 1.1rem;
}

.team-staff-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-staff-profile-main {
    min-width: 0;
    flex: 1;
}

.team-staff-profile-main h3 {
    margin: .15rem 0 .35rem;
    font-size: 1.2rem;
}

.team-staff-profile-contact {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1rem;
    color: #667085;
    font-size: .88rem;
}

.team-staff-profile-contact > span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.team-staff-profile-bio {
    margin-top: 1rem;
    padding: .9rem 1rem;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fafafa;
}

.team-staff-profile-bio strong {
    display: block;
    margin-bottom: .3rem;
}

.team-staff-profile-bio p {
    margin: 0;
    color: #667085;
    line-height: 1.5;
    white-space: pre-line;
}

.team-staff-profile-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e4e7ec;
}

.team-staff-status-on-team {
    color: #027a48 !important;
    border-color: rgba(2, 122, 72, .25) !important;
    background: rgba(2, 122, 72, .05) !important;
}

.team-staff-status-selected {
    color: #175cd3 !important;
    border-color: rgba(23, 92, 211, .25) !important;
    background: rgba(23, 92, 211, .05) !important;
}

@media (max-width: 575.98px) {
    .team-staff-profile-preview-head {
        align-items: flex-start;
    }

    .team-staff-profile-photo {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

    .team-staff-profile-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .team-staff-profile-actions .ms-auto {
        width: 100%;
        margin-left: 0 !important;
    }

    .team-staff-profile-actions .btn {
        flex: 1;
    }
}


/* =========================================================
   Team section action alignment
   ========================================================= */

.team-section-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
    flex-wrap: wrap;
}

.team-section-actions .btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1.2;
}

.team-section-head > .btn,
.team-section-head > .team-section-actions {
    align-self: center;
}

/* =========================================================
   Staff page search - same visual system as roster search
   ========================================================= */

.team-staff-page-search-wrap {
    margin-top: .35rem;
}

.team-staff-page-result[hidden] {
    display: none !important;
}

.team-staff-page-no-results {
    margin-top: .5rem;
}

@media (max-width: 767.98px) {
    .team-section-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .team-section-actions .btn {
        flex: 0 0 auto;
    }
}


/* =========================================================
   Team Schedule v1
   ========================================================= */

.team-schedule-summary {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .65rem;
    margin-bottom: 1rem;
}

.team-schedule-summary > div {
    padding: .8rem .9rem;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
}

.team-schedule-summary span,
.team-schedule-summary strong {
    display: block;
}

.team-schedule-summary span {
    color: #667085;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.team-schedule-summary strong {
    margin-top: .15rem;
    font-size: 1rem;
}

.team-schedule-list {
    display: grid;
    gap: .65rem;
}

.team-schedule-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: .85rem 1rem;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: #fff;
}

.team-schedule-row[role="button"] {
    cursor: pointer;
}

.team-schedule-row[role="button"]:hover,
.team-schedule-row[role="button"]:focus-visible {
    border-color: #c9ced6;
    box-shadow: 0 8px 22px rgba(16, 24, 40, .06);
    outline: none;
}

.team-schedule-date {
    text-align: center;
}

.team-schedule-date strong,
.team-schedule-date span,
.team-schedule-date small {
    display: block;
}

.team-schedule-date strong {
    color: #667085;
    font-size: .72rem;
    text-transform: uppercase;
}

.team-schedule-date span {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
}

.team-schedule-date small {
    margin-top: .12rem;
    color: #667085;
}

.team-schedule-main {
    min-width: 0;
}

.team-schedule-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.team-schedule-type {
    color: #667085;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.team-schedule-title-row h3 {
    margin: .15rem 0 0;
    font-size: 1.02rem;
}

.team-schedule-site {
    color: #667085;
    margin-right: .2rem;
}

.team-schedule-time {
    flex: 0 0 auto;
    font-weight: 800;
    white-space: nowrap;
}

.team-schedule-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem .65rem;
    margin-top: .45rem;
    color: #667085;
    font-size: .8rem;
}

.team-schedule-meta > span:not(.badge) {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.team-schedule-actions {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: .45rem;
}

.team-schedule-result {
    font-size: 1rem;
}

.team-schedule-result.win {
    color: #027a48;
}

.team-schedule-result.loss {
    color: #b42318;
}

.team-schedule-result.tie {
    color: #475467;
}

.team-schedule-status {
    color: #667085;
    font-size: .78rem;
    font-weight: 700;
}

.team-schedule-links {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.team-schedule-row[hidden] {
    display: none !important;
}

.schedule-event-modal {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .team-schedule-summary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .team-schedule-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-schedule-row {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .team-schedule-actions {
        grid-column: 1 / -1;
        align-items: flex-start;
        padding-left: 74px;
    }

    .team-schedule-links {
        justify-content: flex-start;
    }
}


/* Schedule Event Modal - persistent action footer */
#addScheduleEventModal .modal-dialog,
#editScheduleEventModal .modal-dialog {
    height: calc(100dvh - 2rem);
    max-height: calc(100dvh - 2rem);
    margin-top: 1rem;
    margin-bottom: 1rem;
}
#addScheduleEventModal .schedule-event-modal,
#editScheduleEventModal .schedule-event-modal {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}
#addScheduleEventModal .schedule-event-modal > form,
#editScheduleEventModal .schedule-event-modal > form {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
#addScheduleEventModal .modal-header,
#editScheduleEventModal .modal-header {
    flex: 0 0 auto;
}
#addScheduleEventModal .modal-body,
#editScheduleEventModal .modal-body {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
#addScheduleEventModal .modal-footer,
#editScheduleEventModal .modal-footer {
    flex: 0 0 auto;
    position: relative;
    z-index: 10;
    margin: 0;
    border-top: 1px solid #e4e7ec;
    background: #fff;
    box-shadow: 0 -8px 20px rgba(16, 24, 40, .04);
}


/* =========================================================
   Schedule Matchup
   Away Team @ Home Team
   ========================================================= */

.team-schedule-matchup {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 0.85rem;

    min-width: 0;
    margin-top: 0.25rem;
}

.team-schedule-brand,
.team-schedule-brand.opponent {
    display: flex;
    align-items: center;

    gap: 0.65rem;

    flex: 0 1 auto;
    min-width: 0;
}

.team-schedule-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;

    display: grid;
    place-items: center;

    overflow: hidden;

    border: 1px solid #e4e7ec;
    border-radius: 50%;

    background: #f2f4f7;

    color: #344054;
    font-size: 0.78rem;
    font-weight: 800;
}

.team-schedule-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    padding: 0;
}

.team-schedule-brand-name {
    min-width: 0;
}

.team-schedule-brand-name small,
.team-schedule-brand-name strong {
    display: block;
}

.team-schedule-brand-name small {
    color: #667085;
    font-size: 0.7rem;
    line-height: 1.15;

    white-space: nowrap;
}

.team-schedule-brand-name strong {
    margin-top: 0.1rem;

    color: #101828;
    font-size: 0.95rem;
    font-weight: 700;

    white-space: nowrap;
}

.team-schedule-versus {
    flex: 0 0 auto;

    margin: 0 0.15rem;

    color: #667085;
    font-size: 0.85rem;
    font-weight: 800;

    text-align: center;
}

@media (max-width: 767.98px) {

    .team-schedule-matchup {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .team-schedule-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

}


/* =========================================================
   TEAM SCHEDULE MATCHUP ALIGNMENT
   ========================================================= */

.team-schedule-matchup {
    display: grid;
    grid-template-columns: 230px 32px 230px;
    align-items: center;
    column-gap: 10px;
    width: max-content;
    max-width: 100%;
}


/* Each team gets the same fixed width */

.team-schedule-brand {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 10px;

    width: 230px;
    min-width: 230px;
}


/* Keep logos consistently sized */

.team-schedule-logo {
    width: 56px;
    height: 56px;
    min-width: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    overflow: hidden;

    background: #f5f6f8;
    border: 1px solid #e2e6ea;

    font-weight: 700;
    line-height: 1;
}


/* Make uploaded artwork fit inside the circle */

.team-schedule-logo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center;

    padding: 4px;

    border-radius: 50%;
}


/* Team text gets the remaining fixed space */

.team-schedule-brand-name {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* Mascot / secondary line */

.team-schedule-brand-name small {
    display: block;

    margin-bottom: 2px;

    font-size: 0.75rem;
    line-height: 1.15;

    color: #6b7787;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Main team name */

.team-schedule-brand-name strong {
    display: block;

    font-size: 1rem;
    line-height: 1.15;
    font-weight: 700;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* @ / VS always occupies the exact same column */

.team-schedule-versus {
    width: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1rem;
    font-weight: 700;

    color: #667487;
}


/* =========================================================
   Schedule heading + Home/Away badge
   ========================================================= */

.team-schedule-heading-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;

    margin-bottom: 0.4rem;
}

.team-schedule-heading-row .team-schedule-type {
    margin: 0;
}

.team-schedule-site-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;

    padding: 0.24rem 0.5rem;

    border: 1px solid #d0d5dd;
    border-radius: 999px;

    background: #fff;
    color: #475467;

    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.team-schedule-site-badge i {
    font-size: 0.68rem;
}

.team-schedule-site-badge.is-home {
    background: #f8fafc;
    color: #344054;
}

.team-schedule-site-badge.is-away {
    background: #fff;
    color: #475467;
}

.team-schedule-site-badge.is-neutral {
    background: #f9fafb;
    color: #667085;
}

/* Reference opponent picker */
.schedule-opponent-search-icon {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #667085;
    pointer-events: none;
}
.schedule-opponent-picker .position-relative > .form-control {
    padding-left: 2.65rem;
}
.schedule-opponent-results {
    display: grid;
    gap: .4rem;
    max-height: 260px;
    overflow-y: auto;
    margin-top: .5rem;
    padding: .35rem;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
}
.schedule-opponent-result {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem .7rem;
    border: 0;
    border-radius: 10px;
    background: #fff;
    text-align: left;
}
.schedule-opponent-result:hover,
.schedule-opponent-result:focus-visible {
    background: #f8f9fa;
    outline: none;
}
.schedule-opponent-result-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 50%;
    background: #f2f4f7;
    color: #344054;
    font-size: .72rem;
    font-weight: 800;
}
.schedule-opponent-result-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}
.schedule-opponent-result-main {
    min-width: 0;
    flex: 1;
}
.schedule-opponent-result-main strong,
.schedule-opponent-result-main small {
    display: block;
}
.schedule-opponent-result-main small {
    margin-top: .1rem;
    color: #667085;
    font-size: .76rem;
}
.schedule-opponent-result-meta {
    flex: 0 0 auto;
    color: #667085;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .035em;
}
.schedule-opponent-selected {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-top: .55rem;
    padding: .6rem .7rem;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background: #fafafa;
}
.schedule-opponent-selected-text {
    min-width: 0;
    flex: 1;
}
.schedule-opponent-selected-text strong,
.schedule-opponent-selected-text small {
    display: block;
}
.schedule-opponent-selected-text small {
    color: #667085;
    font-size: .76rem;
}

@media (max-width: 767.98px) {
    .team-schedule-matchup {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .team-schedule-brand {
        flex: 1 1 180px;
    }
    .team-schedule-versus {
        padding-top: 18px;
    }
    .team-schedule-logo {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }
}


/* =========================================================
   School Sport Branding
   ========================================================= */

.sport-branding-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e4e7ec;
    border-radius: 20px;
    background: #fff;
}

.sport-branding-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.sport-branding-heading h2 {
    margin: .2rem 0 .25rem;
}

.sport-branding-heading p {
    max-width: 760px;
    margin: 0;
    color: #667085;
}

.sport-branding-fallback {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .65rem;
    color: #667085;
    font-size: .78rem;
}

.sport-branding-fallback-logo {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 50%;
    background: #f8f9fa;
}

.sport-branding-fallback-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.sport-branding-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(300px, 1fr)
    );
    gap: 1rem;
}

.sport-branding-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: #fff;
}

.sport-branding-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.sport-branding-sport-name {
    display: block;
    font-size: 1rem;
    font-weight: 800;
}

.sport-branding-status {
    display: inline-block;
    margin-top: .15rem;
    color: #667085;
    font-size: .72rem;
    font-weight: 700;
}

.sport-branding-status.is-override {
    color: #027a48;
}

.sport-branding-override-check {
    color: #027a48;
}

.sport-branding-logo-preview {
    height: 170px;
    margin: .9rem 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #f8f9fa;
}

.sport-branding-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
}

.sport-branding-initials {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef1f5;
    color: #475467;
    font-size: 1.25rem;
    font-weight: 800;
}

.sport-branding-source {
    min-height: 46px;
    margin-bottom: .9rem;
    color: #667085;
    font-size: .8rem;
    line-height: 1.4;
}

.sport-color-control {
    display: flex;
    gap: .5rem;
}

.sport-color-control .form-control-color {
    flex: 0 0 52px;
    width: 52px;
    height: 38px;
    padding: .25rem;
}

.sport-branding-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 1rem;
}

@media (max-width: 767.98px) {
    .sport-branding-heading {
        flex-direction: column;
    }

    .sport-branding-fallback {
        width: 100%;
        justify-content: space-between;
    }

    .sport-branding-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   School Sport Branding v2
   ========================================================= */

.sport-branding-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e4e7ec;
    border-radius: 20px;
    background: #fff;
}

.sport-branding-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.sport-branding-heading h2 {
    margin: .2rem 0 .25rem;
}

.sport-branding-heading p {
    max-width: 760px;
    margin: 0;
    color: #667085;
}

.sport-branding-fallback {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .65rem;
    color: #667085;
    font-size: .78rem;
}

.sport-branding-fallback-logo {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 50%;
    background: #f8f9fa;
}

.sport-branding-fallback-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.sport-branding-selector {
    max-width: 420px;
    margin-bottom: 1.25rem;
}

.sport-branding-panel {
    padding: 1.15rem;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: #fff;
}

.sport-branding-panel[hidden] {
    display: none !important;
}

.sport-branding-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .25rem;
}

.sport-branding-panel-head h3 {
    margin: 0;
    font-size: 1.1rem;
}

.sport-branding-status {
    display: inline-block;
    margin-top: .15rem;
    color: #667085;
    font-size: .75rem;
    font-weight: 700;
}

.sport-branding-status.is-override {
    color: #027a48;
}

.sport-branding-override-check {
    color: #027a48;
}

.sport-branding-logo-preview {
    width: 100%;
    min-height: 190px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #f8f9fa;
}

.sport-branding-logo-preview img {
    display: block;
    width: auto;
    height: auto;
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
}

.sport-branding-initials {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef1f5;
    color: #475467;
    font-size: 1.25rem;
    font-weight: 800;
}

.sport-branding-source {
    margin-top: .65rem;
    color: #667085;
    font-size: .8rem;
    line-height: 1.45;
}

.sport-color-control {
    display: flex;
    gap: .5rem;
}

.sport-color-control .form-control-color {
    flex: 0 0 52px;
    width: 52px;
    height: 38px;
    padding: .25rem;
}

.sport-branding-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

@media (max-width: 767.98px) {
    .sport-branding-heading {
        flex-direction: column;
    }

    .sport-branding-fallback {
        width: 100%;
        justify-content: space-between;
    }

    .sport-branding-selector {
        max-width: none;
    }

    .sport-branding-logo-preview {
        min-height: 160px;
    }

    .sport-branding-logo-preview img {
        max-width: 120px;
        max-height: 120px;
    }
}



/* ==========================================================================
   TEAM COMMUNICATIONS
   ========================================================================== */
.communication-metric { display:flex; align-items:center; gap:12px; height:100%; min-height:86px; padding:16px; border:1px solid #e7e8ea; border-radius:13px; background:#fff; }
.communication-metric > span { display:grid; width:40px; height:40px; place-items:center; flex:0 0 40px; border-radius:11px; background:#f1f2f3; color:#51555b; }
.communication-metric small, .communication-metric strong { display:block; }
.communication-metric small { color:#8a8e94; font-size:9px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.communication-metric strong { margin-top:2px; color:#25272b; font-family:var(--k1-font-display,Arial Narrow,sans-serif); font-size:25px; font-style:italic; font-weight:900; line-height:1; }
.communication-metric strong.communication-metric-date { font-size:20px; }
.communication-history-row { color:inherit; text-decoration:none; transition:background-color .15s ease; }
.communication-history-row:hover { background:#fafbfb; color:inherit; }
.communication-history-preview { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.communication-history-chevron { align-self:center; color:#a2a6ac; }
.communication-status-warning { background:#fff4e5 !important; color:#9a5a00 !important; }
.communication-audience-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.communication-audience-option { display:block; cursor:pointer; }
.communication-audience-option > input { position:absolute; opacity:0; pointer-events:none; }
.communication-audience-card { display:flex; align-items:center; gap:11px; min-height:92px; padding:14px; border:1px solid #dde0e4; border-radius:13px; background:#fff; transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease; }
.communication-audience-option:hover .communication-audience-card { border-color:#bfc4ca; }
.communication-audience-option > input:checked + .communication-audience-card { border-color:var(--portal-accent); box-shadow:0 0 0 2px color-mix(in srgb,var(--portal-accent) 18%,transparent); background:color-mix(in srgb,var(--portal-accent) 4%,#fff); }
.communication-audience-icon { display:grid; width:38px; height:38px; place-items:center; flex:0 0 38px; border-radius:10px; background:#f1f2f3; }
.communication-audience-copy { flex:1; min-width:0; }
.communication-audience-copy strong, .communication-audience-copy small { display:block; }
.communication-audience-copy strong { color:#282a2e; font-size:12px; }
.communication-audience-copy small { margin-top:3px; color:#85898f; font-size:9px; line-height:1.4; }
.communication-audience-count { display:grid; min-width:30px; height:30px; place-items:center; padding:0 8px; border-radius:999px; background:#f1f2f3; color:#4e5258; font-size:10px; font-weight:900; }
.communication-delivery-list { display:flex; flex-direction:column; border:1px solid #e3e5e8; border-radius:13px; overflow:hidden; }
.communication-delivery-row { display:flex; align-items:center; gap:12px; min-height:68px; padding:13px 15px; border-bottom:1px solid #eceef0; background:#fff; }
.communication-delivery-row:last-child { border-bottom:0; }
.communication-delivery-row > div:not(.form-check) { flex:1; min-width:0; }
.communication-delivery-row strong, .communication-delivery-row small { display:block; }
.communication-delivery-row strong { color:#2c2e32; font-size:11px; }
.communication-delivery-row small { margin-top:2px; color:#85898f; font-size:9px; }
.communication-delivery-icon { display:grid; width:36px; height:36px; place-items:center; flex:0 0 36px; border-radius:10px; background:#f2f3f4; color:#555960; }
.communication-delivery-row.is-enabled { background:#fafcfb; }
.communication-delivery-row.is-future { background:#fafafa; opacity:.72; }
.communication-side-card .portal-card-head h2 { margin-top:3px; }
.communication-side-row { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:11px 0; border-bottom:1px solid #eceef0; font-size:10px; }
.communication-side-row span { color:#7b7f85; }
.communication-side-row strong { color:#303236; font-size:10px; }
.communication-side-note { display:flex; align-items:flex-start; gap:8px; margin-top:14px; padding:11px; border-radius:10px; background:#f6f7f8; color:#777b81; font-size:9px; line-height:1.45; }
.communication-detail-body { color:#4f5359; font-size:14px; line-height:1.75; white-space:normal; }
.communication-recipient-table th { color:#84888e; font-size:9px; letter-spacing:.04em; text-transform:uppercase; }
.communication-recipient-table td { color:#60646a; font-size:10px; }
.communication-recipient-table td strong { color:#2d2f33; }

@media (max-width: 991.98px) {
    .communication-audience-grid { grid-template-columns:1fr; }
}

.fundraising-public-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-radius:16px;background:linear-gradient(135deg,var(--portal-primary),#17181a);color:#fff}.fundraising-public-bar>div{display:flex;align-items:center;gap:14px}.fundraising-public-bar i{font-size:1.35rem}.fundraising-public-bar strong,.fundraising-public-bar span{display:block}.fundraising-public-bar span{font-size:.86rem;opacity:.75;word-break:break-all}.fundraising-stat{display:flex;align-items:center;gap:14px;height:100%}.fundraising-stat small,.fundraising-stat strong{display:block}.fundraising-stat small{color:#6c757d;font-weight:700;text-transform:uppercase;font-size:.72rem;letter-spacing:.05em}.fundraising-stat strong{font-size:1.6rem;line-height:1.2}.fundraising-campaign-list{display:grid;gap:2px}.fundraising-campaign-row{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:17px 0;border-bottom:1px solid #eceef1;color:inherit;text-decoration:none}.fundraising-campaign-row:last-child{border-bottom:0}.fundraising-campaign-main{flex:1;min-width:0}.fundraising-campaign-main small,.fundraising-campaign-row .text-end small{display:block;color:#6c757d}.fundraising-campaign-row .progress{height:6px;background:#eceef1}.fundraising-campaign-row .progress-bar,.fundraising-progress-lg .progress-bar{background:var(--portal-accent)}.fundraising-recent-list{display:grid}.fundraising-recent-list a{display:grid;grid-template-columns:42px 1fr auto;gap:11px;align-items:center;padding:12px 0;border-bottom:1px solid #eceef1;text-decoration:none;color:inherit}.fundraising-recent-list a:last-child{border-bottom:0}.fundraising-recent-list small{display:block;color:#6c757d}.fundraising-avatar{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--portal-accent) 12%,white);color:var(--portal-accent)}.fundraising-form-panel{padding:20px;border-radius:16px;background:#f7f8fa;border:1px solid #eceef1}.fundraising-big-number{font-size:2.5rem;font-weight:800;letter-spacing:-.04em}.fundraising-progress-lg{height:10px}.fundraising-allocation,.fundraising-money-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid #eceef1}.fundraising-allocation small{display:block;color:#6c757d}.fundraising-money-row.total{font-size:1.1rem;border-bottom:0;padding-top:18px}.fundraising-money-row.total b{color:var(--portal-primary)}
@media(max-width:767.98px){.fundraising-public-bar,.fundraising-campaign-row{align-items:flex-start;flex-direction:column}.fundraising-campaign-row .text-end{text-align:left!important}.fundraising-public-bar .btn{width:100%}}
.fundraising-module-nav{display:flex;gap:6px;align-items:center;overflow-x:auto;padding:6px;background:#fff;border:1px solid #e9ebef;border-radius:14px;box-shadow:0 4px 18px rgba(0,0,0,.035)}.fundraising-module-nav a{display:flex;align-items:center;gap:8px;white-space:nowrap;padding:10px 14px;border-radius:10px;color:#5d626b;text-decoration:none;font-weight:700;font-size:.9rem}.fundraising-module-nav a:hover{background:#f5f6f8;color:#15171a}.fundraising-module-nav a.active{background:var(--portal-primary);color:#fff}

/* =========================================================
   ATHLETE MANAGER MODAL
   ========================================================= */

.athlete-manager-modal {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .20);
}

.athlete-manager-header {
    padding: 22px 26px;
    border-bottom: 1px solid #e3e7eb;
    background: #fff;
}

.athlete-manager-header h2 {
    font-weight: 800;
}

.athlete-manager-id {
    margin-top: 3px;
    font-size: .78rem;
    color: #78828c;
}


/* =========================================================
   TABS
   ========================================================= */

.athlete-manager-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 20px 0;
    border-bottom: 1px solid #dde2e7;
    background: #f8f9fa;
    overflow-x: auto;
}

.athlete-manager-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 12px 16px;

    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;

    color: #69737d;
    font-weight: 700;

    white-space: nowrap;
}

.athlete-manager-tab:hover {
    color: #111;
}

.athlete-manager-tab.active {
    color: var(--portal-primary);
    border-bottom-color: var(--portal-primary);
}


/* =========================================================
   CONTENT
   ========================================================= */

.athlete-manager-content {
    padding: 26px;
    background: #fff;
}

.athlete-manager-section-head {
    margin-bottom: 22px;
}

.athlete-manager-section-head h3 {
    margin: 0 0 5px;
    font-size: 1.15rem;
    font-weight: 800;
}

.athlete-manager-section-head p {
    margin: 0;
    color: #707a84;
}


/* =========================================================
   PROFILE PHOTO
   ========================================================= */

.athlete-photo-panel {
    height: 100%;
    padding: 22px;
    border: 1px solid #dde2e7;
    border-radius: 16px;
    background: #f8f9fa;
}

.athlete-photo-preview {
    width: 170px;
    height: 170px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    overflow: hidden;

    background: #e8ebee;
    color: #818b95;

    font-size: 3.2rem;
    font-weight: 800;
}

.athlete-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.athlete-photo-help {
    font-size: .78rem;
    color: #78828c;
}


/* =========================================================
   FORM PANELS
   ========================================================= */

.athlete-manager-panel {
    padding: 22px;
    border: 1px solid #dde2e7;
    border-radius: 16px;
    background: #fff;
}

.athlete-manager-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}


/* =========================================================
   SPORTS
   ========================================================= */

.athlete-sport-option {
    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 58px;
    padding: 14px 16px;

    border: 1px solid #dce1e6;
    border-radius: 12px;

    cursor: pointer;
}

.athlete-sport-option:hover {
    background: #f8f9fa;
}


/* =========================================================
   ROSTERS
   ========================================================= */

.athlete-roster-card {
    padding: 18px;

    border: 1px solid #dde2e7;
    border-radius: 14px;

    background: #fff;
}

.athlete-roster-card + .athlete-roster-card {
    margin-top: 12px;
}

.athlete-roster-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;

    margin-top: 4px;

    font-size: .82rem;
    color: #727c86;
}


/* =========================================================
   K1 QUALIFICATION
   ========================================================= */

.athlete-k1-intro {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding: 18px;
    margin-bottom: 20px;

    border-radius: 14px;
    background: #f7f8fa;
}

.athlete-k1-intro i {
    font-size: 1.8rem;
}

.athlete-k1-standard {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding: 15px 16px;
    margin-bottom: 10px;

    border: 1px solid #dde2e7;
    border-radius: 12px;

    cursor: pointer;
}

.athlete-k1-standard:hover {
    background: #f9fafb;
}

.athlete-k1-standard .form-check-input {
    margin-top: 4px;
    flex: 0 0 auto;
}

.athlete-k1-standard-copy {
    min-width: 0;
}

.athlete-k1-standard-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;

    margin-bottom: 3px;
}

.athlete-k1-standard-title strong {
    font-size: .95rem;
}

.athlete-k1-standard-copy small {
    display: block;
    color: #707a84;
    line-height: 1.45;
}

@media (max-width: 767.98px) {
    .athlete-manager-content {
        padding: 18px;
    }

    .athlete-photo-preview {
        width: 130px;
        height: 130px;
    }
}

/* =========================================================
   FUNDRAISING — HEAD COACH TEAM SCOPE
========================================================= */

.portal-page-head > div:first-child > p {
    margin-bottom: 0;
}

.fundraising-team-scope {
    margin-top: 1.25rem !important;
    margin-bottom: 0.25rem;
}

.portal-page-head > .d-flex {
    padding-top: 0.75rem;
}

.fundraising-team-scope {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;

    min-height: 34px;

    border: 1px solid #d9dde3;
    border-radius: 999px;

    background: #fff;

    overflow: hidden;
}

.fundraising-team-scope-label {
    display: inline-flex;
    align-items: center;

    align-self: stretch;

    padding: 0 12px;

    background: #eef1f4;

    color: #68717c;

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.fundraising-team-scope-team {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 6px 12px;

    color: #1f2937;

    font-size: 0.84rem;
    font-weight: 700;
}

.fundraising-team-scope-team i {
    color: #1f477f;
    font-size: 0.95rem;
}

.fundraising-team-scope-role {
    display: inline-flex;
    align-items: center;

    margin-right: 5px;
    padding: 3px 9px;

    border-radius: 999px;

    background: #1f477f;
    color: #fff;

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}


/* Multiple teams */

.fundraising-team-scope-team + .fundraising-team-scope-team {
    border-left: 1px solid #e2e5e9;
}


/* Mobile */

@media (max-width: 575.98px) {

    .fundraising-team-scope {
        border-radius: 12px;
    }

    .fundraising-team-scope-label {
        padding: 7px 10px;
    }

    .fundraising-team-scope-team {
        padding: 7px 10px;
    }

}

/* =========================================================
   CAMPAIGN ACTION BUTTONS
========================================================= */

.campaign-actions {
    align-items: stretch;
}

.campaign-actions form {
    display: flex !important;
    margin: 0;
}

.campaign-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;

    min-height: 42px;
    padding: 0.55rem 0.9rem;

    border-radius: 7px;

    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;

    white-space: nowrap;
}

.campaign-action-btn i {
    margin: 0 !important;
    font-size: 1rem;
    line-height: 1;
}

/* ==========================================================================
   Staff & Access
   ========================================================================== */
.staff-stat{display:flex;align-items:center;gap:14px;min-height:104px}.staff-stat>div{display:flex;flex-direction:column}.staff-stat small{color:#6c757d;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em}.staff-stat strong{font-size:1.65rem;line-height:1.15}.staff-person-cell{display:flex;align-items:center;gap:12px;min-width:250px}.staff-person-cell>div{display:flex;flex-direction:column;min-width:0}.staff-person-cell a{font-size:.88rem;text-decoration:none}.staff-person-cell small{color:#6c757d}.staff-avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;flex:0 0 44px;background:#f0f1f3;border:1px solid #ddd;font-weight:800;overflow:hidden}.staff-avatar img{width:100%;height:100%;object-fit:cover}.staff-inherited-badge{background:#eef3ff;color:#31518f;border:1px solid #d7e2ff}.staff-team-list{display:flex;flex-direction:column;gap:3px;min-width:220px}.staff-team-list span{font-size:.84rem}.staff-team-list small{color:#6c757d;font-weight:700}.staff-access-table .dropdown form{margin:0}.staff-access-table .dropdown form button{width:100%;text-align:left;background:none;border:0}.staff-access-table th:last-child,.staff-access-table td:last-child{white-space:nowrap}@media(max-width:767.98px){.staff-access-head .btn{width:100%;margin-top:8px}.staff-stat{min-height:90px}.staff-access-table{min-width:980px}}
