.insights { display: grid; gap: 1.25rem; }
.insights h2 { margin: 0 0 .75rem; }
.insights .logbook-heading { margin: .5rem 0 0; }
.insights .logbook-panel { margin: 0; }
.insights-counts { display: flex; gap: 2rem; flex-wrap: wrap; }
.insights-counts strong { color: var(--accent, #0891b2); font-size: 1.8rem; }
.insights-filters summary { font-weight: 650; cursor: pointer; padding: .2rem; }
.insights-controls { display: flex; align-items: end; flex-wrap: wrap; gap: .8rem; }
.insights-controls label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 600; flex: 1 1 140px; }
.insights-controls input, .insights-controls select { width: 100%; min-height: 42px; padding: .6rem .75rem; border: 1px solid var(--border, #cbd5e1); border-radius: .5rem; background: var(--surface, #fff); color: inherit; font: inherit; box-sizing: border-box; }
.insights-controls button { min-height: 42px; }
.insights-predicate { margin: 1rem 0 0; padding: 1rem; border: 1px solid var(--border, #cbd5e1); border-radius: .65rem; min-width: 0; }
.insights-predicate legend { padding: 0 .4rem; font-weight: 650; font-size: .9rem; }
.insights-type-picker { flex: 1 1 100%; }
.insights-type-options { max-height: 220px; overflow-y: auto; display: grid; gap: .4rem; }
.insights-type-options label { display: flex; align-items: center; font-weight: 400; padding: .35rem; }
.insights-type-options input { width: 18px; min-height: 18px; height: 18px; accent-color: #0891b2; }
.insights-table-wrap { overflow-x: auto; margin-top: 1.25rem; }
.insights table { border-collapse: collapse; width: 100%; text-align: left; }
.insights caption { text-align: left; font-weight: 650; margin-bottom: .7rem; }
.insights th, .insights td { padding: .8rem .65rem; border-bottom: 1px solid var(--border, #e2e8f0); font-size: .9rem; }
.insights tbody th { font-weight: 500; }
.insights td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.insights td, .insights th:not(:first-child) { text-align: right; }
.insights a { color: var(--accent, #0891b2); text-underline-offset: .2em; }
.insights-gap { border-left: 3px solid #d97706; padding: .5rem .85rem; font-size: .85rem; line-height: 1.6; }
.insights :focus-visible { outline: 2px solid #0891b2; outline-offset: 3px; }
@media (max-width: 640px) { .insights-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .insights th, .insights td { padding: .65rem .3rem; } .insights-controls > button { flex: 1; } .insights-controls > label { flex-basis: 100%; } }
