/* proxy.css - Proxy info 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: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

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

.proxy-short-toc-wrap {
    align-self: stretch;
    display: flex;
    min-height: 100%;
}

.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-close {
    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: sticky;
    top: calc(var(--gp-top-bar-height) + 8px);
    align-self: flex-start;
    max-height: calc(100dvh - var(--gp-top-bar-height) - 8px);
    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;
}

.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 {
        grid-template-columns: 1fr;
    }

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

    .proxy-short-toc {
        position: static;
        top: auto;
        max-height: none;
    }
}

@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 {
        position: fixed;
        left: 14px;
        bottom: calc(16px + 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.97), rgba(242, 247, 251, 0.97));
        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-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 {
        position: fixed;
        inset: 0;
        z-index: 1300;
        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;
        align-items: center;
        justify-content: center;
    }
}


    .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); /* Голубая тень вокруг */
    text-shadow: 0 2px 5px rgba(0, 191, 255, 0.8); /* Голубая тень для текста */
    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); /* Полный размер */
    }

    .proxy-cleanup-page {
        width: min(1000px, calc(100% - 12px));
        font-family: 'Roboto', sans-serif;
        --proxy-cleanup-radius-xl: 16px;
        --proxy-cleanup-radius-lg: 14px;
        --proxy-cleanup-radius-md: 12px;
        --proxy-cleanup-radius-sm: 10px;
    }

    .proxy-cleanup-shell {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .proxy-cleanup-hero,
    .proxy-cleanup-workbench,
    .proxy-cleanup-options,
    .proxy-cleanup-summary,
    .proxy-cleanup-note {
        border: 1px solid #d7e5f1;
        border-radius: var(--proxy-cleanup-radius-xl);
        background:
            radial-gradient(circle at top right, rgba(255, 190, 110, 0.18), transparent 28%),
            radial-gradient(circle at left bottom, rgba(110, 184, 255, 0.14), transparent 32%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.98));
        box-shadow: 0 12px 28px rgba(16, 41, 62, 0.08);
    }

    .proxy-cleanup-hero {
        padding: 28px 24px 22px;
        text-align: center;
    }

    .gp-sr-only {
        position: absolute !important;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .proxy-cleanup-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 14px;
        border-radius: 999px;
        border: 1px solid #d8e4ef;
        background: #eef6fc;
        color: #22628f;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .proxy-cleanup-hero h1 {
        margin: 0 auto 14px;
        max-width: 760px;
        font-size: 36px;
        line-height: 1.16;
        font-weight: 700;
        text-align: center;
        color: #1a1f29;
    }

    .proxy-cleanup-lead {
        margin: 0 auto;
        max-width: 820px;
        color: #4a5d70;
        font-size: 17px;
        line-height: 1.6;
        text-align: center;
    }

    .proxy-cleanup-pills {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;
        margin-top: 16px;
    }

    .proxy-cleanup-pill {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        padding: 8px 16px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.78);
        border: 1px solid rgba(35, 78, 115, 0.12);
        color: #244764;
        font-size: 15px;
        font-weight: 700;
    }

    .proxy-cleanup-pill.is-safe {
        color: #206245;
        border-color: rgba(42, 128, 80, 0.18);
        background: rgba(236, 249, 241, 0.92);
    }

    .proxy-cleanup-workbench,
    .proxy-cleanup-options,
    .proxy-cleanup-summary,
    .proxy-cleanup-note {
        padding: 18px;
    }

    .proxy-cleanup-heading-row {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
    }

    .proxy-cleanup-section-title {
        margin: 0;
        color: #1d3346;
        font-size: 19px;
        font-weight: 800;
    }

    .proxy-cleanup-tabs {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        overflow: hidden;
        border: 0;
        border-bottom: 1px solid #e3e8ee;
        border-radius: 0;
        background: transparent;
        margin-bottom: 18px;
    }

    .proxy-cleanup-tab {
        min-height: 56px;
        padding: 14px 16px;
        border: 0;
        border-bottom: 3px solid transparent;
        background: transparent;
        color: #4a5566;
        font-size: 17px;
        font-weight: 700;
        cursor: pointer;
        margin-bottom: -1px;
        transition: color 0.18s ease, border-color 0.18s ease;
    }

    .proxy-cleanup-tab:last-child {
        border-right: 0;
    }

    .proxy-cleanup-tab:hover,
    .proxy-cleanup-tab:focus-visible {
        color: #cf6d22;
    }

    .proxy-cleanup-tab.is-active {
        color: #ff7a1a;
        background: transparent;
        box-shadow: none;
        border-bottom-color: #ff7a1a;
    }

    .proxy-cleanup-panel-stack {
        border: 0;
        border-radius: 0;
        background: transparent;
        padding: 0;
    }

    .proxy-cleanup-panel {
        display: none;
    }

    .proxy-cleanup-panel.is-active {
        display: block;
    }

    .proxy-cleanup-panel[hidden] {
        display: none;
    }

    .proxy-cleanup-textarea,
    .proxy-cleanup-input {
        width: 100%;
        border: 1px solid #d8b89d;
        border-radius: var(--proxy-cleanup-radius-md);
        background: linear-gradient(180deg, #ffffff, #fbfbfc);
        box-shadow: inset 0 0 0 3px rgba(236, 165, 106, 0.12), 0 10px 24px rgba(16, 41, 62, 0.06);
        color: #243645;
        font: inherit;
    }

    .proxy-cleanup-textarea {
        min-height: 160px;
        padding: 18px;
        resize: vertical;
    }

    .proxy-cleanup-textarea--result {
        min-height: 200px;
    }

    .proxy-cleanup-input {
        min-height: 56px;
        padding: 0 16px;
    }

    .proxy-cleanup-field {
        display: block;
    }

    .proxy-cleanup-field__label {
        display: inline-block;
        margin-bottom: 10px;
        color: #2a4258;
        font-size: 14px;
        font-weight: 700;
    }

    .proxy-cleanup-field__hint {
        margin: 12px 4px 0;
        color: #5b7082;
        font-size: 14px;
    }

    .proxy-cleanup-upload {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        justify-content: center;
        min-height: 160px;
        padding: 22px;
        border: 1px dashed #b8cadc;
        border-radius: var(--proxy-cleanup-radius-lg);
        background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,249,252,0.96));
        cursor: pointer;
    }

    .proxy-cleanup-upload input {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
    }

    .proxy-cleanup-upload__title {
        color: #244764;
        font-size: 18px;
        font-weight: 700;
    }

    .proxy-cleanup-upload__meta {
        color: #5d7385;
        font-size: 14px;
    }

    .proxy-cleanup-option-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .proxy-cleanup-option-card {
        --proxy-cleanup-option-pad-x: 10px;
        --proxy-cleanup-option-pad-y: 10px;
        --proxy-cleanup-option-icon-size: 52px;
        --proxy-cleanup-option-checkbox-size: 24px;
        position: relative;
        display: grid;
        grid-template-columns: 56px 1fr;
        grid-template-rows: auto 1fr;
        gap: 2px 6px;
        min-height: 92px;
        padding: var(--proxy-cleanup-option-pad-y) var(--proxy-cleanup-option-pad-x) 3px;
        border: 1px solid #e3eaf1;
        border-radius: var(--proxy-cleanup-radius-lg);
        background:
            radial-gradient(circle at 91% 10%, rgba(229, 234, 241, 0.95) 0 3px, transparent 4px),
            radial-gradient(circle at 95% 18%, rgba(255, 186, 120, 0.75) 0 2px, transparent 3px),
            radial-gradient(circle at 92.5% 21%, rgba(229, 234, 241, 0.85) 0 2px, transparent 3px),
            linear-gradient(180deg, #ffffff, #fafbfd);
        box-shadow: 0 6px 16px rgba(16, 41, 62, 0.05);
        cursor: default;
    }

    .proxy-cleanup-option-card.is-locked {
        border-style: dashed;
        border-color: rgba(25, 39, 53, 0.22);
        background:
            radial-gradient(circle at 91% 10%, rgba(225, 229, 235, 0.95) 0 3px, transparent 4px),
            radial-gradient(circle at 95% 18%, rgba(184, 189, 196, 0.72) 0 2px, transparent 3px),
            radial-gradient(circle at 92.5% 21%, rgba(225, 229, 235, 0.82) 0 2px, transparent 3px),
            linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,246,249,0.98));
    }

    .proxy-cleanup-option-card.is-locked::before,
    .proxy-cleanup-option-card.is-locked::after {
        position: absolute;
        left: 50%;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
        z-index: 12;
    }

    .proxy-cleanup-option-card.is-locked::before {
        content: '';
        bottom: calc(100% + 4px);
        transform: translateX(-50%) translateY(6px);
        border: 7px solid transparent;
        border-top-color: #101418;
    }

    .proxy-cleanup-option-card.is-locked::after {
        content: attr(data-locked-tooltip);
        bottom: calc(100% + 16px);
        transform: translateX(-50%) translateY(6px);
        min-width: 220px;
        max-width: min(280px, calc(100vw - 40px));
        padding: 10px 12px;
        border-radius: var(--proxy-cleanup-radius-sm);
        background: #101418;
        color: #ffffff;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.45;
        text-align: center;
        box-shadow: 0 16px 28px rgba(16, 20, 24, 0.32);
        white-space: normal;
    }

    .proxy-cleanup-option-card.is-locked:hover::before,
    .proxy-cleanup-option-card.is-locked:hover::after,
    .proxy-cleanup-option-card.is-locked:focus-within::before,
    .proxy-cleanup-option-card.is-locked:focus-within::after {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .proxy-cleanup-option-card input {
        position: absolute;
        left: calc(var(--proxy-cleanup-option-pad-x) + ((var(--proxy-cleanup-option-icon-size) - var(--proxy-cleanup-option-checkbox-size)) / 2));
        top: calc(var(--proxy-cleanup-option-pad-y) + var(--proxy-cleanup-option-icon-size) + 6px);
        bottom: auto;
        width: var(--proxy-cleanup-option-checkbox-size);
        height: var(--proxy-cleanup-option-checkbox-size);
        margin: 0;
        accent-color: #ff7a1a;
        cursor: pointer;
    }

    .proxy-cleanup-option-card__icon {
        grid-row: 1 / span 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: start;
        width: var(--proxy-cleanup-option-icon-size);
        height: var(--proxy-cleanup-option-icon-size);
        border: 0;
        background: transparent;
        color: #10161f;
        line-height: 1;
        font-weight: 700;
    }

    .proxy-cleanup-option-card__icon svg {
        display: block;
        width: 100%;
        height: 100%;
    }

    .proxy-cleanup-option-card__body {
        grid-column: 2;
        display: flex;
        flex-direction: column;
        gap: 7px;
        padding: 0 4px 0 0;
    }

    .proxy-cleanup-option-card__body strong {
        color: #182230;
        font-size: 17px;
        font-weight: 800;
        line-height: 1.24;
        letter-spacing: -0.01em;
    }

    .proxy-cleanup-option-card__body span {
        color: #5a6b7d;
        font-size: 15px;
        line-height: 1.42;
        font-weight: 500;
    }

    .proxy-cleanup-inline-link {
        color: #315f8f;
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 0.15em;
    }

    .proxy-cleanup-inline-link:hover,
    .proxy-cleanup-inline-link:focus-visible {
        color: #1d4b79;
    }

    .proxy-cleanup-option-card__icon--invalid {
        width: 54px;
        height: 54px;
    }

    .proxy-cleanup-option-card__icon--duplicate {
        width: 64px;
        height: 40px;
        justify-content: flex-start;
        transform: translateX(-1px) translateY(5px);
    }

    .proxy-cleanup-option-card__icon--dangerous {
        width: 50px;
        height: 50px;
        transform: translateY(2px);
    }

    .proxy-cleanup-option-card.is-locked input {
        accent-color: #7b8790;
        cursor: pointer;
    }

    .proxy-cleanup-actions-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 16px;
        margin-top: 22px;
    }

    .proxy-cleanup-status {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        align-self: center;
        justify-self: start;
        min-height: 56px;
        padding: 0 22px;
        border: 1px solid rgba(39, 124, 76, 0.22);
        border-radius: var(--proxy-cleanup-radius-lg);
        background: linear-gradient(180deg, #effaf2, #e6f6eb);
        color: #2a7647;
        font-size: 16px;
        font-weight: 700;
        box-shadow: 0 8px 18px rgba(39, 124, 76, 0.12);
    }

    .proxy-cleanup-status__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #2a7647;
        color: #ffffff;
        flex-shrink: 0;
    }

    .proxy-cleanup-status__icon svg {
        width: 18px;
        height: 18px;
    }

    .proxy-cleanup-status.is-success {
        border-color: rgba(39, 124, 76, 0.22);
        background: linear-gradient(180deg, #effaf2, #e6f6eb);
        color: #2a7647;
    }

    .proxy-cleanup-status.is-error {
        border-color: rgba(184, 62, 33, 0.24);
        background: linear-gradient(180deg, #fff1ec, #ffe6dc);
        color: #a54827;
    }

    .proxy-cleanup-status.is-error .proxy-cleanup-status__icon {
        background: #a54827;
    }

    .proxy-cleanup-status.is-pending {
        border-color: rgba(197, 116, 22, 0.26);
        background: linear-gradient(180deg, #fff5e6, #ffeccc);
        color: #9a5a14;
    }

    .proxy-cleanup-status.is-pending .proxy-cleanup-status__icon {
        background: #c57416;
    }

    .proxy-cleanup-run-button,
    .proxy-cleanup-secondary-button {
        min-height: 68px;
        border: 0;
        border-radius: var(--proxy-cleanup-radius-lg);
        font: inherit;
        font-weight: 800;
        cursor: pointer;
        transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    }

    .proxy-cleanup-run-button {
        padding: 0 56px;
        min-height: 60px;
        background: linear-gradient(135deg, #ff7a1a, #ff9a2c);
        color: #ffffff;
        box-shadow: 0 14px 28px rgba(255, 122, 26, 0.32);
        font-size: 22px;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        border-radius: var(--proxy-cleanup-radius-lg);
    }

    .proxy-cleanup-secondary-button {
        padding: 0 18px;
        background: #eff5fa;
        color: #234e73;
        border: 1px solid #cfe0ec;
        min-height: 52px;
        box-shadow: 0 10px 20px rgba(16, 41, 62, 0.06);
    }

    .proxy-cleanup-run-button:hover,
    .proxy-cleanup-secondary-button:hover,
    .proxy-cleanup-run-button:focus-visible,
    .proxy-cleanup-secondary-button:focus-visible,
    .proxy-cleanup-tab:hover,
    .proxy-cleanup-tab:focus-visible,
    .proxy-cleanup-upload:hover,
    .proxy-cleanup-upload:focus-within {
        transform: translateY(-1px);
    }

    .proxy-cleanup-output-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 14px;
    }

    .proxy-cleanup-summary__note {
        margin: 0;
        color: #4d6478;
        font-size: 14px;
    }

    .proxy-cleanup-dangerous-owners {
        margin-top: 18px;
        padding: 16px 18px;
        border: 1px solid rgba(230, 138, 49, 0.18);
        border-radius: var(--proxy-cleanup-radius-md);
        background: linear-gradient(180deg, rgba(255,248,239,0.98), rgba(255,244,229,0.98));
    }

    .proxy-cleanup-dangerous-owners__title {
        margin: 0 0 12px;
        color: #6f3f12;
        font-size: 16px;
        font-weight: 800;
    }

    .proxy-cleanup-dangerous-owners__list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .proxy-cleanup-dangerous-owners__item {
        display: inline-flex;
        align-items: center;
        min-height: 38px;
        padding: 8px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(192, 110, 30, 0.16);
        color: #68421f;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.4;
    }

    .proxy-cleanup-stat-grid {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 12px;
    }

    .proxy-cleanup-stat-card {
        padding: 16px;
        border: 1px solid #dce7ef;
        border-radius: var(--proxy-cleanup-radius-md);
        background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,252,0.98));
    }

    .proxy-cleanup-stat-card.is-accent {
        background: linear-gradient(180deg, rgba(255,247,235,0.98), rgba(255,242,221,0.98));
        border-color: rgba(230, 138, 49, 0.24);
    }

    .proxy-cleanup-stat-card__label {
        display: block;
        color: #5d7284;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .proxy-cleanup-stat-card__value {
        display: block;
        margin-top: 10px;
        color: #182735;
        font-size: 34px;
        line-height: 1;
    }

    .proxy-cleanup-note p {
        margin: 0;
        color: #375267;
        font-size: 16px;
    }

    .proxy-cleanup-run-button:disabled,
    .proxy-cleanup-secondary-button:disabled {
        opacity: 0.65;
        cursor: not-allowed;
        transform: none;
    }

    @media (max-width: 1080px) {
        .proxy-cleanup-hero h1 {
            font-size: 32px;
        }

        .proxy-cleanup-option-grid,
        .proxy-cleanup-stat-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .proxy-cleanup-actions-row {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 780px) {
        .proxy-cleanup-tabs {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .proxy-cleanup-tab:nth-child(2n) {
            border-right: 0;
        }

        .proxy-cleanup-option-grid,
        .proxy-cleanup-stat-grid {
            grid-template-columns: 1fr;
        }

        .proxy-cleanup-hero,
        .proxy-cleanup-workbench,
        .proxy-cleanup-options,
        .proxy-cleanup-summary,
        .proxy-cleanup-note {
            padding: 16px;
            border-radius: var(--proxy-cleanup-radius-lg);
        }

        .proxy-cleanup-hero h1 {
            font-size: 28px;
        }

        .proxy-cleanup-lead {
            font-size: 16px;
        }
    }

