/* Runter — Painel de marketing
   Tokens, layout mobile-first, componentes. Sem build. */

:root {
  color-scheme: light dark;

  /* superfícies e texto */
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f3f1ed;
  --border: #e6e2dc;
  --border-strong: #cfc9c0;
  --text: #1a1a1a;
  --text-2: #5b5751;
  --text-3: #8a857d;
  --accent: #ef6c00;

  /* severidade */
  --danger: #c62828;
  --warning: #b26a00;
  --info: #1565c0;
  --success: #2e7d32;
  --muted: #757575;
  --danger-bg: #fbe9e7;
  --warning-bg: #fff4e0;
  --info-bg: #e7f0fb;
  --success-bg: #e8f3e9;
  --muted-bg: #efedea;

  /* fontes de dado */
  --src-meta: #5e35b1;
  --src-umami: #00897b;
  --src-runter: #ef6c00;

  /* gráficos */
  --chart-prev: rgba(120, 116, 110, 0.28);
  --chart-grid: rgba(0, 0, 0, 0.06);
  --chart-text: #6b665f;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(20, 16, 10, 0.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 56px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --surface: #1e1e1e;
    --surface-2: #262626;
    --border: #2f2f2f;
    --border-strong: #444;
    --text: #efece7;
    --text-2: #b8b3ab;
    --text-3: #8a857d;

    --danger: #ef5350;
    --warning: #ffb74d;
    --info: #64b5f6;
    --success: #81c784;
    --muted: #9e9e9e;
    --danger-bg: rgba(239, 83, 80, 0.14);
    --warning-bg: rgba(255, 183, 77, 0.14);
    --info-bg: rgba(100, 181, 246, 0.14);
    --success-bg: rgba(129, 199, 132, 0.14);
    --muted-bg: rgba(158, 158, 158, 0.14);

    --src-meta: #b39ddb;
    --src-umami: #4db6ac;
    --src-runter: #ffb74d;

    --chart-prev: rgba(200, 196, 190, 0.22);
    --chart-grid: rgba(255, 255, 255, 0.07);
    --chart-text: #a39e96;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Cabeçalho ---------- */
.topbar {
  position: static; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  max-width: 1280px; margin: 0 auto; padding: 8px 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { height: 22px; width: auto; display: block; }
.brand picture { display: block; }
.brand__title { font-weight: 700; font-size: 16px; }
.brand__sub { display: block; font-size: 12px; color: var(--text-3); line-height: 1.1; }

.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px; padding: 2px; background: var(--surface); }
.seg button {
  border: 0; background: transparent; padding: 5px 10px; border-radius: 999px;
  font-size: 13px; color: var(--text-2); cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.seg--sm button { padding: 3px 9px; font-size: 12px; }
.seg button:hover:not([aria-pressed="true"]) { background: var(--surface-2); }

.fresh { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.fresh__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.fresh__dot[data-level="green"] { background: var(--success); }
.fresh__dot[data-level="yellow"] { background: var(--warning); }
.fresh__dot[data-level="red"] { background: var(--danger); }
.fresh__cache { border: 1px solid var(--border-strong); border-radius: 4px; padding: 0 5px; font-size: 11px; color: var(--text-3); }

/* ---------- Abas (faixa rolável no celular, coluna fixa a partir de 1024px) ---------- */
.layout { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr; }
.tabs {
  position: sticky; top: 0; z-index: 15; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border); padding: 6px 10px;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__group { display: contents; }
.tabs__label { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none;
  font-size: 13px; color: var(--text-2); padding: 7px 11px; border-radius: 999px; border: 1px solid transparent; position: relative;
}
.tab:hover { background: var(--surface-2); color: var(--text); }
.tab--active { background: var(--text); color: var(--bg); }
.tab__icon { font-size: 12px; opacity: 0.8; width: 14px; text-align: center; }
.tab__badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; background: var(--warning); color: #fff;
}
.tab__badge[data-sev="critical"] { background: var(--danger); }
.tab__badge[hidden] { display: none; }

main { padding: 14px 16px 40px; min-width: 0; }
.view { outline: none; }
.view__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 16px; margin: 4px 0 14px; }
.view__title { font-size: 22px; letter-spacing: -0.015em; }
.view__q { font-size: 13.5px; color: var(--text-2); margin-top: 3px; max-width: 70ch; }
.view__meta { margin-left: auto; font-size: 12px; color: var(--text-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.view__body { display: grid; gap: 14px; grid-template-columns: 1fr; }
.view__body > * { min-width: 0; }

@media (min-width: 1024px) {
  .layout { grid-template-columns: 232px minmax(0, 1fr); align-items: start; }
  .tabs {
    position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow: auto;
    flex-direction: column; gap: 14px; padding: 18px 12px 24px; border-bottom: 0; border-right: 1px solid var(--border);
    background: transparent; backdrop-filter: none;
  }
  .tabs__group { display: grid; gap: 2px; }
  .tabs__label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); padding: 0 10px 6px; }
  .tab { border-radius: 8px; padding: 8px 10px; font-size: 13.5px; }
  .tab--active { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow); }
  .tab--active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--accent); }
  .tab__badge { margin-left: auto; }
  main { padding: 20px 28px 48px; }
  .view__body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Grades ---------- */
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.grid > *, .donut-wrap > * { min-width: 0; }
.span-all { grid-column: 1 / -1; }
@media (min-width: 600px) {
  .grid, .grid--3, .grid--4, .grid--5, .grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .topbar { position: sticky; top: 0; }
  .brand img { height: 26px; }
  .view__body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); min-width: 0;
}
.card__head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.card__title { font-size: 14px; font-weight: 600; flex: 1; }
.grid--5 .card__title, .grid--4 .card__title { font-size: 13px; }
.kpi .card__head { flex-wrap: wrap; }
.kpi .card__title { flex: 1 1 120px; }
.card__foot { margin-top: 10px; font-size: 12px; color: var(--text-3); }
.card--flat { background: transparent; border: 0; padding: 0; box-shadow: none; }

/* selo de fonte */
.src {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500;
  color: var(--text-2); white-space: nowrap; letter-spacing: 0.01em;
}
.src::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--muted); }
.src[data-src="meta"]::before { background: var(--src-meta); }
.src[data-src="umami"]::before { background: var(--src-umami); }
.src[data-src="db"]::before { background: var(--src-runter); }

/* ícone "?" com explicação */
.info { position: relative; display: inline-block; }
.info > summary {
  list-style: none; cursor: pointer; width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--border-strong); color: var(--text-3); font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.info > summary::-webkit-details-marker { display: none; }
.info > summary:hover { color: var(--text); border-color: var(--text-2); }
.info__pop {
  position: absolute; right: 0; top: 24px; z-index: 10; width: min(320px, 80vw);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 12.5px; color: var(--text-2); box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  font-weight: 400;
}
.info__pop b { color: var(--text); }
.info__pop dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; }
.info__pop dt { color: var(--text-3); }
.info__pop dd { margin: 0; }
.info__pop .tech { color: var(--text-3); font-family: var(--mono); font-size: 11px; }

/* ---------- KPI ---------- */
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi__value { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi__value--unknown { color: var(--muted); }
.kpi__media { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.kpi__delta { font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.kpi__delta[data-tone="good"] { color: var(--success); }
.kpi__delta[data-tone="bad"] { color: var(--danger); }
.kpi__delta[data-tone="neutral"] { color: var(--text-2); }
.kpi__delta[data-tone="none"] { color: var(--text-3); }
.kpi__reason { font-size: 12px; color: var(--text-3); }
.kpi__sub { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.kpi__help { font-size: 12px; color: var(--text-3); margin-top: 6px; line-height: 1.35; }

.tag {
  display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--text-2); white-space: nowrap; vertical-align: middle;
}
.tag--partial { border-style: dashed; }
.tag--warn { color: var(--warning); border-color: var(--warning); background: var(--warning-bg); }
.tag--danger { color: var(--danger); border-color: var(--danger); background: var(--danger-bg); }
.tag--ok { color: var(--success); border-color: var(--success); background: var(--success-bg); }
.tag--info { color: var(--info); border-color: var(--info); background: var(--info-bg); }
.tag--muted { color: var(--muted); background: var(--muted-bg); }

/* barra de verba */
.budget { margin-top: 6px; }
.budget__bar { position: relative; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: visible; }
.budget__fill { height: 100%; border-radius: 999px; background: var(--success); }
.budget__fill[data-status="warn"] { background: var(--warning); }
.budget__fill[data-status="critical"] { background: var(--danger); }
.budget__mark { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--text-2); }
.budget__mark--committed { background: var(--text-3); opacity: 0.7; }
.budget__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--text-2); margin-top: 8px; }

/* hoje até agora */
.today { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--text-2); align-items: baseline; }
.today b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.today__label { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Alertas ---------- */
.alerts { display: grid; gap: 8px; }
.alert {
  border: 1px solid var(--border); border-left: 4px solid var(--muted); border-radius: var(--radius-sm);
  padding: 10px 12px; background: var(--surface); display: grid; gap: 3px;
}
.alert[data-sev="critical"] { border-left-color: var(--danger); background: var(--danger-bg); }
.alert[data-sev="warn"] { border-left-color: var(--warning); background: var(--warning-bg); }
.alert[data-sev="info"] { border-left-color: var(--info); background: var(--info-bg); }
.alert__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.alert__sev { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.alert[data-sev="critical"] .alert__sev { color: var(--danger); }
.alert[data-sev="warn"] .alert__sev { color: var(--warning); }
.alert[data-sev="info"] .alert__sev { color: var(--info); }
.alert__title { font-weight: 600; }
.alert__detail { font-size: 13px; color: var(--text-2); }
.alert__action { font-size: 13px; }
.alert__action::before { content: "→ "; color: var(--text-3); }
.alert__meta { font-size: 12px; color: var(--text-3); display: flex; gap: 10px; flex-wrap: wrap; }
.alert__meta a { color: var(--text-2); }
.alert--ok { border-left-color: var(--success); background: var(--success-bg); }
.alerts__more { justify-self: start; background: none; border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; }

/* ---------- Semáforo / checks ---------- */
.checks { display: grid; gap: 6px; }
.check { display: grid; grid-template-columns: 12px 1fr; gap: 10px; align-items: baseline; font-size: 13.5px; }
.check__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); position: relative; top: 1px; }
.check__dot[data-status="green"] { background: var(--success); }
.check__dot[data-status="yellow"] { background: var(--warning); }
.check__dot[data-status="red"] { background: var(--danger); }
.check__detail { color: var(--text-2); font-size: 12.5px; }

/* ---------- Funil ---------- */
.funnel { display: grid; gap: 6px; }
.funnel__lane-title { font-size: 12px; font-weight: 600; margin: 6px 0 2px; }
.funnel__row { display: grid; grid-template-columns: minmax(110px, 36%) 1fr; gap: 10px; align-items: center; font-size: 13px; }
.funnel__label { color: var(--text-2); display: flex; flex-direction: column; line-height: 1.2; }
.funnel__label small { color: var(--text-3); font-size: 11.5px; }
.funnel__bar { position: relative; height: 22px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.funnel__fill { position: absolute; inset: 0 auto 0 0; background: var(--src-runter); border-radius: 4px; }
.funnel__fill--meta { background: var(--src-meta); }
.funnel__fill--umami { background: var(--src-umami); }
.funnel__fill--prev { background: var(--chart-prev); }
.funnel__fill--pending { background: repeating-linear-gradient(45deg, var(--chart-prev) 0 4px, transparent 4px 8px); }
.funnel__val { position: absolute; right: 8px; top: 0; height: 100%; display: flex; align-items: center; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.funnel__step { font-size: 11.5px; color: var(--text-3); padding-left: 2px; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; vertical-align: top; }
.tbl th { font-size: 11.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; user-select: none; }
.tbl th[aria-sort="ascending"]::after { content: " ↑"; }
.tbl th[aria-sort="descending"]::after { content: " ↓"; }
.tbl th.num, .tbl td.num { text-align: right; }
.tbl td.wrap { white-space: normal; min-width: 160px; }
.tbl tr.total td { font-weight: 600; border-top: 2px solid var(--border-strong); }
.tbl .bar-cell { display: inline-block; height: 8px; border-radius: 4px; background: var(--src-meta); vertical-align: middle; margin-right: 6px; }
.tbl .flag { color: var(--danger); font-weight: 600; font-size: 11.5px; }
.tbl .dim { color: var(--text-3); }
.tbl td .unknown { color: var(--muted); }

/* ---------- Gráficos ---------- */
.chart { position: relative; height: 240px; }
.chart--sm { height: 120px; }
.chart--tall { height: 300px; }
.chart canvas { width: 100% !important; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--text-2); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.legend i.hatch { background: repeating-linear-gradient(45deg, var(--text-3) 0 2px, transparent 2px 4px); }
.chart-note { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.donut-wrap { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .donut-wrap { grid-template-columns: 2fr 1fr; } }

/* ---------- Estados ---------- */
.skeleton { display: grid; gap: 10px; }
.skeleton__line { height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton__line--tall { height: 90px; }
.skeleton__line--w60 { width: 60%; }
.skeleton__line--w30 { width: 30%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton__line { animation: none; } }

.unavailable { grid-column: 1 / -1; border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 18px; color: var(--text-2); display: grid; gap: 4px; }
.unavailable b { color: var(--text); }
.banner { border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13px; }
.banner--warn { background: var(--warning-bg); color: var(--text); border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent); }
.banner--info { background: var(--info-bg); border: 1px solid color-mix(in srgb, var(--info) 40%, transparent); }
.banner--muted { background: var(--muted-bg); color: var(--text-2); }

.note { font-size: 12.5px; color: var(--text-3); }
.unknown { color: var(--muted); }

/* ---------- Glossário / rodapé ---------- */
.glossary__search { width: 100%; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: 14px; margin-bottom: 10px; }
.glossary dl { margin: 0; display: grid; gap: 10px; }
.glossary dt { font-weight: 600; font-size: 13.5px; }
.glossary dd { margin: 0; font-size: 13px; color: var(--text-2); }
.glossary dd .meta { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }

footer { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login form { width: min(360px, 100%); display: grid; gap: 12px; }
.login .brand { margin-bottom: 8px; }
.login label { font-size: 13px; color: var(--text-2); display: grid; gap: 4px; }
.login input { padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: 15px; }
.btn { padding: 10px 14px; border-radius: var(--radius-sm); border: 0; background: var(--text); color: var(--bg); font-weight: 600; cursor: pointer; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn--ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text); font-weight: 500; padding: 4px 10px; font-size: 12px; }
.login__error { color: var(--danger); font-size: 13px; }

/* ---------- Tiles (estoque / destaques compactos) ---------- */
.strip__title { font-size: 13px; font-weight: 600; margin: 2px 0 8px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.strip__title .src { font-weight: 500; }
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px 9px; box-shadow: var(--shadow); min-width: 0; display: grid; gap: 4px; }
.tile__head { display: flex; align-items: center; gap: 6px; min-height: 18px; flex-wrap: wrap; }
.tile > * { min-width: 0; }
.tile__title { font-size: 12px; color: var(--text-2); flex: 1; line-height: 1.2; }
.tile__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.tile__value { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tile__value--unknown { color: var(--muted); }
.tile__foot { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 12px; color: var(--text-3); min-height: 16px; align-items: baseline; }
.tile__delta { font-variant-numeric: tabular-nums; }
.tile__delta[data-tone="good"] { color: var(--success); }
.tile__delta[data-tone="bad"] { color: var(--danger); }
.tile__delta[data-tone="neutral"] { color: var(--text-2); }
.tile__delta[data-tone="none"] { color: var(--text-3); }
.tile__sub { color: var(--text-3); }
.spark { flex: none; display: block; max-width: 45%; height: 32px; }
.tile .info > summary { width: 16px; height: 16px; font-size: 10px; }

/* lista "barra + valor" (versões, status) */
.bars { display: grid; gap: 6px; font-size: 13px; }
.bars__row { display: grid; grid-template-columns: minmax(70px, 30%) 1fr auto; gap: 10px; align-items: center; }
.bars__label { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars__bar { height: 10px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bars__fill { height: 100%; background: var(--src-runter); border-radius: 4px; }
.bars__fill--muted { background: var(--chart-prev); }
.bars__val { font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; }
