/* UI results only. Never target SVG, canvas, plot output, or exported graphics. */
.dtam-grade-viewport {max-width:100%;overflow-x:auto;}
.result-panel {font-family:var(--font-ui);font-size:var(--ui-size-body);line-height:var(--ui-line-prose);color:inherit;min-width:0;}
.result-cards {display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:4px 0 20px;}
.result-card {background:#f3f7fb;border:1px solid #e1e9f1;border-radius:12px;padding:14px 16px;min-width:0;}
.result-card-label {font-size:var(--ui-size-help);color:#607184;margin-bottom:6px;}
.result-card-value {font-size:22px;font-weight:var(--ui-weight-semibold);line-height:1.4;color:#294861;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;}
.result-section-title {font-size:var(--ui-size-subsection);font-weight:var(--ui-weight-semibold);margin:20px 0 10px;line-height:1.45;}
.result-table-scroll {max-width:100%;overflow-x:auto;margin:10px 0 18px;}
.result-table {width:100%;border-collapse:collapse;font-size:var(--ui-size-control);line-height:1.6;font-variant-numeric:tabular-nums;color:#30485a;}
.result-table caption {text-align:left;color:inherit;font-weight:var(--ui-weight-semibold);padding:0 0 10px;}
.result-table th {background:#eff5fa;color:#4c6579;font-weight:var(--ui-weight-semibold);text-align:left;border-bottom:2px solid #cddbe6;}
.result-table td,.result-table th {padding:12px 14px;vertical-align:top;min-width:85px;overflow-wrap:anywhere;}
.result-table td {border-bottom:1px solid #e5edf3;}
.result-table tr:last-child td {border-bottom:2px solid #cddbe6;}
.result-table th:first-child,.result-table td:first-child {min-width:155px;}
.result-key-value th:first-child,.result-key-value td:first-child {width:36%;}
.result-prose {margin:10px 0 16px;overflow-wrap:anywhere;}
.result-prose p {margin:5px 0;white-space:pre-wrap;}
.result-note {font-size:var(--ui-size-help);color:#607184;margin:12px 0;line-height:1.65;}
.result-grade-label {display:inline-flex;align-items:center;gap:7px;font-weight:var(--ui-weight-medium);}
.result-grade-dot {width:9px;height:9px;border-radius:50%;display:inline-block;flex:none;}
@media(max-width:600px) {.result-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}.result-card{padding:12px;}.result-card-value{font-size:19px;}.result-table td,.result-table th{padding:10px;}}
.dta-network-interpretation .dta-network-metrics {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.dta-insight-card {padding:16px;margin:0 0 12px;background:#f8fafc;border:1px solid #e1e9f1;border-radius:12px;overflow-wrap:anywhere;}
.dta-insight-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:8px;}
.dta-insight-heading h4 {font-family:var(--font-ui);font-size:var(--ui-size-subsection);font-weight:var(--ui-weight-semibold);line-height:1.45;margin:0;}
.dta-insight-badge {font-size:var(--ui-size-small);color:#4c6579;background:#eff5fa;border-radius:5px;padding:3px 7px;white-space:nowrap;}
.dta-insight-content p {margin:0 0 8px;line-height:1.65;}
.dta-insight-content p:last-child {margin-bottom:0;}
.result-message {background:#f3f7fb;border-left:3px solid #6487a3;border-radius:0 9px 9px 0;padding:14px 17px;margin:12px 0 20px;line-height:1.7;overflow-wrap:anywhere;}
.result-message strong {display:block;font-weight:600;margin-bottom:3px;}
.result-message p {margin:0;}
.result-message-pass {border-left-color:#4b876e;background:#f0f7f4;}
.result-message-review {border-left-color:#ba9451;background:#fbf8f1;}
.ui-linked-colors {display:flex;flex-wrap:wrap;gap:12px;}
.ui-linked-colors>.form-group {flex:1 1 135px;min-width:0;}
.dta-mcmc-overview .box-body {padding:20px;}
.dta-mcmc-overview .result-cards {grid-template-columns:repeat(2,minmax(0,1fr));}
@media(min-width:1100px){.dta-mcmc-convergence .result-cards{grid-template-columns:repeat(4,minmax(0,1fr));}}
