/* =========================================================
   RESET / BASE
========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
    color: #ffffff;
    background: #050711;
}

button,
input {
    font: inherit;
}

button {
    user-select: none;
}

/* =========================================================
   BACKGROUND
========================================================= */

.bg-scene {
    position: fixed;
    inset: 0;
    z-index: -10;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 16% 20%, rgba(0, 234, 255, 0.2), transparent 34%),
        radial-gradient(circle at 86% 80%, rgba(139, 77, 255, 0.25), transparent 36%),
        radial-gradient(circle at 52% 6%, rgba(255, 255, 255, 0.06), transparent 25%),
        #050711;
}

.bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(36px);
    opacity: 0.72;
    animation: orbFloat 10s ease-in-out infinite alternate;
}

.bg-orb-1 {
    width: 360px;
    height: 360px;
    left: -100px;
    top: 90px;
    background: rgba(0, 234, 255, 0.24);
}

.bg-orb-2 {
    width: 450px;
    height: 450px;
    right: -130px;
    bottom: -110px;
    background: rgba(139, 77, 255, 0.3);
    animation-delay: -3s;
}

.bg-orb-3 {
    width: 280px;
    height: 280px;
    right: 34%;
    top: -130px;
    background: rgba(255, 255, 255, 0.1);
    animation-delay: -6s;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(98, 234, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(98, 234, 255, 0.045) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at center, black, transparent 78%);
    animation: gridDrift 18s linear infinite;
}

.bg-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.18), transparent 30%, rgba(0, 0, 0, 0.42)),
        radial-gradient(circle at center, transparent 48%, rgba(0, 0, 0, 0.44));
}

@keyframes orbFloat {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(42px, -32px, 0) scale(1.08);
    }
}

@keyframes gridDrift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 52px 52px;
    }
}

/* =========================================================
   LAYOUT
========================================================= */

.back-btn {
    position: fixed;
    top: 14px;
    left: 18px;
    z-index: 100;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: white;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    transition: 0.18s ease;
}

.back-btn:hover {
    border-color: rgba(98, 234, 255, 0.75);
    background: rgba(98, 234, 255, 0.12);
    transform: translateY(-1px);
}

.page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 510px minmax(0, 1fr);
    gap: 22px;
    padding: 54px 24px 18px;
}

.hero {
    height: calc(100vh - 72px);
    min-height: 620px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* =========================================================
   HERO
========================================================= */

.label {
    width: fit-content;
    margin: 0 0 8px;
    padding: 6px 10px;
    border: 1px solid rgba(98, 234, 255, 0.22);
    border-radius: 999px;
    color: #62eaff;
    font-size: 10px;
    font-weight: 1000;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    background: rgba(98, 234, 255, 0.08);
    box-shadow: 0 0 24px rgba(98, 234, 255, 0.08);
}

h1 {
    margin: 0 0 9px;
    max-width: 480px;
    font-size: clamp(44px, 3.2vw, 60px);
    line-height: 0.9;
    letter-spacing: -1.8px;
    background: linear-gradient(135deg, #ffffff 0%, #62eaff 42%, #8b4dff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 36px rgba(98, 234, 255, 0.14);
}

.description {
    max-width: 470px;
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.35;
    text-shadow: 0 0 18px rgba(0, 0, 0, 0.32);
}

/* =========================================================
   LEFT INPUT PANEL
========================================================= */

.upload-box {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 15px;
    border-radius: 23px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
        rgba(5, 8, 18, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.upload-box::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 0;
    background:
        linear-gradient(135deg, rgba(98, 234, 255, 0.16), transparent 28%),
        linear-gradient(315deg, rgba(139, 77, 255, 0.14), transparent 32%);
    opacity: 0.86;
    pointer-events: none;
}

.upload-box::after {
    content: "";
    position: absolute;
    top: -90px;
    left: -160px;
    z-index: 0;
    width: 220px;
    height: 560px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.075), transparent);
    transform: rotate(18deg);
    animation: panelShine 7s ease-in-out infinite;
    pointer-events: none;
}

.upload-box>* {
    position: relative;
    z-index: 1;
}

@keyframes panelShine {
    0% {
        transform: translateX(-90px) rotate(18deg);
        opacity: 0;
    }

    35% {
        opacity: 1;
    }

    65% {
        opacity: 0.7;
    }

    100% {
        transform: translateX(760px) rotate(18deg);
        opacity: 0;
    }
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 5px;
}

.panel-kicker,
.section-heading span {
    color: #62eaff;
    font-size: 10px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.upload-box h2 {
    margin: 0;
    color: white;
    font-size: 23px;
    line-height: 1;
    letter-spacing: -0.4px;
}

.format-pill {
    flex: 0 0 auto;
    padding: 6px 9px;
    border: 1px solid rgba(98, 234, 255, 0.42);
    border-radius: 999px;
    color: white;
    font-size: 10px;
    font-weight: 1000;
    letter-spacing: 1px;
    background: rgba(98, 234, 255, 0.12);
    box-shadow: 0 0 22px rgba(98, 234, 255, 0.12);
}

.panel-note {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    line-height: 1.25;
}

.section-heading {
    margin: 8px 0 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-heading::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(98, 234, 255, 0.28), transparent);
}

/* =========================================================
   DROP ZONE
========================================================= */

.drop-zone {
    position: relative;
    min-height: 76px;
    margin-top: 8px;
    display: grid;
    place-items: center;
    gap: 3px;
    padding: 9px 10px;
    border: 1px dashed rgba(98, 234, 255, 0.55);
    border-radius: 18px;
    text-align: center;
    cursor: pointer;
    background:
        radial-gradient(circle at center, rgba(0, 234, 255, 0.15), transparent 65%),
        rgba(0, 0, 0, 0.24);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.drop-zone:hover,
.drop-zone.drag-over {
    transform: translateY(-2px);
    border-color: rgba(98, 234, 255, 1);
    background:
        radial-gradient(circle at center, rgba(0, 234, 255, 0.28), transparent 65%),
        rgba(139, 77, 255, 0.18);
}

.drop-zone input {
    display: none;
}

.drop-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #061018;
    font-size: 14px;
    font-weight: 1000;
    background: linear-gradient(135deg, #62eaff, #8b4dff);
    box-shadow: 0 0 26px rgba(98, 234, 255, 0.45);
}

.drop-zone strong {
    color: white;
    font-size: 11.5px;
    font-weight: 1000;
}

.drop-zone small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 9.5px;
}

.drop-zone em {
    color: #62eaff;
    font-size: 9.5px;
    font-style: normal;
    font-weight: 1000;
}

/* =========================================================
   PRESET MODEL CARDS
========================================================= */

.model-collection {
    margin-top: 8px;
    display: grid;
    gap: 6px;
}

.model-card {
    position: relative;
    width: 100%;
    min-height: 40px;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 7px 10px;
    border: 1px solid rgba(98, 234, 255, 0.24);
    border-radius: 13px;
    color: white;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
        rgba(0, 0, 0, 0.24);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.model-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(98, 234, 255, 0.15), transparent 30%),
        radial-gradient(circle at 95% 80%, rgba(139, 77, 255, 0.16), transparent 34%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.model-card:hover {
    transform: translateY(-2px);
    border-color: rgba(98, 234, 255, 0.8);
}

.model-card:hover::before,
.model-card.active::before {
    opacity: 1;
}

.model-card.active {
    border-color: rgba(98, 234, 255, 0.95);
    background:
        linear-gradient(135deg, rgba(98, 234, 255, 0.18), rgba(139, 77, 255, 0.16)),
        rgba(0, 0, 0, 0.26);
    box-shadow:
        0 0 0 1px rgba(98, 234, 255, 0.32),
        0 0 26px rgba(98, 234, 255, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.model-card span,
.model-card strong {
    position: relative;
    z-index: 1;
}

.model-card span {
    color: #62eaff;
    font-size: 10px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.model-card strong {
    color: white;
    font-size: 11.5px;
    font-weight: 900;
}

/* =========================================================
   MODEL DATA PANEL
========================================================= */

.info-panel {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}

.info-panel div {
    position: relative;
    min-height: 37px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 6px 8px;
    border: 1px solid rgba(98, 234, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(98, 234, 255, 0.09), transparent 42%),
        rgba(0, 0, 0, 0.24);
}

.info-panel div::after {
    content: "";
    position: absolute;
    right: -22px;
    top: -22px;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: rgba(98, 234, 255, 0.08);
    pointer-events: none;
}

.info-panel div:nth-child(1),
.info-panel div:nth-child(4) {
    grid-column: span 6;
}

.info-panel div:nth-child(2),
.info-panel div:nth-child(3) {
    grid-column: span 3;
}

.info-panel span,
.info-panel strong {
    position: relative;
    z-index: 1;
}

.info-panel span {
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    font-weight: 800;
}

.info-panel strong {
    max-width: 100%;
    overflow: hidden;
    color: #ffffff;
    font-size: 13px;
    font-weight: 1000;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   VIEWER MAIN FRAME
========================================================= */

.viewer {
    position: relative;
    height: calc(100vh - 72px);
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 292px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
        rgba(0, 0, 0, 0.24);
    box-shadow:
        0 34px 100px rgba(0, 0, 0, 0.52),
        0 0 70px rgba(98, 234, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.viewer-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
}

.viewer-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black, transparent 76%);
    pointer-events: none;
}

.viewer-stage::after {
    content: "";
    position: absolute;
    top: 0;
    left: -20%;
    z-index: 6;
    width: 18%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    filter: blur(1px);
    background:
        linear-gradient(90deg,
            transparent,
            rgba(98, 234, 255, 0.08),
            rgba(98, 234, 255, 0.34),
            rgba(255, 255, 255, 0.18),
            rgba(98, 234, 255, 0.08),
            transparent);
}

.viewer.is-scanning .viewer-stage::after,
.viewer-stage.is-scanning::after {
    opacity: 1;
    animation: forensicScanSweep 1.1s ease-in-out forwards;
}

.viewer.is-scanning .viewer-stage,
.viewer-stage.is-scanning {
    box-shadow:
        inset 0 0 90px rgba(98, 234, 255, 0.14),
        0 0 60px rgba(98, 234, 255, 0.1);
}

.viewer-stage.scan-burst {
    animation: scanBurst 1.4s ease both;
}

@keyframes forensicScanSweep {
    0% {
        left: -20%;
    }

    100% {
        left: 108%;
    }
}

@keyframes scanBurst {
    0% {
        box-shadow: inset 0 0 0 rgba(99, 235, 255, 0);
    }

    35% {
        box-shadow: inset 0 0 130px rgba(99, 235, 255, 0.24);
    }

    100% {
        box-shadow: inset 0 0 0 rgba(99, 235, 255, 0);
    }
}

.viewer-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 225, 255, 0.42), transparent 65%);
    transform: translate(-50%, -50%);
    animation: pulseGlow 3.5s ease-in-out infinite;
    pointer-events: none;
}

.viewer.is-scanning .viewer-glow,
.viewer-stage.is-scanning .viewer-glow {
    animation-duration: 0.75s;
    background: radial-gradient(circle, rgba(0, 225, 255, 0.62), transparent 65%);
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: 1;
    }
}

.viewer-scanline {
    position: absolute;
    left: 0;
    right: 0;
    top: -18%;
    z-index: 6;
    height: 20%;
    pointer-events: none;
    opacity: 0.58;
    filter: blur(0.4px);
    background:
        linear-gradient(to bottom,
            transparent,
            rgba(98, 234, 255, 0.04),
            rgba(98, 234, 255, 0.15),
            rgba(255, 255, 255, 0.1),
            rgba(98, 234, 255, 0.07),
            transparent);
    animation: viewerScanMove 6.5s ease-in-out infinite;
}

@keyframes viewerScanMove {
    0% {
        top: -24%;
        opacity: 0;
    }

    15% {
        opacity: 0.58;
    }

    55% {
        opacity: 0.78;
    }

    90% {
        opacity: 0.38;
    }

    100% {
        top: 106%;
        opacity: 0;
    }
}

.webgl-canvas,
.viewer-stage .webgl-canvas {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* =========================================================
   VIEWER RETICLE
========================================================= */

.viewer-reticle {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0.58;
}

.reticle-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 168px;
    height: 168px;
    border: 1px solid rgba(98, 234, 255, 0.42);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 25px rgba(98, 234, 255, 0.16),
        inset 0 0 25px rgba(98, 234, 255, 0.1);
    animation: reticlePulse 2.8s ease-in-out infinite;
}

.reticle-line {
    position: absolute;
    left: 50%;
    top: 50%;
    background: rgba(98, 234, 255, 0.28);
    transform: translate(-50%, -50%);
}

.reticle-line-x {
    width: 230px;
    height: 1px;
}

.reticle-line-y {
    width: 1px;
    height: 230px;
}

@keyframes reticlePulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.96);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.06);
        opacity: 1;
    }
}

/* =========================================================
   VIEWER TOOLBAR / HUD
========================================================= */

.viewer-toolbar {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 8;
    display: flex;
    gap: 10px;
}

.viewer-toolbar button {
    min-height: 32px;
    padding: 6px 12px;
    border: 2px solid rgba(98, 234, 255, 0.28);
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 1000;
    cursor: pointer;
    background: rgba(5, 8, 18, 0.62);
    backdrop-filter: blur(14px);
    box-shadow:
        0 16px 42px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.viewer-toolbar button:hover {
    transform: translateY(-2px);
    border-color: rgba(98, 234, 255, 0.85);
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.24), rgba(139, 77, 255, 0.24));
}

.viewer-hud {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 8;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}

.hud-controls,
.hud-status {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 7px 9px;
    border: 2px solid rgba(98, 234, 255, 0.16);
    border-radius: 15px;
    background: rgba(5, 8, 18, 0.62);
    backdrop-filter: blur(14px);
    box-shadow:
        0 16px 42px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hud-controls span,
.hud-status span,
.hud-status strong {
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 900;
}

.hud-status strong {
    color: #62eaff;
}

.viewer:fullscreen {
    border-radius: 0;
}

/* =========================================================
   PLACEHOLDER / LOADING
========================================================= */

.viewer-placeholder {
    position: relative;
    z-index: 4;
    height: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.empty-state {
    width: min(540px, 82%);
    padding: 24px;
    border: 1px solid rgba(98, 234, 255, 0.22);
    border-radius: 30px;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(98, 234, 255, 0.18), transparent 58%),
        rgba(5, 8, 18, 0.48);
    backdrop-filter: blur(18px);
    box-shadow:
        0 0 50px rgba(0, 234, 255, 0.08),
        inset 0 0 40px rgba(255, 255, 255, 0.03);
}

.empty-orb {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #ffffff, transparent 18%),
        linear-gradient(135deg, #62eaff, #8b4dff);
    box-shadow:
        0 0 34px rgba(98, 234, 255, 0.42),
        0 0 70px rgba(139, 77, 255, 0.22);
}

.empty-orb span {
    color: #07101a;
    font-size: 24px;
    font-weight: 1000;
    letter-spacing: -1px;
}

.empty-kicker {
    margin: 0 0 8px;
    color: #62eaff;
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.empty-state h2 {
    margin: 0 0 12px;
    color: white;
    font-size: clamp(22px, 1.8vw, 32px);
    line-height: 1.05;
}

.empty-description {
    max-width: 430px;
    margin: 0 auto 18px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.45;
}

.empty-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.empty-badges span {
    padding: 6px 9px;
    border: 1px solid rgba(98, 234, 255, 0.28);
    border-radius: 999px;
    color: white;
    font-size: 10.5px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.28);
}

.loading-state {
    display: grid;
    place-items: center;
    gap: 16px;
    text-align: center;
}

.loading-ring {
    width: 58px;
    height: 58px;
    border: 3px solid rgba(98, 234, 255, 0.16);
    border-top-color: #62eaff;
    border-radius: 50%;
    animation: loadingSpin 0.9s linear infinite;
}

.loading-state p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 800;
}

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

/* =========================================================
   TOAST
========================================================= */

.toast {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 20;
    max-width: 320px;
    min-width: 220px;
    padding: 10px 13px;
    border: 1px solid rgba(98, 234, 255, 0.42);
    border-radius: 16px;
    color: white;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 900;
    background:
        linear-gradient(135deg, rgba(0, 234, 255, 0.22), rgba(139, 77, 255, 0.22)),
        rgba(5, 8, 18, 0.88);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.45),
        0 0 34px rgba(98, 234, 255, 0.18);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scale(0.98);
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        border-color 0.22s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast.error {
    border-color: rgba(255, 90, 120, 0.75);
    background:
        linear-gradient(135deg, rgba(255, 70, 100, 0.22), rgba(139, 77, 255, 0.18)),
        rgba(5, 8, 18, 0.9);
}

.toast.warning {
    border-color: rgba(255, 210, 90, 0.75);
    background:
        linear-gradient(135deg, rgba(255, 190, 60, 0.22), rgba(139, 77, 255, 0.16)),
        rgba(5, 8, 18, 0.9);
}

/* =========================================================
   RIGHT FORENSIC PANEL
========================================================= */

.forensic-panel {
    position: relative;
    z-index: 9;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    overflow-y: auto;
    background:
        radial-gradient(circle at top, rgba(98, 234, 255, 0.14), transparent 42%),
        rgba(5, 8, 18, 0.6);
    border-left: 1px solid rgba(98, 234, 255, 0.18);
    backdrop-filter: blur(16px);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.05);
    scrollbar-width: thin;
    scrollbar-color: rgba(98, 234, 255, 0.45) rgba(255, 255, 255, 0.04);
}

.forensic-panel::-webkit-scrollbar {
    width: 6px;
}

.forensic-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

.forensic-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(98, 234, 255, 0.45);
}

.forensic-header {
    display: grid;
    gap: 3px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(98, 234, 255, 0.18);
}

.forensic-header span {
    color: #62eaff;
    font-size: 10px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 1.6px;
}

.forensic-header strong {
    color: white;
    font-size: 19px;
    line-height: 1;
}

.forensic-section-title {
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #62eaff;
    font-size: 9px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 1.35px;
}

.forensic-section-title::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(98, 234, 255, 0.22);
}

/* =========================================================
   LIVE LOG / VERDICT
========================================================= */

.forensic-console {
    margin: 0;
    padding: 10px 11px;
    border: 1px solid rgba(99, 235, 255, 0.22);
    border-radius: 15px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(99, 235, 255, 0.08), rgba(132, 72, 255, 0.08)),
        rgba(4, 10, 22, 0.72);
    box-shadow:
        inset 0 0 28px rgba(99, 235, 255, 0.06),
        0 0 26px rgba(99, 235, 255, 0.08);
}

.console-header {
    margin-bottom: 7px;
    padding-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(99, 235, 255, 0.16);
}

.console-header span {
    color: #63ebff;
    font-size: 10px;
    font-weight: 1000;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.console-header strong {
    padding: 4px 8px;
    border-radius: 999px;
    color: #eaffff;
    font-size: 10px;
    letter-spacing: 0.12em;
    background: rgba(99, 235, 255, 0.12);
}

.console-lines {
    min-height: 78px;
    max-height: 92px;
    display: grid;
    gap: 3px;
    overflow: hidden;
    font-family: Consolas, "Courier New", monospace;
}

.console-lines p {
    margin: 0;
    color: rgba(225, 248, 255, 0.78);
    font-size: 10px;
    line-height: 1.2;
    animation: consoleLineIn 0.22s ease both;
}

.console-lines p.ok {
    color: #7dffb2;
}

.console-lines p.warn {
    color: #ffe27d;
}

.console-lines p.danger {
    color: #ff6b8b;
}

@keyframes consoleLineIn {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.forensic-verdict {
    position: relative;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(99, 235, 255, 0.22);
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.045);
}

.forensic-verdict::before {
    content: "";
    position: absolute;
    inset: -40%;
    opacity: 0;
    background: radial-gradient(circle, rgba(99, 235, 255, 0.16), transparent 55%);
    transition: 0.35s ease;
}

.forensic-verdict.is-ready::before {
    opacity: 1;
}

.forensic-verdict span,
.forensic-verdict strong,
.forensic-verdict p {
    position: relative;
    z-index: 1;
}

.forensic-verdict span {
    display: block;
    margin-bottom: 5px;
    color: #63ebff;
    font-size: 10px;
    font-weight: 1000;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.forensic-verdict strong {
    display: block;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.1;
}

.forensic-verdict p {
    margin: 4px 0 0;
    color: rgba(225, 248, 255, 0.68);
    font-size: 10.5px;
    line-height: 1.25;
}

.forensic-verdict.clean {
    border-color: rgba(125, 255, 178, 0.42);
    box-shadow: 0 0 26px rgba(125, 255, 178, 0.12);
}

.forensic-verdict.warn {
    border-color: rgba(255, 226, 125, 0.45);
    box-shadow: 0 0 26px rgba(255, 226, 125, 0.12);
}

.forensic-verdict.danger {
    border-color: rgba(255, 107, 139, 0.45);
    box-shadow: 0 0 26px rgba(255, 107, 139, 0.13);
}

/* =========================================================
   STATUS / REPORT / ACTIONS
========================================================= */

.scan-status-card {
    padding: 10px 12px;
    border: 1px solid rgba(98, 234, 255, 0.18);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(0, 234, 255, 0.12), rgba(139, 77, 255, 0.1)),
        rgba(0, 0, 0, 0.28);
}

.scan-status-card span {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    font-weight: 800;
}

.scan-status-card strong {
    color: #62eaff;
    font-size: 14px;
    font-weight: 1000;
}

.scan-report {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.scan-report div {
    min-height: 42px;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background:
        radial-gradient(circle at top right, rgba(98, 234, 255, 0.1), transparent 40%),
        rgba(0, 0, 0, 0.26);
}

.scan-report div:nth-child(2) {
    grid-column: 1 / -1;
}

.scan-report span {
    color: rgba(255, 255, 255, 0.52);
    font-size: 9.5px;
    font-weight: 800;
}

.scan-report strong {
    max-width: 100%;
    overflow: hidden;
    color: white;
    font-size: 12px;
    font-weight: 1000;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scan-actions {
    display: grid;
    gap: 6px;
}

.scan-actions-3 {
    grid-template-columns: 1fr;
}

.scan-actions button,
.forensic-panel .mode-btn {
    width: 100%;
    min-height: 31px;
    padding: 6px 9px;
    border: 1px solid rgba(98, 234, 255, 0.3);
    border-radius: 11px;
    color: white;
    font-size: 11.5px;
    font-weight: 900;
    cursor: pointer;
    background:
        linear-gradient(135deg, rgba(0, 234, 255, 0.14), rgba(139, 77, 255, 0.14)),
        rgba(0, 0, 0, 0.24);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.scan-actions button:hover,
.forensic-panel .mode-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(98, 234, 255, 0.85);
    background:
        linear-gradient(135deg, rgba(0, 234, 255, 0.26), rgba(139, 77, 255, 0.22)),
        rgba(0, 0, 0, 0.24);
}

.forensic-panel .mode-btn.active {
    border-color: rgba(98, 234, 255, 0.95);
    background:
        linear-gradient(135deg, rgba(0, 234, 255, 0.28), rgba(139, 77, 255, 0.25)),
        rgba(0, 0, 0, 0.24);
    box-shadow: 0 0 18px rgba(98, 234, 255, 0.16);
}

.complexity-low {
    color: #7dffb2 !important;
}

.complexity-medium {
    color: #ffe27d !important;
}

.complexity-high {
    color: #ffae5f !important;
}

.complexity-extreme {
    color: #ff6b8b !important;
    text-shadow: 0 0 14px rgba(255, 107, 139, 0.35);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1250px) {
    .page {
        grid-template-columns: 460px minmax(0, 1fr);
        gap: 18px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .viewer {
        grid-template-columns: minmax(0, 1fr) 275px;
    }

    h1 {
        font-size: clamp(38px, 3vw, 52px);
    }

    .upload-box {
        max-width: 440px;
    }
}

@media (max-width: 1099px) {
    body {
        overflow-y: auto;
    }

    .page {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 86px 20px 34px;
    }

    .hero {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    h1 {
        max-width: 100%;
        font-size: clamp(40px, 10vw, 60px);
    }

    .description {
        max-width: 720px;
        font-size: 15px;
    }

    .upload-box {
        max-width: 100%;
    }

    .viewer {
        height: auto;
        min-height: 0;
        display: block;
    }

    .viewer-stage {
        height: 560px;
        min-height: 520px;
    }

    .forensic-panel {
        height: auto;
        max-height: none;
        border-left: 0;
        border-top: 1px solid rgba(98, 234, 255, 0.18);
    }

    .viewer-hud {
        left: 14px;
        right: 14px;
        bottom: 14px;
        flex-direction: column;
    }

    .viewer-toolbar {
        top: 16px;
        right: 16px;
    }

    .toast {
        left: 18px;
        right: 18px;
        top: 18px;
        max-width: none;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .page {
        padding-left: 14px;
        padding-right: 14px;
    }

    .back-btn {
        left: 14px;
    }

    .info-panel {
        grid-template-columns: 1fr;
    }

    .info-panel div,
    .info-panel div:nth-child(1),
    .info-panel div:nth-child(2),
    .info-panel div:nth-child(3),
    .info-panel div:nth-child(4) {
        grid-column: auto;
    }

    .viewer-stage {
        height: 500px;
        min-height: 480px;
    }

    .viewer-toolbar {
        left: 14px;
        right: 14px;
        justify-content: center;
    }

    .viewer-toolbar button {
        flex: 1;
        padding-left: 8px;
        padding-right: 8px;
    }

    .viewer-reticle {
        opacity: 0.4;
    }

    .reticle-ring {
        width: 132px;
        height: 132px;
    }

    .reticle-line-x {
        width: 182px;
    }

    .reticle-line-y {
        height: 182px;
    }

    .scan-report {
        grid-template-columns: 1fr;
    }

    .scan-report div:nth-child(2) {
        grid-column: auto;
    }
}

/* =========================================================
   FINAL WIDTH FIX — prevents left side clipping at 100% zoom
========================================================= */

@media (min-width: 1100px) {
    .page {
        width: 100vw;
        max-width: 100vw;
        grid-template-columns: 320px minmax(0, 1fr);
        gap: 16px;
        padding: 54px 18px 18px;
        overflow: hidden;
    }

    .hero {
        min-width: 0;
        width: 100%;
    }

    .upload-box {
        max-width: 100%;
        width: 100%;
    }

    h1 {
        max-width: 100%;
        font-size: clamp(36px, 2.6vw, 48px);
        line-height: 0.92;
        letter-spacing: -1.4px;
    }

    .description {
        max-width: 100%;
        font-size: 11.5px;
    }

    .viewer {
        min-width: 0;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) 270px;
    }

    .viewer-stage {
        min-width: 0;
    }

    .forensic-panel {
        width: 270px;
        min-width: 270px;
        padding: 12px;
    }

    .forensic-header strong {
        font-size: 17px;
    }

    .console-lines {
        min-height: 64px;
        max-height: 76px;
    }

    .console-lines p {
        font-size: 9px;
    }

    .forensic-verdict {
        padding: 8px 10px;
    }

    .forensic-verdict strong {
        font-size: 14px;
    }

    .forensic-verdict p {
        font-size: 9.5px;
    }

    .scan-status-card {
        padding: 8px 10px;
    }

    .scan-report div {
        min-height: 38px;
        padding: 6px 8px;
    }

    .scan-actions button,
    .forensic-panel .mode-btn {
        min-height: 29px;
        padding: 5px 8px;
        font-size: 10.5px;
    }

    .model-card {
        gap: 10px;
    }

    .model-card-icon {
        width: 31px;
        height: 31px;
        border-radius: 10px;
    }

    .model-card-icon svg {
        width: 15px;
        height: 15px;
        stroke-width: 1.9;
    }
}

.model-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.model-card-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
}

.model-card-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(98, 234, 255, 0.12), rgba(139, 77, 255, 0.14)),
        rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(98, 234, 255, 0.20);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.model-card-icon svg {
    width: 20px;
    height: 20px;
    stroke: #62eaff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.92;
}

.model-card:hover .model-card-icon {
    transform: scale(1.05);
    border-color: rgba(98, 234, 255, 0.55);
}

.model-card.active .model-card-icon {
    background:
        linear-gradient(135deg, rgba(98, 234, 255, 0.22), rgba(139, 77, 255, 0.24)),
        rgba(0, 0, 0, 0.22);
    border-color: rgba(98, 234, 255, 0.72);
    box-shadow:
        0 0 18px rgba(98, 234, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.model-card.active .model-card-icon svg {
    stroke: #ffffff;
}

/* =========================================================
   FIX: compact preset model icons
   Icons should not expand the layout
========================================================= */

.model-card {
    position: relative;
    display: grid !important;
    align-content: center;
    padding-right: 48px !important;
}

.model-card-content {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.model-card-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    transform: translateY(-50%);
    background:
        linear-gradient(135deg, rgba(98, 234, 255, 0.12), rgba(139, 77, 255, 0.14)),
        rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(98, 234, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.model-card-icon svg {
    width: 15px;
    height: 15px;
    stroke: #62eaff;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.92;
}

.model-card:hover .model-card-icon {
    transform: translateY(-50%) scale(1.05);
    border-color: rgba(98, 234, 255, 0.55);
}

.model-card.active .model-card-icon {
    background:
        linear-gradient(135deg, rgba(98, 234, 255, 0.22), rgba(139, 77, 255, 0.24)),
        rgba(0, 0, 0, 0.22);
    border-color: rgba(98, 234, 255, 0.72);
    box-shadow:
        0 0 14px rgba(98, 234, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.model-card.active .model-card-icon svg {
    stroke: #ffffff;
}

@media (min-width: 1100px) {
    .model-card {
        min-height: 38px;
        padding-right: 42px !important;
    }

    .model-card-icon {
        right: 8px;
        width: 26px;
        height: 26px;
        border-radius: 8px;
    }

    .model-card-icon svg {
        width: 13px;
        height: 13px;
        stroke-width: 2;
    }
}

/* =========================================================
   VIEW MODE BUTTON ICONS
========================================================= */

.forensic-panel .mode-btn {
    display: grid;
    grid-template-columns: 28px 1fr 28px;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.forensic-panel .mode-label {
    display: block;
    text-align: center;
    line-height: 1;
}

.forensic-panel .mode-spacer {
    width: 28px;
    height: 28px;
}

.forensic-panel .mode-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background:
        linear-gradient(135deg, rgba(98, 234, 255, 0.10), rgba(139, 77, 255, 0.12)),
        rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(98, 234, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.forensic-panel .mode-icon svg {
    width: 15px;
    height: 15px;
    stroke: #62eaff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.95;
}

.forensic-panel .mode-btn:hover .mode-icon {
    transform: scale(1.06);
    border-color: rgba(98, 234, 255, 0.55);
}

.forensic-panel .mode-btn.active .mode-icon {
    background:
        linear-gradient(135deg, rgba(98, 234, 255, 0.20), rgba(139, 77, 255, 0.22)),
        rgba(0, 0, 0, 0.18);
    border-color: rgba(98, 234, 255, 0.75);
    box-shadow:
        0 0 14px rgba(98, 234, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.forensic-panel .mode-btn.active .mode-icon svg {
    stroke: #ffffff;
}

@media (min-width: 1100px) {
    .forensic-panel .mode-btn {
        grid-template-columns: 24px 1fr 24px;
        gap: 7px;
    }

    .forensic-panel .mode-icon,
    .forensic-panel .mode-spacer {
        width: 24px;
        height: 24px;
    }

    .forensic-panel .mode-icon {
        border-radius: 8px;
    }

    .forensic-panel .mode-icon svg {
        width: 13px;
        height: 13px;
        stroke-width: 1.9;
    }
}

/* =========================================================
   ACTION BUTTON ICONS
========================================================= */

.scan-actions button.icon-action-btn {
    display: grid;
    grid-template-columns: 24px 1fr 24px;
    align-items: center;
    gap: 7px;
    text-align: center;
}

.icon-action-btn .button-label {
    display: block;
    text-align: center;
    line-height: 1;
}

.icon-action-btn .button-spacer {
    width: 24px;
    height: 24px;
}

.icon-action-btn .action-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(98, 234, 255, 0.10), rgba(139, 77, 255, 0.12)),
        rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(98, 234, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.icon-action-btn .action-icon svg {
    width: 13px;
    height: 13px;
    stroke: #62eaff;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.95;
}

.icon-action-btn:hover .action-icon {
    transform: scale(1.06);
    border-color: rgba(98, 234, 255, 0.55);
}

.icon-action-btn:active .action-icon {
    transform: scale(0.96);
}

.icon-action-btn#runScanBtn .action-icon {
    background:
        linear-gradient(135deg, rgba(98, 234, 255, 0.18), rgba(139, 77, 255, 0.18)),
        rgba(0, 0, 0, 0.18);
    border-color: rgba(98, 234, 255, 0.32);
}

.icon-action-btn#runScanBtn:hover .action-icon {
    box-shadow:
        0 0 14px rgba(98, 234, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* =========================================================
   FIX: remove right panel scrollbar
   and compact forensic panel layout
========================================================= */

@media (min-width: 1100px) {
    .forensic-panel {
        height: 100%;
        overflow: hidden;
        padding: 12px 14px;
        gap: 8px;
    }

    .forensic-panel::-webkit-scrollbar {
        display: none;
    }

    .forensic-header {
        gap: 2px;
        padding-bottom: 6px;
    }

    .forensic-header span {
        font-size: 9px;
    }

    .forensic-header strong {
        font-size: 18px;
    }

    .scan-status-card {
        padding: 10px 12px;
        border-radius: 14px;
    }

    .scan-status-card span {
        font-size: 10px;
        margin-bottom: 2px;
    }

    .scan-status-card strong {
        font-size: 13px;
    }

    .forensic-section-title {
        margin-top: 2px;
        font-size: 9px;
        letter-spacing: 1.3px;
    }

    .scan-actions {
        gap: 6px;
    }

    .scan-actions button,
    .forensic-panel .mode-btn {
        min-height: 32px;
        padding: 6px 8px;
        border-radius: 11px;
        font-size: 12px;
    }

    .scan-report {
        gap: 6px;
    }

    .scan-report div {
        min-height: 42px;
        padding: 8px 10px;
        border-radius: 12px;
        gap: 2px;
    }

    .scan-report span {
        font-size: 10px;
    }

    .scan-report strong {
        font-size: 13px;
    }

    .icon-action-btn .action-icon,
    .icon-action-btn .button-spacer,
    .forensic-panel .mode-icon,
    .forensic-panel .mode-spacer {
        width: 20px;
        height: 20px;
    }

    .icon-action-btn .action-icon,
    .forensic-panel .mode-icon {
        border-radius: 7px;
    }

    .icon-action-btn .action-icon svg,
    .forensic-panel .mode-icon svg {
        width: 11px;
        height: 11px;
    }

    .forensic-panel .mode-btn {
        grid-template-columns: 20px 1fr 20px;
        gap: 6px;
    }

    .scan-actions button.icon-action-btn {
        grid-template-columns: 20px 1fr 20px;
        gap: 6px;
    }
}

/* =========================================================
   ULTRA COMPACT RIGHT PANEL
   so everything fits without scrollbar
========================================================= */

@media (min-width: 1100px) {
    .viewer {
        grid-template-columns: minmax(0, 1fr) 250px;
    }

    .forensic-panel {
        height: 100%;
        overflow: hidden !important;
        padding: 10px 11px;
        gap: 6px;
    }

    .forensic-panel::-webkit-scrollbar {
        display: none;
    }

    .forensic-header {
        gap: 1px;
        padding-bottom: 5px;
    }

    .forensic-header span {
        font-size: 8px;
        letter-spacing: 1.4px;
    }

    .forensic-header strong {
        font-size: 15px;
        line-height: 1;
    }

    .scan-status-card {
        padding: 8px 10px;
        border-radius: 12px;
    }

    .scan-status-card span {
        margin-bottom: 2px;
        font-size: 9px;
    }

    .scan-status-card strong {
        font-size: 12px;
        line-height: 1.1;
    }

    .forensic-section-title {
        margin-top: 1px;
        font-size: 8px;
        letter-spacing: 1.3px;
        gap: 6px;
    }

    .scan-actions {
        gap: 5px;
    }

    .scan-actions button,
    .forensic-panel .mode-btn {
        min-height: 28px;
        padding: 5px 7px;
        border-radius: 10px;
        font-size: 11px;
        line-height: 1;
    }

    .scan-report {
        gap: 5px;
    }

    .scan-report div {
        min-height: 34px;
        padding: 6px 9px;
        border-radius: 10px;
        gap: 1px;
    }

    .scan-report span {
        font-size: 8.5px;
        line-height: 1;
    }

    .scan-report strong {
        font-size: 11px;
        line-height: 1.05;
    }

    .icon-action-btn .action-icon,
    .icon-action-btn .button-spacer,
    .forensic-panel .mode-icon,
    .forensic-panel .mode-spacer {
        width: 18px;
        height: 18px;
    }

    .icon-action-btn .action-icon,
    .forensic-panel .mode-icon {
        border-radius: 6px;
    }

    .icon-action-btn .action-icon svg,
    .forensic-panel .mode-icon svg {
        width: 10px;
        height: 10px;
        stroke-width: 2;
    }

    .scan-actions button.icon-action-btn {
        grid-template-columns: 18px 1fr 18px;
        gap: 5px;
    }

    .forensic-panel .mode-btn {
        grid-template-columns: 18px 1fr 18px;
        gap: 5px;
    }

    .icon-action-btn .button-label,
    .forensic-panel .mode-label {
        font-size: 11px;
        line-height: 1;
    }

    .scan-actions-3 {
        gap: 5px;
    }

    .live-log,
    .forensic-log,
    .console-lines,
    #consoleLines {
        max-height: 54px;
        overflow: hidden;
    }

    #consoleState,
    .console-state {
        font-size: 8px;
        padding: 3px 7px;
    }

    #forensicVerdict,
    .forensic-verdict {
        padding: 8px 10px;
        border-radius: 12px;
    }

    #forensicVerdict span,
    .forensic-verdict span {
        font-size: 8px;
    }

    #forensicVerdict strong,
    .forensic-verdict strong {
        font-size: 11px;
        line-height: 1.1;
    }

    #forensicVerdict p,
    .forensic-verdict p {
        font-size: 9px;
        line-height: 1.2;
        margin-top: 2px;
    }
}

/* =========================================================
   VIEWER TOOLBAR BUTTON ICONS
========================================================= */

.viewer-toolbar .viewer-tool-btn {
    display: grid;
    grid-template-columns: 22px 1fr 22px;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.viewer-toolbar .viewer-tool-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(98, 234, 255, 0.10), rgba(139, 77, 255, 0.12)),
        rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(98, 234, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.viewer-toolbar .viewer-tool-icon svg {
    width: 12px;
    height: 12px;
    stroke: #62eaff;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.95;
}

.viewer-toolbar .button-label {
    display: block;
    text-align: center;
    line-height: 1;
}

.viewer-toolbar .button-spacer {
    width: 22px;
    height: 22px;
}

.viewer-toolbar .viewer-tool-btn:hover .viewer-tool-icon {
    transform: scale(1.06);
    border-color: rgba(98, 234, 255, 0.55);
}

.viewer-toolbar .viewer-tool-btn:active .viewer-tool-icon {
    transform: scale(0.96);
}

@media (min-width: 1100px) {
    .viewer-toolbar .viewer-tool-btn {
        grid-template-columns: 20px 1fr 20px;
        gap: 7px;
    }

    .viewer-toolbar .viewer-tool-icon,
    .viewer-toolbar .button-spacer {
        width: 20px;
        height: 20px;
    }

    .viewer-toolbar .viewer-tool-icon {
        border-radius: 7px;
    }

    .viewer-toolbar .viewer-tool-icon svg {
        width: 11px;
        height: 11px;
    }
}

/* =========================================================
   PREMIUM FORENSIC CHAMBER UPGRADE
   5 visual improvements: chamber, haze, system strip, toolbar, HUD, scan animation
========================================================= */

/* 1) Cinematic chamber glow behind the model */

.scanner-haze {
    position: absolute;
    left: 50%;
    top: 52%;
    z-index: 2;
    width: min(520px, 46vw);
    height: min(520px, 46vw);
    border-radius: 999px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle, rgba(98, 234, 255, 0.16), transparent 58%),
        radial-gradient(circle at 65% 35%, rgba(139, 77, 255, 0.12), transparent 52%);
    filter: blur(10px);
    opacity: 0.78;
    animation: scannerHazePulse 5.8s ease-in-out infinite;
}

.chamber-floor {
    position: absolute;
    left: 50%;
    bottom: 13%;
    z-index: 2;
    width: min(560px, 48vw);
    height: 150px;
    pointer-events: none;
    transform: translateX(-50%) perspective(520px) rotateX(64deg);
    border-radius: 50%;
    background:
        radial-gradient(ellipse at center, rgba(98, 234, 255, 0.20), transparent 58%),
        radial-gradient(ellipse at center, rgba(139, 77, 255, 0.12), transparent 70%);
    border: 1px solid rgba(98, 234, 255, 0.18);
    box-shadow:
        0 0 35px rgba(98, 234, 255, 0.14),
        inset 0 0 36px rgba(98, 234, 255, 0.08);
    opacity: 0.72;
}

.chamber-floor span {
    position: absolute;
    inset: 18px;
    border-radius: inherit;
    border: 1px dashed rgba(98, 234, 255, 0.28);
    animation: chamberFloorRotate 8s linear infinite;
}

/* 2) Subtle forensic orbit / scanning data marks */

.data-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    width: 190px;
    height: 190px;
    pointer-events: none;
    border-radius: 999px;
    border: 1px solid rgba(98, 234, 255, 0.14);
    transform: translate(-50%, -50%);
    opacity: 0.52;
    animation: dataOrbitRotate 12s linear infinite;
}

.data-orbit i {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #62eaff;
    box-shadow: 0 0 12px rgba(98, 234, 255, 0.8);
}

.data-orbit i:nth-child(1) {
    left: 50%;
    top: -3px;
}

.data-orbit i:nth-child(2) {
    right: 13px;
    bottom: 32px;
    background: #8b4dff;
}

.data-orbit i:nth-child(3) {
    left: 18px;
    bottom: 44px;
    background: #7dffb2;
}

/* 3) System status strip */

.system-strip {
    position: absolute;
    left: 22px;
    top: 20px;
    z-index: 7;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 360px);
    pointer-events: none;
    opacity: 0.85;
}

.system-strip span {
    padding: 6px 9px;
    border-radius: 999px;
    color: rgba(226, 251, 255, 0.82);
    font-size: 9px;
    font-weight: 1000;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    white-space: nowrap;
    background: rgba(5, 8, 18, 0.54);
    border: 1px solid rgba(98, 234, 255, 0.16);
    backdrop-filter: blur(12px);
    box-shadow:
        0 0 18px rgba(98, 234, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.system-strip span:first-child {
    color: #7dffb2;
    border-color: rgba(125, 255, 178, 0.24);
}

/* 4) Better toolbar container */

.viewer-toolbar {
    padding: 7px;
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(98, 234, 255, 0.07), rgba(139, 77, 255, 0.07)),
        rgba(5, 8, 18, 0.34);
    border: 1px solid rgba(98, 234, 255, 0.10);
    backdrop-filter: blur(16px);
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.viewer-toolbar button {
    position: relative;
    overflow: hidden;
}

.viewer-toolbar button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.10), transparent);
    transform: translateX(-120%);
    transition: transform 0.45s ease;
    pointer-events: none;
}

.viewer-toolbar button:hover::after {
    transform: translateX(120%);
}

/* 5) Premium bottom HUD */

.viewer-hud {
    align-items: flex-end;
}

.hud-controls,
.hud-status {
    position: relative;
    overflow: hidden;
    border-color: rgba(98, 234, 255, 0.24);
    background:
        linear-gradient(135deg, rgba(98, 234, 255, 0.08), rgba(139, 77, 255, 0.06)),
        rgba(5, 8, 18, 0.66);
}

.hud-controls::before,
.hud-status::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background:
        linear-gradient(90deg, transparent, rgba(98, 234, 255, 0.10), transparent);
    pointer-events: none;
}

.hud-controls span,
.hud-status span {
    position: relative;
    z-index: 1;
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hud-status strong {
    color: #62eaff;
    text-shadow: 0 0 10px rgba(98, 234, 255, 0.28);
}

/* Animated scan result activation */

.forensic-panel.scan-finished .scan-status-card {
    animation: scanStatusPulse 1.4s ease both;
}

.forensic-panel.scan-finished .scan-report div {
    animation: reportCardIn 0.42s ease both;
}

.forensic-panel.scan-finished .scan-report div:nth-child(1) {
    animation-delay: 0.02s;
}

.forensic-panel.scan-finished .scan-report div:nth-child(2) {
    animation-delay: 0.08s;
}

.forensic-panel.scan-finished .scan-report div:nth-child(3) {
    animation-delay: 0.14s;
}

.forensic-panel.scan-finished .scan-report div:nth-child(4) {
    animation-delay: 0.20s;
}

.forensic-panel.scan-finished .scan-report div:nth-child(5) {
    animation-delay: 0.26s;
}

.viewer.scan-core-active .system-strip span:nth-child(3),
.viewer-stage.scan-core-active .system-strip span:nth-child(3) {
    color: #ffe27d;
    border-color: rgba(255, 226, 125, 0.35);
    box-shadow: 0 0 18px rgba(255, 226, 125, 0.12);
}

/* Animations */

@keyframes scannerHazePulse {

    0%,
    100% {
        opacity: 0.58;
        transform: translate(-50%, -50%) scale(0.96);
    }

    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.06);
    }
}

@keyframes chamberFloorRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes dataOrbitRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes scanStatusPulse {
    0% {
        box-shadow: 0 0 0 rgba(98, 234, 255, 0);
    }

    35% {
        box-shadow:
            0 0 26px rgba(98, 234, 255, 0.22),
            inset 0 0 28px rgba(98, 234, 255, 0.08);
    }

    100% {
        box-shadow:
            0 0 18px rgba(98, 234, 255, 0.10),
            inset 0 0 18px rgba(98, 234, 255, 0.04);
    }
}

@keyframes reportCardIn {
    from {
        opacity: 0.35;
        transform: translateY(7px) scale(0.98);
        border-color: rgba(98, 234, 255, 0.08);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        border-color: rgba(98, 234, 255, 0.20);
    }
}

/* Compact protection */

@media (min-width: 1100px) {
    .system-strip {
        left: 18px;
        top: 18px;
        gap: 6px;
        max-width: calc(100% - 330px);
    }

    .system-strip span {
        padding: 5px 7px;
        font-size: 8px;
        letter-spacing: 0.9px;
    }

    .viewer-toolbar {
        padding: 5px;
    }

    .chamber-floor {
        width: min(460px, 42vw);
        height: 118px;
        bottom: 14%;
    }

    .data-orbit {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 1250px) {
    .system-strip span:nth-child(2) {
        display: none;
    }
}

@media (max-width: 1099px) {
    .system-strip {
        display: none;
    }

    .data-orbit {
        width: 140px;
        height: 140px;
    }
}

/* =========================================================
   FULLSCREEN: center right analysis panel
========================================================= */

.viewer:fullscreen,
.viewer:-webkit-full-screen {
    align-items: center;
}

.viewer:fullscreen .forensic-panel,
.viewer:-webkit-full-screen .forensic-panel {
    align-self: center;
    justify-self: end;

    height: auto;
    max-height: calc(100vh - 28px);

    margin: 0 12px 0 0;
    padding: 14px 12px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;

    overflow: hidden;
    border-radius: 24px;
}

/* чуть компактнее именно в fullscreen */
.viewer:fullscreen .forensic-header,
.viewer:-webkit-full-screen .forensic-header {
    padding-bottom: 8px;
}

.viewer:fullscreen .scan-status-card,
.viewer:-webkit-full-screen .scan-status-card {
    padding: 10px 12px;
}

.viewer:fullscreen .scan-report,
.viewer:-webkit-full-screen .scan-report {
    gap: 6px;
}

.viewer:fullscreen .scan-report div,
.viewer:-webkit-full-screen .scan-report div {
    min-height: 42px;
    padding: 8px 10px;
}

.viewer:fullscreen .scan-actions,
.viewer:-webkit-full-screen .scan-actions {
    gap: 6px;
}

.viewer:fullscreen .scan-actions button,
.viewer:fullscreen .forensic-panel .mode-btn,
.viewer:-webkit-full-screen .scan-actions button,
.viewer:-webkit-full-screen .forensic-panel .mode-btn {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
}

.viewer:fullscreen .forensic-section-title,
.viewer:-webkit-full-screen .forensic-section-title {
    margin-top: 2px;
    font-size: 9px;
}

.viewer:fullscreen .scan-report span,
.viewer:-webkit-full-screen .scan-report span {
    font-size: 10px;
}

.viewer:fullscreen .scan-report strong,
.viewer:-webkit-full-screen .scan-report strong {
    font-size: 13px;
}

/* =========================================================
   CENTER MODEL LOAD RESULT
========================================================= */

.viewer-result {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 14;
    min-width: 280px;
    max-width: min(460px, 82%);
    padding: 18px 22px;
    border-radius: 22px;
    text-align: center;
    color: white;
    background:
        linear-gradient(135deg, rgba(0, 234, 255, 0.18), rgba(139, 77, 255, 0.16)),
        rgba(5, 8, 18, 0.88);
    border: 1px solid rgba(98, 234, 255, 0.42);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45),
        0 0 34px rgba(98, 234, 255, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(18px);
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.24s ease,
        transform 0.24s ease;
}

.viewer-result.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.viewer-result.success {
    border-color: rgba(98, 234, 255, 0.58);
}

.viewer-result.error {
    border-color: rgba(255, 90, 120, 0.76);
    background:
        linear-gradient(135deg, rgba(255, 70, 100, 0.18), rgba(139, 77, 255, 0.14)),
        rgba(5, 8, 18, 0.92);
}

.viewer-result.warning {
    border-color: rgba(255, 210, 90, 0.76);
    background:
        linear-gradient(135deg, rgba(255, 190, 60, 0.18), rgba(139, 77, 255, 0.14)),
        rgba(5, 8, 18, 0.92);
}

.viewer-result .result-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #071018;
    font-size: 26px;
    font-weight: 1000;
    background: linear-gradient(135deg, #62eaff, #8b4dff);
    box-shadow:
        0 0 24px rgba(98, 234, 255, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.viewer-result.error .result-icon {
    color: white;
    background: linear-gradient(135deg, #ff5a78, #8b4dff);
}

.viewer-result.warning .result-icon {
    color: #111;
    background: linear-gradient(135deg, #ffe27d, #8b4dff);
}

.viewer-result .result-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 1000;
    line-height: 1.05;
}

.viewer-result .result-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    line-height: 1.35;
}

@media (min-width: 1100px) {
    .viewer-result {
        min-width: 300px;
        padding: 16px 20px;
    }

    .viewer-result .result-title {
        font-size: 18px;
    }

    .viewer-result .result-text {
        font-size: 12px;
    }

    .viewer-result .result-icon {
        width: 46px;
        height: 46px;
        font-size: 22px;
        margin-bottom: 10px;
    }
}

/* =========================================================
   FINAL POLISH: compact center load result
========================================================= */

.viewer-result {
    min-width: 230px !important;
    max-width: 360px !important;
    padding: 12px 16px !important;
    border-radius: 18px !important;
    transform: translate(-50%, -50%) scale(0.92) !important;
}

.viewer-result.show {
    transform: translate(-50%, -50%) scale(1) !important;
}

.viewer-result .result-icon {
    width: 38px !important;
    height: 38px !important;
    margin-bottom: 8px !important;
    font-size: 19px !important;
}

.viewer-result .result-title {
    font-size: 17px !important;
    margin-bottom: 4px !important;
}

.viewer-result .result-text {
    font-size: 11px !important;
    line-height: 1.25 !important;
}

@media (min-width: 1100px) {
    .viewer-result {
        min-width: 220px !important;
        max-width: 330px !important;
        padding: 11px 15px !important;
    }

    .viewer-result .result-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 17px !important;
    }

    .viewer-result .result-title {
        font-size: 15px !important;
    }

    .viewer-result .result-text {
        font-size: 10px !important;
    }
}

/* =========================================================
   SCAN READINESS / PROGRESS BAR
========================================================= */

.scan-progress-card {
    padding: 9px 10px;
    border-radius: 13px;
    background:
        radial-gradient(circle at top right, rgba(98, 234, 255, 0.10), transparent 45%),
        rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(98, 234, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.scan-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.scan-progress-top span {
    color: rgba(255, 255, 255, 0.52);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scan-progress-top strong {
    color: #62eaff;
    font-size: 10px;
    font-weight: 1000;
    white-space: nowrap;
}

.scan-progress-track {
    position: relative;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(98, 234, 255, 0.10);
}

.scan-progress-track i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #62eaff, #8b4dff);
    box-shadow: 0 0 16px rgba(98, 234, 255, 0.32);
    transition: width 0.35s ease;
}

.scan-progress-card.is-ready .scan-progress-track i {
    background: linear-gradient(90deg, #7dffb2, #62eaff);
}

.scan-progress-card.is-scanning .scan-progress-track i {
    animation: scanProgressGlow 0.9s ease-in-out infinite alternate;
}

.scan-progress-card.is-complete .scan-progress-track i {
    background: linear-gradient(90deg, #7dffb2, #62eaff, #8b4dff);
}

.scan-progress-card.is-error .scan-progress-track i {
    background: linear-gradient(90deg, #ff5a78, #8b4dff);
}

@keyframes scanProgressGlow {
    from {
        box-shadow: 0 0 10px rgba(98, 234, 255, 0.22);
    }

    to {
        box-shadow: 0 0 22px rgba(98, 234, 255, 0.55);
    }
}

@media (min-width: 1100px) {
    .scan-progress-card {
        padding: 7px 9px;
        border-radius: 11px;
    }

    .scan-progress-top {
        margin-bottom: 5px;
    }

    .scan-progress-top span {
        font-size: 8px;
    }

    .scan-progress-top strong {
        font-size: 9px;
    }

    .scan-progress-track {
        height: 6px;
    }
}

/* =========================================================
   FIX: clean scan progress card in right panel
========================================================= */

.scan-progress-card {
    padding: 7px 9px !important;
    border-radius: 12px !important;
    background:
        radial-gradient(circle at top right, rgba(98, 234, 255, 0.10), transparent 42%),
        rgba(0, 0, 0, 0.24) !important;
    border: 1px solid rgba(98, 234, 255, 0.14) !important;
    display: grid !important;
    gap: 5px !important;
    overflow: hidden !important;
}

.scan-progress-top {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2px !important;
    margin: 0 !important;
}

.scan-progress-top span {
    display: block !important;
    color: #62eaff !important;
    font-size: 8px !important;
    font-weight: 1000 !important;
    line-height: 1 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.scan-progress-top strong {
    display: block !important;
    max-width: 100% !important;
    color: white !important;
    font-size: 10.5px !important;
    font-weight: 1000 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.scan-progress-track {
    position: relative !important;
    height: 5px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(98, 234, 255, 0.10) !important;
}

.scan-progress-track i {
    display: block !important;
    height: 100% !important;
    width: 0%;
    border-radius: inherit !important;
    background: linear-gradient(90deg, #62eaff, #8b4dff) !important;
    box-shadow: 0 0 14px rgba(98, 234, 255, 0.28) !important;
    transition: width 0.35s ease !important;
}

.scan-progress-card.is-ready .scan-progress-track i {
    background: linear-gradient(90deg, #7dffb2, #62eaff) !important;
}

.scan-progress-card.is-scanning .scan-progress-track i {
    animation: scanProgressGlow 0.9s ease-in-out infinite alternate;
}

.scan-progress-card.is-complete .scan-progress-track i {
    background: linear-gradient(90deg, #7dffb2, #62eaff, #8b4dff) !important;
}

.scan-progress-card.is-error .scan-progress-track i {
    background: linear-gradient(90deg, #ff5a78, #8b4dff) !important;
}

@media (min-width: 1100px) {
    .scan-progress-card {
        padding: 6px 8px !important;
        gap: 4px !important;
    }

    .scan-progress-top span {
        font-size: 7.5px !important;
    }

    .scan-progress-top strong {
        font-size: 9.5px !important;
    }

    .scan-progress-track {
        height: 4px !important;
    }
}

/* =========================================================
   GAUSSIAN SPLAT MODE FIXES
========================================================= */

.viewer-stage canvas {
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.viewer.grid-hidden::before,
.viewer-stage.grid-hidden::before {
    opacity: 0 !important;
}

.viewer-stage .viewer-placeholder {
    z-index: 10;
}

.viewer-stage .viewer-result {
    z-index: 20;
}

/* =========================================================
   MODEL ROTATION CONTROLS
========================================================= */

.rotation-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.rotation-actions .icon-action-btn {
    min-width: 0;
}

.rotation-reset-btn {
    grid-column: 1 / -1;
}

/* =========================================================
   GAUSSIAN SPLAT VISUAL MODES
========================================================= */

.viewer-stage.mode-natural canvas {
    filter: none;
    opacity: 1;
}

.viewer-stage.mode-xray canvas {
    filter:
        grayscale(1) contrast(1.55) brightness(1.18) sepia(0.18) hue-rotate(135deg) saturate(2.4);
    opacity: 0.86;
}

.viewer-stage.mode-density canvas {
    filter:
        contrast(1.42) brightness(1.08) saturate(1.22);
    opacity: 1;
}

.viewer.mode-xray .viewer-glow,
.viewer-stage.mode-xray .viewer-glow {
    background: radial-gradient(circle, rgba(98, 234, 255, 0.72), transparent 66%);
    animation-duration: 1.6s;
}

.viewer.mode-density .viewer-glow,
.viewer-stage.mode-density .viewer-glow {
    background: radial-gradient(circle, rgba(125, 255, 178, 0.38), transparent 68%);
}

.viewer-stage.mode-xray::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    background:
        repeating-linear-gradient(to bottom,
            rgba(98, 234, 255, 0.055) 0px,
            rgba(98, 234, 255, 0.055) 1px,
            transparent 1px,
            transparent 6px),
        radial-gradient(circle at center, transparent 42%, rgba(0, 234, 255, 0.12));
    mix-blend-mode: screen;
    opacity: 0.72;
}

.viewer-stage.mode-density::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    background:
        radial-gradient(circle at center, transparent 38%, rgba(0, 0, 0, 0.18)),
        linear-gradient(90deg, transparent, rgba(125, 255, 178, 0.045), transparent);
    mix-blend-mode: screen;
    opacity: 0.55;
}

/* =========================================================
   RIGHT PANEL COMPACT FIX — no clipped forensic blocks
========================================================= */

@media (min-width: 1100px) {
    .viewer {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .forensic-panel {
        padding: 12px 11px;
        gap: 7px;
        overflow: hidden;
    }

    .forensic-header {
        gap: 2px;
        padding-bottom: 6px;
    }

    .forensic-header span {
        font-size: 8.5px;
        letter-spacing: 1.2px;
    }

    .forensic-header strong {
        font-size: 15px;
        line-height: 1;
    }

    .forensic-console {
        min-height: 74px;
        max-height: 82px;
        padding: 8px 9px;
        border-radius: 13px;
        overflow: hidden;
    }

    .console-header {
        margin-bottom: 4px;
    }

    .console-header span {
        font-size: 9px;
        letter-spacing: 1.2px;
    }

    .console-header strong {
        padding: 3px 8px;
        font-size: 8px;
    }

    .console-lines {
        max-height: 48px;
        overflow: hidden;
    }

    .console-lines p {
        margin: 0 0 2px;
        font-size: 8.5px;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .forensic-verdict {
        min-height: auto;
        padding: 8px 9px;
        border-radius: 13px;
    }

    .forensic-verdict span {
        font-size: 8.5px;
        letter-spacing: 1.2px;
    }

    .forensic-verdict strong {
        font-size: 11px;
        line-height: 1.05;
    }

    .forensic-verdict p {
        margin-top: 3px;
        font-size: 8px;
        line-height: 1.15;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .scan-status-card {
        padding: 8px 9px;
        border-radius: 13px;
    }

    .scan-status-card span {
        font-size: 8.5px;
    }

    .scan-status-card strong {
        font-size: 12px;
    }

    .scan-progress-card {
        padding: 7px 8px;
        border-radius: 12px;
    }

    .scan-progress-top span,
    .scan-progress-top strong {
        font-size: 8px;
    }

    .forensic-section-title {
        margin-top: 2px;
        font-size: 8.5px;
        letter-spacing: 1.2px;
    }

    .scan-report {
        gap: 5px;
    }

    .scan-report div {
        min-height: 34px;
        padding: 6px 8px;
        border-radius: 11px;
    }

    .scan-report span {
        font-size: 8px;
    }

    .scan-report strong {
        font-size: 10px;
    }

    .scan-actions {
        gap: 5px;
    }

    .forensic-panel .icon-action-btn,
    .forensic-panel .mode-btn {
        min-height: 29px;
        padding: 5px 7px;
        border-radius: 10px;
        font-size: 10px;
    }

    .forensic-panel .action-icon,
    .forensic-panel .mode-icon {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }

    .rotation-actions {
        gap: 5px;
    }
}

/* =========================================================
   STRONGER GAUSSIAN SPLAT X-RAY MODE
========================================================= */

.viewer-stage.mode-xray canvas {
    filter:
        grayscale(1) contrast(1.85) brightness(1.35) sepia(0.12) hue-rotate(145deg) saturate(3.2);
    opacity: 0.82;
}

.viewer.mode-xray .viewer-glow,
.viewer-stage.mode-xray .viewer-glow {
    background:
        radial-gradient(circle, rgba(98, 234, 255, 0.82), transparent 68%);
    animation-duration: 1.2s;
}

.viewer-stage.mode-xray::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    background:
        repeating-linear-gradient(to bottom,
            rgba(98, 234, 255, 0.075) 0px,
            rgba(98, 234, 255, 0.075) 1px,
            transparent 1px,
            transparent 5px),
        radial-gradient(circle at center, transparent 36%, rgba(0, 234, 255, 0.16)),
        linear-gradient(90deg, rgba(0, 234, 255, 0.08), transparent 28%, transparent 72%, rgba(139, 77, 255, 0.10));
    mix-blend-mode: screen;
    opacity: 0.82;
}

.viewer-stage.mode-xray .viewer-reticle {
    filter: drop-shadow(0 0 14px rgba(98, 234, 255, 0.55));
    opacity: 0.95;
}

/* =========================================================
   RIGHT PANEL — slightly bigger, still fits
========================================================= */

@media (min-width: 1100px) {
    .viewer {
        grid-template-columns: minmax(0, 1fr) 300px !important;
    }

    .forensic-panel {
        height: 100% !important;
        max-height: 100% !important;
        padding: 12px 12px !important;
        gap: 6px !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .forensic-header {
        flex: 0 0 auto !important;
        padding-bottom: 6px !important;
        margin-bottom: 0 !important;
    }

    .forensic-header span {
        font-size: 8.5px !important;
        line-height: 1 !important;
        letter-spacing: 1.2px !important;
    }

    .forensic-header strong {
        font-size: 15px !important;
        line-height: 1 !important;
    }

    .forensic-console {
        flex: 0 0 80px !important;
        min-height: 80px !important;
        max-height: 80px !important;
        padding: 8px 9px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    .console-header {
        height: 17px !important;
        margin-bottom: 4px !important;
        align-items: center !important;
    }

    .console-header span {
        font-size: 8px !important;
        line-height: 1 !important;
        letter-spacing: 1.2px !important;
    }

    .console-header strong {
        font-size: 7.5px !important;
        padding: 3px 8px !important;
        line-height: 1 !important;
    }

    .console-lines {
        max-height: 50px !important;
        overflow: hidden !important;
    }

    .console-lines p {
        margin: 0 0 2px !important;
        font-size: 8px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .forensic-verdict {
        flex: 0 0 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        padding: 8px 9px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    .forensic-verdict span {
        font-size: 8px !important;
        line-height: 1 !important;
        letter-spacing: 1.1px !important;
    }

    .forensic-verdict strong {
        display: block !important;
        margin-top: 2px !important;
        font-size: 10.5px !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .forensic-verdict p {
        margin-top: 2px !important;
        font-size: 7.5px !important;
        line-height: 1.08 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .scan-status-card {
        flex: 0 0 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
        padding: 8px 9px !important;
        border-radius: 12px !important;
    }

    .scan-status-card span {
        font-size: 8px !important;
        line-height: 1 !important;
    }

    .scan-status-card strong {
        margin-top: 3px !important;
        font-size: 12px !important;
        line-height: 1 !important;
    }

    .scan-progress-card {
        flex: 0 0 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        padding: 6px 8px !important;
        border-radius: 10px !important;
    }

    .scan-progress-top {
        margin-bottom: 3px !important;
    }

    .scan-progress-top span,
    .scan-progress-top strong {
        font-size: 7.5px !important;
        line-height: 1 !important;
    }

    .scan-progress-track {
        height: 4px !important;
    }

    .forensic-section-title {
        flex: 0 0 auto !important;
        margin: 4px 0 2px !important;
        font-size: 8px !important;
        line-height: 1 !important;
        letter-spacing: 1.15px !important;
    }

    .scan-report {
        flex: 0 0 auto !important;
        gap: 5px !important;
    }

    .scan-report div {
        min-height: 34px !important;
        padding: 6px 8px !important;
        border-radius: 10px !important;
    }

    .scan-report span {
        font-size: 7.5px !important;
        line-height: 1 !important;
    }

    .scan-report strong {
        margin-top: 3px !important;
        font-size: 9.5px !important;
        line-height: 1 !important;
    }

    .scan-actions {
        flex: 0 0 auto !important;
        gap: 5px !important;
    }

    .forensic-panel .icon-action-btn,
    .forensic-panel .mode-btn {
        min-height: 29px !important;
        height: 29px !important;
        padding: 5px 7px !important;
        border-radius: 9px !important;
        font-size: 9.5px !important;
        line-height: 1 !important;
    }

    .forensic-panel .button-label,
    .forensic-panel .mode-label {
        font-size: 9.5px !important;
        line-height: 1 !important;
    }

    .forensic-panel .action-icon,
    .forensic-panel .mode-icon {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
    }

    .rotation-actions {
        grid-template-columns: 1fr 1fr !important;
        gap: 5px !important;
    }

    .rotation-reset-btn {
        grid-column: 1 / -1 !important;
    }
}

.scan-status-card {
    display: none !important;
}

/* =========================================================
   RIGHT PANEL — cleaner + slightly wider
========================================================= */

@media (min-width: 1100px) {
    .viewer {
        grid-template-columns: minmax(0, 1fr) 330px !important;
    }

    .forensic-panel {
        padding: 15px 15px !important;
        gap: 8px !important;
    }

    .forensic-header span {
        font-size: 9px !important;
    }

    .forensic-header strong {
        font-size: 16px !important;
    }

    .forensic-console {
        flex-basis: 92px !important;
        min-height: 92px !important;
        max-height: 92px !important;
        padding: 10px 11px !important;
    }

    .console-header span {
        font-size: 8.5px !important;
    }

    .console-header strong {
        font-size: 8px !important;
    }

    .console-lines {
        max-height: 58px !important;
    }

    .console-lines p {
        font-size: 8.5px !important;
        line-height: 1.25 !important;
    }

    .forensic-verdict {
        flex-basis: 74px !important;
        min-height: 74px !important;
        max-height: 74px !important;
        padding: 10px 11px !important;
    }

    .forensic-verdict span {
        font-size: 8.5px !important;
    }

    .forensic-verdict strong {
        font-size: 11.5px !important;
    }

    .forensic-verdict p {
        font-size: 8px !important;
        line-height: 1.12 !important;
    }

    .scan-progress-card {
        flex-basis: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        padding: 7px 10px !important;
    }

    .scan-progress-top span,
    .scan-progress-top strong {
        font-size: 8px !important;
    }

    .forensic-section-title {
        font-size: 8.8px !important;
        margin: 5px 0 3px !important;
    }

    .scan-report {
        gap: 7px !important;
    }

    .scan-report div {
        min-height: 40px !important;
        padding: 8px 10px !important;
    }

    .scan-report span {
        font-size: 8px !important;
    }

    .scan-report strong {
        font-size: 10.8px !important;
    }

    .forensic-panel .icon-action-btn,
    .forensic-panel .mode-btn {
        height: 33px !important;
        min-height: 33px !important;
        padding: 6px 9px !important;
        font-size: 10.5px !important;
    }

    .forensic-panel .button-label,
    .forensic-panel .mode-label {
        font-size: 10.5px !important;
    }

    .forensic-panel .action-icon,
    .forensic-panel .mode-icon {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
    }

    .rotation-actions {
        gap: 6px !important;
    }
}

/* =========================================================
   FINAL RIGHT PANEL LAYOUT WITHOUT SCAN PROGRESS
========================================================= */

.scan-progress-card {
    display: none !important;
}

@media (min-width: 1100px) {
    .viewer {
        grid-template-columns: minmax(0, 1fr) 340px !important;
    }

    .forensic-panel {
        padding: 15px 15px !important;
        gap: 9px !important;
        overflow: hidden !important;
    }

    .forensic-console {
        min-height: 96px !important;
        max-height: 96px !important;
    }

    .forensic-verdict {
        min-height: 76px !important;
        max-height: 76px !important;
    }

    .scan-report div {
        min-height: 41px !important;
    }

    .forensic-panel .icon-action-btn,
    .forensic-panel .mode-btn {
        height: 34px !important;
        min-height: 34px !important;
    }

    .rotation-actions {
        gap: 6px !important;
    }

    .rotation-reset-btn {
        height: 32px !important;
        min-height: 32px !important;
    }
}

/* =========================================================
   COMPACT MODEL ROTATION — 3 buttons in one row
========================================================= */

.rotation-actions-compact {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 5px !important;
}

.rotation-actions-compact .icon-action-btn {
    height: 32px !important;
    min-height: 32px !important;
    padding: 5px 6px !important;
    justify-content: center !important;
    gap: 4px !important;
}

.rotation-actions-compact .action-icon {
    width: 19px !important;
    height: 19px !important;
    min-width: 19px !important;
}

.rotation-actions-compact .button-label {
    font-size: 9px !important;
    line-height: 1 !important;
}

.rotation-actions-compact .button-spacer {
    display: none !important;
}

.rotation-actions-compact .rotation-reset-btn {
    grid-column: auto !important;
}

/* =========================================================
   FINAL RIGHT PANEL WIDTH — use empty right space
========================================================= */

@media (min-width: 1100px) {
    .viewer {
        grid-template-columns: minmax(0, 1fr) 390px !important;
    }

    .forensic-panel {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        justify-self: stretch !important;
        align-self: stretch !important;
        box-sizing: border-box !important;

        padding: 16px 16px !important;
        gap: 9px !important;
    }

    .forensic-header strong {
        font-size: 17px !important;
    }

    .forensic-console {
        min-height: 96px !important;
        max-height: 96px !important;
    }

    .forensic-verdict {
        min-height: 78px !important;
        max-height: 78px !important;
    }

    .scan-report {
        gap: 7px !important;
    }

    .scan-report div {
        min-height: 42px !important;
        padding: 8px 10px !important;
    }

    .forensic-panel .icon-action-btn,
    .forensic-panel .mode-btn {
        height: 35px !important;
        min-height: 35px !important;
        padding: 6px 10px !important;
    }

    .rotation-actions-compact {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 7px !important;
    }

    .rotation-actions-compact .icon-action-btn {
        height: 34px !important;
        min-height: 34px !important;
    }

    .rotation-actions-compact .button-label {
        font-size: 10px !important;
    }
}

/* =========================================================
   LEFT INFO BUTTON + MODAL
========================================================= */

.info-open-btn {
    width: 100%;
    margin-top: 18px;
    min-height: 46px;
    border: 1px solid rgba(98, 234, 255, 0.38);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(8, 32, 42, 0.72), rgba(25, 18, 56, 0.72));
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 1.8px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow:
        inset 0 0 22px rgba(98, 234, 255, 0.08),
        0 0 22px rgba(0, 234, 255, 0.08);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.info-open-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(98, 234, 255, 0.9);
    box-shadow:
        inset 0 0 26px rgba(98, 234, 255, 0.12),
        0 0 28px rgba(0, 234, 255, 0.18);
}

.info-open-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #06111a;
    background: linear-gradient(135deg, #62eaff, #8b4dff);
    font-weight: 1000;
    font-size: 14px;
    box-shadow: 0 0 18px rgba(98, 234, 255, 0.35);
}

.info-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.info-modal.is-open {
    display: flex;
}

.info-modal-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(98, 234, 255, 0.08), transparent 42%),
        rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
}

.info-modal-card {
    position: relative;
    width: min(520px, 92vw);
    max-height: 88vh;
    overflow: auto;
    border: 1px solid rgba(98, 234, 255, 0.32);
    border-radius: 24px;
    padding: 28px;
    background:
        linear-gradient(145deg, rgba(13, 22, 32, 0.96), rgba(22, 18, 42, 0.96));
    color: #ffffff;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.55),
        inset 0 0 40px rgba(98, 234, 255, 0.06);
    animation: infoModalIn 0.22s ease-out;
}

@keyframes infoModalIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.info-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(98, 234, 255, 0.35);
    background: rgba(5, 12, 24, 0.75);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.info-modal-kicker {
    margin: 0 0 8px;
    color: #62eaff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    font-weight: 900;
}

.info-modal-card h2 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.05;
}

.info-modal-text {
    margin: 0 0 20px;
    color: rgba(230, 248, 255, 0.72);
    font-size: 14px;
    line-height: 1.55;
}

.info-modal-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(98, 234, 255, 0.18);
}

.info-modal-section strong {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 14px;
}

.info-modal-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.info-modal-section li {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    color: rgba(230, 248, 255, 0.72);
    font-size: 13px;
    line-height: 1.35;
}

.info-modal-section li span {
    color: #62eaff;
    font-weight: 900;
}

.info-modal-meta {
    margin-top: 20px;
    display: grid;
    gap: 6px;
    color: rgba(230, 248, 255, 0.55);
    font-size: 12px;
}

.info-modal-main-btn {
    width: 100%;
    margin-top: 22px;
    min-height: 42px;
    border: 0;
    border-radius: 13px;
    background: #ffffff;
    color: #111827;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 700px) {
    .info-modal-card {
        padding: 24px 18px;
    }

    .info-modal-section li {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* =========================================================
   FIX MOUSE ORBIT CONTROLS FOR GAUSSIAN SPLAT VIEWER
========================================================= */

.viewer-stage canvas {
    pointer-events: auto !important;
    cursor: grab;
}

.viewer-stage:active canvas {
    cursor: grabbing;
}

/* Decorative layers must not block mouse controls */
.viewer-glow,
.viewer-scanline,
.scanner-haze,
.chamber-floor,
.data-orbit,
.system-strip,
.viewer-reticle,
.viewer-hud,
.viewer-placeholder,
.viewer-result,
.toast {
    pointer-events: none !important;
}

/* Toolbar buttons must still be clickable */
.viewer-toolbar,
.viewer-toolbar *,
.forensic-panel,
.forensic-panel *,
.upload-box,
.upload-box *,
.info-open-btn,
.info-modal,
.info-modal * {
    pointer-events: auto !important;
}

/* Stronger forensic scanner grid */

.forensic-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(77, 231, 255, 0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 231, 255, 0.11) 1px, transparent 1px),
        linear-gradient(rgba(130, 95, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(130, 95, 255, 0.07) 1px, transparent 1px);

    background-size:
        64px 64px,
        64px 64px,
        16px 16px,
        16px 16px;

    mask-image: radial-gradient(circle at center, black 0%, black 58%, transparent 86%);
    opacity: 0.45;
    mix-blend-mode: screen;
}

.viewer-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;

    background:
        linear-gradient(90deg, transparent 49.85%, rgba(77, 231, 255, 0.28) 50%, transparent 50.15%),
        linear-gradient(transparent 49.85%, rgba(77, 231, 255, 0.22) 50%, transparent 50.15%);

    opacity: 0.22;
    mix-blend-mode: screen;
}

.viewer.grid-hidden .forensic-grid-overlay,
.viewer-stage.grid-hidden .forensic-grid-overlay,
.viewer.grid-hidden .viewer-stage::after,
.viewer-stage.grid-hidden::after {
    opacity: 0;
}