/* Starting a private discussion, one short conversation (18 November 2026). views/consults.js arranges the page's own
   dialog (#modalConsult) into one screen; this dresses it. Loaded after the clean layer, so every rule is held to the
   dialog by its id. Clean tokens only (--cl-*), the soft lilac for emphasis and state, nothing that turns or follows
   the pointer, and still under Reduce motion.

   The owner asked for it to be easier to understand, more alive, with less friction and fewer steps. What changed:
   - one screen, read from the top: the question in a large serif inside one card, its title made from the question
     on a quiet line under it, the privacy check as it is written (marks under the words, a fix one tap away), who
     should see it as chips, the confirmation as a calm box to tick, and Start with one line that says who receives it;
   - Start is the screen's one ink pill and wakes up (a small spring) the moment everything it needs is there;
   - on a phone the dialog is a sheet from the foot that is as tall as what it holds. */

html #modalConsult .cx-compose {
  --cxn-deep: color-mix(in srgb, var(--cl-lilac) 66%, var(--cl-ink));
  --cxn-soft: color-mix(in srgb, var(--cl-lilac) 15%, var(--cl-surface));
  --cxn-wash: color-mix(in srgb, var(--cl-lilac) 7%, var(--cl-surface));
  --cxn-edge: color-mix(in srgb, var(--cl-lilac) 48%, transparent);
  --cxn-hair: color-mix(in srgb, var(--cl-lilac) 22%, transparent);
  --cxn-ring: 0 0 0 4px color-mix(in srgb, var(--cl-lilac) 14%, transparent);
}
@keyframes cxn-rise { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: none; } }
@keyframes cxn-wake { 0% { scale: .94; } 55% { scale: 1.035; } 100% { scale: 1; } }
@keyframes cxn-tick { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }
@keyframes cxn-sheet { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@keyframes cxn-glow { 0% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--cl-lilac) 22%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes cxn-breathe { 50% { opacity: .45; } }

/* ── the sheet: as tall as what it holds, never taller than the window ── */
html #modalConsult.modal-root:has(> .cx-compose) { padding: 20px; place-items: center; overflow: hidden; }
html #modalConsult > .cx-compose {
  display: flex; flex-direction: column; width: min(720px, 100%); max-width: 720px; height: auto; max-height: min(880px, calc(100dvh - 40px));
  align-self: center; overflow: hidden; border: 1px solid var(--cl-line); border-radius: 26px; background: var(--cl-surface); box-shadow: var(--cl-shadow-pop);
}
html #modalConsult .cx-compose .composer-body { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; overflow: hidden; }
html #modalConsult .cx-compose .composer-main.cf-body {
  flex: 1 1 auto; min-height: 0; padding: 6px 32px 22px; overflow-x: hidden; overflow-y: auto; border: 0; background: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, var(--cl-ink) 12px); mask-image: linear-gradient(to bottom, transparent, var(--cl-ink) 12px);
}
html #modalConsult .cx-compose .cx-flow { display: flex; min-height: 0; flex-direction: column; margin: 0; }

/* ── the head: what is being made, the draft's quiet state, Close ── */
html #modalConsult .cx-compose .cf-head { display: flex; min-height: 0; align-items: center; gap: 10px; padding: 18px 18px 8px 28px; border: 0; background: none; }
html #modalConsult .cx-compose .composer-head__top { display: flex; min-width: 0; flex: 1; align-items: center; gap: 12px; padding: 0; }
html #modalConsult .cx-compose .composer-head__top > div { min-width: 0; }
html #modalConsult .cx-compose .cf-kind { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--cxn-soft) !important; color: var(--cxn-deep) !important; font-size: 18px; }
html #modalConsult .cx-compose .cf-kind > i { font-size: 18px !important; }
html #modalConsult .cx-compose .cf-name { overflow: hidden; margin: 0; font-family: var(--cl-sans); font-size: 15px; font-weight: 400; letter-spacing: 0; line-height: 1.3; color: var(--cl-ink-2); text-overflow: ellipsis; white-space: nowrap; }
html #modalConsult .cx-compose .composer-kicker, html #modalConsult .cx-compose .composer-subtitle { display: none; }
html #modalConsult .cx-compose .cf-head__out { display: flex; flex: none; align-items: center; gap: 6px; margin-left: auto; }
html #modalConsult .cx-compose .cx-draftflag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--cl-ink-4); opacity: 0; transition: opacity .4s var(--cl-out); }
html #modalConsult .cx-compose .cx-draftflag > i { font-size: 15px !important; }
html #modalConsult .cx-compose .cx-draftflag.is-saved, html #modalConsult .cx-compose .cx-draftflag.is-saving { opacity: 1; }
html #modalConsult .cx-compose .cf-x { position: static; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: var(--cl-ink-3); transition: background-color .2s var(--cl-out), color .2s var(--cl-out); }
html #modalConsult .cx-compose .cf-x:hover { background: var(--cl-hover); color: var(--cl-ink); }
html #modalConsult .cx-compose .cx-hback { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 36px; margin-left: -10px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 14px; color: var(--cl-ink-2); cursor: pointer; transition: background-color .2s var(--cl-out); }
html #modalConsult .cx-compose .cx-hback:hover { background: var(--cl-hover); color: var(--cl-ink); }
html #modalConsult .cx-compose .cx-hback[hidden] { display: none; }

/* ── 1. the question ── */
html #modalConsult .cx-compose .cf-ask { display: block; margin: 4px 0 16px; }
html #modalConsult .cx-compose .cf-ask .cf-q { margin: 0; font-family: var(--cl-serif); font-size: 30px; font-weight: 400; letter-spacing: -.012em; line-height: 1.16; color: var(--cl-ink); text-wrap: balance; }
html #modalConsult .cx-compose .consult-linked { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: var(--cl-surface-2); font-size: 14px; color: var(--cl-ink-2); }
html #modalConsult .cx-compose .consult-linked.hidden { display: none; }
html #modalConsult .cx-compose .cx-fromask { margin: 0 0 12px; border-left-color: var(--cl-lilac); color: var(--cl-ink-3); }

/* the card: the question, its tools, and the details when they are open */
html #modalConsult .cx-compose #consultPaper {
  display: flex; flex-direction: column; margin: 0; padding: 0; overflow: visible; transform: none;
  border: 1px solid var(--cl-line-2); border-radius: 20px; background: var(--cl-surface); box-shadow: none;
  transition: border-color .25s var(--cl-out), box-shadow .35s var(--cl-out);
}
html #modalConsult .cx-compose #consultPaper:focus-within { border-color: var(--cxn-edge); box-shadow: var(--cxn-ring); }
html #modalConsult .cx-compose #consultPaper.composer-field-invalid { border-width: 1px !important; border-color: var(--cl-bad) !important; box-shadow: none !important; }
/* the field and its copy behind it: the same box, the same font, the same wrapping */
html #modalConsult .cx-compose .cx-write { position: relative; display: grid; }
html #modalConsult .cx-compose .cx-write > * { grid-area: 1 / 1; min-width: 0; }
html #modalConsult .cx-compose .cx-write--q > :is(#consultCase, .cx-mirror) {
  box-sizing: border-box; display: block; width: 100%; margin: 0 !important; padding: 18px 22px 8px !important; border: 0 !important;
  font-family: var(--cl-serif) !important; font-size: 20px !important; font-weight: 400; line-height: 1.55 !important; letter-spacing: 0 !important;
  white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; tab-size: 4;
}
html #modalConsult .cx-compose .cx-write--q > #consultCase { min-height: 104px; overflow: hidden; resize: none; outline: 0; background: transparent !important; box-shadow: none !important; color: var(--cl-ink); caret-color: var(--cxn-deep); }
html #modalConsult .cx-compose .cx-write--q > #consultCase::placeholder { color: var(--cl-ink-4); }
html #modalConsult .cx-compose .cx-mirror { overflow: hidden; color: transparent; pointer-events: none; user-select: none; }
html #modalConsult .cx-compose .cx-mark {
  border-radius: 4px; background: color-mix(in srgb, var(--cl-lilac) 20%, transparent); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--cl-lilac) 80%, transparent);
  color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
html #modalConsult .cx-compose .cx-mark.is-soft { background: none; box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--cl-lilac) 46%, transparent); }

/* the tools under the question: one row, quiet until pointed at */
html #modalConsult .cx-compose .cx-qtools { display: flex; align-items: center; gap: 2px; padding: 2px 10px 8px 12px; }
html #modalConsult .cx-compose .cx-qtools .composer-tool {
  display: inline-flex; min-height: 0; height: 36px; align-items: center; gap: 7px; padding: 0 13px 0 11px;
  border: 0; border-radius: 999px; background: transparent; box-shadow: none; font-size: 14px; font-weight: 400; color: var(--cl-ink-3); cursor: pointer;
  transition: background-color .2s var(--cl-out), color .2s var(--cl-out);
}
html #modalConsult .cx-compose .cx-qtools .composer-tool > i { font-size: 16px !important; }
html #modalConsult .cx-compose .cx-qtools .composer-tool:hover { transform: none; background: var(--cl-hover); color: var(--cl-ink); }
html #modalConsult .cx-compose .cx-qtools .cx-addmore[aria-expanded="true"] { background: var(--cxn-soft); color: var(--cxn-deep); }
html #modalConsult .cx-compose #consultCount { display: none; margin: 0 6px 0 auto; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--cl-ink-4); }
html #modalConsult .cx-compose #consultPaper.is-long #consultCount { display: inline; }
html #modalConsult .cx-compose #consultCount.is-over { color: var(--cl-bad-ink); }

/* the details: inside the same card, under a hairline */
html #modalConsult .cx-compose .cx-details { display: grid; gap: 18px; margin: 0 12px 12px; padding: 16px 10px 4px; border-top: 1px solid var(--cl-line); animation: cxn-rise .4s var(--cl-spring) both; }
html #modalConsult .cx-compose .cx-details[hidden] { display: none; }
html #modalConsult .cx-compose .cx-group { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
html #modalConsult .cx-compose .cx-glabel { display: block; margin: 0; font-size: 14px; font-weight: 400; color: var(--cl-ink-2); }
html #modalConsult .cx-compose .cx-glabel small { margin-left: 6px; font-size: 13px; color: var(--cl-ink-4); }
html #modalConsult .cx-compose .cx-write--ctx { border: 1px solid var(--cl-line-2); border-radius: 14px; background: var(--cl-surface); transition: border-color .25s var(--cl-out), box-shadow .35s var(--cl-out); }
html #modalConsult .cx-compose .cx-write--ctx:focus-within { border-color: var(--cxn-edge); box-shadow: var(--cxn-ring); }
html #modalConsult .cx-compose .cx-write--ctx > :is(#consultContext2, .cx-mirror) {
  box-sizing: border-box; display: block; width: 100%; margin: 0 !important; padding: 12px 14px !important; border: 0 !important;
  font-family: var(--cl-sans) !important; font-size: 16px !important; line-height: 1.5 !important; letter-spacing: 0 !important;
  white-space: pre-wrap; overflow-wrap: break-word; word-break: normal;
}
html #modalConsult .cx-compose .cx-write--ctx > #consultContext2 { height: auto; min-height: 76px; overflow: hidden; resize: none; outline: 0; border-radius: 14px; background: transparent !important; box-shadow: none !important; color: var(--cl-ink); }
html #modalConsult .cx-compose .cx-write--ctx > #consultContext2::placeholder { color: var(--cl-ink-4); }
html #modalConsult .cx-compose .cx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; animation: none; }
html #modalConsult .cx-compose :is(.cx-chips .composer-chip, .cx-chips .composer-tool, #consultSpecialtyOptions .composer-chip) {
  display: inline-flex; min-height: 0; height: 36px; align-items: center; gap: 7px; padding: 0 14px; border: 1px solid var(--cl-line-2); border-radius: 999px;
  background: var(--cl-surface); box-shadow: none; font-size: 14px; font-weight: 400; color: var(--cl-ink-2); cursor: pointer;
  transition: border-color .2s var(--cl-out), background-color .2s var(--cl-out), color .2s var(--cl-out);
}
html #modalConsult .cx-compose :is(.cx-chips .composer-chip, .cx-chips .composer-tool, #consultSpecialtyOptions .composer-chip) > i { font-size: 15px !important; color: var(--cl-ink-3); }
html #modalConsult .cx-compose :is(.cx-chips .composer-chip, .cx-chips .composer-tool, #consultSpecialtyOptions .composer-chip):hover { transform: none; border-color: var(--cl-line-3); background: var(--cl-surface); color: var(--cl-ink); }
html #modalConsult .cx-compose :is(.cx-chips .composer-chip, #consultSpecialtyOptions .composer-chip)[aria-pressed="true"] { border-color: var(--cxn-edge); background: var(--cxn-soft); color: var(--cxn-deep); }
html #modalConsult .cx-compose :is(.cx-chips .composer-chip, #consultSpecialtyOptions .composer-chip)[aria-pressed="true"] > i { color: var(--cxn-deep); }
html #modalConsult .cx-compose .cx-specbtn { display: flex; width: 100%; height: 44px; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--cl-line-2); border-radius: 14px; background: var(--cl-surface); box-shadow: none; text-align: left; cursor: pointer; }
html #modalConsult .cx-compose .cx-specbtn[aria-expanded="true"] { border-color: var(--cxn-edge); box-shadow: var(--cxn-ring); }
html #modalConsult .cx-compose .cx-specbtn .composer-meta__ic { display: grid; width: auto; height: auto; place-items: center; background: none; color: var(--cl-ink-3); }
html #modalConsult .cx-compose .cx-specbtn .composer-meta__copy { flex: 1; min-width: 0; }
html #modalConsult .cx-compose .cx-specbtn .composer-meta__copy small { display: none; }
html #modalConsult .cx-compose .cx-specbtn .composer-meta__copy strong { font-size: 15px; font-weight: 400; color: var(--cl-ink); }
html #modalConsult .cx-compose #consultSpecialtyOptions { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; }
html #modalConsult .cx-compose #consultSpecialtyOptions.hidden { display: none; }
html #modalConsult .cx-compose .cx-fine { display: block; margin: 0; font-size: 13px; line-height: 1.5; color: var(--cl-ink-3); }
html #modalConsult .cx-compose .cx-group > .composer-error { margin: 0; }

/* the page's messages at their fields, and the files under the question */
html #modalConsult .cx-compose .composer-error { margin: 8px 2px 0; font-size: 14px; color: var(--cl-bad-ink); }
html #modalConsult .cx-compose .cx-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
html #modalConsult .cx-compose .cx-files:empty { display: none; }

/* ── 2. under the question: the common situations, then the privacy check ── */
html #modalConsult .cx-compose .cx-live { margin-top: 12px; min-height: 36px; }
html #modalConsult .cx-compose .cx-starters { display: none; animation: cxn-rise .35s var(--cl-spring) both; }
html #modalConsult .cx-compose .cx-live.is-empty .cx-starters { display: block; }
html #modalConsult .cx-compose .cx-live.is-empty .cx-scan { display: none; }
html #modalConsult .cx-compose .cx-starters__w { display: block; margin: 2px 2px 8px; font-size: 13.5px; color: var(--cl-ink-3); }
html #modalConsult .cx-compose #discTemplates { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
html #modalConsult .cx-compose #discTemplates > button {
  display: inline-flex; min-height: 0; height: 36px; align-items: center; padding: 0 14px; border: 1px solid var(--cl-line-2); border-radius: 999px;
  background: var(--cl-surface); font-size: 14px; font-weight: 400; color: var(--cl-ink-2); cursor: pointer;
  transition: border-color .2s var(--cl-out), background-color .2s var(--cl-out), color .2s var(--cl-out);
}
html #modalConsult .cx-compose #discTemplates > button:hover { border-color: var(--cxn-edge); background: var(--cxn-wash); color: var(--cxn-deep); }
html #modalConsult .cx-compose .cx-scan { animation: cxn-rise .35s var(--cl-spring) both; }
html #modalConsult .cx-compose .cx-scan :is(.cx-scan__ok, .cx-scan__head) { display: flex; align-items: flex-start; gap: 8px; margin: 2px 2px 0; font-size: 13.5px; line-height: 1.45; color: var(--cl-ink-3); }
html #modalConsult .cx-compose .cx-scan :is(.cx-scan__ok, .cx-scan__head) > i { flex: none; margin-top: 1px; font-size: 16px; }
html #modalConsult .cx-compose .cx-scan__ok > i { color: var(--cl-ok-ink); }
html #modalConsult .cx-compose .cx-scan__head { color: var(--cl-ink-2); }
html #modalConsult .cx-compose .cx-scan__head > i { color: var(--cxn-deep); }
html #modalConsult .cx-compose .cx-scan__fix { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
html #modalConsult .cx-compose .cx-fixchip {
  display: inline-flex; max-width: 100%; height: 34px; align-items: center; gap: 8px; padding: 0 13px 0 12px; border: 1px solid var(--cxn-hair); border-radius: 999px;
  background: var(--cxn-wash); font-size: 14px; color: var(--cl-ink); cursor: pointer; animation: cxn-rise .35s var(--cl-spring) both;
  transition: border-color .2s var(--cl-out), background-color .2s var(--cl-out);
}
html #modalConsult .cx-compose .cx-fixchip:nth-child(2) { animation-delay: .04s; }
html #modalConsult .cx-compose .cx-fixchip:nth-child(n+3) { animation-delay: .08s; }
html #modalConsult .cx-compose .cx-fixchip:hover { border-color: var(--cxn-edge); background: var(--cxn-soft); }
html #modalConsult .cx-compose .cx-fixchip__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html #modalConsult .cx-compose .cx-fixchip__a { flex: none; color: var(--cxn-deep); }
html #modalConsult .cx-compose .cx-fixchip__a::before { content: ''; display: inline-block; width: 1px; height: 14px; margin: 0 8px 0 0; vertical-align: -2px; background: var(--cxn-hair); }
html #modalConsult .cx-compose .cx-fixchip.is-soft { border-color: var(--cl-line-2); background: var(--cl-surface); }
html #modalConsult .cx-compose .cx-fixchip.is-soft .cx-fixchip__a { color: var(--cl-ink-3); }
html #modalConsult .cx-compose .cx-scan__more { font-size: 13.5px; color: var(--cl-ink-4); }

/* ── 3. the title, a quiet line edited where it stands ── */
html #modalConsult .cx-compose .cx-tgroup { margin-top: 10px; }
html #modalConsult .cx-compose .cx-titleline { display: flex; min-height: 44px; align-items: center; gap: 12px; padding: 0 4px 0 2px; border-bottom: 1px solid var(--cl-line); transition: border-color .25s var(--cl-out); }
html #modalConsult .cx-compose .cx-titleline:focus-within { border-bottom-color: var(--cl-lilac); }
html #modalConsult .cx-compose .cx-tlabel { flex: none; margin: 0; font-size: 13.5px; font-weight: 400; color: var(--cl-ink-4); }
html #modalConsult .cx-compose .cx-tfield { min-width: 0; height: 42px; flex: 1; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; font-family: var(--cl-serif); font-size: 17px; color: var(--cl-ink); text-overflow: ellipsis; }
html #modalConsult .cx-compose .cx-tfield::placeholder { color: var(--cl-ink-4); }
html #modalConsult .cx-compose .cx-tpen { flex: none; font-size: 15px; color: var(--cl-ink-4); transition: color .2s var(--cl-out); }
html #modalConsult .cx-compose .cx-titleline:focus-within .cx-tpen { color: var(--cxn-deep); }

/* ── 4. who should see it: the colleagues as chips ── */
html #modalConsult .cx-compose .cx-who { margin-top: 22px; }
html #modalConsult .cx-compose .cx-who__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 12px; }
html #modalConsult .cx-compose .cx-who__q { margin: 0; font-family: var(--cl-serif); font-size: 21px; font-weight: 400; letter-spacing: -.005em; line-height: 1.25; color: var(--cl-ink); }
html #modalConsult .cx-compose .cx-who__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
html #modalConsult .cx-compose :is(#cxPeers, #cxChosen) { display: contents; }
html #modalConsult .cx-compose .peer-choice {
  position: relative; display: inline-flex; width: auto; max-width: 100%; min-height: 0; height: 46px; align-items: center; gap: 10px; margin: 0; padding: 0 8px 0 6px;
  border: 1px solid var(--cl-line-2); border-radius: 999px; background: var(--cl-surface); box-shadow: none; text-align: left; cursor: pointer;
  transition: border-color .25s var(--cl-out), background-color .25s var(--cl-out), box-shadow .35s var(--cl-out);
}
html #modalConsult .cx-compose .peer-choice:hover { transform: none; border-color: var(--cl-line-3); background: var(--cl-surface); box-shadow: none; }
html #modalConsult .cx-compose .peer-choice:active { transform: none; scale: .97; }
html #modalConsult .cx-compose .peer-choice[aria-pressed="true"] { border-color: var(--cxn-edge); background: var(--cxn-soft); }
html #modalConsult .cx-compose .peer-choice > span:first-child { display: grid; flex: none; width: 34px; height: 34px; place-items: center; overflow: hidden; border-radius: 50%; background: var(--cl-surface-2); font-size: 12px; font-weight: 400; color: var(--cl-ink-2); }
html #modalConsult .cx-compose .peer-choice > span:first-child img { width: 100%; height: 100%; object-fit: cover; }
html #modalConsult .cx-compose .peer-choice__copy { display: flex; min-width: 0; flex: 0 1 auto; align-items: baseline; gap: 8px; }
html #modalConsult .cx-compose .peer-choice__copy strong { overflow: hidden; font-size: 15px; font-weight: 400; color: var(--cl-ink); text-overflow: ellipsis; white-space: nowrap; }
/* the chip names the colleague and their specialty (the row's own data-peer-role); the longer line under the name
   (the city, the practice) is for the search, not for the chip */
html #modalConsult .cx-compose .peer-choice__copy span { display: none; }
html #modalConsult .cx-compose .peer-choice::after { content: attr(data-peer-role); order: 2; max-width: 150px; overflow: hidden; font-size: 13px; color: var(--cl-ink-4); text-overflow: ellipsis; white-space: nowrap; }
html #modalConsult .cx-compose .peer-choice > span:first-child { order: 0; }
html #modalConsult .cx-compose .peer-choice__copy { order: 1; }
html #modalConsult .cx-compose .peer-choice__check { order: 3; }
html #modalConsult .cx-compose .peer-choice[aria-pressed="true"]::after { color: var(--cxn-deep); }
html #modalConsult .cx-compose .cx-who.is-finding .peer-choice__copy span { display: inline; max-width: 200px; overflow: hidden; font-size: 13px; color: var(--cl-ink-4); text-overflow: ellipsis; white-space: nowrap; }
html #modalConsult .cx-compose .cx-who.is-finding .peer-choice::after { content: none; }
html #modalConsult .cx-compose .peer-choice__check {
  display: grid; flex: none; width: 22px; height: 22px; place-items: center; margin-left: 2px; border: 1.5px solid var(--cl-line-3); border-radius: 50%;
  background: transparent; color: transparent; transition: background-color .25s var(--cl-out), border-color .25s var(--cl-out);
}
html #modalConsult .cx-compose .peer-choice__check > i { font-size: 11px !important; opacity: 0; }
html #modalConsult .cx-compose .peer-choice[aria-pressed="true"] .peer-choice__check { border-color: transparent; background: var(--cxn-deep); color: var(--cl-surface); }
html #modalConsult .cx-compose .peer-choice[aria-pressed="true"] .peer-choice__check > i { opacity: 1; animation: cxn-tick .4s var(--cl-spring) both; }
html #modalConsult .cx-compose .peer-choice.is-extra:not([aria-pressed="true"]) { display: none; }
html #modalConsult .cx-compose .cx-who.is-finding .peer-choice.is-extra { display: inline-flex; }
/* Search or invite: a quiet action beside the question, Done while the search is open */
html #modalConsult .cx-compose .cx-findbtn {
  display: inline-flex; flex: none; height: 36px; align-items: center; gap: 7px; margin: -6px 0; padding: 0 14px 0 12px; border: 0; border-radius: 999px;
  background: transparent; font-size: 14px; color: var(--cl-ink-3); cursor: pointer; transition: background-color .2s var(--cl-out), color .2s var(--cl-out);
}
html #modalConsult .cx-compose .cx-findbtn > i { font-size: 16px; }
html #modalConsult .cx-compose .cx-findbtn:hover { background: var(--cl-hover); color: var(--cl-ink); }
html #modalConsult .cx-compose .cx-findbtn[aria-expanded="true"] { background: var(--cxn-soft); color: var(--cxn-deep); }
/* the search, open in place: a field on its own line, the button beside it */
html #modalConsult .cx-compose .cx-find { position: relative; display: none; min-width: 0; height: 46px; flex: 1 1 100%; order: -2; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--cl-line-2); border-radius: 999px; background: var(--cl-surface); }
html #modalConsult .cx-compose .cx-find:focus-within { border-color: var(--cxn-edge); box-shadow: var(--cxn-ring); }
html #modalConsult .cx-compose .cx-who.is-finding:not(.is-empty) .cx-find { display: flex; }
html #modalConsult .cx-compose .cx-find > i { flex: none; font-size: 17px; color: var(--cl-ink-3); }
html #modalConsult .cx-compose #peerSearch { min-width: 0; height: 100%; flex: 1; padding: 0; border: 0; outline: 0; background: none; box-shadow: none; font-size: 16px; color: var(--cl-ink); }
html #modalConsult .cx-compose #peerSearch::placeholder { color: var(--cl-ink-4); }
/* the invitation by email: under the colleagues while searching, or at once when there is nobody to list */
html #modalConsult .cx-compose #inviteRow { display: none; flex: 1 1 100%; order: 98; margin: 4px 0 0; padding: 10px 0 0; border: 0; border-top: 1px solid var(--cl-line); border-radius: 0; }
html #modalConsult .cx-compose :is(.cx-who.is-finding, .cx-who.is-empty) #inviteRow { display: block; animation: cxn-rise .35s var(--cl-spring) both; }
html #modalConsult .cx-compose #inviteRow > p { margin: 0; font-size: 13.5px; font-weight: 400; color: var(--cl-ink-3); }
html #modalConsult .cx-compose #inviteByEmailBtn { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14.5px; font-weight: 400; color: var(--cxn-deep); }
html #modalConsult .cx-compose #inviteByEmailBtn > i { font-size: 16px !important; }
html #modalConsult .cx-compose #inviteEmailForm { margin-top: 12px; }
html #modalConsult .cx-compose #inviteEmailForm.hidden { display: none; }
html #modalConsult .cx-compose #inviteEmailForm label { margin: 0 0 6px; font-size: 13.5px; font-weight: 400; color: var(--cl-ink-2); }
html #modalConsult .cx-compose #inviteEmailForm > div { display: flex; gap: 8px; }
html #modalConsult .cx-compose #inviteEmail { min-width: 0; height: 44px; flex: 1; padding: 0 16px; border: 1px solid var(--cl-line-2); border-radius: 999px; background: var(--cl-surface); box-shadow: none; font-size: 16px; color: var(--cl-ink); outline: 0; }
html #modalConsult .cx-compose #inviteEmail:focus { border-color: var(--cxn-edge); box-shadow: var(--cxn-ring); }
html #modalConsult .cx-compose #inviteEmailAdd { height: 44px; padding: 0 18px; border: 1px solid var(--cxn-edge); border-radius: 999px; background: var(--cxn-soft); font-size: 14.5px; font-weight: 400; color: var(--cxn-deep); }
html #modalConsult .cx-compose #inviteEmailForm > p:last-child { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--cl-ink-3); }
html #modalConsult .cx-compose #bsNoVerified { flex: 1 1 100%; margin: 0; padding: 0; border: 0; font-size: 14.5px; line-height: 1.55; color: var(--cl-ink-3); }
html #modalConsult .cx-compose .cx-who.is-empty .cx-findbtn { display: none; }
/* an address invited by email: a chip among the colleagues, with its own Remove */
html #modalConsult .cx-compose .cx-pick { display: inline-flex; max-width: 100%; height: 46px; align-items: center; gap: 8px; padding: 0 6px 0 14px; border: 1px solid var(--cxn-edge); border-radius: 999px; background: var(--cxn-soft); font-size: 14.5px; color: var(--cxn-deep); animation: cxn-rise .35s var(--cl-spring) both; }
html #modalConsult .cx-compose .cx-pick > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html #modalConsult .cx-compose .cx-pick > i { flex: none; font-size: 16px; }
html #modalConsult .cx-compose .cx-pick > button { display: grid; flex: none; width: 32px; height: 32px; place-items: center; border-radius: 50%; font-size: 13px; color: var(--cxn-deep); cursor: pointer; transition: background-color .2s var(--cl-out); }
html #modalConsult .cx-compose .cx-pick > button:hover { background: color-mix(in srgb, var(--cl-lilac) 18%, transparent); }
html #modalConsult .cx-compose .cx-who__why { margin: 10px 2px 0; font-size: 13px; line-height: 1.45; color: var(--cl-ink-4); }
html #modalConsult .cx-compose .cx-who__why[hidden] { display: none; }

/* ── 5. the confirmation: a calm box to tick, in the page's own words ── */
html #modalConsult .cx-compose .cx-confirm { margin-top: 18px; }
html #modalConsult .cx-compose #consultHipaaWrap {
  position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: 14px; margin: 0; padding: 16px 18px;
  border: 1px solid var(--cl-line-2); border-radius: 18px; background: var(--cl-surface); box-shadow: none; cursor: pointer;
  transition: border-color .25s var(--cl-out), background-color .25s var(--cl-out);
}
html #modalConsult .cx-compose #consultHipaaWrap:hover { border-color: var(--cl-line-3); }
html #modalConsult .cx-compose #consultHipaaWrap:has(#hipaaChk:checked) { border-color: var(--cxn-edge); background: var(--cxn-wash); }
html #modalConsult .cx-compose #hipaaChk { position: absolute; top: 16px; left: 18px; width: 26px; height: 26px; margin: 0; opacity: 0; cursor: pointer; }
html #modalConsult .cx-compose .cx-box {
  display: grid; width: 26px; height: 26px; place-items: center; border: 1.5px solid var(--cl-line-3); border-radius: 8px; background: var(--cl-surface); color: transparent;
  transition: background-color .25s var(--cl-out), border-color .25s var(--cl-out), box-shadow .3s var(--cl-out);
}
html #modalConsult .cx-compose .cx-box > i { font-size: 14px; opacity: 0; }
html #modalConsult .cx-compose #hipaaChk:checked + .cx-box { border-color: transparent; background: var(--cxn-deep); color: var(--cl-surface); }
html #modalConsult .cx-compose #hipaaChk:checked + .cx-box > i { opacity: 1; animation: cxn-tick .4s var(--cl-spring) both; }
html #modalConsult .cx-compose #hipaaChk:focus-visible + .cx-box { box-shadow: var(--cxn-ring); border-color: var(--cl-lilac); }
/* the reminder of what to leave out is read before the tick; once ticked it steps back, and it returns if the page
   takes the confirmation back */
html #modalConsult .cx-compose #consultHipaaWrap > span:last-child { display: grid; grid-template-rows: auto 1fr; transition: grid-template-rows .4s var(--cl-spring); }
html #modalConsult .cx-compose #consultHipaaWrap:has(#hipaaChk:checked) > span:last-child { grid-template-rows: auto 0fr; }
html #modalConsult .cx-compose #consultHipaaWrap strong { display: block; padding-top: 1px; font-size: 15.5px; font-weight: 400; line-height: 1.45; color: var(--cl-ink); }
html #modalConsult .cx-compose #consultHipaaWrap strong + span { display: block; min-height: 0; overflow: hidden; padding-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--cl-ink-3); transition: opacity .3s var(--cl-out); }
html #modalConsult .cx-compose #consultHipaaWrap:has(#hipaaChk:checked) strong + span { opacity: 0; }
html #modalConsult .cx-compose .cx-again { display: flex; align-items: center; gap: 8px; margin: 10px 2px 0; font-size: 13.5px; color: var(--cxn-deep); animation: cxn-rise .35s var(--cl-spring) both; }
html #modalConsult .cx-compose .cx-again::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--cl-lilac); }
html #modalConsult .cx-compose .cx-again[hidden] { display: none; }
/* what counts as identifying: the page's guidance, at the end of the privacy check's line */
html #modalConsult .cx-compose .cx-scan__phi { display: inline; margin: 0; padding: 0; font-size: 13.5px; font-weight: 400; color: var(--cxn-deep); text-decoration: underline; text-decoration-color: var(--cxn-hair); text-underline-offset: 3px; cursor: pointer; }
html #modalConsult .cx-compose .cx-scan__phi:hover { text-decoration-color: currentColor; }

/* ── the foot: who receives it, and Start ── */
html #modalConsult .cx-compose .cf-foot { position: relative; display: flex; min-height: 0; align-items: center; gap: 16px; padding: 14px 16px 16px 32px; border: 0; border-top: 1px solid var(--cl-line); background: var(--cl-surface); box-shadow: none; }
html #modalConsult .cx-compose .cf-foot .composer-footer__actions { display: contents; }
html #modalConsult .cx-compose .cx-sum { min-width: 0; flex: 1; margin: 0; font-size: 14px; line-height: 1.45; color: var(--cl-ink-3); text-align: left; text-wrap: pretty; }
html #modalConsult .cx-compose .cx-sum b { font-weight: 400; color: var(--cl-ink); }
html #modalConsult .cx-compose .cx-sum.is-asked .cx-sum__next { color: var(--cl-bad-ink); }
html #modalConsult .cx-compose .cx-start {
  display: inline-flex; width: auto; min-width: 0; min-height: 0; height: 48px; flex: none; align-items: center; justify-content: center; gap: 9px; padding: 0 22px 0 18px;
  border: 0; border-radius: 999px; background: var(--cl-ink); color: var(--cl-surface); box-shadow: none; font-family: var(--cl-sans); font-size: 15px; font-weight: 400; cursor: pointer;
  transition: background-color .35s var(--cl-out), color .35s var(--cl-out), box-shadow .35s var(--cl-out);
}
html #modalConsult .cx-compose .cx-start > i { font-size: 17px; }
html #modalConsult .cx-compose .cx-start:hover { background: color-mix(in srgb, var(--cl-ink) 86%, var(--cl-surface)); box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--cl-ink) 60%, transparent); }
html #modalConsult .cx-compose .cx-start:active { scale: .97; }
html #modalConsult .cx-compose .cx-start[aria-disabled="true"], html #modalConsult .cx-compose .cx-start[aria-disabled="true"]:hover { background: var(--cl-surface-2); color: var(--cl-ink-4); box-shadow: none; cursor: default; }
html #modalConsult .cx-compose .cx-start.is-woke:not([aria-disabled="true"]) { animation: cxn-wake .55s var(--cl-spring); }
html #modalConsult .cx-compose .cx-start[aria-busy="true"] { cursor: progress; }
html #modalConsult .cx-compose .cx-start[aria-busy="true"] > .ph-paper-plane-tilt { animation: cxn-breathe 1s var(--cl-out) infinite; }
html #modalConsult .cx-compose .cx-start[aria-busy="true"] > .ph-check { animation: cxn-tick .4s var(--cl-spring) both; }

/* ── how it arrives: the parts rise a beat apart ── */
html #modalConsult:not(.modal-closing) .cx-compose .cx-flow > * { animation: cxn-rise .5s var(--cl-spring) both; }
html #modalConsult:not(.modal-closing) .cx-compose .cx-flow > :nth-child(2) { animation-delay: .04s; }
html #modalConsult:not(.modal-closing) .cx-compose .cx-flow > :nth-child(3) { animation-delay: .07s; }
html #modalConsult:not(.modal-closing) .cx-compose .cx-flow > :nth-child(n+4) { animation-delay: .1s; }
html #modalConsult:not(.modal-closing) .cx-compose .cx-flow > :nth-child(n+7) { animation-delay: .13s; }

/* a discussion just started arrives at the top of the list with a short lilac glow */
html .cx-list .cx-rows > li > a.cx-row.is-fresh { border-color: color-mix(in srgb, var(--cl-lilac) 50%, transparent); animation: cxn-glow 2.4s var(--cl-out) .5s both; }

/* ── a tablet: the same card, centred (the Create flow's own sheet fills the screen there) ── */
@media (max-width: 1023.98px) {
  html #modalConsult.modal-root:has(> .cx-compose) { padding: 16px; place-items: center; }
  html #modalConsult > .cx-compose { width: min(720px, 100%); height: auto; max-height: calc(100dvh - 32px); align-self: center; border: 1px solid var(--cl-line); border-radius: 26px; }
  html #modalConsult .cx-compose .cf-head { padding: calc(16px + env(safe-area-inset-top)) 14px 6px 24px; }
}

/* ── a phone: a sheet from the foot, as tall as what it holds ── */
@media (max-width: 760px) {
  html #modalConsult.modal-root:has(> .cx-compose) { padding: 0; place-items: end stretch; }
  html #modalConsult > .cx-compose {
    width: 100%; max-width: none; height: auto; max-height: calc(100dvh - 8px); align-self: end;
    border-width: 1px 0 0; border-radius: 24px 24px 0 0; box-shadow: var(--cl-shadow-pop);
  }
  html #modalConsult:not(.modal-closing) > .cx-compose { animation: cxn-sheet .5s var(--cl-spring) both; }
  html #modalConsult .cx-compose .cf-head { padding: 12px 8px 2px 18px; }
  html #modalConsult .cx-compose .cf-kind { width: 32px; height: 32px; }
  html #modalConsult .cx-compose .cx-draftflag { display: none; }
  html #modalConsult .cx-compose .composer-main.cf-body { padding: 4px 18px 16px; }
  html #modalConsult .cx-compose .cf-ask { margin: 0 0 12px; }
  html #modalConsult .cx-compose .cf-ask .cf-q { font-size: 25px; }
  html #modalConsult .cx-compose .cx-write--q > :is(#consultCase, .cx-mirror) { padding: 14px 16px 6px !important; font-size: 17.5px !important; line-height: 1.5 !important; }
  html #modalConsult .cx-compose .cx-write--q > #consultCase { min-height: 100px; }
  html #modalConsult .cx-compose .cx-qtools { padding: 2px 6px 8px 6px; }
  html #modalConsult .cx-compose .cx-details { margin: 0 8px 10px; padding: 14px 6px 4px; }
  /* the common situations in one row that slides sideways, so they never push the rest down */
  html #modalConsult .cx-compose #discTemplates { flex-wrap: nowrap; margin: 0 -18px; padding: 0 18px 2px; overflow-x: auto; scrollbar-width: none; }
  html #modalConsult .cx-compose #discTemplates::-webkit-scrollbar { display: none; }
  html #modalConsult .cx-compose #discTemplates > button { flex: none; height: 40px; }
  html #modalConsult .cx-compose .cx-who { margin-top: 20px; }
  html #modalConsult .cx-compose .cx-who__q { margin-bottom: 10px; font-size: 20px; }
  html #modalConsult .cx-compose .cx-who__row { gap: 6px; }
  html #modalConsult .cx-compose .peer-choice { height: 44px; gap: 8px; padding: 0 6px 0 4px; }
  html #modalConsult .cx-compose .peer-choice > span:first-child { width: 30px; height: 30px; font-size: 11px; }
  html #modalConsult .cx-compose .peer-choice__copy strong { font-size: 14.5px; }
  html #modalConsult .cx-compose .peer-choice__check { width: 20px; height: 20px; }
  /* the fixes in one row that slides sideways, under the words they are about */
  html #modalConsult .cx-compose .cx-scan__fix { flex-wrap: nowrap; margin: 8px -18px 0; padding: 0 18px 2px; overflow-x: auto; scrollbar-width: none; }
  html #modalConsult .cx-compose .cx-scan__fix::-webkit-scrollbar { display: none; }
  html #modalConsult .cx-compose .cx-fixchip { flex: none; max-width: 80vw; }
  html #modalConsult .cx-compose .peer-choice::after { content: none; }
  html #modalConsult .cx-compose .cx-confirm { margin-top: 16px; }
  html #modalConsult .cx-compose #consultHipaaWrap { gap: 12px; padding: 14px; }
  html #modalConsult .cx-compose #hipaaChk { top: 14px; left: 14px; }
  html #modalConsult .cx-compose #consultHipaaWrap strong { font-size: 15px; }
  html #modalConsult .cx-compose #consultHipaaWrap strong + span { font-size: 13px; }
  html #modalConsult .cx-compose .cf-foot { gap: 12px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)) 18px; }
  html #modalConsult .cx-compose .cx-sum { font-size: 13.5px; }
  html #modalConsult .cx-compose .cx-start { height: 46px; padding: 0 18px 0 15px; }
}

/* ── it fits the window (19 November 2026, the night audit: 581 of 641px in view at 1024x768, 606 of 710 on a 360x740 phone) ──
   A shorter desktop window: less air above and under the parts, a shorter empty question box (it grows with the words). A phone:
   the colleagues in one row that slides sideways like the common situations, the heading of Who should see it on one line
   with Search or invite, and the same small savings. A long question still makes the sheet scroll, with Start in view. */
@media (min-width: 761px) and (max-height: 820px) {
  html #modalConsult.modal-root:has(> .cx-compose) { padding: 12px; }
  html #modalConsult > .cx-compose { max-height: calc(100dvh - 24px); }
  html #modalConsult .cx-compose .cf-head { padding-top: 14px; padding-bottom: 4px; }
  html #modalConsult .cx-compose .composer-main.cf-body { padding-bottom: 16px; }
  html #modalConsult .cx-compose .cf-ask { margin-bottom: 12px; }
  html #modalConsult .cx-compose .cx-write--q > #consultCase { min-height: 80px; }
  html #modalConsult .cx-compose .cx-who { margin-top: 16px; }
  html #modalConsult .cx-compose .cx-confirm { margin-top: 12px; }
  html #modalConsult .cx-compose #consultHipaaWrap { padding-top: 13px; padding-bottom: 13px; }
  html #modalConsult .cx-compose #hipaaChk { top: 13px; }
}
@media (max-width: 760px) {
  html #modalConsult .cx-compose .cf-ask { margin-bottom: 10px; }
  html #modalConsult .cx-compose .cx-write--q > #consultCase { min-height: 80px; }
  html #modalConsult .cx-compose .cx-live { margin-top: 10px; }
  html #modalConsult .cx-compose .cx-who { margin-top: 14px; }
  html #modalConsult .cx-compose .cx-who__head { gap: 8px; margin-bottom: 10px; }
  html #modalConsult .cx-compose .cx-who__q { min-width: 0; margin-bottom: 0; font-size: 19px; }
  html #modalConsult .cx-compose .cx-findbtn { flex: none; margin-right: -8px; padding: 0 8px; gap: 6px; }
  html #modalConsult .cx-compose .cx-who:not(.is-finding) .cx-who__row { flex-wrap: nowrap; margin: 0 -18px; padding: 0 18px 2px; overflow-x: auto; scrollbar-width: none; }
  html #modalConsult .cx-compose .cx-who:not(.is-finding) .cx-who__row::-webkit-scrollbar { display: none; }
  html #modalConsult .cx-compose .cx-who:not(.is-finding) .peer-choice { flex: none; }
  html #modalConsult .cx-compose .cx-confirm { margin-top: 12px; }
  html #modalConsult .cx-compose #consultHipaaWrap { padding: 12px 14px; }
  html #modalConsult .cx-compose #hipaaChk { top: 12px; }
}
@media (max-width: 379.98px) {
  html #modalConsult .cx-compose .cx-who__q { font-size: 18px; letter-spacing: -.01em; }
}

/* ── still, when asked ── */
@media (prefers-reduced-motion: reduce) {
  html #modalConsult .cx-compose *, html .cx-list .cx-rows > li > a.cx-row.is-fresh { animation: none !important; transition: none !important; }
}
html.a11y-reduce-motion #modalConsult .cx-compose *, html.a11y-reduce-motion .cx-list .cx-rows > li > a.cx-row.is-fresh { animation: none !important; transition: none !important; }
/* the sheet itself keeps the page's arrival (it is what makes it visible), only shortened to nothing */
html.a11y-reduce-motion #modalConsult > .cx-compose { animation-duration: .001ms !important; }
