/* 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}
}

/* 019 — shared design tokens and component states */
html[data-bbc-theme]{--bbc-focus:var(--bbc-ink);--bbc-shadow-color:transparent;--bbc-success:#365b42;--bbc-warning:#79571e;--bbc-danger:#873d3d;--bbc-special:#654d80}
html[data-bbc-theme] body :is(.tt-shell,.tank-card-page,.tank-list,.tier-content,.class-tanks){background:var(--bbc-bg)!important;color:var(--bbc-ink)!important;scrollbar-color:var(--bbc-accent) var(--bbc-bg)!important}
html[data-bbc-theme] body :is(.tt-topbar,.wot-global-nav,.wot-nav-menu,.filter-dock,.selection-bar,.nation-tree,.tier-branch,.tree-tools,.tank-card-section,.tc-panel,.tank-component,.tank-module,.data-field,.data-subgroup,.ammo-slot,.tank-module-picker){background:var(--bbc-panel)!important;color:var(--bbc-ink)!important;border-color:var(--bbc-line)!important;box-shadow:none!important}
html[data-bbc-theme] body :is(.nation-tree>summary,.tier-branch>summary,.class-branch-head,table thead th){background:var(--bbc-head)!important;color:var(--bbc-ink)!important;border-color:var(--bbc-line)!important}
html[data-bbc-theme] body :is(.tank-row,.filter-chip,.nation-filter,.small-control,.text-button,.clear-filter,.wot-nav-toggle,.ba-tab,.button,.google-login){background:var(--bbc-panel)!important;color:var(--bbc-ink)!important;border-color:var(--bbc-line)!important;box-shadow:none!important}
html[data-bbc-theme] body :is(.tank-row:hover,.tank-row.is-selected,.filter-chip.active,.nation-filter.active,.compare-launch,.nation-all,.ba-tab.active,.wot-nav-menu a:hover,.wot-nav-menu a[aria-current=page],button:hover,.button:hover,.google-login:hover){background:var(--bbc-accent)!important;color:var(--bbc-ink)!important;border-color:var(--bbc-focus)!important}
html[data-bbc-theme] body .tank-row.is-selected{box-shadow:inset 3px 0 var(--bbc-focus)!important}
html[data-bbc-theme] body :is(.tank-info b,.nation-name,.tier-branch-label,.brand-mini b,.selection-bar b,.tree-chevron,.branch-chevron){color:var(--bbc-ink)!important}
html[data-bbc-theme] body :is(.tank-info small,.nation-count,.tier-branch-count,.tree-hint,.filter-label,.tt-footer,.wot-nav-status){color:var(--bbc-muted)!important}
html[data-bbc-theme] body .tank-type{background:var(--bbc-head)!important;border-color:currentColor!important}
html[data-bbc-theme] body .tank-type.type-tech{color:var(--bbc-success)!important}
html[data-bbc-theme] body .tank-type.type-premium{color:var(--bbc-warning)!important}
html[data-bbc-theme] body .tank-type.type-special{color:var(--bbc-special)!important}
html[data-bbc-theme] body .tank-type.type-unverified{color:var(--bbc-warning)!important}
html[data-bbc-theme] body :focus-visible{outline:2px solid var(--bbc-focus)!important;outline-offset:2px}
html[data-bbc-theme] body input[type=checkbox]{accent-color:var(--bbc-focus)!important}
html[data-bbc-theme] body.authenticated .wrap{max-width:1180px;background:transparent!important;padding:24px clamp(16px,4vw,48px)}
html[data-bbc-theme] body.authenticated main.wrap>header{position:relative;display:grid;grid-template-columns:110px 1fr;align-items:center;text-align:left;column-gap:24px;padding:24px 30px;border:1px solid var(--bbc-line);border-radius:24px}
body.authenticated header .logo{grid-row:1/4;width:110px;height:110px}body.authenticated header h1{align-self:end;font-size:clamp(23px,3vw,36px);letter-spacing:.06em}body.authenticated header p{margin:5px 0 10px}body.authenticated header .bbc-theme-picker{justify-self:start;padding:0}
body.authenticated nav{font-size:13px;border-color:var(--bbc-line);margin-bottom:30px;align-items:center}body.authenticated nav a{font-weight:600}
.dashboard-heading{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:0 0 20px}.dashboard-heading h2{font-size:28px;letter-spacing:-.04em;margin:5px 0}.dashboard-heading p{margin:0;color:var(--bbc-muted)}.dashboard-kicker,.module-count{font-size:11px;letter-spacing:.12em;color:var(--bbc-muted)}
body.authenticated .cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px}html[data-bbc-theme] body.authenticated .card{padding:24px;min-height:200px;border-radius:20px;display:flex;flex-direction:column;gap:10px;border:1px solid var(--bbc-line)!important;transition:background .15s,border-color .15s}html[data-bbc-theme] body.authenticated .card:hover{background:var(--bbc-head)!important;border-color:var(--bbc-focus)!important}.module-symbol{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:var(--bbc-accent);font-size:25px}.module-open{display:flex;justify-content:space-between;margin-top:auto;padding-top:16px;font-size:13px;font-weight:600}.card strong{font-size:21px}.card small{font-size:14px;line-height:1.5}
@media(max-width:520px){html[data-bbc-theme] body.authenticated main.wrap>header{grid-template-columns:72px 1fr;padding:16px;gap:8px}body.authenticated header .logo{width:72px;height:72px}.dashboard-heading{align-items:start;flex-direction:column}}
