/* BBC 014: shared comfort layer; no data or layout semantics changed. */
html{scroll-behavior:smooth;scrollbar-color:#58645d #222a26}
body{font-family:"Segoe UI",system-ui,Arial,sans-serif!important;color:#d0d8d1;background:#202923!important}
body a{color:#a9c49b}body h1{color:#b4ceaa}
body .card,body .panel{box-shadow:none;background-color:#28332c}
body .card:hover,body .google-login:hover{transform:none;box-shadow:none}
body .login-beam:after{animation:none;left:35%;box-shadow:none}
body .logo{filter:none!important}
body table{font-variant-numeric:tabular-nums}
body table th,body table td{border-color:#39443c!important;text-shadow:none!important}
body .compare-shell{background:#202923!important}
body.compare-body .compare-table-wrap{contain:layout paint;scroll-behavior:auto!important;background:#222c26!important;scrollbar-color:#65736a #222c26}
body.compare-body .compare-matrix{background:#222c26!important;color:#d0d8d1!important;font-family:"Segoe UI",system-ui,Arial,sans-serif!important;font-variant-numeric:tabular-nums}
body.compare-body .compare-matrix thead{position:static!important}
body.compare-body .compare-matrix thead th{background:#303d34!important;color:#d4ded4!important;box-shadow:none!important}
body.compare-body .compare-matrix tbody tr.metric-row[data-section-body] td{background:#26312a!important;color:#d0d8d1!important;font-size:13px!important;font-weight:500!important;border-right-color:#303b34!important;border-bottom-color:#364139!important}
body.compare-body .compare-matrix tbody tr.metric-row[data-section-body]:nth-child(even) td{background:#29352d!important}
body.compare-body .compare-matrix tbody tr.metric-row[data-section-body] th.metric-sticky{background:#303d34!important;color:#d0d8d1!important;box-shadow:none!important}
body.compare-body .compare-matrix tbody tr.metric-row[data-section-body] td.missing{color:#9aa99e!important}
body.compare-body .compare-matrix tbody tr.metric-row.metric-selected[data-section-body] td{background:#354638!important}
body.compare-body .compare-matrix tbody tr.metric-row.metric-selected[data-section-body] th.metric-sticky{background:#3a4b3c!important}
body.compare-body .compare-matrix .metric-sort{font-size:12px!important;font-weight:500!important;color:#d0d8d1!important}
body.compare-body .compare-matrix .metric-sort.sort-active{color:#e1c98f!important}
body.compare-body .compare-matrix .tank-name-link b{font-size:12px!important;color:#d5ded3!important}
body.compare-body .compare-matrix .tank-name-link small{font-size:10px!important;color:#aab9ad!important}
body.compare-body .compare-matrix .tank-module-line>span{font-size:9px!important;color:#b8c5b9!important}
body.compare-body .compare-matrix .tank-module-choice{font-size:10px!important;min-height:15px!important;min-width:15px!important}
body.compare-body .compare-matrix tbody tr.section-row[data-section] th{background:#39483e!important;border-top:1px solid #536459!important}
body.compare-body .compare-matrix *,body.compare-body .compare-matrix{transition:none!important;animation:none!important;backdrop-filter:none!important;text-shadow:none!important}
body.compare-body .compare-matrix [data-tank-id].ammo-filter-excluded{filter:none!important;opacity:.55!important}
body.compare-body .compare-matrix .remove-tank{background:#925e59!important;box-shadow:none!important;border-color:#a47a73!important}
body.compare-body .compare-matrix .tank-module-choice[aria-pressed=true]{background:#a58e5e!important;border-color:#b5a078!important;color:#202923!important;box-shadow:none!important}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}body *,body *::before,body *::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media print{body.compare-body .compare-table-wrap{contain:none!important;overflow:visible!important}}
/* 015: opaque pastel surfaces, explicit stacking hierarchy. */
html[data-bbc-theme=sand]{--bbc-bg:#f4efe5;--bbc-panel:#eee7db;--bbc-head:#e4d9c6;--bbc-ink:#514b41;--bbc-muted:#71695d;--bbc-line:#ded5c7;--bbc-accent:#d5c4a6}
html[data-bbc-theme=silver]{--bbc-bg:#f3f4f5;--bbc-panel:#e9ecef;--bbc-head:#dce1e5;--bbc-ink:#424b54;--bbc-muted:#626c75;--bbc-line:#d9dfe4;--bbc-accent:#c4d0da}
html[data-bbc-theme=sage]{--bbc-bg:#f0f4ee;--bbc-panel:#e7eee4;--bbc-head:#d9e5d7;--bbc-ink:#425447;--bbc-muted:#627365;--bbc-line:#d6e0d4;--bbc-accent:#c3d6c0}
html[data-bbc-theme]{color-scheme:light;scrollbar-color:var(--bbc-accent) var(--bbc-bg)}
html[data-bbc-theme] body{background:var(--bbc-bg)!important;color:var(--bbc-ink)!important;background-image:none!important}
html[data-bbc-theme] body :is(.wrap,.compare-shell,.compare-top,.ammo-filter-panel,.card,.panel,.topbar,.navbar,.wot-nav,header,footer){background:var(--bbc-panel)!important;color:var(--bbc-ink)!important;border-color:var(--bbc-line)!important;box-shadow:none!important;backdrop-filter:none!important}
html[data-bbc-theme] body :is(h1,h2,h3,h4,a,label,small,.brand-mini,.ammo-filter-status,.ammo-filter-heading b,.ammo-filter-heading small){color:var(--bbc-ink)!important}
html[data-bbc-theme] body :is(button,select,input,textarea,.ammo-filter-chip,.ammo-filter-reset){color:var(--bbc-ink)!important;background-color:var(--bbc-panel)!important;border-color:var(--bbc-line)!important;text-shadow:none!important}
html[data-bbc-theme] body :is(button[aria-pressed=true],.ammo-filter-chip.selected){background:var(--bbc-accent)!important;color:var(--bbc-ink)!important}
.bbc-theme-picker{display:inline-flex;align-items:center;gap:6px;padding:3px 8px;font-size:12px;white-space:nowrap}.bbc-theme-picker select{font:inherit;padding:4px 7px;border:1px solid var(--bbc-line);border-radius:5px}
html[data-bbc-theme] body table{color:var(--bbc-ink)!important;background:var(--bbc-bg)!important}html[data-bbc-theme] body table :is(th,td){border-color:var(--bbc-line)!important;color:var(--bbc-ink)!important;background:var(--bbc-bg)!important}
html[data-bbc-theme] body.compare-body .compare-table-wrap{background:var(--bbc-bg)!important;scrollbar-color:var(--bbc-accent) var(--bbc-bg);isolation:isolate}
html[data-bbc-theme] body.compare-body .compare-matrix thead{position:sticky!important;top:0!important;z-index:100!important}
html[data-bbc-theme] body.compare-body .compare-matrix thead th{position:sticky!important;top:0!important;z-index:101!important;background:var(--bbc-head)!important;color:var(--bbc-ink)!important}
html[data-bbc-theme] body.compare-body .compare-matrix thead th.metric-sticky{z-index:102!important}
html[data-bbc-theme] body.compare-body .compare-matrix tbody tr.section-row[data-section] th{position:sticky!important;left:0!important;top:auto!important;z-index:1!important;background:var(--bbc-head)!important;border-color:var(--bbc-line)!important}
html[data-bbc-theme] body.compare-body .compare-matrix tbody tr.metric-row[data-section-body] td{background:var(--bbc-bg)!important;color:var(--bbc-ink)!important;border-color:var(--bbc-line)!important;font-size:14px!important;font-weight:500!important}
html[data-bbc-theme] body.compare-body .compare-matrix tbody tr.metric-row[data-section-body]:nth-child(even) td{background:var(--bbc-panel)!important}
html[data-bbc-theme] body.compare-body .compare-matrix tbody tr.metric-row[data-section-body] th.metric-sticky{z-index:3!important;background:var(--bbc-panel)!important;color:var(--bbc-ink)!important;border-color:var(--bbc-line)!important}
html[data-bbc-theme] body.compare-body .compare-matrix tbody tr.metric-row.metric-selected[data-section-body] :is(td,th.metric-sticky){background:var(--bbc-accent)!important}
html[data-bbc-theme] body.compare-body .compare-matrix :is(.metric-sort,.tank-name-link b,.section-toggle,.section-toggle b){color:var(--bbc-ink)!important;font-size:13px!important}
html[data-bbc-theme] body.compare-body .compare-matrix :is(.tank-name-link small,.tank-module-line>span,.section-toggle small,.section-toggle em){color:var(--bbc-muted)!important}
html[data-bbc-theme] body.compare-body .compare-matrix .tank-module-choice[aria-pressed=true]{background:var(--bbc-accent)!important;color:var(--bbc-ink)!important;border-color:var(--bbc-line)!important}
html[data-bbc-theme] body.compare-body .compare-matrix .remove-tank{background:#e5c7c3!important;color:#68413d!important;border-color:#c9aaa5!important}
@media print{.bbc-theme-picker{display:none!important}html[data-bbc-theme] body.compare-body .compare-matrix thead,html[data-bbc-theme] body.compare-body .compare-matrix thead th{position:static!important}}

/* 018: one vertical sticky layer, only corner cell sticks horizontally. */
@media screen {
html[data-bbc-theme] body.compare-body .compare-matrix thead th{position:relative!important;top:auto!important;z-index:auto!important}
html[data-bbc-theme] body.compare-body .compare-matrix thead th.metric-sticky{position:sticky!important;left:0!important;top:auto!important;z-index:2!important}
html[data-bbc-theme] body.compare-body .compare-matrix tbody tr.section-row[data-section] th{z-index:1!important;top:auto!important}
html[data-bbc-theme] body.compare-body .compare-matrix :is(.tank-head-link img,.remove-tank,.remove-tank:before){filter:none!important;box-shadow:none!important}
html[data-bbc-theme] body.compare-body .compare-matrix .remove-tank:hover{transform:none!important}
html[data-bbc-theme] body.compare-body .compare-table-wrap{scroll-behavior:auto!important;overflow-anchor:none}
}
