    /* ==========================================================================
       LIBTRAIN PUBLIC GLOBAL RAILWAY RADAR (FUSION: RADARDETRENES ORDER + LIBTRAIN)
       ========================================================================== */
    .lt-radar-section {
        width: 100%;
        max-width: 1380px;
        margin: 0 auto;
        padding: 32px 24px;
        position: relative;
        z-index: 12;
    }

    .lt-radar-shell {
        background: var(--surface, #1C1E24);
        border: 1px solid var(--border, rgba(255, 200, 32, 0.28));
        border-radius: 26px;
        padding: 26px;
        box-shadow: 0 24px 65px rgba(0, 0, 0, 0.55);
        overflow: hidden;
    }

    [data-theme="light"] .lt-radar-shell {
        background: #FFFFFF;
        border-color: rgba(15, 23, 42, 0.12);
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    }

    .lt-radar-top-bar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 20px;
    }

    .lt-radar-live-pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 5px 13px;
        border-radius: 999px;
        background: rgba(16, 185, 129, 0.14);
        border: 1px solid rgba(16, 185, 129, 0.35);
        color: #10B981;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.74rem;
        font-weight: 800;
        letter-spacing: 0.5px;
    }

    .lt-radar-pulse {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #10B981;
        box-shadow: 0 0 10px #10B981;
        animation: ltRadarPulse 1.6s infinite;
    }

    @keyframes ltRadarPulse {
        0%, 100% { transform: scale(1); opacity: 1; }
        50% { transform: scale(1.35); opacity: 0.55; }
    }

    /* KPI Strip */
    .lt-radar-kpi-grid {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 18px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 2px;
    }
    .lt-radar-kpi-grid::-webkit-scrollbar {
        display: none;
    }

    .lt-radar-kpi-card {
        flex: 1 0 auto;
        min-width: max-content;
        background: var(--surface-card, #14161C);
        border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
        border-radius: 16px;
        padding: 10px 14px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        gap: 11px;
    }

    [data-theme="light"] .lt-radar-kpi-card {
        background: #F8FAFC;
        border-color: #E2E8F0;
    }

    .lt-radar-kpi-val {
        font-family: 'JetBrains Mono', monospace;
        font-size: 1.25rem;
        line-height: 1.15;
        font-weight: 900;
        color: var(--primary, #FFC820);
        white-space: nowrap;
    }

    [data-theme="light"] .lt-radar-kpi-val {
        color: #B45309;
    }

    .lt-radar-kpi-lbl {
        font-size: 0.72rem;
        line-height: 1.2;
        font-weight: 700;
        color: var(--text-muted, #94A3B8);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    /* Ordered Navigation Tabs (7 Sections matching RadarDeTrenes + LibTrain) */
    .lt-radar-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
        margin-bottom: 18px;
        border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
        padding-bottom: 14px;
    }

    .lt-radar-tab-btn {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 9px 15px;
        border-radius: 12px;
        border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
        background: var(--surface-card, rgba(255, 255, 255, 0.04));
        color: var(--text-main, #F2F4F8);
        font-weight: 700;
        font-size: 0.83rem;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    [data-theme="light"] .lt-radar-tab-btn {
        background: #F1F5F9;
        color: #1E293B;
        border-color: #CBD5E1;
    }

    .lt-radar-tab-btn:hover {
        border-color: var(--primary, #FFC820);
    }

    .lt-radar-tab-btn.active {
        background: linear-gradient(135deg, #FFC820 0%, #D4A310 100%);
        color: #0B0C0E !important;
        border-color: #FFC820;
        font-weight: 800;
        box-shadow: 0 6px 20px rgba(255, 200, 32, 0.3);
    }

    /* Filter Chips & Search Bar */
    .lt-radar-controls {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
    }

    .lt-radar-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .lt-radar-filter-pill {
        padding: 6px 12px;
        border-radius: 999px;
        font-size: 0.76rem;
        font-weight: 700;
        border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
        background: transparent;
        color: var(--text-muted, #94A3B8);
        cursor: pointer;
        transition: all 0.18s;
    }

    .lt-radar-filter-pill.active,
    .lt-radar-filter-pill:hover {
        background: rgba(255, 200, 32, 0.16);
        border-color: var(--primary, #FFC820);
        color: var(--text-main, #FFFFFF);
    }

    [data-theme="light"] .lt-radar-filter-pill.active,
    [data-theme="light"] .lt-radar-filter-pill:hover {
        background: rgba(217, 155, 0, 0.15);
        border-color: #B45309;
        color: #0F172A;
    }

    .lt-radar-search-input {
        min-width: 250px;
        padding: 9px 14px;
        border-radius: 12px;
        border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.14));
        background: var(--surface-card, #14161C);
        color: var(--text-main, #F2F4F8);
        font-size: 0.84rem;
        outline: none;
    }

    [data-theme="light"] .lt-radar-search-input {
        background: #F8FAFC;
        border-color: #CBD5E1;
        color: #0F172A;
    }

    /* Main Split Layout: OpenStreetMap + Live Train List */
    .lt-radar-main-grid {
        display: grid;
        grid-template-columns: 1.6fr 1fr;
        gap: 18px;
        align-items: stretch;
    }

    .lt-radar-map-wrap {
        position: relative;
        min-height: 540px;
        border-radius: 18px;
        overflow: hidden;
        border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
        background: #0D1117;
    }

    [data-theme="light"] .lt-radar-map-wrap {
        background: #E2E8F0;
        border-color: #CBD5E1;
    }

    #ltPublicRadarMap {
        width: 100%;
        height: 100%;
        min-height: 540px;
        z-index: 1;
    }

    /* ==========================================================================
       OPENSTREETMAP OPEN-SOURCE AUTOMATIC DARK / LIGHT / SYSTEM THEME FILTER
       ========================================================================== */
    :root:not([data-theme="light"]) #ltPublicRadarMap .leaflet-tile-pane .lt-osm-base-layer {
        filter: invert(100%) hue-rotate(180deg) brightness(93%) contrast(91%) saturate(82%);
    }

    :root[data-theme="light"] #ltPublicRadarMap .leaflet-tile-pane .lt-osm-base-layer {
        filter: none;
    }

    .lt-map-overlay-toolbar {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 500;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .lt-map-tool-chip {
        padding: 6px 11px;
        border-radius: 10px;
        font-size: 0.73rem;
        font-weight: 800;
        background: rgba(15, 23, 42, 0.86);
        backdrop-filter: blur(10px);
        color: #F8FAFC;
        border: 1px solid rgba(255, 200, 32, 0.35);
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    [data-theme="light"] .lt-map-tool-chip {
        background: rgba(255, 255, 255, 0.92);
        color: #0F172A;
        border-color: rgba(15, 23, 42, 0.18);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .lt-map-tool-chip.active {
        background: #FFC820;
        color: #0B0C0E;
        border-color: #FFC820;
    }

    .lt-map-legend-bar {
        position: absolute;
        bottom: 12px;
        left: 12px;
        z-index: 500;
        background: rgba(15, 23, 42, 0.86);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        padding: 6px 12px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        font-size: 0.72rem;
        font-weight: 700;
        color: #F8FAFC;
    }

    [data-theme="light"] .lt-map-legend-bar {
        background: rgba(255, 255, 255, 0.92);
        color: #0F172A;
        border-color: rgba(15, 23, 42, 0.15);
    }

    .lt-radar-side-panel {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-height: 540px;
    }

    .lt-radar-train-list {
        flex: 1;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-right: 4px;
    }

    .lt-radar-train-item {
        background: var(--surface-card, #14161C);
        border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
        border-radius: 14px;
        padding: 12px 14px;
        cursor: pointer;
        transition: all 0.18s ease;
    }

    [data-theme="light"] .lt-radar-train-item {
        background: #F8FAFC;
        border-color: #E2E8F0;
    }

    .lt-radar-train-item:hover,
    .lt-radar-train-item.selected {
        border-color: var(--primary, #FFC820);
        transform: translateX(2px);
    }

    /* Map Marker Badges with Company Color + Mini Operator Logo / Freight Locomotive Icon */
    .lt-custom-train-pin {
        background: transparent !important;
        border: none !important;
    }

    .lt-map-train-marker {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 2px 6px 2px 3px;
        border-radius: 999px;
        color: #FFFFFF;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.62rem;
        font-weight: 900;
        letter-spacing: 0.2px;
        border: 1.5px solid rgba(11, 12, 14, 0.9);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
        white-space: nowrap;
        cursor: pointer;
        transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease;
    }

    .lt-map-train-marker:hover,
    .lt-map-train-marker.active {
        transform: scale(1.18);
        z-index: 999 !important;
        border-color: #FFFFFF;
    }

    .lt-map-op-logo {
        width: 17px;
        height: 17px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.28);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.54rem;
        font-weight: 900;
        flex-shrink: 0;
        border: 1px solid rgba(255, 255, 255, 0.35);
    }

    /* Leaflet Custom Train Info Tabbed Popup */
    .leaflet-popup-content-wrapper {
        background: var(--surface, #14171F) !important;
        color: var(--text-main, #F2F4F8) !important;
        border: 1px solid var(--border, rgba(255, 200, 32, 0.4));
        border-radius: 16px !important;
        padding: 0 !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75) !important;
    }

    [data-theme="light"] .leaflet-popup-content-wrapper {
        background: #FFFFFF !important;
        color: #0F172A !important;
        border-color: rgba(15, 23, 42, 0.16);
    }

    .leaflet-popup-content {
        margin: 12px 14px !important;
        min-width: 285px;
    }

    .leaflet-popup-tip {
        background: var(--surface, #14171F) !important;
    }

    [data-theme="light"] .leaflet-popup-tip {
        background: #FFFFFF !important;
    }

    /* Interactive Train Detail Sub-Tabs (Shown inside Popup & Side Inspector) */
    .lt-train-subtabs {
        display: flex;
        gap: 4px;
        margin: 8px 0;
        padding: 3px;
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.28);
        border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    }

    [data-theme="light"] .lt-train-subtabs {
        background: #F1F5F9;
        border-color: #CBD5E1;
    }

    .lt-train-subtab-btn {
        flex: 1;
        padding: 5px 6px;
        border-radius: 7px;
        border: none;
        background: transparent;
        color: var(--text-muted, #94A3B8);
        font-size: 0.69rem;
        font-weight: 800;
        cursor: pointer;
        transition: all 0.16s ease;
    }

    .lt-train-subtab-btn.active {
        background: var(--primary, #FFC820);
        color: #0B0C0E;
    }

    .lt-train-kv-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin-bottom: 8px;
    }

    .lt-train-kv-box {
        padding: 6px 8px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.07));
        font-size: 0.72rem;
    }

    [data-theme="light"] .lt-train-kv-box {
        background: #F8FAFC;
        border-color: #E2E8F0;
    }

    /* Station Board Digital Teleindicator */
    .lt-board-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .lt-board-card {
        background: #0B0E14;
        border: 1px solid rgba(255, 200, 32, 0.28);
        border-radius: 16px;
        padding: 16px;
        color: #F8FAFC;
        font-family: 'JetBrains Mono', monospace;
    }

    .lt-board-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.78rem;
    }

    .lt-board-table th {
        text-align: left;
        padding: 8px 6px;
        color: #94A3B8;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.7rem;
        text-transform: uppercase;
    }

    .lt-board-table td {
        padding: 9px 6px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Full Structured Table for Active Trains & Delays */
    .lt-data-table-wrap {
        width: 100%;
        overflow-x: auto;
        border-radius: 16px;
        border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
        background: var(--surface-card, #14161C);
    }

    [data-theme="light"] .lt-data-table-wrap {
        background: #FFFFFF;
        border-color: #E2E8F0;
    }

    .lt-data-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.83rem;
    }

    .lt-data-table th {
        text-align: left;
        padding: 12px 14px;
        font-size: 0.73rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-muted, #94A3B8);
        border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
        background: rgba(255, 200, 32, 0.05);
    }

    .lt-data-table td {
        padding: 11px 14px;
        border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.05));
        color: var(--text-main, #F2F4F8);
    }

    [data-theme="light"] .lt-data-table td {
        color: #0F172A;
        border-bottom-color: #F1F5F9;
    }

    /* Cards Grid for Cercanías by City & Rolling Stock */
    .lt-catalog-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
        gap: 14px;
    }

    .lt-catalog-card {
        background: var(--surface-card, #14161C);
        border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
        border-radius: 16px;
        padding: 16px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 10px;
        transition: all 0.2s ease;
    }

    [data-theme="light"] .lt-catalog-card {
        background: #F8FAFC;
        border-color: #E2E8F0;
    }

    .lt-catalog-card:hover {
        border-color: var(--primary, #FFC820);
        transform: translateY(-2px);
    }

    /* Normal mode transparent wrapper for HUD */
    .lt-radar-hud-floating {
        display: contents;
    }

    /* Full-Viewport Console (/radar-en-vivo) — Full-Width Top KPIs Strip + Map Left + Contained Right Sidebar */
    .lt-radar-section--full {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: calc(100dvh - 85px);
        min-height: 560px;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }

    .lt-radar-shell--full {
        display: grid;
        grid-template-columns: 400px 1fr;
        grid-template-rows: auto auto auto auto minmax(0, 1fr);
        align-items: stretch;
        width: 100%;
        height: 100%;
        overflow: hidden;
        padding: 0;
        border: none;
        border-radius: 0;
        background: var(--surface-card, #0B0F17);
        box-shadow: none;
        transition: grid-template-columns 0.25s ease;
    }

    .lt-radar-section--full.lt-panel-hidden .lt-radar-shell--full {
        grid-template-columns: 0px 1fr;
    }

    /* Full-Width Railway News & Alerts Ticker (Above KPI Strip) */
    .lt-radar-news-ticker {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 34px;
        padding: 4px 12px;
        background: rgba(15, 23, 42, 0.92);
        border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
        overflow: hidden;
        font-size: 0.75rem;
        line-height: 1.3;
    }
    .lt-radar-section--full .lt-radar-news-ticker {
        grid-column: 1 / 3;
        grid-row: 1;
    }
    .lt-radar-section:not(.lt-radar-section--full) .lt-radar-news-ticker {
        border-radius: 12px;
        border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
        margin-bottom: 12px;
    }
    [data-theme="light"] .lt-radar-news-ticker {
        background: #F1F5F9;
        border-color: #CBD5E1;
        color: #0F172A;
    }
    .lt-news-label {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 3px 8px;
        border-radius: 6px;
        font-size: 0.67rem;
        font-weight: 900;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        background: rgba(255, 200, 32, 0.16);
        color: #FFC820;
        border: 1px solid rgba(255, 200, 32, 0.4);
    }
    [data-theme="light"] .lt-news-label {
        background: #FEF3C7;
        color: #B45309;
        border-color: #F59E0B;
    }
    @keyframes ltRfigAlertBlink {
        0%, 100% {
            background: #FFC820;
            color: #0B0C0E;
            border-color: #FFFFFF;
            box-shadow: 0 0 18px rgba(255, 200, 32, 0.95);
            transform: scale(1.04);
        }
        50% {
            background: rgba(239, 68, 68, 0.92);
            color: #FFFFFF;
            border-color: #FFC820;
            box-shadow: 0 0 22px rgba(239, 68, 68, 0.9);
            transform: scale(1);
        }
    }
    .lt-news-label.lt-alert-blinking {
        animation: ltRfigAlertBlink 0.7s ease-in-out infinite;
    }
    .lt-radar-news-ticker.lt-new-alert-border {
        border: 1.5px solid #FFC820 !important;
        box-shadow: inset 0 0 0 1px rgba(255, 200, 32, 0.45), 0 0 16px rgba(255, 200, 32, 0.28);
    }
    [data-theme="light"] .lt-radar-news-ticker.lt-new-alert-border {
        border: 1.5px solid #D97706 !important;
        box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.35), 0 0 14px rgba(245, 158, 11, 0.25);
    }
    .lt-news-marquee-viewport {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        position: relative;
    }
    .lt-news-track {
        display: inline-flex;
        align-items: center;
        gap: 18px;
        white-space: nowrap;
        width: max-content;
        will-change: transform;
    }
    .lt-news-item {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: var(--text-main, #F8FAFC);
        font-weight: 500;
    }
    [data-theme="light"] .lt-news-item {
        color: #0F172A;
    }
    .lt-news-dot-sep {
        color: var(--text-muted, #94A3B8);
        font-weight: 900;
        margin-left: 8px;
    }
    .lt-news-crit-badge {
        display: inline-flex;
        align-items: center;
        padding: 1px 6px;
        border-radius: 4px;
        font-size: 0.64rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }
    .lt-news-crit-critical { background: rgba(239, 68, 68, 0.22); color: #FCA5A5; border: 1px solid rgba(239, 68, 68, 0.55); }
    .lt-news-crit-high     { background: rgba(249, 115, 22, 0.22); color: #FDBA74; border: 1px solid rgba(249, 115, 22, 0.55); }
    .lt-news-crit-medium   { background: rgba(234, 179, 8, 0.2);  color: #FDE047; border: 1px solid rgba(234, 179, 8, 0.5); }
    .lt-news-crit-info     { background: rgba(16, 185, 129, 0.18); color: #6EE7B7; border: 1px solid rgba(16, 185, 129, 0.45); }
    [data-theme="light"] .lt-news-crit-critical { background: #FEE2E2; color: #B91C1C; border-color: #EF4444; }
    [data-theme="light"] .lt-news-crit-high     { background: #FFEDD5; color: #C2410C; border-color: #F97316; }
    [data-theme="light"] .lt-news-crit-medium   { background: #FEF9C3; color: #A16207; border-color: #EAB308; }
    [data-theme="light"] .lt-news-crit-info     { background: #D1FAE5; color: #047857; border-color: #10B981; }
    .lt-news-time {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.7rem;
        color: var(--text-muted, #94A3B8);
        font-weight: 700;
    }
    .lt-news-company {
        font-weight: 800;
        color: var(--primary, #FFC820);
    }
    [data-theme="light"] .lt-news-company {
        color: #B45309;
    }

    @media (max-width: 768px) {
        .lt-radar-section:not(.lt-radar-section--full) {
            padding: 20px 16px;
            box-sizing: border-box;
        }
        .lt-radar-section:not(.lt-radar-section--full) .lt-radar-shell {
            padding: 18px 14px;
            border-radius: 20px;
        }
        .lt-radar-news-ticker {
            min-height: 44px;
            padding: 6px 10px;
            font-size: 0.72rem;
        }
    }

    /* Centered Blurred Modal Popup for Sections, Services, Punctuality & Period */
    .lt-center-modal-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 2600;
        align-items: center;
        justify-content: center;
        padding: 16px;
        background: rgba(6, 10, 18, 0.58);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    .lt-center-modal-backdrop.open {
        display: flex;
    }
    [data-theme="light"] .lt-center-modal-backdrop {
        background: rgba(15, 23, 42, 0.36);
    }
    .lt-center-modal-card {
        width: min(480px, 100%);
        max-height: 82dvh;
        overflow-y: auto;
        border-radius: 18px;
        padding: 18px 20px;
        background: var(--surface-card, #111622);
        border: 1px solid rgba(255, 200, 32, 0.38);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
        color: var(--text-main, #F8FAFC);
    }
    [data-theme="light"] .lt-center-modal-card {
        background: #FFFFFF;
        border-color: #CBD5E1;
        box-shadow: 0 24px 54px rgba(15, 23, 42, 0.22);
        color: #0F172A;
    }
    .lt-center-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding-bottom: 12px;
        margin-bottom: 14px;
        border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    }
    [data-theme="light"] .lt-center-modal-header {
        border-color: #E2E8F0;
    }
    .lt-center-modal-close {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.18));
        background: transparent;
        color: var(--text-main, #F8FAFC);
        font-size: 1.1rem;
        line-height: 1;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .lt-center-modal-close:hover {
        background: rgba(255, 200, 32, 0.18);
        border-color: #FFC820;
    }
    [data-theme="light"] .lt-center-modal-close {
        color: #0F172A;
        border-color: #CBD5E1;
    }
    .lt-center-modal-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    @media (max-width: 420px) {
        .lt-center-modal-grid {
            grid-template-columns: 1fr;
        }
    }
    .lt-center-modal-option {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        padding: 10px 12px;
        border-radius: 12px;
        border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.14));
        background: rgba(255, 255, 255, 0.03);
        color: var(--text-main, #F8FAFC);
        font-size: 0.8rem;
        font-weight: 700;
        cursor: pointer;
        text-align: left;
        transition: all 0.15s ease;
    }
    .lt-center-modal-option:hover {
        border-color: rgba(255, 200, 32, 0.65);
        background: rgba(255, 200, 32, 0.1);
    }
    .lt-center-modal-option.active {
        border-color: #FFC820;
        background: rgba(255, 200, 32, 0.18);
        color: #FFC820;
    }
    [data-theme="light"] .lt-center-modal-option {
        background: #F8FAFC;
        border-color: #CBD5E1;
        color: #0F172A;
    }
    [data-theme="light"] .lt-center-modal-option.active {
        background: #FEF3C7;
        border-color: #D97706;
        color: #92400E;
    }
    .lt-sidebar-actions-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
    }
    .lt-sidebar-actions-grid .btn {
        width: 100%;
        justify-content: space-between;
        padding: 7px 10px;
        font-size: 0.74rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #ltPeriodStartInput,
    #ltPeriodEndInput {
        color-scheme: dark;
        background: rgba(255, 255, 255, 0.04);
        color: var(--text-main, #F8FAFC);
        border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.16));
        border-radius: 10px;
    }
    #ltPeriodStartInput::-webkit-calendar-picker-indicator,
    #ltPeriodEndInput::-webkit-calendar-picker-indicator {
        cursor: pointer;
        opacity: 0.9;
    }
    [data-theme="light"] #ltPeriodStartInput,
    [data-theme="light"] #ltPeriodEndInput {
        color-scheme: light;
        background: #F8FAFC;
        color: #0F172A;
        border-color: #CBD5E1;
    }

    /* Bottom-Left Vertical Round Filter Dock on Map */
    .lt-map-filters-dock {
        position: absolute;
        bottom: 18px;
        left: 14px;
        z-index: 520;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .lt-map-filter-round-btn {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        background: rgba(15, 23, 42, 0.94);
        color: #F8FAFC;
        border: 1.5px solid rgba(255, 200, 32, 0.55);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
        transition: all 0.18s ease;
    }
    .lt-map-filter-round-btn:hover {
        transform: scale(1.06);
        border-color: #FFC820;
        color: #FFC820;
    }
    .lt-map-filter-round-btn.active {
        background: #FFC820;
        color: #0B0C0E;
        border-color: #FFC820;
        box-shadow: 0 8px 24px rgba(255, 200, 32, 0.45);
    }
    .lt-map-filter-round-btn .lt-icon-active { display: none; }
    .lt-map-filter-round-btn.active .lt-icon-default { display: none; }
    .lt-map-filter-round-btn.active .lt-icon-active { display: block; }
    [data-theme="light"] .lt-map-filter-round-btn {
        background: #FFFFFF;
        color: #0F172A;
        border-color: #D97706;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
    }
    [data-theme="light"] .lt-map-filter-round-btn:hover {
        background: #FEF3C7;
        color: #92400E;
    }
    [data-theme="light"] .lt-map-filter-round-btn.active {
        background: #FFC820;
        color: #0B0C0E;
        border-color: #D97706;
    }
    .lt-map-cluster-pin {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 4px 10px;
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.94);
        color: #FFC820;
        border: 1.5px solid #FFC820;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.76rem;
        font-weight: 900;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
        white-space: nowrap;
        cursor: pointer;
    }
    [data-theme="light"] .lt-map-cluster-pin {
        background: #FFFFFF;
        color: #0F172A;
        border-color: #D97706;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
    }
    .lt-radar-refresh-select {
        background: var(--surface-card, #161B26);
        color: var(--text-main, #F8FAFC);
        border: 1px solid var(--border-subtle, rgba(255,255,255,0.16));
        border-radius: 6px;
        padding: 2px 6px;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.71rem;
        font-weight: 700;
        cursor: pointer;
    }
    [data-theme="light"] .lt-radar-refresh-select {
        background: #FFFFFF;
        color: #0F172A;
        border-color: #CBD5E1;
    }

    /* Full-Width Top Statistics Strip (Adaptive Flex + Auto Horizontal Scroll on Overflow) */
    .lt-radar-section--full .lt-radar-kpi-grid {
        grid-column: 1 / 3;
        grid-row: 2;
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 8px;
        padding: 6px 14px;
        margin-bottom: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
        background: var(--surface-card, #0F141E);
    }
    .lt-radar-section--full .lt-radar-kpi-grid::-webkit-scrollbar {
        display: none;
    }

    [data-theme="light"] .lt-radar-section--full .lt-radar-kpi-grid {
        background: #FFFFFF;
        border-color: #E2E8F0;
    }

    .lt-radar-section--full .lt-radar-kpi-card {
        flex: 1 0 auto;
        min-width: max-content;
        padding: 6px 14px;
        border-radius: 10px;
        display: flex;
        flex-direction: row !important;
        align-items: stretch !important;
        justify-content: flex-start;
        text-align: left;
        gap: 10px;
        min-height: 0;
    }

    .lt-radar-kpi-icon {
        width: 36px;
        min-height: 36px;
        align-self: stretch;
        border-radius: 9px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--primary, #FFC820);
        background: rgba(255, 200, 32, 0.12);
        border: 1px solid rgba(255, 200, 32, 0.28);
        flex-shrink: 0;
    }

    [data-theme="light"] .lt-radar-kpi-icon {
        color: #B45309;
        background: rgba(217, 119, 6, 0.10);
        border-color: rgba(217, 119, 6, 0.25);
    }

    .lt-radar-section--full .lt-radar-kpi-val {
        font-size: 0.92rem;
        line-height: 1.1;
        white-space: nowrap;
    }

    .lt-radar-section--full .lt-radar-kpi-lbl {
        font-size: 0.64rem;
        margin-top: 2px;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
    }

    /* Right Main Canvas: 100% Contained Interactive Map */
    .lt-radar-section--full #ltRadarPane_map[style*="block"],
    .lt-radar-section--full .lt-radar-main-grid {
        display: contents !important;
    }

    .lt-radar-section--full .lt-radar-map-wrap {
        grid-column: 2;
        grid-row: 3 / 6;
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 0;
        border-radius: 0;
        border: none;
    }

    .lt-radar-section--full #ltPublicRadarMap {
        width: 100%;
        height: 100%;
        min-height: 0;
    }

    .lt-radar-section--full .lt-map-overlay-toolbar {
        top: 14px;
        right: 14px;
        left: auto;
        bottom: auto;
    }

    /* Left Sidebar Box */
    .lt-radar-section--full .lt-radar-hud-floating {
        grid-column: 1;
        grid-row: 3;
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 10px 14px 6px;
        border-right: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
        background: var(--surface-card, #0F141E);
    }

    .lt-radar-section--full .lt-radar-top-bar {
        margin-bottom: 0;
    }

    .lt-radar-section--full .lt-radar-top-bar h2,
    .lt-radar-section--full .lt-radar-top-bar p {
        display: none;
    }

    .lt-radar-section--full .lt-radar-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
        margin-bottom: 0;
        padding-top: 6px;
        padding-bottom: 4px;
        border-bottom: none;
    }

    .lt-radar-section--full .lt-radar-tab-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 7px 10px;
        font-size: 0.74rem;
    }

    /* Collapsible Sections Tabs & Filters inside Right Box */
    .lt-radar-section--full:not(.lt-tabs-open) .lt-radar-tabs,
    .lt-radar-section--full:not(.lt-filters-open) .lt-radar-window-bar,
    .lt-radar-section--full:not(.lt-filters-open) .lt-radar-filters,
    .lt-radar-section:not(.lt-radar-section--full) .lt-radar-window-bar,
    .lt-radar-section:not(.lt-radar-section--full) .lt-radar-filters {
        display: none !important;
    }

    .lt-radar-section--full .lt-radar-controls {
        grid-column: 1;
        grid-row: 4;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 14px;
        margin-bottom: 0;
        border-right: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
        border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
        background: var(--surface-card, #0F141E);
    }

    .lt-radar-section--full .lt-radar-filters {
        gap: 5px;
        max-height: 150px;
        overflow-y: auto;
        padding-top: 4px;
    }

    .lt-radar-section--full .lt-radar-filter-pill {
        padding: 4px 8px;
        font-size: 0.71rem;
    }

    .lt-radar-section--full .lt-radar-search-input {
        min-width: 0;
        width: 100%;
        padding: 7px 10px;
        font-size: 0.78rem;
    }

    .lt-radar-section--full .lt-radar-side-panel {
        grid-column: 1;
        grid-row: 5;
        box-sizing: border-box;
        align-self: stretch;
        min-height: 0;
        max-height: none !important;
        height: 100%;
        overflow-y: auto;
        padding: 10px 14px 14px;
        border-right: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
        background: var(--surface-card, #0F141E);
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .lt-radar-section--full .lt-radar-train-list {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    [data-theme="light"] .lt-radar-section--full .lt-radar-hud-floating,
    [data-theme="light"] .lt-radar-section--full .lt-radar-controls,
    [data-theme="light"] .lt-radar-section--full .lt-radar-side-panel {
        background: #FFFFFF;
        border-color: #E2E8F0;
    }

    .lt-radar-section--full.lt-panel-hidden .lt-radar-hud-floating,
    .lt-radar-section--full.lt-panel-hidden .lt-radar-controls,
    .lt-radar-section--full.lt-panel-hidden .lt-radar-side-panel {
        display: none !important;
    }

    .lt-radar-round-toggle-btn {
        position: absolute;
        top: 14px;
        left: 14px;
        right: auto;
        z-index: 520;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        background: rgba(15, 23, 42, 0.94);
        color: #FFC820;
        border: 1.5px solid rgba(255, 200, 32, 0.65);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .lt-radar-round-toggle-btn:hover {
        transform: scale(1.06);
        background: #FFC820;
        color: #0B0C0E;
    }

    [data-theme="light"] .lt-radar-round-toggle-btn {
        background: #FFFFFF;
        color: #0F172A;
        border-color: #D97706;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
    }

    [data-theme="light"] .lt-radar-round-toggle-btn:hover {
        background: #FFC820;
        color: #0B0C0E;
    }

    .lt-radar-section--full.lt-panel-hidden .lt-radar-floating-show-btn {
        display: inline-flex;
    }

    /* Secondary Tabs Display cleanly in Right Main Area while keeping Left Command Column */
    .lt-radar-section--full #ltRadarPane_board,
    .lt-radar-section--full #ltRadarPane_trains,
    .lt-radar-section--full #ltRadarPane_delays,
    .lt-radar-section--full #ltRadarPane_cercanias,
    .lt-radar-section--full #ltRadarPane_rollingstock,
    .lt-radar-section--full #ltRadarPane_api {
        grid-column: 2;
        grid-row: 3 / 6;
        overflow-y: auto;
        padding: 20px;
        background: var(--surface-card, #0B0F17);
    }

    [data-theme="light"] .lt-radar-section--full #ltRadarPane_board,
    [data-theme="light"] .lt-radar-section--full #ltRadarPane_trains,
    [data-theme="light"] .lt-radar-section--full #ltRadarPane_delays,
    [data-theme="light"] .lt-radar-section--full #ltRadarPane_cercanias,
    [data-theme="light"] .lt-radar-section--full #ltRadarPane_rollingstock,
    [data-theme="light"] .lt-radar-section--full #ltRadarPane_api {
        background: #F8FAFC;
    }

    @media (max-width: 1024px) {
        .lt-radar-section--full {
            height: auto;
            min-height: 100dvh;
            overflow: visible;
        }
        .lt-radar-shell--full {
            display: flex;
            flex-direction: column;
            height: auto;
            overflow: visible;
        }
        .lt-radar-section--full .lt-radar-kpi-grid {
            display: flex;
            flex-wrap: nowrap;
            overflow-x: auto;
        }
        .lt-radar-section--full #ltRadarPane_map[style*="block"],
        .lt-radar-section--full .lt-radar-main-grid {
            display: block !important;
        }
        .lt-radar-section--full .lt-radar-map-wrap,
        .lt-radar-section--full #ltPublicRadarMap {
            min-height: 440px;
            height: 440px;
        }
        .lt-radar-section--full .lt-radar-hud-floating,
        .lt-radar-section--full .lt-radar-controls,
        .lt-radar-section--full .lt-radar-side-panel {
            border-right: none;
            height: auto;
            overflow: visible;
        }
    }

    @media (max-width: 980px) {
        .lt-radar-main-grid,
        .lt-board-grid {
            grid-template-columns: 1fr;
        }
        .lt-radar-map-wrap,
        #ltPublicRadarMap {
            min-height: 410px;
        }
    }

    .lt-net-dot {
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        flex-shrink: 0;
        border: 1.5px solid rgba(255, 255, 255, 0.85);
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
    }
    .lt-net-line-swatch {
        display: inline-block;
        width: 16px;
        height: 4px;
        border-radius: 999px;
        flex-shrink: 0;
    }
