/**
 * ALB Coach Workspace — Design System v2.0.0
 *
 * Single source of truth for all workspace UI components.
 * Tab-specific CSS is enqueued only when that tab is active.
 *
 * Sections:
 *   1. Design Tokens (CSS variables)
 *   2. Shell (header, tabs, content area)
 *   3. Gate (login / access denied)
 *   4. Shared Components (cards, tables, pills, buttons, modals, notices)
 *   5. Dashboard
 *   6. Responsive
 */

/* ═══════════════════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* Brand */
    --alb-navy:          #1B365D;
    --alb-navy-dk:       #14274A;
    --alb-navy-lt:       #2A4A7F;
    --alb-red:           #B91C1C;
    --alb-red-lt:        #DC2626;
    --alb-gold:          #F59E0B;
    --alb-gold-dk:       #D97706;

    /* Neutral */
    --alb-bg:            #F8FAFC;
    --alb-bg-raised:     #FFFFFF;
    --alb-border:        #E2E8F0;
    --alb-border-strong: #CBD5E1;
    --alb-text:          #1E293B;
    --alb-text-secondary:#475569;
    --alb-muted:         #64748B;
    --alb-subtle:        #94A3B8;

    /* Semantic */
    --alb-success:       #166534;
    --alb-success-bg:    #DCFCE7;
    --alb-success-border:#BBF7D0;
    --alb-warn:          #92400E;
    --alb-warn-bg:       #FEF9C3;
    --alb-warn-border:   #FDE68A;
    --alb-danger:        #991B1B;
    --alb-danger-bg:     #FEE2E2;
    --alb-danger-border: #FECACA;
    --alb-info:          #1E3A8A;
    --alb-info-bg:       #DBEAFE;
    --alb-info-border:   #BFDBFE;

    /* Spacing */
    --alb-space-xs:      4px;
    --alb-space-sm:      8px;
    --alb-space-md:      16px;
    --alb-space-lg:      24px;
    --alb-space-xl:      32px;

    /* Radii */
    --alb-radius:        10px;
    --alb-radius-sm:     7px;
    --alb-radius-lg:     14px;
    --alb-radius-pill:   9999px;

    /* Typography */
    --alb-font:          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --alb-font-mono:     "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;
    --alb-text-xs:       0.7rem;
    --alb-text-sm:       0.8rem;
    --alb-text-base:     0.88rem;
    --alb-text-md:       0.95rem;
    --alb-text-lg:       1.15rem;
    --alb-text-xl:       1.35rem;
    --alb-text-2xl:      1.6rem;

    /* Shadows */
    --alb-shadow-sm:     0 1px 3px rgba(27,54,93,.06);
    --alb-shadow:        0 2px 8px rgba(27,54,93,.08);
    --alb-shadow-lg:     0 4px 16px rgba(27,54,93,.12);

    /* Transitions */
    --alb-transition:    0.15s ease;
}


/* ═══════════════════════════════════════════════════════════════════════════
   2. SHELL (header, tabs, content)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --alb-workspace-max-width: 1320px;
    --alb-workspace-content-padding: 24px;
}

.alb-workspace {
    font-family: var(--alb-font);
    max-width: var(--alb-workspace-max-width);
    margin: 0 auto;
    color: var(--alb-text);
    line-height: 1.5;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.alb-workspace-header {
    background: var(--alb-navy);
    border-radius: var(--alb-radius-lg) var(--alb-radius-lg) 0 0;
    padding: 12px 20px;
}
.alb-workspace-header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.alb-workspace-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.15);
}
.alb-workspace-header-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.alb-workspace-team-name {
    font-size: var(--alb-text-xl);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.alb-workspace-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 2px;
}
.alb-workspace-org {
    font-size: var(--alb-text-xs);
    color: rgba(255,255,255,.5);
}
.alb-workspace-season-pill {
    background: var(--alb-gold);
    color: #422006;
    font-size: 0.67rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: var(--alb-radius-pill);
}
.alb-workspace-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}
.alb-workspace-user-name {
    font-size: var(--alb-text-sm);
    color: rgba(255,255,255,.65);
}
.alb-workspace-logout {
    font-size: 0.78rem;
    color: rgba(255,255,255,.45);
    text-decoration: none;
}
.alb-workspace-logout:hover {
    color: #fff;
}

/* ── Tab navigation ─────────────────────────────────────────────────────── */
.alb-workspace-tabs {
    display: flex;
    flex-wrap: wrap;
    background: #F1F5F9;
    border-bottom: 1px solid var(--alb-border);
}

.alb-workspace-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 11px 18px;
    font-size: var(--alb-text-sm);
    font-weight: 700;
    color: var(--alb-muted);
    text-decoration: none !important;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color var(--alb-transition), border-color var(--alb-transition), background var(--alb-transition);
    position: relative;
}
.alb-workspace-tab:hover {
    color: var(--alb-navy);
    background: rgba(27,54,93,.04);
    text-decoration: none !important;
}
.alb-workspace-tab--active {
    color: var(--alb-navy);
    border-bottom-color: var(--alb-gold);
    background: #fff;
}
.alb-tab-icon {
    font-size: 0.9rem;
    opacity: .7;
}
.alb-workspace-tab--active .alb-tab-icon {
    opacity: 1;
}
.alb-tab-badge {
    background: var(--alb-red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: var(--alb-radius-pill);
    min-width: 16px;
    text-align: center;
    line-height: 1.4;
}

/* ── Content area ───────────────────────────────────────────────────────── */
.alb-workspace-content {
    background: #fff;
    border: 1px solid var(--alb-border);
    border-top: none;
    border-radius: 0 0 var(--alb-radius-lg) var(--alb-radius-lg);
    padding: var(--alb-workspace-content-padding);
    min-height: 320px;
    transition: opacity var(--alb-transition);
}


/* ═══════════════════════════════════════════════════════════════════════════
   3. GATE (login / access denied)
   ═══════════════════════════════════════════════════════════════════════════ */

.alb-gate-wrap {
    max-width: 440px;
    margin: 56px auto;
    padding: 0 16px;
    font-family: var(--alb-font);
}
.alb-gate-box {
    background: #fff;
    border: 1px solid var(--alb-border);
    border-radius: var(--alb-radius-lg);
    padding: 36px 32px;
    text-align: center;
    box-shadow: var(--alb-shadow);
}
.alb-gate-box h2 { color: var(--alb-navy); margin: 0 0 10px; font-size: var(--alb-text-xl); }
.alb-gate-box p { color: var(--alb-text-secondary); margin: 0 0 14px; font-size: var(--alb-text-md); }
.alb-gate-icon { font-size: 2.2rem; margin-bottom: 14px; display: block; }
.alb-gate-denied { background: #FEF2F2; border-color: var(--alb-danger-border); }
.alb-gate-denied h2 { color: var(--alb-danger); }
.alb-gate-btn {
    display: inline-block;
    background: var(--alb-navy);
    color: #fff !important;
    padding: .5rem 1.5rem;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: var(--alb-text-base);
    margin-top: 8px;
}
.alb-gate-help { margin-top: 12px !important; font-size: var(--alb-text-sm) !important; }
.alb-gate-help a { color: var(--alb-navy); }
.alb-gate-muted { color: var(--alb-subtle) !important; font-size: var(--alb-text-sm) !important; }

/* Password reset form elements */
.alb-gate-form { text-align: left; margin-top: 16px; }
.alb-gate-field { margin-bottom: 14px; }
.alb-gate-field label {
    display: block;
    font-size: var(--alb-text-sm);
    font-weight: 600;
    color: var(--alb-text);
    margin-bottom: 5px;
}
.alb-gate-field input[type="text"],
.alb-gate-field input[type="password"],
.alb-gate-field input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid var(--alb-border-strong);
    border-radius: var(--alb-radius-sm);
    font-size: var(--alb-text-base);
    font-family: var(--alb-font);
    color: var(--alb-text);
    background: #fff;
    transition: border-color var(--alb-transition);
}
.alb-gate-field input[type="text"]:focus,
.alb-gate-field input[type="password"]:focus,
.alb-gate-field input[type="email"]:focus {
    outline: none;
    border-color: var(--alb-navy);
    box-shadow: 0 0 0 3px rgba(27,54,93,.12);
}
.alb-gate-btn--full {
    display: block;
    width: 100%;
    text-align: center;
    padding: .6rem 1rem;
    border: none;
    cursor: pointer;
    font-family: var(--alb-font);
}
.alb-gate-notice {
    border-radius: var(--alb-radius-sm);
    padding: 10px 14px;
    font-size: var(--alb-text-sm);
    text-align: left;
    margin-bottom: 14px;
}
.alb-gate-notice--error {
    background: var(--alb-danger-bg);
    border: 1px solid var(--alb-danger-border);
    color: var(--alb-danger);
}
.alb-gate-notice--success {
    background: var(--alb-success-bg);
    border: 1px solid var(--alb-success-border);
    color: var(--alb-success);
}


/* ═══════════════════════════════════════════════════════════════════════════
   4. SHARED COMPONENTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Section header ─────────────────────────────────────────────────────── */
.alb-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--alb-space-sm);
    margin-bottom: var(--alb-space-lg);
}
.alb-section-title {
    font-size: var(--alb-text-lg);
    font-weight: 800;
    color: var(--alb-navy);
    margin: 0;
}
.alb-section-subtitle {
    font-size: var(--alb-text-sm);
    color: var(--alb-muted);
    margin: 2px 0 0;
}

/* ── Subnav (in-tab navigation like Contact / Schedule / Payment / Media) ── */
.alb-subnav {
    display: flex;
    gap: 4px;
    margin-bottom: var(--alb-space-lg);
    border-bottom: 2px solid var(--alb-border);
    padding-bottom: 0;
}
.alb-subnav-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: var(--alb-text-sm);
    font-weight: 600;
    color: var(--alb-muted);
    text-decoration: none !important;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color var(--alb-transition), border-color var(--alb-transition);
}
.alb-subnav-tab:hover {
    color: var(--alb-navy);
    text-decoration: none !important;
}
.alb-subnav-tab.active {
    color: var(--alb-navy);
    border-bottom-color: var(--alb-navy);
    font-weight: 700;
}

/* ── Stat cards row ─────────────────────────────────────────────────────── */
.alb-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--alb-space-md);
    margin-bottom: var(--alb-space-lg);
}
.alb-stat-card {
    background: var(--alb-bg);
    border: 1px solid var(--alb-border);
    border-radius: var(--alb-radius);
    padding: 14px 16px;
}
.alb-stat-label {
    font-size: var(--alb-text-xs);
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--alb-subtle);
    margin-bottom: 4px;
}
.alb-stat-value {
    font-size: var(--alb-text-2xl);
    font-weight: 800;
    color: var(--alb-navy);
    line-height: 1.1;
}
.alb-stat-value.warn  { color: var(--alb-gold-dk); }
.alb-stat-value.danger { color: var(--alb-danger); }
.alb-stat-value.ok     { color: var(--alb-success); }
.alb-stat-value.info   { color: var(--alb-info); }
.alb-stat-sub {
    font-size: 0.73rem;
    color: var(--alb-subtle);
    margin-top: 3px;
}
.alb-stat-bar {
    height: 3px;
    background: var(--alb-border);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}
.alb-stat-bar-fill {
    height: 100%;
    background: var(--alb-navy);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* ── Pipeline funnel (horizontal stage counts) ──────────────────────────── */
.alb-funnel {
    display: flex;
    gap: 0;
    margin-bottom: var(--alb-space-lg);
    border-radius: var(--alb-radius);
    overflow: hidden;
    border: 1px solid var(--alb-border);
}
.alb-funnel-stage {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    background: var(--alb-bg);
    border-right: 1px solid var(--alb-border);
    cursor: pointer;
    transition: background var(--alb-transition);
}
.alb-funnel-stage:last-child { border-right: 0; }
.alb-funnel-stage:hover { background: #EFF6FF; }
.alb-funnel-stage.active { background: #EFF6FF; box-shadow: inset 0 -3px 0 var(--alb-navy); }
.alb-funnel-count {
    font-size: var(--alb-text-xl);
    font-weight: 800;
    color: var(--alb-navy);
    display: block;
}
.alb-funnel-label {
    font-size: var(--alb-text-xs);
    color: var(--alb-muted);
    display: block;
    margin-top: 2px;
}

/* ── Data tables ────────────────────────────────────────────────────────── */
.alb-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--alb-border);
    border-radius: var(--alb-radius);
}
.alb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--alb-text-sm);
}
.alb-table thead th {
    background: var(--alb-navy);
    color: #fff;
    padding: 10px 14px;
    font-size: var(--alb-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-align: left;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}
.alb-table tbody td {
    padding: 10px 14px;
    border-top: 1px solid var(--alb-border);
    color: var(--alb-text);
    vertical-align: middle;
}
.alb-table tbody tr:nth-child(odd) td {
    background: #FAFBFC;
}
.alb-table tbody tr:hover td {
    background: #F0F7FF;
}
.alb-table .alb-table-empty td {
    text-align: center;
    padding: 32px;
    color: var(--alb-muted);
}

/* ── Table row actions ──────────────────────────────────────────────────── */
.alb-row-actions {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
}
.alb-row-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--alb-border);
    background: #fff;
    color: var(--alb-navy);
    text-decoration: none !important;
    cursor: pointer;
    transition: all var(--alb-transition);
    white-space: nowrap;
}
.alb-row-btn:hover {
    background: var(--alb-bg);
    border-color: var(--alb-border-strong);
    text-decoration: none !important;
}
.alb-row-btn--primary {
    background: var(--alb-navy);
    color: #fff;
    border-color: var(--alb-navy);
}
.alb-row-btn--primary:hover {
    background: var(--alb-navy-dk);
}
.alb-row-btn--danger {
    color: var(--alb-danger);
    border-color: var(--alb-danger-border);
}
.alb-row-btn--danger:hover {
    background: var(--alb-danger-bg);
}

/* ── Pills / badges ─────────────────────────────────────────────────────── */
.alb-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--alb-radius-pill);
    white-space: nowrap;
    letter-spacing: .01em;
}
.alb-pill--default { background: #F1F5F9; color: var(--alb-muted); }
.alb-pill--navy    { background: #E0E7FF; color: var(--alb-navy); }
.alb-pill--success { background: var(--alb-success-bg); color: var(--alb-success); }
.alb-pill--warn    { background: var(--alb-warn-bg); color: var(--alb-warn); }
.alb-pill--danger  { background: var(--alb-danger-bg); color: var(--alb-danger); }
.alb-pill--info    { background: var(--alb-info-bg); color: var(--alb-info); }
.alb-pill--gold    { background: #FEF3C7; color: #92400E; }
.alb-pill--urgent  { background: var(--alb-danger-bg); color: var(--alb-danger); font-weight: 800; }

/* Dot indicator inside pill */
.alb-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.alb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-size: var(--alb-text-sm);
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid var(--alb-border);
    background: #fff;
    color: var(--alb-navy);
    text-decoration: none !important;
    cursor: pointer;
    transition: all var(--alb-transition);
    white-space: nowrap;
    line-height: 1.4;
    font-family: var(--alb-font);
}
.alb-btn:hover {
    background: var(--alb-bg);
    border-color: var(--alb-border-strong);
    text-decoration: none !important;
}
.alb-btn--primary {
    background: var(--alb-navy);
    color: #fff !important;
    border-color: var(--alb-navy);
}
.alb-btn--primary:hover {
    background: var(--alb-navy-dk);
}
.alb-btn--danger {
    background: var(--alb-danger);
    color: #fff !important;
    border-color: var(--alb-danger);
}
.alb-btn--sm {
    padding: 4px 10px;
    font-size: 0.76rem;
}
.alb-btn--lg {
    padding: 10px 22px;
    font-size: var(--alb-text-base);
}
.alb-btn--pill {
    border-radius: var(--alb-radius-pill);
    padding: 6px 16px;
}

/* ── Action link (text-style button) ────────────────────────────────────── */
.alb-action-link {
    font-size: var(--alb-text-sm);
    font-weight: 700;
    color: var(--alb-navy);
    text-decoration: none !important;
    cursor: pointer;
}
.alb-action-link:hover {
    text-decoration: underline !important;
}

/* ── Toolbar (filter bars, bulk actions) ────────────────────────────────── */
.alb-toolbar {
    display: flex;
    align-items: center;
    gap: var(--alb-space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--alb-space-md);
    padding: 10px 14px;
    background: var(--alb-bg);
    border: 1px solid var(--alb-border);
    border-radius: var(--alb-radius);
}
.alb-toolbar-search {
    flex: 1;
    min-width: 180px;
    padding: 6px 12px;
    font-size: var(--alb-text-sm);
    border: 1px solid var(--alb-border);
    border-radius: 6px;
    background: #fff;
    font-family: var(--alb-font);
}
.alb-toolbar-search:focus {
    outline: none;
    border-color: var(--alb-navy);
    box-shadow: 0 0 0 2px rgba(27,54,93,.12);
}
.alb-toolbar-select {
    padding: 6px 10px;
    font-size: var(--alb-text-sm);
    border: 1px solid var(--alb-border);
    border-radius: 6px;
    background: #fff;
    font-family: var(--alb-font);
    cursor: pointer;
}

/* ── Notices ─────────────────────────────────────────────────────────────── */
.alb-notice {
    padding: 10px 14px;
    border-radius: var(--alb-radius-sm);
    font-size: var(--alb-text-base);
    margin-bottom: 14px;
    border: 1px solid;
}
.alb-notice--warning { background: var(--alb-warn-bg); border-color: var(--alb-warn-border); color: var(--alb-warn); }
.alb-notice--error   { background: var(--alb-danger-bg); border-color: var(--alb-danger-border); color: var(--alb-danger); }
.alb-notice--info    { background: var(--alb-info-bg); border-color: var(--alb-info-border); color: var(--alb-info); }
.alb-notice--success { background: var(--alb-success-bg); border-color: var(--alb-success-border); color: var(--alb-success); }

/* ── Panels ──────────────────────────────────────────────────────────────── */
.alb-panel {
    background: var(--alb-bg-raised);
    border: 1px solid var(--alb-border);
    border-radius: var(--alb-radius);
    padding: var(--alb-space-md);
}
.alb-panel-title {
    font-size: var(--alb-text-sm);
    font-weight: 800;
    color: var(--alb-navy);
    margin: 0 0 var(--alb-space-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Slide-out drawer (inline editing) ───────────────────────────────────── */
.alb-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.alb-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.alb-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(520px, 90vw);
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,.15);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
}
.alb-drawer.open {
    transform: translateX(0);
}
.alb-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--alb-border);
    background: var(--alb-bg);
}
.alb-drawer-title {
    font-size: var(--alb-text-md);
    font-weight: 800;
    color: var(--alb-navy);
    margin: 0;
}
.alb-drawer-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--alb-border);
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    color: var(--alb-muted);
    transition: all var(--alb-transition);
}
.alb-drawer-close:hover {
    background: var(--alb-danger-bg);
    color: var(--alb-danger);
}
.alb-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.alb-drawer-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--alb-border);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    background: var(--alb-bg);
}

/* ── Form fields inside drawer/panels ────────────────────────────────────── */
.alb-field {
    margin-bottom: var(--alb-space-md);
}
.alb-field label {
    display: block;
    font-size: var(--alb-text-sm);
    font-weight: 700;
    color: var(--alb-text);
    margin-bottom: 4px;
}
.alb-field input[type="text"],
.alb-field input[type="email"],
.alb-field input[type="url"],
.alb-field input[type="tel"],
.alb-field input[type="date"],
.alb-field select,
.alb-field textarea {
    width: 100%;
    padding: 7px 10px;
    font-size: var(--alb-text-sm);
    border: 1px solid var(--alb-border);
    border-radius: 6px;
    background: #fff;
    font-family: var(--alb-font);
}
.alb-field input:focus,
.alb-field select:focus,
.alb-field textarea:focus {
    outline: none;
    border-color: var(--alb-navy);
    box-shadow: 0 0 0 2px rgba(27,54,93,.1);
}
.alb-field-hint {
    font-size: 0.72rem;
    color: var(--alb-muted);
    margin-top: 3px;
}

/* ── Readiness checklist ─────────────────────────────────────────────────── */
.alb-readiness-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.alb-readiness-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px dashed var(--alb-border);
    font-size: var(--alb-text-sm);
}
.alb-readiness-item:last-child { border-bottom: none; }
.alb-readiness-label { color: var(--alb-text); }

/* ── Quick actions row ───────────────────────────────────────────────────── */
.alb-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: var(--alb-space-md);
}


/* ═══════════════════════════════════════════════════════════════════════════
   5. DASHBOARD
   ═══════════════════════════════════════════════════════════════════════════ */

.alb-dashboard {
    font-family: var(--alb-font);
}

/* Ops-style hero: left = priority items, right = readiness + next step */
.alb-ops-hero {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--alb-space-lg);
    margin-bottom: var(--alb-space-lg);
}
.alb-ops-kicker {
    font-size: var(--alb-text-xs);
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--alb-subtle);
    margin-bottom: 4px;
}
.alb-ops-title {
    font-size: var(--alb-text-lg);
    font-weight: 800;
    color: var(--alb-navy);
    margin: 0 0 6px;
}
.alb-ops-intro {
    font-size: var(--alb-text-base);
    color: var(--alb-text-secondary);
    margin: 0 0 var(--alb-space-md);
}
.alb-ops-priority-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.alb-ops-priority {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--alb-border);
    background: #fff;
    box-shadow: none;
}
.alb-ops-priority--action {
    background: #fff6e5;
    border-color: #f2d58a;
    border-left: 4px solid #f0ad4e;
}
.alb-ops-priority--critical {
    background: #fdecea;
    border-color: #f5c2c7;
    border-left: 4px solid #dc3545;
}
.alb-ops-priority--setup {
    background: #f7f9fc;
    border-color: #e1e7f2;
    border-left: 4px solid #d6deee;
    opacity: 0.85;
}
.alb-ops-priority-body { flex: 1; min-width: 0; max-width: 80%; }
.alb-ops-priority-title { font-size: 0.95rem; font-weight: 700; color: var(--alb-text); line-height: 1.25; }
.alb-ops-priority-desc  { font-size: 0.76rem; color: var(--alb-muted); margin-top: 2px; line-height: 1.35; opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alb-ops-priority-link  { flex-shrink: 0; font-size: 0.8rem; font-weight: 700; color: var(--alb-navy); text-decoration: none; white-space: nowrap; justify-self: end; text-align: right; min-width: 108px; }
.alb-ops-priority-link:hover { text-decoration: underline; }
.alb-ops-empty {
    padding: 20px;
    background: var(--alb-bg);
    border-radius: var(--alb-radius);
    text-align: center;
}
.alb-ops-empty-title { font-weight: 700; color: var(--alb-text); margin-bottom: 4px; }
.alb-ops-empty-desc  { font-size: var(--alb-text-sm); color: var(--alb-muted); }

/* Sidebar cards */
.alb-ops-hero-side {
    display: flex;
    flex-direction: column;
    gap: var(--alb-space-md);
}
.alb-ops-side-card {
    background: var(--alb-bg);
    border: 1px solid var(--alb-border);
    border-radius: var(--alb-radius);
    padding: 14px 16px;
}
.alb-ops-side-title {
    font-size: var(--alb-text-xs);
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--alb-subtle);
    margin-bottom: var(--alb-space-sm);
}
.alb-ops-readiness-summary {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: var(--alb-space-sm);
}
.alb-ops-readiness-value { font-size: var(--alb-text-xl); font-weight: 800; color: var(--alb-navy); }
.alb-ops-readiness-text  { font-size: var(--alb-text-sm); color: var(--alb-muted); }
.alb-ops-readiness-list  { list-style: none; margin: 0; padding: 0; }
.alb-ops-readiness-item  { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px dashed var(--alb-border); font-size: var(--alb-text-sm); }
.alb-ops-readiness-item:last-child { border-bottom: none; }
.alb-ops-readiness-label { color: var(--alb-text); }
.alb-ops-readiness-badge { font-size: var(--alb-text-xs); font-weight: 700; padding: 2px 8px; border-radius: var(--alb-radius-pill); }
.alb-ops-readiness-badge--ok      { background: var(--alb-success-bg); color: var(--alb-success); }
.alb-ops-readiness-badge--warning  { background: var(--alb-warn-bg); color: var(--alb-warn); }
.alb-ops-readiness-badge--error    { background: var(--alb-danger-bg); color: var(--alb-danger); }

.alb-ops-next-title { font-weight: 700; font-size: var(--alb-text-base); color: var(--alb-text); margin-bottom: 4px; }
.alb-ops-next-desc  { font-size: 0.79rem; color: var(--alb-muted); margin-bottom: 10px; }
.alb-ops-next-btn   { display: inline-block; padding: 5px 14px; background: var(--alb-navy); color: #fff !important; border-radius: 6px; font-size: var(--alb-text-sm); font-weight: 700; text-decoration: none !important; }
.alb-ops-next-btn:hover { background: var(--alb-navy-dk); }

/* Snapshot grid */
.alb-ops-snapshot { margin-bottom: var(--alb-space-lg); }
.alb-ops-snapshot-title {
    font-size: var(--alb-text-xs);
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--alb-subtle);
    margin-bottom: var(--alb-space-sm);
}
.alb-ops-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--alb-space-md);
}
.alb-ops-snap-card {
    background: var(--alb-bg);
    border: 1px solid var(--alb-border);
    border-radius: var(--alb-radius);
    padding: 14px 16px;
}
.alb-ops-snap-label { font-size: var(--alb-text-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--alb-subtle); }
.alb-ops-snap-value { font-size: var(--alb-text-2xl); font-weight: 800; color: var(--alb-navy); line-height: 1.2; margin: 4px 0; }
.alb-ops-snap-sub   { font-size: 0.72rem; color: var(--alb-subtle); }
.alb-ops-snap-card--warn   { border-left: 3px solid var(--alb-gold); }
.alb-ops-snap-card--danger { border-left: 3px solid var(--alb-danger); }
.alb-ops-snap-card--ok     { border-left: 3px solid var(--alb-success); }

/* Coach actions row */
.alb-ops-actions { margin-bottom: var(--alb-space-lg); }
.alb-ops-actions-row { display: flex; flex-wrap: wrap; gap: 8px; }
.alb-ops-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border-radius: var(--alb-radius-pill);
    font-size: var(--alb-text-sm);
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid var(--alb-border);
    background: #fff;
    color: var(--alb-navy);
    transition: background var(--alb-transition), border-color var(--alb-transition);
    white-space: nowrap;
}
.alb-ops-action-btn:hover {
    background: #F1F5F9;
    border-color: var(--alb-border-strong);
    text-decoration: none !important;
}
.alb-ops-action-btn.is-primary {
    background: var(--alb-navy);
    color: #fff !important;
    border-color: var(--alb-navy);
}
.alb-ops-action-btn.is-primary:hover {
    background: var(--alb-navy-dk);
}

/* Bottom grid: activity + sidebar */
.alb-ops-bottom {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--alb-space-lg);
}
.alb-ops-panel {
    background: var(--alb-bg);
    border: 1px solid var(--alb-border);
    border-radius: var(--alb-radius);
    padding: 14px 16px;
}
.alb-ops-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.alb-ops-list-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--alb-border);
    font-size: var(--alb-text-sm);
}
.alb-ops-list-item:last-child { border-bottom: none; }
.alb-ops-list-meta { flex-shrink: 0; min-width: 80px; font-size: var(--alb-text-xs); color: var(--alb-subtle); font-weight: 600; }
.alb-ops-list-text { color: var(--alb-text); }
.alb-ops-list-empty { color: var(--alb-muted); font-size: var(--alb-text-sm); padding: 12px 0; }

.alb-ops-summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.alb-ops-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dashed var(--alb-border);
    font-size: var(--alb-text-sm);
    color: var(--alb-text);
}
.alb-ops-summary-item:last-child { border-bottom: none; }


/* ═══════════════════════════════════════════════════════════════════════════
   6. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 900px — tablet ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .alb-ops-hero       { grid-template-columns: 1fr; }
    .alb-ops-bottom     { grid-template-columns: 1fr; }
    .alb-stat-row       { grid-template-columns: repeat(2, 1fr); }
}

/* ── 768px — large phone / small tablet ────────────────────────────────── */
@media (max-width: 768px) {
    /* Drop modules grid from 3-col to 2-col before it collapses to 1 */
    .alb-ops-modules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* Section header: stack actions below title when space is tight */
    .alb-section-header   { flex-direction: column; align-items: flex-start; }
}

/* ── 640px — phone landscape / small phone ──────────────────────────────── */
@media (max-width: 640px) {
    /* Content padding */
    .alb-workspace-content { padding: 14px 12px; }

    /* Header: tighten and hide username, keep sign-out */
    .alb-workspace-header           { padding: 10px 14px; }
    .alb-workspace-team-name        { font-size: 1rem; }
    .alb-workspace-user-name        { display: none; }

    /* Tabs: tighter padding and smaller text */
    .alb-workspace-tab              { padding: 9px 12px; font-size: 0.78rem; }

    /* Subnav: horizontal scroll instead of multi-row wrapping */
    .alb-subnav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        padding-bottom: 1px; /* keep border visible */
    }
    .alb-subnav::-webkit-scrollbar  { display: none; }
    .alb-subnav-tab                 { flex-shrink: 0; }

    /* Stat row */
    .alb-stat-row                   { grid-template-columns: 1fr 1fr; }

    /* Funnel: 2-up */
    .alb-funnel                     { flex-wrap: wrap; }
    .alb-funnel-stage               { flex: 0 0 calc(50% - 1px); }

    /* Snapshot grid */
    .alb-ops-snapshot-grid          { grid-template-columns: repeat(2, 1fr); }

    /* Priority items: stack action link below content */
    .alb-ops-priority               { grid-template-columns: 1fr; row-gap: 6px; }
    .alb-ops-priority-link          { justify-self: start; min-width: unset; margin-top: 0; font-size: 0.78rem; }
    .alb-ops-priority-body          { max-width: 100%; }
    .alb-ops-priority-desc          { white-space: normal; overflow: visible; text-overflow: unset; }

    /* Modules grid: 1-col on phones */
    .alb-ops-modules-grid           { grid-template-columns: 1fr; }

    /* Drawer: full screen */
    .alb-drawer                     { width: 100vw; }
    .alb-drawer-footer              { flex-direction: column; }
    .alb-drawer-footer .alb-btn     { width: 100%; justify-content: center; }

    /* Toolbar */
    .alb-toolbar                    { flex-direction: column; }
    .alb-toolbar-search             { min-width: unset; width: 100%; }
    .alb-toolbar-select             { width: 100%; }

    /* Quick actions */
    .alb-quick-actions              { gap: 6px; }
    .alb-ops-actions-row            { gap: 6px; }
}

/* ── 480px — phone portrait ─────────────────────────────────────────────── */
@media (max-width: 480px) {
    /* Header: shrink logo, reduce team-name further */
    .alb-workspace-header           { padding: 8px 12px; }
    .alb-workspace-logo             { width: 32px; height: 32px; }
    .alb-workspace-team-name        { font-size: 0.92rem; }
    .alb-workspace-org              { font-size: 0.6rem; }
    .alb-workspace-season-pill      { font-size: 0.6rem; padding: 1px 6px; }
    .alb-workspace-user             { gap: 8px; }

    /* Tabs: tighten further, drop icon opacity to save visual weight */
    .alb-workspace-tab              { padding: 8px 10px; font-size: 0.74rem; gap: 3px; }
    .alb-tab-icon                   { font-size: 0.8rem; }

    /* Content padding */
    .alb-workspace-content          { padding: 12px 10px; }

    /* Stat row stays 2-col at 480px (collapses to 1 at 420px) */

    /* Snapshot cards */
    .alb-ops-snapshot-grid          { grid-template-columns: repeat(2, 1fr); }

    /* Gap breakdown chips: stack vertically */
    .alb-ops-gap-breakdown-list     { gap: 5px; }
    .alb-ops-gap-item               { width: 100%; justify-content: space-between; border-radius: var(--alb-radius); }

    /* Action buttons: full-width primary */
    .alb-ops-action-btn.is-primary  { width: 100%; justify-content: center; }
}

/* ── 768px — mobile tab grid instead of horizontal scroll ───────────────── */
@media (max-width: 768px) {
    .alb-workspace-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: hidden;
        -webkit-overflow-scrolling: auto;
        scrollbar-width: auto;
    }

    .alb-workspace-tab {
        min-width: 0;
        min-height: 54px;
        padding: 10px 8px;
        border-right: 1px solid var(--alb-border);
        border-bottom: 1px solid var(--alb-border);
        justify-content: center;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
    }

    .alb-workspace-tab:nth-child(2n) {
        border-right: 0;
    }

    .alb-tab-badge {
        margin-left: 2px;
    }
}

/* ── 420px — very small / compact phone ─────────────────────────────────── */
@media (max-width: 420px) {
    .alb-workspace-content          { padding: 10px 8px; }
    .alb-stat-row                   { grid-template-columns: 1fr; }
    .alb-ops-snapshot-grid          { grid-template-columns: 1fr; }

    /* Tabs: hide badge numbers to save horizontal space */
    .alb-tab-badge                  { display: none; }

    /* Funnel: 1-up on very small screens */
    .alb-funnel-stage               { flex: 0 0 100%; }
}

.alb-dashboard-toolbar{display:flex;justify-content:flex-end;margin:0 0 16px}
.alb-dashboard-customize{position:relative;margin:0 0 20px}
.alb-dashboard-customize-card{border:1px solid #d8dee9;border-radius:16px;background:#fff;padding:18px 20px;box-shadow:0 12px 32px rgba(15,23,42,.08)}
.alb-dashboard-customize-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.alb-dashboard-customize-header h3{margin:0;font-size:18px}
.alb-dashboard-customize-close{border:0;background:transparent;font-size:18px;cursor:pointer;color:#475569}
.alb-dashboard-customize-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.alb-dashboard-check{display:flex;align-items:flex-start;gap:10px;margin:0 0 10px;font-size:14px;color:#334155}
.alb-dashboard-check input{margin-top:3px}
.alb-dashboard-customize-actions{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:16px}
.alb-dashboard-customize-status{font-size:13px;color:#475569;margin-top:10px;min-height:18px}
.alb-dashboard-customize-status.is-error{color:#b91c1c}
@media (max-width: 900px){.alb-dashboard-customize-grid{grid-template-columns:1fr}.alb-dashboard-customize-actions{flex-direction:column;align-items:stretch}}


/* Snapshot cards act as the operational signal layer and deep-link to action */
.alb-ops-snap-card--link {
    display: block;
    text-decoration: none !important;
    color: inherit;
    transition: transform var(--alb-transition), box-shadow var(--alb-transition), border-color var(--alb-transition), background var(--alb-transition);
}
.alb-ops-snap-card--link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    border-color: var(--alb-border-strong);
    background: #fff;
}
.alb-ops-gap-breakdown {
    margin-top: var(--alb-space-md);
    padding-top: var(--alb-space-sm);
    border-top: 1px dashed var(--alb-border);
}
.alb-ops-gap-breakdown-title {
    font-size: var(--alb-text-xs);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--alb-subtle);
    margin-bottom: 8px;
}
.alb-ops-gap-breakdown-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.alb-ops-gap-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--alb-radius-pill);
    border: 1px solid var(--alb-border);
    background: #fff;
    text-decoration: none !important;
    color: var(--alb-text);
    font-size: var(--alb-text-sm);
    line-height: 1.2;
}
.alb-ops-gap-item:hover {
    border-color: var(--alb-border-strong);
    background: #F8FAFC;
}
.alb-ops-gap-item--warning {
    border-color: #FCD34D;
    background: #FFFBEB;
}
.alb-ops-gap-item--error {
    border-color: #FCA5A5;
    background: #FEF2F2;
}
.alb-ops-gap-item-label { font-weight: 700; }
.alb-ops-gap-item-badge { color: var(--alb-subtle); font-size: var(--alb-text-xs); }

/* Dashboard operations modules */
.alb-ops-modules { margin-top: 26px; }
.alb-ops-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.alb-ops-module {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--alb-border);
  border-radius: var(--alb-radius-xl);
  box-shadow: var(--alb-shadow-sm);
  padding: 18px;
}
.alb-ops-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.alb-ops-module-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: var(--alb-navy);
}
.alb-ops-module-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--alb-navy-50);
  color: var(--alb-navy);
  font-size: 12px;
  font-weight: 700;
}
.alb-ops-module-summary {
  margin: 0 0 12px;
  color: var(--alb-muted);
  font-size: 14px;
}
.alb-ops-module-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1 1 auto;
}
.alb-ops-module-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  font-size: 14px;
}
.alb-ops-module-item-label { color: var(--alb-text); }
.alb-ops-module-item-value { color: var(--alb-navy); font-weight: 800; }
.alb-ops-module-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(29,53,87,.08);
}
.alb-ops-module-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--alb-radius-pill);
  border: 1px solid var(--alb-border-strong);
  background: #fff;
  color: var(--alb-navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.alb-ops-module-action.is-primary {
  background: var(--alb-navy);
  border-color: var(--alb-navy);
  color: #fff;
}
.alb-ops-gap-breakdown { margin-top: 16px; }
.alb-ops-gap-breakdown-title {
  margin-bottom: 8px;
  color: var(--alb-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.alb-ops-gap-breakdown-list { display:flex; flex-wrap:wrap; gap:10px; }
.alb-ops-gap-item {
  display:inline-flex; align-items:center; gap:8px;
  min-height: 34px; padding:0 12px; border-radius:999px;
  border:1px solid var(--alb-border); text-decoration:none; background:#fff;
}
.alb-ops-gap-item-label { color: var(--alb-text); font-size: 13px; font-weight: 700; }
.alb-ops-gap-item-badge { color: var(--alb-muted); font-size: 12px; }
.alb-ops-gap-item--error { border-color: rgba(185,28,28,.28); background: rgba(254,242,242,.9); }
.alb-ops-gap-item--warning { border-color: rgba(217,119,6,.28); background: rgba(255,251,235,.9); }
@media (max-width: 1120px) {
  .alb-ops-modules-grid { grid-template-columns: 1fr; }
}
