.isp-analytics { margin: 18px 0; }
.isp-analytics .isp-panel { margin-bottom: 18px; }
.isp-insight-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.isp-insight-heading h2 { margin: 0; }
.isp-insight-heading label { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.isp-insight-copy { color: var(--muted, #a8b4c9); font-size: .87rem; line-height: 1.6; }
.isp-trend { width: 100%; display: block; height: auto; min-height: 180px; }
.isp-trend text { fill: #acbbd1; font: 12px system-ui, sans-serif; }
.isp-trend .grid { stroke: #70839b; stroke-opacity: .18; }
.isp-trend .dl { stroke: #53c8fa; }
.isp-trend .ul { stroke: #b59aff; }
.isp-trend path { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.isp-trend circle { stroke: none; }
.isp-legend { display: flex; flex-wrap: wrap; gap: 20px; font-size: .85rem; }
.isp-legend .dl { color: #53c8fa; }
.isp-legend .ul { color: #b59aff; }
.isp-insight-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.isp-band-bar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; margin: 18px 0; background: #283348; }
.isp-band-bar span { min-width: 0; }
.isp-band-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.isp-band-buttons button { border: 1px solid #53647b; background: transparent; color: inherit; border-radius: 8px; padding: 10px; cursor: pointer; text-align: left; }
.isp-band-buttons button[aria-pressed="true"] { outline: 2px solid #53c8fa; background: #163444; }
.isp-band-buttons small { display: block; margin-top: 5px; }
.isp-band-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.isp-investigations { padding-left: 20px; line-height: 1.65; }
.isp-investigations li { margin: 10px 0; }
.isp-detail-button { background: none; color: #74d4ff; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font: inherit; }
.isp-bloat-badge { display: block; font-size: .75rem; color: #a8b4c9; margin-top: 3px; }
.isp-result-dialog { position: fixed; margin: 0 0 0 auto; inset: 0; height: 100dvh; max-height: 100dvh; width: min(540px, 100%); max-width: 100%; box-sizing: border-box; border: 1px solid #415169; background: #101b2b; color: #e4ecf8; padding: 28px; overflow-y: auto; }
.isp-result-dialog::backdrop { background: #020711aa; }
.isp-result-dialog dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.isp-result-dialog dt { color: #a8b4c9; }
.isp-result-dialog dd { margin: 0; overflow-wrap: anywhere; }
.isp-result-dialog h3 { margin-top: 28px; }
.isp-sort { background: none; color: inherit; border: 0; padding: 0; cursor: pointer; font: inherit; }
.isp-chart-table { max-height: 250px; overflow: auto; }
@media (max-width: 720px) { .isp-insight-grid { grid-template-columns: 1fr; gap: 0; } .isp-result-dialog { padding: 18px; } }
/* Grid children must be allowed to shrink below the table's intrinsic width. */
.isp-portal-page #dashboardPanel { grid-template-columns: minmax(0, 1fr); }
.isp-portal-page #dashboardPanel > *, .isp-insight-grid > * { min-width: 0; }
.isp-portal-page #summaryPanel { margin-top: 16px; }
.isp-portal-page .isp-analytics [hidden] { display: none !important; }
.isp-insight-heading select { background: #0d1b2e; color: #e4ecf8; border: 1px solid #53647b; border-radius: 6px; padding: 8px; max-width: 100%; }
.isp-analytics a { color: #74d4ff; }
@media (max-width: 720px) {
  .isp-portal-page #summaryPanel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .isp-table-header { flex-wrap: wrap; }
  .isp-identity-chip { white-space: normal; }
  .isp-insight-heading label { flex-wrap: wrap; }
}
