
.answer-modes { border: 0; padding: 0; margin: 18px 0 6px; min-width: 0; }
.answer-modes legend { font-size: .88rem; font-weight: 650; margin-bottom: 9px; }
.mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-option { display: flex; align-items: center; gap: 10px; padding: 13px 14px;
  border: 1px solid #d4dfd7; border-radius: 12px; background: #fff; cursor: pointer; margin: 0; }
.mode-option:has(input:checked) { border-color: #277354; background: #eef7f0; box-shadow: inset 0 0 0 1px #277354; }
.mode-option:has(input:focus-visible) { outline: 3px solid #a0c7e0; outline-offset: 3px; }
.mode-option input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: #277354; }
.mode-option strong { display: block; font-size: .96rem; color: #214632; }
.mode-option small { display: block; font-size: .78rem; line-height: 1.55; color: #53645a; margin-top: 4px; }
.mode-default { align-self: flex-start; border-radius: 4px; padding: 2px 5px; background: #d8ebde;
  white-space: nowrap; font-size: .65rem; color: #27543d; }
#mode-help, .quote-hint, .citation-coverage { font-size: .8rem; line-height: 1.6; color: #52645a; margin: 9px 0; }
.answer-mode-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.answer-mode-label { padding: 4px 10px; background: #edf5ef; border-radius: 20px; font-size: .78rem; color: #285a40; }
.source-excerpt { margin: -4px 0 23px; padding: 12px 16px; border-left: 3px solid #88ad98; background: #f5f8f5; border-radius: 0 8px 8px 0; }
.source-excerpt blockquote { margin: 0; font-size: .95rem; line-height: 1.7; color: #334f42; white-space: pre-wrap; overflow-wrap: anywhere; }
.source-excerpt figcaption { margin-top: 8px; font-size: .73rem; color: #53645a; }
.source-excerpt figcaption a { color: #246443; }
.mode-option:has(input:disabled) { opacity: .7; cursor: wait; }
@media (max-width: 560px) { .mode-options { grid-template-columns: 1fr; } .mode-option { padding: 11px 12px; } }
