/* Peer discussions, rebuilt from its foundations on 2 October 2026 (views/consults.js draws it).
   Family design: docs/design/FAMILY.md. Tokens only, no colour literals.

   What the section is for: a doctor asks chosen colleagues a private clinical question and reads their answers.
   - The list: rows with hairlines inside one frost surface, segments with real counts, the search beside them.
   - One discussion: a case sheet with a conversation. A reading column and a quiet margin column, on the page
     card, no nested cards. The one memorable thing is the three-step track at the top of the margin column
     (Asked, Replies, Resolved), drawn from the real state. The reply field is one glass pill at the foot.
   - The composer (the dialog in index.html): the same fields and rules, one short conversation on one screen, in the
     sheet the Create flow shares (the cf- classes of views/create.css); its look is in views/consult-new.css. */

#main-content > [data-viewpanel="consults"] { max-width: 920px !important; margin-left: auto; margin-right: auto; }
#main-content > [data-viewpanel="consultdetail"] { max-width: 1064px !important; margin-left: auto; margin-right: auto; }

.cx { color: var(--color-foreground); }
.cx .hidden { display: none !important; }
.cx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:where(.cx-btn, .cx-pill, .cx-text, .cx-back, .cx-row, .cx-other, .cx-act, .cx-tool, .cx-send, .cx-qchip, .cx-link) { text-align: left; cursor: pointer; }

/* ── shared pieces: the status, a chip, the buttons ── */
.cx-st { --tone: var(--color-brand); --ink: var(--color-brand-ink); display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.cx-st > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.cx-st--awaiting > i { background: transparent; box-shadow: inset 0 0 0 2px var(--tone); }
.cx-st--resolved { --tone: var(--color-success); --ink: color-mix(in srgb, var(--color-success) 62%, var(--color-foreground)); }
.cx-st--closed { --tone: var(--color-muted-foreground); --ink: var(--color-muted-foreground); }
.cx-st--pill { height: 28px; padding: 0 12px 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--tone) 12%, transparent); font-size: 13px; }
.cx-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--color-foreground) 6%, transparent); font-size: 12.5px; font-weight: 500; color: var(--oryn-text-2); white-space: nowrap; }
.cx-new { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--color-brand); font-size: 12px; font-weight: 650; color: var(--color-primary-foreground); white-space: nowrap; font-variant-numeric: tabular-nums; }

.cx-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--color-brand); font-size: 15px; font-weight: 600; color: var(--color-primary-foreground); white-space: nowrap; box-shadow: 0 8px 18px -10px var(--color-brand); transition: background-color .16s var(--ease-out), box-shadow .32s var(--ease-out), translate .42s var(--frost-ease); }
.cx-btn > i { font-size: 17px; }
.cx-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 13px; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--frost-strong); box-shadow: var(--frost-rim); font-size: 14px; font-weight: 600; color: var(--color-foreground); white-space: nowrap; transition: background-color .16s var(--ease-out), border-color .16s var(--ease-out), box-shadow .32s var(--ease-out), translate .42s var(--frost-ease); }
.cx-pill > i { font-size: 17px; color: var(--oryn-text-2); }
.cx-pill--soft { border-color: transparent; background: var(--brand-soft); box-shadow: none; color: var(--color-brand-ink); }
.cx-pill--soft > i { color: var(--color-brand); }
.cx-text { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--color-muted-foreground); transition: color .15s var(--ease-out), background-color .15s var(--ease-out); }
.cx-link { font-weight: 600; color: var(--color-brand-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--color-brand) 34%, transparent); text-underline-offset: 3px; }
@media (hover: hover) {
  .cx-btn:hover { background: var(--color-brand-hover); translate: 0 -1px; box-shadow: 0 0 0 4px var(--brand-soft), 0 12px 24px -10px var(--color-brand); }
  .cx-pill:hover { border-color: var(--oryn-border-hover); translate: 0 -1px; box-shadow: var(--frost-rim), var(--frost-shadow-up); }
  .cx-pill--soft:hover { border-color: color-mix(in srgb, var(--color-brand) 30%, transparent); box-shadow: none; }
  .cx-text:hover { background: var(--oryn-surface-hover); color: var(--color-foreground); }
  .cx-link:hover { text-decoration-color: currentColor; }
}

/* ── the list: the head ── */
.cx-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.cx-head h1 { font-size: 32px; font-weight: 600; letter-spacing: -.022em; line-height: 1.1; }
.cx-head p { margin-top: 8px; max-width: 68ch; font-size: 15px; line-height: 1.5; color: var(--color-muted-foreground); text-wrap: pretty; }

/* segments with their counts, and the search, on one row */
.cx-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 16px; }
.cx-bar #consultTabs { flex: 0 1 auto; max-width: 100%; margin: 0; scrollbar-width: none; }
.cx-bar #consultTabs::-webkit-scrollbar { display: none; }
.cx-bar #consultTabs [role="tab"] { flex: 0 0 auto; }
.cx-count { margin-left: 7px; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground); }
.cx-search { flex: 1 1 220px; max-width: 300px; }
.cx-search__in { position: relative; }
.cx-search__in > i { position: absolute; top: 50%; left: 16px; translate: 0 -50%; font-size: 17px; color: var(--color-muted-foreground); pointer-events: none; }
.cx-search #consultSearch { height: 44px; padding: 0 16px 0 42px; border-radius: 999px; }

/* ── the list: rows with hairlines inside one surface ── */
#consultsList { container-type: inline-size; container-name: cxlist; }
.cx-rows { overflow: hidden; border: 1px solid var(--frost-line); border-radius: 24px; background: var(--frost); box-shadow: var(--frost-rim), var(--frost-shadow); }
.cx-rows > li + li { border-top: 1px solid var(--color-border); }
.cx-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 28px; width: 100%; padding: 18px 24px 19px; transition: background-color .18s var(--ease-out); }
.cx-rows > li:first-child > .cx-row { border-radius: 23px 23px 0 0; }
.cx-rows > li:last-child > .cx-row { border-radius: 0 0 23px 23px; }
.cx-rows > li:only-child > .cx-row { border-radius: 23px; }
.cx-row:focus-visible { outline-offset: -3px; }
.cx-row__main { display: block; min-width: 0; }
.cx-row__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cx-row__title { display: -webkit-box; margin-top: 9px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 16.5px; font-weight: 550; letter-spacing: -.01em; line-height: 1.32; overflow-wrap: anywhere; }
.cx-row.is-unread .cx-row__title { font-weight: 650; }
.cx-row__q { display: block; margin-top: 3px; overflow: hidden; font-size: 14px; line-height: 1.5; color: var(--color-muted-foreground); text-overflow: ellipsis; white-space: nowrap; }
.cx-row__meta { display: grid; grid-template-columns: 104px 78px 70px; align-items: center; column-gap: 16px; font-size: 13px; color: var(--color-muted-foreground); white-space: nowrap; }
.cx-row__n b { font-weight: 600; color: var(--color-foreground); font-variant-numeric: tabular-nums; }
.cx-row__when { text-align: right; font-variant-numeric: tabular-nums; }
.cx-stack { display: inline-flex; align-items: center; padding-left: 4px; }
.cx-av { display: inline-grid; flex: none; margin-left: -4px; border-radius: 50%; box-shadow: 0 0 0 2px var(--color-card); }
.cx-av--more { width: 28px; height: 28px; place-items: center; background: var(--color-muted); font-size: 11px; font-weight: 600; color: var(--oryn-text-2); }
.cx-mail { display: grid; flex: none; place-items: center; border-radius: 50%; background: var(--color-muted); font-size: 14px; color: var(--color-muted-foreground); }
@media (hover: hover) { .cx-row:hover { background: var(--oryn-surface-hover); } }
@container cxlist (max-width: 639.98px) {
  .cx-row { grid-template-columns: minmax(0, 1fr); padding: 16px 18px 17px; }
  .cx-row__meta { display: flex; gap: 14px; }
  .cx-row__when { margin-left: auto; }
}

/* the list while it loads, with nothing in it, and with nothing that matches */
.cx-skel { display: grid; gap: 10px; padding: 20px 24px; border: 1px solid var(--frost-line); border-bottom-width: 0; background: var(--frost); }
.cx-skel:first-child { border-radius: 24px 24px 0 0; }
.cx-skel:last-child { border-bottom-width: 1px; border-radius: 0 0 24px 24px; }
.cx-skel > i { display: block; height: 12px; }
.cx-empty { display: grid; justify-items: center; padding: 52px 28px 44px; border: 1px solid var(--frost-line); border-radius: 24px; background: var(--frost); box-shadow: var(--frost-rim), var(--frost-shadow); text-align: center; }
.cx-empty__ic { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: var(--brand-soft); font-size: 24px; color: var(--color-brand); }
.cx-empty h2 { margin-top: 18px; font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.cx-empty > p { margin-top: 8px; max-width: 50ch; font-size: 15px; line-height: 1.55; color: var(--color-muted-foreground); text-wrap: pretty; }
.cx-empty .cx-track { width: min(600px, 100%); margin: 30px 0 28px; text-align: left; }
.cx-none { padding: 44px 24px; border: 1px dashed var(--color-border); border-radius: 24px; font-size: 15px; line-height: 1.6; color: var(--color-muted-foreground); text-align: center; }

/* ── one discussion: a reading column and a quiet margin column ── */
#consultDetailBody { container-type: inline-size; container-name: cxpage; }
.cx-page { display: flex; flex-direction: column; padding-bottom: 24px; }
.cx-side { display: contents; }
.cx-back { display: inline-flex; align-self: flex-start; justify-self: start; align-items: center; gap: 7px; height: 36px; margin: 0 0 20px -10px; padding: 0 13px 0 10px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--color-muted-foreground); transition: color .15s var(--ease-out), background-color .15s var(--ease-out); }
.cx-back > i { font-size: 16px; }
@media (hover: hover) { .cx-back:hover { background: var(--oryn-surface-hover); color: var(--color-foreground); } }

.cx-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; color: var(--color-muted-foreground); }
.cx-facts .cx-chip { height: 28px; padding: 0 12px; font-size: 13px; }
.cx-title { margin-top: 16px; font-size: clamp(26px, 4.6cqi, 32px); font-weight: 600; letter-spacing: -.022em; line-height: 1.16; text-wrap: balance; overflow-wrap: anywhere; }
.cx-by { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.cx-by b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.cx-by b > span { font-weight: 400; color: var(--color-muted-foreground); }
.cx-by small { display: block; font-size: 13px; color: var(--color-muted-foreground); }
/* who asked, who answered and who replied lead to their page, as the author of a post does: the name is a link that
   underlines when pointed at, and a link lies over the portrait (it takes no room and paints nothing) */
.cx-who { border-radius: 6px; cursor: pointer; }
.cx-who > span { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .15s var(--ease-out); }
.cx-who:hover > span { text-decoration-color: currentColor; }
.cx-who:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 2px; }
.cx-face { position: relative; display: block; flex: none; width: fit-content; height: fit-content; border-radius: 50%; cursor: pointer; }
.cx-face > .cx-face__link { position: absolute; inset: 0; border-radius: 50%; }

/* the question is the body of the page: no box, a thin rule in the accent */
.cx-case { margin-top: 32px; }
.cx-q { padding: 2px 0 2px 22px; border-left: 2px solid var(--color-brand); font-size: 17px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.cx-ctx { margin-top: 30px; }
.cx-ctx h2 { font-size: 15px; font-weight: 600; }
.cx-ctx dl { display: grid; gap: 10px; margin-top: 12px; }
.cx-ctx dl > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 16px; }
.cx-ctx dt { padding-top: 2px; font-size: 13px; line-height: 1.6; color: var(--color-muted-foreground); }
.cx-ctx dd { font-size: 15px; line-height: 1.6; color: var(--oryn-text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.cx-quiet { margin-top: 24px; font-size: 14px; color: var(--color-muted-foreground); }
.cx-priv, .cx-done { display: flex; align-items: flex-start; gap: 8px; margin-top: 20px; font-size: 13px; line-height: 1.5; color: var(--color-muted-foreground); }
.cx-priv > i, .cx-done > i { flex: none; margin-top: 1px; font-size: 17px; color: var(--color-success); }
.cx-done { margin-top: 28px; font-size: 14px; color: var(--oryn-text-2); }
.cx .cx-case [data-attachments-block] { margin-top: 26px; padding: 0; border: 0; border-radius: 0; background: none; }
.cx .cx-case [data-attachments-block] > p { margin-bottom: 10px; font-size: 13px; font-weight: 500; color: var(--color-muted-foreground); }

/* the initiator's actions, one row; the edit sheet opens under it */
.cx-own { margin-top: 28px; }
.cx-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cx-acts .cx-text { margin-left: auto; }
.cx #consultEditPanel { margin-top: 16px; padding: 22px; border: 1px solid var(--frost-line); border-radius: 22px; background: var(--frost); box-shadow: var(--frost-rim), var(--frost-shadow); }

/* the replies: a thread with hairlines, no card per reply */
.cx-talk { margin-top: 44px; }
.cx-talk__head { display: flex; align-items: baseline; gap: 10px; }
.cx-talk__head h2 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.cx-num { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground); }
.cx-thread { margin-top: 4px; }
.cx-reply { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 22px 0; }
.cx-reply + .cx-reply { border-top: 1px solid var(--color-border); }
.cx-reply__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-height: 26px; font-size: 13px; color: var(--color-muted-foreground); }
.cx-reply__head b { font-size: 15px; font-weight: 600; color: var(--color-foreground); }
.cx-reply__head b > span { font-weight: 400; color: var(--color-muted-foreground); }
.cx-tools { display: inline-flex; align-self: center; gap: 2px; margin: -4px -6px -4px auto; opacity: 0; transition: opacity .15s var(--ease-out); }
.cx-reply:hover .cx-tools, .cx-subreply:hover .cx-tools, .cx-tools:focus-within { opacity: 1; }
@media (hover: none) { .cx-tools { opacity: 1; } }
.cx-tool { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; font-size: 15px; color: var(--color-muted-foreground); transition: color .15s var(--ease-out), background-color .15s var(--ease-out); }
.cx-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cx-tag { display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--color-foreground) 6%, transparent); font-size: 12.5px; font-weight: 550; color: var(--oryn-text-2); }
.cx-tag--yes { background: color-mix(in srgb, var(--color-success) 13%, transparent); color: color-mix(in srgb, var(--color-success) 62%, var(--color-foreground)); }
.cx-tag > i { font-size: 13px; }
.cx-reply__text { margin-top: 6px; font-size: 15px; line-height: 1.62; white-space: pre-wrap; overflow-wrap: anywhere; }
.cx-at { font-weight: 600; color: var(--color-brand-ink); }
.cx-reply__acts { display: flex; align-items: center; gap: 2px; margin: 8px 0 0 -10px; }
.cx-act { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--color-muted-foreground); transition: color .15s var(--ease-out), background-color .15s var(--ease-out); }
.cx-act > i { font-size: 15px; }
.cx-act[aria-pressed="true"] { color: var(--color-brand-ink); }
@media (hover: hover) {
  .cx-tool:hover, .cx-act:hover { background: var(--oryn-surface-hover); color: var(--color-foreground); }
  .cx-tool--del:hover { background: color-mix(in srgb, var(--color-alert) 10%, transparent); color: var(--color-alert); }
  .cx-act[aria-pressed="true"]:hover { color: var(--color-brand-ink); }
}
.cx-replybox { margin-top: 10px; }
.cx-sub { display: grid; gap: 14px; margin-top: 14px; padding-left: 16px; border-left: 1px solid var(--color-border); }
.cx-subreply { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.cx-subreply .cx-reply__head { min-height: 22px; }
.cx-subreply .cx-reply__head b { font-size: 14px; }
.cx-subreply .cx-reply__text { margin-top: 2px; font-size: 14.5px; color: var(--oryn-text-2); }
.cx-thread__none { padding: 26px 0 8px; font-size: 15px; line-height: 1.55; color: var(--color-muted-foreground); }
/* a reply being edited: the app's own editor, in the family field */
.cx [data-cbubble] textarea { display: block; width: 100%; min-height: 104px; padding: 12px 14px; border: 1px solid var(--frost-line); border-radius: 14px; background: var(--frost-strong); box-shadow: var(--frost-rim); font-size: 15px; line-height: 1.6; white-space: pre-wrap; transition: border-color .22s var(--ease-out), box-shadow .32s var(--ease-out); }
.cx [data-cbubble] textarea:focus { border-color: color-mix(in srgb, var(--color-brand) 70%, transparent); box-shadow: var(--frost-rim), 0 0 0 4px var(--brand-soft); }

/* the reply field: one glass pill at the foot of the column, a round send button */
.cx-foot { position: relative; z-index: 4; margin: 0 -16px; padding: 18px 16px 0; pointer-events: none; }
.cx-dock { position: relative; pointer-events: auto; border: 1px solid var(--frost-line); border-radius: 28px; background: var(--frost-float); box-shadow: var(--frost-rim), var(--frost-pop); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); transition: border-color .22s var(--ease-out), box-shadow .32s var(--ease-out); }
.cx-dock:focus-within { border-color: color-mix(in srgb, var(--color-brand) 70%, transparent); box-shadow: var(--frost-rim), 0 0 0 4px var(--brand-soft), var(--frost-pop); }
.cx-quick { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease-out); }
.cx-dock.is-open .cx-quick { grid-template-rows: 1fr; }
.cx-quick > div { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s .32s; }
.cx-dock.is-open .cx-quick > div { visibility: visible; transition-delay: 0s; }
.cx-quick__in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 16px 4px; }
.cx-quick__in > span { margin-right: 4px; font-size: 13px; color: var(--color-muted-foreground); }
.cx-qchip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--frost-line); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--oryn-text-2); transition: border-color .16s var(--ease-out), background-color .16s var(--ease-out), color .16s var(--ease-out); }
@media (hover: hover) { .cx-qchip:hover { border-color: var(--oryn-border-hover); color: var(--color-foreground); } }
.cx-field { display: flex; align-items: flex-end; gap: 10px; padding: 7px 7px 7px 10px; }
.cx-field__me { display: grid; flex: none; margin-bottom: 4px; }
.cx-field textarea { flex: 1; min-width: 0; max-height: 220px; padding: 9px 2px; border: 0; outline: 0; background: transparent; resize: none; font: inherit; font-size: 15px; line-height: 1.5; color: var(--color-foreground); }
.cx-field textarea::placeholder { overflow: hidden; color: var(--color-muted-foreground); text-overflow: ellipsis; white-space: nowrap; }
.cx-send { display: grid; flex: none; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--color-brand); font-size: 18px; color: var(--color-primary-foreground); box-shadow: 0 8px 18px -10px var(--color-brand); transition: background-color .16s var(--ease-out), box-shadow .32s var(--ease-out); }
@media (hover: hover) { .cx-send:hover { background: var(--color-brand-hover); box-shadow: 0 0 0 4px var(--brand-soft), 0 12px 24px -10px var(--color-brand); } }
.cx-field--sm { padding: 4px 4px 4px 16px; border: 1px solid var(--frost-line); border-radius: 24px; background: var(--frost-strong); box-shadow: var(--frost-rim); transition: border-color .22s var(--ease-out), box-shadow .32s var(--ease-out); }
.cx-field--sm:focus-within { border-color: color-mix(in srgb, var(--color-brand) 70%, transparent); box-shadow: var(--frost-rim), 0 0 0 4px var(--brand-soft); }
.cx-field--sm textarea { padding: 6px 0; font-size: 14.5px; }
.cx-field--sm .cx-send { width: 32px; height: 32px; font-size: 15px; }
.cx-closed { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 15px 18px; border-radius: 18px; background: color-mix(in srgb, var(--color-foreground) 4%, transparent); font-size: 14px; color: var(--color-muted-foreground); }
.cx-closed > i { flex: none; font-size: 17px; }
.cx-note { margin-top: 22px; max-width: 64ch; font-size: 12.5px; line-height: 1.55; color: var(--color-muted-foreground); }

/* ── the margin column ── */
/* the track: where the discussion stands, from its real state */
.cx-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cx-track > li { position: relative; padding-right: 10px; }
.cx-track > li:not(:last-child)::after { content: ''; position: absolute; top: 12px; right: 6px; left: 32px; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--color-foreground) 12%, transparent); }
.cx-track > li.is-done:not(:last-child)::after { background: var(--color-brand); }
.cx-node { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--color-foreground) 22%, transparent); font-size: 12px; font-weight: 600; font-style: normal; color: var(--color-muted-foreground); }
.cx-track > li.is-done > .cx-node { background: var(--color-brand); box-shadow: none; color: var(--color-primary-foreground); }
.cx-track > li.is-now > .cx-node { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--color-brand); }
.cx-track > li.is-now > .cx-node::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--color-brand); }
.cx-track > li.is-end > .cx-node { background: var(--color-success); box-shadow: none; color: var(--color-card); }
.cx-track > li.is-shut > .cx-node { background: color-mix(in srgb, var(--color-foreground) 10%, transparent); box-shadow: none; font-size: 13px; color: var(--color-muted-foreground); }
.cx-track b { display: block; margin-top: 10px; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.cx-track > li:not(.is-done):not(.is-now):not(.is-end):not(.is-shut) b { color: var(--color-muted-foreground); }
.cx-track small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--color-muted-foreground); text-wrap: pretty; }

.cx-block { margin-top: 30px; }
.cx-block > h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; }
.cx-block > h2 > span { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground); }
.cx-peer { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; }
.cx-peer b { display: block; overflow: hidden; font-size: 14px; font-weight: 550; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.cx-peer b > span { font-weight: 400; color: var(--color-muted-foreground); }
.cx-peer small { display: block; overflow: hidden; font-size: 12.5px; color: var(--color-muted-foreground); text-overflow: ellipsis; white-space: nowrap; }
.cx-peer__st { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--color-muted-foreground); white-space: nowrap; }
.cx-peer__st > i { font-size: 14px; }
.cx-peer__st.is-yes { color: color-mix(in srgb, var(--color-success) 62%, var(--color-foreground)); }
.cx-invite { justify-content: center; width: 100%; margin-top: 12px; }
.cx #consultInvitePick { margin-top: 8px; padding: 6px; border: 1px solid var(--frost-line); border-radius: 18px; background: var(--frost-strong); box-shadow: var(--frost-rim); }
.cx #consultInvitePick > button { border-radius: 12px; font-size: 14px; }
.cx #consultInvitePick > p { font-size: 13px; line-height: 1.5; }
.cx-other { display: grid; grid-template-columns: 8px minmax(0, 1fr); align-items: baseline; column-gap: 12px; width: calc(100% + 20px); margin: 0 -10px; padding: 9px 10px; border-radius: 12px; transition: background-color .15s var(--ease-out); }
.cx-other__t { overflow: hidden; font-size: 14px; font-weight: 550; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.cx-other__m { grid-column: 2; font-size: 12.5px; color: var(--color-muted-foreground); }
.cx-other .cx-st { translate: 0 -1px; }
@media (hover: hover) { .cx-other:hover { background: var(--oryn-surface-hover); } }
.cx-block .cx-text { height: 34px; margin: 4px 0 0 -12px; padding: 0 12px; font-size: 13px; }
.cx-report { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--color-border); }
.cx-report :is(button, p) { display: inline-flex; align-items: center; justify-content: flex-start; gap: 7px; width: auto; margin: 0; font-size: 12.5px; font-weight: 500; line-height: 1.4; color: var(--color-muted-foreground); text-align: left; transition: color .15s var(--ease-out); }
.cx-report i { font-size: 14px; }
@media (hover: hover) { .cx-report button:hover { color: var(--color-alert); } }

/* narrow: the margin column is a compact strip under the question, above the replies */
.cx-where { margin-top: 30px; padding: 22px 0 20px; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.cx-more { order: 9; margin-top: 36px; padding-top: 4px; border-top: 1px solid var(--color-border); }
@container cxpage (max-width: 859.98px) {
  .cx-where .cx-block { margin-top: 22px; }
  .cx-people { display: flex; flex-wrap: wrap; gap: 8px; }
  .cx-peer { display: inline-flex; gap: 8px; max-width: 100%; padding: 4px 12px 4px 4px; border: 1px solid var(--frost-line); border-radius: 999px; }
  .cx-peer > :first-child { width: 24px; height: 24px; font-size: 10px; }
  .cx-peer small, .cx-peer__st > span { display: none; }
  .cx-peer__st:not(.is-yes) { display: none; }
  .cx-invite { width: auto; }
  .cx-talk { margin-top: 32px; }
}
/* wide: two columns on the page card; the margin column stays in view while the thread is read */
@container cxpage (min-width: 860px) {
  .cx-page { display: grid; grid-template-columns: minmax(0, 720px) minmax(240px, 280px); grid-template-rows: repeat(6, auto) 1fr; justify-content: space-between; column-gap: 48px; }
  .cx-page > * { grid-column: 1; }
  .cx-side { display: block; grid-column: 2; grid-row: 2 / -1; align-self: start; position: sticky; top: calc(var(--frame) + var(--top-h) + 12px); max-height: calc(100dvh - var(--top-h) - var(--frame) * 2 - 28px); margin: -8px -12px 0; padding: 8px 12px 12px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .cx-side::-webkit-scrollbar { display: none; }
  .cx-where { margin: 0; padding: 0; border: 0; }
  .cx-more { margin-top: 0; padding-top: 0; border: 0; }
  /* the reply field stays in reach while the thread moves under it: a strip of glass that fades in above it */
  .cx-foot { position: sticky; bottom: var(--frame); padding: 22px 16px 18px; }
  .cx-foot::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, color-mix(in srgb, var(--color-background) 86%, transparent), color-mix(in srgb, var(--color-background) 56%, transparent)); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); -webkit-mask-image: linear-gradient(to top, var(--color-foreground) 66%, transparent); mask-image: linear-gradient(to top, var(--color-foreground) 66%, transparent); }
  .cx-note { margin-top: 4px; }
}

/* ── the composer ──
   The dialog that starts a discussion is one short conversation on one screen since 18 November 2026. It wears the
   shared sheet of the Create flow (the cf- classes, views/create.css) and its own look lives in views/consult-new.css,
   loaded after the clean layer. Only the rule that hides what the arrangement leaves behind stays here. */
.cx-old { display: none !important; }

/* ── phones ── */
@media (max-width: 639.98px) {
  .cx-head { margin-bottom: 22px; }
  .cx-head h1 { font-size: 28px; }
  .cx-search { flex-basis: 100%; max-width: none; }
  .cx-q { padding-left: 16px; font-size: 16.5px; }
  .cx-ctx dl > div { grid-template-columns: minmax(0, 1fr); }
  .cx-acts .cx-text { margin-left: 0; }
  .cx-reply { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .cx-empty { padding: 40px 20px 34px; }
  .cx-empty .cx-track { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .cx-empty .cx-track > li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; padding: 0; }
  .cx-empty .cx-track > li::after { display: none; }
  .cx-empty .cx-track .cx-node { grid-row: 1 / span 2; }
  .cx-empty .cx-track b { margin-top: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-btn, .cx-pill, .cx-quick, .cx-quick > div, .cx-dock, .cx-row, .cx-tools { transition: none; }
}

/* Not saved yet, so not offered: a "helpful" mark, a reply to a reply, and editing or deleting a reply lived only in
   the page and were gone after a reload. Their markup and hooks stay; they come back when the server stores them. */
.cx-reply__acts, .cx-tools { display: none !important; }

/* ── a touch screen: 44px to the finger, the look unchanged (an ::after nobody sees takes the press) ── */
@media (pointer: coarse) {
  .cx-send, .cx-pill, .cx-text { position: relative; }
  .cx-send::after, .cx-pill::after, .cx-text::after { content: ''; position: absolute; inset: -2px; }
  .cx-pill::after, .cx-text::after { inset: -2px 0; }
}
/* a discussion drafted by Ask (ASK-07): one quiet line above the question says where it came from */
.cx-fromask { margin: 0 0 12px; padding: 2px 0 2px 10px; border-left: 2px solid var(--color-brand); font-size: 13px; line-height: 1.4; color: var(--color-muted-foreground); }
.cx-fromask[hidden] { display: none; }
