.explorer { --surface: var(--paper); --font: var(--text); align-items: start; padding: 23px 0 30px; gap: 22px; }
.explorer .panel { border-radius: 0; border-color: #899499; }
.explorer .panel-h h2 { font: 400 30px/1 var(--display); }
.explorer .panel-h, .explorer .panel-b { padding-inline: 17px; }
.explorer .panel-h { min-height: 52px; }
.explorer .comparable-label { font-size: 12px; font-weight: 700; color: var(--blue-deep); }
.explorer .active-filters { margin-top: 4px; margin-bottom: 13px; }
.explorer .active-filters:empty { display: none; }
.explorer .panel-h { justify-content: space-between; }
.explorer .panel-b > label, .filter-form > label { display: block; margin-bottom: 4px; font-weight: 600; }
.filter-form { display: grid; margin-top: 14px; }
.filter-form .row { gap: 6px; padding-block: 6px; }
.filter-form .row .btn { flex: 1 1 auto; justify-content: center; }
.field-meta { min-height: 20px; margin: 4px 0 10px; color: var(--ink-3); }
.input-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 8px; }
.input-pair[hidden], .input-pair label[hidden] { display: none; }
.input-pair label input { margin-top: 4px; }
.filter-error { margin: 6px 0; color: #a02d23; }
.filter-error:empty { margin: 0; }
.active-filters { margin: 12px 0 0; padding: 0; list-style: none; }
.active-filters li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--hair); }
.chart-controls { display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: end; }
.chart-controls label:not(.check) { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px; width: min(100%,335px); }
.chart-controls input, .chart-controls select { width: 100%; min-width: 0; }
.chart-controls .check { display: inline-flex; align-items: center; min-height: 32px; }
.chart-controls .check input { width: auto; }
.chart-stats { display: flex; flex-wrap: wrap; column-gap: 28px; row-gap: 6px; margin: 12px 0 6px; }
.chart-stats dt { color: var(--ink-3); }
.chart-stats dd { margin: 0; font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; }
.lookup-chart { min-width: 0; }
.lookup-chart svg { display: block; width: 100%; height: auto; }
.lookup-chart text { fill: var(--ink-2); font: 12px var(--font); }
.lookup-chart .grid { stroke: var(--hair); }
.lookup-chart .axis { stroke: var(--ink-3); }
.lookup-chart .cohort, .lookup-chart .reference, .lookup-chart .threshold { fill: none; stroke-width: 2; }
.lookup-chart .cohort { stroke: #1766a8; }
.lookup-chart .reference { stroke: #717985; stroke-dasharray: 4 3; }
.lookup-chart .threshold { stroke: #885019; stroke-dasharray: 3 4; }
.chart-key { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); }
.chart-key span::before { display: inline-block; content: ''; width: 14px; vertical-align: middle; margin-right: 6px; border-top: 2px solid #1766a8; }
.chart-key .ref-key::before { border-color: #717985; border-top-style: dashed; }
.chart-key .threshold-key::before { border-color: #885019; border-top-style: dashed; }
.shown-columns { display: flex; gap: 6px; flex-wrap: wrap; }
.shown-columns:empty { display: none; }
.table-scroll { overflow: auto; }
.table-scroll th, .table-scroll td { white-space: nowrap; }
.table-scroll th button { background: transparent; border: 0; padding: 0; text-align: left; cursor: pointer; }
.film-profile-link { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 2px; }
.table-pages { display: flex; align-items: center; gap: 10px; padding-top: 12px; }
@media (max-width: 880px) { .explorer { grid-template-columns: 1fr; } }
