/* ============================================================
   HS Sportslytics — Sideline Core Design System
   v2.0.0 | WCAG 2.1 AA | 48px touch targets
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    --ce-text:            #111827;
    --ce-text-secondary:  #374151;
    --ce-text-muted:      #6B7280;
    --ce-accent:          #1D4ED8;
    --ce-accent-light:    #eff6ff;
    --ce-accent-dark:     #1E3A8A;
    --ce-accent-brand:    #0047AB;
    --ce-header-navy:     #0D1B4B;
    --ce-success:         #15803D;
    --ce-success-light:   #f0fdf4;
    --ce-danger:          #B91C1C;
    --ce-danger-light:    #fef2f2;
    --ce-warning:         #D97706;
    --ce-warning-light:   #fffbeb;
    --ce-border:          #D1D5DB;
    --ce-border-focus:    #1D4ED8;
    --ce-bg:              #FFFFFF;
    --ce-bg-alt:          #F9FAFB;
    --ce-bg-alt2:         #F3F4F6;
    --ce-touch-min:       48px;
    --ce-radius:          8px;
    --ce-shadow-sm:       0 1px 3px rgba(0,0,0,.10);
    --ce-shadow-md:       0 4px 12px rgba(0,0,0,.12);
    --ce-font:            -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ce-mono:            "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ── Reset & Base ──────────────────────────────────────────── */
.ce-shell,
.ce-gate,
.ce-onboard-wrap,
.ce-checkout-wrap {
    font-family:  var(--ce-font);
    color:        var(--ce-text);
    box-sizing:   border-box;
    line-height:  1.5;
}

.ce-shell *,
.ce-gate *,
.ce-onboard-wrap *,
.ce-checkout-wrap * {
    box-sizing: border-box;
}

/* No-sidebar utility — add this class to the page body or wrapper via JS/PHP */
body.ce-no-sidebar .wp-sidebar,
body.ce-no-sidebar #secondary,
body.ce-no-sidebar .sidebar,
body.ce-no-sidebar .widget-area {
    display: none !important;
}

/* ── Typography ────────────────────────────────────────────── */
.ce-section-title   { font-size: 1.125rem; font-weight: 700; color: var(--ce-text); margin: 0 0 16px; }
.ce-screen-title    { font-size: 1.25rem;  font-weight: 700; color: var(--ce-text); margin: 0; }
.ce-program-title   { font-size: 1.25rem;  font-weight: 700; color: var(--ce-text); margin: 0; }
.ce-program-meta    { font-size: .875rem;  color: var(--ce-text-secondary); margin: 2px 0 0; }
.ce-field-hint      { font-size: .8125rem; color: var(--ce-text-muted); margin: 4px 0 0; }
.ce-checklist-header { font-size: .875rem; font-weight: 600; color: var(--ce-text-secondary); margin: 0 0 8px; }

/* ── Layout Containers ─────────────────────────────────────── */
.ce-screen { padding: 24px 0; }
.ce-screen-header {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             16px;
    margin-bottom:   24px;
    flex-wrap:       wrap;
}

/* ── App Shell (Sidebar + Header) ─────────────────────────────
   Figma "Layout" frame — shared wrapper for every logged-in
   coach-facing shortcode/view.
   ────────────────────────────────────────────────────────── */
.ce-shell {
    display:    flex;
    align-items: stretch;
    min-height: 100vh;
    background: var(--ce-bg);
    margin:     0 calc(50% - 50vw);
    width:      100vw;
}

.ce-shell__sidebar {
    width:         256px;
    flex-shrink:   0;
    background:    var(--ce-bg-alt);
    border-right:  1px solid var(--ce-border-hairline, #E5E7EB);
    display:       flex;
    flex-direction: column;
    position:      relative;
    z-index:       2;
    transition:    transform .2s ease;
}

.ce-shell__org {
    padding: 20px 16px 12px;
}
.ce-shell__org-card {
    display:       flex;
    align-items:   center;
    gap:           12px;
    padding:       13px;
    background:    #fff;
    border:        1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow:    0 1px 1px rgba(0,0,0,.05);
}
.ce-shell__org-icon {
    width:          36px;
    height:         36px;
    flex-shrink:    0;
    border-radius:  9999px;
    background:     var(--ce-bg-alt);
    border:         1px solid #E5E7EB;
    display:        flex;
    align-items:    center;
    justify-content: center;
    color:          #374151;
    font-size:      16px;
}
.ce-shell__org-icon svg { width: 16px; height: 16px; }
.ce-shell__org-logo { width: 36px; height: 36px; flex-shrink: 0; border-radius: 9999px; object-fit: cover; border: 1px solid #E5E7EB; }
.ce-shell__org-name { font-size: 14px; font-weight: 600; color: #111827; line-height: 20px; }
.ce-shell__org-meta { font-size: 12px; color: #4B5563; line-height: 16px; }

.ce-shell__coach {
    display:      flex;
    align-items:  center;
    gap:          12px;
    padding:      13px 16px;
    border-top:   1px solid #E5E7EB;
}
.ce-shell__coach-avatar {
    width:         32px;
    height:        32px;
    flex-shrink:   0;
    border-radius: 9999px;
    border:        1px solid #E5E7EB;
    overflow:      hidden;
    display:       block;
}
.ce-shell__coach-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ce-shell__coach-info { flex: 1 0 0; min-width: 0; }
.ce-shell__coach-name { font-size: 14px; font-weight: 500; color: #111827; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ce-shell__coach-role { font-size: 12px; color: #4B5563; line-height: 16px; }
.ce-shell__settings-btn {
    flex-shrink:   0;
    display:       flex;
    align-items:   center;
    justify-content: center;
    width:         32px;
    height:        32px;
    color:         #4B5563;
    background:    none;
    border:        none;
    border-radius: 6px;
    cursor:        pointer;
    text-decoration: none;
}
.ce-shell__settings-btn:hover        { background: #F3F4F6; color: #111827; }
.ce-shell__settings-btn:focus-visible { outline: 3px solid var(--ce-accent); outline-offset: 2px; }
.ce-shell__settings-btn svg { width: 16px; height: 16px; }

.ce-shell__nav {
    flex:          1 0 0;
    min-height:    0;
    overflow-y:    auto;
    padding:       8px 12px;
    display:       flex;
    flex-direction: column;
    gap:           20px;
}
.ce-shell__nav-group { display: flex; flex-direction: column; gap: 6px; }
.ce-shell__nav-label {
    font-size:      10px;
    font-weight:    600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color:          #4B5563;
    padding:        0 8px;
}
.ce-shell__nav-list { display: flex; flex-direction: column; gap: 2px; }
.ce-shell__nav-item {
    display:         flex;
    align-items:     center;
    gap:             12px;
    min-height:      44px;
    padding:         8px 12px;
    border-radius:   8px;
    font-size:       14px;
    font-weight:     500;
    color:           var(--ce-accent-brand, #0047AB);
    text-decoration: none;
    transition:      background-color .15s;
}
.ce-shell__nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.ce-shell__nav-item:hover { background: #F3F4F6; }
.ce-shell__nav-item.is-active { background: #EFF6FF; color: #1E3A8A; font-weight: 600; }
.ce-shell__nav-item:focus-visible { outline: 3px solid var(--ce-accent-brand, #0047AB); outline-offset: -2px; }

.ce-shell__main {
    flex:          1 0 0;
    min-width:     0;
    max-width:     100%;
    display:       flex;
    flex-direction: column;
    background:    #fff;
    overflow-x:    hidden;
}
.ce-shell__header {
    min-height:      64px;
    flex-shrink:     0;
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             16px;
    flex-wrap:       wrap;
    padding:         12px 32px;
    border-bottom:   1px solid #E5E7EB;
}
.ce-shell__header-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ce-shell__title    { font-size: 20px; font-weight: 700; color: #0D1B4B; margin: 0; line-height: 28px; }
.ce-shell__subtitle { font-size: 12px; color: #4B5563; white-space: nowrap; }
.ce-shell__canvas { flex: 1 0 0; min-width: 0; max-width: 100%; padding: 24px 32px; box-sizing: border-box; }
.ce-shell__canvas .ce-screen { padding: 0; }

.ce-shell__menu-btn {
    display:       none;
    align-items:   center;
    justify-content: center;
    width:         44px;
    height:        44px;
    flex-shrink:   0;
    background:    none;
    border:        1px solid #E5E7EB;
    border-radius: 8px;
    color:         #111827;
    cursor:        pointer;
}
.ce-shell__menu-btn svg { width: 20px; height: 20px; }
.ce-shell__backdrop { display: none; }

@media (max-width: 900px) {
    .ce-shell__menu-btn { display: flex; }
    .ce-shell__sidebar {
        position:   fixed;
        top:        0;
        left:       0;
        bottom:     0;
        transform:  translateX(-100%);
        box-shadow: var(--ce-shadow-md);
    }
    .ce-shell.is-nav-open .ce-shell__sidebar { transform: translateX(0); }
    .ce-shell.is-nav-open .ce-shell__backdrop {
        display:    block;
        position:   fixed;
        inset:      0;
        background: rgba(17,24,39,.45);
        z-index:    1;
    }
    .ce-shell__header  { padding: 12px 16px; }
    .ce-shell__canvas  { padding: 16px; }
}

/* ── Buttons ───────────────────────────────────────────────── */
.ce-btn {
    display:          inline-flex;
    align-items:      center;
    justify-content:  center;
    gap:              6px;
    min-height:       var(--ce-touch-min);
    padding:          0 20px;
    font-family:      var(--ce-font);
    font-size:        .9375rem;
    font-weight:      600;
    border-radius:    var(--ce-radius);
    border:           2px solid transparent;
    cursor:           pointer;
    text-decoration:  none;
    transition:       background .15s, color .15s, border-color .15s, box-shadow .15s;
    white-space:      nowrap;
    user-select:      none;
}
.ce-btn:focus-visible {
    outline: 3px dashed var(--ce-border-focus);
    outline-offset: 2px;
}

.ce-btn--primary {
    background: var(--ce-accent);
    color:      #fff;
    border-color: var(--ce-accent);
}
.ce-btn--primary:hover { background: var(--ce-accent-dark); border-color: var(--ce-accent-dark); }

.ce-btn--secondary {
    background:   var(--ce-bg);
    color:        var(--ce-accent);
    border-color: var(--ce-accent);
}
.ce-btn--secondary:hover { background: var(--ce-accent-light); }

.ce-btn--ghost {
    background:   transparent;
    color:        var(--ce-text-secondary);
    border-color: var(--ce-border);
}
.ce-btn--ghost:hover { background: var(--ce-bg-alt2); color: var(--ce-text); }

.ce-btn--history {
    background:   transparent;
    color:        var(--ce-accent);
    border-color: transparent;
    font-size:    .875rem;
    padding:      0 8px;
}
.ce-btn--history:hover { text-decoration: underline; }

.ce-btn--full  { width: 100%; }
.ce-btn--cta   { font-size: 1.0625rem; padding: 0 32px; }
.ce-btn--sm    { min-height: 36px; padding: 0 12px; font-size: .8125rem; }

.ce-chevron { transition: transform .2s; display: inline-block; }
.ce-history-toggle[aria-expanded="true"] .ce-chevron,
[data-ce-toggle][aria-expanded="true"] .ce-chevron { transform: rotate(180deg); }

/* ── Form Controls ─────────────────────────────────────────── */
.ce-input,
.ce-select {
    display:       block;
    width:         100%;
    min-height:    var(--ce-touch-min);
    padding:       10px 14px;
    font-family:   var(--ce-font);
    font-size:     1rem;
    color:         var(--ce-text);
    background:    var(--ce-bg);
    border:        2px solid var(--ce-border);
    border-radius: var(--ce-radius);
    transition:    border-color .15s, box-shadow .15s;
    appearance:    none;
    -webkit-appearance: none;
}
.ce-input:focus,
.ce-select:focus {
    outline:       none;
    border-color:  var(--ce-border-focus);
    box-shadow:    0 0 0 3px rgba(29,78,216,.2);
}
.ce-select { min-height: 52px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.ce-input--sm  { min-height: 38px; padding: 6px 10px; font-size: .875rem; }
.ce-select--sm { min-height: 38px; padding: 6px 28px 6px 10px; font-size: .875rem; }

.ce-label {
    display:     block;
    font-size:   .875rem;
    font-weight: 600;
    color:       var(--ce-text);
    margin-bottom: 6px;
}

.ce-field       { margin-bottom: 20px; }
.ce-field-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .ce-field-row { grid-template-columns: 1fr; } }

.ce-input-unit-wrap {
    position: relative;
    display:  flex;
    gap:      8px;
    align-items: center;
}
.ce-input-unit-wrap .ce-input { flex: 1; }
.ce-unit-badge {
    background: var(--ce-bg-alt2);
    border:     2px solid var(--ce-border);
    border-radius: var(--ce-radius);
    padding:    0 12px;
    min-height: var(--ce-touch-min);
    display:    flex;
    align-items: center;
    font-size:  .875rem;
    font-weight: 600;
    color:      var(--ce-text-secondary);
    white-space: nowrap;
}

.ce-ob-label {
    font-size:   .9375rem;
    font-weight: 700;
    color:       var(--ce-text);
    margin-bottom: 12px;
    display: block;
}
.ce-ob-section { margin-bottom: 28px; }

/* ── Rating Buttons (1-5 Radio) ────────────────────────────── */
.ce-rating-row {
    display:  flex;
    gap:      8px;
    flex-wrap: wrap;
}
.ce-rating-option { display: contents; }
.ce-rating-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.ce-rating-btn {
    display:       flex;
    align-items:   center;
    justify-content: center;
    width:         52px;
    height:        52px;
    border:        2px solid var(--ce-border);
    border-radius: var(--ce-radius);
    font-size:     1.125rem;
    font-weight:   700;
    color:         var(--ce-text-secondary);
    cursor:        pointer;
    transition:    background .12s, color .12s, border-color .12s;
    user-select:   none;
}
.ce-rating-option input:checked  + .ce-rating-btn {
    background:   var(--ce-accent);
    color:        #fff;
    border-color: var(--ce-accent);
}
.ce-rating-option input:focus-visible + .ce-rating-btn {
    outline: 3px dashed var(--ce-border-focus);
    outline-offset: 2px;
}
.ce-rating-btn:hover { border-color: var(--ce-accent); color: var(--ce-accent); }

/* ── Tap Blocks (Checkbox rows) ────────────────────────────── */
.ce-tap-block {
    display:        flex;
    align-items:    center;
    gap:            12px;
    min-height:     var(--ce-touch-min);
    padding:        10px 14px;
    border:         2px solid var(--ce-border);
    border-radius:  var(--ce-radius);
    margin-bottom:  8px;
    cursor:         pointer;
    transition:     background .12s, border-color .12s;
    user-select:    none;
}
.ce-tap-block:hover { border-color: var(--ce-accent); background: var(--ce-accent-light); }
.ce-tap-block__input { position: absolute; opacity: 0; width: 0; height: 0; }
.ce-tap-block__check {
    flex-shrink:   0;
    width:         24px;
    height:        24px;
    border:        2px solid var(--ce-border);
    border-radius: 5px;
    display:       flex;
    align-items:   center;
    justify-content: center;
    transition:    background .12s, border-color .12s;
}
.ce-tap-block__input:checked ~ .ce-tap-block__check {
    background:   var(--ce-success);
    border-color: var(--ce-success);
}
.ce-tap-block__input:checked ~ .ce-tap-block__check::after {
    content: '✓';
    color:   #fff;
    font-size: .875rem;
    font-weight: 700;
}
.ce-tap-block:has(.ce-tap-block__input:checked) {
    background:   var(--ce-success-light);
    border-color: var(--ce-success);
}
.ce-tap-block__text { font-size: .9375rem; color: var(--ce-text); }
.ce-tap-block:has(.ce-tap-block__input:checked) .ce-tap-block__text { font-weight: 700; }
.ce-tap-block__input:focus-visible ~ .ce-tap-block__check {
    outline: 3px dashed var(--ce-border-focus);
    outline-offset: 2px;
}

/* ── Sport Cards (Onboarding) ──────────────────────────────── */
.ce-sport-cards {
    display:               grid;
    grid-template-columns: repeat(3, 1fr);
    gap:                   16px;
}
@media (max-width: 600px) {
    .ce-sport-cards { grid-template-columns: 1fr; }
}

/* Radio input hidden inside each card label */
.ce-sport-card__radio {
    position: absolute;
    opacity:  0;
    width:    0;
    height:   0;
    pointer-events: none;
}

.ce-sport-card {
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    gap:             8px;
    min-height:      120px;
    padding:         16px 20px;
    background:      var(--ce-bg);
    border:          2px solid var(--ce-border);
    border-radius:   var(--ce-radius);
    cursor:          pointer;
    transition:      background .15s, border-color .15s, color .15s;
    font-family:     var(--ce-font);
    user-select:     none;
}
.ce-sport-card:hover {
    border-color: var(--ce-accent);
    background:   var(--ce-accent-light);
}
/* Checked state via :has() — all modern browsers */
.ce-sport-card:has(.ce-sport-card__radio:checked) {
    background:   var(--ce-accent-light);
    border:       3px solid var(--ce-accent);
    color:        var(--ce-accent-dark);
}
/* Fallback via JS-added class for older browsers */
.ce-sport-card--selected {
    background:   var(--ce-accent-light);
    border:       3px solid var(--ce-accent);
    color:        var(--ce-accent-dark);
}
.ce-sport-card:has(.ce-sport-card__radio:focus-visible) {
    outline:        3px dashed var(--ce-accent);
    outline-offset: 2px;
}
.ce-sport-icon { font-size: 2rem; line-height: 1; }
.ce-sport-name { font-size: .9375rem; font-weight: 700; color: inherit; text-align: center; }

/* ── Onboarding Card ───────────────────────────────────────── */
.ce-onboard-wrap { padding: 24px 0; }
.ce-onboard-card {
    max-width:     540px;
    margin:        0 auto;
    background:    var(--ce-bg);
    border:        1px solid var(--ce-border);
    border-radius: var(--ce-radius);
    padding:       32px;
    box-shadow:    var(--ce-shadow-sm);
}
.ce-progress-bar { margin-bottom: 28px; }
.ce-progress-label { font-size: .875rem; color: var(--ce-text-secondary); display: block; margin-bottom: 6px; }
.ce-progress-track { height: 6px; background: var(--ce-bg-alt2); border-radius: 3px; overflow: hidden; }
.ce-progress-fill  { height: 100%; background: var(--ce-accent); border-radius: 3px; transition: width .3s; }

/* ── Notice Banners ────────────────────────────────────────── */
.ce-notice {
    padding:       14px 18px;
    border-radius: var(--ce-radius);
    font-size:     .9375rem;
    margin-bottom: 20px;
    border-left:   4px solid;
}
.ce-notice--success { background: var(--ce-success-light); color: var(--ce-success); border-color: var(--ce-success); }
.ce-notice--error   { background: var(--ce-danger-light);  color: var(--ce-danger);  border-color: var(--ce-danger);  }
.ce-notice--warning { background: var(--ce-warning-light); color: var(--ce-warning); border-color: var(--ce-warning); }
.ce-notice--info    { background: var(--ce-accent-light);  color: var(--ce-accent);  border-color: var(--ce-accent);  }

/* ── Program Header ────────────────────────────────────────── */
.ce-program-header {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    padding:         20px 24px;
    background:      var(--ce-bg);
    border:          1px solid var(--ce-border);
    border-radius:   var(--ce-radius);
    margin-bottom:   24px;
    box-shadow:      var(--ce-shadow-sm);
    gap:             16px;
}
.ce-program-header__info { display: flex; align-items: center; gap: 16px; }
.ce-program-icon { font-size: 2rem; }
.ce-headcount-num   { display: block; font-size: 2rem; font-weight: 800; color: var(--ce-accent); line-height: 1; }
.ce-headcount-label { font-size: .75rem; color: var(--ce-text-secondary); text-transform: uppercase; letter-spacing: .04em; }

/* ── CSV Ingestion Portal ──────────────────────────────────── */
.ce-csv-portal {
    display:       flex;
    align-items:   center;
    gap:           12px;
    flex-wrap:     wrap;
    background:    var(--ce-bg-alt);
    border:        1px solid var(--ce-border);
    border-radius: var(--ce-radius);
    padding:       16px 20px;
    margin-bottom: 24px;
}
.ce-csv-portal__title { font-weight: 700; font-size: .9375rem; width: 100%; margin-bottom: 4px; }
.ce-csv-form   { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ce-csv-filename { font-size: .875rem; color: var(--ce-text-secondary); }
.ce-csv-template-link { font-size: .875rem; color: var(--ce-accent); margin-left: auto; text-decoration: underline; }

/* ── Roster Table ──────────────────────────────────────────── */
.ce-roster-header {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    margin-bottom:   12px;
    flex-wrap:       wrap;
    gap:             12px;
}

.ce-roster-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.ce-roster-table {
    width:           100%;
    border-collapse: collapse;
    font-size:       .9375rem;
}
.ce-roster-table th {
    text-align:       left;
    font-size:        .8125rem;
    font-weight:      700;
    text-transform:   uppercase;
    letter-spacing:   .04em;
    color:            var(--ce-text-secondary);
    border-bottom:    2px solid var(--ce-border);
    padding:          10px 16px;
    white-space:      nowrap;
    background:       var(--ce-bg-alt);
}
.ce-roster-table td { padding: 0 16px; vertical-align: middle; }

.ce-roster-row       { min-height: 64px; border-bottom: 1px solid var(--ce-border); }
.ce-roster-row:hover { background: var(--ce-bg-alt); }

/* Set row height via td min-height isn't direct — use first td line-height trick */
.ce-roster-row td:first-child { padding-top: 14px; padding-bottom: 14px; }

.ce-athlete-name    { font-weight: 700; color: var(--ce-text); }
.ce-athlete-meta    { font-size: .8125rem; color: var(--ce-text-secondary); margin-top: 2px; }
.ce-position-abbr   { font-weight: 700; font-size: 1.0625rem; color: var(--ce-accent); }
.ce-position-group  { font-size: .8125rem; color: var(--ce-text-secondary); }
.ce-score-capsule   { font-size: 1.125rem; font-weight: 800; color: var(--ce-text); }
.ce-score-denom     { font-size: .75rem; font-weight: 400; color: var(--ce-text-muted); }
.ce-tier-label      { font-size: .8125rem; font-weight: 600; color: var(--ce-success); }
.ce-readiness-label { font-size: .75rem; font-weight: 500; color: var(--ce-accent); margin-top: 2px; }
.ce-score-empty     { font-size: .875rem; color: var(--ce-text-muted); font-style: italic; }
.ce-row-actions     { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── Card Section (Figma) ──────────────────────────────────────
   Shared white-card-with-blue-header pattern used across the
   redesigned screens (Roster Management, Depth Charts, ...).
   Screen-specific pieces (tables, forms) stay namespaced per
   screen (.ce-rm-*, .ce-dc-*) so they don't collide with the
   Archive screen, which still uses the .ce-roster-table classes
   above.
   ────────────────────────────────────────────────────────── */
.ce-card {
    background:    #fff;
    border:        1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow:    0 1px 2px rgba(0,0,0,.05);
    margin-bottom: 24px;
    overflow:      hidden;
}
.ce-card__hd {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             12px;
    padding:         16px 24px;
    background:      #E3F1FF;
    border-bottom:   1px solid #E5E7EB;
    flex-wrap:       wrap;
}
.ce-card__hd-title { font-size: 16px; font-weight: 700; color: #111827; }
.ce-card__hd-sub   { font-size: 14px; color: #4B5563; margin-top: 2px; }
.ce-card__body { padding: 24px; }

.ce-rm-import { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ce-rm-upload {
    flex:            1 0 220px;
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    gap:             8px;
    padding:         22px;
    border:          2px dashed #E5E7EB;
    border-radius:   8px;
    text-align:      center;
}
.ce-rm-upload__label  { font-size: 14px; font-weight: 600; color: #111827; }
.ce-rm-upload__hint   { font-size: 12px; color: #4B5563; }
.ce-rm-upload__file   { display: none; }
.ce-rm-upload__filename { font-size: 12px; color: #4B5563; }
.ce-rm-template-link {
    display:         inline-flex;
    align-items:     center;
    gap:             4px;
    font-size:       12px;
    font-weight:     500;
    color:           var(--ce-accent-brand);
    text-decoration: underline;
    margin-top:      4px;
}
.ce-rm-divider { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.ce-rm-divider__bar { width: 1px; height: 32px; background: #E5E7EB; }
.ce-rm-divider__label { font-size: 12px; font-weight: 600; letter-spacing: .05em; color: #4B5563; text-transform: uppercase; }
.ce-rm-addplayer {
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    gap:             12px;
    padding:         0 16px;
    flex-shrink:     0;
    text-align:      center;
}
.ce-rm-addplayer__label { font-size: 14px; font-weight: 600; color: #111827; }
.ce-rm-addplayer__hint  { font-size: 12px; color: #4B5563; }
.ce-rm-addplayer .ce-btn { min-height: auto; padding: 10px 20px; font-size: 14px; border-radius: 6px; }

.ce-count-badge {
    display:         inline-flex;
    align-items:     center;
    padding:         2px 8px;
    border-radius:   9999px;
    background:      var(--ce-accent-brand);
    color:           #fff;
    font-size:       12px;
    font-weight:     600;
    margin-left:     8px;
}
.ce-rm-archive-link { font-size: 13px; font-weight: 500; color: #4B5563; text-decoration: none; white-space: nowrap; }
.ce-rm-archive-link:hover { color: #111827; text-decoration: underline; }

.ce-rm-table-wrap, .ce-staff-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ce-rm-table, .ce-staff-table { width: 100%; min-width: 700px; border-collapse: collapse; }
.ce-rm-table th, .ce-staff-table th {
    text-align:     left;
    font-size:      12px;
    font-weight:    700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color:          #4B5563;
    background:     #F9FAFB;
    border-bottom:  1px solid #E5E7EB;
    padding:        12px 16px;
    white-space:    nowrap;
}
.ce-rm-table th:first-child, .ce-rm-table td:first-child,
.ce-staff-table th:first-child, .ce-staff-table td:first-child { padding-left: 24px; }
.ce-rm-table td, .ce-staff-table td { padding: 14px 16px; border-top: 1px solid #E5E7EB; vertical-align: middle; }
.ce-rm-table tbody tr:first-child td, .ce-staff-table tbody tr:first-child td { border-top: none; }
.ce-rm-table tbody tr:hover td, .ce-staff-table tbody tr:hover td { background: var(--ce-bg-alt); }

.ce-staff-name  { font-size: 14px; font-weight: 600; color: #111827; }
.ce-staff-email { font-size: 13px; color: #4B5563; }
.ce-staff-role  {
    display:       inline-flex;
    padding:       3.5px 8px;
    border-radius: 4px;
    background:    #EFF6FF;
    color:         var(--ce-accent-brand);
    font-size:     12px;
    font-weight:   600;
}
.ce-staff-added { font-size: 13px; color: #4B5563; }

.ce-rm-name { font-size: 14px; font-weight: 600; color: #111827; }
.ce-rm-meta { font-size: 12px; color: #4B5563; margin-top: 2px; }
.ce-rm-pos-pill {
    display:       inline-flex;
    padding:       3.5px 8px;
    border-radius: 4px;
    background:    #EFF6FF;
    color:         var(--ce-accent-brand);
    font-size:     12px;
    font-weight:   600;
}
.ce-rm-pos-group { font-size: 12px; color: #4B5563; margin-top: 2px; }
.ce-rm-score      { font-size: 14px; font-weight: 700; color: #111827; }
.ce-rm-score-empty { font-size: 13px; color: #4B5563; font-style: italic; }

.ce-rm-history-btn {
    display:         inline-flex;
    align-items:     center;
    gap:             6px;
    padding:         5px 9px;
    border:          1px solid #E5E7EB;
    border-radius:   4px;
    background:      #fff;
    color:           #4B5563;
    font-size:       12px;
    font-weight:     400;
    cursor:          pointer;
}
.ce-rm-history-btn:hover { background: var(--ce-bg-alt2); color: #111827; }
.ce-rm-history-btn:focus-visible { outline: 3px solid var(--ce-accent-brand); outline-offset: 2px; }

.ce-rm-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ce-rm-btn { display: inline-flex; align-items: center; justify-content: center; padding: 7px 13px; border-radius: 4px; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; min-height: 32px; }
.ce-rm-btn:focus-visible { outline: 3px solid var(--ce-accent-brand); outline-offset: 2px; }
.ce-rm-btn--eval    { background: var(--ce-accent-brand); color: #fff; }
.ce-rm-btn--eval:hover { background: var(--ce-accent-dark); }
.ce-rm-btn--edit    { background: #fff; border-color: #E5E7EB; color: #374151; font-weight: 500; }
.ce-rm-btn--edit:hover { background: var(--ce-bg-alt2); }
.ce-rm-btn--archive { background: #fff; border-color: #DC2626; color: #DC2626; font-weight: 500; }
.ce-rm-btn--archive:hover { background: var(--ce-danger-light); }

@media (max-width: 900px) {
    .ce-card__body { padding: 16px; }
    .ce-rm-import { flex-direction: column; align-items: stretch; }
    .ce-rm-upload { flex: 1 1 auto; }
    .ce-rm-divider { flex-direction: row; align-self: center; }
    .ce-rm-divider__bar { width: 32px; height: 1px; }
    .ce-rm-addplayer { padding: 0; }
    .ce-rm-addplayer .ce-btn { width: 100%; }

    /* Stacked-card table — trades horizontal scroll for vertical stacking. */
    .ce-rm-table-wrap { overflow-x: visible; }
    .ce-rm-table { display: block; width: 100%; min-width: 0; }
    .ce-rm-table thead { display: none; }
    .ce-rm-table tbody { display: block; }
    .ce-rm-table tr.ce-rm-row {
        display:       flex;
        flex-wrap:     wrap;
        align-items:   center;
        gap:           4px 12px;
        background:    #fff;
        border:        1px solid #E5E7EB !important;
        border-radius: 8px;
        padding:       16px;
        margin:        0 16px 12px;
        width:         auto;
    }
    .ce-rm-table tbody tr.ce-rm-row:first-child { margin-top: 16px; }
    .ce-rm-table td { display: block; padding: 0; border: none !important; }
    .ce-rm-table td:nth-child(1) { flex: 1 0 100%; order: 1; }
    .ce-rm-table td:nth-child(2) { order: 2; }
    .ce-rm-table td:nth-child(3) { order: 3; margin-left: auto; text-align: right; }
    .ce-rm-table td:nth-child(4) { flex: 1 0 100%; order: 4; }
    .ce-rm-table td:nth-child(5) { flex: 1 0 100%; order: 5; }

    .ce-rm-actions { flex-direction: column; align-items: stretch; }
    .ce-rm-actions form { width: 100%; }
    .ce-rm-btn { width: 100%; }

    /* History drawer follows its trigger row instead of spanning a table row.
       :not([hidden]) keeps the toggle working — an unconditional `display`
       here would override the browser's default [hidden] handling and the
       drawer would never be able to close. */
    .ce-history-drawer:not([hidden]) { display: block; margin: -8px 16px 12px; }
    .ce-history-drawer[hidden] { display: none; }
    .ce-history-drawer > td { display: block; padding: 0; }

    /* Staff table — same stacked-card treatment as Roster Management. */
    .ce-staff-table-wrap { overflow-x: visible; }
    .ce-staff-table { display: block; width: 100%; min-width: 0; }
    .ce-staff-table thead { display: none; }
    .ce-staff-table tbody { display: block; }
    .ce-staff-table tr.ce-staff-row {
        display:       flex;
        flex-wrap:     wrap;
        align-items:   center;
        gap:           4px 12px;
        background:    #fff;
        border:        1px solid #E5E7EB !important;
        border-radius: 8px;
        padding:       16px;
        margin:        0 16px 12px;
        width:         auto;
    }
    .ce-staff-table tbody tr.ce-staff-row:first-child { margin-top: 16px; }
    .ce-staff-table td { display: block; padding: 0; border: none !important; }
    .ce-staff-table td:nth-child(1) { flex: 1 0 100%; order: 1; }
    .ce-staff-table td:nth-child(2) { flex: 1 0 100%; order: 2; }
    .ce-staff-table td:nth-child(3) { order: 3; }
    .ce-staff-table td:nth-child(4) { order: 4; margin-left: auto; }
    .ce-staff-table td:nth-child(5) { flex: 1 0 100%; order: 5; }
    .ce-staff-table td:nth-child(5) .ce-rm-btn { width: 100%; }
}

/* ── Depth Charts (Figma) ──────────────────────────────────── */
.ce-dc-btn-outline {
    display:         inline-flex;
    align-items:     center;
    gap:             6px;
    padding:         7px 13px;
    border:          1px solid var(--ce-accent-brand);
    border-radius:   6px;
    background:      #fff;
    color:           var(--ce-accent-brand);
    font-size:       12px;
    font-weight:     600;
    text-decoration: none;
    cursor:          pointer;
}
.ce-dc-btn-outline:hover { background: #EFF6FF; }
.ce-dc-btn-outline:focus-visible { outline: 3px solid var(--ce-accent-brand); outline-offset: 2px; }

.ce-dc-resort {
    background:    transparent;
    border:        none;
    color:         #4B5563;
    font-size:     13px;
    font-weight:   500;
    text-decoration: underline;
    cursor:        pointer;
    padding:       4px;
}
.ce-dc-resort:hover { color: #111827; }
.ce-dc-resort:focus-visible { outline: 3px solid var(--ce-accent-brand); outline-offset: 2px; }

.ce-dc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ce-dc-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.ce-dc-table th {
    text-align:     left;
    font-size:      12px;
    font-weight:    700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color:          #4B5563;
    background:     #F9FAFB;
    border-bottom:  1px solid #E5E7EB;
    padding:        12px 16px;
    white-space:    nowrap;
}
.ce-dc-table th:first-child, .ce-dc-table td:first-child { padding-left: 24px; width: 48px; }
.ce-dc-table td { padding: 14px 16px; border-top: 1px solid #E5E7EB; vertical-align: middle; }
.ce-dc-table tbody tr:first-child td { border-top: none; }

.ce-dc-group-row td {
    background:     rgba(13,27,75,.05);
    padding:        8px 24px;
    font-size:      12px;
    font-weight:    700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color:          var(--ce-header-navy);
}

.ce-dc-order { font-size: 12px; font-weight: 600; color: #4B5563; }
.ce-dc-player { font-size: 14px; font-weight: 600; color: #111827; }
.ce-dc-player span { font-weight: 400; color: #4B5563; }

.ce-dc-status {
    display:       inline-flex;
    padding:       4.5px 9px;
    border-radius: 4px;
    font-size:     12px;
    font-weight:   600;
    border:        1px solid transparent;
}
.ce-dc-status--starter { background: var(--ce-success-light); border-color: #BBF7D0; color: var(--ce-success); }
.ce-dc-status--backup  { background: #EFF6FF; border-color: #BFDBFE; color: var(--ce-accent-brand); }

.ce-dc-score { font-size: 14px; font-weight: 700; color: #111827; }

.ce-dc-adjust { display: flex; align-items: center; gap: 4px; }
.ce-dc-adjust-btn {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    width:           28px;
    height:          28px;
    border:          1px solid #E5E7EB;
    border-radius:   4px;
    background:      #fff;
    color:           #374151;
    font-size:       12px;
    cursor:          pointer;
}
.ce-dc-adjust-btn:hover  { background: var(--ce-bg-alt2); }
.ce-dc-adjust-btn:disabled { opacity: .35; cursor: not-allowed; }
.ce-dc-adjust-btn:focus-visible { outline: 3px solid var(--ce-accent-brand); outline-offset: 2px; }

.ce-dc-unassigned__row {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             12px;
    padding:         14px 24px;
    border-top:      1px solid #E5E7EB;
}
.ce-dc-unassigned__row:first-child { border-top: none; }

@media (max-width: 900px) {
    .ce-dc-unassigned__row { padding: 12px 16px; }
}

@media (max-width: 900px) {
    .ce-dc-table-wrap { overflow-x: visible; }
    .ce-dc-table { display: block; width: 100%; min-width: 0; }
    .ce-dc-table thead { display: none; }
    .ce-dc-table tbody { display: block; }
    .ce-dc-group-row { display: block; margin: 16px 16px 0; }
    .ce-dc-group-row:first-child { margin-top: 16px; }
    .ce-dc-group-row td { display: block; border-radius: 6px 6px 0 0; }
    .ce-dc-table tr.ce-dc-row {
        display:       flex;
        flex-wrap:     wrap;
        align-items:   center;
        gap:           4px 12px;
        background:    #fff;
        border:        1px solid #E5E7EB !important;
        border-top:    none !important;
        padding:       12px 16px;
        margin:        0 16px;
    }
    .ce-dc-table tr.ce-dc-row:last-of-type { border-radius: 0 0 6px 6px; margin-bottom: 16px; }
    .ce-dc-table td { display: block; padding: 0; border: none !important; }
    .ce-dc-table td:nth-child(1) { order: 1; }
    .ce-dc-table td:nth-child(2) { order: 2; flex: 1 0 auto; }
    .ce-dc-table td:nth-child(3) { order: 3; }
    .ce-dc-table td:nth-child(4) { order: 4; margin-left: auto; }
    .ce-dc-table td:nth-child(5) { flex: 1 0 100%; order: 5; }
    .ce-dc-adjust { justify-content: flex-end; }
}

/* ── Player Reports (Figma) ────────────────────────────────── */
.ce-pr-toolbar {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             16px;
    flex-wrap:       wrap;
    width:           100%;
    margin-bottom:   24px;
}
.ce-pr-toolbar__hint { font-size: 14px; color: #4B5563; }
.ce-pr-toolbar__filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ce-pr-search {
    min-height:    40px;
    padding:       9px 12px 9px 33px;
    border:        1px solid #E5E7EB;
    border-radius: 8px;
    background:    #F9FAFB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") no-repeat 12px center;
    font-size:     14px;
    color:         #111827;
    width:         192px;
}
.ce-pr-select {
    min-height:    40px;
    padding:       9px 12px;
    border:        1px solid #E5E7EB;
    border-radius: 8px;
    background:    #F9FAFB;
    font-size:     14px;
    color:         #374151;
}

.ce-pr-kpis { display: flex; gap: 12px; width: 100%; flex-wrap: wrap; margin-bottom: 24px; }
.ce-pr-kpi {
    flex:          1 1 140px;
    padding:       17px;
    background:    #F9FAFB;
    border:        1px solid #E5E7EB;
    border-radius: 12px;
    text-align:    center;
}
.ce-pr-kpi__num   { font-size: 24px; font-weight: 700; color: var(--ce-header-navy); line-height: 32px; }
.ce-pr-kpi__num--accent { color: #16A34A; }
.ce-pr-kpi__label { font-size: 12px; font-weight: 500; color: #4B5563; margin-top: 4px; }

.ce-pr-row {
    display:       flex;
    align-items:   center;
    justify-content: space-between;
    gap:           16px;
    padding:       20px 24px;
    border-top:    1px solid #E5E7EB;
    flex-wrap:     wrap;
}
.ce-pr-row:first-child { border-top: none; }
.ce-pr-row.is-hidden { display: none; }

.ce-pr-avatar {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           44px;
    height:          44px;
    flex-shrink:     0;
    border-radius:   9999px;
    background:      var(--ce-header-navy);
    color:           #fff;
    font-size:       14px;
    font-weight:     700;
}
.ce-pr-main { display: flex; gap: 16px; align-items: center; flex: 1 1 320px; min-width: 0; }
.ce-pr-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ce-pr-info-line1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ce-pr-name { font-size: 16px; font-weight: 600; color: #111827; }
.ce-pr-pos-pill {
    display:       inline-flex;
    padding:       3px 9px;
    border-radius: 4px;
    background:    #EFF6FF;
    border:        1px solid #DBEAFE;
    color:         var(--ce-accent-brand);
    font-size:     12px;
    font-weight:   600;
}
.ce-pr-grad { font-size: 12px; color: #4B5563; }
.ce-pr-summary { font-size: 12px; color: #4B5563; line-height: 19.5px; }
.ce-pr-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.ce-pr-meta-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #4B5563; }

.ce-pr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.ce-pr-side-top { display: flex; align-items: center; gap: 12px; }
.ce-pr-score-num { font-size: 24px; font-weight: 800; color: var(--ce-header-navy); line-height: 24px; text-align: center; }
.ce-pr-score-label { font-size: 10px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #4B5563; text-align: center; margin-top: 2px; }
.ce-pr-status {
    display:       inline-flex;
    align-items:   center;
    gap:           4px;
    padding:       5px 11px;
    border-radius: 8px;
    font-size:     12px;
    font-weight:   700;
    border:        1px solid transparent;
    white-space:   nowrap;
}
.ce-pr-status--starter { background: #DCFCE7; border-color: #BBF7D0; color: #166534; }
.ce-pr-status--backup  { background: #EFF6FF; border-color: #DBEAFE; color: var(--ce-accent-brand); }
.ce-pr-status--reserve { background: #F3F4F6; border-color: #E5E7EB; color: #374151; }
.ce-pr-view-btn {
    display:         inline-flex;
    align-items:     center;
    gap:             8px;
    padding:         8px 16px;
    border-radius:   8px;
    background:      var(--ce-accent-brand);
    color:           #fff;
    font-size:       14px;
    font-weight:     600;
    text-decoration: none;
}
.ce-pr-view-btn:hover { background: var(--ce-accent-dark); }
.ce-pr-view-btn:focus-visible { outline: 3px solid var(--ce-accent-brand); outline-offset: 2px; }

@media (max-width: 900px) {
    .ce-pr-toolbar { flex-direction: column; align-items: stretch; }
    .ce-pr-toolbar__filters { width: 100%; }
    .ce-pr-search { flex: 1 1 auto; width: auto; }
    .ce-pr-select { flex: 1 1 auto; }
    .ce-pr-row { flex-direction: column; align-items: stretch; padding: 16px; }
    .ce-pr-side { align-items: stretch; }
    .ce-pr-side-top { justify-content: space-between; }
    .ce-pr-view-btn { justify-content: center; }
}

/* ── Team Dashboard (Figma) ────────────────────────────────── */
.ce-td-kpis { display: flex; gap: 16px; width: 100%; flex-wrap: wrap; margin-bottom: 24px; }
.ce-td-kpi {
    flex:          1 1 200px;
    padding:       17px;
    background:    #fff;
    border:        1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow:    0 1px 1px rgba(0,0,0,.05);
}
.ce-td-kpi__hd { display: flex; align-items: center; justify-content: space-between; }
.ce-td-kpi__label { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #4B5563; }
.ce-td-kpi__icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9999px; font-size: 14px; flex-shrink: 0; }
.ce-td-kpi__icon--blue   { background: #EFF6FF; }
.ce-td-kpi__icon--amber  { background: #FFFBEB; }
.ce-td-kpi__icon--green  { background: #F0FDF4; }
.ce-td-kpi__icon--purple { background: #FAF5FF; }
.ce-td-kpi__num   { font-size: 30px; font-weight: 700; color: var(--ce-header-navy); line-height: 36px; margin-top: 4px; }
.ce-td-kpi__sub   { font-size: 12px; color: #4B5563; }

.ce-td-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-bottom: 24px; }
.ce-td-grid .ce-card { margin-bottom: 0; height: 100%; display: flex; flex-direction: column; }

.ce-card__hd-link {
    display:         inline-flex;
    align-items:     center;
    gap:             4px;
    font-size:       12px;
    font-weight:     600;
    color:           var(--ce-accent-brand);
    text-decoration: none;
    flex-shrink:     0;
}
.ce-card__hd-link:hover { text-decoration: underline; }
.ce-card__ft {
    padding:       13px 20px;
    border-top:    1px solid #E5E7EB;
    display:       flex;
    align-items:   center;
    justify-content: space-between;
    gap:           12px;
    flex-wrap:     wrap;
}
.ce-card__ft-link {
    display:         inline-flex;
    align-items:     center;
    gap:             6px;
    font-size:       14px;
    font-weight:     600;
    color:           var(--ce-accent-brand);
    text-decoration: none;
}
.ce-card__ft-link:hover { text-decoration: underline; }
.ce-card__scroll { max-height: 360px; overflow-y: auto; }

.ce-td-bar-row { display: flex; flex-direction: column; gap: 6px; padding: 12px 20px; }
.ce-td-bar-row + .ce-td-bar-row { border-top: 1px solid #F3F4F6; }
.ce-td-bar-row__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ce-td-bar-row__label { display: flex; align-items: center; gap: 8px; }
.ce-td-bar-row__abbr { font-size: 12px; font-weight: 700; color: #111827; min-width: 32px; }
.ce-td-bar-row__name { font-size: 12px; color: #4B5563; }
.ce-td-bar-row__value { font-size: 12px; font-weight: 700; color: var(--ce-header-navy); }
.ce-td-bar-track { height: 8px; border-radius: 9999px; background: #F3F4F6; overflow: hidden; }
.ce-td-bar-fill { height: 8px; border-radius: 9999px; }
.ce-td-bar-fill--elite { background: #22C55E; }
.ce-td-bar-fill--good  { background: var(--ce-accent-brand); }
.ce-td-bar-fill--review { background: #FBBF24; }

.ce-td-legend { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ce-td-legend__item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #4B5563; }
.ce-td-legend__dot { width: 12px; height: 12px; border-radius: 9999px; flex-shrink: 0; }

.ce-td-list-row {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             12px;
    padding:         12px 20px;
}
.ce-td-list-row + .ce-td-list-row { border-top: 1px solid #F3F4F6; }
.ce-td-list-row__main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ce-td-avatar {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           32px;
    height:          32px;
    flex-shrink:     0;
    border-radius:   9999px;
    background:      var(--ce-header-navy);
    color:           #fff;
    font-size:       11px;
    font-weight:     700;
}
.ce-td-list-row__name { font-size: 14px; font-weight: 500; color: #111827; }
.ce-td-list-row__meta { font-size: 12px; color: #4B5563; }
.ce-td-badge {
    display:       inline-flex;
    padding:       2px 8px;
    border-radius: 9999px;
    font-size:     12px;
    font-weight:   600;
    white-space:   nowrap;
}
.ce-td-badge--overdue { background: #FEE2E2; color: #B91C1C; }
.ce-td-badge--not-evaluated { background: #FEF3C7; color: #B45309; }

.ce-td-depth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; }
.ce-td-depth-row + .ce-td-depth-row { border-top: 1px solid #F3F4F6; }
.ce-td-depth-row__abbr { font-size: 12px; font-weight: 700; color: var(--ce-accent-brand); width: 40px; flex-shrink: 0; }
.ce-td-depth-slot { display: flex; align-items: center; gap: 8px; flex: 1 0 0; min-width: 0; }
.ce-td-avatar-sm {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           24px;
    height:          24px;
    flex-shrink:     0;
    border-radius:   9999px;
    background:      var(--ce-header-navy);
    color:           #fff;
    font-size:       9px;
    font-weight:     700;
}
.ce-td-depth-name { font-size: 14px; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-td-depth-name--muted { color: #4B5563; font-weight: 400; }
.ce-td-depth-rank {
    font-size:     10px;
    font-weight:   600;
    padding:       2px 6px;
    border-radius: 4px;
    background:    rgba(0,71,171,.1);
    color:         var(--ce-accent-brand);
    flex-shrink:   0;
}
.ce-td-depth-rank--muted { background: #F3F4F6; color: #6B7280; }

.ce-td-footer-stats { display: flex; border-top: 1px solid #E5E7EB; padding-top: 13px; }
.ce-td-footer-stat { flex: 1 0 0; text-align: center; }
.ce-td-footer-stat + .ce-td-footer-stat { border-left: 1px solid #E5E7EB; }
.ce-td-footer-stat__label { font-size: 12px; color: #4B5563; }
.ce-td-footer-stat__num { font-size: 18px; font-weight: 700; color: #111827; line-height: 28px; }
.ce-td-footer-stat__num--muted { color: #9CA3AF; }
.ce-td-footer-stat__num--danger { color: #DC2626; }

.ce-td-recruit-kpis { display: flex; gap: 16px; padding: 20px 20px 0; flex-wrap: wrap; }
.ce-td-recruit-kpi { flex: 1 1 120px; padding: 13px; background: var(--ce-bg-alt); border: 1px solid #E5E7EB; border-radius: 8px; text-align: center; }
.ce-td-recruit-kpi__num { font-size: 24px; font-weight: 700; color: var(--ce-header-navy); line-height: 32px; }
.ce-td-recruit-kpi__label { font-size: 12px; color: #4B5563; }

@media (max-width: 900px) {
    .ce-td-grid { grid-template-columns: 1fr; }
    .ce-td-kpi { flex: 1 1 45%; }
}

/* ── History Drawer ────────────────────────────────────────── */
.ce-history-drawer { background: var(--ce-bg-alt); }
.ce-history-drawer > td { padding: 0; }

.ce-history-panel { padding: 20px 24px; }
.ce-history-title { font-weight: 700; font-size: .9375rem; color: var(--ce-text-secondary); margin-bottom: 14px; }
.ce-history-empty { color: var(--ce-text-muted); font-style: italic; }
.ce-history-entry { border: 1px solid var(--ce-border); border-radius: var(--ce-radius); padding: 14px 16px; margin-bottom: 10px; background: var(--ce-bg); }
.ce-history-entry__header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.ce-history-date  { font-weight: 700; color: var(--ce-text); }
.ce-history-score { font-weight: 800; font-size: 1.0625rem; color: var(--ce-accent); margin-left: auto; }
.ce-history-meta  { font-size: .8125rem; color: var(--ce-text-secondary); }

/* ── Breadcrumb ────────────────────────────────────────────── */
.ce-breadcrumb {
    display:         inline-flex;
    align-items:     center;
    gap:             6px;
    font-size:       .875rem;
    font-weight:     600;
    color:           var(--ce-accent-brand);
    text-decoration: none;
    margin-bottom:   16px;
}
.ce-breadcrumb:hover { text-decoration: underline; }
.ce-breadcrumb:focus-visible { outline: 3px solid var(--ce-accent-brand); outline-offset: 2px; border-radius: 2px; }

/* ── Team Profile (Figma) ──────────────────────────────────── */
.ce-tp-preview {
    display:       flex;
    align-items:   center;
    gap:           12px;
    padding:       16px 24px;
    border-bottom: 1px solid #E5E7EB;
}
.ce-tp-preview-icon {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           40px;
    height:          40px;
    flex-shrink:     0;
    border-radius:   9999px;
    background:      var(--ce-bg-alt);
    border:          1px solid #E5E7EB;
    font-size:       18px;
}
.ce-tp-preview-logo { width: 40px; height: 40px; flex-shrink: 0; border-radius: 9999px; object-fit: cover; border: 1px solid #E5E7EB; }
.ce-tp-preview-name { font-size: 14px; font-weight: 600; color: #111827; }
.ce-tp-preview-sport { font-size: 12px; color: #4B5563; }

.ce-tp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; padding: 20px 24px; }
.ce-tp-grid > .ce-tp-span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .ce-tp-grid { grid-template-columns: 1fr; } }

.ce-tp-field-label { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; display: block; }
.ce-tp-readonly {
    min-height:    var(--ce-touch-min);
    display:       flex;
    align-items:   center;
    padding:       0 14px;
    background:    #F3F4F6;
    border:        1px solid #E5E7EB;
    border-radius: 8px;
    color:         #374151;
    font-size:     .9375rem;
}
.ce-tp-hint { font-size: 12px; color: #6B7280; margin-top: 4px; }
.ce-tp-counter { font-size: 12px; color: #6B7280; margin-top: 4px; text-align: right; }
.ce-tp-textarea {
    width:         100%;
    min-height:    110px;
    padding:       12px 14px;
    border:        1px solid #D1D5DB;
    border-radius: 8px;
    font-family:   inherit;
    font-size:     .9375rem;
    color:         #111827;
    resize:        vertical;
}
.ce-tp-textarea:focus { outline: 2px solid var(--ce-accent-brand); outline-offset: 1px; }

/* ── Evaluation Form ───────────────────────────────────────── */
.ce-eval-header {
    background:    var(--ce-text);
    color:         #fff;
    display:       flex;
    align-items:   center;
    justify-content: space-between;
    padding:       14px 24px;
    border-radius: var(--ce-radius);
    margin-bottom: 24px;
    gap:           16px;
    flex-wrap:     wrap;
}
.ce-eval-header__athlete { display: flex; flex-direction: column; gap: 2px; }
.ce-eval-name  { font-size: 1.125rem; font-weight: 800; color: #fff; }
.ce-eval-pos   { font-size: .875rem;  color: rgba(255,255,255,.75); }

.ce-eval-grid {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   24px;
}
@media (max-width: 840px) { .ce-eval-grid { grid-template-columns: 1fr; } }

.ce-eval-section {
    background:    var(--ce-bg);
    border:        1px solid var(--ce-border);
    border-radius: var(--ce-radius);
    padding:       24px;
    margin-bottom: 24px;
}
.ce-eval-section-title {
    font-size:    1.0625rem;
    font-weight:  800;
    margin:       0 0 20px;
    color:        var(--ce-text);
    display:      flex;
    align-items:  center;
    gap:          10px;
}
.ce-section-num {
    background:    var(--ce-accent);
    color:         #fff;
    border-radius: 50%;
    width:         28px;
    height:        28px;
    display:       inline-flex;
    align-items:   center;
    justify-content: center;
    font-size:     .875rem;
    font-weight:   800;
    flex-shrink:   0;
}
.ce-eval-section-hint { font-size: .875rem; color: var(--ce-text-secondary); margin-bottom: 16px; }

.ce-eval-submit {
    display:         flex;
    align-items:     center;
    gap:             16px;
    flex-wrap:       wrap;
    padding:         24px 0;
}

/* ── Athlete Form ──────────────────────────────────────────── */
.ce-form-grid {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   16px 24px;
}
@media (max-width: 600px) { .ce-form-grid { grid-template-columns: 1fr; } }
.ce-form-actions {
    display:     flex;
    gap:         12px;
    flex-wrap:   wrap;
    margin-top:  28px;
    padding-top: 20px;
    border-top:  2px solid var(--ce-border);
}

/* ── Depth Chart ───────────────────────────────────────────── */
.ce-depth-group { margin-bottom: 32px; }
.ce-depth-group__title { font-size: 1.0625rem; font-weight: 700; margin: 0 0 12px; color: var(--ce-text-secondary); }

.ce-depth-table { width: 100%; border-collapse: collapse; }
.ce-depth-table th {
    text-align:   left;
    font-size:    .8125rem;
    font-weight:  700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color:        var(--ce-text-secondary);
    border-bottom: 2px solid var(--ce-border);
    padding:      10px 16px;
    background:   var(--ce-bg-alt);
}
.ce-depth-table td { padding: 14px 16px; border-bottom: 1px solid var(--ce-border); vertical-align: middle; }
.ce-depth-row:hover { background: var(--ce-bg-alt); }

.ce-string-label {
    display:       inline-block;
    padding:       3px 10px;
    border-radius: 20px;
    font-size:     .8125rem;
    font-weight:   700;
}
.ce-string-label--1 { background: #fef9c3; color: #92400e; }
.ce-string-label--2 { background: var(--ce-bg-alt2); color: var(--ce-text-secondary); }
.ce-string-label--3 { background: var(--ce-bg-alt2); color: var(--ce-text-muted); }
.ce-string-label--4 { background: var(--ce-bg-alt); color: var(--ce-text-muted); }

.ce-depth-jersey { font-size: .8125rem; color: var(--ce-text-secondary); margin-left: 8px; }
.ce-depth-score  { font-weight: 700; color: var(--ce-accent); }
.ce-depth-controls { display: flex; gap: 8px; }

.ce-depth-unassigned {
    background:    var(--ce-bg-alt);
    border:        1px solid var(--ce-border);
    border-radius: var(--ce-radius);
    padding:       16px 20px;
    margin-bottom: 24px;
}
.ce-depth-unassigned__title { font-weight: 700; margin-bottom: 12px; color: var(--ce-text-secondary); }
.ce-depth-unassigned__list  { display: flex; flex-direction: column; gap: 10px; }
.ce-depth-assign-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ce-athlete-chip {
    padding:       4px 10px;
    background:    var(--ce-accent-light);
    color:         var(--ce-accent-dark);
    border-radius: 20px;
    font-size:     .875rem;
    font-weight:   600;
}

/* ── Empty State ───────────────────────────────────────────── */
.ce-empty-state {
    text-align:  center;
    padding:     48px 24px;
    color:       var(--ce-text-secondary);
    border:      2px dashed var(--ce-border);
    border-radius: var(--ce-radius);
}
.ce-empty-state p { font-size: 1rem; margin-bottom: 20px; }

/* ── Admin Preview Banner ──────────────────────────────────── */
.ce-admin-preview-bar {
    background:    #1e3a8a;
    color:         #fff;
    font-size:     .875rem;
    font-weight:   600;
    text-align:    center;
    padding:       10px 20px;
    border-radius: var(--ce-radius);
    margin-bottom: 16px;
    letter-spacing: .01em;
}

/* ── Gate / Checkout Cards ─────────────────────────────────── */
.ce-gate {
    display:         flex;
    align-items:     center;
    justify-content: center;
    min-height:      400px;
    padding:         40px 16px;
}
.ce-gate-card {
    max-width:     420px;
    width:         100%;
    background:    var(--ce-bg);
    border:        1px solid var(--ce-border);
    border-radius: var(--ce-radius);
    padding:       40px 32px;
    text-align:    center;
    box-shadow:    var(--ce-shadow-md);
}
.ce-gate-card h2 { font-size: 1.375rem; margin: 0 0 12px; }
.ce-gate-card p  { color: var(--ce-text-secondary); margin: 0 0 24px; }

.ce-checkout-wrap {
    display:         flex;
    align-items:     center;
    justify-content: center;
    padding:         24px;
}
.ce-checkout-card {
    max-width:     460px;
    width:         100%;
    background:    var(--ce-bg);
    border:        1px solid var(--ce-border);
    border-radius: var(--ce-radius);
    padding:       32px;
    text-align:    center;
    box-shadow:    var(--ce-shadow-md);
}
.ce-checkout-desc { color: var(--ce-text-secondary); margin-bottom: 24px; }

/* Checkout pre-form */
.ce-checkout-card--form { max-width: 520px; text-align: left; }
.ce-checkout-heading { font-size: 1.375rem; font-weight: 800; margin: 0 0 8px; }
.ce-signup-form { margin-top: 24px; }
.ce-signup-row {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   14px;
    margin-bottom:         14px;
}
@media (max-width: 480px) { .ce-signup-row { grid-template-columns: 1fr; } }
.ce-signup-field { margin-bottom: 14px; }
.ce-signup-field:last-child { margin-bottom: 20px; }
.ce-checkout-legal {
    font-size:   .8125rem;
    color:       var(--ce-text-muted);
    text-align:  center;
    margin-top:  16px;
    line-height: 1.5;
}

/* Steps indicator */
.ce-steps {
    display:         flex;
    align-items:     center;
    gap:             12px;
    margin-bottom:   24px;
    padding-bottom:  20px;
    border-bottom:   1px solid var(--ce-border);
}
.ce-step {
    display:     flex;
    align-items: center;
    gap:         8px;
    font-size:   .9375rem;
    color:       var(--ce-text-muted);
    font-weight: 500;
}
.ce-step--active { color: var(--ce-accent); font-weight: 700; }
.ce-step--done   { color: var(--ce-success); font-weight: 600; }
.ce-step-num {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    width:           26px;
    height:          26px;
    border-radius:   50%;
    background:      var(--ce-bg-alt2);
    font-size:       .8125rem;
    font-weight:     800;
    color:           var(--ce-text-muted);
}
.ce-step--active .ce-step-num { background: var(--ce-accent);   color: #fff; }
.ce-step--done   .ce-step-num { background: var(--ce-success);  color: #fff; }
.ce-step-divider { color: var(--ce-border); font-size: 1.125rem; }

/* Checkout success message */
.ce-checkout-success-msg {
    background:    var(--ce-success-light);
    color:         var(--ce-success);
    border:        1px solid var(--ce-success);
    border-radius: var(--ce-radius);
    padding:       14px 18px;
    font-weight:   600;
    font-size:     .9375rem;
    margin-bottom: 20px;
}
.ce-checkout-account-row {
    display:      flex;
    align-items:  center;
    gap:          8px;
    padding:      12px 16px;
    background:   var(--ce-bg-alt);
    border-radius: var(--ce-radius);
    margin-bottom: 20px;
    font-size:    .9375rem;
}
.ce-checkout-account-label { color: var(--ce-text-secondary); }
.ce-checkout-pending {
    background:    var(--ce-accent-light);
    color:         var(--ce-accent-dark);
    border-radius: var(--ce-radius);
    padding:       14px 18px;
    font-size:     .9375rem;
    line-height:   1.6;
    margin-top:    8px;
}

/* ── Clipboard Grid ────────────────────────────────────────── */
.ce-clipboard-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap:                   20px;
    margin-top:            24px;
}
.ce-clipboard-card {
    background:    var(--ce-bg);
    border:        1px solid var(--ce-border);
    border-radius: var(--ce-radius);
    padding:       24px;
    box-shadow:    var(--ce-shadow-sm);
}
.ce-clipboard-card h3 { font-size: 1.0625rem; margin: 0 0 8px; }
.ce-clipboard-card p  { font-size: .9375rem; color: var(--ce-text-secondary); margin: 0 0 16px; }

/* ── Print Styles (Player Report Card) ─────────────────────── */
@media print {
    @page { size: letter portrait; margin: 0.75in; }

    body { background: #fff !important; }

    .ce-shell__sidebar,
    .ce-shell__header,
    .ce-shell__menu-btn,
    .ce-program-header,
    .ce-csv-portal,
    .ce-roster-header,
    .ce-btn,
    .ce-history-toggle,
    .ce-row-actions { display: none !important; }

    .ce-shell__canvas { padding: 0 !important; }

    .ce-shield { page-break-inside: avoid; }

    .ce-shield-header,
    .ce-shield-body    { break-inside: avoid; }

    * { color: #000 !important; background: #fff !important; box-shadow: none !important; }

    .ce-shield-badge { border: 2px solid #000 !important; }
    .ce-shield-score-value { font-size: 48pt !important; }
}

/* ── Player Report Card (screen) ───────────────────────────── */
.ce-shield {
    max-width:     780px;
    margin:        0 auto;
    font-family:   var(--ce-font);
    padding:       24px;
}
.ce-shield-header {
    display:   flex;
    gap:       24px;
    flex-wrap: wrap;
    border-bottom: 3px solid var(--ce-text);
    padding-bottom: 20px;
    margin-bottom: 24px;
    align-items: flex-start;
}
.ce-shield-logo { font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; }
.ce-shield-meta { flex: 1; }
.ce-shield-name { font-size: 1.5rem; font-weight: 800; margin: 0 0 4px; }
.ce-shield-details { font-size: .875rem; color: var(--ce-text-secondary); }

.ce-shield-badge {
    text-align:    center;
    background:    var(--ce-text);
    color:         #fff;
    border-radius: var(--ce-radius);
    padding:       20px 28px;
    min-width:     180px;
}
.ce-shield-score-value { font-size: 3.5rem; font-weight: 900; line-height: 1; color: #fff; display: block; }
.ce-shield-score-denom { font-size: .875rem; color: rgba(255,255,255,.7); }
.ce-shield-tier        { font-size: .875rem; font-weight: 700; margin-top: 6px; color: #fff; }

.ce-shield-body {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   20px;
}
@media (max-width: 600px) { .ce-shield-body { grid-template-columns: 1fr; } }

.ce-shield-quadrant {
    border:        1px solid var(--ce-border);
    border-radius: var(--ce-radius);
    padding:       20px;
}
.ce-shield-quadrant-title { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ce-text-secondary); margin-bottom: 14px; }

.ce-shield-notes {
    margin-top:    20px;
    border:        2px solid var(--ce-accent);
    border-radius: var(--ce-radius);
    padding:       20px;
}
.ce-shield-notes-title { font-weight: 700; color: var(--ce-accent); margin-bottom: 10px; }

.ce-print-btn {
    margin-top:  20px;
    text-align:  right;
}

/* Stat row inside report card */
.ce-shield-stat { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--ce-bg-alt2); font-size: .9375rem; }
.ce-shield-stat:last-child { border-bottom: none; }
.ce-shield-stat-label { color: var(--ce-text-secondary); }
.ce-shield-stat-value { font-weight: 700; color: var(--ce-text); }

/* ── Bench Press Card ─────────────────────────────────────── */
.ce-bench-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}
.ce-bench-col { display: flex; flex-direction: column; }

/* ── Recruitment Dashboard / Player Profile (Figma) ───────────── */
.ce-crd-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.ce-crd-pill {
    display:       inline-flex;
    align-items:   center;
    gap:           8px;
    padding:       8px 16px;
    border-radius: 8px;
    font-size:     14px;
    font-weight:   600;
    border:        1px solid transparent;
    white-space:   nowrap;
}
.ce-crd-pill--dark   { background: var(--ce-header-navy); color: #fff; }
.ce-crd-pill--blue   { background: #EFF6FF; border-color: #BFDBFE; color: var(--ce-accent-brand); }
.ce-crd-pill--green  { background: #F0FDF4; border-color: #BBF7D0; color: #15803D; }
.ce-crd-pill--amber  { background: #FEF3C7; border-color: #FDE68A; color: #92400E; }
.ce-crd-pill-search  { margin-left: auto; }
@media (max-width: 900px) { .ce-crd-pill-search { margin-left: 0; } }

.ce-crd-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }

.ce-crd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ce-crd-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.ce-crd-table th {
    text-align:     left;
    font-size:      11px;
    font-weight:    700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color:          #4B5563;
    background:     #F9FAFB;
    border-bottom:  1px solid #E5E7EB;
    padding:        12px 16px;
    white-space:    nowrap;
}
.ce-crd-table td { padding: 16px; border-top: 1px solid #E5E7EB; vertical-align: top; }
.ce-crd-table tbody tr:first-child td { border-top: none; }
.ce-crd-table tbody tr:hover td { background: var(--ce-bg-alt); }

.ce-crd-gpa { font-size: 20px; font-weight: 700; color: #111827; }
.ce-crd-gpa-label { font-size: 11px; color: #4B5563; }
.ce-crd-gpa-cols { display: flex; gap: 20px; }

.ce-crd-clear-row { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #374151; margin-bottom: 3px; white-space: nowrap; }
.ce-crd-clear-ok   { color: #15803D; font-weight: 700; }
.ce-crd-clear-risk { color: #B45309; font-weight: 700; }

.ce-crd-commit-pill {
    display:       inline-flex;
    align-items:   center;
    gap:           4px;
    padding:       3px 10px;
    border-radius: 9999px;
    font-size:     12px;
    font-weight:   600;
    margin-bottom:  8px;
}
.ce-crd-commit-pill--yes { background: #F0FDF4; color: #15803D; }
.ce-crd-commit-pill--no  { background: #F3F4F6; color: #4B5563; }
.ce-crd-commit-row { display: flex; align-items: center; gap: 6px; }
.ce-crd-commit-input { min-height: 36px; padding: 6px 10px; border: 1px solid #D1D5DB; border-radius: 6px; font-size: 13px; width: 140px; }
.ce-crd-lock-btn {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           36px;
    height:          36px;
    flex-shrink:     0;
    border:          1px solid #E5E7EB;
    border-radius:   6px;
    background:      #fff;
    color:           #4B5563;
    cursor:          pointer;
}
.ce-crd-lock-btn:hover { background: var(--ce-bg-alt2); }

.ce-crd-view-btn {
    display:         inline-flex;
    align-items:     center;
    gap:             8px;
    padding:         9px 16px;
    border-radius:   8px;
    background:      var(--ce-header-navy);
    color:           #fff;
    font-size:       13px;
    font-weight:     600;
    text-decoration: none;
    white-space:     nowrap;
}
.ce-crd-view-btn:hover { background: #17224f; }
.ce-crd-view-btn:focus-visible { outline: 3px solid var(--ce-accent-brand); outline-offset: 2px; }

/* Player Profile page */
.ce-pp-header {
    background:    var(--ce-header-navy);
    color:         #fff;
    border-radius: 12px;
    padding:       20px 24px;
    display:       flex;
    align-items:   center;
    justify-content: space-between;
    gap:           16px;
    flex-wrap:     wrap;
    margin-bottom: 20px;
}
.ce-pp-header-main { display: flex; align-items: center; gap: 16px; }
.ce-pp-avatar { width: 56px; height: 56px; border-radius: 9999px; background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; flex-shrink: 0; }
.ce-pp-name { font-size: 20px; font-weight: 700; }
.ce-pp-meta { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 2px; }
.ce-pp-meta2 { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; }
.ce-pp-side { display: flex; align-items: center; gap: 12px; }
.ce-pp-pei { text-align: center; }
.ce-pp-pei-num { font-size: 24px; font-weight: 800; }
.ce-pp-pei-label { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.7); }
.ce-pp-starter { display: inline-flex; align-items: center; gap: 6px; background: #22C55E; color: #052e13; padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; }
.ce-pp-evaluators { font-size: 12px; color: #4B5563; margin-bottom: 20px; }

.ce-pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px 24px; }
@media (max-width: 900px) { .ce-pp-grid { grid-template-columns: 1fr; } }

.ce-pp-div-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #F3F4F6; font-size: 13px; }
.ce-pp-div-row:first-child { border-top: none; }
.ce-pp-div-name { font-weight: 600; color: #111827; }
.ce-pp-div-req { color: #4B5563; font-size: 12px; }
.ce-pp-div-badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 9999px; white-space: nowrap; }
.ce-pp-div-badge--met { background: #F0FDF4; color: #15803D; }
.ce-pp-div-badge--risk { background: #FEE2E2; color: #B91C1C; }
.ce-pp-div-badge--progress { background: #FEF3C7; color: #92400E; }

.ce-pp-matches-placeholder { text-align: center; padding: 32px 20px; color: #4B5563; font-size: 14px; line-height: 1.6; }

.ce-pp-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

.ce-pp-dev-card { border: 1px solid #E5E7EB; border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; }
.ce-pp-dev-card:last-child { margin-bottom: 0; }
.ce-pp-dev-card--critical { background: #FFFBEB; border-color: #FDE68A; }
.ce-pp-dev-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ce-pp-dev-title { font-size: 13px; font-weight: 700; color: #111827; }
.ce-pp-dev-severity { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 9999px; }
.ce-pp-dev-severity--critical { background: #FEE2E2; color: #B91C1C; }
.ce-pp-dev-severity--moderate { background: #FEF3C7; color: #92400E; }
.ce-pp-dev-severity--minor { background: #F3F4F6; color: #4B5563; }
.ce-pp-dev-text { font-size: 13px; color: #374151; line-height: 1.5; }
.ce-pp-dev-list { margin: 0; padding-left: 18px; }
.ce-pp-dev-list li { font-size: 13px; color: #374151; line-height: 1.6; }

.ce-pp-section-banner { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E3A8A; font-size: 13px; font-weight: 700; border-radius: 8px; padding: 10px 16px; margin: 20px 0 12px; }
.ce-pp-analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .ce-pp-analysis-grid { grid-template-columns: 1fr; } }

.ce-pp-academic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ce-pp-academic-card { background: var(--ce-bg-alt); border: 1px solid #E5E7EB; border-radius: 8px; padding: 14px; text-align: center; }
.ce-pp-academic-num { font-size: 28px; font-weight: 800; color: var(--ce-header-navy); }
.ce-pp-academic-label { font-size: 12px; color: #4B5563; margin-top: 2px; }
.ce-pp-academic-sub { font-size: 11px; color: #15803D; font-weight: 600; margin-top: 4px; }

.ce-pp-metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .ce-pp-metrics-grid { grid-template-columns: 1fr; } }
.ce-pp-metrics-grid > .ce-card { margin-bottom: 0; }

.ce-pp-metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.ce-pp-metric-grid--3col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 480px) { .ce-pp-metric-grid--3col { grid-template-columns: repeat(2, 1fr); } }
.ce-pp-metric-card { background: var(--ce-bg-alt); border: 1px solid #E5E7EB; border-radius: 8px; padding: 14px; text-align: center; }
.ce-pp-metric-icon { font-size: 16px; margin-bottom: 4px; }
.ce-pp-metric-num { font-size: 22px; font-weight: 800; color: #111827; }
.ce-pp-metric-label { font-size: 12px; color: #4B5563; margin-top: 2px; }
.ce-pp-metric-card--label-first .ce-pp-metric-label { margin-top: 0; margin-bottom: 4px; }
.ce-pp-metric-sub { font-size: 11px; color: #15803D; font-weight: 600; margin-top: 4px; }
.ce-pp-metric-card--empty { opacity: .55; border-style: dashed; }

.ce-pp-status-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 9999px; white-space: nowrap; }
.ce-pp-status-badge--verified { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.ce-pp-status-verify { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6B7280; font-weight: 600; white-space: nowrap; }

.ce-pp-skills-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .ce-pp-skills-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .ce-pp-skills-grid { grid-template-columns: 1fr; } }
.ce-pp-skill-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #4B5563; margin-bottom: 12px; }
.ce-pp-skill-group { border: 1px solid #E5E7EB; border-radius: 8px; padding: 16px; margin-bottom: 20px; background: var(--ce-bg-alt); }
.ce-pp-skill-group-hd { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #4B5563; margin-bottom: 12px; }
.ce-pp-skill-group .ce-pp-skill-row:last-child { margin-bottom: 0; }
.ce-pp-skill-row { margin-bottom: 16px; }
.ce-pp-skill-row label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.ce-pp-trait-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid #F3F4F6; }
.ce-pp-trait-row:first-child { border-top: none; }
.ce-pp-trait-row label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #374151; }
.ce-pp-skill-value-ro { display: block; width: 100%; min-height: var(--ce-touch-min); padding: 10px 14px; font-size: 1rem; color: var(--ce-text); background: var(--ce-bg-alt); border: 1px solid #E5E7EB; border-radius: var(--ce-radius); box-sizing: border-box; }

/* ── Player Evaluation Report ─────────────────────────────── */
.hs-pr-bench-box { background: var(--ce-header-navy, #1E3A8A); border-radius: 8px; padding: 20px; text-align: center; color: #fff; }
.hs-pr-bench-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .8; margin-bottom: 10px; }
.hs-pr-bench-row { display: flex; align-items: center; justify-content: center; gap: 18px; }
.hs-pr-bench-num { font-size: 32px; font-weight: 800; }
.hs-pr-bench-sub { font-size: 12px; opacity: .8; }
.hs-pr-bench-at { font-size: 18px; opacity: .7; }

.hs-pr-perf-hd { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #4B5563; margin-bottom: 12px; }
.hs-pr-scale-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid #F3F4F6; }
.hs-pr-scale-row:first-of-type { border-top: none; }
.hs-pr-scale-label { flex: 0 0 140px; font-size: 13px; color: #374151; }
.hs-pr-scale-pills { display: flex; gap: 4px; }
.hs-pr-scale-pill { width: 26px; height: 26px; border-radius: 6px; background: #F3F4F6; color: #9CA3AF; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.hs-pr-scale-pill--on { background: var(--ce-header-navy, #1E3A8A); color: #fff; }
.hs-pr-scale-value { margin-left: auto; font-size: 12px; font-weight: 700; color: #374151; }

.hs-pr-star-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 480px) { .hs-pr-star-grid { grid-template-columns: 1fr; } }
.hs-pr-star-card { background: var(--ce-bg-alt); border: 1px solid #E5E7EB; border-radius: 8px; padding: 16px; text-align: center; }
.hs-pr-stars { color: #F59E0B; font-size: 18px; letter-spacing: 2px; }
.hs-pr-star-value { font-size: 13px; font-weight: 700; color: #111827; margin-top: 4px; }
.hs-pr-star-label { font-size: 12px; color: #4B5563; margin-top: 2px; }

.hs-pr-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
@media (max-width: 480px) { .hs-pr-check-grid { grid-template-columns: 1fr; } }
.hs-pr-check-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; color: #374151; }
.hs-pr-check-icon { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.hs-pr-check-icon--on  { background: #F0FDF4; color: #15803D; }
.hs-pr-check-icon--off { background: #FEE2E2; color: #B91C1C; }

.hs-pr-report-box { border-radius: 8px; padding: 16px 18px; margin-bottom: 14px; }
.hs-pr-report-box:last-child { margin-bottom: 0; }
.hs-pr-report-box p { font-size: 13px; line-height: 1.6; color: #111827; margin: 0; }
.hs-pr-report-hd { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.hs-pr-report-box--good { background: #F0FDF4; border: 1px solid #BBF7D0; }
.hs-pr-report-box--good .hs-pr-report-hd { color: #15803D; }
.hs-pr-report-box--dev { background: #EFF6FF; border: 1px solid #BFDBFE; }
.hs-pr-report-box--dev .hs-pr-report-hd { color: #1E3A8A; }

/* ── Responsive Utility ────────────────────────────────────── */
@media (max-width: 480px) {
    .ce-onboard-card { padding: 24px 16px; }
    .ce-bench-grid   { grid-template-columns: 1fr; }
}
