/* ── coaches.css ───────────────────────────────────────────────*/

  /* ── COACHES PAGE ─────────────────────────────────────────────────────────── */

  .cs-empty {
    font-size: 13px; color: var(--text-tertiary); font-style: italic; padding: 8px 0 20px;
  }

  /* ── SESSIONS TAB — needs-feedback / past-sessions cards ──────────────────── */
  .cs-card {
    display: flex; align-items: center; gap: 10px;
    border: 0.5px solid var(--border-strong); border-radius: var(--radius-sm);
    padding: 12px 14px; margin-bottom: 8px; background: var(--surface);
    cursor: pointer; transition: box-shadow 0.15s;
  }
  .cs-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
  .cs-card-main { flex: 1; min-width: 0; }
  .cs-card-date { font-size: 13px; font-weight: 600; color: var(--text); }
  .cs-card-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
  .cs-progress { font-size: 12px; color: var(--text-secondary); margin-top: 4px; font-weight: 500; }
  .cs-dismiss-btn {
    flex-shrink: 0; font-size: 12px; padding: 5px 10px; border-radius: var(--radius-sm);
    border: 0.5px solid var(--border-strong); background: var(--surface);
    color: var(--text-secondary); cursor: pointer; font-family: inherit;
  }
  .cs-dismiss-btn:hover { background: var(--bg); }

  /* ── SESSIONS TAB — upcoming/plan accordion cards (mirrors .confirm-card's
     max-height expand pattern, css/captain-confirm.css) ─────────────────────── */
  .cs-upcoming-card {
    border: 0.5px solid var(--border-strong); border-radius: var(--radius-sm);
    margin-bottom: 8px; background: var(--surface);
  }
  .cs-upcoming-hdr {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    cursor: pointer; user-select: none;
  }
  .cs-upcoming-hdr:hover { background: var(--bg); }
  .cs-upcoming-body { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding: 0 14px; }
  .cs-upcoming-card.open .cs-upcoming-body { max-height: 400px; padding: 0 14px 14px; }
  .cs-plan-pill { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; flex-shrink: 0; }
  .cs-plan-pill-yes { background: #dcfce7; color: #166534; }
  .cs-plan-pill-no  { background: #f3f4f6; color: #6b7280; }
  [data-theme="dark"] .cs-plan-pill-yes { background: rgba(22,163,74,0.18); color: #86efac; }
  [data-theme="dark"] .cs-plan-pill-no  { background: rgba(255,255,255,0.08); color: #8a8479; }

  /* ── SESSIONS TAB — full-screen per-seat feedback flow ─────────────────────
     Structurally mirrors #fe-overlay (css/availability.css) — full-screen,
     flexbox-sized, no page scroll — but kept as its own class family since the
     content (textarea + tags, not a slot grid) and colours differ. */
  .cs-flow-overlay {
    display: none; position: fixed; inset: 0; z-index: 1000;
    background: var(--bg); flex-direction: column;
    height: 100vh; height: 100dvh; overflow: hidden;
  }
  .cs-flow-overlay.cs-flow-overlay--open { display: flex; }
  .cs-flow-header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; flex: none; }
  .cs-flow-close-btn {
    width: 32px; height: 32px; flex-shrink: 0;
    border: 0.5px solid var(--border-strong); background: var(--surface);
    border-radius: 50%; font-size: 18px; line-height: 1;
    color: var(--text-secondary); cursor: pointer;
  }
  .cs-flow-close-btn:hover { background: var(--navy-light); }
  .cs-flow-title { flex: 1; min-width: 0; text-align: center; }
  .cs-flow-name { font-size: 15px; font-weight: 700; color: var(--text); }
  .cs-flow-seat { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }
  .cs-flow-skip-link {
    flex-shrink: 0; max-width: 92px; font-size: 11px; line-height: 1.3;
    color: var(--navy-mid); background: none; border: none; cursor: pointer;
    font-family: inherit; text-decoration: underline; padding: 0;
  }
  .cs-flow-progress { text-align: center; font-size: 12px; color: var(--text-tertiary); padding: 0 12px 8px; flex: none; }
  .cs-flow-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 12px; display: flex; flex-direction: column; gap: 12px; }
  .cs-flow-textarea {
    width: 100%; flex: 1; min-height: 160px; resize: vertical; box-sizing: border-box;
    font-size: 15px; padding: 12px; border: 0.5px solid var(--border-strong);
    border-radius: var(--radius-sm); font-family: inherit;
    background: var(--surface); color: var(--text); outline: none;
  }
  .cs-flow-textarea:focus { border-color: var(--navy-mid); }
  .cs-flow-crew-hint { font-size: 12px; color: var(--text-tertiary); margin: 0; }
  .cs-flow-tags { display: flex; gap: 8px; flex-wrap: wrap; flex: none; }
  .cs-tag {
    padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
    border: 0.5px solid var(--border-strong); background: var(--surface);
    color: var(--text-secondary); cursor: pointer; font-family: inherit; transition: all 0.15s;
  }
  .cs-tag.active.cs-tag-strong      { background: #dcfce7; color: #166534; border-color: #86efac; }
  .cs-tag.active.cs-tag-needs_work  { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
  .cs-tag.active.cs-tag-note        { background: var(--navy-light); color: var(--navy-dark); border-color: var(--navy-mid); }
  [data-theme="dark"] .cs-tag.active.cs-tag-strong     { background: rgba(22,163,74,0.18); color: #86efac; border-color: rgba(22,163,74,0.4); }
  [data-theme="dark"] .cs-tag.active.cs-tag-needs_work { background: rgba(239,68,68,0.18); color: #fca5a5; border-color: rgba(239,68,68,0.4); }
  .cs-flow-nav { display: flex; gap: 10px; padding: 12px; flex: none; }
  .cs-flow-nav-btn {
    flex: 1; height: 52px; border: none; border-radius: var(--radius-sm);
    background: var(--nav-navy); color: #fff; font-size: 16px; font-weight: 700;
    font-family: inherit; cursor: pointer;
  }
  .cs-flow-nav-btn:disabled { opacity: 0.35; cursor: default; }
  .cs-flow-nav-back { background: var(--surface); color: var(--text); border: 0.5px solid var(--border-strong); }

  /* ── Desktop: cap the textarea/nav width so the flow doesn't stretch edge-
     to-edge — mirrors #fe-overlay's .fe-grid/.fe-nav rule, css/availability.css ── */
  @media (min-width: 768px) {
    .cs-flow-body,
    .cs-flow-nav {
      max-width: 720px;
      width: 100%;
      margin: 0 auto;
    }
  }

  /* ── CLUB TRAINING TAB — master/detail member/cox lookup ───────────────────
     Desktop: list + a docked detail column, side by side. Mobile collapse
     (list-first, tap-to-push, back control) lives in css/mobile.css. */
  .ct-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
  .ct-toolbar .roster-search { flex: 1; min-width: 160px; }
  .ct-pill-row { display: flex; gap: 5px; flex-wrap: wrap; }

  .ct-layout { display: flex; gap: 20px; align-items: flex-start; }
  .ct-list-col { flex: 1.3; min-width: 0; }
  .ct-table-wrap {
    background: var(--surface); border: 0.5px solid var(--border-strong);
    border-radius: var(--radius); overflow: hidden; overflow-x: auto;
  }
  .ct-detail-col {
    flex: 1; min-width: 280px; max-width: 420px;
    background: var(--surface); border: 0.5px solid var(--border-strong);
    border-radius: var(--radius); padding: 16px;
    position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto;
  }
  .ct-detail-back {
    display: none; margin-bottom: 12px; font-size: 12px; font-weight: 500;
    padding: 5px 12px; border-radius: var(--radius-sm);
    border: 0.5px solid var(--border-strong); background: var(--surface);
    color: var(--text-secondary); cursor: pointer; font-family: inherit;
  }
  .ct-detail-back:hover { background: var(--bg); }

  .ct-side-badge {
    display: inline-block; padding: 1px 7px; border-radius: 20px;
    font-size: 10px; font-weight: 600; margin-left: 4px; white-space: nowrap;
  }
  .ct-side-stroke { background: #dbeafe; color: #1e40af; }
  .ct-side-bow    { background: #ede9fe; color: #6d28d9; }
  .ct-side-both   { background: #f3f4f6; color: #6b7280; }
  [data-theme="dark"] .ct-side-stroke { background: rgba(59,130,246,0.18); color: #93c5fd; }
  [data-theme="dark"] .ct-side-bow    { background: rgba(124,58,237,0.18); color: #c4b5fd; }
  [data-theme="dark"] .ct-side-both   { background: rgba(255,255,255,0.08); color: #8a8479; }

  .ct-detail-header { margin-bottom: 4px; }
  .ct-detail-name { font-family: 'DM Serif Display', serif; font-size: 19px; }
  .ct-detail-knownas { font-size: 12px; font-weight: 400; color: var(--text-secondary); font-family: inherit; }
  .ct-detail-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
  .ct-detail-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

  .ct-detail-section { margin-top: 18px; padding-top: 14px; border-top: 0.5px solid var(--border); }
  .ct-detail-section-title {
    font-size: 11px; font-weight: 600; color: var(--text-tertiary);
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px;
  }
  .ct-detail-stats-row { display: flex; gap: 14px; flex-wrap: wrap; }
  .ct-detail-stat { display: flex; flex-direction: column; gap: 1px; }
  .ct-detail-stat-val { font-family: 'DM Serif Display', serif; font-size: 18px; color: var(--text); }
  .ct-detail-stat-lbl { font-size: 10px; color: var(--text-tertiary); }

  .ct-mini-table { width: 100%; border-collapse: collapse; font-size: 12px; }
  .ct-mini-table th { text-align: left; font-weight: 600; color: var(--text-tertiary); padding: 4px 6px; border-bottom: 0.5px solid var(--border-strong); }
  .ct-mini-table td { padding: 5px 6px; border-bottom: 0.5px solid var(--border); }

  .ct-feedback-item { padding: 8px 0; border-bottom: 0.5px solid var(--border); }
  .ct-feedback-item:last-child { border-bottom: none; }
  .ct-feedback-hdr { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
  .ct-feedback-meta { font-size: 11px; color: var(--text-tertiary); }
  .ct-feedback-text { font-size: 13px; color: var(--text); line-height: 1.4; }

  /* ── CLUB TRAINING TAB — crew presets section ──────────────────────────────
     List of named presets below the comparison list; editor itself reuses
     .roster-panel/.cpk-* slide-out chrome (css/pickers.css) via js/coaches.js
     ctpEnsureModal(), same as the coach/cox/crew pickers. */
  .ct-presets-toolbar { margin-bottom: 12px; }
  .ct-preset-card {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    border: 0.5px solid var(--border-strong); border-radius: var(--radius-sm);
    padding: 12px 14px; margin-bottom: 8px; background: var(--surface);
  }
  .ct-preset-main { flex: 1; min-width: 0; }
  .ct-preset-name { font-size: 13px; font-weight: 600; color: var(--text); }
  .ct-preset-squad {
    font-size: 11px; font-weight: 600; color: var(--text-secondary);
    background: var(--navy-light); border-radius: 20px; padding: 1px 8px; margin-left: 6px;
  }
  .ct-preset-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
  .ct-preset-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }

  .ctpk-save-row { display: flex; gap: 10px; margin-top: 4px; }
  .ctpk-save-row .cp-btn { flex: 1; }

  /* ── CONFIRM TAB — sign_off test/record review queue ───────────────────────
     Reuses .cs-card (Sessions tab) as the row shell — these entries aren't
     clickable themselves, so cursor/hover are turned off. */
  .cf-entry { cursor: default; flex-wrap: wrap; }
  .cf-entry:hover { box-shadow: none; }
  .cf-actions { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; margin-left: auto; }
