/* Empire dashboard (b-empire). Fluid tokens from base.css only (clamp scale, --tap 44px). White text sits on --btn-bg (#C42900) only; #FF3400 is for the line, dot and accents. */
.em-page { display: grid; gap: var(--space-l); }
.em-page > section { min-width: 0; }
.em-scope { flex-wrap: wrap; overflow: visible; }
.em-scope button { flex: none; min-height: var(--tap); display: inline-flex; align-items: center; padding: 0 var(--space-m); border-radius: 99px; border: 1px solid var(--border); background: var(--card); color: var(--text); font: 500 var(--step--1) var(--body); cursor: pointer; }
.em-scope button[aria-pressed="true"] { background: var(--btn-bg); border-color: transparent; color: var(--accent-ink); font-weight: 700; }
.em-scope button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.em-totals { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); }
.em-total .stat-lbl { color: var(--muted); font-size: var(--step--1); }
.em-cov { display: block; margin-top: var(--space-3xs); }
.em-charts { display: grid; gap: var(--space-s); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.em-chart { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-l); padding: var(--space-s) var(--space-m); display: grid; gap: var(--space-2xs); min-width: 0; }
.em-chart-h { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-xs); font-size: var(--step--1); color: var(--muted); }
.em-chart-h strong { color: var(--text); font: 700 var(--step-1) var(--head); font-feature-settings: "tnum" 1; }
.em-svg { width: 100%; height: clamp(5rem, 4.4rem + 2.6vw, 7.5rem); display: block; overflow: visible; }
.em-axis { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.em-line { fill: none; stroke: var(--em-line, var(--accent)); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.em-area { fill: var(--accent-soft); stroke: none; }
.em-dot { fill: var(--em-line, var(--accent)); stroke: var(--card); stroke-width: 2; vector-effect: non-scaling-stroke; }
.em-chart-f { margin: 0; }
.em-brands { display: grid; gap: var(--space-s); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); align-items: start; }
.em-brand { display: grid; gap: var(--space-s); padding: var(--space-m); border-top: var(--space-3xs) solid var(--em-accent, var(--accent)); min-width: 0; }
.em-brand-h { display: flex; align-items: center; gap: var(--space-xs); flex-wrap: wrap; }
.em-logo { display: inline-flex; min-width: 0; max-width: 60%; }
.em-logo .brand-logo { height: var(--logo-height, clamp(1.625rem, 1.4808rem + 0.641vw, 2.25rem)); width: auto; max-width: 100%; }
.em-logo .brand-mark-icon { display: none; }
.em-brand-n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.em-current { margin-left: auto; }
.em-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xs) var(--space-m); margin: 0; }
.em-dl div { display: flex; justify-content: space-between; gap: var(--space-xs); border-bottom: 1px solid var(--border); padding-block: var(--space-3xs); min-width: 0; }
.em-dl dt { color: var(--muted); font-size: var(--step--1); }
.em-dl dd { margin: 0; font-weight: 700; font-feature-settings: "tnum" 1; white-space: nowrap; }
.em-status { display: flex; flex-wrap: wrap; gap: var(--space-2xs); align-items: center; margin: 0; }
.em-status .icon { width: var(--icon-sm, 1rem); height: var(--icon-sm, 1rem); }
.em-pill { display: inline-flex; align-items: center; gap: var(--space-3xs); padding: var(--space-3xs) var(--space-xs); border-radius: 99px; font-weight: 600; }
.em-ok { background: color-mix(in srgb, var(--ok) 8%, transparent); color: var(--ok); } .em-bad { background: color-mix(in srgb, var(--bad) 8%, transparent); color: var(--bad); }
.em-added { margin: 0; line-height: 1.6; }
.em-actions { display: flex; flex-wrap: wrap; gap: var(--space-2xs); align-items: center; }
.em-actions .btn { min-height: var(--tap); }
.em-feed-wrap { overflow-x: auto; }
.em-feed { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.em-feed th, .em-feed td { padding: var(--space-xs) var(--space-s); border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.em-feed th:first-child { text-align: left; }
.em-feed thead th { font-weight: 600; color: var(--muted); vertical-align: bottom; }
.em-sub { display: block; font-weight: 400; font-size: var(--step--2); }
.em-empty { display: grid; justify-items: center; text-align: center; gap: var(--space-2xs); padding: var(--space-l) var(--space-m); }
.em-empty .icon { width: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); height: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); color: var(--muted); }
.em-empty-t { margin: 0; font: 600 var(--step-0) var(--head); }
.em-empty p { margin: 0; max-width: 40ch; }
.em-foot { display: flex; gap: var(--space-2xs); align-items: flex-start; margin: 0; }
.em-foot .icon { flex: none; width: var(--icon-sm, 1rem); height: var(--icon-sm, 1rem); margin-top: var(--space-3xs); }
.em-stale { color: var(--bad); }
@media (max-width: 479px) { .em-dl { grid-template-columns: minmax(0, 1fr); } }
