/* Game-module compatibility and readable semantic colors. Shared layout lives in editorial.css. */
/* Building summaries must stay readable in both themes and on small screens. */
html[data-theme] body.compass-app .building-total-strip {
  gap: 18px 24px; padding: 0; margin-block: 24px;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
html[data-theme] body.compass-app .building-total-strip > div {
  min-width: 0; padding: 12px 0 16px; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; background: transparent;
}
html[data-theme] body.compass-app .building-total-strip strong {
  color: var(--ink); font-size: clamp(18px, 2.2vw, 24px); line-height: 1.4;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
html[data-theme] body.compass-app :is(.building-total-strip small, .building-level-stats small, .building-level-head > span, .building-level-upgrade small, .building-catalog-search > span) {
  color: var(--muted); font-size: 12px; line-height: 1.5; font-weight: 650; letter-spacing: .02em;
}
html[data-theme] body.compass-app :is(.building-total-strip p, .building-detail-copy p, .building-source-note) {
  color: var(--muted); font-size: 14px; line-height: 1.65;
}
html[data-theme] body.compass-app .building-total-strip p { grid-column: 1 / -1; margin: 0; }
html[data-theme] body.compass-app .building-level-stats strong { font-size: 17px; line-height: 1.4; }
html[data-theme] body.compass-app .building-level-upgrade :is(strong, span) { color: var(--ink); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
html[data-theme] body.compass-app .building-level-upgrade { background: var(--surface-2); border-color: var(--line); }
html[data-theme] body.compass-app .building-traits span { font-size: 12px; line-height: 1.4; }
html[data-theme] body.compass-app :is(.building-detail-max span, .building-detail-max small) { font-size: 12px; line-height: 1.5; }
html[data-theme] body.compass-app .building-detail-max strong { font-size: 24px; line-height: 1.3; }
html[data-theme] body.compass-app :is(.building-level-art > span, .building-level-head > b) { color: var(--accent); background: var(--accent-soft); border-color: var(--line); font-size: 12px; line-height: 1.5; }
@media (max-width: 640px) {
  html[data-theme] body.compass-app .building-total-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
}

/* Legacy game modules use the shared palette in both themes. */
html[data-theme] body.compass-app :is(.empty,.eyebrow,.item-group-kicker,.db-kicker,.home-subtitle,.achievement p,.achievement .unit-note,.cl-admin-kicker,.cl-admin-head p,.calculator-head p,.control-group label,.tool-advanced label,.explore-form label>span,.ab-profile-bar form>label>span) { color:var(--muted)!important; }
html[data-theme] body.compass-app :is(.player-refresh button,.ranking-card form button,.kind-switch button,.fav-toggle-btn,.ab-tag-field button,.ab-capacities b,.ab-add-section) { color:var(--ink)!important; background:var(--surface)!important; border-color:var(--line)!important; }
html[data-theme] body.compass-app :is(.kind-switch button.active,.ab-tag-field button.active) { color:var(--on-accent)!important; background:var(--accent)!important; }
html[data-theme] body.compass-app :is(td a,.error a) { color:var(--accent)!important; }

/* Saved players appear in the editorial home as well as search cards. */
html[data-theme] body.compass-app .home-favorites-section {
  color:var(--ink)!important; background:var(--surface)!important; border-color:var(--line)!important;
}
html[data-theme] body.compass-app .fav-header { gap:12px; flex-wrap:wrap; }
html[data-theme] body.compass-app .fav-title { color:var(--ink)!important; font-size:14px; }
html[data-theme] body.compass-app :is(.fav-count,.fav-chip-info small) { color:var(--muted)!important; font-size:14px; line-height:1.5; }
html[data-theme] body.compass-app .fav-chip {
  max-width:100%; min-width:0; align-items:stretch; color:var(--ink)!important; background:var(--surface-2)!important; border-color:var(--line)!important; box-shadow:none!important;
}
html[data-theme] body.compass-app .fav-chip:hover { background:var(--accent-soft)!important; border-color:var(--accent)!important; }
html[data-theme] body.compass-app .fav-chip-link { min-width:0; min-height:44px; color:var(--ink)!important; }
html[data-theme] body.compass-app .fav-chip-info { min-width:0; overflow-wrap:anywhere; }
html[data-theme] body.compass-app .fav-chip-info strong { color:var(--ink)!important; font-size:14px; line-height:1.4; }
html[data-theme] body.compass-app .fav-chip-star { color:var(--accent)!important; }
html[data-theme] body.compass-app .fav-chip-remove {
  flex:none; min-width:44px; min-height:44px; color:var(--muted)!important; background:transparent!important; border-inline-start-color:var(--line)!important; font-size:14px;
}
html[data-theme] body.compass-app .fav-chip-remove:hover { color:var(--bad)!important; background:color-mix(in srgb,var(--bad) 12%,var(--surface-2))!important; }
html[data-theme] body.compass-app .fav-toggle-btn:is(:hover,.is-fav) { color:var(--accent)!important; background:var(--accent-soft)!important; border-color:var(--accent)!important; }
@media(max-width:767px) {
  html[data-theme] body.compass-app .language-control:focus-within { outline:2px solid var(--accent); outline-offset:3px; border-radius:8px; }
}

/* Equipment descriptions, upgrade plans and comparison tables. */
html[data-theme] body.compass-app :is(.eq-page-banner,.eq-upgrade-plan,.eq-ore-card,.eq-player-status-card,.eq-target-result,.eq-synergy-callout,.eq-matchup-formula,.eq-matchup-mode-note,.eq-table-verification,.eq-combo-explainer,.eq-target-ore,.eq-catalog-card,.eq-sibling-chip) {
  color:var(--ink)!important; background:var(--surface)!important; border-color:var(--line)!important; box-shadow:none!important;
}
html[data-theme] body.compass-app :is(.eq-page-banner,.eq-upgrade-plan,.eq-synergy-callout) { border:0!important; border-block:1px solid var(--line)!important; border-radius:0!important; padding:20px 0; }
html[data-theme] body.compass-app :is(.eq-page-banner,.eq-upgrade-plan,.eq-synergy-callout) :is(h1,h2,h3,strong) { color:var(--ink)!important; }
html[data-theme] body.compass-app :is(.eq-banner-hero-tag,.eq-banner-orig-name,.eq-banner-progress-copy,.eq-plan-copy p,.eq-matchup-head p,.eq-matchup-summary span,.eq-matchup-summary small,.eq-matchup-formula span,.eq-matchup-mode-note,.eq-matchup-mode-note span,.eq-matchup-caveat,.eq-data-note,.eq-table-verification,.eq-combo-explainer span,.eq-synergy-callout p,.eq-ore-body span,.eq-ore-body small,.eq-target-ore small,.eq-catalog-sub,.eq-catalog-meta,.eq-catalog-count) { color:var(--muted)!important; }
html[data-theme] body.compass-app :is(.eq-matchup-head p strong,.eq-matchup-summary strong,.eq-matchup-mode-note strong,.eq-combo-explainer strong,.eq-matchup-formula strong,.eq-ore-body strong,.eq-min-level,.eq-target-ore strong) { color:var(--ink)!important; }
html[data-theme] body.compass-app :is(.eq-guide-kicker,.eq-catalog-rarity,.eq-data-note a) { color:var(--accent)!important; }
html[data-theme] body.compass-app :is(.eq-matchup-summary span,.eq-matchup-table-wrap,.eq-matchup-table,.eq-matchup-table tbody,.eq-levels-table,.eq-levels-table tbody) { background:var(--surface)!important; color:var(--ink)!important; border-color:var(--line)!important; }
html[data-theme] body.compass-app :is(.eq-matchup-table,.eq-levels-table) td { color:var(--ink)!important; background:transparent!important; }
html[data-theme] body.compass-app .eq-matchup-table td strong { color:var(--ink)!important; }
html[data-theme] body.compass-app .eq-matchup-table td small { color:var(--muted)!important; }
html[data-theme] body.compass-app :is(.eq-badge-type,.eq-badge-max,.eq-badge-th,.eq-tag-b,.eq-tag-th,.eq-badge-rarity,.eq-catalog-guide) { color:var(--ink)!important; background:var(--surface-2)!important; border-color:var(--line)!important; }

/* Catalog notes, army actions and composition labels. */
html[data-theme] body.compass-app :is(.building-catalog-scope strong,.building-catalog-copy span,.building-catalog-scope span,.base-layout-stats,.base-layout-more small,.base-layout-more button span,.ab-detail-guide,.ab-preview-none,.ab-library-empty,.ab-card-detail,.ab-hall-mark span,.ab-preview-group header strong,.ab-drafts summary) { color:var(--muted)!important; }
html[data-theme] body.compass-app .building-catalog-card>strong { color:var(--accent)!important; }
html[data-theme] body.compass-app :is(.ab-detail-tags span,.ab-unit-image i) { color:var(--ink)!important; background:var(--surface-2)!important; border-color:var(--line)!important; }
html[data-theme] body.compass-app .ab-open-game { color:var(--on-accent)!important; background:var(--accent)!important; border-color:var(--accent)!important; }
html[data-theme] body.compass-app .ab-game-link.disabled { color:var(--muted)!important; background:var(--surface-2)!important; }

/* Development planners and second-builder requirements. */
html[data-theme] body.compass-app .ltm-nav a { color:var(--muted)!important; background:transparent!important; border-color:var(--line)!important; }
html[data-theme] body.compass-app .ltm-nav a.active { color:var(--ink)!important; background:var(--accent-soft)!important; border-color:var(--accent)!important; }
html[data-theme] body.compass-app :is(.ltm-detail-list,.ltm-upgrade-item,.ltm-level-breakdown,.ltm-level-breakdown>div) { color:var(--ink)!important; background:var(--surface)!important; border-color:var(--line)!important; }
html[data-theme] body.compass-app :is(.ltm-detail-list p,.ltm-upgrade-item small,.ltm-level-breakdown p) { color:var(--muted)!important; }
html[data-theme] body.compass-app :is(.ltm-upgrade-item summary>span,.ltm-level-breakdown>div>span,.ltm-resource-totals strong) { color:var(--ink)!important; }
html[data-theme] body.compass-app :is(.second-hero,.second-next,.second-card,.second-controls label,.second-data-note,.calc-summary-banner,.calc-card) { color:var(--ink)!important; background:var(--surface)!important; border-color:var(--line)!important; box-shadow:none!important; }
html[data-theme] body.compass-app :is(.second-hero p,.second-hero .eyebrow,.second-summary span,.second-storage-heading p,.second-storage-note,.second-panel-body p,.second-table td small,.calc-card-body span,.calc-card-body small,.calculator-th-badge span) { color:var(--muted)!important; }
html[data-theme] body.compass-app :is(.second-storage-fields label,.second-panel>summary,.calc-card-body strong) { color:var(--ink)!important; }
html[data-theme] body.compass-app .calc-summary-banner { padding:20px; }
html[data-theme] body.compass-app :is(.vt-profile-band,.vt-profile-kpis,.vt-resource-ribbon,.vt-overview-item) { background:var(--surface)!important; border-color:var(--line)!important; }
html[data-theme] body.compass-app :is(.vt-profile-kpis small,.vt-resource-ribbon small,.vt-overview-item small,.vt-resource-ribbon strong span) { color:var(--muted)!important; }
html[data-theme] body.compass-app :is(.vt-profile-links a,.vt-tabs button,.vt-townhall-mark) { color:var(--ink)!important; background:var(--surface-2)!important; border-color:var(--line)!important; }
html[data-theme] body.compass-app :is(.zq-detail-body label,.zq-target>span,.zq-best span,.zq-best strong) { color:var(--ink)!important; }
html[data-theme] body.compass-app :is(.zq-target>span,.zq-best) { background:var(--surface-2)!important; }

/* Numeric progress labels need a stable surface instead of colored fill beneath them. */
html[data-theme] body.compass-app .cs-research-progress>span { color:var(--ink)!important; background:var(--surface)!important; padding:2px 8px; border-radius:4px; }
html[data-theme] body.compass-app :is(.cs-research-level,.cs-village-heading b,.cs-village-heading small,.ic-badge-normal) { color:var(--ink)!important; background:var(--surface-2)!important; border-color:var(--line)!important; }

/* CWL public and authenticated screens use the same legible status labels. */
html[data-theme] body.compass-app :is(.cwl-raffle-hero,.cwl-raffle-machine) { background:var(--surface)!important; color:var(--ink)!important; border-color:var(--line)!important; box-shadow:none!important; }
html[data-theme] body.compass-app :is(.cwl-public-wait small,.cwl-raffle-kicker) { color:var(--muted)!important; }
html[data-theme] body.compass-league :is(.public-move.arrived,.member-th,.member-recent-ranks) { color:var(--ink)!important; background:var(--surface-2)!important; border-color:var(--line)!important; }

html[data-theme] body.compass-app :is(.cwl-raffle-copy p,.cwl-raffle-machine p,.second-next>div>span,.second-card p,.calc-banner-info p) { color:var(--muted)!important; }
html[data-theme] body.compass-app :is(.cwl-raffle-meta span,.cwl-public-wait,.second-summary,.calculator-th-badge,.eq-target-buttons button) { color:var(--ink)!important; background:var(--surface-2)!important; border-color:var(--line)!important; }
html[data-theme] body.compass-app .second-next li { color:var(--ink)!important; }
html[data-theme] body.compass-app .vt-resource-ribbon strong { color:var(--ink)!important; }
@media(max-width:767px) {
  html[data-theme] body.compass-app :is(.espor-table td>span,.ab-army-admin article header>div>span,.ab-army-admin .ab-preview-unit>i,.member-cell a>span) { font-size:14px!important; line-height:1.5; }
  html[data-theme] body.compass-app .ab-copy-detail .ab-preview-unit>small,
  html[data-theme] body.compass-app .ab-copy-detail .ab-preview-hero-name strong { font-size:14px!important; line-height:1.4; height:auto; min-height:34px; }
  html[data-theme] body.compass-app .ab-copy-detail .ab-preview-unit { height:auto; min-height:84px; }
}

/* Mobile metadata, control labels and footnotes stay at least 12px. */
@media(max-width:767px) {
  html[data-theme] body:is(.compass-app,.compass-league) :is(
    a.building-catalog-card.building-catalog-card-all > div.building-catalog-copy > p,
    a.building-catalog-card.building-catalog-card-all > div.building-catalog-copy > span,
    a.eq-catalog-card > div.eq-catalog-info > span.eq-catalog-guide,
    a.eq-catalog-card > div.eq-catalog-info > span.eq-catalog-meta,
    a.eq-catalog-card > div.eq-catalog-info > span.eq-catalog-rarity,
    a.eq-catalog-card > div.eq-catalog-info > span.eq-catalog-sub,
    article > div.ab-detail-tags > span,
    article.achievement > div.achievement-top > h3,
    article.base-layout-card > a.base-layout-image > span.base-level-badge,
    article.base-layout-card > div.base-layout-info > a.base-copy-link,
    article.base-layout-card > div.base-layout-info > a.base-view-link,
    article.base-layout-card > div.base-layout-info > button.base-favorite,
    article.building-level-card > a.building-level-arrow > span,
    article.building-level-card > a.building-level-arrow > strong,
    article.ltm-catch-row > div.ltm-bar > b,
    article.member-card > div.member-meta > span.member-clans,
    article.member-card > div.member-meta > span.member-ranks,
    article.member-card > div.member-meta > span.member-recent-ranks,
    article.member-card > div.member-meta > span.member-trophies,
    article.member-card > div.member-meta > span.transfer-status,
    article.ranking-card > form > button,
    article.second-card > div.second-card-head > span.second-status.done,
    article.second-card > div.second-card-head > span.second-status.pending,
    article.second-card > div.second-card-head > span.second-status.unknown,
    article.vt-overview-item > div > span,
    aside.eq-synergy-callout > div > span.eq-guide-kicker,
    aside.eq-synergy-callout > p > strong,
    aside.zq-results.zq-card > div.zq-best > span,
    button > span > small,
    div > div.ab-detail-tags > span,
    div > div.ab-detail-tags > span.ab-meta-badge,
    div > nav.vt-profile-links > a,
    div > span > label.zq-check,
    div > span > small,
    div > span > span.ltm-money.elixir,
    div#calc-controls-panel > div.control-group > label,
    div#tab-content > section.section > div.note,
    div.ab-admin-filters > label > span,
    div.ab-admin-filters > label.ab-admin-search > span,
    div.ab-build-preview > section.ab-preview-section > p.ab-preview-none,
    div.ab-capacities > b > small,
    div.ab-card-heading > div.ab-hall-mark > span,
    div.ab-card-title > div.ab-detail-tags > span,
    div.ab-card-title > div.ab-detail-tags > span.ab-meta-badge,
    div.ab-catalog-filters > label > span,
    div.ab-catalog-filters > label.ab-search-field > span,
    div.ab-content-filters > label.ab-content-castle > span,
    div.ab-content-filters > label.ab-content-minimum > span,
    div.ab-content-filters > label.ab-content-picker > span,
    div.ab-library-switches > label > span,
    div.ab-page > section.ab-actions > a,
    div.ab-page > section.ab-saved > p,
    div.ab-page > section.ab-section.ab-siege-selection > p.ab-help,
    div.ab-page.ab-army-detail > footer.ab-detail-footer > button,
    div.ab-page.ab-library > form.ab-library-profile > button,
    div.ab-preview-group > header > span,
    div.ab-preview-group > header > strong,
    div.ab-preview-units > span.ab-preview-unit > b,
    div.ab-preview-units > span.ab-preview-unit.active-siege > b,
    div.ab-tag-field > div > button,
    div.ab-tag-field > span > small,
    div.achievement-list > article.achievement > div.achievement-value,
    div.achievement-list > article.achievement > div.unit-note,
    div.achievement-list > article.achievement > p,
    div.base-filter-row > label > span,
    div.base-layout-info > div.base-layout-stats > span,
    div.base-layout-info > div.base-layout-tags > span,
    div.base-layout-info > h3 > a,
    div.base-layout-more > button > span,
    div.base-layout-page > div.base-layout-more > button,
    div.base-layout-page > div.base-layout-more > small,
    div.base-layout-page > nav.base-level-nav > a,
    div.base-layout-toolbar > div.base-kind-switch > button,
    div.base-layout-toolbar > div.base-sort-switch > button,
    div.building-catalog-copy > div > b,
    div.building-catalog-grid.building-catalog-grid-all > a.building-catalog-card.building-catalog-card-all > strong,
    div.building-catalog-toolbar > div.building-filter-chips > button,
    div.building-detail-page > div.building-back-row > a,
    div.calc-card > div.calc-card-body > small,
    div.calc-card > div.calc-card-body > span,
    div.calculator-head > div > span.item-group-kicker,
    div.calculator-head > div.calculator-th-badge > span,
    div.cl-admin-head > div > span.cl-admin-kicker,
    div.cl-admin-view > div.cl-admin-head > a,
    div.column-head > div.column-head-actions > button.lock-bulk-button,
    div.column-head > div.column-head-actions > button.strength-button,
    div.column-head > div.column-head-actions > span.column-count,
    div.column-title > div > small,
    div.cwl-raffle-machine > div.cwl-public-wait > small,
    div.cwl-raffle-machine > div.cwl-public-wait > strong,
    div.db-section-heading > div > span.db-kicker,
    div.entity-head > div.entity-head-actions > a.village-tracker-link,
    div.entity-head > div.entity-title > div.entity-meta,
    div.entity-head-actions > div.entity-score > span,
    div.entity-head-actions > div.player-refresh > button,
    div.entity-head-actions > div.player-refresh > small,
    div.entity-page > div.eyebrow,
    div.entity-page > div.note.player-json-notice,
    div.entity-page > div.note.player-json-notice > a,
    div.entity-page > div.note.player-json-notice > p,
    div.entity-page > div.note.player-json-notice > strong,
    div.entity-page > nav.entity-nav > a,
    div.entity-page.compare-page > div.eyebrow,
    div.entity-page.cwl-bonus-page > nav.entity-nav > a,
    div.entity-page.tool-page > div.eyebrow,
    div.entity-title > h1 > button.fav-toggle-btn,
    div.eq-banner-info > div.eq-banner-badges > span.eq-badge-max,
    div.eq-banner-info > div.eq-banner-badges > span.eq-badge-rarity,
    div.eq-banner-info > div.eq-banner-badges > span.eq-badge-th,
    div.eq-banner-info > div.eq-banner-badges > span.eq-badge-type,
    div.eq-banner-info > div.eq-banner-hero-tag > span,
    div.eq-banner-main > div.eq-banner-info > span.eq-guide-kicker,
    div.eq-combo-explainer > span > strong,
    div.eq-detail-page > div.eq-back-nav > a.eq-back-btn,
    div.eq-detail-page > div.eq-back-nav > a.eq-catalog-link,
    div.eq-detail-page > section.section.eq-desc-section > h3.eq-max-cost-title,
    div.eq-detail-page > section.section.eq-matchup-section > p.eq-data-note,
    div.eq-detail-page > section.section.eq-matchup-section > p.eq-matchup-caveat,
    div.eq-detail-page > section.section.eq-table-section > p.eq-table-verification,
    div.eq-detail-page > section.section.eq-table-section > p.eq-table-verification.verified,
    div.eq-matchup-head > div > p,
    div.eq-matchup-head > div > span.eq-guide-kicker,
    div.eq-matchup-head > div.eq-matchup-formula > span,
    div.eq-matchup-summary > span > small,
    div.eq-ore-card.card-blacksmith > div.eq-ore-body > small,
    div.eq-ore-card.card-blacksmith > div.eq-ore-body > span,
    div.eq-ore-card.card-glowy > div.eq-ore-body > small,
    div.eq-ore-card.card-glowy > div.eq-ore-body > span,
    div.eq-ore-card.card-shiny > div.eq-ore-body > small,
    div.eq-ore-card.card-shiny > div.eq-ore-body > span,
    div.eq-ore-card.card-starry > div.eq-ore-body > small,
    div.eq-ore-card.card-starry > div.eq-ore-body > span,
    div.eq-siblings-grid > a.eq-sibling-chip > span,
    div.eq-target-ore.glowy > div > small,
    div.eq-target-ore.shiny > div > small,
    div.eq-target-ore.starry > div > small,
    div.eq-upgrade-plan > div.eq-plan-copy > p,
    div.eq-upgrade-plan > div.eq-plan-copy > span.eq-guide-kicker,
    div.espor-page > p.espor-updated,
    div.explore-layout > aside.explore-menu > button,
    div.ic-grid > div.ic-unit > span.ic-badge-normal,
    div.league-hero > div > p.league-kicker,
    div.league-hero > div > p.league-subtitle,
    div.league-hero > div.league-toolbar > button.league-button,
    div.league-hero > div.league-toolbar > button.league-button.secondary,
    div.league-hero > div.league-toolbar > label.league-field,
    div.league-toolbar > form.add-clan-form > button.league-button.secondary,
    div.league-toolbar > form.add-clan-form > label.league-field,
    div.ltm-body > section.ltm-card.ltm-profile > label,
    div.ltm-body > section.ltm-card.ltm-profile > label.ltm-builders,
    div.ltm-chart-row > div.ltm-bar > b,
    div.ltm-compare-inputs > fieldset > label,
    div.ltm-filters > div > small,
    div.ltm-identity > div > small,
    div.ltm-level-breakdown > div > span,
    div.ltm-resource-totals > div > small,
    div.member-main > div.member-badges > span.lineup-badge,
    div.member-main > div.member-badges > span.member-th,
    div.member-main > div.member-name > span,
    div.note.player-json-notice > p > a,
    div.rankings-grid > article.ranking-card > p,
    div.second-grid > article.second-card > p,
    div.second-panel-body.second-controls > label > small,
    div.section-head > div > p,
    div.section-head > div > span.db-kicker,
    div.section-head > div > span.eq-guide-kicker,
    div.section-head > div > span.item-group-kicker,
    div.section-head > div.section-actions > a.small-button.primary,
    div.stat-grid > div.stat > small,
    div.stat-grid > div.stat > span,
    div.vt-overview-grid > article.vt-overview-item > small,
    div.vt-overview-toolbar > div.vt-category-tabs > button,
    div.vt-profile-identity > div > p,
    div.vt-profile-kpis > div > small,
    div.vt-profile-kpis > div > span,
    div.zq-target > div > small,
    fieldset > label > small,
    form > div.ab-profile-hint > small,
    form > label > span,
    form#home-search > label.home-tag-field > span,
    form.ab-library-profile > label > span,
    form.explore-form > label > span,
    form.ltm-card.ltm-compare-form > div.ltm-compare-settings > label,
    form.tool-form > div.json-copy-guide > span,
    h2.cs-village-heading > span > b,
    header > div > small,
    header > div.ab-library-actions > a.ab-card-detail,
    header > div.ab-library-actions > a.ab-open-game,
    header > div.ab-library-actions > button,
    header > div.ab-library-actions > button.ab-favorite-button,
    header > div.ab-library-actions > button.ab-meta-toggle,
    header > div.ltm-costs > small,
    header.ab-section-head > div.ab-capacities > b,
    header.ab-top > div > span,
    header.ab-top > div.ab-top-actions > a.ab-library-link,
    header.ab-top > div.ab-top-actions > a.ab-open-game,
    header.ab-top > div.ab-top-actions > button,
    header.ab-top > div.ab-top-actions > button.ab-favorite-button,
    header.ab-top > div.ab-top-actions > button.ab-import,
    header.second-hero > div > span.eyebrow,
    header.second-hero > div.second-summary > small,
    header.second-hero > div.second-summary > span,
    label > div > button,
    li > div > small,
    main#league-app > div.league-status.success,
    main#league-app > div.league-summary > span.summary-chip,
    main#league-app > p.league-note,
    ol.second-steps > li.second-step > span,
    section.ab-actions > div > a.ab-game-link.disabled,
    section.ab-actions > div > button,
    section.ab-actions > div > button.ab-create,
    section.ab-basics > div.ab-tag-field > button,
    section.ab-basics > div.ab-tag-field > span,
    section.ab-basics > div.ab-th-field > span,
    section.ab-basics > label.ab-name-field > span,
    section.ab-preview-section > header > h3,
    section.ab-saved > header > button,
    section.building-catalog-hero.building-catalog-hero-all > div > span.db-kicker,
    section.building-catalog-hero.building-catalog-hero-all > div.building-catalog-scope > span,
    section.building-catalog-hero.building-catalog-hero-all > div.building-catalog-scope > strong,
    section.building-category-section > div.db-section-heading > p,
    section.building-detail-hero > div.building-detail-copy > span.db-kicker,
    section.building-levels-section > div.db-section-heading > p,
    section.cwl-raffle-hero > div.cwl-raffle-machine > p,
    section.league-column.admin-unassigned > div.column-members > div.column-empty,
    section.ltm-card.ltm-totals > div.ltm-total-time > small,
    section.ltm-catch > div.ltm-catch-toolbar > label,
    section.second-next > div > span,
    section.section > div.filters > button.filter-button,
    section.section > div.labels > span.label,
    section.section > div.raw-toolbar > button.small-button,
    section.section.eq-catalog-hero-group > div.eq-catalog-hero-head > span.eq-catalog-count,
    section.section.eq-matchup-section > aside.eq-synergy-callout > p,
    section.section.eq-matchup-section > div.eq-combo-explainer > span,
    section.section.eq-matchup-section > div.eq-matchup-mode-note > span,
    section.section.eq-matchup-section > div.eq-matchup-mode-note > strong,
    section.section.eq-matchup-section > div.eq-matchup-summary > span,
    section.section.eq-matchup-section > p.eq-data-note > a,
    section.vt-resource-ribbon > div > small,
    summary > span > small,
    summary > span > span.ltm-money.elixir,
    summary > span.ltm-costs > span.ltm-money.elixir,
    thead > tr > th,
    thead > tr > th.number,
    tr > td > small,
    tr > td > span.eq-tag-b,
    tr > td > span.eq-tag-th,
    tr > td.lb-player > span,
    tr > td.number > span.badge.badge-needed
  ) { font-size:14px!important; line-height:1.5; }
  html[data-theme] body.compass-app :is(.achievement p,.building-catalog-copy p,.second-card p,.eq-matchup-head p,.eq-matchup-caveat,.eq-data-note,.eq-table-verification) { font-size:14px!important; }
}

html[data-theme] body.compass-app :is(.cwl-public-wait strong,.second-summary strong,.calculator-th-badge strong) { color:var(--ink)!important; }
html[data-theme] body.compass-app :is(.second-summary small,.second-controls label small,.cl-stat-num small,.cl-admin-table td small,.cl-admin-tag,.cl-admin-edit label span) { color:var(--muted)!important; }
html[data-theme] body.compass-app .second-step { background:var(--surface)!important; border-color:var(--line)!important; }
html[data-theme] body.compass-app :is(.cl-seg-btn.active,.cl-admin-edit button) { background:var(--accent)!important; color:var(--on-accent)!important; }
@media(max-width:767px) {
 html[data-theme] body.compass-app :is(.cl-pill-lvl,.cl-tag,.cl-league,.cl-link-action,.cl-stat-lbl,.cl-stat-num small,.cl-count-tag,.cl-seg-btn,.cl-td-rank,.cl-p-name,.cl-p-tag,.cl-don span,.cl-trophy,.cl-admin-tag,.cl-admin-edit button,.espor-table-wrap td>span,.table-wrap td a>span) { font-size:14px!important; line-height:1.5; }
}
html[data-theme] body.compass-app .ab-recommend :is(.ab-recommend-score,.ab-recommend-status,.ab-recommend-note) { color:var(--muted)!important; }
@media(max-width:767px) {
 html[data-theme] body.compass-app .ab-recommend :is(label>span,.ab-recommend-score,.ab-recommend-status,.ab-recommend-context span,.ab-recommend-note,small,summary) { font-size:14px!important; line-height:1.5; }
}

@media(max-width:767px) { html[data-theme] body.compass-app :is(.espor-levels td>span,.name-cell a>span) { font-size:14px!important; line-height:1.5; } }

@media(max-width:767px) {
 html[data-theme] body.compass-app .compass-tabs { width:100vw; max-width:100vw; inset-inline-end:auto; }
}
@media(max-width:480px) {
 html[data-theme] body.compass-app .cl-topbar { flex-wrap:wrap; gap:12px; }
 html[data-theme] body.compass-app .cl-topbar-actions { flex:1 1 100%; flex-wrap:wrap; }
}

@media(max-width:767px) { html[data-theme] body.compass-app { min-width:0; } }
