body.sound-ui .theme-switch{display:flex;flex-shrink:0;gap:2px;padding:2px;border:1px solid var(--line);border-radius:4px;background:var(--bg)}
body.sound-ui .theme-switch button{border:0;border-radius:2px;padding:5px 9px;background:transparent;color:var(--text);font:10px 'JetBrains Mono',monospace;cursor:pointer}
body.sound-ui .theme-switch button[aria-pressed=true]{background:var(--surface);color:var(--ink)}
html[data-theme=dark]{--bg:#13171d;--surface:#1b212a;--ink:#e0e7f1;--muted:#8b9ab0;--text:#a2b0c4;--line:#303b4b;--blue:#92b0ed;--blue-soft:#273752;--teal:#8cbbad;color-scheme:dark}
html[data-theme=dark] body.sound-ui{--dim:#8e9db2;--accent:#a0bcef;--inset:#171d25;--hover:#222d3c}
html[data-theme=dark] body.sound-ui .brand-light,
html[data-theme=dark] body.sound-ui .breadcrumb strong,
html[data-theme=dark] body.sound-ui .dataset-strip strong,
html[data-theme=dark] body.sound-ui .metric-top,
html[data-theme=dark] body.sound-ui .candidate-tag,
html[data-theme=dark] body.sound-ui .span-value,
html[data-theme=dark] body.sound-ui .drawer-tally,
html[data-theme=dark] body.sound-ui .drawer-section-title,
html[data-theme=dark] body.sound-ui .review-actions strong,
html[data-theme=dark] body.sound-ui .source-evidence strong,
html[data-theme=dark] body.sound-ui .source-evidence summary{color:var(--text)}
html[data-theme=dark] body.sound-ui .brand-icon,
html[data-theme=dark] body.sound-ui .window-label>span{color:var(--accent)}
html[data-theme=dark] body.sound-ui .nav-label,
html[data-theme=dark] body.sound-ui .sidebar-dataset,
html[data-theme=dark] body.sound-ui .breadcrumb,
html[data-theme=dark] body.sound-ui .dataset-detail,
html[data-theme=dark] body.sound-ui .metric-caption,
html[data-theme=dark] body.sound-ui .number-unit,
html[data-theme=dark] body.sound-ui .comparison-legend,
html[data-theme=dark] body.sound-ui .audit-table th,
html[data-theme=dark] body.sound-ui .group-other,
html[data-theme=dark] body.sound-ui .group-subtext,
html[data-theme=dark] body.sound-ui .table-footer,
html[data-theme=dark] body.sound-ui .page-footer,
html[data-theme=dark] body.sound-ui .footer-brand,
html[data-theme=dark] body.sound-ui .eyebrow,
html[data-theme=dark] body.sound-ui .drawer-summary span,
html[data-theme=dark] body.sound-ui .timeline-id,
html[data-theme=dark] body.sound-ui .timeline-time,
html[data-theme=dark] body.sound-ui .timeline-gap,
html[data-theme=dark] body.sound-ui .timeline-outside,
html[data-theme=dark] body.sound-ui .review-actions span,
html[data-theme=dark] body.sound-ui .source-evidence,
html[data-theme=dark] body.sound-ui .slider-scale{color:var(--dim)}
html[data-theme=dark] body.sound-ui .nav-item{color:#a4b2c7}
html[data-theme=dark] body.sound-ui .nav-item:hover,
html[data-theme=dark] body.sound-ui .icon-button:hover,
html[data-theme=dark] body.sound-ui .window-controls button:hover{background:var(--hover);color:var(--ink)}
html[data-theme=dark] body.sound-ui .nav-item.active{background:var(--blue-soft);color:var(--accent)}
html[data-theme=dark] body.sound-ui .nav-count,
html[data-theme=dark] body.sound-ui .nav-count.neutral{background:#2a3545;color:#b1c4df}
html[data-theme=dark] body.sound-ui .button.primary{background:#6c8dd0;border-color:#6c8dd0;color:#101b2c}
html[data-theme=dark] body.sound-ui .button.primary:hover{background:#85a4e0}
html[data-theme=dark] body.sound-ui .button.secondary,
html[data-theme=dark] body.sound-ui .dropdown,
html[data-theme=dark] body.sound-ui .dataset-strip,
html[data-theme=dark] body.sound-ui .date-panel,
html[data-theme=dark] body.sound-ui .metrics,
html[data-theme=dark] body.sound-ui .panel,
html[data-theme=dark] body.sound-ui .window-controls,
html[data-theme=dark] body.sound-ui .custom-window,
html[data-theme=dark] body.sound-ui .select-field select,
html[data-theme=dark] body.sound-ui .filter-button,
html[data-theme=dark] body.sound-ui .row-arrow,
html[data-theme=dark] body.sound-ui .resolve-toggle,
html[data-theme=dark] body.sound-ui .drawer,
html[data-theme=dark] body.sound-ui .drawer-header,
html[data-theme=dark] body.sound-ui .toast{background:var(--surface);border-color:var(--line);color:var(--text)}
html[data-theme=dark] body.sound-ui .button.secondary:hover,
html[data-theme=dark] body.sound-ui .resolve-toggle:hover{background:var(--hover);border-color:#526785;color:var(--accent)}
html[data-theme=dark] body.sound-ui .metric,
html[data-theme=dark] body.sound-ui .panel,
html[data-theme=dark] body.sound-ui .policy-tabs,
html[data-theme=dark] body.sound-ui .policy-tabs button,
html[data-theme=dark] body.sound-ui .search-field,
html[data-theme=dark] body.sound-ui .search-field kbd,
html[data-theme=dark] body.sound-ui .date-panel input,
html[data-theme=dark] body.sound-ui .custom-window input,
html[data-theme=dark] body.sound-ui .review-actions{border-color:var(--line)}
html[data-theme=dark] body.sound-ui .metric-number,
html[data-theme=dark] body.sound-ui .candidate-values strong,
html[data-theme=dark] body.sound-ui .group-name,
html[data-theme=dark] body.sound-ui .timeline-name,
html[data-theme=dark] body.sound-ui .drawer-summary strong,
html[data-theme=dark] body.sound-ui .empty-state h3{color:var(--ink)}
html[data-theme=dark] body.sound-ui .metric-icon,
html[data-theme=dark] body.sound-ui .subtle-icon{color:var(--muted)}
html[data-theme=dark] body.sound-ui .policy-tabs,
html[data-theme=dark] body.sound-ui .results-footer,
html[data-theme=dark] body.sound-ui .window-toolbar,
html[data-theme=dark] body.sound-ui .audit-table thead,
html[data-theme=dark] body.sound-ui .table-footer,
html[data-theme=dark] body.sound-ui .source-evidence pre{background:var(--inset);border-color:var(--line);color:var(--dim)}
html[data-theme=dark] body.sound-ui .policy-tabs button,
html[data-theme=dark] body.sound-ui .window-controls button{color:var(--text)}
html[data-theme=dark] body.sound-ui .policy-tabs button.selected,
html[data-theme=dark] body.sound-ui .window-controls button.selected,
html[data-theme=dark] body.sound-ui .filter-button[aria-pressed=true]{background:var(--blue-soft);color:var(--accent);border-color:#526785}
html[data-theme=dark] body.sound-ui .candidate-row .candidate-avatar,
html[data-theme=dark] body.sound-ui .group-avatar,
html[data-theme=dark] body.sound-ui .ballot-badge,
html[data-theme=dark] body.sound-ui .ballot-badge.hot,
html[data-theme=dark] body.sound-ui .count-pill{background:#263448;color:#b1c6e9;border-color:#354a68}
html[data-theme=dark] body.sound-ui .bar-track,
html[data-theme=dark] body.sound-ui .span-bar{background:#222c3a}
html[data-theme=dark] body.sound-ui .raw-bar,
html[data-theme=dark] body.sound-ui .legend-dot.raw{background:#3a4f70}
html[data-theme=dark] body.sound-ui .adjusted-bar,
html[data-theme=dark] body.sound-ui .legend-dot.adjusted,
html[data-theme=dark] body.sound-ui .span-bar i{background:#92b0e7}
html[data-theme=dark] body.sound-ui .candidate-values,
html[data-theme=dark] body.sound-ui .candidate-values em,
html[data-theme=dark] body.sound-ui .group-other strong{color:#a2b4ce}
html[data-theme=dark] body.sound-ui .results-footer strong{color:var(--accent)}
html[data-theme=dark] body.sound-ui .window-label,
html[data-theme=dark] body.sound-ui .custom-window label,
html[data-theme=dark] body.sound-ui .search-field input{color:var(--text)}
html[data-theme=dark] body.sound-ui .search-field input::placeholder{color:var(--dim)}
html[data-theme=dark] body.sound-ui .search-field kbd{color:var(--dim)}
html[data-theme=dark] body.sound-ui .audit-table td{border-color:#293343;color:var(--text)}
html[data-theme=dark] body.sound-ui .audit-table tbody tr:hover{background:#202a38}
html[data-theme=dark] body.sound-ui .mixed-tag{background:#3a3020;color:#d5b681}
html[data-theme=dark] body.sound-ui .resolve-toggle.resolved,
html[data-theme=dark] body.sound-ui .earliest-tag{background:#223a32;border-color:#365346;color:#a1ccb7}
html[data-theme=dark] body.sound-ui .decision{color:#a1ccb7}
html[data-theme=dark] body.sound-ui .decision.removed{color:#d2ae8c}
html[data-theme=dark] body.sound-ui .drawer-backdrop{background:#03060999}
html[data-theme=dark] body.sound-ui .timeline-ballot:not(:last-child):before{background:var(--line)}
html[data-theme=dark] body.sound-ui .timeline-dot{border-color:#2a3b57;background:#92b0e7}
html[data-theme=dark] body.sound-ui .timeline-ballot.outside .timeline-dot{border-color:#29323f;background:#74849a}
html[data-theme=dark] body.sound-ui .error,
html[data-theme=dark] body.sound-ui .toast.error{color:#eeaaaa;border-color:#855151}
@media(max-width:760px){body.sound-ui .theme-switch button{font-size:9px;padding:6px 7px}body.sound-ui .topbar{gap:10px}body.sound-ui .breadcrumb{min-width:0;gap:8px}body.sound-ui .breadcrumb strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

body.sound-ui .empty-import{min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:56px 24px;margin-bottom:20px}
body.sound-ui .empty-import-icon{display:grid;place-items:center;width:46px;height:46px;border:1px solid var(--line);border-radius:5px;background:var(--bg);color:var(--text);margin-bottom:20px}
body.sound-ui .empty-import-icon svg{width:23px;height:23px}
body.sound-ui .empty-import h2{font-size:18px;margin:0 0 10px;color:var(--ink)}
body.sound-ui .empty-import p{color:var(--text);font-size:12px;line-height:1.7;margin:0 0 22px}
body.sound-ui .empty-import .button{min-height:36px;padding:9px 14px}
body.sound-ui .import-local{color:var(--muted);font:9px 'JetBrains Mono',monospace;line-height:1.8;margin-top:18px}
body.sound-ui .nav-item:disabled{cursor:default;opacity:.45}
body.sound-ui .source-type:empty{display:none}
@media(max-width:760px){body.sound-ui .empty-import{min-height:330px;padding:40px 18px}body.sound-ui .heading-actions{flex-wrap:wrap;gap:7px}}
