.main { margin-inline: auto; }
.toolbar.compact-filters { gap: 12px; flex-wrap: wrap; }
.compact-filters label { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12px; color: var(--muted); }
.compact-filters select { width: auto; min-width: 105px; max-width: 205px; }
.compact-filters input[type=search] { flex: 1; min-width: 190px; max-width: 300px; width: 240px; }
.market-filters { margin: 0 0 24px; }
.market-filters .market-citation { margin-left: auto; font-size: 12px; }
.market-citation summary { cursor: pointer; color: var(--muted); }
.market-citation[open] { max-width: 420px; }
.market-citation p { font-size: 12px; line-height: 1.7; }
.record-summary-table { table-layout: fixed; }
.record-summary-table th:first-child { width: 50%; }
.record-summary-table th:nth-child(2) { width: 18%; }
.record-summary-table th:nth-child(3) { width: 19%; }
.record-summary-table th:nth-child(4) { width: 13%; }
.record-summary-table td { vertical-align: middle; padding: 14px 12px; }
.record-summary-table tbody tr { cursor: pointer; }
.record-summary-table small { font-size: 11px; margin-top: 4px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-summary-table .record-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 0; height: auto; border: 0; padding: 0; text-align: left; font-weight: 500; font-size: 13px; line-height: 1.7; background: transparent; width: 100%; white-space: normal; overflow-wrap: anywhere; }
.record-title:hover { color: var(--red); }
.record-clip { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.record-drawer { position: fixed; inset: 0 0 0 auto; width: min(660px, 92vw); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--ink); background: #fff; color: var(--ink); overflow-y: auto; box-shadow: -12px 0 48px #00000014; }
.record-drawer::backdrop { background: #14141733; }
.record-drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 16px 30px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.record-drawer-head button { width: 34px; height: 34px; border: 0; font-size: 25px; padding: 0; background: var(--soft); }
.record-drawer-content { padding: 26px 32px 60px; }
.record-drawer-content h2 { font-size: 23px; line-height: 1.55; font-weight: 500; margin: 0 0 18px; }
.record-drawer-links { display: flex; gap: 24px; font-size: 12px; }
.record-section { margin-top: 26px; }
.record-section h3 { font-size: 15px; font-weight: 500; padding-bottom: 12px; margin: 0; border-bottom: 1px solid var(--ink); }
.record-fields { margin: 0; }
.record-fields > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.record-fields dt { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.record-fields dd { margin: 0; font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; white-space: pre-wrap; }
.record-subitem { padding: 12px 16px; margin: 8px 0; background: var(--soft); }
.record-subitem h4 { font-size: 12px; margin: 0 0 8px; font-weight: 500; }
.record-subitem .record-fields > div:last-child { border: 0; }
.record-page { max-width: 860px; margin-inline: auto; }
.source-file-meta { grid-template-columns: 110px minmax(0,1fr) 110px minmax(0,1fr); gap: 0 20px; }
.source-file-meta dd { white-space: normal; }
.data-metrics { margin: 0 0 24px; }
.data-metrics strong { font-size: 30px; }
.data-quality { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.quality-meter header { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 10px; }
.quality-meter-track { height: 5px; background: var(--soft); }
.quality-meter-track i { display: block; height: 100%; background: var(--ink); }
.data-range-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 16px 0 24px; }
.data-range-meta details { margin-left: auto; }
.data-range-meta summary { cursor: pointer; }
.data-range-meta p { max-width: 600px; line-height: 1.8; }
.pf-kpis { grid-template-columns: repeat(4,minmax(0,1fr)); }
.pf-kpis small:empty { display: none; }
.object-counts { display: flex; align-items: baseline; gap: 24px; margin: 20px 0; font-size: 13px; color: var(--muted); }
.object-counts details { margin-left: auto; max-width: 520px; font-size: 12px; }
.object-counts summary, .source-metadata summary { cursor: pointer; color: var(--muted); }
.source-metadata { margin: 8px 0 28px; font-size: 12px; }
.object-counts p { line-height: 1.8; }
.pf-enterprise-table td { vertical-align: middle; }
.pf-status-legend button { min-height: 34px; }
@media(max-width: 700px) {
  .toolbar.compact-filters { gap: 10px; }
  .compact-filters label { width: auto; flex: 1; min-width: 140px; }
  .compact-filters input[type=search] { min-width: 100%; max-width: none; }
  .compact-filters select { min-width: 0; max-width: 100%; }
  .market-filters .market-citation { margin-left: 0; }
  .record-summary-table { min-width: 630px; }
  .record-drawer { width: 100vw; border-left: 0; }
  .record-drawer-content { padding: 22px 20px 40px; }
  .record-drawer-head { padding-inline: 20px; }
  .source-file-meta { grid-template-columns: 90px minmax(0,1fr); gap: 0 10px; }
  .data-quality { grid-template-columns: 1fr; gap: 16px; }
  .data-range-meta details { margin-left: 0; }
  .pf-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
