/* Direction: claude.ai's pattern (sidebar, centered composer-anchored column, unbubbled
   assistant text) — not a clone, and grounded in this app's own subject rather than a
   generic warm-AI-chat look. The signature is the ticket card: it's styled like a real
   factory-floor work-order traveler slip (dashed tear line, stamped monospace serial,
   ink-stamp status banner), because that's the one thing this chat does that a plain
   assistant doesn't — draft a real, identity-attributed action. Everything else stays quiet
   so that card is what stands out. */

:root {
  color-scheme: light;
  --bg: #f5f2ea;
  --surface: #ffffff;
  --surface-sunken: #ece6d7;
  --text: #2c2820;
  --muted: #85806f;
  --border: #e3ddcc;
  --accent: #c2683f;
  --accent-hover: #a8552f;
  --accent-soft: #f4e3d3;
  --accent-ink: #ffffff;

  --status-good: #4b7a3e;
  --status-good-soft: #e6efdf;
  --status-warning: #b8791f;
  --status-warning-soft: #f6e9d4;
  --status-critical: #a83b2e;
  --status-critical-soft: #f5e0dc;
  --usage-bar-neutral: #a39c86;

  --font-display: "Source Serif 4", Georgia, "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow-sm: 0 1px 2px rgba(44, 40, 32, 0.05);
  --shadow-md: 0 6px 20px -8px rgba(44, 40, 32, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

button, input {
  font-family: inherit;
}

/* ---------- layout ---------- */

.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 18px;
  background: var(--surface-sunken);
  border-right: 1px solid var(--border);
  min-height: 0;
}

.main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ---------- sidebar ---------- */

.sidebar__brand {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
}

.sidebar__mark {
  grid-row: 1 / 3;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(155deg, var(--accent), var(--accent-hover));
  box-shadow: var(--shadow-sm);
}

.sidebar__brand h1 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

.sidebar__tagline {
  grid-column: 2;
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}

.new-chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  margin-top: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.new-chat-btn__icon {
  font-size: 15px;
  color: var(--accent);
  line-height: 1;
}

.new-chat-btn:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  box-shadow: var(--shadow-sm);
}

.sidebar__link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 2px 2px;
}

.sidebar__link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.sidebar__spacer {
  flex: 1;
}

.sidebar__usage {
  font-size: 12px;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.sidebar__usage-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.sidebar__usage-row + .sidebar__usage-row {
  margin-top: 10px;
}

.sidebar__usage-row-header {
  /* Was a flex row with the label and detail side by side (justify-content: space-between) —
     fine for a short "$1.00 left" but a principal with BOTH a token and a cost limit set
     (e.g. the junior role) produces a longer detail string ("2,495 / 2,000 tokens · $0.00 /
     $3.00") that has nowhere to go in a ~200px sidebar and overflowed past its edge. Stacking
     label/detail vertically instead gives the detail the full row width to wrap within.
     Should never overflow the sidebar its edge here — the width is fully constrained by the
     sidebar's own layout, not this row. */
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}

.sidebar__usage-label {
  color: var(--text);
  font-weight: 500;
}

.sidebar__usage-detail {
  display: block;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: normal;
  overflow-wrap: break-word;
}

/* Same track/fill split as the dashboard's own .meter — track is a fixed neutral so state
   reads entirely from the fill's color/width, not the track. */
.usage-bar__track {
  height: 8px;
  border-radius: 4px;
  background: var(--surface-sunken);
  overflow: hidden;
}

.usage-bar__fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease, background-color 0.4s ease;
}

/* Unlimited: chat.js already sets this fill's color to --usage-bar-neutral directly (never
   accent/warning/critical, since there's no proportion to represent) — the class only adds
   the reduced opacity, so a full neutral "Unlimited" bar reads as informational rather than
   looking like a real 100%-used critical bar. */
.usage-bar__fill--unlimited {
  opacity: 0.55;
}

.sidebar__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.sidebar__auth {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.auth-action {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.auth-action:hover {
  background: var(--accent-soft);
}

/* ---------- message area ---------- */

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px 12px;
}

.messages > * {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.messages > * + * {
  margin-top: 22px;
}

.empty-state {
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.empty-state__eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.empty-state__lede {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.empty-state__hint {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 52ch;
}

.suggested-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

/* Equal-specificity author rule above would otherwise silently beat the UA stylesheet's
   `[hidden] { display: none }`, showing the chips even while signed out. */
.suggested-prompts[hidden] {
  display: none;
}

.suggested-prompt {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.suggested-prompt:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.suggested-prompt:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.message {
  display: flex;
  flex-direction: column;
}

.message--user {
  align-items: flex-end;
}

.message--assistant {
  align-items: flex-start;
}

.message--user .bubble {
  background: var(--accent-soft);
  border-radius: 18px;
  border-bottom-right-radius: 4px;
  padding: 11px 16px;
  max-width: 85%;
}

/* Assistant replies read as plain prose, not a bubble — matches claude.ai's pattern and
   keeps the ticket card (below) the only thing in the thread with a hard edge. */
.message--assistant .bubble {
  padding: 0;
  max-width: 100%;
}

.bubble {
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 14.5px;
  letter-spacing: -0.001em;
}

/* A blocked-action notice (e.g. a non-admin clicking "Open dashboard") — deliberately NOT
   plain prose like a normal assistant reply above; this needs to read as an error at a
   glance. Same color language as .ticket-card__status.status-rejected/.explain-panel--failed
   elsewhere in this file, not a new convention. */
.chat-notice {
  margin: 6px 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 85%;
}

.chat-notice--error {
  border: 1px solid var(--status-critical);
  background: var(--status-critical-soft);
  color: var(--status-critical);
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing-bounce 1.1s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 4px;
}

.badge--fallback {
  background: var(--status-warning-soft);
  color: var(--status-warning);
}

/* ---------- ticket card: the signature — a work-order traveler slip, not a chat bubble ---------- */

.ticket-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(43, 38, 32, 0.06), 0 6px 16px -8px rgba(43, 38, 32, 0.12);
  overflow: hidden;
}

.ticket-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px 12px;
  border-bottom: 1px dashed var(--border);
}

.ticket-card__gateway {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
}

.ticket-card__type {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-transform: capitalize;
}

.ticket-card__id {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.ticket-card__identity {
  padding: 10px 18px 0;
  font-size: 12px;
  color: var(--muted);
}

.ticket-card__identity strong {
  color: var(--text);
}

.ticket-card__payload {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 12px 18px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 4px;
  font-size: 13px;
}

.ticket-card__payload dt {
  color: var(--muted);
  font-weight: 600;
}

.ticket-card__payload dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.ticket-card__status {
  margin: 0 18px 14px;
  padding: 9px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ticket-card__status.status-pending {
  background: var(--status-warning-soft);
  color: var(--status-warning);
}

.ticket-card__status.status-approved {
  background: var(--status-good-soft);
  color: var(--status-good);
}

.ticket-card__status.status-rejected {
  background: var(--status-critical-soft);
  color: var(--status-critical);
}

.ticket-card__meta {
  padding: 0 18px 14px;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-top: -6px;
}

/* ---------- gateway confirmation ---------- */

.gateway-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--status-good-soft);
  border: 1px solid var(--status-good);
  border-radius: 6px;
  padding: 12px 16px;
  max-width: 85%;
}

.gateway-confirmation__icon {
  color: var(--status-good);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}

.gateway-confirmation__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--status-good);
  margin-bottom: 3px;
}

.gateway-confirmation__text {
  font-size: 13.5px;
  line-height: 1.5;
}

/* ---------- limit-admin table/card (role/user token/cost limits) ---------- */
/* Clean grid, hairline row dividers, no ASCII-art borders — the same quiet, claude.ai-style
   prose treatment as the rest of the assistant column, just with real cells instead of a
   monospace-formatted string. */

.limit-table-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  overflow-x: auto;
}

.limit-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 13px;
  white-space: nowrap;
}

.limit-table:not(.limit-table--compact) tbody td:last-child {
  white-space: normal;
  min-width: 140px;
}

.limit-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
}

.limit-table tbody td {
  padding: 9px 16px;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.limit-table tbody tr:first-child td {
  border-top: none;
}

.limit-table__name {
  font-weight: 600;
}

.limit-table--compact thead {
  display: none;
}

.limit-table--compact td:first-child {
  color: var(--muted);
  font-weight: 500;
}

.limit-table--compact td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.limit-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  max-width: 420px;
}

.limit-card__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.limit-card__badge {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 8px;
  vertical-align: middle;
}

.limit-card .limit-table--compact {
  border: none;
}

.limit-card .limit-table--compact td {
  padding: 5px 0;
  border-top: 1px solid var(--border);
}

.limit-card .limit-table--compact tr:first-child td {
  border-top: none;
}

/* Usage-by-window table (Today/This month/All-time × Cost/Tokens) embedded in a limit/
   full-status card — lighter and denser than a standalone table, since it's nested inside a
   card that already has its own border/shadow. */
.limit-card__usage-table {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.limit-card__usage-table .limit-table-wrap {
  box-shadow: none;
}

.limit-card__usage-table .limit-table thead th,
.limit-card__usage-table .limit-table tbody td {
  padding: 6px 12px;
  font-size: 12px;
}

.limit-card__note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--status-warning);
}

/* Full-status card (limit_admin's full_status query) has two stacked tables instead of one —
   wider than the plain limit card so neither feels cramped. */
.limit-card--full {
  max-width: 480px;
}

.limit-card--full .limit-table--compact + .limit-table--compact {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

/* ---------- key reveal (limit_admin's rotate_key/issue_key one-time secret) ---------- */
/* Warning-toned, not the neutral limit-card treatment above — this holds a live credential
   shown exactly once, so it needs to visually stand apart from an ordinary reply. */

.key-reveal {
  border: 1px solid var(--status-warning);
  background: var(--status-warning-soft);
  border-radius: 8px;
  padding: 12px 16px;
  max-width: 480px;
}

.key-reveal__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--status-warning);
  margin-bottom: 8px;
}

.key-reveal__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.key-reveal__value {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px;
  overflow-x: auto;
  white-space: nowrap;
}

.key-reveal__copy {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--status-warning);
  background: var(--surface);
  color: var(--status-warning);
  cursor: pointer;
}

.key-reveal__copy:hover {
  background: var(--status-warning-soft);
}

/* ---------- composer ---------- */

.composer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px 12px;
  margin: 0 auto 22px;
  max-width: 680px;
  width: calc(100% - 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow-md);
  transition: border-color 0.15s ease;
}

.composer:focus-within {
  border-color: var(--accent);
}

.composer textarea {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.5;
  resize: none;
  max-height: 160px;
  overflow-y: auto;
}

.composer textarea:focus {
  outline: none;
}

.composer textarea:disabled {
  opacity: 0.6;
}

.composer__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 6px;
}

.composer button {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.composer button:hover:not(:disabled) {
  background: var(--accent-hover);
}

.composer button:active:not(:disabled) {
  transform: scale(0.94);
}

.composer button:focus-visible,
.new-chat-btn:focus-visible,
.auth-action:focus-visible,
.sidebar__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.composer button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: 100vh;
  }

  .sidebar {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    gap: 10px;
  }

  .sidebar__brand h1 {
    font-size: 17px;
  }

  .sidebar__tagline,
  .sidebar__note {
    display: none;
  }

  .sidebar__spacer {
    flex: 1 0 auto;
    min-width: 0;
  }

  .sidebar__auth {
    border-top: none;
    padding-top: 0;
  }

  .empty-state {
    min-height: 40vh;
  }

  .empty-state__lede {
    font-size: 22px;
  }

  .composer {
    width: calc(100% - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- "why this model?" explain panel ----------
   Styled as an audit slip rather than a chat element: the facts sit in a monospace
   two-column ledger (the receipts), with the model's plain-language retelling set in the
   display serif underneath (the narration). Keeping them visually distinct is the point —
   an audience should be able to see that the prose is describing the numbers above it,
   not standing in for them. */

/* Same pill-chip language as .suggested-prompt / .new-chat-btn — border + surface fill at
   rest, accent border + accent-soft fill on hover — so this reads as the app's own button,
   not a bolted-on control. */
.explain-btn {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.explain-btn:hover:not(:disabled) {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.explain-btn:disabled {
  cursor: default;
  opacity: 0.6;
}

.explain-panel {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* The panel is appended to .ticket-card itself, which has no inner padding of its own —
   inset it so it lines up with the card's 18px gutter instead of running edge to edge. */
.ticket-card > .explain-panel {
  margin: 0 18px 16px;
}

/* Same font as the model-name meta line under each answer (.meta), so the explanation reads
   as part of that same "receipt" language rather than switching typefaces. */
.explain-panel__narration {
  margin: 0;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
}

.explain-panel--failed {
  padding: 12px 14px;
  border-left-color: var(--status-critical);
  font-size: 12px;
  color: var(--status-critical);
}

/* Model-comparison table — "receipts beside the retelling": real cost/context-window facts
   for the model that answered vs. the one alternative it wasn't picked over, sitting under
   the narration prose so a reader can check the wording against the actual numbers. Only
   present when explain.py's build_decision_record found a real strong-tier choice to compare. */
.explain-panel__comparison {
  padding: 0 14px 14px;
  overflow-x: auto;
}

.explain-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 12px;
  white-space: nowrap;
}

.explain-comparison-table thead th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
}

.explain-comparison-table tbody th,
.explain-comparison-table tbody td {
  padding: 6px 10px;
  border-top: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.explain-comparison-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

/* Curated "known for" notes (model_comparison.py's MODEL_STRENGTHS) — a short qualitative
   line per model, set apart from the numeric table above since it's prose, not tabular data. */
.explain-comparison-notes {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.explain-comparison-notes dt {
  font-weight: 600;
  color: var(--text);
  margin-top: 6px;
}

.explain-comparison-notes dt:first-child {
  margin-top: 0;
}

.explain-comparison-notes dd {
  margin: 2px 0 0;
  line-height: 1.4;
}
