.cnxx-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    box-sizing: border-box;
}

.cnxx-overlay.is-open {
    display: flex;
}

.cnxx-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 16, 0.72);
    backdrop-filter: blur(8px);
}

.cnxx-window {
    position: relative;
    width: min(1680px, calc(100vw - 28px));
    height: min(94dvh, 980px);
    max-height: 94dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #060b18;
    border: 1px solid rgba(90, 130, 190, 0.28);
    box-shadow:
        0 0 0 1px rgba(40, 90, 160, 0.12),
        0 30px 80px rgba(0, 0, 0, 0.55);
    color: #e8eef8;
}

#solution_result {
    flex: 1 1 auto;
    overflow: auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.cnxx-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 56px 12px 18px;
    border-bottom: 1px solid rgba(90, 130, 190, 0.2);
    background: #08101f;
    position: sticky;
    top: 0;
    z-index: 2;
}

.cnxx-body {
    padding: 16px 18px 22px;
}

.cnxx-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    color: #8ea0bf;
    font-size: 13px;
}

.cnxx-crumbs svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.cnxx-crumb {
    color: #8ea0bf;
    text-decoration: none;
    white-space: nowrap;
}

.cnxx-crumb.is-current {
    color: #c9d6ee;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cnxx-sep {
    opacity: 0.55;
}

.cnxx-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #c5d2ea;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.cnxx-close:hover {
    background: rgba(255, 255, 255, 0.06);
}

.cnxx-close svg {
    width: 20px;
    height: 20px;
}

.cnxx-scroll {
    flex: 1 1 auto;
    overflow: auto;
}

.cnxx-hero {
    display: grid;
    grid-template-columns: 1.15fr 1.05fr 0.78fr;
    gap: 16px;
    margin-bottom: 16px;
}

.cnxx-gallery {
    position: relative;
    min-width: 0;
}

.cnxx-gal-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cnxx-main-shot {
    position: relative;
    height: 278px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(90, 140, 210, 0.28);
    background:
        radial-gradient(circle at 30% 40%, rgba(40, 110, 210, 0.22), transparent 55%),
        #0a1428;
}

.cnxx-main-shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.cnxx-gallery:has(.cnxx-gal-radio:nth-of-type(1):checked) .cnxx-main-shot img:nth-child(1),
.cnxx-gallery:has(.cnxx-gal-radio:nth-of-type(2):checked) .cnxx-main-shot img:nth-child(2),
.cnxx-gallery:has(.cnxx-gal-radio:nth-of-type(3):checked) .cnxx-main-shot img:nth-child(3),
.cnxx-gallery:has(.cnxx-gal-radio:nth-of-type(4):checked) .cnxx-main-shot img:nth-child(4),
.cnxx-gallery:has(.cnxx-gal-radio:nth-of-type(5):checked) .cnxx-main-shot img:nth-child(5),
.cnxx-gallery:has(.cnxx-gal-radio:nth-of-type(6):checked) .cnxx-main-shot img:nth-child(6),
.cnxx-gallery:has(.cnxx-gal-radio:nth-of-type(7):checked) .cnxx-main-shot img:nth-child(7),
.cnxx-gallery:has(.cnxx-gal-radio:nth-of-type(8):checked) .cnxx-main-shot img:nth-child(8) {
    display: block;
}

.cnxx-gallery:has(.cnxx-gal-radio:nth-of-type(1):checked) .cnxx-thumbs .cnxx-thumb:nth-child(1),
.cnxx-gallery:has(.cnxx-gal-radio:nth-of-type(2):checked) .cnxx-thumbs .cnxx-thumb:nth-child(2),
.cnxx-gallery:has(.cnxx-gal-radio:nth-of-type(3):checked) .cnxx-thumbs .cnxx-thumb:nth-child(3),
.cnxx-gallery:has(.cnxx-gal-radio:nth-of-type(4):checked) .cnxx-thumbs .cnxx-thumb:nth-child(4),
.cnxx-gallery:has(.cnxx-gal-radio:nth-of-type(5):checked) .cnxx-thumbs .cnxx-thumb:nth-child(5) {
    border-color: #4aa3ff;
    box-shadow: 0 0 0 1px rgba(74, 163, 255, 0.4);
}

.cnxx-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.cnxx-thumb {
    position: relative;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(90, 140, 210, 0.25);
    background: #0a1428;
    cursor: pointer;
    padding: 0;
}

.cnxx-thumb.is-active {
    border-color: #4aa3ff;
    box-shadow: 0 0 0 1px rgba(74, 163, 255, 0.4);
}

.cnxx-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cnxx-play,
.cnxx-more {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(4, 10, 22, 0.42);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}

.cnxx-play svg {
    width: 22px;
    height: 22px;
}

.cnxx-info {
    min-width: 0;
    padding: 6px 4px 0;
}

.cnxx-title-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.cnxx-title-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #5eb4ff;
    background: rgba(50, 130, 230, 0.12);
    box-shadow: 0 0 22px rgba(70, 160, 255, 0.25);
}

.cnxx-title-icon svg {
    width: 28px;
    height: 28px;
}

.cnxx-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cnxx-desc {
    margin: 0 0 18px;
    color: #9aa8c4;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-line;
}

.cnxx-feats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.cnxx-feat {
    text-align: center;
}

.cnxx-feat-ico {
    width: 42px;
    height: 42px;
    margin: 0 auto 8px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #7ec4ff;
    border: 1px solid rgba(90, 160, 230, 0.35);
    background: rgba(20, 50, 100, 0.25);
}

.cnxx-feat-ico svg {
    width: 20px;
    height: 20px;
}

.cnxx-feat span {
    display: block;
    font-size: 12px;
    line-height: 1.3;
    color: #c5d2ea;
}

.cnxx-side {
    min-width: 0;
    border-radius: 16px;
    padding: 16px;
    background: #0b1426;
    border: 1px solid rgba(90, 140, 210, 0.22);
}

.cnxx-badge {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 14px;
}

.cnxx-badge b {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    color: #7ec4ff;
    border: 1px solid rgba(90, 160, 230, 0.45);
    box-shadow: 0 0 16px rgba(70, 160, 255, 0.2);
}

.cnxx-badge span {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8ea0bf;
}

.cnxx-meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.cnxx-meta-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.cnxx-meta-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #6eb8ff;
    background: rgba(40, 90, 170, 0.18);
    flex: 0 0 auto;
}

.cnxx-meta-ico svg {
    width: 16px;
    height: 16px;
}

.cnxx-meta-row small {
    display: block;
    color: #7d8eab;
    font-size: 11px;
}

.cnxx-meta-row strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #e8eef8;
    line-height: 1.35;
}

.cnxx-cta-row {
    display: flex;
    gap: 8px;
}

.cnxx-cta {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: #1f6fff;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.cnxx-cta svg {
    width: 16px;
    height: 16px;
}

.cnxx-save {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(90, 140, 210, 0.35);
    background: #0a1428;
    color: #9ec4ff;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.cnxx-save svg {
    width: 18px;
    height: 18px;
}

.cnxx-mid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr;
    gap: 14px;
    margin-bottom: 16px;
}

.cnxx-card {
    border-radius: 16px;
    padding: 16px 16px 10px;
    background: #0b1426;
    border: 1px solid rgba(90, 140, 210, 0.2);
    min-width: 0;
}

.cnxx-card.is-red { box-shadow: inset 0 0 0 1px rgba(255, 80, 80, 0.08); }
.cnxx-card.is-green { box-shadow: inset 0 0 0 1px rgba(70, 230, 140, 0.08); }
.cnxx-card.is-blue { box-shadow: inset 0 0 0 1px rgba(70, 160, 255, 0.1); }

.cnxx-card-h {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
}

.cnxx-card-h svg {
    width: 20px;
    height: 20px;
}

.cnxx-card.is-red .cnxx-card-h { color: #ff6b6b; }
.cnxx-card.is-green .cnxx-card-h { color: #3ee08a; }
.cnxx-card.is-blue .cnxx-card-h { color: #5eb4ff; }

.cnxx-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cnxx-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.cnxx-item-ico {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.cnxx-item-ico svg {
    width: 16px;
    height: 16px;
}

.cnxx-card.is-red .cnxx-item-ico {
    color: #ff6b6b;
    background: rgba(255, 80, 80, 0.12);
    box-shadow: 0 0 12px rgba(255, 80, 80, 0.12);
}

.cnxx-card.is-green .cnxx-item-ico {
    color: #3ee08a;
    background: rgba(62, 224, 138, 0.12);
    box-shadow: 0 0 12px rgba(62, 224, 138, 0.12);
}

.cnxx-item strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.cnxx-item span {
    display: block;
    font-size: 12px;
    color: #8ea0bf;
}

.cnxx-scheme {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 6px;
    align-items: center;
    min-height: 220px;
}

.cnxx-scheme-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cnxx-scheme-node {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #c5d2ea;
}

.cnxx-scheme-node i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #7ec4ff;
    border: 1px solid rgba(90, 160, 230, 0.4);
    background: rgba(20, 50, 100, 0.3);
    flex: 0 0 auto;
}

.cnxx-scheme-node i svg {
    width: 14px;
    height: 14px;
}

.cnxx-scheme-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.cnxx-diamond {
    width: 92px;
    height: 92px;
    transform: rotate(45deg);
    border-radius: 12px;
    border: 1.5px solid #4aa3ff;
    background: rgba(30, 90, 190, 0.2);
    box-shadow: 0 0 28px rgba(70, 160, 255, 0.35);
    display: grid;
    place-items: center;
    color: #7ec4ff;
}

.cnxx-diamond svg {
    width: 30px;
    height: 30px;
    transform: rotate(-45deg);
}

.cnxx-scheme-center strong {
    font-size: 12px;
    line-height: 1.3;
    max-width: 140px;
}

.cnxx-hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #8ea0bf;
    font-size: 10px;
}

.cnxx-hub svg {
    width: 28px;
    height: 28px;
    color: #7ec4ff;
}

.cnxx-bottom {
    display: grid;
    grid-template-columns: 1.7fr 0.8fr;
    gap: 14px;
}

.cnxx-results {
    border-radius: 16px;
    padding: 16px;
    background: #0b1426;
    border: 1px solid rgba(150, 110, 230, 0.2);
    box-shadow: inset 0 0 0 1px rgba(160, 110, 255, 0.08);
}

.cnxx-results .cnxx-card-h {
    color: #c39bff;
}

.cnxx-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.cnxx-metric {
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    background: rgba(20, 16, 40, 0.5);
    border: 1px solid rgba(160, 120, 255, 0.18);
}

.cnxx-metric i {
    width: 28px;
    height: 28px;
    margin: 0 auto 8px;
    display: grid;
    place-items: center;
    color: #c39bff;
}

.cnxx-metric i svg {
    width: 18px;
    height: 18px;
}

.cnxx-metric b {
    display: block;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.cnxx-metric span {
    display: block;
    font-size: 11px;
    color: #9aa8c4;
    line-height: 1.3;
}

.cnxx-why {
    border-radius: 16px;
    padding: 16px;
    background: #0b1426;
    border: 1px solid rgba(90, 140, 210, 0.2);
}

.cnxx-why .cnxx-card-h {
    color: #e8eef8;
}

.cnxx-why-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #d5deef;
}

.cnxx-why-item svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin-top: 2px;
    color: #3ee08a;
}

.cnxx-status {
    display: block;
    padding: 40px 20px;
    text-align: center;
    color: #9aa8c4;
}

#cnxx-modal .sc-modal-shell2,
#cnxx-modal .sc-modal-shell2 * {
    box-sizing: border-box;
}

#cnxx-modal .sc-modal-shell2 {
    padding: 18px 18px 22px;
    min-height: 100%;
    background:
        radial-gradient(circle at 70% 15%, rgba(28, 107, 255, 0.13), transparent 32%),
        #020713;
}

#cnxx-modal .sc-modal2 {
    position: relative;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 4px 8px;
}

#cnxx-modal .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr);
    gap: 14px;
    align-items: start;
}

#cnxx-modal .glass-card,
#cnxx-modal .panel {
    background: linear-gradient(180deg, rgba(8, 28, 56, 0.92), rgba(4, 18, 36, 0.92));
    border: 1px solid #175998;
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

#cnxx-modal .media-panel {
    padding: 10px;
    min-width: 0;
}

#cnxx-modal .main-media {
    position: relative;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 200px;
    max-height: 340px;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    background: #06192d;
}

#cnxx-modal .main-media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

#cnxx-modal .main-media:hover > img {
    transform: scale(1.025);
}

#cnxx-modal .thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    margin-top: 9px;
}

#cnxx-modal .thumb {
    height: 68px;
    border: 1px solid #285d98;
    border-radius: 8px;
    overflow: hidden;
    background: #08182d;
    padding: 0;
    cursor: pointer;
}

#cnxx-modal .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#cnxx-modal .thumb:hover,
#cnxx-modal .thumb:focus-visible {
    border-color: #00d8ff;
    box-shadow: 0 0 18px rgba(0, 216, 255, 0.18);
    outline: none;
}

#cnxx-modal .intro-panel {
    padding: 8px 10px 4px;
    min-width: 0;
}

#cnxx-modal .title-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

#cnxx-modal .title-row h1 {
    font-size: clamp(22px, 2.2vw, 31px);
    line-height: 1.15;
    margin: 3px 0 0;
    font-weight: 700;
    color: #f5f8ff;
}

#cnxx-modal .lead {
    font-size: clamp(16px, 1.5vw, 22px);
    line-height: 1.5;
    color: #c0d0e8;
    margin: 16px 0 10px;
}

#cnxx-modal .desc {
    font-size: clamp(14px, 1.15vw, 18px);
    line-height: 1.65;
    color: #a8bdd9;
    margin: 0;
    white-space: pre-line;
}

#cnxx-modal .content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.28fr);
    gap: 10px;
    margin-top: 12px;
}

#cnxx-modal .panel {
    padding: 12px 16px;
    min-width: 0;
}

#cnxx-modal .panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 11px;
    border-bottom: 1px solid #22456e;
}

#cnxx-modal .panel-title img {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
}

#cnxx-modal .panel-title h2 {
    margin: 0;
    font-size: 17px;
    color: #f5f8ff;
}

#cnxx-modal .panel-title p {
    margin: 4px 0 0;
    font-size: 11px;
    color: #9fb2cc;
}

#cnxx-modal .panel-title.red h2 { color: #ff708d; }
#cnxx-modal .panel-title.green h2 { color: #55efce; }
#cnxx-modal .panel-title.blue h2 { color: #6ddfff; }

#cnxx-modal .issue {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 11px 0;
}

#cnxx-modal .issue img {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    object-fit: contain;
}

#cnxx-modal .issue b {
    display: block;
    font-size: 13px;
    margin: 2px 0 4px;
    color: #eef6ff;
}

#cnxx-modal .issue span {
    font-size: 12px;
    line-height: 1.5;
    color: #9eb3d0;
}

#cnxx-modal .scheme-image {
    position: relative;
    width: 100%;
    min-height: 220px;
    height: 270px;
    padding: 0;
    border: 0;
    background: #06162a;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    display: block;
}

#cnxx-modal .scheme-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 1200px) {
    .cnxx-hero,
    .cnxx-mid,
    .cnxx-bottom {
        grid-template-columns: 1fr;
    }

    .cnxx-title {
        font-size: 22px;
    }

    .cnxx-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cnxx-window {
        height: min(96dvh, 980px);
        max-height: 96dvh;
        width: min(1680px, calc(100vw - 20px));
    }

    #cnxx-modal .content-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    #cnxx-modal .scheme-panel {
        grid-column: 1 / -1;
    }

    #cnxx-modal .scheme-image {
        height: 320px;
    }
}

@media (max-width: 900px) {
    #cnxx-modal .hero-grid,
    #cnxx-modal .content-grid {
        grid-template-columns: 1fr;
    }

    #cnxx-modal .scheme-panel {
        grid-column: auto;
    }

    #cnxx-modal .thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .cnxx-overlay {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }

    .cnxx-window {
        width: 100%;
        height: 100%;
        max-height: 100dvh;
        min-height: 100dvh;
        border-radius: 0;
        border: 0;
        box-shadow: none;
    }

    .cnxx-close {
        top: max(8px, env(safe-area-inset-top));
        right: max(8px, env(safe-area-inset-right));
        width: 44px;
        height: 44px;
        background: rgba(7, 24, 47, 0.88);
        border: 1px solid rgba(96, 185, 255, 0.35);
    }

    .cnxx-feats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cnxx-scheme {
        grid-template-columns: 1fr;
    }

    .cnxx-main-shot {
        height: 200px;
    }

    #cnxx-modal .sc-modal-shell2 {
        padding: calc(52px + env(safe-area-inset-top)) 12px calc(18px + env(safe-area-inset-bottom));
    }

    #cnxx-modal .sc-modal2 {
        padding: 0;
    }

    #cnxx-modal .media-panel,
    #cnxx-modal .intro-panel,
    #cnxx-modal .panel {
        padding: 12px;
    }

    #cnxx-modal .main-media {
        max-height: 220px;
        min-height: 160px;
    }

    #cnxx-modal .thumbs {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    #cnxx-modal .thumb {
        flex: 0 0 76px;
        height: 56px;
        min-height: 44px;
    }

    #cnxx-modal .title-row h1 {
        font-size: 22px;
        padding-right: 36px;
    }

    #cnxx-modal .lead {
        font-size: 16px;
        margin-top: 12px;
    }

    #cnxx-modal .desc {
        font-size: 14px;
    }

    #cnxx-modal .panel-title {
        align-items: flex-start;
        gap: 10px;
    }

    #cnxx-modal .panel-title h2 {
        font-size: 16px;
    }

    #cnxx-modal .issue {
        gap: 10px;
        padding: 10px 0;
    }

    #cnxx-modal .issue img {
        width: 28px;
        height: 28px;
    }

    #cnxx-modal .scheme-image {
        height: auto;
        min-height: 180px;
        max-height: none;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 420px) {
    #cnxx-modal .thumb {
        flex-basis: 64px;
        height: 50px;
    }

    #cnxx-modal .title-row h1 {
        font-size: 20px;
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100010;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    box-sizing: border-box;
}

.lightbox.is-open {
    display: flex;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 5, 14, 0.86);
    backdrop-filter: blur(12px);
}

.lightbox__dialog {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 1600px);
    max-height: 90dvh;
    border: 1px solid #2a7ec0;
    border-radius: 14px;
    background: #020b18;
    box-shadow: 0 0 60px rgba(0, 178, 255, 0.18);
}

.lightbox__dialog img {
    display: block;
    max-width: min(92vw, 100%);
    max-height: min(88dvh, calc(100dvh - 72px));
    border-radius: 13px;
    object-fit: contain;
}

.lightbox__close {
    position: absolute;
    right: -16px;
    top: -16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #60b9ff;
    background: #07182f;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 700px) {
    .lightbox {
        padding: 0;
    }

    .lightbox__dialog {
        width: 100%;
        max-width: 100%;
        max-height: 100dvh;
        border-radius: 0;
        border: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100dvh;
        background: #020713;
    }

    .lightbox__dialog img {
        max-width: 100vw;
        max-height: 100dvh;
        border-radius: 0;
    }

    .lightbox__close {
        right: max(10px, env(safe-area-inset-right));
        top: max(10px, env(safe-area-inset-top));
        width: 44px;
        height: 44px;
        z-index: 2;
    }
}
