/* Ignite › People › Crew (the roster, Loans between branches) and a person's profile (#/person/:id) — 3.0. Its own looks
   only, built from tokens.css; the shared pieces (page head, subtabs, glass, strip, ih-tools / ih-row / ih-search / ih-who /
   ih-sort / ih-link, table.t → phone cards, chips, status, src) come from components.css. Every class here starts with crw-.
   public/crew-page.js */
.crw { display: flex; flex-direction: column; gap: var(--gap); }
.crw h2 { margin: 0; font-size: var(--fs-l); font-weight: var(--fw-x); }
.crw h3 { margin: 0; font-size: 13.5px; font-weight: var(--fw-bold); }
.crw .lede { max-width: 84ch; }
.crw p { margin: 0; }
.crw-nowrap { white-space: nowrap; }
.crw-pad { padding: 14px 18px 16px; }

/* the roster: one glass panel, its count and the wages switch over the table */
.crw-list { overflow: hidden; }
.crw-listhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 14px 18px 6px; }
.crw-list .table-wrap { padding: 0 6px 6px; }
.crw-table td { vertical-align: middle; }
.crw-table th, .crw-table td { padding-left: 8px; padding-right: 8px; }   /* ten columns at 1440 with the wages shown */
.crw-table .crw-namecell { overflow-wrap: anywhere; }
.crw-table .crw-namecell { min-width: 160px; }
.crw-table .crw-namecell .hint { display: block; margin-top: 2px; }
.crw-table .select-wrap .select { min-width: 160px; }   /* "Dallas / Fort Worth" whole */
.crw-table .crw-namecell a[href^="tel:"] { color: inherit; }
.crw-table td.crw-skillcell { min-width: 190px; }
.crw-skills { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.crw-skills .qe-btn { position: relative; }
.crw-certs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.crw-certs .src { margin: 0; }
.crw-rate { width: 7.5ch; min-width: 0; padding: 0 8px; }
.crw-dots { letter-spacing: 2px; color: var(--muted); }
.crw-login { display: grid; gap: 4px; justify-items: start; }
.crw-login .hint { white-space: nowrap; }
.crw .status { min-width: 104px; }
.crw .chip.crw-stc { height: 28px; padding: 0 11px; border-radius: var(--r-pill); font-size: 12px; font-weight: var(--fw-bold); }   /* a status this login cannot change: the status pill's size, read-only */
.crw-acts { display: inline-flex; gap: 4px; }

/* tomorrow's-job texts: the bubble beside a name — filled green = gets the texts, red with a cross = replied STOP, outline = off */
.crw-text { all: unset; box-sizing: border-box; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; cursor: pointer; color: var(--muted); position: relative; }
.crw-text:hover, .crw-text:focus-visible { background: var(--well); }
.crw-text:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.crw-text svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.crw-text.on { color: var(--ok); }
.crw-text.on svg path:first-child { fill: currentColor; fill-opacity: .22; }
.crw-text.stop { color: var(--bad); }
.crw-textword { font-size: 12px; font-weight: var(--fw-semi); color: var(--muted); }
.crw-textword.on { color: var(--ok); } .crw-textword.stop { color: var(--bad); }
.crw-textcell { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }

/* loans: a row each — who, where to, the days, what state, who set it up, End early */
.crw-loans { overflow: hidden; }
.crw-loantag { display: inline-flex; margin-top: 4px; }
.crw-route { white-space: nowrap; }
.crw-route b { font-weight: var(--fw-bold); }

/* a person's profile */
.crw-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.crw-who .face { flex: none; }
.crw-who h1.title { margin: 0; overflow-wrap: anywhere; }
.crw-who .crw-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.crw-cols { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.crw-col { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
/* the two columns end level (Jordan, 11/3, w55): the last card in each takes what is left, so neither floats above a gap */
@media (min-width: 981px) { .crw-cols { align-items: stretch; } .crw-col > :last-child { flex: 1 1 auto; } }
@media (max-width: 980px) { .crw-cols { grid-template-columns: minmax(0, 1fr); } }
.crw-sec { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.crw-sechead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.crw-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.crw-form .field { margin: 0; min-width: 0; }
.crw-form .wide { grid-column: 1 / -1; }
.crw-form .input, .crw-form .select { width: 100%; }
.crw-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.crw-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0; }
.crw-facts > div { min-width: 0; overflow-wrap: anywhere; }
.crw-facts dt { font-size: 11.5px; font-weight: var(--fw-semi); color: var(--muted); }
.crw-facts dd { margin: 2px 0 0; font-size: 13px; }
/* two even columns of 44px toggles, an odd last one taking the row: 7 skills were 6 + 1 at 1440 and 3 + 3 + 1 on a phone in
   32px chips (design review 10/23, K7 / K3) */
.crw-skillpick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.crw-skillpick > button:last-child:nth-child(odd) { grid-column: 1 / -1; }
.crw-skillpick button { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--hair-2); background: var(--glass-a); font-size: 12.5px; font-weight: var(--fw-semi); color: var(--ink-2); cursor: pointer; }
.crw-skillpick button:hover { background: var(--well); }
.crw-skillpick button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.crw-skillpick button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.crw-skillpick button[disabled] { cursor: default; opacity: .7; }
.crw-skillpick .i { width: 13px; height: 13px; }
.crw-list-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.crw-list-plain li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; padding: 8px 10px; border-radius: var(--r-m); background: var(--well); font-size: 13px; }
.crw-list-plain li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.crw-empty { margin: 0; color: var(--muted); font-size: 13px; }
.crw h2.crw-perfhead, .crw .cw-perf > h2 { margin: 6px 0 -6px; }   /* 22 above, 10 below in the 16px column: .crw h2's margin 0 outranked both (16 / 16 — K4) */
.crw-acthead { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* the texts panel (on the profile, and the same panel as a sheet from the roster) */
.crw-words { white-space: pre-wrap; padding: 12px 14px; border-radius: var(--r-m); background: var(--well); border: 1px solid var(--hair); font-size: 13.5px; line-height: 1.5; }
.crw-agree { display: flex; align-items: flex-start; gap: 10px; min-height: var(--tap); padding: 6px 0; cursor: pointer; font-size: 13.5px; }
.crw-agree input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; }
.crw-warn { padding: 10px 12px; border-radius: var(--r-m); background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--ink); font-size: 13px; }
.crw-warn.bad { background: var(--bad-bg); border-color: var(--bad-line); }
.crw-preview { white-space: pre-wrap; padding: 10px 12px; border-radius: var(--r-m); background: var(--glass-a); border: 1px dashed var(--hair-2); font-size: 13px; }
.crw-textacts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.crw-clip { max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crw details > summary { cursor: pointer; font-size: 12.5px; font-weight: var(--fw-semi); color: var(--muted); min-height: 32px; display: flex; align-items: center; }

/* the sheets (the shared modal(), with the kit inside) */
.crw-modal { gap: 12px; }
.crw-modal h2 { font-size: var(--fs-xl); }
.crw-modal > .hint, .crw-modal > p { margin: 0; }
.modal.crw-wide { max-width: 860px; }
.crw-modalacts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
/* the phone and email asked when a login is made (w43c) */
.crw-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .crw-two { grid-template-columns: minmax(0, 1fr); } }
.crw-check { display: flex; align-items: center; gap: 8px; font-size: 13px; min-height: 32px; }
.crw-check input { margin: 0; flex: none; accent-color: var(--ink); }
@media (min-width: 1181px) and (pointer: fine) { .crw-check input { width: 18px; height: 18px; } }
.crw-secret { font-size: 20px; font-weight: var(--fw-bold); letter-spacing: .03em; text-align: center; }
.crw-scroll { max-height: 38vh; overflow: auto; border: 1px solid var(--hair); border-radius: var(--r-m); }
.crw-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crw-file input[type=file] { font-size: 13px; max-width: 100%; }

@media (max-width: 640px) {
  .crw-form, .crw-facts { grid-template-columns: minmax(0, 1fr); }
  .crw-listhead { padding: 12px 14px 4px; }
  .crw .page-head .actions { width: 100%; }
  .crw-who h1.title { font-size: var(--fs-xl); }
  .crw-textacts > .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 1180px), (pointer: coarse) {
  .crw-text { width: var(--tap); height: var(--tap); }
  .crw-agree input { width: 24px; height: 24px; }
}
.crw-certs a.chip { text-decoration: none; }
/* the roster as cards up to 1000px */
.crw-cards { display: none; flex-direction: column; gap: 8px; padding: 4px 10px 10px; }
@media (max-width: 1000px) { .crw-pc > .table-wrap { display: none; } .crw-cards { display: flex; } }
.crw-pcard { display: grid; gap: 8px; margin: 0; }
.crw-pctop { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; min-width: 0; }
.crw-pctop > a { min-width: 0; }
.crw-pcard > .crw-loantag { justify-self: start; margin: 0; }
.crw-pcfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-top: 8px; border-top: 1px solid var(--hair); }
.crw-pcrate { display: inline-flex; align-items: center; gap: 6px; }
/* the filters: search, then the pickers — one row on a computer; below it the search takes a row and the pickers share the next */
@media (max-width: 1180px) and (min-width: 641px) { .crw-filters .ih-search { flex-basis: 100%; } .crw-filters > .select-wrap { flex: 1 1 0; } }
@media (max-width: 640px) { .crw-filters > .select-wrap { flex: 1 1 100%; } .crw .page-head .actions > .btn { flex: 1 1 calc(50% - 4px); justify-content: center; } }
.crw-certs a.chip:hover, .crw-certs a.chip:focus-visible { text-decoration: underline; }
.crw-namecell .crw-loantag { display: flex; width: fit-content; max-width: 100%; white-space: normal; height: auto; min-height: 18px; padding-block: 2px; }   /* under the name, on its own line */

/* ---- the crew's own home extras (w17ignite): the notifications fold (LN-17) and Report a Problem's door (B12). The home itself
   is the kit's cw- block; these two looks are its only additions, kept here under crw- names. */
.crw-fold { padding: 0; }
.crw-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; min-height: var(--tap); cursor: pointer; list-style: none; }
.crw-fold > summary::-webkit-details-marker { display: none; }
.crw-fold > summary > span { display: grid; gap: 2px; min-width: 0; }
.crw-fold > summary small { font-size: 12px; color: var(--muted); font-weight: var(--fw-semi); }
.crw-fold > summary .i { flex: none; color: var(--muted); transition: transform var(--t-std); }
.crw-fold[open] > summary .i { transform: rotate(180deg); }
.crw-foldin { padding: 0 16px 16px; min-width: 0; overflow-x: auto; }
