/* ══════════════════════════════════════════════════════════════════════
   css/course-people-pages.css — the course home's Intakes and Add students
   pages (G39, boards P4Intakes, P4IntakesEmpty, P7Add, approved 14 Oct 2026).
   js/course-cohorts-editor.js (.cie) and js/course-enrolment-centre.js (.cec).

   Built on the live course screens' kit (css/course-insights.css, `.cin`):
   its cards, buttons, menu and colours, so these pages sit beside one
   student's page and the coach pages unchanged. `.cpp` is what the two pages
   share: the Back and crumb, the title, the card and the pointer line under it.
   ══════════════════════════════════════════════════════════════════════ */

.cin.cpp { gap: 18px; max-width: 820px; }
/* The page head ("← Back · Course home / X", the title, its one line) is
   every course-home page's, not only these two (G39 r2): Selling and Places
   (course-selling-pages.js) and the four row pages, AI tools, Quick checks,
   Certificates and Live sessions (course-home.js `rowPageHtml`), draw the
   same markup inside any `.cin`. */
.cin .cpp-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cin .cpp-back { font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--cin-ink); background: #fff; border: 1px solid #e2ddd2;
  border-radius: 999px; padding: 7px 13px; min-height: 36px; cursor: pointer; flex-shrink: 0; }
.cin .cpp-back:hover { border-color: var(--cin-faint); }
.cin .cpp-crumb { font-size: 13.5px; color: var(--cin-faint); min-width: 0; }
.cin .cpp-crumb span[aria-hidden] { color: #c9c2b6; }
.cin .cpp-crumb-b { font: inherit; color: var(--cin-acc); background: none; border: 0; padding: 0; cursor: pointer; }
.cin .cpp-crumb-b:hover { text-decoration: underline; }
.cin .cpp-back:focus-visible, .cin .cpp-crumb-b:focus-visible { outline: 2px solid var(--cin-acc); outline-offset: 2px; }
.cin .cpp-title { display: flex; flex-direction: column; }
.cin .cpp-h { margin: 0; font-family: var(--cin-display); font-size: 26px; font-weight: 700; }
.cin .cpp-sub { margin: 4px 0 0; font-size: 15px; color: var(--cin-mute); }

/* The row pages: the head above, the screen the wizard's panel mounted below
   it at full width (it brings its own one line under the title). */
.ch-rowpg { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ch-rowpg > .ch-rowpg-head { gap: 14px; }
.ch-rowpg > .ch-rowpg-body { min-width: 0; }
.cin.cpp .cpp-loading { margin: 0; color: var(--cin-mute); font-size: 14.5px; }
.cin.cpp .cpp-card { border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.cin.cpp .cpp-pointer { flex-direction: row; align-items: center; gap: 12px; padding: 14px 18px; }
.cin.cpp .cpp-pointer-ic { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.cin.cpp .cpp-pointer-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.cin.cpp .cpp-pointer-m span { font-size: 13px; color: var(--cin-mute); }
.cin.cpp .cpp-pointer .cin-link { min-height: 36px; flex-shrink: 0; white-space: nowrap; text-decoration: none; }

/* ── Intakes ─────────────────────────────────────────────────────────── */
.cin.cie .cie-list { gap: 0; }
.cin.cie .cie-list-h { padding-bottom: 12px; }
.cin.cie .cie-list-h h3 { margin: 0; font-size: 17px; }
.cin.cie .cie-list-h p { margin-top: 2px; font-size: 13.5px; }
.cin.cie .cie-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--cin-line-2); }
.cin.cie .cie-row-edit { align-items: flex-start; }
.cin.cie .cie-chip { width: 52px; height: 52px; flex-shrink: 0; border: 1px solid var(--cin-line); border-radius: 12px; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.cin.cie .cie-chip small { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--cin-hot-t); }
.cin.cie .cie-chip b { font-size: 20px; font-weight: 600; }
.cin.cie .cie-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cin.cie .cie-t { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.cin.cie .cie-t b { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.cin.cie .cie-badge { font-size: 12px; font-weight: 600; color: var(--cin-good); background: var(--cin-good-soft); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.cin.cie .cie-s { font-size: 13.5px; color: var(--cin-mute); overflow-wrap: anywhere; }
.cin.cie .cie-places { color: var(--cin-ink-2); }
.cin.cie .cie-acts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cin.cie .cie-acts .cin-btn.sm { border-radius: 999px; min-height: 40px; }
.cin.cie .cie-places-b { background: var(--cin-chip); border-color: var(--cin-chip); color: var(--cin-acc); }
.cin.cie .cie-places-b:hover { background: var(--cin-acc-soft); border-color: var(--cin-acc-soft); color: var(--cin-acc-deep); }
.cin.cie .cie-acts .cin-more-b { border-radius: 999px; min-width: 40px; min-height: 40px; padding: 6px 10px; }
.cin.cie .cie-edit { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cin.cie .cie-warn { margin: 0; }
.cin.cie .cie-add { border-top: 1px solid var(--cin-line-2); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.cin.cie .cie-add-h { margin: 0; font-size: 15px; }
.cin.cie .cie-add-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.cin.cie .cie-field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; min-width: 0; }
.cin.cie .cie-field-name { flex: 1 1 260px; }
.cin.cie .cie-field-date { flex: 0 1 220px; }
.cin.cie .cie-in { font-family: inherit; font-size: 14.5px; font-weight: 400; color: var(--cin-ink); background: #fff; border: 1px solid #e2ddd2;
  border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; box-sizing: border-box; }
.cin.cie .cie-in:focus { outline: 2px solid var(--cin-acc); outline-offset: 0; border-color: var(--cin-acc); }
.cin.cie .cie-field .cb-df { width: 100%; }
.cin.cie .cie-msg { margin: 10px 0 0; font-size: 13.5px; }
.cin.cie .cie-msg.good { color: var(--cin-good); }
.cin.cie .cie-msg.bad { color: #b42318; }
.cin.cie .cie-empty { gap: 16px; padding: 28px 20px 20px; }
.cin.cie .cie-empty-h { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--cin-line-2); }
.cin.cie .cie-empty-ic { font-size: 34px; line-height: 1; }
.cin.cie .cie-empty-h b { font-size: 18px; }
.cin.cie .cie-empty-h p { max-width: 520px; font-size: 14.5px; }
.cin.cie .cie-add-empty { border-top: 0; padding-top: 0; }
.cin.cie .cie-add-note { margin: 0; }

/* ── Add students ────────────────────────────────────────────────────── */
.cin.cec .cec-lede { margin: 0; }
.cin.cec .cec-ask { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px 18px; background: var(--cin-well); border-radius: 14px; padding: 14px 16px; }
.cin.cec .cec-field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; width: 300px; max-width: 100%; min-width: 0; }
.cin.cec .cec-field-wide { width: 100%; }
.cin.cec .cec-select { font-family: inherit; font-size: 14.5px; font-weight: 400; color: var(--cin-ink); background: #fff; border: 1px solid #e2ddd2; border-radius: 10px;
  padding: 10px 12px; min-height: 44px; width: 100%; max-width: 100%; }
.cin.cec .cec-welcome { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 44px; font-size: 14.5px; }
.cin.cec .cec-welcome label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.cin.cec .cec-welcome input { width: 18px; height: 18px; accent-color: var(--cin-acc); margin: 0; }
.cin.cec .cec-read { font: inherit; font-size: 13.5px; font-weight: 500; color: var(--cin-acc); background: none; border: 0; padding: 0; cursor: pointer; min-height: 32px; }
.cin.cec .cec-read:hover { text-decoration: underline; }
.cin.cec .cec-unpub { margin: 0; max-width: 520px; }
.cin.cec .cec-k { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cin-faint); }
.cin.cec .cec-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cin.cec .cec-way { font-family: inherit; text-align: left; color: var(--cin-ink); background: #fff; border: 1px solid var(--cin-line); border-radius: 14px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; min-width: 0; min-height: 44px; }
.cin.cec .cec-way:hover { border-color: var(--cin-faint); }
.cin.cec .cec-way.on { border: 1.5px solid var(--cin-acc); background: #f6f4ff; padding: 11.5px 13.5px; }
.cin.cec .cec-way:focus-visible { outline: 2px solid var(--cin-acc); outline-offset: 2px; }
.cin.cec .cec-way-t { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; }
.cin.cec .cec-way-s { font-size: 13px; color: var(--cin-mute); line-height: 1.4; padding-left: 26px; }
.cin.cec .cec-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cfc8bc; flex-shrink: 0; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; }
.cin.cec .cec-way.on .cec-radio { border-color: var(--cin-acc); }
.cin.cec .cec-way.on .cec-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cin-acc); }
.cin.cec .cec-body { display: flex; flex-direction: column; gap: 10px; }
.cin.cec .cec-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--cin-acc); border-radius: 12px; padding: 4px 12px; background: #fff; }
.cin.cec .cec-search small { font-size: 12.5px; color: var(--cin-faint); white-space: nowrap; }
.cin.cec .cec-q { font-family: inherit; font-size: 14.5px; color: var(--cin-ink); border: 0; background: transparent; flex: 1; min-width: 0; min-height: 40px; padding: 0; outline: none; }
.cin.cec .cec-search:focus-within { box-shadow: 0 0 0 2px var(--cin-acc-soft); }
.cin.cec .cec-list { display: flex; flex-direction: column; }
.cin.cec .cec-pad { margin: 0; padding: 8px 0; }
.cin.cec .cec-person { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--cin-line-2); }
.cin.cec .cec-person-m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cin.cec .cec-person-m b { font-size: 14.5px; font-weight: 600; }
.cin.cec .cec-person-m span { font-size: 13px; color: var(--cin-mute); overflow-wrap: anywhere; }
.cin.cec .cec-pill { font-size: 12px; font-weight: 600; color: var(--cin-good); background: var(--cin-good-soft); border-radius: 999px; padding: 3px 9px; white-space: nowrap; flex-shrink: 0; }
.cin.cec .cec-pill.bad { color: #b42318; background: #fef3f2; }
/* G40 Add by email: the paste box, and its answer under it. */
.cin.cec .cec-paste { width: 100%; box-sizing: border-box; min-height: 96px; resize: vertical; line-height: 1.5; }
.cin.cec .cec-result .cec-list { align-self: stretch; }
.cin.cec .cec-add-b { font-family: inherit; font-size: 13px; font-weight: 600; color: var(--cin-acc); background: var(--cin-chip); border: 1px solid var(--cin-chip);
  border-radius: 999px; padding: 8px 14px; min-height: 40px; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.cin.cec .cec-add-b:hover { background: var(--cin-acc-soft); }
.cin.cec .cec-add-b:disabled { opacity: .6; cursor: default; }
.cin.cec .cec-count { margin: 0; padding-top: 6px; font-size: 12.5px; color: var(--cin-faint); }
.cin.cec .cec-preview { background: var(--cin-well); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.cin.cec .cec-preview ul { margin: 0; padding-left: 20px; font-size: 14px; color: var(--cin-ink-2); }
.cin.cec .cec-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.cin.cec .cec-check input { width: 18px; height: 18px; accent-color: var(--cin-acc); margin: 2px 0 0; flex-shrink: 0; }
.cin.cec .cec-check small { display: block; font-size: 12.5px; color: var(--cin-mute); margin-top: 2px; }
.cin.cec .cec-none { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 6px 0; font-size: 14.5px; }
.cin.cec .cec-none p { margin: 0 0 6px; }
.cin.cec .cec-msg { margin: 0; font-size: 13.5px; color: var(--cin-mute); }
.cin.cec .cec-msg.good { color: var(--cin-good); }
.cin.cec .cec-msg.bad { color: #b42318; }
.cin.cec .cec-added { background: var(--cin-well); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.cin.cec .cec-added p { margin: 0; font-size: 14px; }
.cin.cec .cec-added-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.cin.cec .cec-added-out { font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; }
.cin.cec .cec-link { border: 1px solid #e2ddd2; border-radius: 10px; padding: 8px 10px; background: #fff; }

/* ── A phone ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .cin.cpp .cpp-h { font-size: 24px; }
  .cin.cpp .cpp-card { padding: 16px; }
  .cin.cie .cie-row { flex-wrap: wrap; row-gap: 12px; align-items: flex-start; }
  .cin.cie .cie-m { flex: 1 1 calc(100% - 66px); }
  .cin.cie .cie-acts { width: 100%; padding-left: 66px; }
  .cin.cie .cie-row-edit .cie-edit { flex: 1 1 calc(100% - 66px); }
  .cin.cie .cie-add-row > * { flex: 1 1 100%; }
  .cin.cie .cie-add-row .cin-btn { width: 100%; }
  .cin.cec .cec-ways { grid-template-columns: minmax(0, 1fr); }
  .cin.cec .cec-field { width: 100%; }
  .cin.cec .cec-search small { display: none; }
  .cin.cec .cec-person { flex-wrap: wrap; row-gap: 6px; }
  .cin.cec .cec-person-m { flex: 1 1 calc(100% - 44px); }
  .cin.cec .cec-person-m span { overflow-wrap: break-word; }
  .cin.cec .cec-person .cec-pill, .cin.cec .cec-person .cec-add-b { margin-left: 44px; }
  .cin.cpp .cpp-pointer { flex-wrap: wrap; align-items: flex-start; row-gap: 4px; }
  .cin.cpp .cpp-pointer-m { flex: 1 1 calc(100% - 40px); }
  .cin.cpp .cpp-pointer .cin-link { margin-left: 36px; }
}
