/* OPS Sport Academy — shared admin & coach portal design system */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green: #01cc03;
    --accent: #01cc03;
    --green-dim: rgba(1, 204, 3, 0.12);
    --accent-dim: rgba(1, 204, 3, 0.12);
    --bg: #090909;
    --panel: #0e0e10;
    --panel-2: #141416;
    --surface: #0e0e10;
    --line: #1d1d20;
    --border: #1d1d20;
    --muted: #8a8a90;
    --text: #fff;
    --danger: #f87171;
    --warn: #fbbf24;
    --info: #4aa8ff;
    --sidebar-w: 272px;
    --sidebar-width: var(--sidebar-w);
    --header-height: 64px;
    --content-max: 1400px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 16px;
    --radius-xl: 18px;
    --transition-fast: 0.15s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--green); color: #04130a; }

/* —— Sidebar —— */
aside {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--panel);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 20;
}

.brand {
    padding: 22px 20px;
    border-bottom: 1px solid var(--line);
}

.brand-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    display: block;
    max-height: 40px;
    width: auto;
    max-width: 100%;
}

.brand-fallback {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-fallback span { color: var(--green); }

.brand small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.06em;
    margin-top: 8px;
    text-transform: uppercase;
}

.nav-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px 16px;
}

nav.sidebar-nav {
    flex: 1;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-group { margin-bottom: 6px; }

.nav-group summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 12px 6px;
    border-radius: 8px;
    user-select: none;
}

.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover { background: #16161a; }

.nav-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.nav-group.is-active .nav-group-title { color: var(--green); }

.nav-chevron {
    display: inline-flex;
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.nav-chevron svg { width: 14px; height: 14px; }
details[open] > summary .nav-chevron { transform: rotate(180deg); }

.nav-group-hint {
    font-size: 11px;
    color: #6b6b72;
    padding: 0 12px 8px;
    line-height: 1.4;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.nav-group-items,
nav.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-group-items a,
nav.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: #c8c8cc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

nav.sidebar-nav { gap: 4px; padding: 12px 10px; }

.nav-group-items a:hover,
nav.sidebar-nav a:hover { background: #16161a; color: #fff; }

.nav-group-items a.active,
nav.sidebar-nav a.active {
    background: var(--green-dim);
    color: var(--green);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--green);
}

.nav-group-items a svg,
nav.sidebar-nav a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.75;
}

.nav-group-items a:hover svg,
nav.sidebar-nav a:hover svg { opacity: 1; }

.nav-group-items a.active svg,
nav.sidebar-nav a.active svg { opacity: 1; }

.side-foot {
    padding: 14px;
    border-top: 1px solid var(--line);
}

.side-foot .who {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
    padding: 0 4px;
}

.side-foot .who b {
    color: #fff;
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.side-foot .roles {
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.4;
}

.side-portal-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    color: #c8c8cc;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: border-color 0.15s, color 0.15s;
}

.side-portal-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.side-portal-link:hover { border-color: var(--green); color: var(--green); }

.logout {
    width: 100%;
    background: transparent;
    border: 1px solid var(--line);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: border-color 0.15s, color 0.15s;
}

.logout:hover { border-color: var(--green); color: var(--green); }

/* —— Main shell —— */
main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.main-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: var(--header-height);
    padding: 10px 32px;
    border-bottom: 1px solid var(--line);
    background: rgba(14, 14, 16, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar-end {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.topbar-spacer { flex: 1; }

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
}

.topbar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--green-dim);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.topbar-user-name { color: #fff; font-weight: 600; }

.topbar-search {
    flex: 1;
    max-width: 520px;
    position: relative;
    margin: 0;
}

.topbar-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--muted);
    pointer-events: none;
}

.topbar-search-input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.topbar-search-input::placeholder { color: var(--muted); }

.topbar-search-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(1, 204, 3, 0.12);
}

.topbar-search-input:focus-visible {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(1, 204, 3, 0.12);
}

.notif-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    color: #c8c8cc;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.notif-bell:hover { border-color: var(--green); color: var(--green); }

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--green);
    color: #04130a;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.notif-center {
    position: relative;
}

.notif-center > summary {
    list-style: none;
    cursor: pointer;
}

.notif-center > summary::-webkit-details-marker {
    display: none;
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    z-index: 200;
    overflow: hidden;
}

.notif-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}

.notif-dropdown-item:hover {
    background: rgba(1, 204, 3, 0.08);
    color: var(--accent);
}

.notif-dropdown-item .notif-badge {
    position: static;
}

.notif-dropdown-footer {
    display: block;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
}

/* —— User menu (topbar avatar dropdown) —— */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    margin: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
}

.user-menu-trigger:hover,
.user-menu.is-open .user-menu-trigger {
    border-color: #2a2a2e;
}

.user-menu.is-open .user-menu-trigger {
    border-color: rgba(1, 204, 3, 0.35);
}

.user-menu-trigger:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    z-index: 200;
    overflow: hidden;
}

.user-menu-dropdown[hidden] {
    display: none;
}

.user-menu-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.user-menu-header b {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.user-menu-email {
    display: block;
    font-size: 12px;
    color: var(--muted);
    word-break: break-all;
}

.user-menu-role {
    margin-top: 6px;
    font-size: 11px;
    color: var(--green);
    font-weight: 600;
    line-height: 1.4;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.15s, color 0.15s;
}

.user-menu-item:hover,
.user-menu-item:focus-visible {
    background: rgba(1, 204, 3, 0.08);
    color: var(--accent);
    outline: none;
}

.user-menu-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.85;
}

.user-menu-logout-form {
    margin: 0;
    border-top: 1px solid var(--border);
}

.user-menu-logout {
    color: #c8c8cc;
}

.user-menu-logout:hover,
.user-menu-logout:focus-visible {
    color: var(--accent);
}

.cal-event-view-link {
    display: block;
    margin-top: 6px;
    font-size: 11px;
}

.nav-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--green-dim);
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.sidebar-nav a,
.nav-group-items a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s;
}

.content {
    padding: 24px 32px 48px;
    max-width: var(--content-max);
    width: 100%;
}

/* —— Page header —— */
.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: -8px -8px 24px;
    padding: 12px 8px 20px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: var(--header-height);
    z-index: 8;
    background: linear-gradient(to bottom, var(--bg) 78%, rgba(9, 9, 9, 0.88));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.page-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 6px 0 0;
}

.page-subtitle {
    color: var(--muted);
    font-size: 14px;
    margin-top: 6px;
    max-width: 640px;
}

.breadcrumbs {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs .sep { opacity: 0.5; }
.breadcrumbs .current { color: #fff; }

.page-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* —— Flash messages —— */
.flash,
.err {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.flash {
    background: #08310a;
    color: var(--green);
    border: 1px solid #15521a;
}

.err {
    background: #311010;
    color: var(--danger);
    border: 1px solid #5b2626;
}

.flash-icon,
.err-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* —— Buttons —— */
.btn {
    background: var(--green);
    color: #04130a;
    border: 0;
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: filter 0.15s;
}

.btn:hover { filter: brightness(1.08); }

.btn:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
    filter: brightness(1.08);
}

.btn:active { transform: scale(0.98); }

.btn-sm { padding: 7px 14px; font-size: 12px; min-height: 34px; }

.btn-ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: #fff;
}

.btn-ghost:hover { border-color: var(--green); color: var(--green); filter: none; }

.btn-danger {
    background: transparent;
    border: 1px solid #5b2626;
    color: var(--danger);
}

.btn-danger:hover { filter: none; border-color: var(--danger); }

/* —— Stats —— */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.stat {
    background: linear-gradient(145deg, var(--panel) 0%, var(--panel-2) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    position: relative;
    transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat:hover {
    border-color: #2a2a2e;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.stat.green {
    border-color: rgba(1, 204, 3, 0.22);
    background: linear-gradient(145deg, #0a120c 0%, var(--panel) 55%, var(--panel-2) 100%);
}

.stat.green:hover { border-color: rgba(1, 204, 3, 0.4); }

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--green-dim);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.stat-icon svg { width: 18px; height: 18px; }

.stat b {
    font-size: 28px;
    display: block;
    line-height: 1.1;
    font-weight: 700;
}

.stat span {
    color: var(--muted);
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.stat.green b { color: var(--green); }

h2.sec {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin: 32px 0 14px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    margin-bottom: 20px;
}

.panel h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
}

.panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-head h3 { margin-bottom: 0; }

/* —— Dashboard —— */
.welcome-banner {
    background: linear-gradient(135deg, #0e0e10 0%, #101814 45%, #0c120e 100%);
    border: 1px solid var(--line);
    border-left: 3px solid var(--green);
    border-radius: var(--radius-xl);
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.welcome-banner h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.welcome-banner p { color: var(--muted); font-size: 14px; max-width: 560px; }

.dash-section { margin-bottom: 32px; }

.dash-section-head { margin-bottom: 14px; }

.dash-section-head h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.dash-section-head p { font-size: 13px; color: var(--muted); }

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.dash-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.dash-card:hover {
    border-color: rgba(1, 204, 3, 0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.dash-section--attention {
    padding: 20px 22px 24px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, rgba(1, 204, 3, 0.05) 0%, transparent 55%);
    border: 1px solid rgba(1, 204, 3, 0.14);
    border-radius: var(--radius-xl);
}

.dash-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--green-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
}

.dash-card-icon svg { width: 18px; height: 18px; }

.dash-card h4 { font-size: 15px; font-weight: 600; }

.dash-card p {
    font-size: 13px;
    color: var(--muted);
    flex: 1;
    line-height: 1.45;
}

.dash-card .btn { align-self: flex-start; margin-top: 4px; }

/* —— Session cards (coach) —— */
.session-cards { display: flex; flex-direction: column; gap: 10px; }

.session-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: border-color 0.15s;
}

.session-card:hover { border-color: #2a2a2e; }

.session-card-main { min-width: 0; flex: 1; }

.session-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.session-card-meta {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
}

.session-card-meta svg { width: 14px; height: 14px; opacity: 0.7; }

.session-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* —— Roster cards (attendance) —— */
.roster-grid {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.roster-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.roster-name { font-weight: 600; font-size: 14px; }

.form-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* —— Coach enterprise —— */
.session-card-enrollment {
    font-size: 12px;
    color: var(--green);
    margin-top: 6px;
    font-weight: 600;
}

.week-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.week-timeline-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.week-timeline-date {
    width: 52px;
    text-align: center;
    flex-shrink: 0;
}

.week-timeline-day {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.06em;
}

.week-timeline-num {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--green);
}

.week-timeline-body { flex: 1; min-width: 0; }

.group-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.group-card {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.15s;
}

.group-card:hover { border-color: #2a2a2e; }

.group-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.group-card-head h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.group-card-meta { font-size: 13px; line-height: 1.45; }

.group-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.filter-bar { margin-bottom: 20px; }

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.filter-search { grid-column: 1 / -1; }

@media (min-width: 700px) {
    .filter-search { grid-column: span 2; }
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.session-detail-header { margin-bottom: 20px; }

.session-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px 24px;
}

.session-detail-value {
    font-size: 14px;
    font-weight: 600;
    margin-top: 4px;
}

.roster-grid-premium { gap: 12px; }

.roster-card-premium {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

@media (min-width: 640px) {
    .roster-card-premium {
        flex-direction: row;
        align-items: center;
    }
}

.roster-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.roster-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--green-dim);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.roster-avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 11px;
}

.roster-table-athlete {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.status-pill {
    position: relative;
    cursor: pointer;
}

.status-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.status-pill span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.status-pill input:checked + span,
.status-pill input:focus-visible + span {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.status-pill-present input:checked + span { background: var(--green-dim); border-color: var(--green); color: var(--green); }
.status-pill-absent input:checked + span { background: #3a1010; border-color: var(--danger); color: var(--danger); }
.status-pill-late input:checked + span { background: rgba(251, 191, 36, 0.15); border-color: var(--warn); color: var(--warn); }
.status-pill-excused input:checked + span { background: #2a2630; border-color: #6b6b72; color: #c8c8cc; }

.attendance-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}

.summary-pill b { color: #fff; font-size: 14px; }

.summary-present b { color: var(--green); }
.summary-absent b { color: var(--danger); }
.summary-late b { color: var(--warn); }

.attendance-sticky-bar {
    position: sticky;
    bottom: 0;
    z-index: 15;
    margin-top: 20px;
    padding: 12px 0 4px;
    background: linear-gradient(to top, var(--bg) 70%, transparent);
}

.attendance-sticky-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.attendance-sticky-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: auto;
}

.sidebar-toggle {
    display: none;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 19;
}

body.coach-portal.sidebar-open .sidebar-backdrop,
body.admin-portal.sidebar-open .sidebar-backdrop { display: block; }

@media (max-width: 900px) {
    body.coach-portal,
    body.admin-portal { flex-direction: column; }

    body.coach-portal .sidebar-toggle,
    body.admin-portal .sidebar-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        top: 12px;
        left: 12px;
        z-index: 30;
        padding: 10px 14px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--line);
        background: var(--panel);
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        cursor: pointer;
    }

    body.coach-portal .sidebar-toggle svg,
    body.admin-portal .sidebar-toggle svg { width: 16px; height: 16px; }

    body.coach-portal aside,
    body.admin-portal aside {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: min(280px, 85vw);
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        z-index: 25;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45);
    }

    body.coach-portal.sidebar-open aside,
    body.admin-portal.sidebar-open aside { transform: translateX(0); }

    body.coach-portal main,
    body.admin-portal main { width: 100%; }

    body.coach-portal .main-topbar,
    body.admin-portal .main-topbar { padding-left: 88px; }

    body.coach-portal .content { padding: 20px 16px 100px; }

    body.admin-portal .content { padding: 20px 16px 40px; }

    body.coach-portal .attendance-sticky-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        padding: 0;
        background: var(--panel);
        border-top: 1px solid var(--line);
    }

    body.coach-portal .attendance-sticky-inner {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

/* —— Help & empty —— */
.help-callout {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    background: #101820;
    border: 1px solid #1a2a38;
    border-radius: 12px;
    margin-bottom: 22px;
    font-size: 13px;
    line-height: 1.5;
}

.help-callout-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green-dim);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.help-callout-icon svg { width: 16px; height: 16px; }

.help-callout-body strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.help-callout-body p { color: var(--muted); margin: 0; }

.empty-state,
.empty {
    padding: 40px 24px;
    text-align: center;
    background: var(--panel);
    border: 1px dashed var(--line);
    border-radius: var(--radius-md);
}

.empty h4,
.empty-state-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
}

.empty-state-message,
.empty .muted {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green-dim);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.empty-state-icon svg { width: 22px; height: 22px; }

/* —— CMS / modules —— */
.cms-tab-intro {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 18px;
}

.cms-tab-intro h2 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.cms-tab-intro p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
    max-width: 720px;
}

.module-subnav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.module-subnav-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.module-subnav .btn-sm {
    border-radius: 8px;
    min-height: 34px;
}

.module-subnav .btn-sm:not(.btn-ghost) {
    box-shadow: 0 0 0 1px rgba(1, 204, 3, 0.15);
}

.module-subnav-intro { margin-top: 14px; }

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 6px;
}

.field-help {
    display: block;
    font-size: 11px;
    color: #6b6b72;
    line-height: 1.4;
    margin-top: 4px;
}

.status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 18px;
}

.status-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* —— Bulk actions —— */
.bulk-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: linear-gradient(90deg, rgba(1, 204, 3, 0.07) 0%, var(--panel) 45%);
    border: 1px solid rgba(1, 204, 3, 0.18);
    border-radius: var(--radius-md);
}

.bulk-bar .muted { font-size: 13px; }

/* —— Collapsible panels —— */
.collapsible-panel { margin-bottom: 20px; }

.collapsible-panel summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.collapsible-panel summary::-webkit-details-marker { display: none; }

.collapsible-panel summary::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.collapsible-panel[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }

.collapsible-panel .collapsible-body { margin-top: 16px; }

/* —— Tables —— */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
}

.table-wrap table {
    min-width: 640px;
    border: none;
    border-radius: 0;
    margin: 0;
}

.table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 1px 0 var(--line);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}

table input[type="checkbox"] { accent-color: var(--green); width: 16px; height: 16px; cursor: pointer; }

th, td {
    text-align: left;
    padding: 13px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    background: var(--panel-2);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.018); }
tbody tr:hover td { background: #16161a; }
tbody tr:last-child td { border-bottom: 0; }

.row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
}

.row-actions .action-sep {
    color: #3a3a40;
    font-size: 11px;
    user-select: none;
    line-height: 1;
}

.link-accent,
a.link-accent {
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}

.link-accent:hover { text-decoration: underline; }

.text-accent { color: var(--green); font-weight: 600; }

.muted { color: #6b6b72; }

.child + .child {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #2a2a2e;
}

/* —— Badges —— */
.pill,
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    margin: 2px 2px 2px 0;
}

.pill.admin { background: #08310a; color: var(--green); }

.role-admin  { background: #08310a; color: var(--green); }
.role-coach  { background: #10243a; color: var(--info); }
.role-member { background: #2a2630; color: #c9a6ff; }
.st-on  { background: #08310a; color: var(--green); }
.st-off { background: #2a2630; color: #9aa0a6; }
.st-danger { background: #3a1010; color: var(--danger); }
.badge-scheduled { background: #10243a; color: var(--info); }
.badge-present { background: var(--green-dim); color: var(--green); }
.badge-absent { background: #3a1010; color: var(--danger); }
.badge-late { background: rgba(251, 191, 36, 0.15); color: var(--warn); }
.badge-excused { background: #2a2630; color: #9aa0a6; }

tr.inactive td { opacity: .5; }

/* —— Finance charts —— */
.finance-bar-chart { margin-bottom: 8px; }

.finance-bars {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    align-items: end;
    min-height: 180px;
    padding-top: 8px;
}

.finance-bar-col { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.finance-bar-value { font-size: 10px; color: var(--muted); text-align: center; white-space: nowrap; }

.finance-bar-track {
    width: 100%;
    max-width: 48px;
    height: 120px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.finance-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--green), #019902);
    border-radius: 6px 6px 0 0;
    min-height: 4px;
}

.finance-bar-label { font-size: 11px; color: var(--muted); text-align: center; }

/* —— Forms —— */
select,
.field {
    background: var(--bg);
    border: 1px solid #383838;
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
}

select {
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
}

.field {
    padding: 10px 14px;
    width: 100%;
}

.field-sm { max-width: 140px; }
.field:focus,
select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(1, 204, 3, 0.12); }

.field.is-invalid { border-color: var(--danger); }

form.inline { display: inline; }

.userform {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    align-items: start;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 22px;
}

.role-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.role-grid-compact { max-width: 280px; }

.role-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
}

.role-check input { accent-color: var(--green); }

.user-edit-form { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

.perm-details summary { cursor: pointer; color: var(--green); font-size: 12px; }

.perm-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 160px;
    overflow-y: auto;
}

.perm-list code,
td code {
    font-size: 11px;
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
    color: #b8bcc4;
}

.audit-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
}

.audit-filters .field { width: auto; min-width: 180px; }

.audit-json {
    font-size: 11px;
    background: var(--bg);
    padding: 10px;
    border-radius: 8px;
    margin-top: 8px;
    max-width: 360px;
    overflow-x: auto;
    color: #b8bcc4;
}

.pagination {
    margin-top: 20px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.pagination a,
.pagination span {
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--line);
    color: var(--muted);
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.pagination a:hover { border-color: var(--green); color: var(--green); }
.pagination span.current { background: var(--green); color: #04130a; border-color: var(--green); }

.chart-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-top: 8px; }
.chart-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
canvas { width: 100% !important; }

/* —— Login pages —— */
body.portal-login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 100vh;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 55% at 50% -15%, rgba(1, 204, 3, 0.1), transparent 70%),
        radial-gradient(ellipse 50% 35% at 50% 110%, rgba(1, 204, 3, 0.05), transparent 65%);
}

.login-shell {
    width: 100%;
    max-width: 420px;
}

/* Fallback when .login-card is a direct child (e.g. 2FA pages) */
body.portal-login > .login-card {
    width: 100%;
    max-width: 420px;
}

.login-card {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 48px 40px 40px;
    box-shadow: var(--shadow-md);
}

.login-brand {
    text-align: center;
    margin-bottom: 32px;
}

.login-brand .brand-logo {
    display: block;
    margin: 0 auto;
    max-height: 48px;
    width: auto;
    max-width: 100%;
}

.login-card .brand-link { margin-bottom: 26px; text-align: center; }
.login-card .brand-logo { margin: 0 auto; }
.login-card .brand-fallback,
.login-brand .brand-fallback {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
}

.login-card .brand-fallback span,
.login-brand .brand-fallback span { color: var(--green); }

.login-card .sub { color: var(--muted); font-size: 13px; margin: 8px 0 0; text-align: center; letter-spacing: 0.04em; }

.login-fields { margin-top: 4px; }

.login-card label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 18px 0 8px;
    font-weight: 600;
}

.login-card label:first-child { margin-top: 0; }

.login-card input {
    display: block;
    width: 100%;
    min-height: 48px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.4;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.login-card input::placeholder { color: #5a5a60; }

.login-card input:focus {
    border-color: var(--green);
    background: var(--bg);
    box-shadow: 0 0 0 3px var(--green-dim);
}

.login-card input:-webkit-autofill,
.login-card input:-webkit-autofill:hover,
.login-card input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px var(--panel-2) inset;
    box-shadow: 0 0 0 1000px var(--panel-2) inset;
    border: 1px solid var(--border);
    transition: background-color 9999s ease-out 0s;
}

.login-forgot {
    margin: 10px 0 0;
    text-align: right;
}

.login-forgot a {
    color: var(--green);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.login-forgot a:hover { text-decoration: underline; }

.login-card button[type="submit"] {
    width: 100%;
    min-height: 48px;
    margin-top: 28px;
    background: var(--green);
    color: #04130a;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: filter var(--transition-fast), transform var(--transition-fast);
}

.login-card button[type="submit"]:hover { filter: brightness(1.08); }
.login-card button[type="submit"]:active { transform: scale(0.99); }

.login-card .err { margin-top: 0; margin-bottom: 20px; }

.login-alt { margin-top: 18px; text-align: center; font-size: 12px; color: var(--muted); }
.login-alt a { color: var(--green); text-decoration: none; }
.login-alt a:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .login-card { padding: 36px 24px 32px; }
    .login-brand { margin-bottom: 28px; }
}

/* —— Scheduling calendar —— */
.cal-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.cal-toolbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cal-toolbar-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 140px;
}

.cal-toolbar-title strong { font-size: 17px; font-weight: 700; }
.cal-toolbar-title .muted { font-size: 12px; }

.cal-nav-btn { min-width: 36px; }

.cal-toolbar-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cal-view-toggle { display: flex; gap: 4px; }

.cal-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.cal-legend-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    flex-shrink: 0;
}

.cal-legend-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cal-legend-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    background: var(--panel-2);
    border: 1px solid var(--line);
    transition: border-color 0.15s, background 0.15s;
}

.cal-legend-chip:hover {
    border-color: var(--cal-accent, var(--green));
    color: var(--green);
}

.cal-legend-chip.is-active {
    border-color: var(--cal-accent, var(--green));
    background: color-mix(in srgb, var(--cal-accent, var(--green)) 14%, transparent);
}

.cal-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cal-accent, var(--muted));
    flex-shrink: 0;
}

.cal-grid-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding: 0 4px 8px;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    min-width: 640px;
}

.cal-head {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-align: center;
    padding: 8px 4px;
}

.cal-day {
    min-height: 130px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 8px;
    display: flex;
    flex-direction: column;
}

.cal-day.out { opacity: 0.38; }
.cal-day.today { border-color: var(--green); box-shadow: 0 0 0 1px rgba(1, 204, 3, 0.15); }

.cal-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.cal-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.cal-day.today .cal-num { color: var(--green); }

.cal-day-count {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    background: var(--panel-2);
    border-radius: 999px;
    padding: 1px 6px;
}

.cal-day-events {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    max-height: 220px;
    min-height: 0;
}

.cal-event-card {
    --cal-accent: var(--green);
    position: relative;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-left: 3px solid var(--cal-accent);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    line-height: 1.35;
}

a.cal-event-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.cal-event-card:has(.cal-event-link):hover {
    border-color: var(--green);
    cursor: pointer;
}

.cal-event-card--compact { padding: 5px 7px; }

.cal-event-card--cancelled {
    opacity: 0.55;
    text-decoration: line-through;
    text-decoration-color: var(--muted);
}

.cal-event-loc {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 2px;
}

.cal-event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cal-accent);
    flex-shrink: 0;
    margin-top: 5px;
}

.cal-event-loc-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    word-break: break-word;
}

.cal-event-card--compact .cal-event-loc-name { font-size: 10px; }

.cal-event-time {
    font-size: 11px;
    font-weight: 700;
    color: var(--cal-accent);
    font-variant-numeric: tabular-nums;
}

.cal-event-card--compact .cal-event-time { font-size: 10px; }

.cal-event-group {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    margin-top: 1px;
}

.cal-event-card--compact .cal-event-group {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-event-card--dragging {
    opacity: 0.55;
    cursor: grabbing;
}

.cal-event-card[draggable="true"] {
    cursor: grab;
}

.cal-day--drop-target {
    outline: 2px dashed var(--green);
    outline-offset: -2px;
    background: rgba(1, 204, 3, 0.08);
}

.session-card-roster {
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.4;
}

.cal-event-program {
    font-size: 10px;
    color: var(--muted);
}

.cal-event-address {
    font-size: 10px;
    color: var(--muted);
    margin-top: 2px;
}

.cal-event-coach {
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
}

.cal-event-status {
    margin-top: 6px;
    font-size: 10px;
}

.cal-week {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cal-week-day {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.cal-week-day.today { border-color: var(--green); }

.cal-week-day-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.cal-week-day-name {
    font-size: 15px;
    font-weight: 700;
}

.cal-week-day.today .cal-week-day-name { color: var(--green); }

.cal-week-day-date { font-size: 13px; color: var(--muted); }

.cal-week-day-meta { font-size: 12px; margin-left: auto; }

.cal-week-day .cal-event-card { margin-bottom: 8px; }
.cal-week-day .cal-event-card:last-child { margin-bottom: 0; }

.cal-week-empty {
    font-size: 13px;
    padding: 8px 0;
}

@media (max-width: 1100px) {
    .chart-grid, .chart-row2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .cal-toolbar { flex-direction: column; }
    .cal-toolbar-filters { width: 100%; }
    .cal-toolbar-filters .field { flex: 1; min-width: 120px; }
    .cal-legend { flex-direction: column; align-items: flex-start; }
    .cal-legend-chips { width: 100%; }
    .cal-grid { min-width: 560px; }
    .cal-day { min-height: 100px; }
    .cal-day-events { max-height: 160px; }
}

@media (max-width: 900px) {
    body.portal-login .content { padding: 20px 16px 40px; }
    body.portal-login .main-topbar { padding: 12px 16px; }
}

.export-password-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.export-password-modal[hidden] { display: none; }

.export-password-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.export-password-dialog {
    position: relative;
    width: min(420px, 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    padding: 24px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.export-password-dialog h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.export-password-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.export-password-error {
    margin: 10px 0 0;
    font-size: 13px;
    color: #f87171;
}

/* —— Admin UX utilities (v2) —— */
.page-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.section-head .sec { margin: 0; }

.search-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
    max-width: 560px;
}

.search-bar--wide { max-width: none; }

.search-bar .field { flex: 1; min-width: 180px; }

.search-bar .btn-ghost.push-end,
.audit-filters .btn-ghost.push-end {
    margin-left: auto;
}

.inline-form-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.field-inline-sm { width: 100px; min-width: 80px; }
.field-inline-md { min-width: 140px; width: auto; flex: 1; }

.field-group { margin-bottom: 14px; }

.field-group label,
.modal-field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 6px;
}

.modal-field-help {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.quick-actions .btn-sm { min-height: 36px; }

.notif-bell:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.notif-bell.has-alert {
    border-color: rgba(1, 204, 3, 0.35);
    color: var(--green);
}

.topbar-user {
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg);
    transition: border-color var(--transition-fast);
}

.topbar-user:hover { border-color: #2a2a2e; }

.panel .table-wrap {
    margin: 0 -4px;
    border: none;
    border-radius: var(--radius-sm);
}

.panel .table-wrap table { margin-bottom: 0; }

.dash-card h4 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* —— Session 6 UI utilities —— */
.sec--flush { margin-top: 0; }

.section-spaced { margin-bottom: 16px; }

.form-actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 14px;
}

.panel-header-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}

.text-danger { color: var(--danger); }

.row-highlight td { background: rgba(1, 204, 3, 0.08) !important; }

.userform--inline {
    grid-template-columns: var(--userform-cols, repeat(auto-fit, minmax(140px, 1fr)));
}

.section-head .push-end,
h2.sec .push-end { margin-left: auto; }

h2.sec.section-head-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cms-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.cms-tabs a {
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--line);
    color: var(--muted);
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.cms-tabs a.active {
    background: var(--green);
    color: #04130a;
    border-color: var(--green);
}

.cms-tabs a:hover:not(.active) {
    border-color: var(--green);
    color: #fff;
}

.cms-head {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 22px;
}

.cms-head p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    max-width: 720px;
    margin: 0;
}

.cms-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.cms-section {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
}

.cms-section-head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: #141416;
}

.cms-section-head h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.cms-section-head p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.cms-section-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cms-section .cms-section { background: #121214; }

.cms-accordion {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--panel);
}

.cms-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    background: #141416;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.cms-accordion summary::-webkit-details-marker { display: none; }
.cms-accordion summary:hover { background: #18181c; }

.cms-accordion-title h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.cms-accordion-title p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

.cms-accordion-chevron {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.cms-accordion[open] .cms-accordion-chevron {
    transform: rotate(180deg);
    display: inline-block;
}

.cms-accordion-body {
    padding: 16px 18px;
    border-top: 1px solid var(--line);
}

.cms-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cms-field > label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.cms-field textarea {
    resize: vertical;
    width: 100%;
    font-family: inherit;
    line-height: 1.5;
}

.cms-field .help {
    font-size: 11px;
    color: #6b6b72;
    line-height: 1.4;
}

.cms-media {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cms-upload {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.cms-upload input[type=file] {
    max-width: 280px;
    font-size: 12px;
}

.cms-preview-link {
    font-size: 12px;
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}

.cms-preview-link:hover { text-decoration: underline; }

.cms-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cms-sticky-bar {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin-top: 24px;
    padding: 14px 18px;
    background: rgba(9, 9, 9, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    backdrop-filter: blur(8px);
}

.cms-empty {
    padding: 28px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.cms-table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cms-order-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.cms-order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.cms-order-item .handle {
    cursor: grab;
    color: var(--muted);
    font-size: 16px;
    user-select: none;
}

.cms-badge-draft { background: #2a2630; color: #c9a6ff; }
.cms-badge-live { background: #08310a; color: var(--green); }
.cms-badge-nav { background: #10243a; color: #4aa8ff; }
.cms-badge-hidden { background: #2a2630; color: #9aa0a6; }

.kiosk-form label { display: block; margin-bottom: 16px; }
.kiosk-form .field { margin-top: 6px; }

.kiosk-panel {
    max-width: 520px;
    margin: 0 auto;
}

.kiosk-field-lg {
    font-size: 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kiosk-field-md { font-size: 18px; }

.kiosk-submit {
    width: 100%;
    margin-top: 8px;
    font-size: 16px;
    padding: 14px;
}

.kiosk-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
}

@media (max-width: 900px) {
    .cms-grid-2 { grid-template-columns: 1fr; }

    body.admin-portal .main-topbar {
        flex-wrap: wrap;
        padding: 10px 16px 10px 88px;
        gap: 10px;
    }

    body.admin-portal .topbar-search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
    }

    body.admin-portal .topbar-end { margin-left: auto; }

    body.admin-portal .btn,
    body.admin-portal .btn-sm,
    body.admin-portal .notif-bell {
        min-height: 44px;
        min-width: 44px;
    }

    body.admin-portal .topbar-search-input {
        min-height: 44px;
    }

    body.admin-portal .page-header {
        top: calc(var(--header-height) + 52px);
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    body.admin-portal .sidebar-toggle {
        min-height: 44px;
        min-width: 44px;
    }
}

/* —— Schedule sync explainer (admin) —— */
.schedule-sync-callout {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(1, 204, 3, 0.06) 0%, var(--panel) 55%);
    border: 1px solid rgba(1, 204, 3, 0.18);
    border-radius: var(--radius-md);
}

.schedule-sync-callout--compact {
    padding: 12px 14px;
    margin-bottom: 14px;
}

.schedule-sync-callout-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--green-dim);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.schedule-sync-callout-icon svg { width: 18px; height: 18px; }

.schedule-sync-callout-body strong {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
}

.schedule-sync-steps {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.schedule-sync-steps li { margin-bottom: 4px; }

.schedule-sync-step-label {
    color: #fff;
    font-weight: 600;
}

.schedule-sync-note {
    margin: 10px 0 0;
    font-size: 12px;
}

/* —— Coach portal UX —— */
body.coach-portal .main-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
    min-height: var(--header-height);
}

body.coach-portal .topbar-date {
    font-size: 13px;
    font-weight: 500;
}

.coach-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 28px 24px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #0e0e10 0%, #101814 45%, #0c120e 100%);
    border: 1px solid var(--line);
    border-left: 3px solid var(--green);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.coach-hero-kicker {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green);
    margin-bottom: 8px;
}

.coach-hero-title {
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 8px;
}

.coach-hero-lead {
    color: var(--muted);
    font-size: 14px;
    max-width: 560px;
    line-height: 1.5;
}

.coach-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.coach-stat {
    min-width: 88px;
    padding: 14px 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    text-align: center;
}

.coach-stat b {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
    margin-bottom: 4px;
}

.coach-stat span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.coach-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.coach-quick-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.coach-quick-link:hover {
    border-color: rgba(1, 204, 3, 0.35);
    transform: translateY(-1px);
}

.coach-quick-link-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--green-dim);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.coach-quick-link-icon svg { width: 20px; height: 20px; }

.coach-quick-link strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.coach-quick-link small {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.coach-today-panel .panel-head-sub {
    font-size: 13px;
    margin-top: 4px;
}

.session-card-premium {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.session-card-premium:hover {
    border-color: rgba(1, 204, 3, 0.25);
    box-shadow: var(--shadow-sm);
}

.session-card-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 10px 8px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-align: center;
}

.session-card-time-day {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.session-card-time-start {
    font-size: 18px;
    font-weight: 700;
    color: var(--green);
    line-height: 1.1;
}

.session-card-time-end {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.coach-filter-bar .filter-grid {
    grid-template-columns: auto 1fr auto 1fr;
    align-items: center;
}

.coach-form-panel { padding: 22px 24px; }

.coach-form-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.coach-form-stack .form-label { margin-bottom: -6px; }

.panel-flush { padding: 0; overflow: hidden; }

.session-detail-sub {
    font-size: 13px;
    margin-top: 6px;
}

.session-detail-badge { margin-top: 10px; }

.page-header-actions-inline {
    margin-bottom: 18px;
}

.help-callout-body a {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}

.help-callout-body a:hover { text-decoration: underline; }

.coach-notification-list { display: none; }

.coach-notification-card {
    padding: 16px 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.coach-notification-title {
    font-size: 15px;
    font-weight: 600;
    margin: 6px 0 4px;
}

.coach-notification-time { font-size: 12px; }

.coach-notification-body {
    font-size: 13px;
    line-height: 1.45;
}

.coach-table-desktop { display: block; }

@media (max-width: 640px) {
    .coach-notification-list { display: block; }
    .coach-table-desktop { display: none; }

    .session-card-premium {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .session-card-time {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        min-width: 0;
        width: fit-content;
    }

    .session-card-actions {
        width: 100%;
    }

    .session-card-actions .btn {
        flex: 1;
        justify-content: center;
        min-height: 44px;
    }

    .coach-hero {
        padding: 20px 18px;
    }

    .coach-hero-stats { width: 100%; }

    .coach-stat { flex: 1; min-width: 0; }

    .coach-quick-links { grid-template-columns: 1fr; }

    .coach-filter-bar .filter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    body.coach-portal .btn,
    body.coach-portal .btn-sm,
    body.coach-portal .sidebar-toggle,
    body.coach-portal .status-pill span {
        min-height: 44px;
    }

    body.coach-portal .status-pill span {
        display: inline-flex;
        align-items: center;
        padding-inline: 14px;
    }

    body.coach-portal .sidebar-toggle {
        min-width: 44px;
    }

    body.coach-portal .main-topbar {
        padding: 12px 16px 12px 88px;
    }

    body.coach-portal .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    body.coach-portal .page-header-actions {
        width: 100%;
    }

    body.coach-portal .page-header-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 360px) {
    body.coach-portal .content,
    body.admin-portal .content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .coach-hero-title { font-size: 20px; }

    .schedule-sync-callout {
        flex-direction: column;
    }
}

/* —— Portal polish: shared refinements —— */
body.admin-portal main,
body.coach-portal main {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.admin-portal .content,
body.coach-portal .content {
    flex: 1;
    width: 100%;
    max-width: var(--content-max);
    margin-inline: auto;
    padding: 28px 32px 48px;
}

body.admin-portal .page-header,
body.coach-portal .page-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

body.admin-portal .page-header h1,
body.coach-portal .page-header h1 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

body.admin-portal .panel,
body.coach-portal .panel,
body.admin-portal .card,
body.coach-portal .card {
    box-shadow: var(--shadow-sm);
}

body.admin-portal a:focus-visible,
body.coach-portal a:focus-visible,
body.admin-portal button:focus-visible,
body.coach-portal button:focus-visible,
body.admin-portal input:focus-visible,
body.coach-portal input:focus-visible,
body.admin-portal select:focus-visible,
body.coach-portal select:focus-visible,
body.admin-portal textarea:focus-visible,
body.coach-portal textarea:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

body.admin-portal .btn-primary,
body.coach-portal .btn-primary,
body.admin-portal .btn-accent,
body.coach-portal .btn-accent {
    background: var(--green);
    color: #04130a;
    border-color: var(--green);
    font-weight: 600;
}

body.admin-portal .btn-primary:hover,
body.coach-portal .btn-primary:hover,
body.admin-portal .btn-accent:hover,
body.coach-portal .btn-accent:hover {
    filter: brightness(1.08);
}

@media (max-width: 900px) {
    body.admin-portal .content,
    body.coach-portal .content {
        padding: 20px 16px 40px;
    }
}

