/* Reuses the program's navy/white panels and monospace controls. */
.app-layout.swing-map-mode { grid-template-columns: 1fr !important; }
.swing-map-mode #race-selector, .swing-map-mode #election-sidebar, .swing-map-mode #house-sidebar, .swing-map-mode #county-panel,
.swing-map-mode #national-legend-panel, .swing-map-mode #margin-legend-panel { display: none !important; }
.swing-map-mode #national-office-toggle { display: flex !important; }
.swing-map-mode #map-tools-panel, .swing-map-mode #map-type-toggle, .swing-map-mode #cities-legend,
.swing-map-mode #sidebar-toggle-left, .swing-map-mode #sidebar-toggle-right { display: none !important; }
.swing-controls { position: absolute; top: .65rem; left: 50%; transform: translateX(-50%); z-index: 15; display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; width: min(660px, calc(100% - 6rem)); padding: .55rem .7rem; border: 1px solid #d9dce3; border-radius: 5px; background: #fff; box-shadow: 0 2px 8px #1a1a2e18; font-size: .72rem; }
.swing-controls[hidden], .swing-key[hidden] { display: none; }
.swing-trend-title { display: flex; align-items: center; justify-content: center; flex: 1; }
.swing-controls button { font: inherit; border: 1px solid #d9dce3; background: #f4f5f8; padding: .3rem .45rem; cursor: pointer; }
.swing-controls button.active { background: #1a1a2e; color: #fff; }
#swing-status { width: 100%; text-align: center; color: #667085; font-size: .65rem; }
.swing-key { position: absolute; left: .8rem; bottom: .8rem; z-index: 15; width: min(350px,calc(100% - 1.6rem)); padding: .6rem .7rem; background: #fff; border: 1px solid #d9dce3; border-radius: 5px; box-shadow: 0 2px 8px #1a1a2e18; font-size: .65rem; line-height: 1.5; }
.swing-key strong { display: block; color: #1a1a2e; margin-bottom: .25rem; }
.swing-key-scale { display: flex; gap: .3rem; justify-content: space-between; margin-bottom: .35rem; }
.swing-key-scale span { display: flex; flex-direction: column; flex: 1; align-items: center; }
.swing-key-scale i { display: block; width: 100%; height: 8px; border: 1px solid #d9dce3; }
.swing-key-note { color: #667085; margin-top: .25rem; }
.swing-label { fill: #1a1a2e; font-size: 10px; }
.swing-tooltip-section { padding-top: .4rem; margin-top: .3rem; border-top: 1px solid #d9dce3; }
