: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));
    }
}

/* User preference: tighter page-header spacing. */
.portal-page-head { margin-bottom: 10px; }
