.dashboard-page {
    height: 100dvh;
    overflow: hidden;
}

.dashboard-shell {
    height: calc(100dvh - var(--header-height) - 54px);
    min-height: 560px;
    display: grid;
    grid-template-columns: 292px minmax(480px, 1fr) 354px;
    grid-template-areas: "threat map intelligence";
    background: var(--line);
    gap: 1px;
}

.threat-rail {
    grid-area: threat;
}

.map-region {
    min-width: 0;
    min-height: 0;
    grid-area: map;
    background: var(--surface);
    display: grid;
    grid-template-rows: 42px minmax(0, 1fr);
}

.intelligence-rail {
    grid-area: intelligence;
}

.sidebar {
    min-width: 0;
    min-height: 0;
    position: relative;
    background: var(--surface);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: var(--line-strong) transparent;
    scrollbar-width: thin;
}

.sidebar::-webkit-scrollbar,
#news-feed::-webkit-scrollbar,
#osint-feed::-webkit-scrollbar,
.detail-body::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb,
#news-feed::-webkit-scrollbar-thumb,
#osint-feed::-webkit-scrollbar-thumb,
.detail-body::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: var(--line-strong);
}

.rail-header,
.map-statusbar {
    min-height: 42px;
    padding: 0 0.9rem;
    border-bottom: 1px solid var(--line);
    background: var(--surface-alt);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.rail-header h1,
.rail-header h2,
.map-statusbar h1 {
    margin: 0;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
}

.rail-count,
.map-coordinate {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 0.66rem;
}

.map-live-state {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--success);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: right;
    text-transform: uppercase;
}

.map-live-state[data-status="stale"] {
    color: var(--warning);
}

.map-live-state[data-status="unavailable"] {
    color: var(--danger);
}

.map-live-state::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.sidebar-widget {
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.widget-title {
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.widget-title .fa-icon {
    width: 0.9rem;
    height: 0.9rem;
    color: var(--gold);
}

.threat-level-status {
    margin: 0.1rem 0 0.45rem;
    color: var(--danger);
    font-family: var(--font-mono);
    font-size: clamp(1.55rem, 2.5vw, 2.1rem);
    font-weight: 600;
    line-height: 1;
}

.threat-level-desc {
    margin-bottom: 0.9rem;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.threat-meter {
    height: 5px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--surface-alt);
}

.threat-meter-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--warning), var(--danger));
    transition: width 420ms ease;
}

#incident-list,
#news-feed,
#osint-feed,
#ai-insights {
    min-height: 40px;
}

.incident-item,
.news-card,
.intel-post,
.analysis-content {
    position: relative;
    padding: 0.85rem 0;
    border-top: 1px solid var(--line);
}

.incident-item:first-child,
.news-card:first-child,
.intel-post:first-child,
.analysis-content:first-of-type {
    border-top: 0;
}

.incident-item {
    width: 100%;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    background: transparent;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 0.65rem;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    appearance: none;
}

.incident-item::after {
    position: absolute;
    inset: 0 -1rem;
    z-index: 0;
    background: var(--surface-alt);
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease;
}

.incident-item:hover::after {
    opacity: 1;
}

.incident-item:focus-visible {
    z-index: 2;
    outline: 2px solid var(--gold-bright);
    outline-offset: -2px;
}

.incident-item.priority::before {
    position: absolute;
    top: 0.8rem;
    bottom: 0.8rem;
    left: -1rem;
    width: 3px;
    background: var(--danger);
    content: "";
}

.incident-item--live::before {
    position: absolute;
    top: 0.8rem;
    bottom: 0.8rem;
    left: -1rem;
    width: 3px;
    background: var(--info);
    content: "";
}

.incident-icon,
.incident-content {
    position: relative;
    z-index: 1;
}

.incident-icon {
    font-size: 1.15rem;
    line-height: 1.3;
}

.incident-header,
.news-header,
.post-header,
.news-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.55rem;
}

.incident-location,
.news-title,
.post-author {
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
}

.incident-time,
.post-time,
.news-meta,
.news-region {
    flex: 0 0 auto;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 0.61rem;
}

.incident-details,
.news-summary,
.post-content,
.analysis-text {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

.incident-details {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.incident-tag,
.news-severity,
.post-platform,
.analysis-badge,
.stats-period {
    width: fit-content;
    margin-top: 0.55rem;
    padding: 0.18rem 0.38rem;
    border: 1px solid currentColor;
    border-radius: var(--radius-sm);
    display: inline-flex;
    color: var(--info);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

.incident-tag.high,
.severity-high {
    color: var(--danger);
}

.incident-tag.critical,
.severity-critical {
    color: #991b1b;
}

.incident-tag.medium,
.severity-medium {
    color: var(--warning);
}

.incident-tag.low,
.severity-info {
    color: var(--info);
}

.incident-tag--live {
    border-color: var(--info);
    background: color-mix(in srgb, var(--info) 10%, transparent);
    color: var(--info);
}

.map-frame {
    min-width: 0;
    min-height: 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #dce2e5;
}

#map,
.airspace-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.airspace-overlay {
    z-index: 700;
    display: none;
    background: var(--canvas);
}

.airspace-overlay iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-controls {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 850;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-md);
    background: var(--map-panel);
    box-shadow: var(--shadow-mid);
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px;
    backdrop-filter: blur(12px);
}

.map-control {
    min-height: 36px;
    padding: 0.48rem 0.62rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: #b7c5cf;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 500;
    white-space: nowrap;
}

.map-control .fa-icon {
    width: 0.8rem;
    height: 0.8rem;
}

.map-control:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.map-control.active,
.map-control[aria-pressed="true"] {
    border-color: rgba(247, 196, 50, 0.5);
    background: rgba(247, 196, 50, 0.15);
    color: var(--gold-bright);
}

.map-control:disabled,
.map-control.loading {
    cursor: wait;
    opacity: 0.55;
}

.map-overlay {
    position: absolute;
    bottom: 0.8rem;
    left: 0.8rem;
    z-index: 820;
    width: min(290px, calc(100% - 1.6rem));
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md);
    background: var(--map-panel);
    box-shadow: var(--shadow-mid);
    color: var(--map-panel-ink);
    backdrop-filter: blur(12px);
}

.map-overlay .widget-title {
    margin-bottom: 0.75rem;
    color: #b9c5ce;
}

.stats-header {
    justify-content: space-between;
}

.stats-period {
    margin: 0;
    color: var(--gold-bright);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.16);
}

.stat-item {
    padding: 0.55rem 0;
    background: var(--map-panel);
}

.stat-value {
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}

.stat-label,
.last-updated {
    color: #9fadb8;
    font-family: var(--font-mono);
    font-size: 0.58rem;
}

.stat-label {
    margin-top: 0.35rem;
}

.last-updated {
    margin-top: 0.7rem;
}

.incident-detail {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    width: min(390px, 92%);
    padding: 1rem;
    border-left: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-high);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    transform: translateX(0);
    transition: transform 200ms ease, visibility 200ms ease;
}

.incident-detail.hidden {
    transform: translateX(105%);
    visibility: hidden;
}

.detail-header {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    color: var(--ink);
    font-weight: 600;
}

#detail-close {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    color: var(--muted);
}

.detail-body {
    min-height: 0;
    padding: 1rem 0;
    overflow-y: auto;
    color: var(--muted);
    font-size: 0.85rem;
}

.detail-body .origin {
    margin-bottom: 0.8rem;
    color: var(--ink);
    font-weight: 600;
}

.live-track-state {
    width: fit-content;
    margin-top: 0.75rem;
    padding: 0.2rem 0.4rem;
    border: 1px solid currentColor;
    border-radius: var(--radius-sm);
    color: var(--info);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
}

.live-track-state--ended {
    color: var(--warning);
}

.detail-body .meta {
    margin-top: 0.5rem;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 0.67rem;
}

.detail-cta,
.full-intel-button,
.subscribe-button {
    min-height: 42px;
    padding: 0.65rem 0.8rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: var(--surface-inverse);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--canvas);
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.detail-cta:hover,
.full-intel-button:hover,
.subscribe-button:hover:not(:disabled) {
    background: var(--brand-strong);
    color: #ffffff;
}

.cluster-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cluster-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}

.news-header-text {
    min-width: 0;
}

.news-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-severity {
    flex: 0 0 auto;
    margin-top: 0;
}

.news-card a,
.post-link {
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 600;
}

.news-footer {
    margin-top: 0.55rem;
    align-items: center;
}

.sources-footnote {
    margin-top: 0.75rem;
    color: var(--faint);
    font-size: 0.66rem;
}

.post-platform {
    margin-top: 0.45rem;
}

.post-platform--bluesky {
    color: var(--info);
}

.post-platform--twitter,
.post-platform--osint {
    color: var(--muted);
}

.post-link {
    margin-top: 0.5rem;
    display: inline-flex;
    gap: 0.35rem;
}

.analysis-badge {
    margin-top: 0;
    color: var(--gold);
}

.analysis-content strong {
    color: var(--ink);
}

.subscribe-form {
    display: grid;
    gap: 0.65rem;
}

.subscribe-copy {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
}

.subscribe-label {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: uppercase;
}

.subscribe-form input,
.subscribe-form select {
    width: 100%;
    min-height: 42px;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    color: var(--ink);
    font-size: 0.78rem;
}

.subscribe-dual {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 0.45rem;
}

.subscribe-button {
    width: 100%;
    cursor: pointer;
}

.subscribe-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.subscribe-status {
    min-height: 1.1rem;
    margin: 0;
    color: var(--success);
    font-size: 0.7rem;
}

.subscribe-status.error {
    color: var(--danger);
}

.movement-timeline ul {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.movement-title {
    color: var(--ink);
    font-weight: 600;
}

.movement-step {
    padding: 0.45rem 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0.65rem;
}

.movement-time {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 0.66rem;
}

.movement-note em {
    color: var(--faint);
}

.sidebar-scroll-indicator {
    position: sticky;
    bottom: 0.75rem;
    left: calc(100% - 3.25rem);
    z-index: 20;
    width: 38px;
    height: 38px;
    padding: 0.65rem;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow-mid);
    color: var(--ink);
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease;
}

.sidebar-scroll-indicator.visible {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-scroll-indicator svg {
    width: 100%;
    height: 100%;
}

.signal-strip {
    height: 54px;
    border-top: 1px solid var(--line);
    background: #071321;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    color: #e9eef2;
}

.signal-label {
    padding: 0 1rem;
    border-right: 1px solid #294156;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--gold-bright);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.signal-list {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.signal-item {
    min-width: 0;
    padding: 0 0.9rem;
    border-right: 1px solid #294156;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.signal-severity {
    flex: 0 0 auto;
    color: #ff8991;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
}

.signal-severity--live {
    color: #67e8f9;
}

.signal-item--live {
    background: rgba(6, 182, 212, 0.08);
}

.signal-text {
    min-width: 0;
    overflow: hidden;
    color: #c1cbd3;
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: #071321;
    display: grid;
    place-content: center;
    gap: 1rem;
    color: #ffffff;
    text-align: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.loading-mark {
    width: 92px;
    height: 92px;
    margin: 0 auto;
    animation: loading-pulse 1.4s ease-in-out infinite;
}

.loading-text {
    color: #b8c4ce;
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

@keyframes loading-pulse {
    50% {
        opacity: 0.55;
        transform: scale(0.96);
    }
}

.leaflet-control-zoom a,
.leaflet-control-attribution {
    background: var(--map-panel) !important;
    color: #dce4e9 !important;
}

.leaflet-control-zoom {
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: var(--shadow-mid) !important;
}

.leaflet-control-zoom a {
    border-bottom-color: rgba(255, 255, 255, 0.14) !important;
}

.leaflet-control-attribution {
    padding: 2px 5px !important;
    font-family: var(--font-mono);
    font-size: 0.52rem !important;
}

.leaflet-control-attribution a {
    color: var(--gold-bright) !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    border-radius: var(--radius-md) !important;
    background: var(--surface) !important;
    color: var(--ink) !important;
    box-shadow: var(--shadow-high) !important;
}

.leaflet-popup-content {
    width: min(280px, 70vw) !important;
    max-height: 320px;
    margin: 0 !important;
    overflow-y: auto;
}

.popup-content {
    padding: 1rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.popup-content h4 {
    margin: 0 0 0.45rem;
    color: var(--ink);
}

.popup-footer {
    margin-top: 0.8rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.tag {
    margin-right: 0.25rem;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 0.6rem;
}

.details-btn {
    min-height: 34px;
    padding: 0.4rem 0.65rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--surface-inverse);
    color: var(--canvas);
    font-size: 0.7rem;
    font-weight: 600;
}

.evidence-links {
    margin-top: 0.75rem;
    border-top: 1px solid var(--line);
}

.evidence-title {
    padding: 0.65rem 0 0.35rem;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
}

.evidence-link {
    width: 100%;
    min-height: 34px;
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    color: var(--info);
    font-size: 0.68rem;
    line-height: 1.35;
    text-decoration: none;
}

.evidence-link + .evidence-link {
    border-top: 1px solid var(--line);
}

.evidence-link:hover,
.evidence-link:focus-visible {
    color: var(--ink);
    text-decoration: underline;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background: rgba(7, 19, 33, 0.55) !important;
}

.marker-cluster div {
    border: 2px solid var(--gold-bright);
    background: #071321 !important;
    color: #ffffff;
    font-family: var(--font-mono);
    font-weight: 600;
}

.incident-marker-shell {
    background: transparent;
    border: 0;
}

.incident-marker {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: var(--info);
    box-shadow: 0 0 0 3px rgba(7, 19, 33, 0.36), var(--shadow-mid);
    display: grid;
    place-items: center;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
}

.incident-marker--high {
    background: #b4232d;
}

.incident-marker--critical {
    background: #7f1d1d;
    box-shadow: 0 0 0 3px rgba(127, 29, 29, 0.28), var(--shadow-high);
}

.incident-marker--medium {
    background: #9b6500;
}

.live-uav-marker-shell {
    background: transparent;
    border: 0;
}

.live-uav-marker {
    width: 42px;
    height: 42px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #06788b;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.3), var(--shadow-high);
    display: grid;
    place-items: center;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
}

.live-uav-marker--active {
    animation: live-uav-pulse 1.8s ease-out infinite;
}

.live-uav-marker--ended {
    background: #9b6500;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.26), var(--shadow-mid);
}

.live-uav-marker--stale {
    background: #64748b;
    box-shadow: 0 0 0 4px rgba(100, 116, 139, 0.26), var(--shadow-mid);
}

.popup-live-meta,
.live-origin-popup {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    line-height: 1.45;
}

@keyframes live-uav-pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.34), var(--shadow-high);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(6, 182, 212, 0.08), var(--shadow-high);
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-uav-marker--active {
        animation: none;
    }
}

@media (max-width: 1400px) {
    .dashboard-shell {
        grid-template-columns: 264px minmax(430px, 1fr) 318px;
    }

    .map-control__label {
        display: none;
    }

    .map-control {
        width: 36px;
        padding: 0;
        justify-content: center;
    }
}

@media (max-width: 1120px) {
    .dashboard-page {
        height: auto;
        overflow: auto;
    }

    .dashboard-shell {
        height: auto;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "map map"
            "threat intelligence";
    }

    .map-region {
        height: min(68vh, 680px);
        min-height: 520px;
    }

    .sidebar {
        overflow: visible;
    }

    .signal-strip {
        position: static;
    }
}

@media (max-width: 760px) {
    .dashboard-shell {
        display: flex;
        flex-direction: column;
    }

    .map-region {
        height: 68vh;
        min-height: 470px;
        order: 1;
    }

    .threat-rail {
        order: 2;
    }

    .intelligence-rail {
        order: 3;
    }

    .map-coordinate {
        display: none;
    }

    .map-statusbar h1 {
        flex: 0 1 auto;
    }

    .map-live-state {
        max-width: 58%;
        font-size: 0.58rem;
    }

    .map-controls {
        top: 0.55rem;
        right: 0.55rem;
        left: 0.55rem;
        justify-content: space-between;
    }

    .map-control {
        width: calc(20% - 2px);
    }

    .map-overlay {
        right: 0.55rem;
        bottom: 0.55rem;
        left: 0.55rem;
        width: auto;
    }

    .incident-detail {
        top: auto;
        width: 100%;
        height: min(72%, 520px);
        border-top: 1px solid var(--line);
        border-left: 0;
        transform: translateY(0);
    }

    .incident-detail.hidden {
        transform: translateY(105%);
    }

    .signal-strip {
        height: auto;
        grid-template-columns: 1fr;
    }

    .signal-label {
        min-height: 38px;
        border-right: 0;
        border-bottom: 1px solid #294156;
    }

    .signal-list {
        grid-template-columns: 1fr;
    }

    .signal-item {
        min-height: 42px;
        border-right: 0;
        border-bottom: 1px solid #294156;
    }
}

@media (max-width: 480px) {
    .map-region {
        height: 72vh;
        min-height: 430px;
    }

    .map-overlay {
        padding: 0.7rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .subscribe-dual,
    .movement-step {
        grid-template-columns: 1fr;
    }
}