/* Shared coverflow gallery and enhanced product lightbox. */

/* Shared GabaTech product coverflow gallery */
body[data-product-template="network-diagnostic"] .netdiag-hero-shell {
    max-width: 94rem;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 14%, rgba(251, 146, 60, 0.10), transparent 26rem),
        radial-gradient(circle at 84% 18%, rgba(14, 165, 233, 0.10), transparent 30rem),
        linear-gradient(180deg, #eef6fb 0%, #f7fbfe 100%);
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.44), transparent 72%);
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-section > div {
    position: relative;
    z-index: 1;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-count {
    width: max-content;
    border: 1px solid #cfe1ef;
    background: rgba(255, 255, 255, 0.78);
    color: #526173;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(14px);
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow {
    position: relative;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-viewport {
    position: relative;
    height: clamp(430px, 40vw, 610px);
    overflow: hidden;
    border-radius: 36px;
    perspective: 1800px;
    outline: none;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-viewport:focus-visible {
    outline: 3px solid rgba(249, 115, 22, 0.38);
    outline-offset: 6px;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-track {
    position: relative;
    height: 100%;
    transform-style: preserve-3d;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide {
    position: absolute;
    top: 26px;
    left: 50%;
    width: min(860px, 68vw);
    aspect-ratio: 16 / 10;
    opacity: 0;
    transform: translateX(-50%) scale(0.76);
    transform-origin: center center;
    transition:
        transform 420ms cubic-bezier(0.2, 0.72, 0.2, 1),
        opacity 360ms ease,
        filter 360ms ease;
    pointer-events: none;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-surface {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 28px;
    background: #ffffff;
    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.16),
        0 8px 28px rgba(15, 23, 42, 0.08);
    cursor: pointer;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-media {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 251, 0.98));
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center center;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-index,
:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-label {
    position: absolute;
    top: 18px;
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 999px;
    padding: 6px 11px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(10px);
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-index {
    left: 18px;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-label {
    right: 18px;
    border-color: rgba(254, 215, 170, 0.92);
    background: rgba(255, 247, 237, 0.9);
    color: #b45309;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-zoom {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 7;
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 220ms ease, transform 220ms ease, background 220ms ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-zoom svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-zoom:hover,
:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-zoom:focus-visible {
    background: #0f172a;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide.is-active {
    z-index: 6;
    opacity: 1;
    filter: none;
    transform: translateX(-50%) rotateY(0deg) scale(1);
    pointer-events: auto;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide.is-active .netdiag-coverflow-surface {
    border-color: rgba(125, 211, 252, 0.88);
    box-shadow:
        0 36px 95px rgba(15, 23, 42, 0.19),
        0 0 0 1px rgba(255, 255, 255, 0.86) inset;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide.is-active .netdiag-coverflow-zoom {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide.is-prev,
:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide.is-next {
    z-index: 4;
    opacity: 0.66;
    filter: saturate(0.9) brightness(0.995);
    pointer-events: auto;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide.is-prev .netdiag-coverflow-surface,
:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide.is-next .netdiag-coverflow-surface {
    border-color: rgba(190, 204, 217, 0.9);
    box-shadow:
        0 24px 62px rgba(15, 23, 42, 0.13),
        0 6px 20px rgba(15, 23, 42, 0.07);
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide.is-prev {
    transform: translateX(-104%) rotateY(7deg) scale(0.82);
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide.is-next {
    transform: translateX(4%) rotateY(-7deg) scale(0.82);
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide.is-prev-2,
:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide.is-next-2 {
    z-index: 2;
    opacity: 0.10;
    filter: saturate(0.72) brightness(0.99);
    pointer-events: auto;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide.is-prev-2 {
    transform: translateX(-120%) rotateY(13deg) scale(0.72);
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide.is-next-2 {
    transform: translateX(20%) rotateY(-13deg) scale(0.72);
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide.is-hidden {
    pointer-events: none;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide:not(.is-active) .netdiag-coverflow-index,
:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide:not(.is-active) .netdiag-coverflow-label {
    opacity: 0;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-meta {
    position: relative;
    z-index: 8;
    max-width: 820px;
    min-height: 136px;
    margin: -8px auto 0;
    border: 1px solid rgba(203, 213, 225, 0.86);
    border-radius: 24px;
    padding: 16px 22px 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(18px);
    text-align: center;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-meta__topline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-meta__counter,
:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-meta__label {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-meta__counter {
    border: 1px solid #d7e3ec;
    background: #f8fbfd;
    color: #64748b;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-meta__label {
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #b45309;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-meta__title {
    margin: 10px 0 0;
    color: #0f172a;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.035em;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-meta__description {
    max-width: 680px;
    margin: 8px auto 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.5;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-arrow {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #d5e1ea;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #0f172a;
    font-size: 1.15rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-arrow:hover,
:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-arrow:focus-visible {
    border-color: #fdba74;
    background: #fff7ed;
    transform: translateY(-2px);
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 48px;
    padding: 0 4px;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    padding: 0;
    transition: width 220ms ease, background 220ms ease, transform 220ms ease;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-dot:hover,
:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-dot:focus-visible {
    background: #94a3b8;
    transform: scale(1.15);
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-dot.is-active {
    width: 28px;
    background: linear-gradient(90deg, #fb923c, #f97316);
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-hint {
    margin: 10px 0 0;
    color: #94a3b8;
    font-size: 0.78rem;
    text-align: center;
}

@media (min-width: 1024px) {
    body[data-product-template="network-diagnostic"] .netdiag-hero-shell {
        grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
        gap: 2.35rem;
    }
}

@media (min-width: 1280px) {
    body[data-product-template="network-diagnostic"] .netdiag-hero-shell {
        max-width: 98rem;
        grid-template-columns: minmax(0, 0.64fr) minmax(0, 1.36fr);
        gap: 1.75rem;
    }
}

@media (min-width: 1440px) {
    body[data-product-template="network-diagnostic"] .netdiag-hero-shell {
        max-width: 100rem;
    }
}

@media (max-width: 980px) {
    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-viewport {
        height: clamp(390px, 58vw, 520px);
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide {
        width: min(760px, 78vw);
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide.is-prev {
        transform: translateX(-88%) rotateY(7deg) scale(0.82);
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide.is-next {
        transform: translateX(-12%) rotateY(-7deg) scale(0.82);
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide.is-prev-2,
    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide.is-next-2 {
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 640px) {
    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-section::before {
        background-size: 34px 34px;
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-viewport {
        height: clamp(310px, 76vw, 430px);
        border-radius: 24px;
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide {
        top: 18px;
        width: 88vw;
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide.is-prev {
        opacity: 0.18;
        transform: translateX(-80%) scale(0.78);
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide.is-next {
        opacity: 0.18;
        transform: translateX(-20%) scale(0.78);
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-surface {
        border-radius: 20px;
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-index,
    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-label {
        top: 12px;
        min-height: 26px;
        padding: 5px 8px;
        font-size: 9px;
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-index {
        left: 12px;
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-label {
        right: 12px;
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-zoom {
        right: 12px;
        bottom: 12px;
        min-height: 36px;
        padding: 8px 11px;
        font-size: 11px;
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-meta {
        min-height: 0;
        margin-top: -2px;
        border-radius: 20px;
        padding: 18px;
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-meta__description {
        font-size: 0.88rem;
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-controls {
        gap: 10px;
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-arrow {
        width: 44px;
        height: 44px;
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-dots {
        gap: 5px;
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-dot {
        width: 7px;
        height: 7px;
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-dot.is-active {
        width: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-slide,
    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-arrow,
    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-dot,
    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .netdiag-coverflow-zoom {
        transition: none;
    }
}

/* GabaTech NetDiag lightbox */
:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .monitor-lightbox {
    width: min(94vw, 1580px);
    max-height: 94dvh;
    overflow: visible;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    background: rgba(248, 250, 252, 0.96);
    color: #0f172a;
    box-shadow:
        0 42px 120px rgba(2, 6, 23, 0.38),
        0 10px 36px rgba(15, 23, 42, 0.16);
    isolation: isolate;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .monitor-lightbox[open] {
    animation: netdiag-lightbox-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .monitor-lightbox::backdrop {
    background:
        radial-gradient(circle at 50% 28%, rgba(30, 64, 175, 0.10), transparent 38%),
        rgba(10, 18, 30, 0.78);
    -webkit-backdrop-filter: blur(12px) saturate(0.9);
    backdrop-filter: blur(12px) saturate(0.9);
    animation: netdiag-lightbox-backdrop-in 180ms ease-out both;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .monitor-lightbox__image {
    max-height: calc(94dvh - 88px);
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    box-shadow:
        0 18px 48px rgba(15, 23, 42, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .monitor-lightbox__bar {
    min-height: 42px;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 4px 0;
    border-top: 0;
    background: transparent;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .monitor-lightbox__bar [data-monitor-lightbox-caption] {
    display: inline-flex;
    min-height: 30px;
    max-width: min(78vw, 980px);
    align-items: center;
    border: 1px solid rgba(203, 213, 225, 0.84);
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.82);
    color: #475569 !important;
    font-size: 0.78rem;
    line-height: 1.35;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .monitor-lightbox__close {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 4;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    font-size: 1.25rem;
    line-height: 1;
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.24);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .monitor-lightbox__close:hover,
:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .monitor-lightbox__close:focus-visible {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.30);
    transform: translateY(-1px) scale(1.04);
}

:is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .monitor-lightbox__close:focus-visible {
    outline: 3px solid rgba(251, 146, 60, 0.38);
    outline-offset: 3px;
}

@keyframes netdiag-lightbox-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.975);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes netdiag-lightbox-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 640px) {
    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .monitor-lightbox {
        width: 96vw;
        padding: 8px;
        border-radius: 20px;
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .monitor-lightbox__image {
        max-height: calc(94dvh - 78px);
        border-radius: 14px;
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .monitor-lightbox__bar {
        min-height: 36px;
        padding: 8px 2px 0;
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .monitor-lightbox__bar [data-monitor-lightbox-caption] {
        min-height: 28px;
        max-width: calc(100% - 4px);
        padding: 5px 10px;
        font-size: 0.72rem;
    }

    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .monitor-lightbox__close {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
        font-size: 1.12rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .monitor-lightbox[open],
    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .monitor-lightbox::backdrop,
    :is(body[data-product-template="network-diagnostic"], body[data-product-template="power-reminder"], body[data-product-template="system-monitor"]) .monitor-lightbox__close {
        animation: none;
        transition: none;
    }
}

