/* AskCOL classic look on the v2 brain: the few v2 touches.
   Everything here uses the classic page's own colour, spacing and radius tokens (styles.css),
   so these parts sit inside the classic design instead of bringing a second one with them. */

:root {
  --v2-wash: var(--warm-light, #fef6ee);
  --v2-wash-rule: rgba(242, 154, 69, .38);
  /* COL's gold-yellow (#ebbf14 on colfinancial.com) for "One thing to learn" and the "Open" buttons (owner, 18 Nov 2026). */
  --v2-yellow: #ebbf14;
  --v2-yellow-dark: #d7ac00;
  --v2-yellow-wash: #fff3c4;
  --v2-yellow-rule: rgba(235, 191, 20, .7);
  --v2-yellow-text: #6b5000;
  --v2-yellow-on: #3b2c00;     /* text on solid COL yellow: about 7.8 to 1 */
  --v2-buy: #0a7a45;
  --v2-buy-bg: #e3f5ec;
  --v2-hold: #8a5a00;
  --v2-hold-bg: #fdf1d8;
  --v2-sell: #b3261e;
  --v2-sell-bg: #fde8e6;
}
body.dark-mode {
  --v2-wash: rgba(242, 154, 69, .12);
  --v2-wash-rule: rgba(242, 154, 69, .4);
  --v2-yellow: #ebbf14;
  --v2-yellow-dark: #d7ac00;
  --v2-yellow-wash: rgba(235, 191, 20, .14);
  --v2-yellow-rule: rgba(235, 191, 20, .5);
  --v2-yellow-text: #ffd54b;
  --v2-yellow-on: #3b2c00;
  --v2-buy: #6fd3a0;
  --v2-buy-bg: rgba(111, 211, 160, .14);
  --v2-hold: #f2c46b;
  --v2-hold-bg: rgba(242, 196, 107, .14);
  --v2-sell: #f2928b;
  --v2-sell-bg: rgba(242, 146, 139, .14);
}

/* Pictures: the v2 brain reads them since 20 Nov 2026 (image_input.py, agent.with_images). */

/* ---------- local test login (this computer only) ---------- */
.v2-local-login {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0 0 var(--space-4, 16px);
  padding: 10px 16px;
  border: 1px solid var(--warm);
  border-radius: var(--radius-md);
  background: var(--v2-wash);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.v2-local-login:hover { border-color: var(--warm-hover); }
.v2-local-login:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.v2-local-login:disabled { opacity: .6; cursor: default; }
.v2-local-login__error { margin: 0 0 var(--space-3, 12px); color: #991b1b; font-size: 13px; }

/* ---------- sign-in card while the server says which sign-in to show (signin-code-view.js) ---------- */
.auth-mode-wait { min-height: 160px; display: flex; align-items: center; justify-content: center; }
.auth-mode-wait .auth-subtitle { margin: 0; }

/* ---------- working row: the COL mark with a running ring ---------- */
.v2-think {
  --mark: 28px;
  position: relative;
  display: grid;
  grid-template-columns: var(--mark) minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  margin-bottom: var(--space-3, 12px);
}
.v2-think[hidden] { display: none; }
.v2-think__mark {
  position: relative;
  grid-row: 1 / span 2;
  width: var(--mark);
  height: var(--mark);
}
.v2-think__mark img { display: block; width: 100%; height: 100%; border-radius: 6px; }
/* The arc sits on the ring drawn in the COL mark (centre 49.6% / 49.2%, diameter 68.75%). */
.v2-think[data-state="working"] .v2-think__mark::after {
  --ring: calc(var(--mark) * .6875 + 2px);
  content: "";
  position: absolute;
  left: calc(var(--mark) * .496 - var(--ring) / 2);
  top: calc(var(--mark) * .492 - var(--ring) / 2);
  width: var(--ring);
  height: var(--ring);
  box-sizing: border-box;
  border: 2px solid transparent;
  border-top-color: var(--warm);
  border-radius: 50%;
  transform: rotate(40deg);
}
.v2-think__summary {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  margin: 0 0 0 -6px;
  padding: 0 6px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.v2-think__summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.v2-think__summary[aria-expanded="true"]::after { transform: rotate(135deg); }
.v2-think__summary:hover { background: var(--hover, rgba(0, 68, 130, .06)); color: var(--text); }
.v2-think__summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.v2-think[data-open="false"] .v2-think__steps { display: none; }
.v2-think__steps {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 4px 0 2px;
  list-style: none;
}
.v2-think[data-state="done"] .v2-think__steps { padding-top: 6px; }
.v2-step {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.45;
}
.v2-step::marker { content: ""; }
.v2-step__icon { position: relative; width: 16px; height: 16px; margin-top: 2px; }
.v2-step__label { color: var(--text); }
.v2-step__detail { grid-column: 2; color: var(--text-muted); }
.v2-step__detail:empty { display: none; }
.v2-step--compose { order: 99; }
.v2-step--compose .v2-step__label { color: var(--text-muted); }
.v2-step[data-status="running"] .v2-step__icon::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid var(--warm);
  border-radius: 50%;
}
.v2-step[data-status="done"] .v2-step__icon::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border-right: 2px solid var(--primary-text, var(--primary));
  border-bottom: 2px solid var(--primary-text, var(--primary));
  transform: rotate(45deg);
}

/* ---------- answer text drawn by the v2 renderer ---------- */
.v2-answer > :first-child { margin-top: 0; }
.v2-answer > :last-child { margin-bottom: 0; }
.v2-answer .lead { font-weight: 500; }
.v2-answer .cite-keep { white-space: nowrap; }
.v2-answer a.cite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 2px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--tint, rgba(0, 68, 130, .05));
  color: var(--primary-text, var(--primary));
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  vertical-align: 2px;
}
.v2-answer a.cite.is-link { cursor: pointer; border: 1px solid var(--tint-border, rgba(0, 68, 130, .14)); }
.v2-answer a.cite.is-link:hover { background: var(--primary); color: #fff; }
.v2-answer a.cite:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* The learn note: a plain tinted box. No side stripe (the classic page dropped those on 6 Nov). */
.v2-answer .learn {
  margin: var(--space-4, 16px) 0;
  padding: 12px 16px;
  border: 1px solid var(--v2-yellow-rule);
  border-radius: var(--radius-md);
  background: var(--v2-yellow-wash);
}
.v2-answer .learn__label {
  margin: 0 0 4px;
  color: var(--v2-yellow-text);
  font-size: 13px;
  font-weight: 700;
}
.v2-answer .learn__body > :last-child { margin-bottom: 0; }
/* ---------- tables ----------
   v2 tables carry the classic page's own .chat-table class (added in v2-bridge.js), so the header
   band, row lines, wrapping and phone sizes all come from styles.css. Only these things are added. */
/* 1. Words in a table break at spaces, never in the middle of a word or a ticker. */
.v2-answer .chat-table th, .v2-answer .chat-table td { word-break: normal; overflow-wrap: normal; }
/* 2. A table that still cannot fit scrolls sideways inside its box, so no column is ever cut off,
      and while it scrolls the first column (the stock) stays in view. */
.v2-answer .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.v2-answer .chat-table th:first-child, .v2-answer .chat-table td:first-child { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--border-light); }
.v2-answer .chat-table td:first-child { background: var(--bg-white); }
.v2-answer .chat-table th:first-child { background: var(--surface-2); }
.v2-answer .chat-table tbody tr:hover td:first-child { background: var(--surface-2); }
/* 3. In a table of six columns or more, a long heading keeps enough width to wrap into about two
      lines (the width hint comes from md.js) instead of stacking one word per line. */
.v2-answer .chat-table[data-cols="6"] th.hw-8, .v2-answer .chat-table[data-cols="7"] th.hw-8, .v2-answer .chat-table[data-cols="8"] th.hw-8, .v2-answer .chat-table[data-cols="9"] th.hw-8, .v2-answer .chat-table[data-cols="10"] th.hw-8 { min-width: 8ch; }
.v2-answer .chat-table[data-cols="6"] th.hw-10, .v2-answer .chat-table[data-cols="7"] th.hw-10, .v2-answer .chat-table[data-cols="8"] th.hw-10, .v2-answer .chat-table[data-cols="9"] th.hw-10, .v2-answer .chat-table[data-cols="10"] th.hw-10 { min-width: 10ch; }
.v2-answer .chat-table[data-cols="6"] th.hw-12, .v2-answer .chat-table[data-cols="7"] th.hw-12, .v2-answer .chat-table[data-cols="8"] th.hw-12, .v2-answer .chat-table[data-cols="9"] th.hw-12, .v2-answer .chat-table[data-cols="10"] th.hw-12 { min-width: 12ch; }
.v2-answer .chat-table[data-cols="6"] th.hw-14, .v2-answer .chat-table[data-cols="7"] th.hw-14, .v2-answer .chat-table[data-cols="8"] th.hw-14, .v2-answer .chat-table[data-cols="9"] th.hw-14, .v2-answer .chat-table[data-cols="10"] th.hw-14 { min-width: 14ch; }
.v2-answer .chat-table[data-cols="6"] th.hw-16, .v2-answer .chat-table[data-cols="7"] th.hw-16, .v2-answer .chat-table[data-cols="8"] th.hw-16, .v2-answer .chat-table[data-cols="9"] th.hw-16, .v2-answer .chat-table[data-cols="10"] th.hw-16 { min-width: 16ch; }
/* 4. On a phone, a five-column table (the budget table) gets tighter cells so it fits whole. */
@media (max-width: 480px) {
  .v2-answer .chat-table[data-cols="5"] { font-size: 11.5px; }
  .v2-answer .chat-table[data-cols="5"] th, .v2-answer .chat-table[data-cols="5"] td { padding: 8px 3px; }
  .v2-answer .chat-table[data-cols="5"] th:first-child, .v2-answer .chat-table[data-cols="5"] td:first-child { padding-left: 8px; }
  .v2-answer .chat-table[data-cols="5"] th:last-child, .v2-answer .chat-table[data-cols="5"] td:last-child { padding-right: 8px; }
}
/* 5. The pinned first column wraps and keeps to a set width, so a long name (a fund's full name)
      never covers the figures beside it: before this, a fund table on a phone showed the names and
      nothing else. In a table of six columns or more the other cells hold figures, so they stay on
      one line and the name keeps room for about three lines; from seven columns the cells sit a
      little closer so the whole table fits. Smaller tables (the budget table) keep their own widths. */
.v2-answer .chat-table th:first-child, .v2-answer .chat-table td:first-child { white-space: normal; max-width: 260px; }
.v2-answer .chat-table[data-cols="6"] th:first-child, .v2-answer .chat-table[data-cols="7"] th:first-child, .v2-answer .chat-table[data-cols="8"] th:first-child, .v2-answer .chat-table[data-cols="9"] th:first-child, .v2-answer .chat-table[data-cols="10"] th:first-child,
.v2-answer .chat-table[data-cols="6"] td:first-child, .v2-answer .chat-table[data-cols="7"] td:first-child, .v2-answer .chat-table[data-cols="8"] td:first-child, .v2-answer .chat-table[data-cols="9"] td:first-child, .v2-answer .chat-table[data-cols="10"] td:first-child { min-width: 132px; }
.v2-answer .chat-table[data-cols="6"] td:not(:first-child), .v2-answer .chat-table[data-cols="7"] td:not(:first-child), .v2-answer .chat-table[data-cols="8"] td:not(:first-child), .v2-answer .chat-table[data-cols="9"] td:not(:first-child), .v2-answer .chat-table[data-cols="10"] td:not(:first-child) { white-space: nowrap; }
.v2-answer .chat-table[data-cols="7"] th, .v2-answer .chat-table[data-cols="8"] th, .v2-answer .chat-table[data-cols="9"] th, .v2-answer .chat-table[data-cols="10"] th,
.v2-answer .chat-table[data-cols="7"] td, .v2-answer .chat-table[data-cols="8"] td, .v2-answer .chat-table[data-cols="9"] td, .v2-answer .chat-table[data-cols="10"] td { padding-left: 10px; padding-right: 10px; }
@media (max-width: 640px) {
  .v2-answer .chat-table th:first-child, .v2-answer .chat-table td:first-child { max-width: 40vw; }
  .v2-answer .chat-table[data-cols="6"] th:first-child, .v2-answer .chat-table[data-cols="7"] th:first-child, .v2-answer .chat-table[data-cols="8"] th:first-child, .v2-answer .chat-table[data-cols="9"] th:first-child, .v2-answer .chat-table[data-cols="10"] th:first-child,
  .v2-answer .chat-table[data-cols="6"] td:first-child, .v2-answer .chat-table[data-cols="7"] td:first-child, .v2-answer .chat-table[data-cols="8"] td:first-child, .v2-answer .chat-table[data-cols="9"] td:first-child, .v2-answer .chat-table[data-cols="10"] td:first-child { min-width: 118px; }
}
.v2-answer .caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 2px;
  background: var(--warm);
  vertical-align: -2px;
}
.v2-answer .stream-cut-note { color: var(--text-muted); font-size: 13px; }

/* ---------- key numbers ----------
   One stock: a plain bordered box with a header band, the same language as the tables.
   Two or three stocks: one side-by-side table. No side stripe, no gradient, no shadow. */
.v2-cards { display: grid; gap: 10px; margin: var(--space-4, 16px) 0; }
.v2-cards[hidden] { display: none; }
.v2-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  overflow: hidden;
}
.v2-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  padding: 9px var(--space-4, 16px);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.v2-card__ticker { color: var(--navy-ink, var(--primary)); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.v2-card__name { color: var(--text-secondary); font-size: 12.5px; }
.v2-card__items { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 0; padding: 4px 0; }
.v2-kv { min-width: 0; padding: 8px var(--space-4, 16px); }
.v2-kv__label { color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.v2-kv__value { color: var(--text); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.45; }
.v2-kv__note { color: var(--text-muted); font-size: 12px; line-height: 1.4; }
.v2-cards .rating-pill { font-size: 12px; vertical-align: 0; }
/* The price chart on a card (../chart.css), in this page's own colours. */
.v2-card .pchart {
  --pchart-line: var(--primary-text, #004482);
  --pchart-dot: #c8660a;
  --pchart-grid: var(--border, #E0E4EA);
  --pchart-ink: var(--navy-ink, #0b2545);
  --pchart-muted: var(--text-secondary, #5F6368);
  --pchart-surface: var(--bg-white, #FFFFFF);
  font-size: 12.5px;
}
body.dark-mode .v2-card .pchart {
  --pchart-line: #8fc4f2;
  --pchart-dot: #f29a45;
  --pchart-ink: var(--text, #e0e0e0);
}

.v2-cards .table-wrap.v2-compare { margin: 0; }
.v2-compare .chat-table { width: 100%; min-width: 0; }
.v2-compare .chat-table th { vertical-align: bottom; text-align: right; min-width: 104px; }
.v2-compare .chat-table th:first-child { min-width: 92px; width: 28%; }
.v2-compare__ticker { display: block; color: var(--navy-ink, var(--primary)); font-size: 13.5px; font-weight: 700; letter-spacing: .02em; }
.v2-compare__name { display: block; color: var(--text-secondary); font-size: 11.5px; font-weight: 400; line-height: 1.3; white-space: normal; }
.v2-compare .chat-table td:first-child { color: var(--text-secondary); font-weight: 500; white-space: normal; }
.v2-compare .chat-table td.v2-compare__cell { text-align: right; white-space: normal; vertical-align: top; }
.v2-compare__value { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.v2-compare__note { color: var(--text-muted); font-size: 11.5px; line-height: 1.35; }

/* ---------- sources: only a COL Research report opens ---------- */
.v2-sources[hidden], .v2-stamps[hidden], .v2-followups[hidden] { display: none; }
.v2-sources .source-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid var(--border-light);
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}
.v2-sources .sources-section > strong + .source-item { border-top: 0; }
.v2-sources .source-item.is-link { cursor: pointer; }
.v2-sources .source-item.is-link:hover .source-link { text-decoration: underline; }
.v2-sources .source-item.is-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.v2-sources .source-num {
  flex: 0 0 auto;
  min-width: 20px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.v2-source__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.v2-sources .source-link.no-link { color: var(--text); font-weight: 500; cursor: default; text-decoration: none; }
.v2-source__meta { color: var(--text-muted); font-size: 12.5px; }
.v2-source__open {
  flex: 0 0 auto;
  align-self: center;
  padding: 3px 12px;
  border: 1px solid var(--v2-yellow-dark);
  border-radius: 999px;
  background: var(--v2-yellow);
  color: var(--v2-yellow-on);
  font-size: 12.5px;
  font-weight: 700;
}
.v2-sources .source-item.is-link:hover .v2-source__open { background: var(--v2-yellow-dark); }

/* ---------- "as of" stamps ---------- */
.v2-stamps { display: flex; flex-direction: column; gap: 2px; margin-top: var(--space-3, 12px); }
.v2-stamp { color: var(--text-muted); font-size: 12.5px; line-height: 1.45; }

@media (prefers-reduced-motion: no-preference) {
  .v2-think[data-state="working"] .v2-think__mark::after { animation: v2-ring-run 1.2s cubic-bezier(.45, 0, .55, 1) infinite; }
  .v2-answer .caret { animation: v2-caret 1s steps(2, start) infinite; }
}
@keyframes v2-ring-run { from { transform: rotate(40deg); } to { transform: rotate(400deg); } }
@keyframes v2-caret { to { visibility: hidden; } }

/* The classic sheet adds its own "Open" word to a linked source row; this page draws one label only. */
.v2-sources .source-item.is-link::after { content: none; }
.v2-think__summary[hidden], .v2-think__steps[hidden] { display: none; }

/* ---------- "Your askCOL": what the reader told askCOL, and the switch ---------- */
.memory-notes-title { margin: var(--space-4, 16px) 0 6px; color: var(--text-secondary); font-size: 12.5px; font-weight: 600; }
.memory-notes { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-white); }
.memory-note-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-top: 1px solid var(--border-light); }
.memory-note-row:first-child { border-top: 0; }
.memory-note-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.memory-note-text { color: var(--text); font-size: 14px; line-height: 1.4; }
.memory-note-meta { color: var(--text-muted); font-size: 12px; }
.memory-note-remove {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-secondary);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.memory-note-remove:hover { background: var(--surface-2); color: var(--text); }
.memory-note-remove:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 1px; }
/* Older notes kept on this device, apart from the account's and not used in answers */
.memory-older { margin-top: var(--space-4, 16px); }
.memory-older[hidden] { display: none; }
.memory-older .memory-notes { background: var(--surface-2); }
.memory-older-text { margin: 0 0 8px; color: var(--text-muted); font-size: 12.5px; line-height: 1.45; }
.memory-older-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.memory-older-btn { min-height: 44px; padding: 8px 14px; }
.memory-toggle { display: flex; align-items: center; gap: 10px; margin-top: var(--space-4, 16px); color: var(--text); font-size: 14px; cursor: pointer; }
.memory-toggle[hidden] { display: none; }
.memory-toggle input { width: 18px; height: 18px; accent-color: var(--primary); }

/* ---------- under an answer: what was just noted ---------- */
.answer-footer .remembered-tag strong { color: var(--text-secondary); font-weight: 600; }

/* "How askCOL says it" in Your askCOL: four choices, two by two on a phone; greyed while memory is off */
.seg-option input:disabled { cursor: default; }
.seg-option input:disabled + span { opacity: .5; }
@media (max-width: 640px) {
  .segmented.segmented-four .seg-option,
  .segmented.segmented-four .seg-option:nth-child(n+4) { grid-column: span 3; }
}

/* ---------- the card under an answer after a 👍 / 👎 (answer-feedback.js) ----------
   A quiet cream note with a full hairline border (no side stripe); COL orange marks the picked reasons. */
.answer-fb {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--v2-wash-rule);
  border-radius: var(--radius-md);
  background: var(--v2-wash);
  color: var(--text);
  font-size: 14px;
  max-width: 100%;
  box-sizing: border-box;
}
.answer-fb__title { margin: 0 0 10px; font-weight: 600; }
.answer-fb__optional { font-weight: 400; color: var(--text-muted); font-size: 13px; }
.answer-fb__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.answer-fb__chip {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-white);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.answer-fb__chip:hover { border-color: var(--warm); }
.answer-fb__chip[aria-pressed="true"] {
  background: var(--warm);
  border-color: var(--warm);
  color: #2b1600;                 /* dark ink on COL orange: about 8 to 1 */
  font-weight: 600;
}
.answer-fb__chip:focus-visible,
.answer-fb__skip:focus-visible,
.answer-fb__send:focus-visible,
.answer-fb__text:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.answer-fb__text {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  resize: vertical;
}
.answer-fb__note { margin: 6px 0 0; font-size: 12px; color: var(--text-muted); }
.answer-fb__error { margin: 8px 0 0; font-size: 13px; color: #991b1b; }
.answer-fb__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.answer-fb__skip,
.answer-fb__send {
  min-height: 36px;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.answer-fb__skip { border: 1px solid transparent; background: transparent; color: var(--text-secondary); }
.answer-fb__skip:hover { color: var(--text); }
.answer-fb__send { border: 1px solid var(--primary); background: var(--primary); color: #fff; }
.answer-fb__send:hover:not(:disabled) { background: var(--primary-hover); }
.answer-fb__send:disabled { opacity: .45; cursor: default; }
.answer-fb--done { padding: 10px 14px; }
.answer-fb__thanks { margin: 0; color: var(--text-secondary); }
body.dark-mode .answer-fb__chip { background: var(--bg); }
body.dark-mode .answer-fb__chip[aria-pressed="true"] { background: var(--warm); color: #2b1600; }
body.dark-mode .answer-fb__text { background: var(--bg); }
body.dark-mode .answer-fb__send { background: var(--primary-light); border-color: var(--primary-light); }
body.dark-mode .answer-fb__error { color: #f2928b; }

/* A report drawn page by page (pdf-pages.js, iPad and iPhone): the panel scrolls, pages fill its width. */
.pdf-pages {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #e9e6df;
  padding: 8px;
  box-sizing: border-box;
}
.pdf-page {
  width: 100%;
  background: #fff;
  margin: 0 auto 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.pdf-page canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.left-pane .pdf-pages {
  min-height: 50vh;
}
