/* The result is a readable working document, with controls around its edges. */
.results #result { color:#363d49; overflow-wrap:anywhere; }
.results > .section-title { align-items:center; gap:16px; padding-bottom:20px; border-bottom:1px solid #e9e7e2; }
.results #resultStatus { font-size:10px; letter-spacing:.6px; padding:7px 10px; line-height:1.5; border-radius:7px; }
.results .report-document { white-space:normal; font-size:14px; line-height:1.9; margin:26px 0 30px; }
.report-document > :first-child { margin-top:0; }
.report-document :is(h2,h3,h4,h5,h6) { color:#4b2428; font-family:inherit; font-weight:600; line-height:1.45; letter-spacing:-.4px; margin:30px 0 12px; }
.report-document h2 { font-size:23px; }
.report-document h3 { font-size:18px; }
.report-document :is(h4,h5,h6) { font-size:15px; }
.report-document p { font-size:inherit; line-height:inherit; margin:12px 0; color:inherit; }
.report-document :is(ul,ol) { padding-left:24px; margin:14px 0; }
.report-document li { padding-left:4px; margin:7px 0; }
.report-document li::marker { color:#72575a; }
.report-document strong { font-weight:600; color:#252c39; }
.report-document code { background:#f0efeb; border-radius:4px; padding:2px 5px; font-size:.9em; overflow-wrap:anywhere; }
.report-table { width:100%; overflow:auto; border:1px solid #dedfe3; border-radius:10px; margin:22px 0; scrollbar-width:thin; }
.report-table:focus-visible { outline:3px solid #315bc4; outline-offset:3px; }
.report-table table { width:100%; border-collapse:collapse; min-width:420px; font-size:12px; line-height:1.7; }
.report-table th { color:#363d49; background:#edf1f8; font-weight:600; }
.report-table :is(th,td) { text-align:left; padding:12px 16px; border-bottom:1px solid #e5e6e9; vertical-align:top; }
.report-table tr:last-child td { border-bottom:0; }
.report-table tbody tr:nth-child(even) { background:#fafaf8; }
.results .metrics { gap:12px; margin:24px 0; }
.results .metric { background:#f1f4fa; border:1px solid #dce3f0; padding:18px; border-radius:12px; }
.results .metric strong { color:#264a91; font-size:26px; line-height:1.3; }
.results .metric span { color:#566173; font-size:11px; line-height:1.7; }
.results .conversation { padding:16px 18px; margin:20px 0; border:1px solid #e2dfd9; border-radius:10px; background:#faf9f6; }
.results details > summary { cursor:pointer; min-height:32px; font-size:12px; line-height:1.8; color:#626b78; }
.results summary:focus-visible { outline:3px solid #315bc4; outline-offset:4px; border-radius:3px; }
.results .conversation .report { font-size:12px; line-height:1.8; max-height:280px; overflow:auto; }
.results .trace { margin:20px 0; border-top:1px solid #e9e7e2; padding-top:15px; font-size:11px; line-height:1.9; color:#626b78; }
.results .trace > div { padding:5px 0; overflow-wrap:anywhere; }
.results .error { background:#fbefef; color:#8a3038; border:1px solid #e8c6cb; border-radius:10px; padding:18px; font-size:13px; line-height:1.8; margin:20px 0; }
.results #result > .actions { border-top:1px solid #e9e7e2; padding-top:20px; gap:10px; display:flex; flex-wrap:wrap; }
.results #result > .actions button { min-height:44px; padding:10px 16px; font-size:12px; border-radius:9px; }
.results #result > .actions [data-delete-result] { margin-left:auto; color:#88545a; }
.results .spinner { border-top-color:#315bc4; width:24px; height:24px; margin:26px 0 16px; }
.results .spinner + p { font-size:15px; font-weight:600; }
.results .interactive-chart { background:#fff; border-color:#dedfe3; border-radius:12px; box-shadow:none; }
.results .chart-heading h3 { color:#4b2428; font-size:18px; }
.results .chart-insight { background:#edf1f8; color:#3f506a; }
.results .reply-form { border-top:1px solid #e9e7e2; margin-top:24px; padding-top:22px; }
.reply-form label { font-size:13px; color:#363d49; font-weight:600; }
.reply-form textarea { background:#fff; border:1px solid #c9cbd0; border-radius:10px; font-size:14px; line-height:1.7; }
.reply-form textarea:focus-visible { outline:3px solid #315bc4; outline-offset:3px; }
@media(max-width:600px) {
 .results .report-document { font-size:13px; }
 .report-document h2 { font-size:20px; }
 .results .metrics { grid-template-columns:1fr; }
 .results #result > .actions [data-delete-result] { margin-left:0; }
 .report-table :is(th,td) { padding:10px 12px; }
}
@media(prefers-reduced-motion:reduce) { .results .interactive-chart,.results .chart-bar { animation:none!important; } }
/* Detail uses the dashboard frame, typography, and controls. */
body.viewing-report .grid{max-width:none;margin:0}
body.viewing-report .results{margin:0;width:100%;padding:26px 28px;background:#fff;border:1px solid #dce3f0;border-radius:16px;box-shadow:0 2px 7px #243c6c05}
body.viewing-report .results h2{color:#252c39;font-size:23px;font-weight:400;letter-spacing:-.5px}
body.viewing-report .results .report-document{max-width:900px;font-size:14px;line-height:1.85;margin:26px 0}
body.viewing-report .report-document :is(h2,h3,h4,h5,h6){color:#29394f;font-weight:600;letter-spacing:-.3px}
body.viewing-report .report-document h2{font-size:20px}
body.viewing-report .results>.section-title{border-color:#e4eaf4}
body.viewing-report .composer{width:100%;max-width:none;margin:20px 0 0;border-radius:16px;border-color:#dce3f0;padding:22px 28px;box-shadow:0 2px 7px #243c6c05}
body.viewing-report .composer .reply-form{margin:0;padding:0;border:0}
body.viewing-report .composer textarea{font-family:inherit;font-size:13px;background:#f8faff;border:1px solid #dce3f0;border-radius:12px;min-height:90px;padding:14px}
body.viewing-report .composer .compose-mode{color:#526685;margin-bottom:14px}
body.viewing-report .composer .actions button,body.viewing-report #replySend{font-family:inherit;font-size:12px;border-radius:22px;padding:10px 18px}
body.viewing-report .results #resultStatus{color:#526b91;background:#edf2fc;letter-spacing:0}
@media(max-width:600px){body.viewing-report .results,body.viewing-report .composer{padding:20px 16px}body.viewing-report .results .section-title{flex-wrap:wrap}}
body.viewing-report #result{min-height:0}body.viewing-report .results{min-height:0}body.viewing-report .results #result>.actions{margin-bottom:0}
