/* SpotTake analysis view. Scoped to .sta to avoid changing existing panel tables. */
.sta { --sta-ink:var(--text-color,#252b38); --sta-muted:var(--muted-color,#697386); --sta-line:var(--border-color,#e4e8ee); --sta-surface:var(--panel-background,#fff); --sta-soft:var(--subtle-background,#f7f8fa); --sta-accent:var(--primary-color,#7555c5); --sta-catalyst:#16846b; --sta-obstacle:#b34e58; --sta-neutral:#8893a2; --sta-unknown:#a8aeb9; color:var(--sta-ink); max-width:100%; }
.sta * { box-sizing:border-box; }
.sta h2,.sta h3,.sta h4,.sta h5,.sta p { margin-top:0; }
.sta-heading,.sta-insights-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.sta-heading h2 { font-size:clamp(24px,3vw,34px); line-height:1.2; margin:0; }
.sta-eyebrow { color:var(--sta-muted); font-size:11px; font-weight:750; letter-spacing:.11em; text-transform:uppercase; margin-bottom:7px; }
.sta-favorability { padding:8px 13px; border:1px solid var(--sta-line); border-radius:100px; font-weight:700; font-size:13px; white-space:nowrap; }
.sta-summary { border:1px solid var(--sta-line); border-radius:15px; background:var(--sta-soft); padding:clamp(17px,2.5vw,28px); margin-bottom:15px; }
.sta-summary-copy { font-size:clamp(15px,1.5vw,18px); line-height:1.6; max-width:85ch; margin-bottom:15px; }
.sta-assessment-facts { display:flex; gap:8px; flex-wrap:wrap; }
.sta-assessment-facts span { border:1px solid var(--sta-line); background:var(--sta-surface); padding:7px 10px; border-radius:7px; font-size:12px; }
.sta-assessment-facts strong { margin-right:6px; }
.sta-assessment-note { font-size:13px; color:var(--sta-muted); margin-top:14px; }
.sta-assessment-note summary { cursor:pointer; font-weight:650; }
.sta-assessment-note p { margin:10px 0 0; line-height:1.5; }
.sta-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.sta-metric { border:1px solid var(--sta-line); background:var(--sta-surface); border-radius:12px; padding:16px 18px; display:flex; flex-direction:column; gap:3px; }
.sta-metric strong { font-size:27px; font-variant-numeric:tabular-nums; line-height:1.2; }
.sta-metric span { font-size:12px; color:var(--sta-muted); }
.sta-chart-grid,.sta-context-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.sta-chart-card,.sta-context-card { background:var(--sta-surface); border:1px solid var(--sta-line); border-radius:13px; padding:20px; min-width:0; }
.sta-card-heading h3,.sta-context-card h3 { font-size:16px; margin-bottom:4px; }
.sta-card-heading p { font-size:12px; color:var(--sta-muted); line-height:1.45; margin-bottom:19px; }
.sta-impact-bar { height:17px; display:flex; gap:3px; overflow:hidden; border-radius:6px; background:var(--sta-soft); }
.sta-segment { min-width:0; }
.sta-obstacle.sta-segment,.sta-obstacle.sta-dot { background:var(--sta-obstacle); }
.sta-catalyst.sta-segment,.sta-catalyst.sta-dot { background:var(--sta-catalyst); }
.sta-neutral.sta-segment,.sta-neutral.sta-dot { background:var(--sta-neutral); }
.sta-unknown.sta-segment,.sta-unknown.sta-dot { background:var(--sta-unknown); }
.sta-legend { display:flex; gap:10px 16px; flex-wrap:wrap; margin-top:16px; font-size:11px; color:var(--sta-muted); }
.sta-legend span { display:inline-flex; gap:6px; align-items:center; }
.sta-legend strong { color:var(--sta-ink); }
.sta-dot { width:9px; height:9px; display:inline-block; border-radius:50%; }
.sta-histogram { display:flex; height:92px; align-items:stretch; gap:7px; }
.sta-hist-col { display:flex; flex:1; min-width:0; flex-direction:column; align-items:center; gap:6px; font-size:10px; color:var(--sta-muted); }
.sta-hist-track { display:flex; flex:1; align-items:flex-end; width:100%; max-width:36px; background:var(--sta-soft); border-radius:5px 5px 0 0; overflow:hidden; }
.sta-hist-fill { width:100%; background:var(--sta-accent); border-radius:5px 5px 0 0; }
.sta-hist-significance { background:#467aa5; }
.sta-chart-foot { margin:11px 0 0; font-size:11px; color:var(--sta-muted); }
.sta-matrix { display:grid; grid-template-columns:58px 1fr; grid-template-rows:125px auto; gap:5px 8px; }
.sta-matrix-ylabels { display:flex; flex-direction:column; justify-content:space-around; font-size:10px; color:var(--sta-muted); }
.sta-matrix-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); grid-template-rows:repeat(3,1fr); gap:3px; }
.sta-matrix-cell { background:var(--sta-soft); border:1px solid var(--sta-line); border-radius:3px; display:flex; align-items:center; justify-content:center; gap:3px; flex-wrap:wrap; padding:3px; }
.sta-matrix-xlabels { grid-column:2; display:flex; justify-content:space-between; font-size:10px; color:var(--sta-muted); }
.sta-matrix-point { border:0; width:11px; height:11px; min-width:11px; border-radius:50%; background:var(--sta-neutral); cursor:pointer; padding:0; }
.sta-matrix-point.sta-obstacle { background:var(--sta-obstacle); }
.sta-matrix-point.sta-catalyst { background:var(--sta-catalyst); }
.sta-matrix-point:focus-visible { outline:3px solid var(--sta-accent); outline-offset:2px; }
.sta-context-card .sta-list { margin:12px 0 0; }
.sta-list { padding-left:19px; line-height:1.6; }
.sta-list li + li { margin-top:7px; }
.sta-insights { margin-top:30px; }
.sta-insights-heading h3 { font-size:21px; margin:0; }
.sta-insights-heading>span { color:var(--sta-muted); font-size:12px; }
.sta-controls { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px; margin:0 0 14px; }
.sta-controls label { display:flex; flex-direction:column; gap:5px; min-width:145px; }
.sta-controls label:first-child { flex:1; min-width:200px; }
.sta-controls label>span { font-size:11px; color:var(--sta-muted); font-weight:650; }
.sta-controls input,.sta-controls select,.sta-control-btn { min-height:37px; padding:8px 10px; border:1px solid var(--sta-line); border-radius:7px; color:var(--sta-ink); background:var(--sta-surface); font:inherit; font-size:13px; }
.sta-control-btn { cursor:pointer; }
.sta-table-wrap { overflow-x:auto; }
.sta-table { width:100%; border-collapse:collapse; }
.sta-table th { text-align:left; font-size:12px; font-weight:700; padding:13px 10px; border-bottom:1px solid var(--sta-line); }
.sta-table td { padding:13px 10px; border-bottom:1px solid var(--sta-line); vertical-align:middle; }
.sta-table .sta-col-mark { width:95px; }
.sta-table .sta-col-action { width:65px; text-align:center; }
.sta-level { display:inline-flex; align-items:center; justify-content:center; padding:5px 7px; border-radius:5px; background:var(--sta-soft); font-size:12px; font-weight:700; font-variant-numeric:tabular-nums; }
.sta-insight-title { font-weight:650; line-height:1.4; }
.sta-dimension-cell { font-size:12px; }
.sta-dimension-cell small { display:block; color:var(--sta-muted); margin-top:3px; }
.sta-impact-pill { display:inline-block; padding:5px 8px; border-radius:5px; font-size:11px; font-weight:700; white-space:nowrap; }
.sta-impact-pill.sta-catalyst { color:var(--sta-catalyst); background:color-mix(in srgb,var(--sta-catalyst) 10%,transparent); }
.sta-impact-pill.sta-obstacle { color:var(--sta-obstacle); background:color-mix(in srgb,var(--sta-obstacle) 10%,transparent); }
.sta-impact-pill.sta-neutral,.sta-impact-pill.sta-unknown { color:var(--sta-muted); background:var(--sta-soft); }
.sta-view-btn { cursor:pointer; font-size:12px; font-weight:700; color:var(--sta-accent); }
.sta-detail-row[hidden],.sta-insight-group[hidden],.sta-empty[hidden] { display:none !important; }
.sta-detail-row>td { background:var(--sta-soft); padding:0 14px 18px; }
.sta-detail { max-width:1000px; padding:18px 10px; line-height:1.65; }
.sta-detail h3 { font-size:20px; margin-bottom:12px; }
.sta-detail-description { font-size:15px; line-height:1.7; max-width:90ch; }
.sta-detail-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:22px 0; }
.sta-detail-facts>div { border:1px solid var(--sta-line); border-radius:7px; background:var(--sta-surface); padding:10px; display:flex; flex-direction:column; gap:2px; }
.sta-detail-facts span { font-size:11px; color:var(--sta-muted); }
.sta-detail-facts strong { font-size:12px; }
.sta-detail-section { margin-top:22px; }
.sta-detail-section h4 { font-size:14px; margin-bottom:8px; }
.sta-tags { display:flex; flex-wrap:wrap; gap:6px; }
.sta-tags span { font-size:11px; border:1px solid var(--sta-line); background:var(--sta-surface); padding:4px 7px; border-radius:5px; }
.sta-evidence-list,.sta-options { display:grid; gap:10px; }
.sta-evidence-list article,.sta-option { border:1px solid var(--sta-line); background:var(--sta-surface); padding:14px; border-radius:9px; }
.sta-evidence-head span,.sta-option-top span { font-size:11px; color:var(--sta-muted); font-weight:700; }
.sta-evidence-list p,.sta-option p { margin:7px 0; }
.sta-source,.sta-evidence-limit,.sta-option-basis,.sta-option-actor { color:var(--sta-muted); font-size:12px; overflow-wrap:anywhere; }
.sta-option-top { display:flex; justify-content:space-between; gap:12px; }
.sta-option-top h5 { font-size:14px; margin:0; }
.sta-option .sta-detail-section { margin-top:12px; }
.sta-empty { padding:24px; text-align:center; color:var(--sta-muted); }
@media (max-width:760px) { .sta-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .sta-chart-grid,.sta-context-grid { grid-template-columns:1fr; } .sta-detail-facts { grid-template-columns:repeat(2,minmax(0,1fr)); } .sta-heading { align-items:flex-start; } .sta-table { min-width:650px; } }
@media (prefers-reduced-motion:no-preference) { .sta-matrix-point { transition:transform .15s; } .sta-matrix-point:hover { transform:scale(1.4); } }


/* Expanded insight details */
.sta-table .sta-detail-row:not([hidden]) {
    display: table-row;
    height: auto;
}

.sta-table .sta-detail-row > td {
    height: auto;
    vertical-align: top;
}

.sta-table .sta-detail {
    height: auto;
    max-height: none;
    overflow: visible;
}