/*! wg28 premium table UX override 20260518 */
html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .wg28-table-shell,
html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .table-container {
    box-sizing: border-box !important;
    position: relative !important;
    isolation: isolate !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: clamp(14px, 2vw, 26px) 0 !important;
    padding: clamp(50px, 4.2vw, 66px) clamp(10px, 1.6vw, 18px) clamp(12px, 1.7vw, 20px) !important;
    overflow: hidden !important;
    color: #122017 !important;
    -webkit-text-fill-color: #122017 !important;
    background:
        radial-gradient(circle at 0 0, rgba(0, 171, 71, .16), transparent 34%),
        radial-gradient(circle at 100% 0, rgba(242, 138, 34, .12), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(231, 231, 231, .86)) !important;
    border: 1px solid rgba(0, 171, 71, .22) !important;
    border-radius: clamp(24px, 3vw, 38px) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88), 0 18px 46px rgba(6, 29, 15, .14) !important;
}

html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .wg28-table-shell::before,
html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .table-container::before {
    content: "Таблица · можно прокручивать" !important;
    position: absolute !important;
    left: clamp(14px, 2vw, 24px) !important;
    top: clamp(12px, 1.6vw, 18px) !important;
    z-index: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 30px !important;
    padding: 7px 13px !important;
    border-radius: 999px !important;
    color: #075f2b !important;
    -webkit-text-fill-color: #075f2b !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(199, 246, 214, .92)) !important;
    border: 1px solid rgba(0, 171, 71, .26) !important;
    box-shadow: 0 10px 22px rgba(0, 171, 71, .12), inset 0 1px 0 rgba(255, 255, 255, .78) !important;
    font-size: clamp(11px, 1.05vw, 13px) !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: .075em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .wg28-table-shell::after,
html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .table-container::after {
    content: "" !important;
    position: absolute !important;
    top: clamp(50px, 4.2vw, 66px) !important;
    right: 0 !important;
    bottom: clamp(12px, 1.7vw, 20px) !important;
    z-index: 2 !important;
    width: clamp(32px, 6vw, 72px) !important;
    pointer-events: none !important;
    background: linear-gradient(90deg, rgba(247, 250, 247, 0), rgba(247, 250, 247, .92)) !important;
    opacity: .9 !important;
}

html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .wg28-table-shell.is-end::after,
html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .table-container.is-end::after {
    opacity: 0 !important;
}

html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .wg28-table-scroll,
html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .table-scroll-wrapper {
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y !important;
    padding: 0 0 10px !important;
    border-radius: clamp(20px, 2.2vw, 30px) !important;
    scrollbar-width: thin !important;
    scrollbar-color: #00ab47 rgba(18, 53, 32, .12) !important;
    scroll-snap-type: x proximity !important;
}

html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .wg28-table-scroll::-webkit-scrollbar,
html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .table-scroll-wrapper::-webkit-scrollbar {
    height: 10px !important;
}

html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .wg28-table-scroll::-webkit-scrollbar-track,
html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .table-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(18, 53, 32, .10) !important;
    border-radius: 999px !important;
}

html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .wg28-table-scroll::-webkit-scrollbar-thumb,
html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .table-scroll-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #00ab47, #a5d85f, #f28a22) !important;
    border-radius: 999px !important;
}

html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .wg28-table-scroll table,
html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .table-scroll-wrapper table,
html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) table:not(.wg28-table-enhanced) {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: min(780px, calc(100vw + 420px)) !important;
    max-width: none !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 clamp(8px, .9vw, 12px) !important;
    color: #122017 !important;
    -webkit-text-fill-color: #122017 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) table th,
html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) table td {
    box-sizing: border-box !important;
    min-width: clamp(160px, 22vw, 260px) !important;
    max-width: clamp(220px, 30vw, 360px) !important;
    padding: clamp(12px, 1.25vw, 17px) !important;
    vertical-align: top !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    color: #122017 !important;
    -webkit-text-fill-color: #122017 !important;
    border: 1px solid rgba(0, 171, 71, .14) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72) !important;
}

html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) table th {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    color: #063d1d !important;
    -webkit-text-fill-color: #063d1d !important;
    background: linear-gradient(135deg, rgba(211, 250, 224, .98), rgba(255, 255, 255, .94)) !important;
    font-size: clamp(13px, 1.1vw, 15px) !important;
    line-height: 1.12 !important;
    font-weight: 950 !important;
    letter-spacing: .02em !important;
    text-transform: uppercase !important;
}

html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) table td {
    background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(242, 248, 244, .9)) !important;
    font-size: clamp(15px, 1.2vw, 18px) !important;
    line-height: 1.24 !important;
    font-weight: 820 !important;
}

html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) table th:first-child,
html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) table td:first-child {
    position: sticky !important;
    left: 0 !important;
    z-index: 3 !important;
    min-width: clamp(150px, 30vw, 240px) !important;
    color: #075f2b !important;
    -webkit-text-fill-color: #075f2b !important;
    background: linear-gradient(145deg, rgba(236, 255, 242, .98), rgba(255, 255, 255, .94)) !important;
    box-shadow: 10px 0 22px rgba(6, 29, 15, .08), inset 0 1px 0 rgba(255, 255, 255, .74) !important;
}

html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) table th:first-child {
    z-index: 4 !important;
}

html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) table tr {
    scroll-snap-align: start !important;
}

html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) table tr > :first-child {
    border-radius: 18px 0 0 18px !important;
}

html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) table tr > :last-child {
    border-radius: 0 18px 18px 0 !important;
}

html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .wg28-table-cue {
    display: none !important;
}

@media (max-width: 767px) {
    html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .wg28-table-shell,
    html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .table-container {
        width: calc(100% + 2px) !important;
        margin: 12px -1px !important;
        padding: 48px 8px 10px !important;
        border-radius: 24px !important;
    }

    html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .wg28-table-shell::before,
    html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .table-container::before {
        content: "Таблица · свайп вбок" !important;
        left: 10px !important;
        top: 10px !important;
        max-width: calc(100% - 20px) !important;
        min-height: 28px !important;
        padding: 6px 10px !important;
        font-size: 10px !important;
        letter-spacing: .06em !important;
    }

    html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .wg28-table-shell::after,
    html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .table-container::after {
        top: 48px !important;
        bottom: 14px !important;
        width: 44px !important;
    }

    html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .wg28-table-scroll,
    html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .table-scroll-wrapper {
        padding-bottom: 12px !important;
        border-radius: 20px !important;
    }

    html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .wg28-table-scroll table,
    html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .table-scroll-wrapper table,
    html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) table:not(.wg28-table-enhanced) {
        min-width: 720px !important;
        border-spacing: 0 8px !important;
    }

    html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) table th,
    html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) table td {
        min-width: 180px !important;
        max-width: 260px !important;
        padding: 12px !important;
        font-size: 14px !important;
        line-height: 1.2 !important;
    }

    html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) table th:first-child,
    html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) table td:first-child {
        min-width: 150px !important;
        max-width: 190px !important;
    }

    html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .wg28-table-cue {
        position: absolute !important;
        right: 10px !important;
        top: 10px !important;
        z-index: 4 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 30px !important;
        height: 28px !important;
        border-radius: 999px !important;
        color: #075f2b !important;
        -webkit-text-fill-color: #075f2b !important;
        background: linear-gradient(135deg, #ffffff, #c7f6d6) !important;
        border: 1px solid rgba(0, 171, 71, .22) !important;
        box-shadow: 0 8px 18px rgba(0, 171, 71, .12) !important;
        font-size: 16px !important;
        line-height: 1 !important;
        font-weight: 950 !important;
        animation: wg28TableCue 1.8s ease-in-out infinite !important;
    }

    html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) .wg28-table-shell.is-end .wg28-table-cue {
        opacity: .25 !important;
        animation: none !important;
    }
}

@media (max-width: 767px) {
    html body .wg28-chat-window.quizai .wg28-chat-what-write #gentext#gentext#gentext.neuro-card:not(.userchat) :is(.table-card, .table-row, .smart-table-card, .comparison-card, [class*="table-card"], [class*="table-row"]) {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-inline: 0 !important;
        overflow: visible !important;
        white-space: normal !important;
    }
}

@keyframes wg28TableCue {
    0%, 100% { transform: translateX(0); }
    45% { transform: translateX(5px); }
}
