.xxx-3d-view {
    position: absolute;
    inset: 0;
    z-index: 30;
    overflow: hidden;
    background: #070b12;
    color: #dce9ef;
}

#xxxRadarView[data-radar-family="3d"] {
    position: relative;
}

#xxxRadarView[data-radar-family="3d"] .top-bar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 80;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity .18s ease, transform .18s ease;
}

#xxxRadarView[data-radar-family="3d"] .top-bar:hover,
#xxxRadarView[data-radar-family="3d"] .top-bar:focus-within {
    opacity: 1;
    transform: translateY(0);
}

#xxxRadarView[data-radar-family="3d"] .main-content {
    height: 100%;
}

.xxx-3d-scene-frame {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #05080a;
    opacity: 0;
    pointer-events: none;
}

.xxx-3d-view[data-scene-ready="true"] .xxx-3d-scene-frame {
    opacity: 1;
    pointer-events: auto;
}

.xxx-3d-canvas {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
}

.xxx-3d-view[data-scene-ready="true"] .xxx-3d-canvas {
    opacity: 0;
    pointer-events: none;
}

.xxx-3d-view[data-scene-ready="true"] .xxx-3d-camera-panel {
    opacity: 1;
    pointer-events: auto;
}

.xxx-3d-canvas:active {
    cursor: grabbing;
}

.xxx-3d-label-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.xxx-3d-first-hud {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
}

.xxx-3d-view[data-camera-mode="first"] .xxx-3d-first-hud {
    display: block;
}

.xxx-3d-minimap {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 176px;
    height: 176px;
    margin: 0;
    overflow: hidden;
    border: 3px solid rgba(235,243,247,.68);
    border-radius: 50%;
    background: #071018;
    box-shadow: 0 16px 50px rgba(0,0,0,.42);
}

.xxx-3d-minimap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(.78) contrast(1.12) brightness(.62);
    transform: scale(1.28);
}

.xxx-3d-minimap > i {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #16f3ad;
    font-size: 28px;
    filter: drop-shadow(0 0 8px rgba(22,243,173,.7));
    transform: translate(-50%,-50%) rotate(35deg);
}

.xxx-3d-minimap figcaption {
    position: absolute;
    right: 20px;
    bottom: 22px;
    left: 20px;
    color: rgba(255,255,255,.72);
    font-size: 10px;
    font-weight: 750;
    text-align: center;
    text-shadow: 0 2px 4px #000;
}

.xxx-3d-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    color: rgba(17,22,26,.48);
    font-size: 42px;
    filter: drop-shadow(0 1px 0 rgba(255,255,255,.2));
    transform: translate(-50%,-50%);
}

.xxx-3d-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 45;
    display: grid;
    min-width: 260px;
    gap: 7px;
    padding: 18px 22px;
    border: 1px solid rgba(43,188,255,.38);
    border-radius: 5px;
    background: rgba(4,9,14,.94);
    box-shadow: 0 22px 70px rgba(0,0,0,.5);
    color: #e9f7fb;
    transform: translate(-50%,-50%);
    text-align: center;
}

.xxx-3d-loading[hidden] {
    display: none;
}

.xxx-3d-loading span {
    color: #54cdfa;
    font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .14em;
}

.xxx-3d-loading strong {
    font-size: 14px;
}

.xxx-3d-loading small {
    color: rgba(255,255,255,.5);
    font-size: 9px;
}

.xxx-3d-progress {
    position: relative;
    height: 6px;
    margin-top: 5px;
    overflow: hidden;
    border: 1px solid rgba(84,205,250,.3);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
}

.xxx-3d-progress > i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #16aee8, #63e2ff);
    box-shadow: 0 0 15px rgba(64,210,255,.6);
    transition: width .16s linear;
}

.xxx-3d-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255,255,255,.58);
    font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.xxx-3d-progress-meta strong {
    color: #79ddff;
    font-size: 10px;
}

.xxx-3d-loading button {
    min-height: 34px;
    margin-top: 4px;
    padding: 0 14px;
    border: 1px solid rgba(84,205,250,.58);
    border-radius: 4px;
    background: rgba(43,188,255,.14);
    color: #d8f5ff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.xxx-3d-loading button:hover,
.xxx-3d-loading button:focus-visible {
    border-color: #72dcff;
    background: rgba(43,188,255,.24);
    outline: none;
}

.xxx-3d-label {
    position: absolute;
    max-width: 150px;
    padding: 3px 6px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 3px;
    background: rgba(4,9,14,.86);
    color: #f2f8fa;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: translate(-50%, -100%);
}

.xxx-3d-label small {
    display: block;
    margin-top: 2px;
    color: rgba(255,255,255,.55);
    font-size: 8px;
}

.xxx-3d-filter-panel,
.xxx-3d-info-panel,
.xxx-3d-camera-panel,
.xxx-3d-help {
    position: absolute;
    border: 1px solid rgba(80,142,169,.28);
    border-radius: 4px;
    background: rgba(5,10,15,.94);
    box-shadow: 0 16px 55px rgba(0,0,0,.4);
    backdrop-filter: blur(12px);
    z-index: 12;
}

.xxx-3d-filter-panel {
    top: 12px;
    bottom: 12px;
    left: 12px;
    width: 218px;
    padding: 14px 14px 18px;
    overflow: auto;
}

.xxx-3d-view[data-camera-mode="first"] .xxx-3d-filter-panel,
.xxx-3d-view[data-camera-mode="first"] .xxx-3d-info-panel {
    display: none;
}

.xxx-3d-view[data-camera-mode="first"] .xxx-3d-camera-panel {
    right: 18px;
    bottom: 18px;
    left: auto;
    width: 330px;
    margin: 0;
}

.xxx-3d-filter-panel header,
.xxx-3d-info-panel > header {
    display: grid;
    gap: 5px;
    margin: -14px -14px 12px;
    padding: 13px 14px 12px;
    border-bottom: 1px solid rgba(43,188,255,.2);
}

.xxx-3d-filter-panel header span,
.xxx-3d-info-panel > header span {
    color: #55cbfa;
    font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .12em;
}

.xxx-3d-filter-panel header strong,
.xxx-3d-info-panel > header strong {
    font-size: 14px;
}

.xxx-3d-filter-panel h3 {
    margin: 16px 0 8px;
    padding: 0 0 7px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #62cff8;
    font-size: 11px;
    letter-spacing: .05em;
}

.xxx-3d-filter-panel label:not(.xxx-3d-range) {
    display: flex;
    align-items: center;
    min-height: 29px;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,.045);
    color: rgba(239,248,251,.76);
    font-size: 11px;
}

.xxx-3d-filter-panel input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #39bff3;
}

.xxx-3d-range {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
    margin: 11px 0 0;
    color: rgba(239,248,251,.7);
    font-size: 10px;
}

.xxx-3d-range output {
    color: #6ed7ff;
    font-weight: 800;
}

.xxx-3d-range input {
    grid-column: 1 / -1;
    width: 100%;
    accent-color: #39bff3;
}

.xxx-3d-info-panel {
    top: 12px;
    right: 12px;
    bottom: 12px;
    width: 252px;
    padding: 14px;
    overflow: auto;
}

.xxx-3d-selection {
    min-height: 52px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 3px;
    background: rgba(255,255,255,.025);
    color: rgba(255,255,255,.55);
    font-size: 10px;
    line-height: 1.55;
}

.xxx-3d-info-panel section h3 {
    display: flex;
    justify-content: space-between;
    margin: 14px 0 6px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(43,188,255,.16);
    color: #58c9f6;
    font-size: 11px;
}

.xxx-3d-entity-row {
    display: grid;
    grid-template-columns: 28px minmax(0,1fr) auto;
    gap: 7px;
    align-items: center;
    min-height: 38px;
    padding: 5px 3px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.065);
    background: transparent;
    color: #e9f4f7;
    cursor: pointer;
    text-align: left;
}

.xxx-3d-entity-row:hover,
.xxx-3d-entity-row.is-active {
    background: rgba(43,188,255,.08);
}

.xxx-3d-entity-row img {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(43,188,255,.3);
    border-radius: 50%;
    object-fit: cover;
}

.xxx-3d-entity-row strong,
.xxx-3d-entity-row small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xxx-3d-entity-row strong {
    font-size: 10px;
}

.xxx-3d-entity-row small {
    color: rgba(255,255,255,.48);
    font-size: 8px;
}

.xxx-3d-entity-row > span {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.xxx-3d-entity-row > em {
    color: #73d8ff;
    font-size: 9px;
    font-style: normal;
}

.xxx-3d-camera-panel {
    right: 282px;
    bottom: 16px;
    left: 248px;
    max-width: 520px;
    margin: auto;
    padding: 12px;
}

.xxx-3d-camera-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.xxx-3d-camera-panel > header > div {
    display: grid;
    gap: 4px;
}

.xxx-3d-camera-panel > header span {
    color: #55cbfa;
    font-size: 9px;
    font-weight: 800;
}

.xxx-3d-camera-panel > header strong {
    font-size: 12px;
}

.xxx-3d-camera-panel > header button,
.xxx-3d-camera-panel button,
.xxx-3d-help button {
    border: 1px solid rgba(80,142,169,.28);
    border-radius: 3px;
    background: rgba(255,255,255,.025);
    color: #b8cbd3;
    cursor: pointer;
}

.xxx-3d-camera-body {
    display: grid;
    gap: 9px;
    padding-top: 10px;
}

.xxx-3d-camera-panel.is-collapsed .xxx-3d-camera-body {
    display: none;
}

.xxx-3d-camera-modes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 6px;
}

.xxx-3d-camera-modes button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    gap: 7px;
    padding: 7px;
}

.xxx-3d-camera-modes button.is-active,
.xxx-3d-quality-row button.is-active,
.xxx-3d-clarity-row button.is-active {
    border-color: rgba(43,188,255,.65);
    background: rgba(43,188,255,.13);
    color: #d6f4ff;
}

.xxx-3d-camera-modes button > span {
    display: grid;
    gap: 3px;
    text-align: left;
    font-size: 10px;
    font-weight: 750;
}

.xxx-3d-camera-modes small {
    color: rgba(255,255,255,.42);
    font-size: 8px;
    font-weight: 500;
}

.xxx-3d-quality-row,
.xxx-3d-clarity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.xxx-3d-quality-row > span,
.xxx-3d-clarity-row strong {
    font-size: 10px;
    font-weight: 800;
}

.xxx-3d-quality-row > div {
    display: flex;
    gap: 4px;
}

.xxx-3d-quality-row button,
.xxx-3d-clarity-row button {
    min-height: 30px;
    padding: 0 10px;
    font-size: 9px;
}

.xxx-3d-clarity-row > span {
    display: grid;
    gap: 3px;
}

.xxx-3d-clarity-row small {
    color: rgba(255,255,255,.42);
    font-size: 8px;
}

.xxx-3d-actions {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 6px;
}

.xxx-3d-actions button {
    min-height: 34px;
    font-size: 9px;
}

.xxx-3d-help {
    right: 282px;
    bottom: 16px;
    width: min(420px, calc(100% - 530px));
    padding: 14px;
    z-index: 40;
}

.xxx-3d-help strong {
    color: #75d9ff;
    font-size: 12px;
}

.xxx-3d-help p {
    margin: 8px 0 0;
    color: rgba(255,255,255,.65);
    font-size: 10px;
    line-height: 1.6;
}

@media (max-width: 980px) {
    .xxx-3d-filter-panel {
        width: 180px;
    }

    .xxx-3d-info-panel {
        width: 210px;
    }

    .xxx-3d-camera-panel {
        right: 230px;
        left: 202px;
    }
}

@media (max-width: 720px) {
    .xxx-3d-filter-panel,
    .xxx-3d-info-panel {
        top: 8px;
        bottom: auto;
        max-height: 38%;
    }

    .xxx-3d-filter-panel {
        left: 8px;
        width: 150px;
    }

    .xxx-3d-info-panel {
        right: 8px;
        width: 170px;
    }

    .xxx-3d-filter-panel label:not(.xxx-3d-range),
    .xxx-3d-filter-panel h3:nth-of-type(n+2),
    .xxx-3d-range,
    .xxx-3d-info-panel section:nth-of-type(n+2) {
        display: none;
    }

    .xxx-3d-camera-panel {
        right: 8px;
        bottom: 8px;
        left: 8px;
        max-width: none;
    }

    .xxx-3d-camera-modes button {
        min-height: 48px;
    }

    .xxx-3d-quality-row,
    .xxx-3d-clarity-row {
        display: none;
    }

    .xxx-3d-help {
        right: 8px;
        bottom: 8px;
        left: 8px;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .xxx-3d-view *,
    .xxx-3d-view *::before,
    .xxx-3d-view *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
