#threeMapContainer .modal-3d-header { 
    height: 64px;
    padding: 0 20px;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 20;
    flex-shrink: 0;
 }
#threeMapContainer .modal-3d-title-group { 
    display: flex;
    align-items: center;
    gap: 12px;
 }
#threeMapContainer .modal-3d-icon-badge { 
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
 }
#threeMapContainer .modal-3d-title { 
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.3px;
    margin: 0;
 }
#threeMapContainer .modal-3d-tag { 
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
    font-weight: 700;
 }
#threeMapContainer .modal-3d-toolbar { 
    display: flex;
    align-items: center;
    gap: 8px;
 }
#threeMapContainer .toolbar-group { 
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 3px;
 }
#threeMapContainer .toolbar-btn { 
    background: none;
    border: none;
    color: #94a3b8;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    user-select: none;
 }
#threeMapContainer .toolbar-btn:hover { 
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
 }
#threeMapContainer .toolbar-btn.active { 
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
 }
#threeMapContainer .btn-light-mode.active { 
    background: #f59e0b;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
 }
#threeMapContainer .modal-3d-close-btn { 
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
 }
#threeMapContainer .modal-3d-close-btn:hover { 
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
 }
#threeMapContainer .modal-3d-viewport { 
    flex: 1;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
 }
#threeMapContainer #threeCanvasContainer { 
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
 }
#threeMapContainer #threeCanvasContainer canvas { 
    display: block;
    width: 100% !important;
    height: 100% !important;
    outline: none;
 }
#threeMapContainer .three-hud-filters { 
    position: absolute;
    top: 14px;
    left: 16px;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 10px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
 }
#threeMapContainer .three-filter-pill { 
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    transition: all 0.2s;
    user-select: none;
 }
#threeMapContainer .three-filter-pill:hover { 
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
 }
#threeMapContainer .three-filter-pill.active { 
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
 }
#threeMapContainer .three-hud-search { 
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 8px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
 }
#threeMapContainer .three-search-input { 
    background: none;
    border: none;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    outline: none;
    width: 110px;
    padding: 4px 6px;
 }
#threeMapContainer .three-search-input.error { 
    border-bottom: 2px solid #ef4444;
 }
#threeMapContainer .three-search-input::placeholder { 
    color: #64748b;
    font-weight: 500;
 }
#threeMapContainer .three-controls-guide { 
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 7px 18px;
    font-size: 11px;
    color: #94a3b8;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
 }
#threeMapContainer .three-controls-guide strong { 
    color: #f8fafc;
 }
#threeMapContainer .three-plot-tooltip { 
    position: absolute;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 170px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    z-index: 100;
    display: none;
    transform: translate(0, 0);
    transition: opacity 0.15s ease;
 }
#threeMapContainer .three-inspect-drawer { 
    position: absolute;
    top: 60px;
    right: 16px;
    width: 290px;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.15);
    z-index: 15;
    transform: translateX(330px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
 }
#threeMapContainer .three-inspect-drawer.open { 
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
 }
#threeMapContainer .three-inspect-header { 
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
 }
#threeMapContainer .three-inspect-title { 
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
 }
#threeMapContainer .three-drawer-close { 
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
 }
#threeMapContainer .three-drawer-close:hover { 
    color: #fff;
 }
#threeMapContainer .three-drawer-actions { 
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
 }
#threeMapContainer .three-drawer-btn { 
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s;
    border: none;
 }
#threeMapContainer .three-btn-primary { 
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--accent-glow);
 }
#threeMapContainer .three-btn-primary:hover { 
    background: var(--accent-hover);
    transform: translateY(-1px);
 }
#threeMapContainer .three-btn-secondary { 
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
 }
#threeMapContainer .three-btn-secondary:hover { 
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
 }
#threeMapContainer .btn-jump-3d { 
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.2));
    border: 1px solid rgba(168, 85, 247, 0.5);
    color: #c084fc;
    font-weight: 700;
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    font-size: 13.5px;
    transition: all 0.2s;
 }
#threeMapContainer .btn-jump-3d:hover { 
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(59, 130, 246, 0.35));
    border-color: #c084fc;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
 }



#threeMapContainer .modal-3d-header { position: absolute; inset: 0 0 auto; height: 150px; box-sizing: border-box; padding: 12px 18px; flex-direction: column; align-items: flex-start; gap: 10px; }
#threeMapContainer #threeMapToolbar { position: static; max-width: none; flex-wrap: wrap; justify-content: flex-start; width: 100%; gap: 6px; }
#threeMapContainer #threeCanvasContainer { top: 150px !important; height: calc(100% - 150px) !important; }
#threeMapContainer .three-hud-filters { top: 164px !important; bottom: auto !important; }
#threeMapContainer .three-hud-search { top: 164px; }
#threeMapContainer .layout-calibrator { top: 160px; }
#threeMapContainer .three-inspect-drawer { top: 214px; max-height: calc(100% - 230px); }
#threeMapContainer .three-controls-guide { max-width: calc(100% - 32px); box-sizing: border-box; text-align: center; }
@media (max-width: 820px) {
 #threeMapContainer .modal-3d-header { height: 190px; overflow-y: auto; }
 #threeMapContainer .modal-3d-title { font-size: 14px; }
 #threeMapContainer .modal-3d-tag { display: none; }
 #threeMapContainer #threeCanvasContainer { top: 190px !important; height: calc(100% - 190px) !important; }
 #threeMapContainer .three-hud-filters { top: 202px !important; left: 10px !important; right: 10px; padding: 6px !important; }
 #threeMapContainer .three-hud-search { top: 258px; right: 10px; }
 #threeMapContainer .layout-calibrator { top: 202px; max-height: calc(100% - 220px); }
 #threeMapContainer .three-inspect-drawer { top: auto; bottom: 0; right: 0; width: 100%; max-height: 45%; }
}
