.modelWindowViewer.point-cloud-mounted {
    aspect-ratio: auto;
    height: min(68vh, 720px);
    min-height: 440px;
}

.pcv-shell {
    --pcv-border: #d7dce1;
    --pcv-muted: #687078;
    --pcv-accent: #087ea4;
    display: flex;
    width: 100%;
    height: 100%;
    min-height: inherit;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--pcv-border);
    border-radius: 6px;
    background: #f7f8f9;
    color: #202428;
}

.pcv-toolbar {
    z-index: 2;
    display: flex;
    min-height: 52px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--pcv-border);
    background: #ffffff;
}

.pcv-toolbar-group {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.pcv-select-control,
.pcv-range-control {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--pcv-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pcv-select-control select {
    height: 34px;
    min-width: 126px;
    padding: 0 28px 0 9px;
    border: 1px solid #c9d0d6;
    border-radius: 4px;
    background-color: #ffffff;
    color: #262b30;
    font-size: 13px;
}

.pcv-range-control input {
    width: 104px;
    margin: 0;
    accent-color: var(--pcv-accent);
}

.pcv-icon-button {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #4c555d;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 120ms ease, border-color 120ms ease,
        color 120ms ease;
}

.pcv-icon-button:hover,
.pcv-icon-button:focus-visible {
    border-color: #bdc6ce;
    background: #f2f4f6;
    color: #101417;
    outline: none;
}

.pcv-icon-button.is-active {
    border-color: #9bc9d8;
    background: #e8f5f9;
    color: #006d91;
}

.pcv-toolbar-divider {
    width: 1px;
    height: 24px;
    margin: 0 2px;
    background: #dce1e5;
}

.pcv-viewport {
    position: relative;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    background: #111315;
}

.pcv-canvas,
.pcv-canvas canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.pcv-canvas canvas {
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.pcv-canvas canvas:active {
    cursor: grabbing;
}

.pcv-canvas canvas:focus-visible {
    outline: 2px solid #57c7ec;
    outline-offset: -2px;
}

.pcv-state {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    padding: 24px;
    background: rgba(17, 19, 21, 0.92);
    color: #f3f5f6;
    text-align: center;
}

.pcv-state[hidden],
.pcv-stats[hidden],
.pcv-point-tooltip[hidden] {
    display: none;
}

.pcv-state-icon {
    margin-bottom: 6px;
    color: #62d1f3;
    font-size: 26px;
}

.pcv-state.is-error .pcv-state-icon {
    color: #ffb454;
}

.pcv-state strong {
    font-size: 16px;
    letter-spacing: 0;
}

.pcv-state span {
    max-width: 520px;
    color: #adb5bc;
    font-size: 13px;
}

.pcv-state .btn {
    margin-top: 8px;
}

.pcv-stats {
    position: absolute;
    right: 12px;
    bottom: 10px;
    left: 12px;
    overflow: hidden;
    color: rgba(242, 246, 248, 0.82);
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px #000000;
    white-space: nowrap;
    pointer-events: none;
}

.pcv-point-tooltip {
    position: absolute;
    z-index: 3;
    max-width: calc(100% - 24px);
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.82);
    color: #ffffff;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
}

.pcv-shell:fullscreen {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
}

.pcv-fatal-error {
    display: flex;
    min-height: 320px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border: 1px solid #dfb26e;
    border-radius: 6px;
    background: #fffaf1;
    color: #362b1d;
    text-align: center;
}

.pcv-fatal-error .fa {
    color: #b56800;
    font-size: 26px;
}

.pcv-fatal-error span {
    color: #746453;
    font-size: 13px;
}

@media (max-width: 767.98px) {
    .modelWindowViewer.point-cloud-mounted {
        height: min(70vh, 620px);
        min-height: 460px;
    }

    .pcv-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 7px;
    }

    .pcv-toolbar-group {
        justify-content: space-between;
    }

    .pcv-view-tools {
        justify-content: flex-end;
        overflow-x: auto;
    }

    .pcv-select-control select {
        min-width: 112px;
    }

    .pcv-range-control input {
        width: 86px;
    }
}

@media (max-width: 420px) {
    .pcv-select-control > span,
    .pcv-range-control > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .pcv-toolbar-divider {
        display: none;
    }
}
