/* HPC-06A consultations. Colours only from tokens.css. */
.cx-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.cx-row h2 { margin: 0; font-size: var(--fs-18); }
.cx-steps { margin-top: var(--s-4); }
.cx-cats { max-height: none; }
.cx-code { margin: var(--s-2) 0; padding-left: var(--s-5); display: grid; gap: var(--s-1); font-size: var(--fs-14); }
.cx-q { margin-top: var(--s-3); display: grid; gap: var(--s-1); border: var(--bw) solid var(--line); }
.cx-q legend { padding: 0 var(--s-1); font-size: var(--fs-16); }
.cx-acts { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-2); }
.cx-inline { list-style: none; margin: var(--s-2) 0; padding: 0; display: flex; gap: var(--s-2) var(--s-4); flex-wrap: wrap; }
.cx-inline a[aria-current] { font-weight: 700; }
.cx-choice { display: grid; gap: 2px; border-top: var(--bw) solid var(--line); padding-top: var(--s-2); margin-top: var(--s-2); }

/* the listing */
.cx-grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: var(--s-4); }
.cx-card { display: grid; gap: var(--s-2); align-content: start; }
.cx-card h3 { margin: 0; font-size: var(--fs-18); display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.cx-card h3 a { color: var(--ink); text-decoration: none; }
.cx-card h3 a:hover, .cx-card h3 a:focus-visible { text-decoration: underline; }
.cx-meta { display: flex; gap: var(--s-2) var(--s-3); flex-wrap: wrap; color: var(--ink-2); font-size: var(--fs-14); }
.cx-online { display: inline-flex; align-items: center; gap: 4px; color: var(--leaf-ink); font-weight: 700; font-size: var(--fs-13); }
.cx-online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.cx-offline { color: var(--ink-2); font-size: var(--fs-13); }
.cx-pledge { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-13); font-weight: 700; color: var(--sky-ink); background: var(--sky-tint);
  border-radius: var(--r-pill); padding: 2px 10px; }
.cx-price { font-weight: 700; }
.cx-filters { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: end; margin-top: var(--s-3); }
.cx-filters .field { margin: 0; }

/* the wallet and money tables */
.cx-balance { font-size: var(--fs-36); font-weight: 700; line-height: var(--lh-tight); margin: var(--s-1) 0; }
.cx-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-table-wrap { overflow-x: auto; }

/* the session room */
.cx-room { display: grid; gap: var(--s-3); padding: var(--s-4) 0 var(--s-6); }
@media (min-width: 960px) { .cx-room { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.cx-meter { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.cx-meter b { font-size: var(--fs-22); }
.cx-log { display: grid; gap: var(--s-2); min-height: 280px; max-height: 60vh; overflow-y: auto; padding: var(--s-3); border: var(--bw) solid var(--line);
  border-radius: var(--r-card); background: var(--surface); }
.cx-msg { max-width: 80%; padding: var(--s-2) var(--s-3); border-radius: var(--r-card); background: var(--bg); border: var(--bw) solid var(--line); }
.cx-msg.me { justify-self: end; background: var(--sky-tint); border-color: var(--sky-tint); }
.cx-msg.sys { justify-self: center; max-width: 100%; background: transparent; border: 0; color: var(--ink-2); font-size: var(--fs-13); text-align: center; }
.cx-msg .who { font-size: var(--fs-13); color: var(--ink-2); }
.cx-msg img { max-width: 100%; border-radius: var(--r-ctl); display: block; }
.cx-compose { display: grid; gap: var(--s-2); margin-top: var(--s-2); }
.cx-compose textarea { min-height: 72px; }
.cx-help { border: 2px solid var(--rose); }
.cx-help h2 { color: var(--rose-ink); }
.cx-help a { text-decoration: underline; }
.cx-warn { border-left: 4px solid var(--sun); }
.cx-chart { width: 100%; max-width: 320px; aspect-ratio: 1; }
.cx-chart text { font-size: 9px; fill: var(--ink); }
.cx-stars { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.cx-stars label { display: inline-flex; align-items: center; gap: 4px; }
.cx-help-tag { color: var(--rose-ink); }
/* in-text links are underlined, not marked by colour alone (D122) */
.wrap-narrow.pf-wrap a:not(.btn):not(.tag), .cx-table-wrap a, #after a, .cx-log a, .cx-card p a { text-decoration: underline; }
.cx-table-wrap:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 2px; }

/* HPC-09: review pages and topic pages (modules/reach) */
.cx-list { padding-left: 1.2em; }
.cx-list li { margin: 4px 0; }
.cx-review { border-top: 1px solid var(--line); padding: 10px 0; }
.cx-radio { margin-right: 14px; display: inline-flex; gap: 4px; align-items: center; }
.cx-form .field { margin-bottom: 12px; }
.pf-wrap { padding-top: var(--s-5); padding-bottom: var(--s-8); }  /* as profiles.css, without touching the side gutter */
.cx-list a, .cx-review a { text-decoration: underline; }  /* axe link-in-text-block: links in running text are underlined */
