/* Discussions (data-viewpanel="consults"), second pass (18 November 2026). The owner: the inner places have "muy poco diseño, muy poco cariño", improve them a lot.
   Loaded last (index.html), over the clean layer; tokens of the clean look only (--cl-*), and two extra hues mixed into the surface.

   What changes, and why:
   - nothing black: Start a discussion, the chosen tab, the unread mark and Post are soft lilac, the words in a deep lilac;
   - each discussion is its own card: the state as a small coloured pill (Active in teal, Awaiting replies in amber, with a
     hollow point so the two differ without colour too), the unread mark in lilac with a point, the title in the serif, the
     question in grey, and a foot with the people in it, the replies and the last activity, quiet at the end;
   - a short list ends with how a discussion works; a tab with nothing in it, and a page with no discussions, say so in a
     soft lilac panel with one way forward;
   - one discussion: the question as a soft bubble under the one who asked, each reply as a bubble beside its author (the
     doctor's own tinted lilac), the margin in a card, the steps of where it stands in lilac;
   - motion: a short fade and rise, a beat apart, nothing turns and nothing follows the pointer; still when asked. */

/* the page's own hues, each one mixed into the surface where it is used */
html .cx {
  --cxp-teal: var(--cl-ink-4); --cxp-amber: var(--cl-lilac);   /* one palette (19 November): grey and lilac, no teal or amber */
  --cxp-deep: color-mix(in srgb, var(--cl-lilac) 66%, var(--cl-ink));
  --cxp-soft: color-mix(in srgb, var(--cl-lilac) 14%, var(--cl-surface));
  --cxp-wash: color-mix(in srgb, var(--cl-lilac) 6%, var(--cl-surface));
  --cxp-edge: color-mix(in srgb, var(--cl-lilac) 42%, transparent);
  --cxp-hair: color-mix(in srgb, var(--cl-lilac) 18%, transparent);
}
@keyframes cxp-rise { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: none; } }

/* 1. The primary action: a soft lilac pill, its icon in a deep lilac circle ---------------------------------------------- */
html .cx-head .cx-btn, html .cx .cx-go, html .cx .cx-send {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 20px 0 11px; border-radius: 999px;
  border: 1px solid var(--cxp-edge) !important;
  background: color-mix(in srgb, var(--cl-lilac) 14%, var(--cl-surface)) !important;
  color: var(--cxp-deep) !important; font-size: 15px; font-weight: 400; white-space: nowrap; cursor: pointer;
  box-shadow: none !important;
  transition: border-color .25s var(--cl-out), box-shadow .35s var(--cl-out), scale .12s var(--cl-out);
}
html .cx-head .cx-btn > i, html .cx .cx-go > i, html .cx .cx-send > i {
  display: grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--cxp-deep); color: var(--cl-surface); font-size: 13px;
}
@media (hover: hover) {
  html .cx-head .cx-btn:hover, html .cx .cx-go:hover, html .cx .cx-send:hover {
    border-color: color-mix(in srgb, var(--cl-lilac) 64%, transparent) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--cl-lilac) 12%, transparent), 0 10px 24px -14px color-mix(in srgb, var(--cl-lilac) 60%, transparent) !important;
  }
}
html .cx-head .cx-btn:active, html .cx .cx-go:active, html .cx .cx-send:active { scale: .97; }

/* a soft secondary action: a lilac hairline, deep lilac words */
html .cx .cx-soft, html .cx .cx-pill--soft {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px 0 14px;
  border: 1px solid color-mix(in srgb, var(--cl-lilac) 34%, transparent); border-radius: 999px;
  background: var(--cl-surface); color: var(--cxp-deep); font-size: 14.5px; font-weight: 400; cursor: pointer;
  transition: border-color .22s var(--cl-out), background-color .22s var(--cl-out), scale .12s var(--cl-out);
}
html .cx .cx-soft > i, html .cx .cx-pill--soft > i { font-size: 16px; color: var(--cxp-deep); }
@media (hover: hover) {
  html .cx .cx-soft:hover, html .cx .cx-pill--soft:hover { border-color: color-mix(in srgb, var(--cl-lilac) 58%, transparent); background: var(--cxp-wash); color: var(--cxp-deep); }
}
html .cx .cx-soft:active { scale: .97; }

/* 2. The head and the tabs ---------------------------------------------------------------------------------------------- */
html .cx-list .cx-head { margin-bottom: 32px; }
html .cx-list .cx-head p { color: var(--cl-ink-3); }
/* the chosen tab: the sliding piece in soft lilac with a lilac hairline, the words in deep lilac; each tab shows its count */
html body #consultTabs .tab-ind {
  background: var(--cxp-soft) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cl-lilac) 45%, transparent) !important;
}
html body #consultTabs [role="tab"] { padding: 0 18px; background: transparent; color: var(--cl-ink-2) !important; }
html body #consultTabs [role="tab"][aria-selected="true"] { border-color: transparent; color: var(--cxp-deep) !important; }
html body #consultTabs .cx-count { display: inline-block !important; margin-left: 8px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--cl-ink-4) !important; }
html body #consultTabs [role="tab"][aria-selected="true"] .cx-count { color: color-mix(in srgb, var(--cl-lilac) 72%, var(--cl-ink)) !important; }

/* 3. The list: one card per discussion ---------------------------------------------------------------------------------- */
/* one column that never grows past the page: a long question stays one line with its ellipsis (18 November 2026: a long
   question had pushed every card off the screen) */
html .cx-list .cx-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; animation: none; }
html .cx-list .cx-rows > li + li { border-top: 0; }
html .cx-list .cx-rows > li { animation: cxp-rise .6s var(--cl-spring) .12s both; }
html .cx-list .cx-rows > li:nth-child(2) { animation-delay: .17s; }
html .cx-list .cx-rows > li:nth-child(3) { animation-delay: .22s; }
html .cx-list .cx-rows > li:nth-child(4) { animation-delay: .27s; }
html .cx-list .cx-rows > li:nth-child(5) { animation-delay: .32s; }
html .cx-list .cx-rows > li:nth-child(n+6) { animation-delay: .36s; }
html .cx-list .cx-rows > li > a.cx-row {
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  padding: 22px 26px 16px; 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 .4s var(--cl-out), translate .5s var(--cl-spring);
}
html .cx-list .cx-rows > li > a.cx-row.is-unread { border-color: color-mix(in srgb, var(--cl-lilac) 34%, transparent); }
@media (hover: hover) {
  html .cx-list .cx-rows > li > a.cx-row:hover { border-color: var(--cl-line-3); background: var(--cl-surface); translate: 0 -2px; box-shadow: var(--cl-shadow-2); }
  html .cx-list .cx-rows > li > a.cx-row.is-unread:hover { border-color: color-mix(in srgb, var(--cl-lilac) 52%, transparent); }
}
html .cx-list .cx-rows > li > a.cx-row:active { translate: 0 0; }
html .cx-list .cx-rows > li > a.cx-row:focus-visible { outline: 2px solid var(--cl-lilac) !important; outline-offset: 2px; }
html .cx-list .cx-row__facts { gap: 8px; }
html .cx-list .cx-row .cx-row__title { margin-top: 14px; -webkit-line-clamp: 2; font-family: var(--cl-serif); font-size: 21px; font-weight: 400; line-height: 1.3; letter-spacing: -.008em; color: var(--cl-ink); text-wrap: pretty; }
html .cx-list .cx-row .cx-row__q { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--cl-ink-3); }
/* the foot of the card: who is in it, the replies, and when it last moved */
html .cx-list .cx-row .cx-row__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--cl-line);
  font-size: 14px; color: var(--cl-ink-3); white-space: nowrap;
}
html .cx-list .cx-row__people { display: inline-flex; align-items: center; gap: 10px; }
html .cx-list .cx-stack { padding-left: 6px; }
html .cx-list .cx-av { margin-left: -6px; box-shadow: 0 0 0 2px var(--cl-surface), 0 0 0 3px var(--cl-line-2); }
html .cx-list .cx-row__n { display: inline-flex; align-items: center; gap: 6px; }
html .cx-list .cx-row__n > i { font-size: 16px; color: var(--cl-ink-4); }
html .cx-list .cx-row__n b { font-weight: 400; color: var(--cl-ink); }
html .cx-list .cx-row .cx-row__when { margin-left: auto; font-size: 13.5px; color: var(--cl-ink-4); }

/* while the list loads: the stand-ins have the shape of the cards */
html .cx-list .cx-skel { gap: 12px; margin-bottom: 14px; padding: 24px 26px; border: 1px solid var(--cl-line); border-radius: 20px; background: var(--cl-surface); }
html .cx-list .cx-skel:first-child, html .cx-list .cx-skel:last-child { border-width: 1px; border-radius: 20px; }

/* the state: a small pill in its own hue, the point hollow while it waits */
html .cx .cx-st { --wash: var(--cl-surface-2); }
html .cx .cx-row .cx-st, html .cx .cx-st--pill {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px 0 9px; border-radius: 999px;
  background: var(--wash); color: var(--ink); font-size: 13px; font-weight: 400;
}
html .cx .cx-st > i { width: 7px; height: 7px; background: var(--tone); }
html .cx .cx-st--active { --tone: var(--cxp-teal); --ink: color-mix(in srgb, var(--cxp-teal) 55%, var(--cl-ink)); --wash: color-mix(in srgb, var(--cxp-teal) 14%, var(--cl-surface)); }
html .cx .cx-st--awaiting { --tone: var(--cxp-amber); --ink: color-mix(in srgb, var(--cxp-amber) 50%, var(--cl-ink)); --wash: color-mix(in srgb, var(--cxp-amber) 16%, var(--cl-surface)); }
html .cx .cx-st--awaiting > i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tone); }
html .cx .cx-st--resolved { --tone: var(--cl-ok-ink); --ink: var(--cl-ok-ink); --wash: color-mix(in srgb, var(--cl-ok-ink) 12%, var(--cl-surface)); }
html .cx .cx-st--closed { --tone: var(--cl-ink-4); --ink: var(--cl-ink-3); --wash: var(--cl-surface-2); }
/* the unread mark: soft lilac with a point */
html .cx .cx-new {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 9px;
  border: 1px solid color-mix(in srgb, var(--cl-lilac) 30%, transparent); border-radius: 999px;
  background: color-mix(in srgb, var(--cl-lilac) 12%, var(--cl-surface)); color: var(--cxp-deep); font-size: 13px; font-weight: 400;
}
html .cx .cx-new::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--cl-lilac); }

/* 4. How a discussion works, under a short list; the empty places ------------------------------------------------------- */
html .cx-list .cx-hint {
  margin-top: 28px; padding: 22px 26px 24px; border: 1px solid var(--cxp-hair); border-radius: 20px; background: var(--cxp-wash);
  animation: cxp-rise .6s var(--cl-spring) .3s both;
}
html .cx-list .cx-hint h2 { font-family: var(--cl-serif); font-size: 19px; font-weight: 400; letter-spacing: -.005em; color: var(--cl-ink); }
html .cx-list .cx-hint .cx-track { margin-top: 18px; }
/* the three steps, in lilac: a number in a circle, a line to the next */
html .cx-list :is(.cx-hint, .cx-empty) .cx-track > li:not(:last-child)::after { background: color-mix(in srgb, var(--cl-lilac) 30%, transparent); }
html .cx-list :is(.cx-hint, .cx-empty) .cx-node { background: color-mix(in srgb, var(--cl-lilac) 18%, var(--cl-surface)); box-shadow: none; font-size: 12.5px; color: var(--cxp-deep); }
html .cx-list :is(.cx-hint, .cx-empty) .cx-track b { font-size: 15px; font-weight: 400; color: var(--cl-ink); }
html .cx-list :is(.cx-hint, .cx-empty) .cx-track small { font-size: 13.5px; line-height: 1.45; color: var(--cl-ink-3); }

html .cx .cx-calm {
  display: grid; justify-items: center; padding: 48px 28px 40px;
  border: 1px solid var(--cxp-hair); border-radius: 24px; background: var(--cxp-wash); box-shadow: none;
  font-size: 15px; text-align: center;
  animation: cxp-rise .6s var(--cl-spring) .12s both;
}
html .cx .cx-calm__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: color-mix(in srgb, var(--cl-lilac) 18%, var(--cl-surface)); font-size: 22px; color: var(--cxp-deep); }
html .cx .cx-calm h2 { margin-top: 16px; font-family: var(--cl-serif); font-size: 25px; font-weight: 400; letter-spacing: -.01em; line-height: 1.2; color: var(--cl-ink); }
html .cx .cx-calm > p { margin-top: 8px; max-width: 46ch; font-size: 15.5px; line-height: 1.55; color: var(--cl-ink-3); text-wrap: pretty; }
html .cx .cx-calm > :is(.cx-soft, .cx-go) { margin-top: 24px; }
html .cx .cx-empty .cx-track { width: min(600px, 100%); margin: 30px 0 4px; text-align: left; }

/* 5. One discussion (third pass, 18 November 2026; the owner: "esta página también necesita un diseño mucho mejor") -------
   Read at a glance, in this order: the title at a calm size (34 px, two lines on a computer); one quiet line with who
   asked and when; the question as the one soft lilac bubble; the context as one card, a small caption above each value;
   then the replies, each a bubble with its author and time on the first line, and the reply field as a calm card at their
   end with Post as the one primary action. The margin is one card held at the top of the content (where it stands, who is
   in it, Invite), More discussions a quiet list under it. 24 to 32 px between groups, 8 to 12 inside one. */
html .cx-page .cx-back {
  height: 38px; margin-left: 0; padding: 0 16px 0 12px; border: 1px solid var(--cl-line-2); border-radius: 999px;
  background: var(--cl-surface); font-size: 14.5px; color: var(--cl-ink-2);
  transition: border-color .22s var(--cl-out), background-color .22s var(--cl-out), color .22s var(--cl-out);
}
@media (hover: hover) { html .cx-page .cx-back:hover { border-color: var(--cl-line-3); background: var(--cl-hover); color: var(--cl-ink); } }

/* the head: the state and the field, the title, who asked and when */
html .cx-page .cx-facts { gap: 8px; font-size: 14px; color: var(--cl-ink-4); animation: cxp-rise .55s var(--cl-spring) both; }
html .cx-page .cx-facts .cx-st--pill { height: 28px; font-size: 13.5px; }
html .cx-page .cx-facts .cx-chip { height: 28px; padding: 0 12px; border: 1px solid var(--cl-line-2); background: var(--cl-surface); font-size: 13.5px; color: var(--cl-ink-2); }
html .cx-page .cx-facts .cx-edited { margin-left: 4px; font-size: 13.5px; color: var(--cl-ink-4); }
html .cx-page .cx-title {
  max-width: 22em; margin-top: 16px;
  font-family: var(--cl-serif); font-size: clamp(27px, 2.2cqi + 11px, 34px); font-weight: 400; line-height: 1.22; letter-spacing: -.014em;
  color: var(--cl-ink); text-wrap: balance; animation: cxp-rise .6s var(--cl-spring) .04s both;
}
html .cx-page .cx-by { gap: 10px; margin-top: 16px; animation: cxp-rise .55s var(--cl-spring) .08s both; }
html .cx-page .cx-by .h-10.w-10 { width: 30px; height: 30px; font-size: 11.5px !important; }
html .cx-page .cx-by > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; font-size: 14.5px; line-height: 1.4; }
html .cx-page .cx-by b { display: inline; font-size: 15px; font-weight: 400; color: var(--cl-ink); }
html .cx-page .cx-by b > span { color: var(--cl-ink-3); }
html .cx-page .cx-by small { display: inline; font-size: 14.5px; color: var(--cl-ink-3); }
html .cx-page .cx-by small::before { content: '\00B7'; margin: 0 8px; color: var(--cl-ink-4); }

/* the question: the hero, a soft lilac bubble under the one who asked */
html .cx-page .cx-case { margin-top: 24px; animation: cxp-rise .6s var(--cl-spring) .12s both; }
html .cx-page .cx-q {
  margin: 0; padding: 22px 28px 24px; border: 1px solid color-mix(in srgb, var(--cl-lilac) 24%, transparent); border-radius: 6px 24px 24px 24px;
  background: color-mix(in srgb, var(--cl-lilac) 8%, var(--cl-surface));
  font-family: var(--cl-serif); font-size: 22px; line-height: 1.5; letter-spacing: -.004em; color: var(--cl-ink); text-wrap: pretty;
}
/* the context: one card, a small caption above each value; the privacy line is its foot */
html .cx-page .cx-card { margin-top: 16px; padding: 20px 24px 18px; border: 1px solid var(--cl-line-2); border-radius: 20px; background: var(--cl-surface); }
html .cx-page .cx-card .cx-ctx { margin: 0; }
html .cx-page .cx-card .cx-ctx h2 { font-size: 15px; font-weight: 400; color: var(--cl-ink); }
html .cx-page .cx-card .cx-ctx dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin-top: 14px; }
html .cx-page .cx-card .cx-ctx dl > div { display: block; }
html .cx-page .cx-card .cx-ctx dl > div:first-child { grid-column: 1 / -1; }
html .cx-page .cx-card .cx-ctx dt { padding: 0; font-size: 13.5px; line-height: 1.4; color: var(--cl-ink-4); }
html .cx-page .cx-card .cx-ctx dd { margin-top: 4px; font-size: 16px; line-height: 1.6; color: var(--cl-ink-2); }
html .cx-page .cx-card .cx-quiet { margin: 0; font-size: 15px; color: var(--cl-ink-3); }
html .cx-page .cx-card .cx-priv { align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--cl-line); font-size: 13.5px; color: var(--cl-ink-3); }
html .cx-page .cx-card .cx-priv > i { margin: 0; font-size: 16px; color: var(--cl-ok-ink); }
html .cx-page .cx-done { align-items: center; margin-top: 16px; font-size: 15px; color: var(--cl-ink-2); }
html .cx-page .cx-case [data-attachments-block] { margin-top: 16px; }

/* the owner's actions: one quiet row, Mark resolved the one soft lilac action, Close apart at the end */
html .cx-page .cx-own { margin-top: 24px; animation: cxp-rise .55s var(--cl-spring) .2s both; }
html .cx-page .cx-acts { gap: 10px; }
html .cx-page .cx-acts :is(.cx-pill, .cx-pill--soft) { height: 40px; padding: 0 16px 0 13px; font-size: 14.5px; }
html .cx-page .cx-acts .cx-pill > i { font-size: 16px; }
html .cx-page .cx-acts .cx-text { gap: 7px; height: 40px; margin-left: auto; padding: 0 14px 0 12px; font-size: 14.5px; color: var(--cl-ink-3); }
html .cx-page .cx-acts .cx-text > i { font-size: 16px; }
@media (hover: hover) { html .cx-page .cx-acts .cx-text:hover { background: var(--cl-hover); color: var(--cl-ink); } }

/* where it stands and who is in it: one card */
html .cx-page .cx-where { padding: 22px 22px 20px; border: 1px solid var(--cl-line-2); border-radius: 20px; background: var(--cl-surface); }
html .cx-page .cx-track > li:not(:last-child)::after { background: var(--cl-line-2); }
html .cx-page .cx-track > li.is-done:not(:last-child)::after { background: color-mix(in srgb, var(--cl-lilac) 55%, var(--cl-surface)); }
html .cx-page .cx-track > li.is-done > .cx-node { background: var(--cxp-deep); box-shadow: none; color: var(--cl-surface); }
html .cx-page .cx-track > li.is-now > .cx-node { background: var(--cxp-soft); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--cl-lilac) 70%, transparent); }
html .cx-page .cx-track > li.is-now > .cx-node::before { background: var(--cxp-deep); }
html .cx-page .cx-track > li.is-end > .cx-node { background: var(--cl-ok-ink); color: var(--cl-surface); }
html .cx-page .cx-track b { margin-top: 10px; font-size: 14px; color: var(--cl-ink); }
html .cx-page .cx-track small { font-size: 13px; color: var(--cl-ink-4); }
html .cx-page .cx-where .cx-block { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--cl-line); }
html .cx-page .cx-block > h2 { margin-bottom: 8px; font-size: 14px; color: var(--cl-ink-3); }
html .cx-page .cx-block > h2 > span { color: var(--cl-ink-4); }
html .cx-page .cx-peer b { font-size: 15px; font-weight: 400; color: var(--cl-ink); }
html .cx-page .cx-peer small { font-size: 13px; color: var(--cl-ink-4); }
html .cx-page .cx-peer__st { font-size: 13px; color: var(--cl-ink-4); }
html .cx-page .cx-peer__st.is-yes { color: var(--cl-ok-ink); }
html .cx-page .cx-invite { height: 40px; margin-top: 14px; font-size: 14.5px; color: var(--cl-ink-2); }
/* more discussions: a quiet list; the report line last */
html .cx-page .cx-more .cx-block > h2 { margin-bottom: 6px; }
html .cx-page .cx-other { padding: 10px; }
html .cx-page .cx-other__t { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 15px; line-height: 1.4; color: var(--cl-ink-2); white-space: normal; text-wrap: pretty; }
html .cx-page .cx-other__m { margin-top: 2px; font-size: 13px; color: var(--cl-ink-4); }
html .cx-page .cx-more .cx-text { gap: 7px; }
html .cx-page .cx-more .cx-text > i { font-size: 14px; }
html .cx-page .cx-report { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--cl-line); }

/* the replies: a heading with its count, a bubble beside each author; the doctor's own tinted lilac */
html .cx-page .cx-talk { margin-top: 48px; animation: cxp-rise .6s var(--cl-spring) .24s both; }
html .cx-page .cx-talk__head { align-items: center; gap: 12px; }
html .cx-page .cx-talk__head h2 { font-family: var(--cl-serif); font-size: 26px; font-weight: 400; line-height: 1.2; letter-spacing: -.01em; color: var(--cl-ink); }
html .cx-page .cx-num {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 9px; border-radius: 999px;
  background: var(--cl-surface-2); font-size: 13.5px; line-height: 1; color: var(--cl-ink-3);
}
html .cx-page .cx-thread { display: grid; gap: 16px; margin-top: 20px; }
html .cx-page .cx-reply { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 0; animation: cxp-rise .55s var(--cl-spring) both; }
html .cx-page .cx-reply + .cx-reply { border-top: 0; }
html .cx-page .cx-reply:nth-child(2) { animation-delay: .05s; }
html .cx-page .cx-reply:nth-child(3) { animation-delay: .1s; }
html .cx-page .cx-reply:nth-child(n+4) { animation-delay: .14s; }
html .cx-page .cx-reply > :first-child { margin-top: 2px; }
html .cx-page .cx-reply__body { padding: 14px 20px 16px; border-radius: 6px 20px 20px 20px; background: var(--cl-surface); box-shadow: inset 0 0 0 1px var(--cl-line-2); }
html .cx-page .cx-reply.is-mine > .cx-reply__body { background: var(--cxp-wash); box-shadow: inset 0 0 0 1px var(--cxp-hair); }
html .cx-page .cx-reply__head { align-items: baseline; gap: 2px 0; min-height: 24px; font-size: 14px; color: var(--cl-ink-4); }
html .cx-page .cx-reply__head b { font-size: 15.5px; font-weight: 400; color: var(--cl-ink); }
html .cx-page .cx-reply__head > span:not(.cx-tools)::before { content: '\00B7'; margin: 0 8px; color: var(--cl-ink-4); }
html .cx-page .cx-reply__body .cx-tags { margin-top: 10px; }
html .cx-page .cx-reply__body .cx-reply__text { margin-top: 8px; font-size: 16.5px; line-height: 1.6; }
html .cx-page .cx-reply__body .cx-tag { background: var(--cl-surface-2); }
html .cx-page .cx-reply__body .cx-tag--yes { background: color-mix(in srgb, var(--cl-ok-ink) 12%, var(--cl-surface)); }
html .cx-page .cx-sub { border-left-color: var(--cl-line-2); }
/* no replies yet: one quiet line in a hairline frame (the lilac stays with the question), and no count of nothing beside the heading */
html .cx-page .cx-thread__none { margin-top: 0; padding: 18px 22px; border: 1px solid var(--cl-line-2); border-radius: 18px; background: var(--cl-surface); font-size: 15px; color: var(--cl-ink-3); }
html .cx-page .cx-talk:has(#consultInputEmpty) .cx-num { display: none; }

/* the reply field: a calm card at the end of the replies, in its place (it no longer floats over the thread); Post is the
   page's one primary action, in the soft lilac */
html .cx-page .cx-foot { position: relative; bottom: auto; margin: 20px 0 0; padding: 0; }
html .cx-page .cx-foot::before { content: none; }
html .cx-page .cx-dock { border: 1px solid var(--cl-line-2); border-radius: 22px; background: var(--cl-surface); box-shadow: var(--cl-shadow-1); }
html .cx-page .cx-dock:focus-within { border-color: color-mix(in srgb, var(--cl-lilac) 70%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cl-lilac) 14%, transparent); }
html .cx-page .cx-dock .cx-field { align-items: flex-end; gap: 12px; padding: 10px 10px 10px 14px; }
html .cx-page .cx-dock .cx-field__me { margin-bottom: 5px; }
html .cx-page .cx-dock .cx-field textarea { min-height: 42px; padding: 10px 2px; font-size: 16px; }
html .cx-page .cx-quick__in { gap: 8px; padding: 14px 16px 2px; }
html .cx-page .cx-quick__in > span { font-size: 13.5px; color: var(--cl-ink-4); }
html .cx-page .cx-closed { margin-top: 20px; }
html .cx-page .cx-note { margin-top: 14px; font-size: 13px; line-height: 1.55; color: var(--cl-ink-4); }

/* the reply field: Post is the page's primary action, in the same soft lilac */
html .cx .cx-send { height: 42px; padding: 0 16px 0 8px; gap: 8px; font-size: 14.5px; }
html .cx .cx-field--sm .cx-send { height: 34px; padding: 0 12px 0 5px; gap: 6px; font-size: 13.5px; }
html .cx .cx-field--sm .cx-send > i { width: 22px; height: 22px; font-size: 12px; }
html .cx .cx-qchip { border-color: var(--cl-line-2); background: var(--cl-surface); color: var(--cl-ink-2); transition: border-color .22s var(--cl-out), background-color .22s var(--cl-out), color .22s var(--cl-out); }
html .cx .cx-qchip[aria-pressed="true"] { border-color: color-mix(in srgb, var(--cl-lilac) 45%, transparent); background: color-mix(in srgb, var(--cl-lilac) 14%, var(--cl-surface)); color: var(--cxp-deep); }

/* wide: the margin is one card in its own column, from the top of the content, and stays in view while the thread is read */
@container cxpage (min-width: 860px) {
  html .cx-page { grid-template-columns: minmax(0, 1fr) 288px; column-gap: 52px; }
  html .cx-page > .cx-side { grid-row: 1 / -1; animation: cxp-rise .6s var(--cl-spring) .16s both; }
  html .cx-page .cx-more { margin-top: 32px; }
}
/* narrow: the card under the question, the actions under it, More discussions at the end */
@container cxpage (max-width: 859.98px) {
  html .cx-page .cx-where { margin-top: 24px; animation: cxp-rise .6s var(--cl-spring) .16s both; }
  html .cx-page .cx-where .cx-block { margin-top: 18px; padding-top: 16px; }
  html .cx-page .cx-people { gap: 8px; }
  html .cx-page .cx-peer { padding: 3px 12px 3px 3px; border: 1px solid var(--cl-line-2); background: var(--cl-surface); }
  html .cx-page .cx-invite { width: auto; }
  html .cx-page .cx-own { margin-top: 20px; }
  html .cx-page .cx-talk { margin-top: 40px; }
  html .cx-page .cx-more { margin-top: 40px; padding-top: 8px; border-top: 1px solid var(--cl-line); }
}

/* 6. Narrow and wide ---------------------------------------------------------------------------------------------------- */
@container cxlist (max-width: 639.98px) {
  html .cx-list .cx-rows { gap: 12px; }
  html .cx-list .cx-rows > li > a.cx-row { padding: 18px 18px 14px; border-radius: 18px; }
  html .cx-list .cx-row .cx-row__title { margin-top: 12px; font-size: 19px; }
  html .cx-list .cx-row .cx-row__q { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; font-size: 14.5px; }
  html .cx-list .cx-row .cx-row__meta { gap: 8px 16px; margin-top: 14px; padding-top: 12px; font-size: 13.5px; }
  html .cx-list .cx-hint { padding: 20px 20px 22px; }
  html .cx .cx-calm { padding: 36px 20px 30px; }
  html .cx .cx-calm h2 { font-size: 23px; }
  /* the steps stand one under the other */
  html .cx-list :is(.cx-hint, .cx-empty) .cx-track { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  html .cx-list :is(.cx-hint, .cx-empty) .cx-track > li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; padding: 0; }
  html .cx-list :is(.cx-hint, .cx-empty) .cx-track > li::after { display: none; }
  html .cx-list :is(.cx-hint, .cx-empty) .cx-track .cx-node { grid-row: 1 / span 2; }
  html .cx-list :is(.cx-hint, .cx-empty) .cx-track b { margin-top: 3px; }
}
@media (max-width: 639.98px) {
  html .cx-list .cx-head { margin-bottom: 24px; }
  html .cx-page .cx-title { margin-top: 14px; }
  /* the name on its own line, the role and the time under it: a wrapped line never starts with a dot */
  html .cx-page .cx-by { align-items: center; margin-top: 14px; }
  html .cx-page .cx-by .h-10.w-10 { width: 36px; height: 36px; font-size: 13px !important; }
  html .cx-page .cx-by b { flex-basis: 100%; }
  html .cx-page .cx-by b + small::before { content: none; }
  html .cx-page .cx-by small { font-size: 14px; }
  html .cx-page .cx-case { margin-top: 20px; }
  html .cx-page .cx-q { padding: 18px 20px 20px; border-radius: 6px 22px 22px 22px; font-size: 19.5px; }
  html .cx-page .cx-card { padding: 18px 18px 16px; border-radius: 18px; }
  html .cx-page .cx-card .cx-ctx dl { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  html .cx-page .cx-card .cx-priv { align-items: flex-start; }
  html .cx-page .cx-card .cx-priv > i { margin-top: 2px; }
  html .cx-page .cx-where { padding: 18px 18px 16px; }
  html .cx-page .cx-talk__head h2 { font-size: 24px; }
  html .cx-page .cx-reply { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  html .cx-page .cx-reply__body { padding: 12px 16px 14px; }
  html .cx-page .cx-reply__body .cx-reply__text { font-size: 16px; }
  html .cx-page .cx-dock .cx-field { padding: 8px 8px 8px 12px; gap: 10px; }
}

/* 7. Still, when asked -------------------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html .cx-list .cx-rows > li, html .cx-list .cx-hint, html .cx .cx-calm, html .cx-page :is(.cx-facts, .cx-title, .cx-by, .cx-case, .cx-side, .cx-where, .cx-own, .cx-talk, .cx-reply) { animation: none !important; }
  html .cx-list .cx-rows > li > a.cx-row, html .cx-head .cx-btn, html .cx .cx-go, html .cx .cx-send, html .cx .cx-soft { transition: none; }
  html .cx-list .cx-rows > li > a.cx-row:hover { translate: none; }
}
/* the page's own phone rule packs the tabs tight (.45rem); with their counts they need their air back */
@media (max-width: 639.98px) {
  html body #consultTabs [role="tab"] { padding-left: 14px !important; padding-right: 14px !important; }
}

/* A discussion, read with ease (18 November 2026, the owner: arrange things so it is more pleasant to read, and the field behind it
   too). The lilac field stands behind the head (clean.css, data-place consultdetail). One rhythm down the column: the head, the
   question with its small caption, the context as open notes along a hairline (no second box under the first), the actions
   closing that part above a hairline, then the replies; each text in a measure that reads comfortably. */
html .cx-page .cx-facts { margin-top: 8px; }
html .cx-page .cx-title { margin-top: 18px; }
html .cx-page .cx-by { margin-top: 18px; }
html .cx-page .cx-case { margin-top: 32px; }
html .cx-page .cx-q { padding: 20px 28px 24px; }
html .cx-page .cx-q::before { content: 'The question'; display: block; margin-bottom: 8px; font-family: var(--cl-sans); font-size: 12.5px; letter-spacing: 0; color: color-mix(in srgb, var(--cl-lilac) 66%, var(--cl-ink)); }
html .cx-page .cx-card { margin-top: 32px; padding: 2px 0 2px 22px; border: 0; border-left: 2px solid var(--cl-line-2); border-radius: 0; background: transparent; }
html .cx-page .cx-card .cx-ctx h2 { font-size: 13px; color: var(--cl-ink-3); }
html .cx-page .cx-card .cx-ctx dl { gap: 18px 32px; margin-top: 12px; }
html .cx-page .cx-card .cx-ctx dt { font-size: 13px; color: var(--cl-ink-4); }
html .cx-page .cx-card .cx-ctx dd { max-width: 62ch; margin-top: 4px; font-size: 16.5px; line-height: 1.7; color: var(--cl-ink); }
html .cx-page .cx-card .cx-priv { margin-top: 18px; padding-top: 0; border-top: 0; font-size: 13px; color: var(--cl-ink-3); }
html .cx-page .cx-own { margin-top: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--cl-line); }
html .cx-page .cx-talk { margin-top: 36px; }
html .cx-page .cx-reply__body { font-size: 16px; line-height: 1.65; }
@media (max-width: 760px) {
  html .cx-page .cx-case { margin-top: 24px; }
  html .cx-page .cx-q { padding: 16px 20px 20px; }
  html .cx-page .cx-card { margin-top: 24px; padding-left: 16px; }
  html .cx-page .cx-own { margin-top: 24px; padding-bottom: 24px; }
  html .cx-page .cx-card .cx-ctx dd { font-size: 16px; }
}
/* the context's own name a step above its captions */
html .cx-page .cx-card .cx-ctx h2 { font-family: var(--cl-serif); font-size: 19px; color: var(--cl-ink); }
html .cx-page .cx-card .cx-ctx dl { margin-top: 14px; }
