/* typed-v3 surfaces: fact chips + detail drawer, short answer card extras, follow-up plan line, read-only note, mobile composer.
   Loaded after decision.css. Same palette as the decision card. CSS only through classes (CSP style-src 'self'). Text >= 11px, touch targets >= 32px.
   Motion: nothing here animates; styles.base.css switches every animation/transition off under prefers-reduced-motion. */

/* ---- numbers live in chips under the sentence, never inside it ---- */
.fact-chips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 2px}
.fact-chip{display:inline-flex;align-items:baseline;gap:6px;max-width:100%;min-height:32px;padding:5px 11px;border:1px solid #d9d2bb;border-radius:999px;background:#fbf8ee;color:#2c4d46;font-size:12px;line-height:1.4;text-align:left;cursor:pointer}
.fact-chip.calculation{border-style:dashed}
.fact-chip:hover{background:#f3eed9}
.fact-chip:focus-visible{outline:3px solid #1c5a52;outline-offset:2px}
.fact-chip-label{color:#5b6e66;overflow-wrap:anywhere}
.fact-chip-value{color:#10292c;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.msg-assistant .fact-chips{margin-top:8px}

/* ---- detail drawer (same drawer as the source drawer; a source opened from here stacks on top and Esc steps back) ---- */
.fact-dialog .fact-hero{margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid #e3e8dc}
.fact-kind{display:inline-block;padding:2px 9px;border-radius:999px;background:#f6efd9;color:#8a6a1f;font-size:11px;letter-spacing:1px}
.fact-label{margin:8px 0 2px;color:#3f5246;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.fact-value{margin:0;color:#10292c;font-size:28px;font-weight:700;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.fact-dl{display:grid;grid-template-columns:minmax(84px,auto) minmax(0,1fr);gap:10px 16px;margin:0}
.fact-dl dt{margin:0;color:#7b8a70;font-size:12px}
.fact-dl dd{margin:0;color:#2c3e34;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.fact-unknown{color:#8b7a52;font-style:italic}
.fact-dl code{padding:1px 6px;border-radius:4px;background:#eef0e7;font-size:12px}
.fact-sources{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.fact-sources .source-link{min-height:36px;padding:6px 0;font-size:13px;color:#1c5a52;text-align:left;text-decoration:underline;background:none;border:0}
.fact-inputs{margin:0;padding-left:18px;font-size:13px;line-height:1.8}
@media (max-width:520px){
  .fact-dl{grid-template-columns:minmax(0,1fr);gap:2px}
  .fact-dl dd{margin-bottom:10px}
  .fact-value{font-size:24px}
}

/* ---- short answer card extras (the card itself reuses decision.css) ---- */
.answer-stance{padding:3px 10px;border-radius:999px;background:#eceff6;color:#40527a;font-size:11px;font-weight:600}
.answer-stance[data-stance=cautiously_positive]{background:#e8f1ec;color:#1c5a52}
.answer-stance[data-stance=cautiously_negative]{background:#f6e4dc;color:#8b4a3a}
.answer-stance[data-stance=undetermined]{background:#f3eed9;color:#7a6320}
.answer-dates{display:flex;flex-wrap:wrap;gap:2px 16px;margin:0 0 10px;color:var(--dm,#5b6e66);font-size:12px;line-height:1.7}
.answer-coverage{margin:0 0 12px;padding:8px 12px;border-radius:8px;background:#fbf4e1;color:#7c5c22;font-size:13px;line-height:1.7}
.answer-card[data-decision=insufficient] .answer-coverage{background:#fbefe9;color:#8b4a3a}
.answer-body .claim p{font-size:16px;line-height:1.75}
.answer-body .claim+.claim{margin-top:10px;padding-top:10px;border-top:1px solid #efe7d0}
.answer-impact{margin:12px 0 0;color:#4d5f56;font-size:12px;line-height:1.7}
.answer-more{margin-top:6px}
.answer-more summary{display:flex;align-items:center;min-height:32px;color:#8a6a1f;font-size:12px;font-weight:600;cursor:pointer}
.answer-more summary:focus-visible{outline:3px solid #1c5a52;outline-offset:3px}
.msg-assistant .answer-body .claim p{font-size:14px}

/* ---- waiting: the initial panel's "nothing unverified is shown" line, and the follow-up line for the real plan ---- */
.stage-panel .stage-nodraft{margin-top:8px;color:var(--mute,#5c6d63);font-size:12px;line-height:1.7}
.chat-stage.v3 .chat-stage-dot.upcoming{background:#e7e1cc}

/* ---- read-only older report / bundle note / failed review ---- */
.chat-readonly{padding:12px 14px;border:1px solid #e6dcc0;border-radius:8px;background:#fffdf6;color:#3f4c43;font-size:13px;line-height:1.8}
.chat-readonly strong{display:block;margin-bottom:4px;color:#10292c}
.chat-readonly p{margin:0 0 10px}
.chat-final-only{margin:0;color:#5b6e66;font-size:12px;line-height:1.7}
.chat-failed-hint{margin:6px 0 0;color:#8a6a58;font-size:12px;line-height:1.7}

/* ---- the composer must never cover a failure message or the retry button ----
   app.css makes it sticky to the bottom of the viewport; on a phone the panel is taller than the screen, so the sticky composer slid over the
   last (failed) message and its retry button. In the flow it can only sit below them. */
@media (max-width:720px){
  /* The topbar remains sticky; a second sticky navigation at the same top
     position otherwise covers it and the first visible report lines. */
  .sidebar{position:static}
  .chat-composer{position:static;box-shadow:none}
}

.claim-conditions{margin:8px 0;color:#50645c;font-size:12px;line-height:1.7}.claim-conditions summary{cursor:pointer;min-height:32px;display:flex;align-items:center}.claim-conditions summary:focus-visible{outline:3px solid #1c5a52;outline-offset:2px}.claim-conditions ul{padding-left:18px}
