/* Shared answer typography and module outlines. Colour is reserved for evidenced meaning. */
.info-module { --info-card-gap: 12px; --info-border: rgba(0, 0, 0, 0.20); --info-divider: rgba(0, 0, 0, 0.14); --info-surface: rgba(0, 0, 0, 0.025); --info-radius: 10px; --focus-ring: var(--info-accent); --info-success: #00692a; --info-warning: #b9480d; --info-critical: #ba2623; --info-accent: #0169cc; --info-chart-secondary: #e25507; --info-chart-tertiary: #8f8f8f; --text-muted-neutral: #5d5d5d; --text-dim-neutral: #737373; color: inherit; overflow-wrap: anywhere; font-family: inherit; font-size: inherit; line-height: inherit; }
[data-theme="dark"] .info-module { --info-border: rgba(255, 255, 255, 0.22); --info-divider: rgba(255, 255, 255, 0.16); --info-surface: rgba(255, 255, 255, 0.035); --info-success: #04b84c; --info-warning: #fb6a22; --info-critical: #ff6764; --info-accent: #339cff; --info-chart-secondary: #fb6a22; --info-chart-tertiary: #afafaf; --text-muted-neutral: #afafaf; --text-dim-neutral: #8f8f8f; }
.info-emphasis { font-weight: 500; }
.info-emphasis-success { color: var(--info-success); }
.info-emphasis-warning { color: var(--info-warning); }
.info-emphasis-critical { color: var(--info-critical); }

/* Layout rhythm: one heading level per section and a single gap between components. */
.info-section { margin: 28px 0; padding: 0; min-width: 0; }
.response-body .info-section h4, .info-section summary { margin: 0 0 14px; font-size: 1em; font-weight: 600; line-height: 1.45; color: var(--heading-text); }
/* Structured widgets sit one step below prose; rich text and code keep their native scale. */
.info-component:not(.info-rich-text-component):not(.info-code-component) { font-size: 0.9375em; }
.info-component + .info-component { margin-top: 20px; }
.info-section-body { padding-top: 6px; }
.info-details summary { cursor: pointer; padding: 6px 0; list-style-position: outside; }
.info-details summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 4px; }
.info-density-concise .info-section { margin: 22px 0; }
.info-density-step_by_step .info-section { margin: 32px 0; }
.info-sr-only, .info-tone-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.info-block-header { margin: 0 0 14px; }
.response-body .info-block-header h5, .response-body .info-timeline h5, .info-checklist legend { margin: 0; padding: 0; font: inherit; font-size: 1em; font-weight: 600; line-height: 1.45; color: var(--heading-text); }
.response-body .info-subtitle { margin: 2px 0 0; color: var(--text-muted-neutral); font-size: calc(14em / 15); line-height: 1.45; }
.info-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Diagrams: one frame connects the sequence; only grouped stages and branching nodes
   need their own surfaces. Labels and descriptions share the answer type scale. */
.info-diagram { margin: 0; padding: 0; border: 0; min-width: 0; }
.response-body .info-flow { list-style: none; margin: 0; padding: 0; min-width: 0; }
.response-body .info-flow-step { margin: 0; padding: 0; min-width: 0; overflow-wrap: break-word; }
.info-flow-marker { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-strong); color: var(--text); flex: 0 0 32px; }
.info-flow-marker .info-icon { width: 17px; height: 17px; }
.info-flow-index { font-size: calc(14em / 15); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.info-flow-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.info-flow-text strong { display: block; font-size: 1em; font-weight: 600; line-height: 1.4; }
.info-flow-icon { display: flex; justify-content: center; color: var(--text); }
.info-flow-icon .info-icon { width: 20px; height: 20px; stroke-width: 1.75; }
.info-flow-inline-icon { display: inline-flex; margin-right: 7px; vertical-align: -3px; color: var(--text); }
.info-flow-inline-icon .info-icon { width: 17px; height: 17px; }
.info-flow-eyebrow { font-size: calc(13em / 15); line-height: 1.4; color: var(--text-muted-neutral); }
.info-flow-description { font-size: calc(14em / 15); line-height: 1.625; color: var(--text-muted-neutral); }
.info-flow-edge-label { font-size: calc(13em / 15); line-height: 1.4; color: var(--text-muted-neutral); }
.info-flow-note { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: inherit; gap: 2px 6px; margin-top: 4px; font-size: calc(13em / 15); line-height: 1.45; color: var(--text-muted-neutral); }
.info-flow-note .info-icon { width: 14px; height: 14px; color: var(--text-dim-neutral); }
.info-flow-link .info-icon { width: 17px; height: 17px; }
.info-flow-link > span { display: none; }
.response-body .info-flow-vertical { padding: 16px; border: 1px solid var(--info-border); border-radius: var(--info-radius); display: flex; flex-direction: column; align-items: center; text-align: center; }
.response-body .info-flow-vertical .info-flow-step { display: flex; flex-direction: column; align-items: center; width: 100%; }
.response-body .info-flow-vertical .info-flow-step:not(:last-child):not(.info-flow-linked) { padding-bottom: 16px; }
.info-flow-vertical .info-flow-node { width: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 12px; }
.info-flow-vertical .info-flow-text { align-items: center; justify-content: center; }
.info-flow-vertical .info-flow-note { justify-content: center; }
.info-flow-vertical .info-flow-link { display: flex; margin: 10px 0; color: var(--text-dim-neutral); }
.info-flow-vertical .info-flow-link .info-icon { width: 16px; height: 16px; }
.info-flow-vertical .info-flow-edge-label { margin: -6px 0 10px; }
.info-flow-group-box { width: 100%; min-width: 0; }
.response-body .info-flow-group-title { margin: 6px 0 12px; font-size: 1em; font-weight: 600; line-height: 1.4; }
.response-body .info-flow-tiles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.info-flow-tiles-1 { grid-template-columns: minmax(0, 1fr) !important; }
.info-flow-tiles-3, .info-flow-tiles-5, .info-flow-tiles-6 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.response-body .info-flow-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; padding: 14px 12px; border: 1px solid var(--info-border); border-radius: var(--info-radius); background: var(--info-surface); min-width: 0; }
.info-flow-tile .info-flow-text { align-items: center; max-width: 100%; }
/* Branching graphs: quiet boxes, each listing where it leads. */
.response-body .info-flow-free { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.info-flow-free .info-flow-node { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--info-border); border-radius: var(--info-radius); }
.response-body .info-flow-out { list-style: none; display: grid; gap: 4px; margin: auto 0 0; padding: 10px 0 0; border-top: 1px solid var(--info-divider); font-size: calc(13em / 15); line-height: 1.45; }
.response-body .info-flow-out li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 0; padding: 0; }
.info-flow-out .info-icon { width: 14px; height: 14px; color: var(--text-dim-neutral); }
.info-flow-free .info-flow-text strong { color: var(--text); }
.response-body .info-flow-horizontal { padding: 16px; border: 1px solid var(--info-border); border-radius: var(--info-radius); --info-flow-gap: 28px; display: grid; gap: var(--info-flow-gap); align-items: stretch; }
.response-body .info-flow-horizontal.info-flow-labelled { --info-flow-gap: 68px; }
.info-flow-columns-1 { grid-template-columns: minmax(0, 1fr); }
.info-flow-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-flow-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-flow-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.response-body .info-flow-horizontal .info-flow-step { position: relative; display: flex; }
.info-flow-horizontal .info-flow-node { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; text-align: center; min-width: 0; }
.info-flow-horizontal .info-flow-text { align-items: center; }
.info-flow-horizontal .info-flow-link { position: absolute; top: 50%; right: calc(-1 * var(--info-flow-gap)); width: var(--info-flow-gap); transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-dim-neutral); text-align: center; font-size: 11px; line-height: 1.3; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.info-flow-horizontal .info-flow-link > span { display: block; }
@media (min-width: 601px) { .info-flow-horizontal .info-flow-edge-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
.info-relationship-label { color: var(--text-muted-neutral); }
.info-relationship-label::before { content: '· '; }

/* Tables: a clear outer boundary, quiet row separators and stable column widths. */
.info-table-container { max-width: 100%; padding: 12px 16px; border: 1px solid var(--info-border); border-radius: var(--info-radius); }
.response-body .info-table { width: 100%; min-width: 0; border-collapse: collapse; table-layout: fixed; margin: 0; font-size: inherit; line-height: inherit; }
.response-body .info-table caption { text-align: left; color: var(--text-muted-neutral); padding: 0 0 10px; font-size: calc(13em / 15); line-height: 1.45; }
.response-body .info-table th, .response-body .info-table td { padding: 11px 12px 11px 0; border: 0; border-bottom: 1px solid var(--info-divider); vertical-align: top; overflow-wrap: anywhere; word-break: normal; }
.response-body .info-table th { font-weight: 600; background: transparent; border-bottom-color: var(--info-border); }
.response-body .info-table tr:last-child td { border-bottom: 0; }
.response-body .info-table th:last-child, .response-body .info-table td:last-child { padding-right: 0; }
.response-body .info-table .info-align-start { text-align: left; }
.response-body .info-table .info-align-center { text-align: center; }
.response-body .info-table .info-align-end { text-align: right; font-variant-numeric: tabular-nums; }
.info-cell-indicator { display: inline-flex; vertical-align: middle; }
.info-cell-indicator .info-icon { width: 17px; height: 17px; color: inherit; }
/* A brief yes/no/partial answer: quiet mark, neutral word. */
.info-cell-status { display: inline-flex; align-items: flex-start; gap: 8px; }
.info-cell-status .info-icon { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 3px; stroke-width: 2.25; }
.info-cell-status > span { color: var(--assistant-text, var(--text)); }
.info-icon-success, .info-indicator-success { color: var(--info-success); }
.info-icon-warning, .info-indicator-warning { color: var(--info-warning); }
.info-icon-info { color: var(--info-accent); }
.info-indicator-critical { color: var(--info-critical); }

/* Callouts: shared outlines and a subtle surface; the icon carries the tone. */
.info-callout { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--info-surface); border: 1px solid var(--info-border); border-radius: var(--info-radius); margin: 0; color: inherit; }
.info-callout-icon { display: flex; flex: 0 0 20px; margin-top: 3px; color: var(--text-muted-neutral); }
.info-callout-icon .info-icon { width: 20px; height: 20px; }
.info-callout-info .info-callout-icon { color: var(--info-accent); }
.info-callout-warning .info-callout-icon { color: var(--info-warning); }
.info-callout-success .info-callout-icon { color: var(--info-success); }
.info-callout-content { min-width: 0; flex: 1; font-size: inherit; line-height: inherit; }
.response-body .info-callout-content > strong { display: block; margin-bottom: 2px; font-size: 1em; font-weight: 600; line-height: 1.5; }
.response-body .info-callout-content p { margin: 0 0 8px; }
.response-body .info-callout-content p:last-child { margin-bottom: 0; }
/* Adjacent notes read as one grouped stack instead of a column of boxes. */
.info-callout-component + .info-callout-component { margin-top: -1px; }
.info-callout-component:has(+ .info-callout-component) .info-callout { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.info-callout-component + .info-callout-component .info-callout { border-top-left-radius: 0; border-top-right-radius: 0; }

/* Timelines and steps: numbered markers on one connecting line. */
.response-body .info-timeline ol { list-style: none; padding: 0; margin: 0; }
.response-body .info-timeline h5 { margin-bottom: 14px; }
.response-body .info-milestone { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; margin: 0; padding: 0 0 20px; position: relative; overflow-wrap: break-word; }
.response-body .info-milestone:last-child { padding-bottom: 0; }
.info-milestone:not(:last-child)::before { content: ''; position: absolute; top: 34px; bottom: 6px; left: 13.5px; width: 1px; background: var(--info-border); }
.info-milestone-marker { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--info-border); color: var(--text-muted-neutral); font-size: calc(13em / 15); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.info-milestone-marker .info-icon { width: 15px; height: 15px; }
.info-milestone-current .info-milestone-marker { background: var(--text); border-color: var(--text); color: var(--bg-0); }
.info-milestone-complete .info-milestone-marker { border-color: transparent; background: color-mix(in srgb, var(--info-success) 14%, transparent); color: var(--info-success); }
.info-milestone-text { padding-top: 2px; min-width: 0; }
.info-milestone-text strong { font-weight: 600; }
.info-milestone-date { margin-left: 8px; color: var(--text-dim-neutral); font-size: calc(13em / 15); white-space: nowrap; }
.response-body .info-milestone p { margin: 2px 0 0; color: var(--text-muted-neutral); font-size: calc(14em / 15); line-height: 1.625; }

/* Status cards: value first; colour only as a small explicit indicator. */
.info-status-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(168px, 100%), 1fr)); gap: var(--info-card-gap); margin: 0; }
.info-status-card { padding: 16px 18px; border: 1px solid var(--info-border); border-radius: var(--info-radius); min-width: 0; overflow-wrap: break-word; }
.info-status-card dt { display: flex; align-items: center; gap: 7px; color: var(--text-muted-neutral); font-size: calc(13em / 15); line-height: 1.4; }
.info-status-icon { display: inline-flex; color: var(--text); }
.info-status-icon .info-icon { width: 16px; height: 16px; }
.info-status-card dd { margin: 0; }
.info-status-value { display: flex; align-items: center; gap: 8px; margin-top: 6px !important; font-size: 1.2em; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
/* Long values such as addresses or identifiers step down a size and wrap inside the card. */
.info-status-value-long { font-size: 1em; line-height: 1.35; }
.info-status-text { min-width: 0; overflow-wrap: anywhere; }
.info-status-indicator { display: inline-flex; }
.info-status-indicator .info-icon { width: 18px; height: 18px; }
/* Values stay in the text colour; an evidenced status adds only a small coloured indicator. */
.info-status-success .info-status-indicator { color: var(--info-success); }
.info-status-warning .info-status-indicator { color: var(--info-warning); }
.info-status-critical .info-status-indicator { color: var(--info-critical); }
.info-status-detail { margin-top: 6px !important; font-size: calc(14em / 15); line-height: 1.625; color: var(--text-muted-neutral); }

/* Checklists: plain rows; a ticked item quietly recedes. */
.info-checklist { border: 0; padding: 0; min-width: 0; margin: 0; }
.info-checklist legend:not(.info-sr-only) { margin-bottom: 6px; }
.info-check-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; border-bottom: 1px solid var(--info-divider); overflow-wrap: break-word; }
.info-check-item:last-child { border-bottom: 0; }
.info-check-item input { width: 18px; height: 18px; flex: 0 0 18px; margin: 3px 0 0; accent-color: var(--text); cursor: pointer; }
.info-check-item input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.info-check-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.info-check-label { transition: color 0.15s ease; }
.info-check-detail { font-size: calc(14em / 15); line-height: 1.625; color: var(--text-muted-neutral); }
.info-check-item:has(input:checked) .info-check-label { color: var(--text-muted-neutral); text-decoration: line-through; text-decoration-color: var(--info-border); }

/* Icon lists */
.response-body .info-icon-list { list-style: none; padding: 0; margin: 0; }
.response-body .info-icon-row { display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--info-divider); overflow-wrap: break-word; }
.response-body .info-icon-row:first-child { padding-top: 2px; }
.response-body .info-icon-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-icon-mark { display: flex; flex: 0 0 22px; margin-top: 2px; color: var(--text); }
.info-icon-mark .info-icon { width: 22px; height: 22px; }
.info-icon-row > div { min-width: 0; }
.response-body .info-icon-row strong { font-size: inherit; font-weight: 600; color: var(--text); }
.response-body .info-icon-row p { margin: 2px 0 0; font-size: calc(14em / 15); line-height: 1.625; color: var(--text-muted-neutral); }
.info-tone-success .info-icon-mark { color: var(--info-success); }
.info-tone-warning .info-icon-mark { color: var(--info-warning); }
.info-tone-critical .info-icon-mark { color: var(--info-critical); }
.info-tone-info .info-icon-mark { color: var(--info-accent); }

/* Charts */
.info-chart { margin: 0; padding: 16px; min-width: 0; border: 1px solid var(--info-border); border-radius: var(--info-radius); }
.info-chart-header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.info-chart-unit, .response-body .info-chart-source { color: var(--text-muted-neutral); font-size: calc(13em / 15); }
.info-chart-plot { display: block; width: 100%; height: auto; overflow: visible; color: var(--text); }
.info-chart-plot text { font-size: 12px; font-family: inherit; fill: var(--text-muted-neutral); }
.info-chart-plot .info-chart-value { font-size: 11.5px; font-weight: 600; fill: var(--text); }
.info-chart-grid { stroke: var(--info-divider); stroke-width: 1; }
.info-chart-baseline { stroke: var(--info-border); }
.info-chart-plot rect, .info-chart-plot circle { cursor: default; }
.info-chart-series-0 { color: var(--info-accent); }
.info-chart-series-1 { color: var(--info-chart-secondary); }
.info-chart-series-2 { color: var(--info-chart-tertiary); }
.response-body .info-chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 8px 0 0; font-size: calc(13em / 15); color: var(--text-muted-neutral); }
.response-body .info-chart-legend li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.info-chart-key { display: inline-block; flex: 0 0 auto; }
.info-chart-key-bar { width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
.info-chart-key-line { width: 18px; height: 0; border-top: 2.5px solid currentColor; }
.info-chart-key-line.info-chart-series-1 { border-top-style: dashed; }
.info-chart-key-line.info-chart-series-2 { border-top-style: dotted; }
.info-chart-footer { margin-top: 10px; }
.response-body .info-chart-source { margin: 0; line-height: 1.45; }
.info-chart-data summary { display: inline-flex; margin-top: 4px; padding: 2px 0; color: var(--text-muted-neutral); font-size: calc(13em / 15); cursor: pointer; }
.info-chart-data summary:hover { color: var(--text); }
.info-chart-data summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
.info-chart-data[open] summary { margin-bottom: 10px; }
.info-chart-data .info-table caption { padding-bottom: 6px; }
.info-chart-data .info-table-container { padding: 0; border: 0; border-radius: 0; }

.info-stream-status { display: flex; align-items: center; gap: 8px; margin: 12px 0; color: var(--text-muted-neutral); font-size: calc(13em / 15); }
.info-stream-status > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: info-working 1.2s ease-in-out infinite; }
@keyframes info-working { 50% { opacity: .35; } }

/* Shared text motion applies to prose and every module, independently of layout. */
.response-body [data-answer-text] { white-space: inherit; }
.response-body .answer-word { animation: answer-word-arrive 620ms cubic-bezier(.2,.65,.25,1) var(--answer-word-delay, 0ms) both; }
@keyframes answer-word-arrive { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 600px) {
  .response-body .info-flow-tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8em), 1fr)) !important; }
  .response-body .info-flow-vertical, .response-body .info-flow-horizontal { padding: 12px; }
  .info-flow-vertical .info-flow-node { padding: 8px 4px; }
  .info-table-container, .info-chart { padding: 12px; }
  .info-diagram { padding: 0; }
  .response-body .info-flow-horizontal { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .response-body .info-flow-horizontal .info-flow-step { flex-direction: column; align-items: center; }
  .response-body .info-flow-horizontal .info-flow-step:not(:last-child):not(.info-flow-linked) { padding-bottom: 16px; }
  .info-flow-horizontal .info-flow-node { width: 100%; box-sizing: border-box; }
  .info-flow-horizontal .info-flow-link { position: static; width: auto; transform: rotate(90deg); margin: 12px 0; }
  .info-flow-horizontal .info-flow-link > span { display: none; }
  .info-flow-horizontal .info-flow-edge-label { margin: -6px 0 12px; text-align: center; }
  .response-body .info-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .response-body .info-table, .response-body .info-table tbody, .response-body .info-table tr, .response-body .info-table td { display: block; width: auto; }
  .response-body .info-table colgroup { display: none; }
  .response-body .info-table caption { display: block; width: auto; }
  .response-body .info-table tr { border-bottom: 1px solid var(--info-divider); padding: 8px 0; }
  .response-body .info-table tr:last-child { border-bottom: 0; }
  .response-body .info-table td { display: grid; grid-template-columns: minmax(76px, 32%) minmax(0, 1fr); gap: 12px; text-align: left; border: 0; padding: 5px 0; }
  .response-body .info-table td[class*="info-align-"] { text-align: left; }
  .info-table td::before { content: attr(data-label); font-weight: 600; color: var(--text-muted-neutral); font-size: calc(13em / 15); line-height: 1.5; }
  .info-chart-plot text { font-size: 20px; }
  .info-chart-plot .info-chart-value { font-size: 19px; }
  .info-chart-plot.info-chart-dense .info-chart-value { display: none; }
  .response-body .info-chart .info-table { display: table; width: 100%; }
  .response-body .info-chart .info-table caption { display: table-caption; }
  .response-body .info-chart .info-table thead { display: table-header-group; position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .response-body .info-chart .info-table tbody { display: table-row-group; }
  .response-body .info-chart .info-table tr { display: table-row; }
  .response-body .info-chart .info-table td, .response-body .info-chart .info-table th { display: table-cell; padding: 8px 8px 8px 0; font-size: calc(13em / 15); border-bottom: 1px solid var(--info-divider); }
  .info-chart .info-table td::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  .info-stream-status > span { animation: none; }
  .response-body .answer-word { animation: none; }
  .info-check-label { transition: none; }
}

/* Keep module details readable and consistent regardless of the surrounding chat cascade. */
body.chat-active .response-body .info-module :is(.info-subtitle, .info-milestone p, .info-icon-row p, .info-chart-source) { color: var(--text-muted-neutral); }
.response-body .info-module .code-block { margin: 0; border-color: var(--info-border); border-radius: var(--info-radius); box-shadow: none; }
.response-body .info-module pre code { font-size: 0.875em; }

/* Completed reviews: centered metrics and an exact severity distribution. */
.response-body { --review-critical: #e03131; --review-high: #f06418; --review-medium: #e5a900; --review-low: #1c7ed6; }
.review-overview { margin: 0 0 10px; padding: 18px 20px 14px; border: 1px solid var(--info-border); border-radius: 12px; background: var(--info-surface); text-align: center; }
.response-body .review-overview-heading h3 { margin: 0 0 14px; font-size: 1em; font-weight: 600; }
.review-overview-count { font-size: 0.875em; font-weight: 400; color: var(--text-muted-neutral); white-space: nowrap; }
.review-overview .info-status-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.review-overview .info-status-card { padding: 0 14px; border: 0; border-left: 1px solid var(--info-divider); border-radius: 0; }
.review-overview .info-status-card:first-child { border-left: 0; }
.review-overview .info-status-card dt { justify-content: center; }
.review-overview .info-status-value { justify-content: center; font-size: 1.75em; font-weight: 600; line-height: 1.2; margin-top: 7px !important; }
.review-distribution { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--info-divider); }
.review-severity-bar { display: flex; gap: 4px; height: 8px; overflow: hidden; border-radius: 5px; background: var(--info-surface); }
.review-segment { flex-basis: 0; min-width: 0; }
.review-severity-critical { background: var(--review-critical); }
.review-severity-high { background: var(--review-high); }
.review-severity-medium { background: var(--review-medium); }
.review-severity-low { background: var(--review-low); }
.response-body .review-empty-note { margin: 10px 0 0; font-size: 0.8125em; color: var(--text-muted-neutral); }
@media (max-width: 620px) {
  .review-overview { padding: 16px; }
  .review-overview .info-status-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .review-overview .info-status-card:nth-child(odd) { border-left: 0; }
}

/* User-selected severity palette, shared by counts, findings and the ribbon in both themes. */
.review-finding-severity { font-weight: 500; }
.review-finding-critical { color: var(--review-critical); }
.review-finding-high { color: var(--review-high); }
.review-finding-medium { color: var(--review-medium); }
.review-finding-low { color: var(--review-low); }

.security-review-status-copy { display: grid; }
.security-review-status-copy > div { grid-area: 1 / 1; }
.review-status-inactive { visibility: hidden; }
.security-review-preface-check { width: 19px; flex: 0 0 auto; color: var(--review-preface-accent); }

/* Security findings preserve the framework mapping while prioritising evidence and action. */
.response-body .review-findings-table th:nth-child(1) { width: 22%; }
.response-body .review-findings-table th:nth-child(2) { width: 36%; }
.response-body .review-findings-table th:nth-child(3) { width: 12%; }
.response-body .review-findings-table th:nth-child(4) { width: 30%; }
.response-body .review-findings-table td { padding-top: 18px; padding-bottom: 18px; }
.review-findings-table td:nth-child(2) > strong:first-child,
.review-findings-table td:nth-child(2) > .info-cell > strong:first-child { display: block; margin-bottom: 7px; }
@media (max-width: 620px) {
  .response-body .info-table.review-findings-table td { padding-top: 7px; padding-bottom: 7px; }
  .response-body .info-table.review-findings-table tr { padding: 14px 0; }
}
