/* PathKEY — coach portal (Dashboard, Links, Reports, Bundles, Your coach
 * page, onboarding, Settings, the link drawer, the New link, send, deliver
 * and buy dialogs, the rail credits widget, the admin's read-only coach
 * view). Owned by the coach portal workstream. Role tokens only
 * (css/tokens.css); every motion takes its length from a --dur-* token so
 * reduced motion reaches it. Classes are prefixed co-. */

/* ---------------------------------------------------------- shared --- */
/* table cells carry data-col (their column), so the phone layout never
   depends on column headings AlignmentKey may reword */
.co-dt [data-col] { display: contents; }
.co-sub { font-size: var(--fs-12); line-height: var(--lh-12); color: var(--text-muted); font-weight: var(--fw-regular); }
.co-stack, .co-person-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.co-strong { font-weight: var(--fw-medium); color: var(--text); }
.co-person { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.co-person .status { margin-top: 1px; }
.co-product { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.co-mode, .co-indication, .co-soon { display: inline-flex; align-items: flex-start; gap: 6px; }
.co-mode .icon, .co-indication .icon { color: var(--accent); margin-top: 3px; }
.co-indication { color: var(--text-2); max-width: 28ch; }
.co-soon { color: var(--highlight-text); font-weight: var(--fw-medium); align-items: center; }
.co-row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: var(--sp-1); }
.co-quiet { opacity: .7; transition: opacity var(--dur-1) var(--ease); }
tr:hover .co-quiet, tr:focus-within .co-quiet, .co-quiet:focus-visible { opacity: 1; }
.co-spacer { flex: 1; }
.co-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: var(--r-full);
  background: var(--bg-sunken); color: var(--text-2); font-size: var(--fs-11); font-weight: var(--fw-semibold); letter-spacing: 0; text-transform: none;
}
.co-dt td:has(> [data-col="act"]) { width: 1%; white-space: nowrap; text-align: right; }
.co-dt th:last-child { text-align: right; }
.co-dt .dt-go { width: 28px; padding-left: 0; }
.co-dt tr.dt-empty td { padding: 0; }
.co-dt .co-product, .co-dt .co-mode, .co-dt [data-col="expires"] { white-space: nowrap; }
.co-dt .co-product { flex-wrap: nowrap; }
.co-dt tr:has(.co-dead) td:not(:has(> [data-col="act"])) { color: var(--text-muted); }
.co-dt tr:has(.co-dead) .dt-primary { color: var(--text-2); }

/* a row that just changed: the whole row lights up with an accent edge, holds, then fades (1.2 s) */
@keyframes co-rowflash { 0%, 30% { background-color: var(--bg-selected-row); } 100% { background-color: transparent; } }
@keyframes co-rowflash-edge { 0%, 30% { box-shadow: inset 2px 0 0 var(--accent); } 100% { box-shadow: inset 2px 0 0 transparent; } }
.co-dt tr:has(.co-rowflash) > td { animation: co-rowflash calc(var(--dur-4) * 3.75) var(--ease-exit) both; }
.co-dt tr:has(.co-rowflash) > td:first-child { animation-name: co-rowflash, co-rowflash-edge; }
/* without motion the row stays marked, still, until the next redraw takes the mark away */
@media (prefers-reduced-motion: reduce) {
  .co-dt tr:has(.co-rowflash) > td { animation: none; background-color: var(--bg-selected-row); }
  .co-dt tr:has(.co-rowflash) > td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
}

/* one line for statuses and times, so rows keep one height */
.co-dt .status, .co-when-line, .co-dt [data-col="submitted"] .co-stack > :first-child { white-space: nowrap; }
/* "When finished" as an icon in the link's sub-line where the column does not fit */
.co-mode-glyph { display: none; align-items: center; margin-right: 6px; color: var(--accent); vertical-align: -1px; }

/* ------------------------------------------------------- dashboard --- */
.co-home { container-type: inline-size; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
.co-main, .co-side { display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; }
@container (min-width: 1040px) {
  .co-grid { grid-template-columns: minmax(0, 1fr) 340px; }
}
.co-home .page-desc a { color: var(--text); text-decoration-color: var(--highlight); text-decoration-thickness: 2px; }
.co-home .page-desc a:hover { color: var(--accent-text); }
.co-home .page-desc a strong { font-weight: var(--fw-semibold); color: inherit; }

/* first run: the wash, a two-tone line and three numbered steps */
.co-firstrun { background: var(--bg-wash); }
.co-firstrun-head { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-6) var(--sp-6) var(--sp-4); }
.co-firstrun-head.is-waiting { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; column-gap: var(--sp-4); }
.co-firstrun-titles { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.co-firstrun-title { font-size: var(--fs-26); line-height: var(--lh-26); font-weight: var(--fw-bold); letter-spacing: var(--track-display); max-width: 30ch; }
.co-firstrun-text { color: var(--text-muted); max-width: 64ch; }
.co-steps { list-style: none; margin: 0; padding: 0 var(--sp-6) var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); }
.co-step {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-12); background: var(--bg-surface);
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.co-step-mark {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--line-field); color: var(--text-muted); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums;
  transition: background var(--dur-4) var(--ease), border-color var(--dur-4) var(--ease);
}
.co-step-text { display: flex; flex-direction: column; gap: 2px; }
.co-step-text strong { font-weight: var(--fw-semibold); }
.co-step.is-current { border-color: var(--accent-line); box-shadow: inset 3px 0 0 var(--accent); }
.co-step.is-current .co-step-mark { border: 2px solid var(--accent); color: var(--accent-text); }
.co-step.is-done { background: var(--bg-subtle); }
.co-step.is-done .co-step-mark { background: var(--accent); border-color: var(--accent); color: var(--text-on-accent); }
.co-step.is-done .co-step-text strong { color: var(--text-2); }

.co-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.co-checklist li { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 36px; border-top: 1px solid var(--line-soft); }
.co-checklist .status { font-size: var(--fs-13); }
/* fix 5-C (RV5-UX-5): the name takes the row, so "Optional" sits in one place on every row and Add stays at the right. */
.co-checklist li > .status { flex: 1 1 auto; min-width: 0; }
.co-checklist li > .field-optional { flex: none; }

.co-activity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.co-activity-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: var(--sp-3); align-items: start; padding: var(--sp-2) 0; font-size: var(--fs-13); line-height: var(--lh-13); }
.co-activity-item + .co-activity-item { border-top: 1px solid var(--line-soft); }
.co-activity-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--text-2); }
.co-activity-text strong { color: var(--text); font-weight: var(--fw-medium); }
.co-activity-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-sunken); color: var(--icon); }
.co-activity-icon[data-tone="accent"] { background: var(--accent-soft); color: var(--accent); }
.co-activity-icon[data-tone="gold"] { background: var(--highlight-soft); color: var(--highlight-text); }
.co-activity-icon[data-tone="ok"] { background: var(--ok-soft); color: var(--ok); }
.co-activity-icon[data-tone="warn"] { background: var(--warn-soft); color: var(--warn); }
.co-activity-icon[data-tone="crit"] { background: var(--crit-soft); color: var(--crit); }
.co-delta { font-weight: var(--fw-semibold); color: var(--text-2); padding-top: 4px; }
.co-delta[data-sign="up"] { color: var(--ok-text); }
.co-delta.is-own { color: var(--text-muted); font-weight: var(--fw-regular); } /* fix 2-C (RV2-UX-5): not in the balance shown */
.co-activity .card-body { padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
/* an empty card says so flat inside itself (design §11.19): no washed box within the card */
.co-activity .card-body > .empty-state { background: none; border-radius: 0; padding: var(--sp-6) var(--sp-2) var(--sp-5); }

/* the dashboard's short open links table: the link keeps its name on one line */
.co-dt-links td:first-child { min-width: 200px; }
.co-dt-links .co-mode-glyph { display: inline-flex; }

/* the Links table drops "When finished" (third column) when narrower than a wide desktop, and keeps it as an icon */
.co-dt-linktable { container-type: inline-size; }
@container (max-width: 1099px) {
  .co-dt-linktable th:nth-child(3), .co-dt-linktable td:has(> [data-col="mode"]) { display: none; }
  .co-dt-linktable .co-mode-glyph { display: inline-flex; }
}
/* narrower still (a tablet), the recipients stay in the drawer so every row keeps two lines; phone cards have the room */
@media screen and (min-width: 768px) {
  @container (max-width: 959px) { .co-dt-linktable .co-sub-extra { display: none; } }
}

/* ------------------------------------------------ list pages (cards) --- */
.co-listcard { overflow: visible; }
.co-filterbar { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line-soft); }
.co-filterbar > .input-wrap { flex: 1 1 240px; max-width: 340px; }
.co-filter-selects { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-left: auto; }
.co-filter-selects select { width: auto; max-width: 240px; }
.co-chips { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--line-soft); }
.co-chip-x { cursor: pointer; font: inherit; font-size: var(--fs-12); gap: 6px; }
.co-chip-x:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.co-bulkbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3); min-height: 48px; padding: var(--sp-2) var(--sp-4);
  border-bottom: 1px solid var(--line-soft); background: var(--bg-subtle); font-size: var(--fs-13);
  transition: background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.co-bulkbar .checkbox { align-items: center; }
.co-bulkbar.has-selection { background: var(--bg-selected-row); box-shadow: inset 3px 0 0 var(--accent); }
.co-bulkbar.is-running { background: var(--accent-soft); color: var(--accent-text); }
.co-bulk-count strong { font-variant-numeric: tabular-nums; }
.co-bulk-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-left: auto; }
.co-pager { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4); border-top: 1px solid var(--line-soft); font-size: var(--fs-12); color: var(--text-muted); }
.co-pager > .num { margin-right: auto; }
.co-listcard .dt-wrap { border-radius: 0 0 var(--r-card) var(--r-card); }
.co-dt-reports tbody tr:has(input[data-select]:checked) { background: var(--bg-selected-row); }
.co-dt-reports tbody tr:has(input[data-select]:checked) td:first-child { box-shadow: inset 2px 0 0 var(--accent); }

/* ---------------------------------------------------------- bundles --- */
.co-bundle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: var(--sp-5); align-items: stretch; }
.co-bundle { transition: box-shadow var(--dur-4) var(--ease); }
.co-bundle.is-focus { box-shadow: 0 0 0 2px var(--highlight), var(--shadow-2); }
.co-bundle .card-body { gap: var(--sp-3); flex: 1; }
/* the pack tiles sit on the card's floor, so both products' tiles line up whatever is above them */
.co-packs { margin-top: auto; }
.co-balance { display: flex; align-items: baseline; gap: var(--sp-2); }
.co-balance-n { font-size: var(--fs-32); line-height: var(--lh-32); font-weight: var(--fw-bold); letter-spacing: var(--track-tight); color: var(--text-kpi); }
.co-balance-l { color: var(--text-muted); }
.co-balance-bar { display: flex; gap: 2px; height: 8px; border-radius: var(--r-full); overflow: hidden; background: var(--data-track); }
.co-balance-bar span { flex-basis: 0; min-width: 0; transition: flex-grow var(--dur-4) var(--ease-move); }
.co-balance-bar .is-available, .co-balance-legend i.is-available { background: var(--data-fill); }
.co-balance-bar .is-reserved, .co-balance-legend i.is-reserved { background: var(--accent-line); }
.co-balance-bar .is-used, .co-balance-legend i.is-used { background: var(--line-control); }
.co-balance-bar .is-expired, .co-balance-legend i.is-expired { background: var(--highlight); }
.co-balance-bar .is-empty { flex-grow: 1; }
.co-balance-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); font-size: var(--fs-12); color: var(--text-muted); }
.co-balance-legend li { display: inline-flex; align-items: center; gap: 6px; }
.co-balance-legend i { width: 8px; height: 8px; border-radius: 50%; }
.co-balance-legend strong { color: var(--text-2); font-weight: var(--fw-semibold); }
.co-provenance { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; font-size: var(--fs-13); }
.co-provenance li { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 36px; border-top: 1px solid var(--line-soft); color: var(--text-2); }
.co-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); padding-top: var(--sp-2); }
.co-pack {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0;
  padding: var(--sp-4) var(--sp-4) var(--sp-3); border: 1.5px solid var(--line-control); border-radius: var(--r-12);
  background: var(--bg-surface); color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.co-pack:hover { border-color: var(--accent); background: var(--bg-selected-row); box-shadow: var(--shadow-2); }
.co-pack:active { transform: translateY(.5px); }
.co-pack:focus-visible { box-shadow: var(--focus-ring); }
.co-pack.is-best { border-color: var(--highlight); }
.co-pack.is-best:hover { background: var(--highlight-faint); }
.co-pack-tag { position: absolute; top: -11px; right: var(--sp-3); }
.co-pack-size { font-size: var(--fs-26); line-height: var(--lh-26); font-weight: var(--fw-bold); letter-spacing: var(--track-tight); color: var(--text-kpi); }
.co-pack-unit { font-size: var(--fs-12); color: var(--text-muted); margin-top: -2px; }
.co-pack-price { margin-top: var(--sp-2); font-size: var(--fs-16); font-weight: var(--fw-semibold); }
.co-save { font-size: var(--fs-12); font-weight: var(--fw-semibold); color: var(--highlight-text); }
.co-pack.is-disabled { cursor: default; background: var(--bg-subtle); border-style: dashed; }
.co-pack-buy {
  display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: var(--sp-3);
  font-size: var(--fs-13); font-weight: var(--fw-medium); color: var(--accent-text);
}
.co-pack-buy .icon { transition: transform var(--dur-1) var(--ease); }
.co-pack:hover .co-pack-buy .icon, .co-pack:focus-visible .co-pack-buy .icon { transform: translateX(2px); }
.co-packs-note { display: flex; align-items: center; gap: 6px; }
.co-packs-note .icon { color: var(--highlight-text); flex: none; }
.co-bundle .card-foot a { display: inline-flex; align-items: center; gap: 4px; font-weight: var(--fw-medium); }
.co-rule { align-items: flex-start; }
.co-rule .icon { margin-top: 2px; color: var(--accent); flex: none; }
.co-rule strong { color: var(--text-2); }
.co-history .card-body.is-flush { padding: 0; }
.co-history-list { padding: 0 var(--sp-5); }
.co-more { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); padding: var(--sp-3); border-top: 1px solid var(--line-soft); }
.co-history .card-titles { flex: 1 1 220px; }
.co-history .card-action select { width: auto; }
.co-ph { display: none; }
.co-when { display: inline-block; }
@media screen and (min-width: 768px) { .co-when::first-letter { text-transform: uppercase; } }

/* ---------------------------------------------- rail credits widget --- */
.co-credits { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-12); background: var(--bg-surface); overflow: hidden; }
.co-credits-btn {
  display: flex; flex-direction: column; gap: 6px; width: 100%; padding: var(--sp-3) var(--sp-3) var(--sp-2); border: 0;
  background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: background var(--dur-1) var(--ease);
}
.co-credits-btn:hover, .co-credits-btn[aria-expanded="true"] { background: var(--bg-hover); }
.co-credits-btn:focus-visible { box-shadow: var(--focus-ring-inset); }
.co-credits-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-1) var(--sp-2); padding: 0 var(--sp-3) var(--sp-3); }
/* "Ask Acme Outplacement for credits" in a narrow rail: wraps onto a second line, and only a very long company
   name ends in "…" (the words stay C4.6's; fix 3-C, RV3-UX-2). */
.co-credits-foot .btn-link {
  font-size: var(--fs-12); line-height: var(--lh-12); flex: 0 1 auto; min-width: 0; max-width: 100%; white-space: normal; text-align: left;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.co-credits-head { display: flex; align-items: baseline; justify-content: space-between; }
.co-credits-n { font-size: var(--fs-20); line-height: var(--lh-20); font-weight: var(--fw-bold); color: var(--text-kpi); }
.co-credits-bar { display: flex; gap: 2px; height: 4px; border-radius: var(--r-full); overflow: hidden; background: var(--data-track); }
.co-credits-bar span { flex-basis: 0; }
.co-credits-bar [data-tone="a"] { background: var(--accent); }
.co-credits-bar [data-tone="b"] { background: var(--accent-line); }
.co-credits-bar [data-tone="c"] { background: var(--highlight); }
.co-credits-split { font-size: var(--fs-12); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-credits-pop { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-3); width: 300px; max-width: 100%; }
.co-credits-pop-row p { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-13); }
.co-credits-pop-row ul { list-style: none; margin: var(--sp-1) 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.co-credits-pop-row li { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-12); color: var(--text-muted); }
.co-credits-pop > .btn { align-self: flex-start; }

/* ---------------------------------------------------------- dialogs --- */
.co-fieldset { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.co-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); align-items: start; }
.co-oneproduct { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-control); font-size: var(--fs-13); }
.co-oneproduct .icon { color: var(--accent); }
.co-uses { display: inline-flex; align-items: center; gap: var(--sp-2); }
.co-uses input { width: 72px; text-align: center; }
.co-consequence {
  display: flex; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-3); border-radius: var(--r-control);
  background: var(--accent-soft); color: var(--text-2); font-size: var(--fs-13);
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.co-consequence .icon { color: var(--accent); margin-top: 2px; flex: none; }
.co-consequence strong { color: var(--text); font-weight: var(--fw-semibold); }
.co-consequence[data-tone="warn"] { background: var(--warn-soft); color: var(--warn-text); }
.co-consequence[data-tone="warn"] .icon { color: var(--warn); }
.radio-card-sub a { font-weight: var(--fw-medium); }

@keyframes co-rise { from { opacity: 0; transform: translateY(var(--lift)); } to { opacity: 1; transform: none; } }
@keyframes co-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.co-success-in { animation: co-rise var(--dur-3) var(--ease-enter) both; }
.co-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-2); padding: var(--sp-2) 0 var(--sp-1); }
.co-success-mark {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: var(--text-on-accent); box-shadow: 0 0 0 6px var(--accent-soft);
  animation: co-pop var(--dur-4) var(--ease-enter) both;
}
.co-success-lead { font-size: var(--fs-16); line-height: var(--lh-16); max-width: 46ch; }
.co-copyrow { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.co-copyrow input { flex: 1; min-width: 0; }
.co-recipients { margin-top: calc(var(--sp-2) * -1); font-size: var(--fs-12); color: var(--text-muted); }
.co-recipients[data-tone="ok"] { color: var(--ok-text); }
.co-recipients[data-tone="warn"] { color: var(--warn-text); font-weight: var(--fw-medium); }
.co-mailprev { border: 1px solid var(--line); border-radius: var(--r-12); overflow: hidden; background: var(--bg-subtle); font-size: var(--fs-13); }
.co-mailprev-meta { display: flex; gap: var(--sp-3); padding: 6px var(--sp-4); border-bottom: 1px solid var(--line-soft); color: var(--text-2); }
.co-mailprev-meta span { width: 56px; flex: none; color: var(--text-muted); }
.co-mailprev-meta strong { font-weight: var(--fw-medium); color: var(--text); }
.co-mailprev-body { display: flex; flex-direction: column; gap: var(--sp-2); align-items: flex-start; padding: var(--sp-4); background: var(--bg-surface); color: var(--text); box-shadow: inset 0 3px 0 var(--cta); }
.co-mailprev-logo { width: auto; height: 22px; margin-bottom: var(--sp-1); }
.co-mailprev-eyebrow { font-size: var(--fs-11); line-height: var(--lh-11); font-weight: var(--fw-bold); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--text-eyebrow); padding-top: var(--sp-1); }
.co-mailprev-title { font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-bold); letter-spacing: var(--track-tight); color: var(--text); margin-top: -2px; }
.co-mailprev-note { padding: var(--sp-2) var(--sp-3); border-left: 3px solid var(--highlight); background: var(--highlight-faint); color: var(--text); font-style: italic; white-space: pre-line; }
.co-mailprev-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 var(--sp-4); border-radius: var(--r-full); background: var(--cta); color: var(--text-on-cta); font-weight: var(--fw-semibold); }
.co-mailprev-sign { font-size: var(--fs-13); color: var(--text-2); }
.co-mailprev-sign:empty { display: none; }
.co-mailprev-foot { align-self: stretch; padding-top: var(--sp-2); border-top: 1px solid var(--line-soft); font-size: var(--fs-11); line-height: var(--lh-11); color: var(--text-muted); }
.co-mailprev > .co-sub { padding: 6px var(--sp-4); }
.co-summary { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-12); overflow: hidden; }
.co-summary div { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-2) var(--sp-4); font-size: var(--fs-13); }
.co-summary div + div { border-top: 1px solid var(--line-soft); }
.co-summary dt { color: var(--text-muted); }
.co-summary dd { margin: 0; font-weight: var(--fw-medium); }
.co-summary .is-total { background: var(--bg-subtle); font-size: var(--fs-16); }
.co-summary .is-total dt { color: var(--text); font-weight: var(--fw-semibold); }
.co-summary .is-total dd { font-weight: var(--fw-bold); color: var(--text-kpi); }
.co-summary dt { flex: none; white-space: nowrap; }
.co-summary dd { min-width: 0; text-align: right; overflow-wrap: anywhere; }
.co-summary-copy { display: inline-flex; align-items: center; gap: var(--sp-1); }
.co-summary div { align-items: center; }

/* the email a send would have made, folded away while email is not set up */
.co-fold { border: 1px solid var(--line); border-radius: var(--r-12); background: var(--bg-surface); }
.co-fold > summary {
  display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); cursor: pointer; list-style: none;
  font-size: var(--fs-13); font-weight: var(--fw-medium); color: var(--text-2); border-radius: var(--r-12);
}
.co-fold > summary::-webkit-details-marker { display: none; }
.co-fold > summary .icon { color: var(--accent); transition: transform var(--dur-3) var(--ease-enter); }
.co-fold[open] > summary .icon { transform: rotate(90deg); }
.co-fold > summary:hover { color: var(--text); }
.co-fold > summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.co-fold-body { display: flex; flex-direction: column; gap: var(--sp-4); padding: 0 var(--sp-4) var(--sp-4); }
.co-bulk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 280px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-12); }
.co-bulk-list li { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); }
.co-bulk-list li + li { border-top: 1px solid var(--line-soft); }
.dlg-body .well { align-items: flex-start; }
.dlg-body .well .icon { margin-top: 2px; color: var(--accent); flex: none; }
.dlg-body .hint [data-co-mismatch], .dlg-body .hint span[data-co-mismatch] { color: var(--warn-text); }

/* ----------------------------------------------------------- drawer --- */
.co-drawer .drawer-body { gap: var(--sp-5); }
.co-drawer .drawer-body > * { flex-shrink: 0; }
.co-drawer .drawer-foot { flex-wrap: wrap; }
.co-drawer .drawer-foot { justify-content: flex-start; align-items: center; }
.co-drawer-status { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.co-drawer-stats { margin: 0; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); border: 1px solid var(--line); border-radius: var(--r-12); overflow: hidden; }
.co-drawer-stats > div { padding: var(--sp-3) var(--sp-4); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.co-drawer-stats > div + div { border-left: 1px solid var(--line-soft); }
.co-drawer-stats dt { font-size: var(--fs-12); color: var(--text-muted); }
.co-drawer-stats dd { margin: 0; font-size: var(--fs-20); line-height: var(--lh-20); font-weight: var(--fw-bold); color: var(--text-kpi); }
.co-drawer-stats dd span { font-size: var(--fs-13); font-weight: var(--fw-regular); color: var(--text-muted); }
.co-drawer-stats dd.is-text { font-size: var(--fs-16); line-height: var(--lh-20); font-weight: var(--fw-semibold); color: var(--text); }
.co-drawer-stats dd.co-sub { font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-regular); color: var(--text-muted); }
.co-drawer-meter { padding: 6px 0 2px; }
.co-drawer-meter .meter-wrap { display: flex; }
.co-drawer-meter .meter { width: 100%; flex: 1; }
.co-drawer-meter .meter-label { display: none; }   /* the figure above says it; the meter keeps it as its name */
.co-drawer-sec { display: flex; flex-direction: column; gap: var(--sp-2); padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); }
.co-drawer-sec h3 { display: flex; align-items: center; font-size: var(--fs-11); line-height: var(--lh-11); font-weight: var(--fw-bold); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--text-eyebrow); }
.co-drawer-sec > p { font-size: var(--fs-13); color: var(--text-2); }
.co-drawer-sec > .btn { align-self: flex-start; }
.co-recipient-list, .co-drawer-reports { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.co-recipient-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: var(--sp-2); align-items: center; min-height: 32px; font-size: var(--fs-13); }
.co-recipient-list li > span:nth-child(2) { overflow-wrap: anywhere; }
.co-recipient-list .icon { color: var(--icon); }
.co-drawer-reports li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--sp-3); align-items: center; min-height: 36px; font-size: var(--fs-13); border-top: 1px solid var(--line-soft); }
.co-drawer-reports li:first-child { border-top: 0; }
.co-drawer-reports a { color: var(--text); font-weight: var(--fw-medium); text-decoration: none; }
.co-drawer-reports a:hover { color: var(--accent-text); text-decoration: underline; }
.co-details { margin: 0; display: flex; flex-direction: column; }
.co-details div { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: var(--sp-3); align-items: baseline; padding: 6px 0; font-size: var(--fs-13); }
.co-details dt { color: var(--text-muted); }
.co-details dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.co-preview { align-self: flex-start; }

/* ------------------------------------------- the admin's coach view --- */
.co-viewas {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4);
  padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-5);
  border: 1px solid var(--accent-line); border-radius: var(--r-card); background: var(--accent-soft);
}
.co-viewas-text { display: flex; align-items: center; gap: var(--sp-2); flex: 1 1 280px; font-size: var(--fs-13); color: var(--text-2); }
.co-viewas-text strong { color: var(--text); font-weight: var(--fw-semibold); }
.co-viewas-text .icon { color: var(--accent); flex: none; }
.co-viewas-nav { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.co-viewas-nav a {
  display: inline-flex; align-items: center; height: 28px; padding: 0 var(--sp-3); border-radius: var(--r-full);
  font-size: var(--fs-12); font-weight: var(--fw-medium); color: var(--accent-text); text-decoration: none;
  transition: background var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.co-viewas-nav a:hover { background: var(--bg-surface); }
.co-viewas-nav a[aria-current="page"] { background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--accent-line); }
.co-state { background: var(--bg-wash); padding: var(--sp-8) var(--sp-6); }
/* the admin pages draw their own "viewing as" bar (body.is-viewing-as): one strip is enough */
.is-viewing-as .co-viewas { display: none; }
.co-pack.is-static { cursor: default; }
.co-pack.is-static:hover { border-color: var(--line-control); background: var(--bg-surface); box-shadow: none; }
.co-pack.is-static.is-best:hover { border-color: var(--highlight); }

/* -------------------------------------------------- your coach page --- */
.cp-page { container-type: inline-size; }
.cp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
.cp-form, .cp-side { display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; }
.cp-form .card-body { gap: var(--sp-4); }
.cp-side { gap: var(--sp-3); }
@container (min-width: 960px) {
  .cp-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); }
  .cp-side { position: sticky; top: calc(var(--topline-h) + var(--appbar-h) + var(--sp-5)); }
}
.cp-credential { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: var(--fs-13); color: var(--text-muted); }
.cp-credential .icon { margin-top: 3px; color: var(--icon); flex: none; }
.cp-credential strong { color: var(--text-2); font-weight: var(--fw-medium); }
.cp-bio { display: flex; flex-direction: column; }
.cp-split {
  display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--sp-1) var(--sp-2); align-items: start;
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-control); background: var(--bg-sunken); font-size: var(--fs-13); color: var(--text-2);
}
.cp-split > .icon { margin-top: 2px; color: var(--accent); }
.cp-split > .btn { grid-column: 2; justify-self: start; margin-top: var(--sp-1); }
.cp-form .tabbar { margin-bottom: calc(var(--sp-1) * -1); }

.cp-identity { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.cp-identity-fields { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.cp-photo-col { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); padding-top: var(--sp-1); }
.cp-drop {
  margin: calc(var(--sp-2) * -1); padding: var(--sp-2); border: 1.5px dashed transparent; border-radius: var(--r-12);
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.cp-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.cp-photo {
  position: relative; width: 88px; height: 88px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-text); box-shadow: 0 0 0 4px var(--bg-surface), 0 0 0 5px var(--line);
}
.cp-photo img { width: 100%; height: 100%; object-fit: cover; animation: pk-fade-in var(--dur-3) var(--ease-enter) both; }
.cp-initials { font-size: var(--fs-26); font-weight: var(--fw-bold); letter-spacing: var(--track-tight); }
.cp-photo.is-busy img, .cp-photo.is-busy .cp-initials { opacity: .4; }
.cp-photo-spin { position: absolute; inset: 32%; border-radius: 50%; border: 2.5px solid var(--accent-soft-2); border-top-color: var(--accent); animation: pk-spin 800ms linear infinite; }
@media (prefers-reduced-motion: reduce) { .cp-photo-spin { animation: none; } }
.cp-photo-actions { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); }
.cp-photo-note { margin-top: calc(var(--sp-1) * -1); }

.cp-preview-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.cp-preview-lang { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); color: var(--text-muted); }
.cp-sheet-wrap { container-type: inline-size; padding: var(--sp-4); border-radius: var(--r-card); background: var(--bg-desk); }
/* the printed page at A4 proportions; every size is in em of a font that
   follows the column's width, so the whole page scales as one */
.cp-sheet {
  display: flex; flex-direction: column; gap: 2.4em; width: 100%; aspect-ratio: 210 / 297; overflow: hidden;
  padding: 9% 9.5% 5%; border-radius: 2px; background: var(--bg-surface); box-shadow: var(--shadow-2);
  font-size: 1.85cqw; line-height: 1.5; color: var(--text);
}
.cp-sheet-head { display: flex; flex-direction: column; gap: 0.9em; }
.cp-sheet-rule { width: 3.4em; height: 0.3em; border-radius: var(--r-full); background: var(--accent); }
.cp-sheet-eyebrow { font-size: 0.8em; font-weight: var(--fw-bold); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--text-eyebrow); }
.cp-sheet-who { display: flex; align-items: center; gap: 2em; }
.cp-sheet-photo {
  width: 8.6em; height: 8.6em; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-text); font-weight: var(--fw-bold); box-shadow: inset 0 0 0 1px var(--line);
}
.cp-sheet-photo > span { font-size: 2.6em; letter-spacing: var(--track-tight); }
.cp-sheet-photo img { width: 100%; height: 100%; object-fit: cover; }
.cp-sheet-names { display: flex; flex-direction: column; gap: 0.3em; min-width: 0; }
.cp-sheet-name { font-size: 1.9em; line-height: 1.15; font-weight: var(--fw-bold); letter-spacing: var(--track-display); overflow-wrap: anywhere; }
.cp-sheet-company { font-size: 1.1em; color: var(--text-2); }
.cp-sheet-cred { font-size: 0.95em; color: var(--text-muted); }
.cp-sheet-bio {
  color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 16; line-clamp: 16; overflow: hidden;
}
.cp-sheet-contact { list-style: none; margin: 0; padding: 1.3em 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.6em; }
.cp-sheet-contact li { display: flex; align-items: center; gap: 0.8em; color: var(--accent-text); overflow-wrap: anywhere; min-width: 0; }
.cp-sheet-contact .icon, .cp-sheet-noicon { width: 1.15em; height: 1.15em; flex: none; }
.cp-sheet-contact .is-booking { font-weight: var(--fw-semibold); }
.cp-sheet-foot { margin-top: auto; display: flex; align-items: center; gap: 1.6em; padding-top: 1em; border-top: 1px solid var(--line-soft); font-size: 0.8em; line-height: 1.4; color: var(--text-muted); }
.cp-sheet-foot p { flex: 1; min-width: 0; font-size: 0.9em; }
.cp-sheet-logo { width: auto; height: 2.6em; flex: none; }
.cp-fallback { display: flex; align-items: center; gap: 6px; }
.cp-fallback .icon { color: var(--accent); flex: none; }
.cp-checklist { padding: 0 var(--sp-1); }

/* ------------------------------------------------------- onboarding --- */
.ob-page { width: 100%; max-width: 640px; margin: 0 auto; padding-top: var(--sp-6); }
.ob-card { overflow: hidden; }
.ob-head { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-8) var(--sp-8) var(--sp-5); background: var(--bg-wash); border-bottom: 1px solid var(--line-soft); }
.ob-head h1 { font-size: var(--fs-26); line-height: var(--lh-26); font-weight: var(--fw-bold); letter-spacing: var(--track-display); }
.ob-lede { max-width: 56ch; color: var(--text-2); }
.ob-head .stepper { margin-top: var(--sp-2); }
.ob-form { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-6) var(--sp-8) var(--sp-8); animation: co-rise var(--dur-3) var(--ease-enter) both; }
.ob-step-title { font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-bold); letter-spacing: var(--track-tight); }
.ob-form > .co-sub { margin-top: calc(var(--sp-3) * -1); font-size: var(--fs-13); line-height: var(--lh-13); }
.ob-well {
  display: flex; flex-direction: column; gap: var(--sp-3); max-height: 300px; overflow-y: auto; overscroll-behavior: contain;
  padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-12); background: var(--bg-sunken);
  font-size: var(--fs-13); line-height: var(--lh-13); color: var(--text-2);
}
.ob-well:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ob-points { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: var(--sp-3); }
.ob-points li::marker { color: var(--accent); font-weight: var(--fw-bold); }
.ob-points strong { color: var(--text); font-weight: var(--fw-semibold); }
.ob-version { padding-top: var(--sp-3); border-top: 1px solid var(--line-soft); font-size: var(--fs-12); color: var(--text-muted); }
.ob-form .checkbox { align-items: flex-start; }
.ob-actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-2); padding-top: var(--sp-2); }
/* Accept wakes up once the box is ticked: its gold comes in rather than snapping on */
.ob-accept { transition: background-color var(--dur-3) var(--ease-enter), color var(--dur-3) var(--ease-enter), box-shadow var(--dur-3) var(--ease-enter), border-color var(--dur-3) var(--ease-enter), transform var(--dur-1) var(--ease); }
.ob-accept .btn-arrow { transition: transform var(--dur-3) var(--ease-enter), opacity var(--dur-3) var(--ease-enter); }
.ob-accept[aria-disabled="true"] .btn-arrow { opacity: 0; transform: translateX(-4px); }
.ob-ready { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0 var(--sp-1); text-align: center; }
.ob-ready .co-success-mark, .ob-ready .icon-tile { animation: co-pop var(--dur-4) var(--ease-enter) both; }
.ob-ready-title { font-size: var(--fs-26); line-height: var(--lh-26); font-weight: var(--fw-bold); letter-spacing: var(--track-display); }
.ob-ready p { max-width: 46ch; color: var(--text-2); }
.ob-next { padding: 0; }

/* --------------------------------------------------------- settings --- */
.cp-settings-grid { display: flex; flex-direction: column; gap: var(--sp-5); max-width: 760px; }
.cp-password .co-form-grid { align-items: start; }
.cp-account div { grid-template-columns: 150px minmax(0, 1fr) auto; }
.cp-password { display: flex; flex-direction: column; gap: var(--sp-4); }
.cp-password .btn, .cp-settings-grid .card-body > div > .btn { align-self: flex-start; }

/* ------------------------------------------------------------ phone --- */
/* key hints mean nothing without a keyboard */
@media (pointer: coarse) { .co-page .btn .kbd, .co-filterbar .input-kbd { display: none; } }
@media screen and (max-width: 767px) {
  .co-page .btn .kbd, .co-filterbar .input-kbd { display: none; }
  .co-form-grid { grid-template-columns: minmax(0, 1fr); }
  .co-packs { grid-template-columns: minmax(0, 1fr); }
  /* a pack is one wide tile: size and price on top, the price per report and Buy under them */
  .co-pack:not(.is-disabled) {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "size unit price" "each each buy" "save save buy";
    align-items: baseline; column-gap: var(--sp-2); row-gap: 2px;
  }
  .co-pack-size { grid-area: size; }
  .co-pack-unit { grid-area: unit; margin-top: 0; }
  .co-pack-price { grid-area: price; margin: 0; }
  .co-pack-each { grid-area: each; }
  .co-save { grid-area: save; }
  .co-pack-buy { grid-area: buy; align-self: end; margin: 0; padding-top: 0; }
  .co-pack.is-disabled { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: var(--sp-2); }
  .co-pack.is-disabled > .co-sub { flex-basis: 100%; }
  /* "See a sample" goes under the product's description, not beside it */
  .co-bundle .card-head { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; }
  .co-bundle .card-action { grid-column: 2; margin-left: calc(var(--sp-3) * -1); }   /* the ghost button's text lines up with the description */
  .co-filterbar { padding: var(--sp-3); }
  .co-filterbar > .input-wrap { flex-basis: 100%; max-width: none; }
  .co-filter-selects { margin-left: 0; width: 100%; }
  .co-filter-selects select { flex: 1 1 140px; max-width: none; }
  .co-bulk-actions { margin-left: 0; }
  .co-firstrun-head { padding: var(--sp-5) var(--sp-4) var(--sp-3); }
  .co-firstrun-title { font-size: 22px; line-height: 28px; }
  .co-steps { padding: 0 var(--sp-4) var(--sp-4); }
  .co-step { grid-template-columns: 32px minmax(0, 1fr); }
  .co-step-action { grid-column: 2; }
  .co-details div { grid-template-columns: 112px minmax(0, 1fr) auto; }

  /* table rows become cards: what it is on the left, status and the action on the right */
  .co-dt .dt-cards table.dt tr:not(.dt-empty) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp-3); row-gap: 2px; align-items: center; }
  .co-dt .dt-cards table.dt td { grid-column: 1; width: auto; }
  .co-dt .dt-cards table.dt td:not(:first-child):not(.dt-go):not(.dt-select)::before { content: none; }
  .co-dt .dt-cards table.dt td.dt-go, .co-dt .dt-cards table.dt td:has(> [data-col="mode"]) { display: none; }
  .co-dt .dt-cards table.dt td:has(> [data-col="status"]) { grid-column: 2; grid-row: 1; justify-self: end; }
  .co-dt .dt-cards table.dt td:has(> [data-col="act"]) { grid-column: 2; grid-row: 2 / span 2; align-self: end; width: auto; }
  .co-dt .dt-cards table.dt [data-col="submitted"] .co-stack { flex-direction: row; gap: var(--sp-2); }
  .co-dt-inbox .dt-cards table.dt td:has(> [data-col="act"]) { grid-row: 1 / span 2; align-self: center; }
  .co-dt-reports .dt-cards table.dt tr:has(> td.dt-select) { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .co-dt-reports .dt-cards table.dt tr:has(> td.dt-select) td { grid-column: 2; }
  .co-dt-reports .dt-cards table.dt tr:has(> td.dt-select) td.dt-select { grid-column: 1; grid-row: 1 / span 3; align-self: start; padding-top: 6px; }
  .co-dt-reports .dt-cards table.dt tr:has(> td.dt-select) td:has(> [data-col="status"]) { grid-column: 3; grid-row: 1; }
  .co-dt-reports .dt-cards table.dt tr:has(> td.dt-select) td:has(> [data-col="act"]) { grid-column: 3; grid-row: 2 / span 2; }
  .co-dt-reports .dt-cards table.dt [data-col="status"] .co-sub { display: none; }
  .co-dt .dt-cards table.dt td:has(> [data-col="expires"] .co-sub), .co-dt .dt-cards table.dt tr:has(.co-dead) td:has(> [data-col="expires"]) { display: none; }
  .co-ph { display: inline; }
  .co-drawer .drawer-foot .co-spacer { display: none; }
  .co-drawer .drawer-foot .btn { flex: 1 1 auto; }
  .co-person .avatar { display: none; }
  .co-drawer-stats dd { font-size: var(--fs-16); }
  .co-viewas { padding: var(--sp-3); }
  .cp-identity { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .cp-photo-col { flex-direction: row; align-items: center; justify-content: flex-start; }
  .cp-photo-actions { align-items: flex-start; }
  .cp-photo { width: 64px; height: 64px; }
  .cp-initials { font-size: var(--fs-20); }
  .ob-page { padding-top: 0; }
  .ob-head { padding: var(--sp-5) var(--sp-4) var(--sp-4); }
  .ob-head h1 { font-size: 22px; line-height: 28px; }
  .ob-head .stepper { flex-wrap: nowrap; gap: 6px; }
  .ob-head .step { gap: 6px; font-size: var(--fs-12); white-space: nowrap; }
  .ob-head .step + .step::before { width: 12px; }
  .ob-form { padding: var(--sp-5) var(--sp-4) var(--sp-5); }
  .ob-well { max-height: 45vh; padding: var(--sp-3) var(--sp-4); }
  .ob-actions { flex-direction: column-reverse; align-items: stretch; }
  .ob-actions .btn { justify-content: center; }
  .cp-account div { grid-template-columns: minmax(0, 1fr) auto; }
  .cp-account dt { grid-column: 1 / -1; }
}

/* v5 (WS-C): the Dashboard's credits used this month by module, and the coach's requests. */
.co-usage-list, .co-req-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--fs-13); }
.co-usage-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 28px; }
.co-usage-name { color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-req-list li { display: flex; align-items: flex-start; gap: var(--sp-2); }
.co-req-list .status { flex: none; }

/* The MVP demo: Try it as a respondent (coach/try) */
.try-note { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-3); font-size: var(--fs-13); color: var(--text-2); }
.try-note .icon { flex: none; color: var(--icon); }
.try-list { list-style: none; margin: 0; padding: 0; }
.try-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) 0; border-top: 1px solid var(--line-soft); }
.try-row:first-child { border-top: 0; }
.try-text { display: flex; flex-direction: column; min-width: 0; }
.try-name { font-size: var(--fs-14); font-weight: var(--fw-semibold); }
.try-meta { font-size: var(--fs-12); color: var(--text-muted); }
@media screen and (max-width: 767px) { .try-row { flex-direction: column; align-items: stretch; } }
