#view-qa .qa-layout { display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr); gap: 24px; align-items: start; }
#view-qa .qa-panel { padding: 24px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); min-width: 0; }
#qaForm { display: grid; gap: 12px; }
#qaForm label { font-weight: 600; margin-top: 8px; }
#qaForm select, #qaForm textarea { width: 100%; min-width: 0; max-width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px; color: var(--text); background: var(--surface-soft); font: inherit; }
#qaForm textarea { resize: vertical; line-height: 1.7; }
#qaForm textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#qaSubmit { min-height: 44px; }
#qaSubmit:disabled { cursor: wait; opacity: 0.55; }
#view-qa .qa-hint, #qaStatus { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 6px 0; overflow-wrap: anywhere; }
#qaAnswer { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; min-height: 140px; }
#qaReferences details { border-top: 1px solid var(--line-strong); padding: 16px 0; }
#qaReferences summary { cursor: pointer; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
#qaReferences pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 14px; line-height: 1.8; max-height: 360px; overflow-y: auto; }
#qaReferences a { color: var(--accent-deep); text-decoration: underline; }
#qaStatus[data-error="true"] { color: var(--red); }
@media (max-width: 1000px) { #view-qa .qa-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { #view-qa .qa-panel { padding: 16px; } }
