@keyframes gb247-marquee-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-100%, 0, 0);
    }
}

.gb247-marquee {
    will-change: transform;
}

.we-tg-single-audit-summary {
    display: grid;
    gap: 6px;
    width: 100%;
    margin: 10px 0 0;
}

.we-tg-single-audit-summary > div {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #f8fafc;
    text-align: left;
}

.we-tg-single-audit-summary dt,
.we-tg-single-audit-summary dd {
    margin: 0;
}

.we-tg-single-audit-summary dt {
    color: #475569;
    font-size: 9.5px;
    line-height: 1.3;
    font-weight: 700;
}

.we-tg-single-audit-summary dd {
    color: #111827;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 800;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .we-tg-single-audit-summary {
        grid-template-columns: 1fr;
    }

    .we-tg-single-audit-summary > div {
        padding: 8px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gb247-marquee,
    .we-tv-live-dot,
    .we-tg-item-v8,
    .we-vk5-floating-notice {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .gb247-top10 *,
    .gb247-fake-modal * {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }

    .gb247-marquee {
        display: block !important;
        white-space: normal !important;
    }
}

.we-mini-tool select:focus-visible,
.we-mini-tool button:focus-visible {
    outline: 3px solid #f1c40f !important;
    outline-offset: 3px;
}

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

.gb247-top10-stats strong {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.gb247-top10 .gb247-top10-title {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-family: "Roboto", Arial, sans-serif !important;
    font-size: clamp(22px, 2.4vw, 30px) !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    letter-spacing: -.02em !important;
    text-align: center !important;
    text-transform: none !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

/* Decorative only: generated content is not copied into TOC link text. */
.gb247-top10 .gb247-top10-title::before {
    content: "\1F451";
    display: inline-block;
    margin-right: .38em;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
    font-size: .9em;
    line-height: 1;
    vertical-align: .04em;
}

.gb247-top10-stats {
    grid-template-columns: minmax(0, 1fr);
    width: min(146px, 100%);
}

.gb247-top10-metric strong,
.gb247-top10-metric small {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}

.gb247-top10-metric.is-danger strong {
    font-size: 11px;
    line-height: 1.3;
    font-weight: 800;
}

.gb247-top10-security-groups {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.gb247-top10-security-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    min-width: 0;
    text-align: left;
}

.gb247-top10-metric strong .gb247-top10-security-source {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    width: 100%;
    color: #334155;
    font-family: "Roboto", Arial, sans-serif !important;
    font-size: 10.5px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    text-align: left;
    white-space: nowrap !important;
}

.gb247-top10-security-source i {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 10px;
}

.gb247-top10-metric strong .gb247-top10-security-details {
    display: block;
    width: 100%;
    color: #475569;
    font-family: "Roboto", Arial, sans-serif !important;
    font-size: 10px !important;
    line-height: 1.28 !important;
    font-weight: 600 !important;
    text-align: left;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.gb247-top10-security-empty {
    color: #64748b;
    font-size: 10px !important;
    line-height: 1.28 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

.gb247-top10-metric-label > span {
    display: inline-flex;
    align-items: center;
    flex-direction: column;
}

.gb247-top10-metric-context {
    display: block !important;
    width: auto !important;
    margin: 1px 0 0 !important;
    overflow: visible !important;
    color: inherit !important;
    font-size: .86em !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.gb247-top10-fake-detail {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #a33e27;
    font: inherit;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.gb247-top10-fake-date,
.gb247-top10-fake-empty {
    display: block;
    margin-bottom: 3px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.gb247-top10-fake-detail:hover {
    color: #7f2d1c;
}

.gb247-top10-fake-detail:focus-visible {
    outline: 2px solid #a33e27 !important;
    outline-offset: 3px;
    border-radius: 2px;
}

.gb247-fake-modal[hidden] {
    display: none !important;
}

.gb247-fake-modal {
    position: fixed;
    z-index: 2147483646;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    font-family: "Roboto", Arial, sans-serif;
}

.gb247-fake-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .58);
}

.gb247-fake-modal-dialog {
    position: relative;
    width: min(620px, 100%);
    max-height: min(72vh, 620px);
    overflow: auto;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 65px rgba(15, 23, 42, .28);
}

.gb247-fake-modal-dialog h3 {
    margin: 0 42px 16px 0;
    color: #111827;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
}

.gb247-fake-modal-close {
    position: absolute;
    top: 11px;
    right: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.gb247-fake-modal-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: fake-link;
}

.gb247-fake-modal-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

.gb247-fake-modal-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff1f2;
    color: #a33e27;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.gb247-fake-modal-masked {
    color: #1f2937;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}

.gb247-fake-modal-loading,
.gb247-fake-modal-error {
    margin: 0;
    padding: 14px;
    border-radius: 9px;
    background: #f8fafc;
    color: #475569;
    font-size: 14px;
}

.gb247-fake-modal-error {
    background: #fff1f2;
    color: #9f1239;
}

.gb247-fake-modal-open {
    overflow: hidden;
}

@media (max-width: 560px) {
    .gb247-fake-modal-dialog {
        padding: 18px 14px;
    }

}

@container (min-width: 960px) {
    .gb247-top10-card {
        grid-template-columns: minmax(165px, .7fr) minmax(0, 3.4fr) minmax(205px, .85fr);
        gap: 0 10px;
    }

    .gb247-top10-metrics {
        grid-template-columns:
            minmax(0, 1.25fr)
            minmax(0, 1.25fr)
            minmax(0, 1.08fr)
            minmax(0, .9fr)
            minmax(0, 1.32fr)
            minmax(0, .9fr)
            minmax(0, 1.1fr);
        gap: 7px;
        padding: 7px 0 11px;
    }

    .gb247-top10-metric {
        min-height: 94px;
        padding: 10px 6px 9px;
        border-radius: 10px;
    }

    .gb247-top10-metric-label {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: 3px;
        width: 100%;
        min-height: 28px;
        overflow: visible;
        overflow-wrap: normal;
        word-break: normal;
        font-size: clamp(9px, .78vw, 10px);
        line-height: 1.2;
        white-space: normal;
    }

    .gb247-top10-metric-label > span {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .gb247-top10-metric strong {
        margin-top: 7px;
        font-size: 21px;
    }

    .gb247-top10-metric small {
        margin-top: 6px;
        font-size: 11px;
        line-height: 1.35;
    }

    .gb247-top10-stats > div {
        min-height: 94px;
    }

    .gb247-top10-security-source i {
        font-size: 10px;
    }
}

.gb247-top10-metric small {
    overflow: visible;
    text-overflow: clip;
}

.gb247-top10-fake-count,
.gb247-top10-fake-copy {
    display: block;
}

.gb247-top10-metric strong .gb247-top10-fake-count {
    color: #9f321e;
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
}

.gb247-top10-metric strong .gb247-top10-fake-copy {
    margin-top: 4px;
    color: #6f2c20;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 700;
}

/* Mobile only: enlarge the card brand without changing desktop or data logic. */
@media (max-width: 700px) {
    .gb247-top10 .gb247-top10-brand {
        align-items: center;
        gap: 12px;
    }

    .gb247-top10 .gb247-top10-logo,
    .gb247-top10 .gb247-top10-logo-fallback {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
        border-radius: 11px;
    }

    .gb247-top10 .gb247-top10-name-row {
        gap: 7px;
    }

    .gb247-top10 .gb247-top10-name-row h3 {
        font-size: 22px;
        line-height: 1.12;
        font-weight: 600;
    }

}

/* Mobile tap safety for the two fixed controls. Loaded after the minified
 * theme/plugin bundle so delayed overlays cannot make the buttons inert. */
@media (max-width: 767px) {
    html body .lwptoc,
    html body .lwptoc .lwptoc_i,
    html body .lwptoc .lwptoc_header,
    html body .we-vk5 > .we-vk5-collapse-toggle {
        pointer-events: auto !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent;
    }

    html body .lwptoc,
    html body .we-vk5 > .we-vk5-collapse-toggle {
        z-index: 2147483647 !important;
        isolation: isolate;
        transform: translateZ(0);
    }

    html body .lwptoc,
    html body .we-vk5 > .we-vk5-collapse-toggle {
        bottom: calc(124px + env(safe-area-inset-bottom, 0px)) !important;
    }

    html body .we-vk5 > .we-vk5-collapse-panel.is-open {
        bottom: calc(188px + env(safe-area-inset-bottom, 0px)) !important;
    }
}
/* Online/Offline is informational only; never dim or hide the game card. */
body .we-tg-item-v8.we-link-offline,
body .we-tg-card-v9.we-link-offline {
    opacity: 1 !important;
    filter: none !important;
    visibility: visible !important;
}

body .we-tg-item-v8.we-link-offline .we-tg-info-box,
body .we-tg-item-v8.we-link-offline .we-tg-left-zone-v8,
body .we-tg-item-v8.we-link-offline .we-tg-right-zone-v8,
body .we-tg-card-v9.we-link-offline {
    opacity: 1 !important;
    filter: none !important;
}

body .we-qc-license-record {
    display: block;
}

body .we-qc-license-separator {
    width: 100%;
    margin: 8px 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

/* TOP 10 readability and keyboard access overrides. */
.gb247-top10-list:focus-visible {
    outline: 3px solid #005fcc !important;
    outline-offset: 4px;
    border-radius: 12px;
}

body .gb247-top10 .gb247-top10-metric small,
body .gb247-top10 .gb247-top10-stats span,
body .gb247-top10 .gb247-top10-stats small,
body .gb247-top10 .gb247-top10-footer p,
body .gb247-top10 .gb247-top10-actions a {
    font-size: 12px !important;
    line-height: 1.35 !important;
}

body .gb247-top10 .gb247-top10-metric-label {
    font-size: 12px !important;
    line-height: 1.3 !important;
}

body .gb247-top10 .gb247-top10-verified {
    min-height: 24px;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: normal;
    text-align: center;
}

body .gb247-top10 .gb247-top10-actions a {
    min-height: 40px !important;
    padding: 9px 13px !important;
}

body .gb247-top10 .gb247-top10-metric-label .gb247-top10-metric-context {
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    margin: 2px 0 0 !important;
    overflow: visible !important;
    overflow-wrap: anywhere;
    color: inherit !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    font-weight: inherit !important;
    white-space: normal !important;
}

@container (min-width: 960px) {
    body .gb247-top10 .gb247-top10-metric-label {
        font-size: clamp(10px, .72vw, 11px) !important;
        line-height: 1.25 !important;
    }

    body .gb247-top10 .gb247-top10-metric strong {
        font-size: clamp(18px, 1.35vw, 20px);
        line-height: 1.08;
    }

    body .gb247-top10 .gb247-top10-metric > small {
        font-size: 10.5px !important;
        line-height: 1.3 !important;
    }

    body .gb247-top10 .gb247-top10-metric.is-warn strong {
        overflow-wrap: normal;
        white-space: nowrap;
    }

    body .gb247-top10 .gb247-top10-actions a {
        font-size: 11px !important;
    }
}

@media (max-width: 700px) {
    body .gb247-top10 .gb247-top10-metric.is-danger {
        grid-column: 1 / -1;
        min-height: 0;
    }

    body .gb247-top10 .gb247-top10-stats {
        width: 100%;
    }

    body .gb247-top10 .gb247-top10-stats > div {
        min-height: 72px;
    }

    /* Mobile: source order và visual order đều là tên game → CTA → dữ liệu. */
    body .gb247-top10 .gb247-top10-card {
        display: flex !important;
        flex-direction: column !important;
    }

    body .gb247-top10 .gb247-top10-card-head,
    body .gb247-top10 .gb247-top10-brand {
        width: 100% !important;
    }

    body .gb247-top10 .gb247-top10-card-head {
        padding: 8px 6px 11px !important;
    }

    body .gb247-top10 .gb247-top10-brand {
        display: grid !important;
        grid-template-columns: 48px minmax(0, 1fr) !important;
        align-items: start !important;
        gap: 10px !important;
    }

    body .gb247-top10 .gb247-top10-logo,
    body .gb247-top10 .gb247-top10-logo-fallback {
        grid-column: 1;
        width: 48px !important;
        height: 48px !important;
        margin-top: 1px;
    }

    body .gb247-top10 .gb247-top10-brand-copy {
        grid-column: 2;
        flex: 1 1 auto;
        width: auto !important;
        min-width: 0 !important;
    }

    body .gb247-top10 .gb247-top10-name-row {
        display: flex !important;
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 5px !important;
        width: 100% !important;
    }

    body .gb247-top10 .gb247-top10-name-row h3 {
        width: 100%;
        margin: 0 !important;
        font-size: 18px !important;
        line-height: 1.15 !important;
    }

    body .gb247-top10 .gb247-top10-verified {
        align-self: flex-start;
        max-width: 100%;
        min-height: 21px;
        padding: 4px 8px;
        font-size: 9px !important;
        line-height: 1.15 !important;
    }

    body .gb247-top10 .gb247-top10-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: stretch !important;
        gap: 7px !important;
        width: calc(100% - 24px) !important;
        margin: 0 auto 11px !important;
    }

    body .gb247-top10 .gb247-top10-actions a {
        grid-column: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 40px !important;
        margin: 0 !important;
        padding: 9px 10px !important;
        font-size: 11.5px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }

    body .gb247-top10 .gb247-top10-actions a:only-child {
        grid-column: 1 / -1;
    }

    body .gb247-top10 .gb247-top10-footer > p {
        width: 100%;
        padding-top: 10px;
        border-top: 1px solid var(--gb247-top10-line);
    }
}

@media (prefers-contrast: more) {
    .gb247-top10-card,
    .gb247-top10-metric,
    .gb247-top10-stats > div,
    .gb247-top10-audit-record,
    .gb247-fake-modal-dialog {
        border-width: 2px !important;
        border-color: #111 !important;
        box-shadow: none !important;
    }

    .gb247-top10,
    .gb247-top10-metric-label,
    .gb247-top10-metric small,
    .gb247-top10-audit-record,
    .gb247-top10-record-methodology,
    .gb247-fake-modal-dialog {
        color: #111 !important;
    }
}

@media (forced-colors: active) {
    .gb247-top10 *,
    .gb247-fake-modal * {
        forced-color-adjust: auto;
    }

    .gb247-top10-card,
    .gb247-top10-metric,
    .gb247-top10-stats > div,
    .gb247-top10-audit-record,
    .gb247-fake-modal-dialog {
        border: 1px solid CanvasText !important;
        background: Canvas !important;
        color: CanvasText !important;
        box-shadow: none !important;
    }

    .gb247-top10-list:focus-visible,
    .gb247-top10 a:focus-visible,
    .gb247-top10 button:focus-visible,
    .gb247-top10 summary:focus-visible,
    .gb247-fake-modal button:focus-visible {
        outline: 3px solid Highlight !important;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .gb247-fake-modal-backdrop {
        background: #000;
    }
}

/* Bảng đánh giá nhanh: mỗi cổng là một thẻ trong thanh cuộn ngang ở mọi kích thước. */
.we-qc-swipe-hint {
    display: block;
    margin: 0 0 8px;
    color: #475569;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

body .we-quick-compare-wrapper {
    max-width: 100%;
    overflow: hidden;
}

body .we-quick-compare-wrapper .we-qc-table-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

body .we-quick-compare-wrapper .we-qc-table-container::after {
    display: none !important;
    content: none !important;
}

body .we-quick-compare-wrapper .we-qc-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    table-layout: auto !important;
}

body .we-quick-compare-wrapper .we-qc-table thead {
    display: block !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body .we-quick-compare-wrapper .we-qc-table tbody {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 2px 42px 10px 2px !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;
    scroll-snap-type: x mandatory !important;
    scroll-padding-inline: 2px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #64748b #e2e8f0 !important;
}

body .we-quick-compare-wrapper .we-qc-table tbody:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

body .we-quick-compare-wrapper .we-qc-table tbody > tr {
    display: grid !important;
    flex: 0 0 clamp(280px, 28vw, 340px) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-content: start !important;
    width: auto !important;
    max-width: 340px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #dbe3ec !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07) !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
}

body .we-quick-compare-wrapper .we-qc-table tbody > tr > th,
body .we-quick-compare-wrapper .we-qc-table tbody > tr > td {
    display: grid !important;
    grid-template-columns: minmax(88px, 36%) minmax(0, 1fr) !important;
    align-items: start !important;
    justify-content: stretch !important;
    gap: 10px !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 12px !important;
    border: 0 !important;
    border-bottom: 1px solid #e7edf3 !important;
    background: #fff !important;
    color: #1f2937;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    vertical-align: top;
}

body .we-quick-compare-wrapper .we-qc-table tbody > tr > th::before,
body .we-quick-compare-wrapper .we-qc-table tbody > tr > td::before {
    display: block !important;
    content: attr(data-label) !important;
    color: #64748b !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    text-transform: uppercase !important;
}

body .we-quick-compare-wrapper .we-qc-table tbody > tr > .we-qc-name {
    display: block !important;
    padding: 14px 12px !important;
    background: #f8fafc !important;
}

body .we-quick-compare-wrapper .we-qc-reviewer-meta,
body .we-quick-compare-wrapper .we-qc-reviewer-meta span {
    color: #52606d !important;
    font-size: 10px;
    line-height: 1.35;
}

body .we-quick-compare-wrapper .we-qc-reviewer-meta {
    margin-top: 2px;
}

body .we-quick-compare-wrapper .we-qc-table tbody > tr > .we-qc-name::before {
    display: none !important;
    content: none !important;
}

body .we-quick-compare-wrapper .we-qc-table tbody > tr > :last-child {
    border-bottom: 0 !important;
}

body .we-quick-compare-wrapper .we-qc-table tbody::-webkit-scrollbar {
    height: 6px;
}

body .we-quick-compare-wrapper .we-qc-table tbody::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 999px;
}

body .we-quick-compare-wrapper .we-qc-table tbody::-webkit-scrollbar-thumb {
    background: #64748b;
    border-radius: 999px;
}

@media (max-width: 760px) {
    body .we-quick-compare-wrapper .we-qc-table tbody {
        padding-right: 14% !important;
    }

    body .we-quick-compare-wrapper .we-qc-table tbody > tr {
        flex-basis: min(82vw, 320px) !important;
    }
}

.gb247-history-group-title {
    margin: 10px 0 8px;
    color: #172033;
    font-size: 17px;
    line-height: 1.35;
}

.gb247-history-group-list {
    margin: 0;
    padding-left: 20px;
}

.gb247-history-group-list li {
    margin: 0 0 7px;
    color: #334155;
    font-size: 13px;
    line-height: 1.5;
}

.gb247-history-group-list li:last-child {
    margin-bottom: 0;
}

/* Nhật ký gọn hơn; mobile vẫn cuộn trang theo chiều dọc khi chạm trong carousel. */
body .gb247-history {
    margin-block: 18px !important;
    padding: 16px !important;
}

body .gb247-history-head {
    margin-bottom: 14px !important;
    padding-bottom: 12px !important;
}

body .gb247-history-head h2 {
    font-size: 21px !important;
}

body .gb247-history-head p,
body .gb247-history-empty {
    font-size: 13px !important;
    line-height: 1.5 !important;
}

body .gb247-history-card {
    padding: 12px 13px !important;
}

body .gb247-history-content,
body .gb247-history-card p {
    margin-block: 8px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

body .gb247-history-detail {
    margin-top: 9px !important;
    padding: 10px !important;
}

@media (max-width: 780px) {
    body .gb247-history {
        padding: 10px !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    body .gb247-history-head {
        margin-bottom: 10px !important;
        padding-bottom: 10px !important;
    }

    body .gb247-history-kicker {
        min-height: 0 !important;
        margin-bottom: 6px !important;
        padding: 4px 8px !important;
        font-size: 9px !important;
    }

    body .gb247-history-head h2 {
        margin-bottom: 6px !important;
        font-size: 18px !important;
        line-height: 1.25 !important;
    }

    body .gb247-history-head p,
    body .gb247-history-empty {
        font-size: 12px !important;
        line-height: 1.45 !important;
    }

    body .gb247-history-timeline {
        align-items: flex-start !important;
        gap: 8px !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin-inline: -10px !important;
        padding: 0 10px 6px !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        overscroll-behavior-x: contain !important;
        overscroll-behavior-y: auto !important;
        scroll-snap-type: x proximity !important;
        touch-action: pan-x pan-y !important;
    }

    body .gb247-history-item {
        flex: 0 0 min(82vw, 310px) !important;
        width: min(82vw, 310px) !important;
        min-width: 250px !important;
        max-width: 310px !important;
        gap: 4px !important;
        align-self: flex-start !important;
    }

    body .gb247-history-item time {
        padding: 0 !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
    }

    body .gb247-history-card {
        height: auto !important;
        min-height: 0 !important;
        padding: 9px 10px !important;
        border-radius: 8px !important;
    }

    body .gb247-history-card-top,
    body .gb247-history-meta {
        gap: 5px !important;
    }

    body .gb247-history-type,
    body .gb247-history-source,
    body .gb247-history-meta span {
        min-height: 20px !important;
        padding: 3px 7px !important;
        font-size: 9px !important;
    }

    body .gb247-history-content,
    body .gb247-history-card p {
        margin-block: 7px !important;
        font-size: 11.5px !important;
        line-height: 1.42 !important;
    }

    body .gb247-history-detail {
        margin-top: 7px !important;
        padding: 8px !important;
        border-radius: 7px !important;
    }

    body .gb247-history-detail strong {
        margin-bottom: 5px !important;
        font-size: 10.5px !important;
    }

    body .gb247-history-detail ul {
        gap: 5px !important;
    }

    body .gb247-history-detail li {
        padding-left: 14px !important;
        font-size: 11px !important;
        line-height: 1.38 !important;
    }

    body .gb247-history-detail li::before {
        width: 5px !important;
        height: 5px !important;
    }

    body .gb247-history-link {
        margin-top: 5px !important;
        font-size: 11px !important;
    }

    body .gb247-history-table-wrap {
        touch-action: pan-x pan-y !important;
        overscroll-behavior-y: auto !important;
    }

    body .gb247-history-expandable {
        position: relative;
        min-height: 0;
    }

    body .gb247-history-card.is-collapsible .gb247-history-expandable:not(.is-expanded) {
        max-height: 180px;
        overflow: hidden;
    }

    body .gb247-history-card.is-collapsible .gb247-history-expandable:not(.is-expanded)::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 42px;
        pointer-events: none;
        background: linear-gradient(to bottom, rgba(248, 251, 255, 0), #f8fbff 86%);
    }

    body .gb247-history-expandable.is-expanded {
        max-height: none !important;
        overflow: visible !important;
    }

    body .gb247-history-expand-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        min-height: 34px;
        margin: 5px 0 2px;
        padding: 6px 10px;
        border: 1px solid #cbdced;
        border-radius: 7px;
        background: #fff;
        color: #075aa8;
        font: inherit;
        font-size: 11px;
        line-height: 1;
        font-weight: 800;
        cursor: pointer;
        touch-action: manipulation;
    }

    body .gb247-history-expand-toggle[hidden] {
        display: none !important;
    }

    body .gb247-history-expand-toggle i {
        font-size: 9px;
        transition: transform .18s ease;
    }

    body .gb247-history-expand-toggle[aria-expanded="true"] i {
        transform: rotate(180deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    body .gb247-history-expand-toggle i {
        transition: none;
    }
}
