#scrollContainer .tw-annual-axes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 95px), 1fr)); gap: 8px; }
#scrollContainer .tw-annual-axes label { display: grid; gap: 4px; font-size: .8rem; }
#scrollContainer .tw-annual-axes select { width: 100%; min-height: 36px; border: 1px solid #829b97; border-radius: 6px; background: #f1eee6; color: #263936; }
#scrollContainer .tw-annual-plot svg { display: block; width: 100%; }
#scrollContainer .tw-annual-plot text { fill: currentColor; font-size: 12px; }
#scrollContainer .tw-annual-point { fill: #526662; fill-opacity: .74; stroke: #f1eee6; stroke-width: 1.5; }
#scrollContainer .tw-annual-point:is(:hover,:focus-visible,[aria-pressed="true"]) { fill-opacity: 1; stroke: #263936; stroke-width: 2; }
#scrollContainer .tw-classification-chart[hidden] { display: none !important; }
#scrollContainer .tw-classification-chart .tw-annual-axes { margin-block: 8px 14px; }
#scrollContainer .tw-classification-chart li.tw-classification-parent { display: block; }
#scrollContainer .tw-classification-chart details > summary { cursor: pointer; padding-block: 5px; }
#scrollContainer .tw-classification-summary { display: inline-grid; width: calc(100% - 1.2em); grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; vertical-align: middle; }
#scrollContainer .tw-classification-chart details > ul { margin: 8px 0 4px 12px; }
#scrollContainer .tw-stack-chart[hidden] { display: none !important; }
#scrollContainer .tw-stack-chart { margin-block: 10px 16px; }
#scrollContainer .tw-stack-chart select { min-height: 36px; border: 1px solid #829b97; border-radius: 6px; background: #f1eee6; color: #263936; }
#scrollContainer .tw-stack-plot { display: grid; gap: 8px; list-style: none; padding: 0; margin: 8px 0; }
#scrollContainer .tw-stack-plot li { display: grid; gap: 4px; }
#scrollContainer .tw-stack-track { display: flex; min-height: 24px; background: #d9e1df; border-radius: 4px; }
#scrollContainer .tw-stack-track span { display: block; border-inline-end: 1px solid #f1eee6; box-sizing: border-box; }
#scrollContainer .tw-stack-track span:is(:hover,:focus-visible,[aria-pressed="true"]) { outline: 2px solid #1c201f; outline-offset: 0; z-index: 1; }
#scrollContainer .tw-classification-chart :is(label,ul)[hidden] { display: none !important; }
#scrollContainer .tw-annual-view { margin-block-end: 8px; }
#scrollContainer .tw-annual-view, #scrollContainer .tw-annual-series {
    min-height: 36px; border: 1px solid #829b97; border-radius: 6px; background: #f1eee6; color: #263936;
}
#scrollContainer .tw-annual-axes[hidden], #scrollContainer .tw-annual-series[hidden] { display: none !important; }
#scrollContainer .tw-area-mark { stroke: #f1eee6; stroke-width: 1.5; }
#scrollContainer .tw-category-treemap[hidden] { display: none !important; }
#scrollContainer .tw-category-treemap { margin-block: 10px 14px; }
#scrollContainer .tw-category-treemap svg { display: block; width: 100%; }
#scrollContainer .tw-category-treemap text { fill: #fff; font-size: 11px; pointer-events: none; }
#scrollContainer .tw-category-treemap .tw-treemap-tile { stroke: #f1eee6; stroke-width: 1; }
#scrollContainer .tw-category-treemap .tw-treemap-tile:is(:hover,:focus-visible,[aria-pressed="true"]) { stroke: #fff; stroke-width: 4; }
#scrollContainer .tw-category-heatmap[hidden] { display: none !important; }
#scrollContainer .tw-category-heatmap {
    --tw-heat-surface: #f1eee6; --tw-heat-header: #e4e9e5; --tw-heat-grid: #c5d0ca;
    --tw-heat-low: #e4eae6; --tw-heat-high: #405853; --tw-heat-ink: #1c201f;
    margin-block: 10px 14px;
}
#scrollContainer .tw-heatmap-viewport {
    overflow: auto; max-height: min(440px, 55dvh); max-width: 100%;
    border: 1px solid var(--tw-heat-grid); border-radius: 6px;
    scrollbar-color: #829b97 var(--tw-heat-surface);
}
#scrollContainer .tw-category-heatmap table {
    width: 100%; margin: 0; border-collapse: separate !important; border-spacing: 0 !important;
    background: var(--tw-heat-surface); color: var(--tw-heat-ink); text-align: center;
}
#scrollContainer .tw-category-heatmap :is(th,td) {
    border: 0; border-right: 1px solid var(--tw-heat-grid); border-bottom: 1px solid var(--tw-heat-grid);
    border-radius: 0; font-size: .78rem;
}
#scrollContainer .tw-category-heatmap th {
    padding: 6px; min-width: 82px; max-width: 132px; overflow-wrap: anywhere;
    background: var(--tw-heat-header); color: var(--tw-heat-ink);
}
#scrollContainer .tw-category-heatmap thead th { position: sticky; top: 0; z-index: 2; }
#scrollContainer .tw-category-heatmap th[scope="row"],
#scrollContainer .tw-category-heatmap thead th:first-child { position: sticky; left: 0; text-align: left; }
#scrollContainer .tw-category-heatmap th[scope="row"] { z-index: 1; }
#scrollContainer .tw-category-heatmap thead th:first-child { z-index: 3; }
#scrollContainer .tw-category-heatmap td { padding: 0; background: transparent; }
#scrollContainer .tw-heatmap-cell {
    display: block; min-width: 36px; padding: 7px 4px; color: var(--tw-heat-ink);
    background: color-mix(in srgb, var(--tw-heat-high) var(--tw-heat), var(--tw-heat-low));
    font-variant-numeric: tabular-nums;
}
#scrollContainer .tw-heatmap-cell.tw-heatmap-dark { color: #fff; }
#scrollContainer .tw-heatmap-cell:focus-visible { outline-offset: -2px; outline-color: currentColor; }
html:is([data-theme="dark"],[data-tw-theme="dark"]) #scrollContainer .tw-category-heatmap {
    --tw-heat-surface: #202622; --tw-heat-header: #293530; --tw-heat-grid: #47544e;
    --tw-heat-low: #29332e; --tw-heat-high: #426755; --tw-heat-ink: #f1eee6;
}
#scrollContainer :is(#twCtCategoryHistoryGrid,.tw-annual-view)[hidden] { display: none !important; }
#scrollContainer :is(#subtab-data, #counter-subtab-data) {
    --tw-stat-surface: #283431;
    --tw-stat-ink: #f1eee6;
    --tw-stat-muted: #c3d1ce;
    --tw-stat-border: #586c68;
    --tw-stat-track: #394b47;
    --tw-stat-accent: #a5bdb8;
    --tw-stat-icon: #b4d4e6;
    --tw-stat-hover: #9bafac;
    font-family: Inter, system-ui, sans-serif;
}
html:not([data-theme="dark"], [data-tw-theme="dark"]):is([data-theme="light"], [data-tw-theme="light"]) #scrollContainer :is(#subtab-data, #counter-subtab-data),
html:not([data-theme="dark"], [data-tw-theme="dark"]) body.tw-country-light #scrollContainer :is(#subtab-data, #counter-subtab-data) {
    --tw-stat-surface: #f1eee6;
    --tw-stat-ink: #242e2c;
    --tw-stat-muted: #495b58;
    --tw-stat-border: #abb9b5;
    --tw-stat-track: #d9e1df;
    --tw-stat-accent: #526662;
    --tw-stat-icon: #1e4861;
}
#scrollContainer :is(#subtab-data, #counter-subtab-data) [hidden],
.tw-stat-tooltip[hidden] { display: none !important; }
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-chart-expand,
#scrollContainer .tw-chart-dialog-actions button {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--tw-stat-icon) !important;
    cursor: pointer;
}
#scrollContainer .tw-chart-expand { margin-inline-start: auto; }
#scrollContainer :is(.tw-chart-expand, .tw-chart-dialog-actions button) svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
#scrollContainer .tw-chart-dialog-actions button { color: #f1eee6 !important; }
#scrollContainer :is(#subtab-data, #counter-subtab-data, .tw-chart-dialog)
    :is(.tw-chart-expand, .tw-chart-dialog-actions button, .tw-stat-list-tools button):is(:hover, :focus-visible) {
    background: var(--tw-stat-hover);
    color: #202a28 !important;
}
#scrollContainer .tw-chart-dialog:not([open]),
#scrollContainer .tw-chart-dialog :is(.tw-chart-expand, .tw-chart-source-title) { display: none !important; }
#scrollContainer .tw-chart-dialog {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: min(80vw, 1500px);
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--tw-stat-border);
    border-radius: 12px;
    background: var(--tw-stat-surface);
    color: var(--tw-stat-ink);
    font: 400 1rem/1.5 Inter, system-ui, sans-serif;
}
#scrollContainer .tw-chart-dialog[open] { display: flex; flex-direction: column; }
#scrollContainer .tw-chart-dialog::backdrop { background: rgb(18 24 23 / .65); }
#scrollContainer .tw-chart-dialog > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px clamp(12px, 2vw, 30px);
    background: #404f4d;
}
#scrollContainer .tw-chart-dialog > header h2 {
    margin: 0;
    color: #f1eee6 !important;
    -webkit-text-fill-color: currentColor;
    font: 650 clamp(1rem, 2vw, 1.3rem)/1.3 Inter, system-ui, sans-serif;
    overflow-wrap: anywhere;
}
#scrollContainer .tw-chart-dialog-actions { display: flex; gap: 4px; }
#scrollContainer .tw-chart-dialog-content {
    flex: 1;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: clamp(24px, 3vw, 32px);
    container-type: inline-size;
}
#scrollContainer .tw-chart-dialog-content > :is(section, div) {
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
#scrollContainer .tw-chart-dialog.tw-chart-dialog-maximized {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
}
@media (max-width: 600px) {
    #scrollContainer .tw-chart-dialog,
    #scrollContainer .tw-chart-dialog.tw-chart-dialog-maximized {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border: 0;
        border-radius: 0;
    }
    #scrollContainer .tw-chart-dialog-content { padding: 16px; }
}
.tw-stat-tooltip {
    position: fixed;
    z-index: 2147483647;
    box-sizing: border-box;
    max-width: min(340px, calc(100vw - 16px));
    padding: 8px 12px;
    border: 1px solid #829b97;
    border-radius: 7px;
    background: #263936;
    color: #fff;
    font: 500 .875rem/1.4 Inter, system-ui, sans-serif;
    overflow-wrap: anywhere;
    pointer-events: none;
}
#scrollContainer :is(#subtab-data, #counter-subtab-data) :is(.tw-chart-values, .tw-chart-branches) {
    box-sizing: border-box;
    max-width: 75ch;
    margin-inline: auto;
}
#scrollContainer :is(#subtab-data, #counter-subtab-data) :is(.tw-chart-values, .tw-chart-branches, .tw-chart-note) {
    color: var(--tw-stat-ink);
}
#scrollContainer .tw-chart-dialog :is(.tw-chart-values li, .tw-chart-note, .tw-ct-bar-item, .tw-stack-plot li) {
    font-size: .9375rem;
    line-height: 1.5;
}
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-chart-bar {
    display: block;
    grid-column: 1 / -1;
    width: 100%;
    height: 7px;
    background: var(--tw-stat-track);
}
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-chart-bar > span {
    display: block !important;
    width: var(--tw-share);
    height: 100%;
    background: var(--tw-stat-accent);
}
#scrollContainer .tw-chart-bar > .tw-stat-bar-positive { min-width: 1px; }
#scrollContainer .tw-chart-dialog .tw-chart-bar { height: 10px; }
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-ct-bar { background: var(--tw-stat-accent); }
#scrollContainer .tw-ct-bars { max-width: 80ch; margin-inline: auto; }
#scrollContainer .tw-ct-bar-item { color: var(--tw-stat-muted); }
#scrollContainer .tw-ct-bar-value { color: var(--tw-stat-ink); }
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-distribution-inactive { display: none !important; }
#scrollContainer :is(#subtab-data, #counter-subtab-data) :is(.tw-distribution-bars li, .tw-stat-bar-row) {
    padding: 6px 8px;
    border-bottom: 1px solid var(--tw-stat-border);
}
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-classification-parent,
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-classification-parent:hover {
    padding: 0;
    background: transparent;
    color: var(--tw-stat-ink);
}
#scrollContainer :is(#subtab-data, #counter-subtab-data)
    :is(.tw-chart-values [data-tw-chart-detail], .tw-classification-parent > details > summary, .tw-chart-branches summary):is(:hover, :focus-visible, [aria-pressed="true"]) {
    background: var(--tw-stat-hover) !important;
    color: #202a28 !important;
    -webkit-text-fill-color: #202a28 !important;
}
#scrollContainer :is(.tw-classification-parent > details > summary, .tw-chart-branches summary) {
    list-style: none;
    border-radius: 6px;
    padding: 8px;
}
#scrollContainer :is(.tw-classification-parent > details > summary, .tw-chart-branches summary)::-webkit-details-marker { display: none; }
#scrollContainer :is(.tw-classification-parent > details > summary, .tw-chart-branches summary)::before {
    content: "";
    display: inline-block;
    width: .45em;
    height: .45em;
    margin-inline-end: .65em;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(-45deg);
}
#scrollContainer :is(.tw-classification-parent, .tw-chart-branches) details[open] > summary::before { transform: rotate(45deg); }
#scrollContainer .tw-classification-summary { padding-inline-end: 4px; }
#scrollContainer .tw-classification-parent ul { box-sizing: border-box; width: auto; margin-inline: 14px 0; }
#scrollContainer :is(.tw-chart-ring-layout, .tw-annual-axes, .tw-stat-list-tools) { gap: 12px; }
#scrollContainer .tw-chart-rings { width: min(100%, 220px); }
#scrollContainer .tw-chart-dialog .tw-chart-rings { width: min(100%, 390px); }
#scrollContainer :is(.tw-chart-rings, .tw-chart-trend-plot, .tw-annual-plot, .tw-category-treemap) svg {
    display: block;
    width: 100%;
    max-height: none;
}
#scrollContainer .tw-chart-ring-total { pointer-events: none; color: var(--tw-stat-ink); }
#scrollContainer svg .tw-ring-guide { stroke: var(--tw-stat-track); }
#scrollContainer svg .tw-ring-segment { stroke-width: 7; }
#scrollContainer svg.tw-mark-active [data-tw-chart-keys]:not(.tw-mark-related) { opacity: .23; }
#scrollContainer svg .tw-mark-related { opacity: 1; }
#scrollContainer svg .tw-ring-segment.tw-mark-related { stroke-width: 10; }
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-trend-guide { stroke: var(--tw-stat-border); }
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-trend-line { stroke: var(--tw-stat-accent); }
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-trend-point { fill: var(--tw-stat-accent); }
@container (min-width: 620px) {
    #scrollContainer .tw-chart-dialog .tw-chart-ring-layout {
        grid-template-columns: minmax(250px, .8fr) minmax(280px, 1fr);
        align-items: center;
        max-width: 1000px;
        margin-inline: auto;
    }
}
#scrollContainer .tw-chart-dialog .tw-annual-axes {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
    max-width: 850px;
}
#scrollContainer .tw-stat-list-tools { display: flex; flex-wrap: wrap; margin-block: 10px; }
#scrollContainer :is(#subtab-data, #counter-subtab-data)
    :is(.tw-annual-axes select, .tw-annual-view, .tw-annual-series, .tw-stack-chart select,
        .tw-matrix-search, .tw-stat-list-tools input, .tw-stat-list-tools button, #twCounterYear, #twThreatYear) {
    box-sizing: border-box;
    min-height: 42px;
    max-width: 100%;
    padding: 5px 10px;
    border: 1px solid var(--tw-stat-border);
    border-radius: 6px;
    background: var(--tw-stat-surface);
    color: var(--tw-stat-ink);
    font: 500 .875rem/1.4 Inter, system-ui, sans-serif;
}
#scrollContainer .tw-category-sankey { overflow: auto; max-height: min(480px, 70dvh); }
#scrollContainer .tw-chart-dialog .tw-category-sankey { max-height: 52dvh; }
#scrollContainer .tw-chart-dialog-maximized .tw-category-sankey { max-height: 75dvh; }
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-category-sankey svg {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
}
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-category-sankey text { fill: var(--tw-stat-ink); font-size: 13px; }
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-sankey-node { fill: var(--tw-stat-accent); }
#scrollContainer .tw-category-sankey .tw-sankey-link.tw-mark-related { stroke-opacity: 1; }
#scrollContainer .tw-chart-dialog :is(.tw-stack-plot, .tw-delta-chart, .tw-victim-comparison) {
    max-width: 85ch;
    margin-inline: auto;
}
#scrollContainer .tw-chart-dialog .tw-heatmap-viewport { max-height: 60dvh; }
@media (prefers-reduced-motion: no-preference) {
    #scrollContainer .tw-chart-bar > span { animation: tw-stat-grow .28s ease-out; transform-origin: left; }
    @keyframes tw-stat-grow { from { transform: scaleX(0); } }
}
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-classification-summary {
    display: inline-grid;
    width: calc(100% - 1.25em);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
    vertical-align: middle;
    overflow-wrap: anywhere;
}
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-sankey-link { fill: none; stroke-opacity: .62; }
#scrollContainer #twWorldStatisticsYear {
    min-height: 42px;
    border: 1px solid var(--tw-stat-border);
    border-radius: 6px;
    background: var(--tw-stat-surface);
    color: var(--tw-stat-ink);
    font: inherit;
    padding: 4px 8px;
}
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-chart-dialog-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-block-end: 18px;
    color: var(--tw-stat-ink);
}
#scrollContainer .tw-chart-dialog-filter select {
    min-height: 42px;
    max-width: 100%;
    padding: 5px 10px;
    border: 1px solid var(--tw-stat-border);
    border-radius: 6px;
    background: var(--tw-stat-surface);
    color: var(--tw-stat-ink);
    font: inherit;
}
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-ct-bar {
    height: calc(var(--tw-column-share, 0) * var(--tw-column-height, 76px));
    min-height: 0;
}
#scrollContainer .tw-chart-dialog .tw-ct-bars { --tw-column-height: 132px; }
#scrollContainer .tw-chart-dialog-maximized .tw-ct-bars { --tw-column-height: clamp(120px, 22dvh, 280px); }
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-chart-dialog .tw-chart-rings {
    width: min(100%, 370px, 53dvh);
}
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-chart-dialog :is(.tw-ct-year-comparison, .tw-chart-note, .tw-chart-values li, .tw-chart-values strong) {
    color: var(--tw-stat-ink);
}
#scrollContainer .tw-stat-list-tools input::placeholder { color: var(--tw-stat-muted); }
/* A plot waiting for its first layout needs a measurable width. */
#scrollContainer :is(#subtab-data, #counter-subtab-data) [data-tw-responsive]:not([hidden]) {
    display: block;
    min-width: 0;
}
/* Keep the shared palette above the legacy template rules for these two tabs. */
html body.tw-country-light #mainContent #scrollContainer :is(#subtab-data, #counter-subtab-data)
:is(.tw-chart-card, .tw-ct-monitor, .tw-ct-trend, .tw-ct-category-history) {
    background: var(--tw-stat-surface) !important;
    border-color: var(--tw-stat-border) !important;
    color: var(--tw-stat-ink) !important;
    box-shadow: none !important;
}
html body.tw-country-light #mainContent #scrollContainer :is(#subtab-data, #counter-subtab-data)
.tw-chart-dialog .tw-chart-dialog-content > :is(.tw-chart-card, .tw-ct-trend, .tw-ct-category-history) {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
}
html body.tw-country-light #mainContent #scrollContainer :is(#subtab-data, #counter-subtab-data)
:is(.tw-chart-card, .tw-ct-trend, .tw-ct-category-history, .tw-chart-dialog)
:is(h3, h4, .tw-chart-note, .tw-chart-values li, .tw-chart-values strong, .tw-chart-values li > span:not(.tw-chart-bar),
    .tw-chart-ring-total, .tw-chart-ring-total small, .tw-ct-bar-value, .tw-ct-bar-year, .tw-ct-year-comparison,
    .tw-ct-category-history-note, .tw-ct-category-row, .tw-chart-branches summary) {
    color: var(--tw-stat-ink) !important;
    -webkit-text-fill-color: currentColor !important;
}
html body.tw-country-light #mainContent #scrollContainer :is(#subtab-data, #counter-subtab-data)
:is(.tw-chart-values li[data-tw-chart-detail], .tw-chart-branches summary, .tw-classification-parent > details > summary)
:is(:hover, :focus-visible, [aria-pressed="true"]),
html body.tw-country-light #mainContent #scrollContainer :is(#subtab-data, #counter-subtab-data)
:is(.tw-chart-values li[data-tw-chart-detail], .tw-chart-branches summary, .tw-classification-parent > details > summary)
:is(:hover, :focus-visible, [aria-pressed="true"]) > :is(strong, span:not(.tw-chart-bar)) {
    color: #202a28 !important;
    -webkit-text-fill-color: currentColor !important;
}
html body.tw-country-light #mainContent #scrollContainer :is(#subtab-data, #counter-subtab-data)
:is(#twCounterYear, #twThreatYear, #twWorldStatisticsYear, .tw-chart-dialog-filter select) {
    background: var(--tw-stat-surface) !important;
    color: var(--tw-stat-ink) !important;
    -webkit-text-fill-color: currentColor !important;
    border-color: var(--tw-stat-border) !important;
}
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-victim-series:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block: 8px 16px;
}
html body.tw-country-light #mainContent #scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-victim-series button {
    min-height: 42px;
    padding: 5px 12px;
    border: 1px solid var(--tw-stat-border);
    border-radius: 6px;
    background: var(--tw-stat-surface);
    color: var(--tw-stat-ink);
    font: 600 .875rem/1.4 Inter, system-ui, sans-serif;
    cursor: pointer;
}
html body.tw-country-light #mainContent #scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-victim-series button[aria-pressed="true"] {
    background: #404f4d;
    color: #f1eee6;
}
html body.tw-country-light #mainContent #scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-victim-series button:not([aria-pressed="true"]):hover {
    background: var(--tw-stat-hover);
    color: #202a28;
}
#scrollContainer .tw-chart-dialog .tw-chart-ring-total { font-size: clamp(1.25rem, 3vw, 2rem); }
#scrollContainer .tw-chart-dialog .tw-chart-ring-total small { font-size: .8rem; }
#scrollContainer .tw-chart-dialog :is(.tw-annual-table, .tw-ct-category-history) { max-width: 78ch; }
#scrollContainer .tw-chart-dialog .tw-annual-table { margin-inline: auto; }
#scrollContainer :is(#subtab-data, #counter-subtab-data) :is(.tw-chart-values, .tw-classification-summary) strong {
    font-variant-numeric: tabular-nums;
}
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-delta-track {
    position: relative;
    height: 18px;
    border-radius: 4px;
    background: var(--tw-stat-track);
}
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-delta-track::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 50%;
    border-inline-start: 1px solid var(--tw-stat-accent);
}
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-delta-bar {
    position: absolute;
    inset-block: 3px;
    border-radius: 3px;
    background: #376f80;
}
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-delta-negative { background: #8a5731; }
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-annual-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-annual-table :is(th, td) {
    padding: 8px;
    border-bottom: 1px solid var(--tw-stat-border);
    text-align: end;
    overflow-wrap: anywhere;
}
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-annual-table :is(th, td):first-child { text-align: start; }
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-annual-table tbody tr:hover {
    background: var(--tw-stat-hover);
    color: #202a28;
}
#scrollContainer .tw-annual-toolbar { margin-block-end: 8px; }
#scrollContainer .tw-annual-relationship .tw-chart-note:empty { display: none; }
#scrollContainer .tw-annual-relationship .tw-annual-plot:not(:empty) { margin-block-start: 8px; }
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-chart-branches details[open] { background: transparent; }
#scrollContainer [data-tw-chart-detail] { cursor: pointer; }
#scrollContainer [data-tw-chart-detail]:focus-visible {
    outline: 2px solid var(--tw-stat-icon);
    outline-offset: 2px;
}
html body.tw-country-light #mainContent #scrollContainer :is(#subtab-data, #counter-subtab-data)
:is(.tw-annual-axes select, .tw-annual-view, .tw-annual-series, .tw-stack-chart select, .tw-matrix-search, .tw-stat-list-tools input) {
    background: var(--tw-stat-surface) !important;
    color: var(--tw-stat-ink) !important;
    -webkit-text-fill-color: currentColor !important;
    border-color: var(--tw-stat-border) !important;
}
#scrollContainer .tw-annual-view + .tw-annual-view { margin-inline-start: 8px; }
#scrollContainer :is(#subtab-data, #counter-subtab-data) svg.tw-mark-active :is(text, .tw-sankey-node)[data-tw-chart-keys] {
    opacity: 1;
}
#scrollContainer :is(#subtab-data, #counter-subtab-data) svg.tw-mark-active text.tw-mark-related { text-decoration: underline; }
html:is([data-theme="dark"], [data-tw-theme="dark"]) #scrollContainer .tw-sankey-link {
    stroke: color-mix(in srgb, var(--tw-link-color) 68%, #b3c2c0);
}

/* The statistics surface owns both paint and text across inline and top-layer views. */
html #mainContent #scrollContainer :is(#subtab-data, #counter-subtab-data) {
    background: var(--tw-stat-surface) !important;
    color: var(--tw-stat-ink) !important;
    --tw-chart-text: var(--tw-stat-ink);
    --tw-chart-surface: var(--tw-stat-surface);
    --tw-chart-muted: var(--tw-stat-muted);
    --tw-chart-track: var(--tw-stat-track);
    --tw-chart-accent: var(--tw-stat-accent);
}
html[data-tw-theme="light"] #mainContent #scrollContainer :is(#subtab-data, #counter-subtab-data) {
    --tw-stat-surface: #f1eee6;
    --tw-stat-ink: #242e2c;
    --tw-stat-muted: #495b58;
    --tw-stat-border: #829b97;
    --tw-stat-track: #d9e1df;
    --tw-stat-accent: #526662;
    --tw-stat-icon: #1e4861;
    color-scheme: light;
}
html #mainContent #scrollContainer :is(#subtab-data, #counter-subtab-data) dialog.tw-chart-dialog {
    background: var(--tw-stat-surface) !important;
    color: var(--tw-stat-ink) !important;
}
html body.tw-country-light #mainContent #scrollContainer :is(#tab-workout, #tab-countermeasures)
:is(#subtab-data, #counter-subtab-data)
:is([data-tw-stat-topic], .tw-chart-dialog-content, .tw-ct-monitor)
:is(h3, h4, label, li, dt, dd, th, td, strong, small, p, .tw-classification-summary, .tw-victim-year-label, .tw-victim-comparison-values span) {
    color: var(--tw-stat-ink) !important;
    -webkit-text-fill-color: currentColor !important;
}
html body.tw-country-light #mainContent #scrollContainer :is(#subtab-data, #counter-subtab-data)
:is(.tw-chart-values li[data-tw-chart-detail], summary, .tw-annual-table tr):is(:hover, :focus-visible)
:is(span:not(.tw-chart-bar), strong, td, th) {
    color: #202a28 !important;
    -webkit-text-fill-color: currentColor !important;
}
#scrollContainer :is(#subtab-data, #counter-subtab-data) :is(.tw-annual-plot, .tw-category-sankey) text {
    color: var(--tw-stat-ink);
    fill: var(--tw-stat-ink);
}
#scrollContainer .tw-category-sankey { scrollbar-gutter: stable; }
#scrollContainer .tw-chart-dialog-content .tw-victim-year-chart {
    max-width: 78rem;
    margin-inline: auto;
}
#scrollContainer .tw-stat-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-block: 4px 14px;
}
#scrollContainer .tw-stat-topics button {
    border: 1px solid var(--tw-stat-border);
    border-radius: 5px;
    padding: 6px 10px;
    min-height: 34px;
    background: var(--tw-stat-surface);
    color: var(--tw-stat-ink);
    font: 600 .8rem Inter, system-ui, sans-serif;
    cursor: pointer;
}
#scrollContainer .tw-stat-topics button:hover { background: #9bafac; color: #202a28; }
#scrollContainer .tw-stat-topics button[aria-pressed="true"] { background: #404f4d; color: #f1eee6; }
#scrollContainer [data-tw-stat-active="overview"] [data-tw-stat-topic]:not([data-tw-stat-topic="overview"]):not(dialog *) { display: none !important; }
#scrollContainer [data-tw-stat-active="timeline"] [data-tw-stat-topic]:not([data-tw-stat-topic="timeline"]):not(dialog *) { display: none !important; }
#scrollContainer [data-tw-stat-active="categories"] [data-tw-stat-topic]:not([data-tw-stat-topic="categories"]):not(dialog *) { display: none !important; }
#scrollContainer [data-tw-stat-active="breakdown"] [data-tw-stat-topic]:not([data-tw-stat-topic="breakdown"]):not(dialog *) { display: none !important; }
#scrollContainer [data-tw-stat-active="victims"] [data-tw-stat-topic]:not([data-tw-stat-topic="victims"]):not(dialog *) { display: none !important; }
#scrollContainer [data-tw-stat-active="comparisons"] [data-tw-stat-topic]:not([data-tw-stat-topic="comparisons"]):not(dialog *) { display: none !important; }
#scrollContainer [data-tw-stat-active="analysis"] [data-tw-stat-topic]:not([data-tw-stat-topic="analysis"]):not(dialog *) { display: none !important; }
#scrollContainer .tw-stat-options { margin-block: 6px 14px; }
#scrollContainer .tw-stat-options > summary {
    width: fit-content;
    padding: 5px 6px;
    color: var(--tw-stat-ink);
    font-size: .85rem;
    cursor: pointer;
}
#scrollContainer .tw-stat-options > summary:hover { background: #9bafac; color: #202a28; }
#scrollContainer .tw-stat-options[open] > summary { margin-block-end: 6px; }
html body.tw-country-light #mainContent #scrollContainer :is(#tab-workout, #tab-countermeasures)
:is(#subtab-data, #counter-subtab-data) .tw-victim-series button:not([aria-pressed="true"]) {
    color: var(--tw-stat-ink) !important;
    -webkit-text-fill-color: currentColor !important;
}
html body.tw-country-light #mainContent #scrollContainer :is(#tab-workout, #tab-countermeasures)
:is(#subtab-data, #counter-subtab-data) .tw-victim-series button:not([aria-pressed="true"]):hover {
    color: #202a28 !important;
}
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-stat-inactive-view { display: none !important; }
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-chart-trend-plot svg text {
    fill: var(--tw-stat-ink);
    font-size: 12px;
}
#scrollContainer .tw-category-sankey text[data-tw-chart-detail] { pointer-events: bounding-box; }
#scrollContainer[data-tw-stat-palette="dark"] :is(#subtab-data, #counter-subtab-data) :is(#twThreatCasualties, #twCounterCasualties) {
    --tw-victim-deaths: #a5bdb8;
    --tw-victim-injuries: #c4aa8c;
}
#scrollContainer :is(#twThreatCasualties, #twCounterCasualties) .tw-victim-horizontal-track {
    background: var(--tw-stat-track);
}

/* Statistics follow the visible flyout, independently of the map theme. */
html #mainContent #scrollContainer[data-tw-stat-palette="light"] :is(#subtab-data, #counter-subtab-data) {
    --tw-stat-surface: #f1eee6;
    --tw-stat-ink: #242e2c;
    --tw-stat-muted: #495b58;
    --tw-stat-border: #a4b1ad;
    --tw-stat-track: #d9e1df;
    --tw-stat-accent: #526662;
    --tw-stat-icon: #1e4861;
    --tw-stat-kpi: #e2e8e4;
    color-scheme: light;
}
html #mainContent #scrollContainer[data-tw-stat-palette="dark"] :is(#subtab-data, #counter-subtab-data) {
    --tw-stat-surface: #283431;
    --tw-stat-ink: #f1eee6;
    --tw-stat-muted: #c3d1ce;
    --tw-stat-border: #758984;
    --tw-stat-track: #394b47;
    --tw-stat-accent: #a5bdb8;
    --tw-stat-icon: #b4d4e6;
    --tw-stat-kpi: #374946;
    color-scheme: dark;
}
html body #mainContent #scrollContainer[data-tw-stat-palette] :is(#subtab-data, #counter-subtab-data)
:is(.tw-ct-year-control, #twWorldStatisticsControls) label {
    color: var(--tw-stat-ink) !important;
    -webkit-text-fill-color: currentColor !important;
}
html body.tw-country-light #mainContent #scrollContainer[data-tw-stat-palette] :is(#subtab-data, #counter-subtab-data)
:is(#twCounterYear, #twThreatYear, #twWorldStatisticsYear) {
    background: var(--tw-stat-kpi) !important;
    color: var(--tw-stat-ink) !important;
    -webkit-text-fill-color: currentColor !important;
}
html body.tw-country-light #mainContent #scrollContainer[data-tw-stat-palette] :is(#subtab-data, #counter-subtab-data)
:is(#twCoreStats,#twCounterStats) .tw-chart-metrics div {
    background: var(--tw-stat-kpi);
}
#scrollContainer .tw-stat-topic-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px 5px;
    border-bottom: 1px solid var(--tw-stat-border);
    margin-block: 2px 12px;
}
#scrollContainer .tw-stat-topic-nav button {
    min-height: 40px;
    padding: 5px 4px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 4px 4px 0 0;
    background: none;
    color: var(--tw-stat-ink);
    font: 600 .8rem/1.25 Inter, system-ui, sans-serif;
    cursor: pointer;
    overflow-wrap: anywhere;
}
#scrollContainer .tw-stat-topic-nav button:hover { background: var(--tw-stat-kpi); }
#scrollContainer .tw-stat-topic-nav button[aria-pressed="true"] {
    border-bottom-color: var(--tw-stat-accent);
    background: var(--tw-stat-kpi);
    color: var(--tw-stat-ink);
}
#scrollContainer :is(.tw-stat-topic-nav button, .tw-stat-expandable :is(summary, button, select)):focus-visible {
    outline: 2px solid var(--tw-stat-icon);
    outline-offset: 2px;
}
#scrollContainer .tw-stat-expandable { position: relative; }
#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-stat-expandable > .tw-chart-expand {
    position: absolute;
    inset: 4px 4px auto auto;
    z-index: 1;
}
#scrollContainer .tw-stat-expandable > :is(h3, h4, .tw-ct-trend-head) {
    padding-inline-end: 38px;
    min-height: 27px;
}
#scrollContainer .tw-category-treemap text {
    fill: #fff;
    stroke: none;
    font: 650 13px Inter, system-ui, sans-serif;
}
#scrollContainer .tw-category-treemap .tw-treemap-value { font-size: 12px; font-weight: 500; }
#scrollContainer[data-tw-stat-palette="light"] .tw-category-heatmap {
    --tw-heat-low: #e6ede9;
    --tw-heat-high: #546f66;
    --tw-heat-ink: #242e2c;
}
@media (max-width: 480px) {
    #scrollContainer :is(#tab-workout, #tab-countermeasures) .tw-threat-view-switch .tw-subtab-btn svg {
        display: none;
    }
}
#scrollContainer .tw-category-treemap .tw-treemap-single .tw-treemap-value { font-size: 24px; }

#scrollContainer :is(#subtab-data, #counter-subtab-data) .tw-ct-year-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 5px 8px;
    margin-block: 0 12px;
    border: 1px solid var(--tw-stat-border);
    border-radius: 8px;
}
#scrollContainer :is(#twCoreStats, #twCounterStats) .tw-chart-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
#scrollContainer :is(#twCoreStats, #twCounterStats) .tw-chart-metrics div {
    display: flex;
    flex-direction: column-reverse;
    gap: 5px;
    text-align: center;
    overflow-wrap: anywhere;
}
#scrollContainer :is(#twCoreStats, #twCounterStats) .tw-chart-metrics dd { margin: 0; }
#scrollContainer .tw-counter-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
#twWorldStatisticsStatus:empty { display: none; }

#scrollContainer :is(#twCoreStats, #twCounterStats) .tw-chart-metrics > div {
    container-type: inline-size;
}
#scrollContainer :is(#twCoreStats, #twCounterStats) .tw-chart-metrics dd {
    white-space: nowrap;
    overflow-wrap: normal;
    font-variant-numeric: tabular-nums;
    font-size: min(clamp(21px, 5vw, 29px), calc(150cqi / var(--tw-metric-chars, 5)));
}
