:root {
    --insv-blue: #0078c9;
    --insv-blue-dark: #0b5590;
    --insv-text: #17212e;
    --insv-muted: #5f6f82;
    --insv-line: #d8e3ec;
    --insv-soft: #f5f7fa;
    --insv-card: #ffffff;
}

.insv-page-3d-scan-data {
    background: var(--insv-soft);
}

.insv-3d {
    color: var(--insv-text);
    background: var(--insv-soft);
    font-family: inherit;
    min-height: 70vh;
    padding-top: 0;
}

.insv-3d .insv-3d-resource-subnav {
    margin-top: 0 !important;
}

.insv-3d-resource-subnav + .insv-3d-hero {
    margin-top: 80px;
}

.insv-3d-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.insv-3d-hero {
    padding: 42px 0 32px;
    background: var(--insv-soft);
}

.insv-3d-breadcrumb {
    display: flex;
    gap: 9px;
    align-items: center;
    color: #738498;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.insv-3d-breadcrumb a {
    color: var(--insv-blue);
    text-decoration: none;
}

.insv-3d-eyebrow {
    margin: 0 0 10px;
    color: var(--insv-blue);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

.insv-3d-hero h1 {
    margin: 0;
    color: #131d29;
    font-size: clamp(38px, 4vw, 56px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: 0;
}

.insv-3d-hero__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 36px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--insv-line);
}

.insv-3d-hero__row p {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--insv-muted);
    font-size: 18px;
    line-height: 1.85;
}

.insv-3d-count {
    flex: 0 0 auto;
    color: var(--insv-muted);
    font-size: 15px;
    line-height: 1.6;
    padding-bottom: 8px;
}

.insv-3d-library {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 44px;
    padding-bottom: 86px;
}

.insv-3d-filters {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.insv-3d-filter-group h2 {
    margin: 0 0 12px;
    color: #17212e;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
}

.insv-3d-filter-group a {
    display: block;
    min-height: 34px;
    padding: 7px 14px;
    color: #52687f;
    border: 1px solid transparent;
    border-radius: 18px;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.25;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.insv-3d-filter-group a + a {
    margin-top: 5px;
}

.insv-3d-filter-group a:hover,
.insv-3d-filter-group a.is-active {
    color: var(--insv-blue);
    border-color: #b9d7ea;
    background: #fff;
}

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

.insv-3d-card {
    display: block;
    padding: 16px;
    min-height: 320px;
    color: inherit;
    text-decoration: none;
    background: var(--insv-card);
    border: 1px solid #cfe0ec;
    border-radius: 6px;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.insv-3d-card:hover {
    transform: translateY(-3px);
    border-color: #a9c9df;
    box-shadow: 0 18px 44px rgba(20, 57, 86, .1);
}

.insv-3d-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 192px;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 4px;
    background: #eef4f8;
}

.insv-3d-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.insv-3d-card__meta {
    display: block;
    color: #60758b;
    font-size: 15px;
    line-height: 1.55;
}

.insv-3d-card__title {
    display: block;
    margin-top: 6px;
    color: #13202d;
    font-size: 23px;
    line-height: 1.35;
    font-weight: 800;
}

.insv-3d-empty {
    grid-column: 1 / -1;
    padding: 42px;
    color: var(--insv-muted);
    background: #fff;
    border-radius: 6px;
    text-align: center;
}

.insv-3d-hero--detail {
    padding: 34px 0 26px;
}

.insv-3d-hero--detail h1 {
    max-width: 900px;
    font-size: clamp(36px, 3.4vw, 48px);
    line-height: 1.12;
}

.insv-3d-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.insv-3d-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 14px;
    color: #44637e;
    border: 1px solid #b9d7ea;
    border-radius: 16px;
    background: #fff;
    font-size: 14px;
}

.insv-3d-detail {
    padding-bottom: 90px;
}

.insv-3d-tabs {
    display: flex;
    gap: 28px;
    align-items: center;
    border-bottom: 1px solid var(--insv-line);
}

.insv-3d-tabs a {
    position: relative;
    padding: 15px 0 14px;
    color: #2c4258;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
}

.insv-3d-tabs a.is-active,
.insv-3d-tabs a:hover {
    color: var(--insv-blue);
}

.insv-3d-tabs a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: var(--insv-blue);
}

.insv-3d-viewer-wrap {
    position: relative;
    margin-top: 24px;
}

.insv-3d-preview-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    padding: 13px 16px;
    color: #526b82;
    background: #fff;
    border: 1px solid var(--insv-line);
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.7;
}

.insv-3d-preview-alert p {
    margin: 0;
}

.insv-3d-preview-alert strong {
    color: var(--insv-blue);
    font-weight: 700;
}

.insv-3d-preview-alert a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    height: 36px;
    padding: 0 18px;
    color: #fff;
    background: var(--insv-blue);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.insv-3d-preview-alert a:hover {
    background: var(--insv-blue-dark);
}

.insv-3d-viewer {
    position: relative;
    height: min(720px, 68vh);
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--insv-line);
    border-radius: 6px;
    background: #f6f8fb;
}

.insv-3d-viewer canvas {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    cursor: grab;
    transition: opacity .2s ease;
}

.insv-3d-viewer.is-viewer-active canvas {
    opacity: 1;
    pointer-events: auto;
}

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

.insv-3d-viewer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.insv-3d-viewer-actions button {
    height: 40px;
    min-width: 44px;
    padding: 0 16px;
    color: #28445f;
    background: #fff;
    border: 1px solid #bdd3e3;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.insv-3d-viewer-actions button:hover,
.insv-3d-viewer-actions button.is-active {
    color: #fff;
    background: var(--insv-blue);
    border-color: var(--insv-blue);
}

.insv-3d-status {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: grid;
    min-width: 232px;
    justify-items: center;
    gap: 10px;
    padding: 18px 22px;
    transform: translate(-50%, -50%);
    color: #526b82;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(190, 211, 228, .9);
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.45;
    box-shadow: 0 16px 42px rgba(33, 76, 112, .08);
    backdrop-filter: blur(6px);
}

.insv-3d-status__spinner {
    width: 26px;
    height: 26px;
    border: 2px solid #d8e6ef;
    border-top-color: var(--insv-blue);
    border-radius: 50%;
    animation: insv3dSpin .85s linear infinite;
}

.insv-3d-status__text {
    font-weight: 700;
}

.insv-3d-status__bar {
    display: block;
    width: 178px;
    height: 3px;
    overflow: hidden;
    background: #e3edf4;
    border-radius: 999px;
}

.insv-3d-status__bar i {
    display: block;
    width: var(--insv-load-progress, 18%);
    height: 100%;
    background: var(--insv-blue);
    border-radius: inherit;
    transition: width .22s ease;
}

.insv-3d-status.is-indeterminate .insv-3d-status__bar i {
    width: 42%;
    animation: insv3dProgress 1.12s ease-in-out infinite;
}

.insv-3d-status.is-error {
    color: #8a3f3b;
}

.insv-3d-status.is-error .insv-3d-status__spinner {
    display: none;
}

.insv-3d-load {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 24px;
    border: 0;
    color: #142230;
    background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .88), rgba(238, 244, 248, .94) 54%, #eef4f8 100%);
    cursor: pointer;
    text-align: center;
    font-family: inherit;
}

.insv-3d-load[hidden] {
    display: none;
}

.insv-3d-load span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 46px;
    margin: 0 auto;
    padding: 0 22px;
    color: #fff;
    background: var(--insv-blue);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 12px 28px rgba(0, 120, 201, .18);
}

.insv-3d-load small {
    display: block;
    color: #63778b;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.insv-3d-status.is-hidden {
    display: none;
}

@keyframes insv3dSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes insv3dProgress {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(240%);
    }
}

.insv-3d-mouse-tip {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    color: #5e7184;
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(195, 214, 229, .9);
    border-radius: 999px;
    font-size: 13px;
    line-height: 1;
    box-shadow: 0 8px 22px rgba(30, 74, 112, .06);
    backdrop-filter: blur(6px);
}

.insv-3d-mouse-tip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.insv-3d-mouse-tip span + span::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 12px;
    margin-right: 6px;
    background: #d5e2ec;
}

.insv-3d-mouse-tip kbd {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 5px;
    color: #49657d;
    background: #f8fbfd;
    border: 1px solid #a9c0d2;
    border-radius: 4px;
    font-family: inherit;
    font-size: 11px;
    line-height: 1;
}

.insv-3d-mouse-tip small {
    color: #7a8ea2;
    font-size: 12px;
    line-height: 1;
}

.insv-3d-mouse-tip i {
    position: relative;
    display: inline-block;
    width: 15px;
    height: 22px;
    border: 1px solid #7ca0bc;
    border-radius: 8px;
    background:
        linear-gradient(90deg, transparent 48%, #9bb6ca 48%, #9bb6ca 52%, transparent 52%),
        linear-gradient(180deg, transparent 39%, #9bb6ca 39%, #9bb6ca 43%, transparent 43%);
}

.insv-3d-mouse-tip i::before {
    content: "";
    position: absolute;
    top: 3px;
    width: 5px;
    height: 8px;
    border-radius: 5px 5px 2px 2px;
}

.insv-3d-mouse-tip span:nth-child(1) i::before {
    left: 2px;
    background: var(--insv-blue);
}

.insv-3d-mouse-tip span:nth-child(2) i::before {
    left: 50%;
    width: 3px;
    height: 7px;
    border-radius: 3px;
    background: var(--insv-blue);
    transform: translateX(-50%);
}

.insv-3d-mouse-tip span:nth-child(3) i::before {
    left: 2px;
    background: var(--insv-blue);
}

.insv-3d-info {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 54px;
    padding: 42px 0 44px;
    border-bottom: 1px solid var(--insv-line);
}

.insv-3d-params {
    display: block;
}

.insv-3d-params div {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 0;
    border-bottom: 1px solid var(--insv-line);
}

.insv-3d-params dt,
.insv-3d-params dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.insv-3d-params dt {
    color: #6a7b8e;
}

.insv-3d-params dd {
    color: #142230;
    font-weight: 700;
}

.insv-3d-preview-note {
    margin: 0;
    color: #5f7285;
    font-size: 15px;
    line-height: 1.7;
}

.insv-3d-preview-cta {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--insv-line);
}

.insv-3d-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 176px;
    height: 44px;
    margin-top: 0;
    padding: 0 28px;
    color: #fff;
    background: var(--insv-blue);
    border: 0;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.insv-3d-primary:hover {
    background: var(--insv-blue-dark);
}

.insv-3d-copy {
    color: #445b72;
    font-size: 17px;
    line-height: 1.9;
}

.insv-3d-copy p {
    max-width: 840px;
    margin: 0 0 20px;
}

.insv-3d-photos {
    display: flex;
    gap: 14px;
    margin-top: 6px;
}

.insv-3d-photos img {
    width: min(260px, 48%);
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    background: #e8eef3;
}

.insv-3d-related {
    padding-top: 44px;
}

.insv-3d-related__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

.insv-3d-related h2 {
    margin: 0;
    color: #17212e;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 800;
}

.insv-3d-related__head a {
    color: var(--insv-blue);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .insv-3d-library,
    .insv-3d-info {
        grid-template-columns: 1fr;
    }

    .insv-3d-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .insv-3d-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .insv-3d-shell {
        width: min(100% - 28px, 1180px);
    }

    .insv-3d-hero {
        padding-top: 32px;
    }

    .insv-3d-hero__row {
        display: block;
        padding-bottom: 24px;
    }

    .insv-3d-hero h1 {
        font-size: 38px;
    }

    .insv-3d-hero--detail h1 {
        font-size: 36px;
    }

    .insv-3d-hero__row p {
        font-size: 16px;
        line-height: 1.75;
    }

    .insv-3d-count {
        display: block;
        margin-top: 16px;
    }

    .insv-3d-filters,
    .insv-3d-grid {
        grid-template-columns: 1fr;
    }

    .insv-3d-card {
        min-height: auto;
    }

    .insv-3d-viewer {
        height: 520px;
        min-height: 420px;
    }

    .insv-3d-viewer-actions {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .insv-3d-preview-alert {
        display: block;
    }

    .insv-3d-preview-alert a {
        width: 100%;
        margin-top: 12px;
    }

    .insv-3d-mouse-tip {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .insv-3d-photos {
        display: grid;
        grid-template-columns: 1fr;
    }

    .insv-3d-photos img {
        width: 100%;
    }

    .insv-3d-preview-cta {
        display: block;
    }

    .insv-3d-preview-cta .insv-3d-primary {
        width: 100%;
        margin-top: 14px;
    }
}

@media (max-width: 768px) {
    .insv-3d {
        padding-top: 0;
    }
}
