/* proxy-kb.css - KB page-specific styles
   Shared styles (modal, nav, buttons, flex-items, footer, etc) are in site.css */

body { background: url("/img/bg-lightl-881.webp") repeat; }


/* Основные стили для блока proxy-list-content */
    .proxy-list-content {
        font-family: 'Roboto', sans-serif;
        line-height: 1.7;
        margin: 0;
        padding: 0;
        background-color: #f4f4f4;
        color: #333;
    }

    .proxy-list-content h1, .proxy-list-content h2, .proxy-list-content h3 {
        font-weight: 600;
        color: #2c3e50;
        text-align: center;
        margin-bottom: 10px;
    }

    /* Стиль для заголовков */
    .proxy-list-content h1 {
        font-size: 36px;
        margin-top: 30px;
    }

    .proxy-list-content h2 {
        font-size: 28px;
        border-bottom: 3px solid #3498db;
        padding-bottom: 10px;
        margin-top: 40px;
        color: #2980b9;
    }

    .proxy-list-content h3 {
        font-size: 22px;
        margin-top: 20px;
        color: #34495e;
    }

    /* Стиль для текста */
    .proxy-list-content p {
        color: #555;
        font-size: 16px;
        margin-bottom: 20px;
        line-height: 1.8;
        text-align: justify;
    }

    .proxy-list-content ul {
        list-style-type: none;
        padding-left: 0;
        margin-bottom: 20px;
    }

    .proxy-list-content ul li {
        position: relative;
        padding-left: 25px;
        margin-bottom: 10px;
    }

    .proxy-list-content ul li:before {
        content: '\2022';
        color: #2980b9;
        font-size: 24px;
        position: absolute;
        left: 0;
        top: 0;
    }

    /* Примечания */
    .proxy-list-content .note {
        background-color: #ecf0f1;
        padding: 15px;
        border-left: 6px solid #3498db;
        margin: 30px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .proxy-list-content .note p {
        margin: 0;
        font-size: 16px;
    }

    /* Стиль для картинок и диаграмм */
    .proxy-list-content .diagram {
        text-align: center;
        margin: 30px 0;
    }

    .proxy-list-content .diagram img {
        max-width: 90%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    /* Стиль для ссылок */
    .proxy-list-content a {
        color: #3498db;
        text-decoration: none;
    }

    .proxy-list-content a:hover {
        text-decoration: underline;
    }

    /* Медиазапросы для адаптивности */
    @media (max-width: 768px) {
        .proxy-list-content h1 {
            font-size: 28px;
        }
        .proxy-list-content h2 {
            font-size: 24px;
        }
        .proxy-list-content p {
            font-size: 14px;
        }
        .proxy-list-content .note {
            padding: 10px;
        }
        .proxy-list-content .diagram img {
            max-width: 100%;
        }
    }

.good-proxies-container {
    width: 1000px;
    max-width: 100%;
    background-color: #f9fbfd;
    border: 3px solid #d7e1ea;
    border-radius: 18px;
    padding: 24px;
    margin: 20px auto;
    box-shadow: 0 10px 28px rgba(20, 42, 63, 0.12);
    text-align: left;
}

html { scroll-behavior: smooth; }
.proxy-article { color: #243645; line-height: 1.72; }
.proxy-article h1 { margin: 0 0 14px; font-size: 32px; color: #1e2f3d; }
.proxy-article h2 { margin: 34px 0 12px; font-size: 25px; color: #1f5a82; border-bottom: 2px solid #d7e1ea; padding-bottom: 8px; }
.proxy-article h3 { margin: 18px 0 8px; font-size: 19px; color: #243b4d; }
.proxy-article p { margin: 0 0 14px; color: #334a5b; font-size: 16px; }
.proxy-article ul, .proxy-article ol { margin: 0 0 16px 22px; }
.proxy-article li { margin-bottom: 8px; }
.proxy-article a {
    color: #0d557e;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}
.proxy-article a:hover { color: #093c59; }
.proxy-article a:focus-visible {
    outline: 2px solid #0d557e;
    outline-offset: 2px;
}
.proxy-toc { background: #eef3f7; border: 1px solid #d6dee7; border-radius: 12px; padding: 14px; margin: 12px 0 24px; }
.proxy-toc-title { font-weight: 700; color: #2b4258; margin-bottom: 10px; display: block; }
.proxy-toc-links { display: flex; flex-wrap: wrap; gap: 8px; }
.proxy-toc-links a { display: inline-block; padding: 7px 12px; background: #fff; border: 1px solid #cfd9e3; border-radius: 999px; color: #234e73; text-decoration: none; font-size: 14px; }
.proxy-toc-links a:hover,
.proxy-toc-links a:focus-visible { background: #e9f2fb; border-color: #8fb9d8; color: #163a55; }
.proxy-article table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; }
.proxy-article th, .proxy-article td { border: 1px solid #d8dfe6; padding: 10px; text-align: left; vertical-align: top; }
.proxy-article th { background: #f1f5f9; color: #2b4258; }
.proxy-note { background: #fff8df; border-left: 4px solid #f2c94c; border-radius: 8px; padding: 10px 12px; margin: 12px 0 18px; color: #564000; }
.lang-swap-tip { font-size: 14px; color: #53687a; margin-bottom: 12px; }

.proxy-short-page {
    box-sizing: border-box;
    --gp-top-bar-height: 80px;
    width: min(1000px, calc(100% - 12px));
    margin: 12px auto 22px;
    padding: 5px 5px 5px;
    overflow: visible;
}

.proxy-short-article {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.proxy-short-hero {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 20px 16px 18px;
    border: 1px solid #d7e5f1;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 212, 120, 0.22), transparent 35%),
        radial-gradient(circle at left center, rgba(110, 184, 255, 0.18), transparent 42%),
        linear-gradient(180deg, #ffffff, #f5f9fc);
    box-shadow: 0 16px 36px rgba(16, 41, 62, 0.12);
}

.proxy-short-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #d7e5f1;
    background: #edf5fb;
    color: #2a587d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.proxy-short-hero h1 {
    margin-bottom: 12px;
}

.proxy-short-lead {
    max-width: 880px;
    margin-bottom: 16px;
    color: #3a556d;
    font-size: 16px;
    line-height: 1.8;
}

.proxy-short-hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1e7db3, #4aa3d9);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(30, 125, 179, 0.22);
}

.proxy-short-hero-link:hover,
.proxy-short-hero-link:focus-visible {
    background: linear-gradient(135deg, #176894, #3f94c5);
    color: #ffffff !important;
}

.proxy-short-layout {
    display: block;
}

.proxy-short-layout,
.proxy-short-toc-wrap,
.proxy-short-sections,
.proxy-short-section {
    min-width: 0;
}

.proxy-short-toc-wrap {
    display: block;
    min-height: 0;
}

.proxy-short-toc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 12px;
}

.proxy-short-toc-head .proxy-toc-title {
    margin-bottom: 0;
}

.proxy-short-toc-close,
.proxy-short-toc-fab {
    display: none;
}

.proxy-short-toc-fab {
    position: fixed;
    left: max(16px, calc((100vw - 1000px) / 2 + 16px));
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(18, 54, 86, 0.18);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 251, 0.98));
    box-shadow: 0 14px 30px rgba(3, 8, 20, 0.2);
    color: #163a55;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.proxy-short-toc-fab:hover,
.proxy-short-toc-fab:focus-visible {
    color: #0d557e;
    transform: translateY(-1px);
}

.proxy-short-toc-fab-icon {
    font-size: 18px;
    line-height: 1;
}

body.proxy-short-toc-open .proxy-short-toc-fab {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

.proxy-short-toc-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(18, 54, 86, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: #163a55;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.proxy-short-toc {
    position: fixed;
    left: max(16px, calc((100vw - 1000px) / 2 + 16px));
    top: calc(var(--gp-top-bar-height) + 14px);
    z-index: 1300;
    width: min(340px, calc(100vw - 32px));
    max-height: calc(100dvh - var(--gp-top-bar-height) - 28px);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 14px;
    box-shadow: 0 14px 30px rgba(16, 41, 62, 0.1);
    scrollbar-width: thin;
    scrollbar-color: #9bb9d0 #edf5fb;
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
}

body.proxy-short-toc-open .proxy-short-toc {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.proxy-short-toc .proxy-toc-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.proxy-short-toc .proxy-toc-links a {
    display: block;
    border-radius: 12px;
}

.proxy-short-toc::-webkit-scrollbar {
    width: 10px;
}

.proxy-short-toc::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #edf5fb;
}

.proxy-short-toc::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 2px solid #edf5fb;
    background: linear-gradient(180deg, #9dc1da, #74a9ca);
}

.proxy-short-sections {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.proxy-short-section {
    scroll-margin-top: calc(var(--gp-top-bar-height) + 10px);
    padding: 20px 16px 16px;
    border: 1px solid #d7e5f1;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff, #f8fbfe);
    box-shadow: 0 14px 28px rgba(16, 41, 62, 0.08);
}

.proxy-short-section > h2 {
    margin: 6px 0 14px;
}

.proxy-short-section p,
.proxy-short-section li,
.proxy-short-section a,
.proxy-short-section th,
.proxy-short-section td {
    overflow-wrap: anywhere;
    word-break: normal;
}

.proxy-short-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(30, 125, 179, 0.14), rgba(255, 208, 120, 0.28));
    color: #214f74;
    font-size: 13px;
    font-weight: 800;
}

.proxy-short-section .proxy-note {
    margin-top: 14px;
}

.proxy-short-section table {
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
}

.proxy-short-section a[href*="/proxy-info/full/"] {
    color: #0c5da5;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(19, 116, 194, 0.48);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
    box-shadow: inset 0 -0.62em 0 rgba(116, 190, 255, 0.2);
    border-radius: 5px;
    transition: color 0.18s ease, box-shadow 0.18s ease, text-decoration-color 0.18s ease;
}

.proxy-short-section a[href*="/proxy-info/full/"]:hover,
.proxy-short-section a[href*="/proxy-info/full/"]:focus-visible {
    color: #083c70;
    text-decoration-color: rgba(255, 184, 77, 0.74);
    box-shadow: inset 0 -0.72em 0 rgba(255, 208, 120, 0.3);
}

@media (max-width: 1080px) {
    .proxy-short-layout {
        display: block;
    }

    .proxy-short-toc-wrap {
        display: block;
        min-height: 0;
    }
}

@media (max-width: 720px) {
    body.proxy-short-toc-open {
        overflow: hidden;
        overscroll-behavior: none;
    }

    .proxy-short-page {
        padding: 4px 4px 4px;
    }

    .proxy-short-hero,
    .proxy-short-section {
        padding: 16px 14px;
        border-radius: 20px;
    }

    .proxy-short-article,
    .proxy-short-sections {
        gap: 12px;
    }

    .proxy-short-section table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .proxy-short-section th,
    .proxy-short-section td {
        white-space: normal;
    }

    .proxy-short-toc {
        padding: 14px;
    }

    .proxy-short-toc-fab {
        left: 14px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .proxy-short-toc {
        inset: 0;
        width: auto;
        height: 100dvh;
        max-height: 100dvh;
        min-height: 100vh;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        padding: calc(6px + env(safe-area-inset-top, 0px)) 16px calc(18px + env(safe-area-inset-bottom, 0px));
        border-radius: 0;
        border: 0;
        background: linear-gradient(180deg, rgba(255,255,255,0.985), rgba(245,250,253,0.985));
        transform: translateY(100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.24s ease, opacity 0.24s ease, visibility 0.24s ease;
        box-shadow: none;
    }

    body.proxy-short-toc-open .proxy-short-toc {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .proxy-short-toc-head {
        position: sticky;
        top: 0;
        z-index: 1;
        align-items: flex-start;
        margin: -2px 0 12px;
        padding: 0 0 12px;
        background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(255,255,255,0.88));
    }

    .proxy-short-toc-close {
        display: inline-flex;
    }
}


    .filter-section {
        display: flex;
        justify-content: space-between;
    }

    .filters {
        width: 30%;
    }

    .filters h4 {
        margin-bottom: 10px;
        font-size: 1rem;
        color: #555;
        font-weight: bold; /* Делаем заголовки жирными */
    }

    .filter-group {
        margin-bottom: 15px;
    }

    .filter-group label {
        display: block;
        margin-bottom: 5px;
        cursor: pointer;
    }

    .filter-group input[type="checkbox"] {
        margin-right: 5px;
    }

    .filter-group input[type="text"], 
    .filter-group input[type="number"], 
    .filter-group select {
        width: 100%;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 5px;
        margin-top: 5px;
    }

    .api-link {
        margin-top: 20px;
    }

    .api-link input {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .api-link button {
        padding: 10px;
        border: none;
        background-color: #007bff;
        color: white;
        cursor: pointer;
        border-radius: 5px;
    }

    .buttons {
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
    }

    .buttons .open-btn {
        background-color: #28a745;
        color: white;
        padding: 10px;
        width: 48%;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    .buttons .download-btn {
        background-color: #F25320;
        color: white;
        padding: 10px;
        width: 48%;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }


.invalid-key-message-cloud { 
    position: fixed;
    top: 30%; /* Позиция выше, чем по центру */
    left: 50%;
    width: auto;
    transform: translateX(-50%) scale(0.7); /* Начальный масштаб меньше */
    background-color: rgba(255, 0, 0, 0.8); /* Красный фон с полупрозрачностью */
    color: #FFFFFF; /* Белый цвет текста */
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.6); /* Голубая тень вокруг */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
    max-width: 100%; /* Ограничиваем ширину на больших экранах */
    text-align: left; /* Выравнивание текста по левому краю */
    }

    /* Анимация для появления */
    .invalid-key-message-cloud.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) scale(1); /* Полный размер */
    }


/* ── KB card grid ────────────────────────────────────────────── */
.kb-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.kb-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 16px 14px;
    border: 1px solid #d7e5f1;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f8fbfe);
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 6px 16px rgba(16,41,62,0.07);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.kb-card:hover,
.kb-card:focus-visible {
    box-shadow: 0 14px 32px rgba(16,41,62,0.14);
    transform: translateY(-2px);
    border-color: #9dc9e7;
}

.kb-card-icon {
    font-size: 26px;
    line-height: 1;
    flex: 0 0 auto;
}

.kb-card-body {
    flex: 1;
}

.kb-card-body h3 {
    margin: 0 0 5px;
    font-size: 15px;
    color: #1e3a52;
    font-weight: 700;
    text-align: left;
    border: none;
    padding: 0;
}

.kb-card-body p {
    margin: 0;
    font-size: 13.5px;
    color: #4a6478;
    line-height: 1.55;
    text-align: left;
}

.kb-card-cta {
    font-size: 13px;
    font-weight: 700;
    color: #1e7db3;
    margin-top: 2px;
    flex: 0 0 auto;
}

.kb-card:hover .kb-card-cta {
    text-decoration: underline;
}

.kb-card.kb-card--featured {
    grid-column: span 2;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 18px;
    border-color: #bcd8ef;
    background: linear-gradient(135deg, #f0f7fd, #fafcff);
}

.kb-card.kb-card--featured .kb-card-icon {
    font-size: 36px;
    margin-top: 2px;
}

.kb-card.kb-card--featured .kb-card-body h3 {
    font-size: 16px;
}

@media (max-width: 640px) {
    .kb-cards-grid {
        grid-template-columns: 1fr;
    }
    .kb-card.kb-card--featured {
        grid-column: span 1;
        flex-direction: column;
    }
}

/* ── Quick-start steps ─────────────────────────────── */
.kb-quickstart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.kb-quickstart-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #d7e5f1;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 4px 12px rgba(16, 41, 62, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.kb-quickstart-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 41, 62, 0.12);
}

.kb-quickstart-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e7db3, #4aa3d9);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.kb-quickstart-icon {
    font-size: 20px;
    line-height: 1;
}

.kb-quickstart-text {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e3a52;
    white-space: nowrap;
}

.kb-quickstart-arrow {
    font-size: 18px;
    color: #9bb9d0;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .kb-quickstart {
        flex-direction: column;
        gap: 8px;
    }
    .kb-quickstart-arrow {
        transform: rotate(90deg);
    }
}

/* ── Stats bar ──────────────────────────────────────── */
.kb-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 18px;
    border: 1px solid #d7e5f1;
    border-radius: 16px;
    background: linear-gradient(135deg, #f0f7fd, #fafcff);
    box-shadow: 0 6px 16px rgba(16, 41, 62, 0.07);
    flex-wrap: wrap;
}

.kb-stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 60px;
}

.kb-stats-label {
    font-size: 11px;
    font-weight: 700;
    color: #5a7a92;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.kb-stats-value {
    font-size: 20px;
    font-weight: 800;
    color: #1e3a52;
    font-variant-numeric: tabular-nums;
}

.kb-stats-sep {
    width: 1px;
    height: 28px;
    background: #d7e5f1;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .kb-stats-bar {
        gap: 10px;
        padding: 10px 12px;
    }
    .kb-stats-value {
        font-size: 17px;
    }
    .kb-stats-sep {
        display: none;
    }
}

/* ── Setup guides ─────────────────────────────────── */
.kb-setup-page {
    width: min(1000px, calc(100% - 12px));
}

.kb-setup-hero h1 {
    max-width: 920px;
}

.kb-setup-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.kb-setup-fact {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #d7e5f1;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 18px rgba(16, 41, 62, 0.07);
}

.kb-setup-fact span {
    display: block;
    margin-bottom: 5px;
    color: #587286;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.kb-setup-fact strong {
    display: block;
    color: #1f3f58;
    font-size: 14px;
    line-height: 1.45;
}

.kb-setup-list {
    margin: 0 0 14px 22px;
    padding: 0;
}

.kb-setup-list li {
    margin-bottom: 9px;
    color: #334a5b;
}

.kb-setup-list code,
.kb-setup-section code {
    padding: 2px 6px;
    border: 1px solid #d6e2ec;
    border-radius: 7px;
    background: #f3f7fa;
    color: #18384f;
    font-size: 0.95em;
}

.kb-setup-shot-note {
    margin: 16px 0 8px;
    padding: 10px 12px;
    border-left: 3px solid #8fb9d8;
    border-radius: 10px;
    background: #f4f9fd;
    color: #334a5b;
    line-height: 1.65;
}

.kb-setup-figure {
    margin: 18px 0 6px;
    overflow: hidden;
    border: 1px solid #d7e5f1;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(16, 41, 62, 0.1);
}

.kb-setup-image-button {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 12px;
    border: 0;
    background: #f8fbfe;
    cursor: zoom-in;
}

.kb-setup-image-button:hover,
.kb-setup-image-button:focus-visible {
    background: #eef6fc;
}

.kb-setup-image-button:focus-visible {
    outline: 3px solid rgba(30, 125, 179, 0.42);
    outline-offset: -3px;
}

.kb-setup-figure img,
.kb-setup-image-modal-img {
    display: block;
    width: auto;
    height: auto;
}

.kb-setup-figure img {
    max-width: min(100%, 920px);
    max-height: 720px;
    object-fit: contain;
}

.kb-setup-shot {
    display: grid;
    grid-template-columns: 170px 1fr;
    grid-template-rows: 44px 1fr;
    gap: 12px;
    min-height: 260px;
    padding: 18px;
    background: linear-gradient(135deg, #f7fbff, #eef5fb);
}

.kb-setup-shot span {
    display: block;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #d8e5ef;
}

.kb-setup-shot span:first-child {
    grid-column: 1 / -1;
    background: linear-gradient(90deg, #ffffff, #e8f2fa);
}

.kb-setup-shot span:nth-child(2) {
    min-height: 180px;
}

.kb-setup-shot span:nth-child(3) {
    min-height: 180px;
    background: linear-gradient(180deg, #ffffff 0 18%, #f5f9fc 18% 28%, #ffffff 28% 48%, #f5f9fc 48% 60%, #ffffff 60%);
}

.kb-setup-figure figcaption {
    padding: 12px 14px;
    color: #40596d;
    font-size: 13px;
    line-height: 1.55;
}

.kb-setup-figure figcaption strong {
    color: #214f74;
}

.kb-setup-figure figcaption small {
    display: block;
    margin-top: 5px;
    color: #6f879a;
    overflow-wrap: anywhere;
}

body.kb-setup-image-modal-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.kb-setup-image-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(7, 20, 32, 0.72);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.kb-setup-image-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.kb-setup-image-modal-panel {
    display: flex;
    flex-direction: column;
    max-width: calc(100vw - 40px);
    max-height: calc(100dvh - 40px);
    border: 1px solid rgba(215, 229, 241, 0.55);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.kb-setup-image-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #d7e5f1;
    background: #f6fafd;
}

.kb-setup-image-modal-title {
    color: #214f74;
    font-size: 14px;
    font-weight: 800;
}

.kb-setup-image-modal-close {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(18, 54, 86, 0.14);
    border-radius: 999px;
    background: #ffffff;
    color: #163a55;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.kb-setup-image-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: calc(100vw - 40px);
    max-height: calc(100dvh - 96px);
    overflow: auto;
    padding: 12px;
}

.kb-setup-image-modal-img {
    max-width: calc(100vw - 64px);
    max-height: calc(100dvh - 210px);
    object-fit: contain;
}

.kb-setup-image-modal-caption {
    max-width: min(100%, 920px);
    padding-top: 10px;
    color: #40596d;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.kb-setup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.kb-setup-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #b9d5e8;
    border-radius: 999px;
    background: #ffffff;
    color: #1c5d86 !important;
    font-weight: 800;
    text-decoration: none !important;
}

.kb-setup-secondary-link:hover,
.kb-setup-secondary-link:focus-visible {
    background: #eef6fc;
    color: #133f5d !important;
}

.kb-setup-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

@media (max-width: 760px) {
    .kb-setup-facts {
        grid-template-columns: 1fr;
    }

    .kb-setup-shot {
        grid-template-columns: 1fr;
        grid-template-rows: 38px 90px 130px;
        min-height: 0;
    }

    .kb-setup-actions {
        flex-direction: column;
    }

    .kb-setup-image-button {
        padding: 8px;
    }

    .kb-setup-image-modal {
        padding: 8px;
    }

    .kb-setup-image-modal-panel,
    .kb-setup-image-modal-body {
        max-width: calc(100vw - 16px);
    }

    .kb-setup-image-modal-img {
        max-width: calc(100vw - 32px);
    }
}
