/* Square archive system. Shared tokens keep the import and dashboard views aligned. */
:root {
    color-scheme: dark;
    --bg: #111310;
    --surface: #191c17;
    --surface-raised: #20241d;
    --line: #363c31;
    --line-soft: #292e25;
    --ink: #f1f3eb;
    --muted: #a1a99a;
    --accent: #c5f277;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
    --sans: 'Space Grotesk', system-ui, sans-serif;
}
* { box-sizing: border-box; border-radius: 0 !important; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.55; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, a, summary { transition: background-color .16s, color .16s, border-color .16s; }
button { cursor: pointer; }
button:disabled { opacity: .3; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { color: var(--bg); background: var(--accent); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; background: var(--accent); color: var(--bg); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 30; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 32px; border-bottom: 1px solid var(--line); background: var(--bg); }
.brand { display: flex; align-items: center; gap: 13px; font-size: 17px; font-weight: 700; letter-spacing: -.04em; white-space: nowrap; }
.brand-symbol { display: grid; place-items: center; width: 34px; height: 34px; background: var(--accent); color: var(--bg); font-size: 22px; }
.brand-light { color: var(--muted); font-weight: 400; }
.header-tools { display: flex; align-items: center; gap: 28px; }
.local-status, .eyebrow, .meta-text, .panel-index, .signal-caption, .signal-axis, .file-format, .landing-footnote, .dashboard-footer, .archive-badge { font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: .07em; }
.local-status { display: flex; gap: 8px; color: var(--muted); }
.local-status > span:first-child { color: var(--accent); }
#languageSelector { width: 66px; height: 34px; padding: 4px 8px; background: transparent; border: 1px solid var(--line); color: var(--ink); font-family: var(--mono); font-size: 12px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.accent-square { width: 7px; height: 7px; background: var(--accent); flex: 0 0 auto; }
.accent-text { color: var(--accent); }
.muted { color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 43px; padding: 10px 17px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.button-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.button-primary:hover { background: #d9ffa3; border-color: #d9ffa3; }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover:not(:disabled) { background: var(--surface-raised); border-color: var(--muted); }
.button-danger { color: #d79988; background: transparent; border-color: transparent; font-weight: 400; }
.button-danger:hover { border-color: #72493e; background: #2c211b; }
input, select { min-width: 0; width: 100%; height: 39px; padding: 9px 10px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); font-size: 12px; }
input::placeholder { color: #8b9583; opacity: 1; }
input:focus, select:focus { border-color: var(--accent); }
select option { background: var(--surface); color: var(--ink); }

/* Import: a two-column cover with a geometric listening signal. */
.landing { max-width: 1420px; margin: auto; min-height: calc(100svh - 76px); display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(32px, 6vw, 100px); padding: 70px 64px 96px; }
.landing-copy h1 { font-size: clamp(46px, 5.9vw, 86px); line-height: 1.02; font-weight: 500; letter-spacing: -.07em; margin: 28px 0; }
.landing-description { max-width: 415px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.signal-art { margin-top: 48px; padding: 18px 0 12px; max-width: 480px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.signal-caption, .signal-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.signal-caption span:last-child { color: var(--accent); font-size: 18px; line-height: 1; }
.signal-bars { height: 100px; display: flex; gap: 5px; align-items: flex-end; margin: 20px 0 12px; }
.signal-bars span { height: var(--bar-height); flex: 1; background: var(--accent); }
.signal-bars span:nth-child(3n) { background: #677c4a; }
.signal-bars span:nth-child(5n) { background: #38432d; }
.landing-footnote { display: flex; gap: 22px; margin-top: 24px; color: var(--muted); font-size: 9px; }
.landing-footnote > span:first-child { color: var(--accent); }
.import-panel { border: 1px solid var(--line); background: var(--surface); }
.panel-heading { min-height: 55px; display: flex; align-items: center; gap: 14px; padding: 15px 22px; border-bottom: 1px solid var(--line-soft); }
.panel-index { color: var(--muted); white-space: nowrap; font-size: 9px; }
.panel-mark { margin-left: auto; color: var(--accent); font-size: 19px; line-height: 1; }
.import-panel > .panel-heading { background: var(--surface-raised); }
.import-body { padding: 30px; }
.import-body > h2 { font-size: 28px; font-weight: 500; letter-spacing: -.045em; margin-bottom: 8px; }
.import-body > p { font-size: 13px; line-height: 1.7; }
.upload-area { position: relative; text-align: center; margin-top: 28px; padding: 30px 20px 24px; border: 1px dashed #566348; background: var(--bg); }
.upload-area:hover, .upload-area.border-green-300 { border-color: var(--accent); background: #1c2315; }
.upload-symbol { margin: 0 auto 16px; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); font-size: 28px; color: var(--accent); }
.upload-area h3 { font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.upload-area > p { font-size: 12px; }
.upload-area .button { margin: 22px 0 13px; width: 100%; }
.file-format { display: block; color: var(--muted); font-size: 9px; }
.drop-zone { position: absolute; inset: 0; display: grid; place-items: center; background: #222f16; border: 2px solid var(--accent); color: var(--accent); pointer-events: none; }
.privacy-note { display: flex; justify-content: center; gap: 8px; color: var(--muted); font-size: 11px; margin: 17px 0 27px; }
.privacy-note i { margin-top: 3px; }
.import-help { display: flex; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.import-help h3 { font-size: 12px; font-weight: 500; }
.import-help p { margin-top: 6px; font-size: 11px; color: var(--muted); line-height: 1.7; }
.import-help a { display: inline-block; margin-top: 10px; color: var(--accent); font-size: 11px; border-bottom: 1px solid #536039; }

/* Dashboard shell and filter rail. */
.app-layout { display: grid; grid-template-columns: 274px minmax(0, 1fr); align-items: start; }
.sidebar { position: sticky; top: 76px; height: calc(100dvh - 76px); overflow-y: auto; border-right: 1px solid var(--line); padding: 28px 22px 24px; scrollbar-width: thin; }
.sidebar-intro h2 { margin-top: 10px; font-size: 17px; font-weight: 500; letter-spacing: -.025em; }
.section-nav { margin: 25px -22px 24px; }
.section-nav a { display: grid; grid-template-columns: 25px 1fr 12px; gap: 10px; align-items: center; padding: 12px 22px; font-size: 12px; border-left: 2px solid transparent; }
.section-nav a[aria-current="location"] { background: var(--surface-raised); border-left-color: var(--accent); }
.section-nav a:hover { background: var(--surface); color: var(--accent); }
.section-nav a span:first-child { font-family: var(--mono); font-size: 9px; color: var(--muted); }
.section-nav a span:last-child { color: var(--accent); }
#addMoreBtn { width: 100%; margin-bottom: 26px; }
.filter-disclosure { border-top: 1px solid var(--line); }
.filter-disclosure summary { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; cursor: pointer; list-style: none; font-size: 13px; font-weight: 500; }
.filter-disclosure summary::-webkit-details-marker { display: none; }
.filter-disclosure summary i { margin-right: 8px; color: var(--muted); }
.disclosure-mark { color: var(--accent); font-family: var(--mono); font-size: 19px; }
.filter-disclosure[open] .disclosure-mark { transform: rotate(45deg); }
.filter-fields { display: grid; gap: 17px; }
.field { min-width: 0; }
.field label, .field-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-family: var(--mono); }
.preset-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px; }
.preset-grid button { min-height: 33px; padding: 6px 3px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 10px; }
.preset-grid button:hover { border-color: var(--accent); color: var(--ink); }
.preset-grid button.active { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.date-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.date-fields input { font-size: 10px; padding: 7px 5px; }
input::-webkit-calendar-picker-indicator { padding: 0; margin: 0; opacity: .6; }
.sidebar-bottom { padding-top: 16px; margin-top: 20px; border-top: 1px solid var(--line); }
.sidebar-bottom button { width: 100%; font-size: 11px; }
.dashboard { min-width: 0; width: 100%; max-width: 1760px; margin: auto; padding: 42px clamp(22px, 3vw, 52px) 24px; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 45px; }
.dashboard-header h1 { margin: 16px 0 9px; font-size: clamp(27px, 3.1vw, 48px); font-weight: 500; line-height: 1.12; letter-spacing: -.055em; }
.dashboard-header p { color: var(--muted); font-size: 13px; }
.archive-badge { border: 1px solid var(--line); padding: 13px 16px; font-size: 9px; line-height: 1.85; color: var(--muted); flex: 0 0 auto; }
.archive-badge strong { color: var(--accent); font-weight: 400; }
.dashboard section { scroll-margin-top: 96px; margin-bottom: 35px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; }
.section-heading h2 { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 500; }
.section-heading h2 > span:first-child { color: var(--accent); font-family: var(--mono); font-size: 10px; }
.meta-text { color: var(--muted); font-size: 9px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); }
.stat-card { min-width: 0; padding: 22px 22px 13px; background: var(--surface); border-right: 1px solid var(--line); }
.stat-card:last-child { border-right: 0; }
.stat-card:first-child { background: var(--accent); color: var(--bg); }
.stat-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.stat-label i { font-size: 12px; }
.stat-card:first-child .stat-label { color: #3d4c2b; }
.stat-number { font-size: clamp(25px, 2.65vw, 46px); font-weight: 500; letter-spacing: -.06em; line-height: 1.15; margin: 22px 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-rule { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 9px; }
.stat-card:first-child .stat-rule { border-color: #a5ce60; color: #3d4c2b; }
.charts-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 16px; }
.chart-panel { grid-column: span 3; min-width: 0; background: var(--surface); border: 1px solid var(--line); }
.chart-small { grid-column: span 2; }
.chart-panel .panel-heading { padding: 15px 18px; gap: 10px; }
.chart-panel h3 { font-size: 12px; font-weight: 500; }
.chart-panel .panel-mark { font-size: 15px; color: var(--muted); }
.chart-wrapper { position: relative; height: 290px; min-width: 0; padding: 20px 18px; }
.chart-small .chart-wrapper { height: 250px; }
.chart-wrapper canvas { display: block; max-width: 100%; }
.history-panel { background: var(--surface); border: 1px solid var(--line); }
.history-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.search-box { display: flex; align-items: center; gap: 12px; width: min(470px,100%); }
.search-box i { color: var(--accent); font-size: 12px; }
.search-box input { background: transparent; border: 0; height: 34px; padding: 6px 0; font-size: 12px; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
thead { background: var(--surface-raised); }
th { padding: 13px 18px; font-family: var(--mono); font-weight: 400; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
td { padding: 15px 18px !important; border-bottom: 1px solid var(--line-soft); color: #ced3c7; }
td:first-child, td:nth-child(4) { white-space: nowrap; font-family: var(--mono); font-size: 10px; color: var(--muted); }
td:nth-child(2) { min-width: 170px; }
td a { color: var(--ink) !important; font-weight: 500 !important; }
td a:hover { color: var(--accent) !important; text-decoration: underline; }
td:last-child span { display: inline-block; padding: 3px 7px !important; border: 1px solid var(--line); color: var(--muted); background: transparent !important; font-family: var(--mono); font-size: 9px; }
tr { border: 0 !important; }
tbody tr:hover { background: var(--surface-raised); }
.empty-history { text-align: center; padding: 48px 20px !important; color: var(--muted); font-family: var(--sans) !important; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; color: var(--muted); font-size: 10px; }
.page-size, .page-buttons { display: flex; align-items: center; gap: 8px; }
.page-size select { width: 63px; height: 31px; padding: 4px 8px; font-family: var(--mono); font-size: 10px; }
.page-buttons .button { min-height: 32px; width: 34px; padding: 0; font-size: 17px; }
.dashboard-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 22px 0 14px; color: #818a78; font-size: 9px; }

/* Existing runtime notices use Tailwind utilities; give them the same visual language. */
body > .fixed:not(#loadingOverlay) { top: auto; bottom: 18px; left: auto; right: 18px; max-width: calc(100vw - 36px); border: 1px solid var(--line); box-shadow: none; background: var(--surface-raised); color: var(--ink); font-size: 12px; }
body > .fixed.bg-red-500 { border-left: 3px solid #d79988; }
body > .fixed.bg-green-500 { border-left: 3px solid var(--accent); }
#loadingOverlay { background: var(--bg); }
#loadingOverlay .text-green-400, #loadingOverlay .text-green-200 { color: var(--accent); }
.file-info { padding: 12px 28px; background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 10px; }
.fade-in { animation: fade-in .25s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #424b38; }

@media (min-width: 1800px) { .dashboard { padding-left: 60px; padding-right: 60px; } }
@media (max-width: 1200px) {
    .chart-small { grid-column: span 3; }
    .chart-small:last-child { grid-column: span 6; }
    .archive-badge { display: none; }
    .stat-card { padding: 18px 15px 12px; }
    .landing { padding: 52px 38px 65px; gap: 40px; }
    .import-body { padding: 25px; }
}
@media (max-width: 900px) {
    .site-header { height: 64px; padding: 0 22px; }
    .app-layout { display: block; }
    .sidebar { position: static; height: auto; overflow: visible; padding: 18px 22px; border-right: 0; border-bottom: 1px solid var(--line); }
    .sidebar-intro { display: none; }
    .section-nav { display: flex; margin: 0 0 14px; border: 1px solid var(--line); }
    .section-nav a { flex: 1; grid-template-columns: 20px 1fr 10px; padding: 10px 13px; border-left: 0; }
    .section-nav a + a { border-left: 1px solid var(--line); }
    #addMoreBtn { width: auto; margin-bottom: 14px; }
    .filter-disclosure summary { padding: 14px 0 0; }
    .filter-disclosure[open] summary { padding-bottom: 18px; }
    .filter-fields { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
    .filter-fields > .button { align-self: end; }
    .sidebar-bottom { padding: 8px 0 0; margin-top: 12px; }
    .sidebar-bottom button { width: auto; min-height: 30px; padding: 5px 0; }
    .dashboard { padding: 30px 22px 16px; }
    .dashboard-header { margin-bottom: 30px; }
    .dashboard-header h1 { font-size: 36px; }
    .stat-number { font-size: 32px; }
    .landing { grid-template-columns: 1fr 1fr; gap: 28px; padding: 48px 25px 60px; }
    .landing-copy h1 { font-size: 52px; }
    .landing-description { font-size: 14px; }
    .import-body { padding: 21px; }
    .import-body > h2 { font-size: 25px; }
    .landing-footnote { flex-direction: column; gap: 8px; }
    .history-toolbar > .meta-text { display: none; }
}
@media (max-width: 650px) {
    .site-header { height: 62px; padding: 0 18px; }
    .brand { font-size: 15px; gap: 9px; }
    .brand-symbol { width: 30px; height: 30px; font-size: 20px; }
    .local-status { display: none; }
    .header-tools { gap: 0; }
    .landing { display: block; padding: 38px 20px 48px; }
    .landing-copy h1 { font-size: clamp(42px, 11vw, 65px); margin: 22px 0; }
    .landing-description { max-width: 390px; }
    .signal-art { margin-top: 28px; max-width: none; }
    .signal-bars { height: 65px; gap: 4px; margin-top: 12px; }
    .landing-footnote { flex-direction: row; justify-content: space-between; font-size: 8px; margin: 16px 0 32px; }
    .import-body { padding: 23px; }
    .sidebar { padding: 14px 16px; }
    .section-nav a { font-size: 11px; padding: 10px; gap: 4px; }
    .section-nav a span:last-child { display: none; }
    .dashboard { padding: 26px 16px 12px; }
    .dashboard-header h1 { font-size: 34px; max-width: 360px; }
    .dashboard-header p { font-size: 12px; }
    .eyebrow { font-size: 9px; }
    .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .stat-card:nth-child(2) { border-right: 0; }
    .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .stat-card { padding: 18px 16px 12px; }
    .stat-number { font-size: 34px; margin: 19px 0; }
    .section-heading { align-items: flex-start; }
    .section-heading > .meta-text { max-width: 135px; text-align: right; font-size: 8px; }
    .charts-grid { display: block; }
    .chart-panel { margin-bottom: 14px; }
    .chart-wrapper, .chart-small .chart-wrapper { height: 260px; padding: 17px 13px; }
    .history-toolbar { padding: 12px 14px; }
    .search-box { gap: 9px; }
    .search-box input { font-size: 11px; }
    .pagination { padding: 14px; flex-wrap: wrap; gap: 12px; }
    #showingInfo { order: 3; width: 100%; padding-top: 10px; border-top: 1px solid var(--line-soft); }
    .dashboard-footer { font-size: 8px; align-items: flex-start; }
    .dashboard-footer span:last-child { max-width: 145px; text-align: right; }
    .file-info { padding: 12px 18px; overflow-wrap: anywhere; }
}
@media (max-width: 370px) {
    .filter-fields { grid-template-columns: 1fr; }
    .landing-footnote { flex-direction: column; }
    .import-body { padding: 18px; }
    .brand { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Expanded analysis and additional filters share the dashboard's square controls. */
.chart-panel .chart-expand { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; flex: 0 0 auto; color: var(--accent); background: transparent; border: 1px solid var(--line); font-size: 20px; }
.chart-panel .chart-expand:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.advanced-filters { grid-column: 1 / -1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.advanced-filters > summary { padding: 14px 0 !important; color: var(--accent); }
.advanced-filters > summary::after { content: '+'; font-family: var(--mono); }
.advanced-filters[open] > summary::after { content: '−'; }
.advanced-fields { display: grid; gap: 17px; padding: 0 0 18px; }
.filter-hint { color: var(--muted); font-size: 11px; line-height: 1.6; }
.filter-error { grid-column: 1 / -1; color: #f1b198; border-left: 2px solid #d79988; padding: 8px 12px; font-size: 12px; }
body.detail-open { overflow: hidden; }
.chart-dialog { position: fixed; inset: 0; margin: auto; padding: 0; width: min(1200px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); color: var(--ink); border: 1px solid #617348; scrollbar-width: thin; }
.chart-dialog::backdrop { background: rgba(4, 7, 3, .85); }
.explorer-shell { min-width: 0; padding: 0 30px 20px; }
.explorer-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.explorer-header h2 { font-size: clamp(22px, 3vw, 34px); letter-spacing: -.04em; font-weight: 500; margin-top: 7px; }
.explorer-header .button { flex: 0 0 auto; }
.detail-scope { color: var(--muted); font-size: 12px; margin: 17px 0 20px; }
.detail-controls { display: grid; grid-template-columns: 2fr repeat(2, 1fr); gap: 15px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 18px 0; }
.detail-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); margin: 8px 0 16px; }
.detail-stats > div { padding: 18px; border-right: 1px solid var(--line); }
.detail-stats > div:last-child { border-right: 0; }
.detail-stats span { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.detail-stats strong { display: block; margin-top: 9px; font-size: 28px; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.detail-insight { font-size: 12px; color: var(--muted); line-height: 1.8; overflow-wrap: anywhere; margin-bottom: 20px; }
.detail-chart { position: relative; width: 100%; height: 420px; border: 1px solid var(--line); padding: 20px; }
#detailChartNote { margin: 10px 0 24px; }
.detail-table-heading { border-top: 1px solid var(--line); padding: 18px 0; }
.detail-table-heading h3 { font-size: 15px; margin-bottom: 6px; }
.detail-table td:first-child { font: inherit; min-width: 180px; max-width: 420px; white-space: normal; overflow-wrap: anywhere; }
.detail-table td:nth-child(2) { min-width: 0; }
.detail-table td:not(:first-child) { font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 900px) { .advanced-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .advanced-fields .filter-hint { grid-column: 1 / -1; } }
@media (max-width: 650px) {
    .chart-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
    .explorer-shell { padding: 0 14px 10px; }
    .explorer-header { padding: 16px 0; gap: 10px; }
    .explorer-header h2 { font-size: 23px; }
    .explorer-header .button { padding: 8px 10px; }
    .detail-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .detail-controls > .field:first-child { grid-column: 1 / -1; }
    .detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-stats > div:nth-child(2) { border-right: 0; }
    .detail-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .detail-stats strong { font-size: 24px; }
    .detail-chart { padding: 12px 8px; }
    .detail-actions .button { flex: 1; font-size: 11px; }
}
@media (max-width: 370px) { .advanced-fields { grid-template-columns: 1fr; } }
