/* Base compartilhada pelas páginas Eleitos e Deputados (a principal tem os mesmos tokens inline) */
:root {
  color-scheme: light;
  --bg: #f4f3f0; --surface: #fcfcfb; --surface-2: #f0efec; --border: #e2e0db;
  --text: #0b0b0b; --text-2: #52514e; --text-3: #7a7974;
  --bar: #2a78d6; --ok: #008300; --warn: #b26b00; --crit: #c42b2b;
  --ok-bg: #e5f3e5; --warn-bg: #fdf1dc; --crit-bg: #fbe6e6; --info-bg: #e8f1fc;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --bg: #121211; --surface: #1a1a19; --surface-2: #232321; --border: #33332f;
    --text: #ffffff; --text-2: #c3c2b7; --text-3: #8f8e86;
    --bar: #3987e5; --ok: #4cbb4c; --warn: #e0a030; --crit: #e66767;
    --ok-bg: #16301a; --warn-bg: #352812; --crit-bg: #3a1a1a; --info-bg: #15263b;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121211; --surface: #1a1a19; --surface-2: #232321; --border: #33332f;
  --text: #ffffff; --text-2: #c3c2b7; --text-3: #8f8e86;
  --bar: #3987e5; --ok: #4cbb4c; --warn: #e0a030; --crit: #e66767;
  --ok-bg: #16301a; --warn-bg: #352812; --crit-bg: #3a1a1a; --info-bg: #15263b;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; }
header { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--border); padding: 5px 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-height: 32px; }
header h1 { font-size: 14px; margin: 0; font-weight: 650; }
.badge { font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); }
.badge.demo { background: var(--warn-bg); color: var(--warn); }
.badge.live { background: var(--ok-bg); color: var(--ok); }
.meta { color: var(--text-2); font-size: 11px; margin-left: auto; text-align: right; }
.erros { color: var(--crit); font-size: 12px; }
.toggle { font: inherit; font-size: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 8px; padding: 2px 7px; cursor: pointer; }
nav.abas { display: flex; gap: 2px; background: var(--surface-2); border-radius: 8px; padding: 2px; }
nav.abas a { font-size: 12px; font-weight: 600; color: var(--text-2); text-decoration: none; padding: 3px 10px; border-radius: 6px; }
nav.abas a.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.wrap { max-width: 1700px; margin: 0 auto; padding: 14px 20px 40px; }
@media (max-width: 600px) { .wrap, header { padding-left: 16px; padding-right: 16px; } }
.sec-t { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin: 16px 0 8px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; min-width: 0; }
.foto { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--text-2); overflow: hidden; flex: none; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.tag { font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.tag.oficial { background: var(--ok-bg); color: var(--ok); }
.tag.mat { background: var(--ok-bg); color: var(--ok); border: 1px dashed var(--ok); }
.tag.t2 { background: var(--warn-bg); color: var(--warn); }
.tag.lid { background: var(--surface-2); color: var(--text-2); }
.tag.prov { background: var(--info-bg); color: var(--bar); }
.vazio { color: var(--text-3); font-size: 12px; padding: 16px 0; text-align: center; }
.prog { height: 3px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.prog > i { display: block; height: 100%; background: var(--text-2); }
.num { font-variant-numeric: tabular-nums; }
.publico { font-size: 11px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); }
.publico b { color: var(--text); }
.on-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 5px; vertical-align: 1px; }
@media (max-width: 640px) { .publico { order: 10; } }
