/* Stitch CRM — RECRUITING view (data/format/crm_table.js). Full width by design (spec §6): this view does
   NOT use Front Office's 900px .ts-card lane. Brand tokens only; tints via color-mix. */
/* recruiting-mode (toggled by showView): hide the banner + search like history-mode, and use everything
   between the sidebar rail and the right edge — the shared lane is centred between two rail-wide gutters,
   which wastes ~250px on the right of a wide table. */
:root:has(.page.recruiting-mode){--page-top:60px}
/* §GLOW UP (Francis 2026-10-25: Recruiting "is the only page that looks unlike the rest of the stitch design space").
   It now wears the desk's chrome — the shared lane and the one-row circle matrix (stitch_search.html targets-mode,
   §PORTAL-PIN v3, mirrored exactly as NOTES does) — and the app's own type: the marker title with a Caveat line under
   it (Portal Watch's header), the desk's parallelogram filter chips, mono numbers, slanted stage flags. Brand tokens
   only; no new hex (palette-alignment.spec). A wide table scrolls inside its own box rather than widening the lane. */
.page.recruiting-mode{--page-top:60px}
.page.recruiting-mode .brand-banner,.page.recruiting-mode .search-shell{display:none}
.page.recruiting-mode .sticky-header,.page.recruiting-mode .brand-banner-sticky{display:block}
.page.recruiting-mode .sticky-header .search-shell{display:none}
.page.recruiting-mode .sticky-header::before{opacity:1}
.page.recruiting-mode .brand-banner-sticky{margin-bottom:10px}
.page.recruiting-mode .sticky-header{padding-bottom:4px}
#view-recruiting{max-width:none;width:100%}
.crmt{padding:0 0 40px;min-width:0;--mk:'Permanent Marker','Marker Felt',cursive;--sc:'Caveat','Bradley Hand',cursive;--mono:'IBM Plex Mono',ui-monospace,monospace}
.crmt-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 14px;margin:2px 0 12px}
.crmt-head h1{font-family:var(--mk);font-weight:400;font-size:30px;letter-spacing:normal;line-height:1.1;margin:0}
.crmt-sub{font-family:var(--sc);font-weight:600;font-size:19px;color:var(--ink-3)}
.crmt-muted{color:var(--ink-4);font-size:12.5px}
/* views: the desk's filter chips (.feed-filter) — marker caps on a parallelogram, charcoal when on */
.crmt-tabs{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-bottom:12px}
.crmt-tabs button[data-t="view"],.crmt-mode button{
  font-family:var(--mk);font-weight:400;font-size:10.5px;letter-spacing:.03em;text-transform:uppercase;line-height:1.15;
  color:var(--ink-3);cursor:pointer;background:var(--surface,#fff);box-shadow:inset 0 0 0 1.5px var(--rule);border:0;border-radius:0;
  padding:6px 13px;clip-path:polygon(7px 0,100% 0,calc(100% - 7px) 100%,0 100%);transition:color .14s,background .14s}
.crmt-tabs button[data-t="view"]:hover,.crmt-mode button:hover{color:var(--ink)}
.crmt-tabs button[data-t="view"].on,.crmt-mode button.on{background:var(--charcoal);box-shadow:none;color:#fff}
.crmt-tabs i{font-style:normal;color:var(--teal)}
.crmt-tab-add{font-family:var(--mk);font-weight:400;font-size:10.5px;letter-spacing:.03em;text-transform:uppercase;color:var(--teal);
  background:none;border:0;padding:6px 8px;cursor:pointer}
.crmt-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}
.crmt-spacer{flex:1}
/* the filter row speaks the board filter's quiet voice: one soft field, pill selects */
.crmt-in{font:inherit;font-size:13px;border:1px solid var(--rule);border-radius:999px;padding:7px 12px;background:var(--surface,#fff);color:var(--ink)}
.crmt-q{min-width:240px;border-radius:8px;padding:9px 12px}
.crmt-filters select.crmt-in{max-width:150px}
.crmt-acts{display:inline-flex;align-items:center;gap:8px;margin-left:auto}   /* stays right-aligned when the row wraps */
.crmt-chip{display:inline-flex;align-items:center;gap:4px;font-size:12px;padding:4px 8px;border-radius:999px;background:color-mix(in srgb,var(--teal) 14%,var(--surface,#fff))}
.crmt-chip button{background:none;border:0;cursor:pointer;color:var(--ink-3)}
.crmt-btn{font:600 13px/1 inherit;color:#fff;background:var(--teal);border:0;border-radius:999px;padding:9px 15px;cursor:pointer}
.crmt-btn-ghost{color:var(--ink);background:var(--surface,#fff);border:1px solid var(--rule)}   /* the desk's "Messages" pill */
.crmt-btn-ghost:hover{border-color:var(--ink-4)}
.crmt-link{font:600 12.5px/1.3 inherit;color:var(--teal);background:none;border:0;padding:2px 4px;cursor:pointer}
.crmt-link.crmt-quiet{color:var(--ink-4);font-weight:500}
.crmt-panel{border:1px solid var(--rule);border-radius:10px;padding:12px 14px;margin-bottom:10px;background:var(--surface-2,var(--surface-3))}
.crmt-colpick{display:flex;flex-wrap:wrap;gap:6px 18px;margin:8px 0;font-size:13px}
.crmt-bulk{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:8px 12px;margin-bottom:8px;border-radius:8px;background:color-mix(in srgb,var(--teal) 12%,var(--surface,#fff));font-size:13px}
.crmt-scroll{overflow:auto;max-width:100%;border-top:2px solid var(--ink)}   /* the desk masthead's heavy rule, not a box */
.crmt-table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}
.crmt-table th{position:sticky;top:0;z-index:1;background:var(--surface,#fff);text-align:left;border-bottom:1.5px dotted var(--ink-5);padding:0;white-space:nowrap}
.crmt-table th > button{font:600 11px/1 inherit;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-4);background:none;border:0;padding:10px 8px;cursor:pointer;width:100%;text-align:left;display:flex;gap:5px;align-items:center}
.crmt-table th > button.on{color:var(--ink)}
.crmt-table th > button.on.asc::after{content:'▲';font-size:8px}
.crmt-table th > button.on.desc::after{content:'▼';font-size:8px}
.crmt-table td{padding:7px 8px;border-bottom:1px solid var(--rule-soft,var(--rule));vertical-align:middle;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crmt-table tr:hover td{background:color-mix(in srgb,var(--teal) 4%,var(--surface,#fff))}
.crmt-table tr.is-sel td{background:color-mix(in srgb,var(--teal) 10%,var(--surface,#fff))}
.crmt-ck{width:34px;text-align:center !important;padding-left:10px !important}
.crmt-name{font:600 13.5px/1.3 inherit;color:var(--ink);background:none;border:0;padding:0;cursor:pointer;text-align:left;vertical-align:middle}
/* his face, from the app's one avatar resolver (BW headshot over the brand disc, or the disc) */
.crmt-av{width:26px;height:26px;border-radius:50%;object-fit:cover;vertical-align:middle;margin-right:9px;flex:none;
  background:var(--stitch-avatar-bg,var(--teal))}
/* numbers in the app's mono (the market figures, the board counts) */
.crmt-table td[data-col="class"],.crmt-table td[data-col="ht"],.crmt-table td[data-col="wt"],.crmt-table td[data-col="forty"],
.crmt-table td[data-col="contacts"],.crmt-table td[data-col="eval"],.crmt-table td[data-col="last_contact"],.crmt-table td[data-col="offers"]{
  font-family:var(--mono);font-size:12.5px;color:var(--ink-2,var(--ink))}
.crmt-table td[data-col="pos"]{font-family:var(--mono);font-size:12px;letter-spacing:.04em}
/* the stage as a slanted flag in its stage colour (crm_table.js STAGE_INK) — still the same select */
.crmt-stage{display:inline-flex;align-items:center;background:var(--c);clip-path:polygon(7px 0,100% 0,calc(100% - 7px) 100%,0 100%);padding:0 9px;max-width:170px}
.crmt-stage > span,.crmt-stage .crmt-cellsel{font-family:var(--mk);font-weight:400;font-size:10.5px;letter-spacing:.03em;text-transform:uppercase;
  color:#fff;background:transparent;border:0;padding:5px 2px;-webkit-appearance:none;appearance:none;cursor:pointer;max-width:150px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crmt-stage .crmt-cellsel:hover,.crmt-stage .crmt-cellsel:focus{border:0;background:transparent}
.crmt-stage .crmt-cellsel option{color:var(--ink);background:var(--surface,#fff);font-family:system-ui,sans-serif;text-transform:none}
.crmt-stage.is-mute{background:var(--surface,#fff);box-shadow:inset 0 0 0 1.5px var(--ink-5)}
.crmt-stage.is-mute > span,.crmt-stage.is-mute .crmt-cellsel{color:var(--ink-4)}
.crmt-name:hover{color:var(--teal);text-decoration:underline}
.crmt-cellsel{font:inherit;font-size:12.5px;border:1px solid transparent;border-radius:5px;background:transparent;padding:3px 4px;color:var(--ink);max-width:150px}
.crmt-cellsel:hover,.crmt-cellsel:focus{border-color:var(--rule);background:var(--surface,#fff)}
.crmt-val{font:inherit;color:inherit;background:none;border:1px solid transparent;border-radius:4px;padding:2px 4px;margin-left:-5px;cursor:text;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.crmt-val:hover{border-color:var(--rule)}
.crmt-empty{color:var(--ink-5,var(--ink-4))}
/* 2026-11-10 (MEASURABLES_INTEGRATION_SPEC.md §7): a "says N" self-reported fallback -- card's
   .crm-stitch-val/.crm-says combo, ported here so the RECRUITING table reads the same unverified
   signal the card does. cursor:help carries the hover citation; never a PM mark (no real override). */
.crmt-says{color:var(--ink-3,#7a736c);cursor:help}
.crmt-over{color:var(--pink);font-weight:600;font-size:12px}
.crmt-sens{font:600 8.5px/1 var(--f-mono,monospace);letter-spacing:.04em;padding:2px 4px;border-radius:3px;color:var(--pink);background:color-mix(in srgb,var(--pink) 12%,var(--surface,#fff))}
.crmt-sens-contact{color:var(--ink-3);background:var(--surface-3)}
.crmt-sens-financial{color:var(--orange);background:color-mix(in srgb,var(--orange) 12%,var(--surface,#fff))}
.crmt-empty-state{padding:30px;text-align:center;color:var(--ink-3)}
.crmt-more{margin:10px}
.crmt [data-t]:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
@media (max-width:700px){.crmt-q{min-width:0;flex:1 1 100%}.crmt-spacer{display:none}}

/* Front Office → Recruiting + Recruiting settings (data/format/crm_settings.js) */
.crms-sum{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 10px}
.crms-stat{display:flex;flex-direction:column;align-items:flex-start;padding:10px 14px;border-radius:10px;background:var(--surface-3);min-width:96px}
.crms-stat b{font-size:22px;line-height:1}
.crms-stat span{font-size:12px;color:var(--ink-3);margin-top:4px}
.crms-stat.won{background:color-mix(in srgb,var(--teal) 14%,var(--surface,#fff))}
.crms-stat.lost{background:color-mix(in srgb,var(--pink) 10%,var(--surface,#fff))}
.crms-line{font-size:13px;color:var(--ink-2)}
.crms-over{color:var(--pink);font-weight:600}
.crms-link{font:600 12.5px/1.3 inherit;color:var(--teal);background:none;border:0;padding:2px 4px;cursor:pointer}
.crms-quiet{color:var(--ink-4);font-weight:500}
.crms-btn{font:600 12.5px/1 inherit;color:#fff;background:var(--teal);border:0;border-radius:7px;padding:8px 12px;cursor:pointer}
.crms-in{font:inherit;font-size:13px;border:1px solid var(--rule);border-radius:6px;padding:5px 7px;background:var(--surface,#fff);color:var(--ink)}
.crms-in:disabled{background:transparent;border-color:transparent;color:var(--ink-2)}
#settings-section-crm-settings h3{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);margin:20px 0 8px}
.crms-rules{display:grid;gap:6px;font-size:13.5px}
.crms-rules label{display:flex;gap:8px;align-items:flex-start}
.crms-table{border-collapse:collapse;width:100%;font-size:13px}
.crms-table th,.crms-table td{text-align:left;padding:6px;border-bottom:1px solid var(--rule-soft,var(--rule));vertical-align:middle}
.crms-table th{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-4);font-weight:600}
.crms-acts{white-space:nowrap;text-align:right}
.crms-add{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.crms-muted{color:var(--ink-4);font-size:12px;margin:4px 0}
.crms-archived{margin-top:10px;font-size:13px}

/* S6.5 — Table | Board toggle + the stage board */
.crmt-mode{margin-left:auto;display:inline-flex;gap:6px}   /* chips styled with the view tabs, above */
/* the stage board: the Big Board's column grammar — a marker head over a rule in the stage's colour, white cards */
.crmb{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(220px,1fr);gap:14px;overflow-x:auto;padding:4px 0 10px;align-items:start}
.crmb-col{background:transparent;border-radius:10px;padding:0 2px 8px;min-height:120px;border:2px solid transparent}
.crmb-col.is-over{border-color:var(--teal);background:color-mix(in srgb,var(--teal) 6%,var(--surface,#fff))}
.crmb-col header{display:flex;justify-content:space-between;align-items:baseline;padding:2px 2px 6px;margin-bottom:10px;border-bottom:3px solid var(--c)}
.crmb-col header b{font-family:var(--mk);font-weight:400;font-size:15px;letter-spacing:normal;color:var(--ink)}
.crmb-col.is-mute header b{color:var(--ink-4)}
.crmb-col header span{font:500 12px/1 var(--mono);color:var(--ink-4)}
.crmb-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.crmb-card{background:var(--surface,#fff);border:1px solid var(--rule);border-left:3px solid var(--c);border-radius:10px;padding:10px 11px;font-size:12.5px;cursor:grab;
  box-shadow:0 1px 0 color-mix(in srgb,var(--charcoal) 6%,transparent)}
.crmb-card:hover{border-color:var(--ink-5);border-left-color:var(--c)}
.crmb-who{display:flex;align-items:center;min-width:0}
.crmb-who .crmt-av{width:28px;height:28px}
.crmb-card.is-drag{opacity:.5}
.crmb-sub{color:var(--ink-3);margin-top:4px;padding-left:37px}
.crmb-task{margin-top:6px;padding-left:37px;font-family:var(--sc);font-weight:600;font-size:16px;line-height:1.05;color:var(--ink-2)}
.crmb-foot{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:8px;color:var(--ink-4);font-size:11.5px}
.crmb-lead{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--charcoal);color:#fff;font:700 9px/1 var(--mono)}
.crmb-move{margin-left:auto;font:500 11px/1 var(--mono);border:1px solid transparent;background:transparent;color:var(--ink-4);border-radius:5px;padding:2px}
.crmb-move:hover,.crmb-move:focus{border-color:var(--rule);background:var(--surface,#fff)}

/* S8 — the "program-measured" mark, used on the card hero, combine, track, and the RECRUITING table (global on purpose) */
.pm-mark{display:inline-block;margin-left:5px;font:700 8.5px/1 var(--f-mono,monospace);letter-spacing:.04em;padding:2px 4px;border-radius:3px;
  color:var(--teal);background:color-mix(in srgb,var(--teal) 14%,var(--surface,#fff));vertical-align:middle;cursor:help}
/* the Big Board placard line when it carries a PM mark (stitch_search.html wallMetaLine): school · class gives way,
   HT/WT + PM always shows */
.cw-pm-line{display:inline-flex;max-width:100%;vertical-align:bottom;min-width:0}
.cw-pm-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.cw-pm-k{flex:none;white-space:nowrap}
.crms-range{display:flex;align-items:center;gap:4px;margin-top:4px;color:var(--ink-4)}
.crms-num{width:76px}
.crmt-in-num{width:84px}   /* Ht / Wt / 40 quick entry in the table */
.crmt-saving{opacity:.6}   /* a table cell's typed value while it saves */
/* 2026-10-25: Columns is a real control now (every card field can be a column) — "+ Columns 31/31" */
.crmt-colsbtn{border-color:var(--teal,#13A895);color:var(--teal,#13A895);font-weight:600}
.crmt-colsn{font-family:var(--mono,ui-monospace,monospace);font-size:11px;opacity:.75;margin-left:4px}
.crmt-note{color:var(--ink-2,inherit)}
/* "+ New field" at the foot of the Columns panel (admins) */
.crmt-nf-row{margin:8px 0 4px}
.crmt-nf-open{color:var(--teal,#13A895);font-weight:600}
.crmt-nf{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0 6px;padding-top:10px;border-top:1px solid var(--rule)}
.crmt-nf b{width:100%}
.crmt-nf .crmt-muted{width:100%;margin:2px 0 0}
/* ── THE CLASSES VIEW (the Big Board's seats; 2026-10-25) — the Stages board's columns, one per class, rooms inside ── */
.crmc{grid-auto-columns:minmax(250px,1fr)}
.crmc-hint{margin:-4px 2px 10px;font-size:12px}
.crmc-room{border:2px solid transparent;border-radius:10px;padding:4px 2px 8px;margin-bottom:8px}
.crmc-room.is-over{border-color:var(--teal);background:color-mix(in srgb,var(--teal) 6%,var(--surface,#fff))}
.crmc-room-hd{display:flex;justify-content:space-between;align-items:baseline;padding:0 2px 6px}
.crmc-room-hd b{font-family:var(--mk);font-weight:400;font-size:13px;color:var(--ink-2)}
.crmc-room-hd span{font:500 12px/1 var(--mono);color:var(--ink-4)}
.crmc-room.is-over-seats .crmc-room-hd span{color:var(--pink)}
.crmc-open{border:1.5px dashed var(--rule);border-radius:10px;padding:9px 11px;font:500 11px/1 var(--mono);color:var(--ink-5,var(--ink-4));text-transform:uppercase;letter-spacing:.04em}
.crmc-open.is-more{border-style:dotted}
.crmc-no{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-right:6px;border-radius:4px;background:var(--c);color:#fff;font:700 10px/1 var(--mono)}
.crmc-stage{font-size:10px}
/* coverage: what each room's seats are made of */
.crmc-class-sum{margin:-4px 2px 12px;font:500 11.5px/1.3 var(--mono);color:var(--ink-3)}
.crmc-covs{display:flex;flex-wrap:wrap;gap:4px 8px;margin:-2px 2px 8px;font:500 10.5px/1 var(--mono);color:var(--ink-4)}
.crmc-cov.is-committed{color:var(--teal);font-weight:700}
.crmc-cov.is-offered{color:var(--orange)}
.crmc-cov.is-not-pursuing{color:var(--pink)}
/* the visit flags on a Stages card (0973) */
.crmb-visit{font:600 10.5px/1.2 var(--mono);padding:2px 6px;border-radius:999px;border:1px solid var(--rule);color:var(--ink-3)}
.crmb-visit.is-official{border-color:var(--orange);color:var(--ink-2)}
.crmb-visit.is-unofficial{border-color:var(--teal);color:var(--ink-2)}
