/*! Movidos DS v1.2.0 · 4117eeaafa0c · gerado por design-system/scripts/build.mjs — não editar aqui */
/* =============================================================
   Movidos DS — tokens
   Fonte única de cores, tipografia, espaço, raio, sombra e camadas.
   Todo valor visual dos apps deve sair daqui (var(--ds-*)).
   ============================================================= */
:root {
  /* ---- Marca ---- */
  --ds-navy-950: #0B132B;
  --ds-navy-900: #032854;   /* cor principal da marca */
  --ds-navy-800: #0d3c75;
  --ds-navy-700: #1d4f8c;
  --ds-navy-100: #e6edf7;
  --ds-navy-50:  #f2f6fb;
  --ds-amber-600: #c2410c;  /* âmbar para texto sobre fundo claro (contraste AA) */
  --ds-amber-500: #F97316;  /* destaque: indicador ativo, badges */
  --ds-amber-100: #ffedd5;
  --ds-gold-400:  #FFD200;  /* só sobre navy (ícones dos atalhos) */

  /* ---- Neutros ---- */
  --ds-white: #ffffff;
  --ds-gray-25:  #f8fafc;
  --ds-gray-50:  #f2f5f9;   /* fundo do app */
  --ds-gray-100: #eaeef4;
  --ds-gray-200: #e2e8f0;   /* bordas */
  --ds-gray-300: #cbd5e1;
  --ds-gray-400: #94a3b8;
  --ds-gray-500: #64748b;   /* texto secundário */
  --ds-gray-700: #334155;
  --ds-gray-900: #0B132B;   /* texto principal */

  /* ---- Papéis (use estes nos componentes) ---- */
  --ds-bg: var(--ds-gray-50);
  --ds-surface: var(--ds-white);
  --ds-surface-sunken: var(--ds-gray-25);
  --ds-border: var(--ds-gray-200);
  --ds-border-strong: var(--ds-gray-300);
  --ds-text: var(--ds-gray-900);
  --ds-text-muted: var(--ds-gray-500);
  --ds-text-subtle: var(--ds-gray-400);
  --ds-heading: var(--ds-navy-900);
  --ds-primary: var(--ds-navy-900);
  --ds-primary-hover: var(--ds-navy-800);
  --ds-on-primary: var(--ds-white);
  --ds-accent: var(--ds-amber-500);
  --ds-focus: #2563eb;

  /* ---- Estados: texto / fundo / borda ---- */
  --ds-success: #15803d; --ds-success-bg: #e9f7ef; --ds-success-border: #bfe3cc;
  --ds-warning: #8a4b00; --ds-warning-bg: #fff4e5; --ds-warning-border: #f3d9b5;
  --ds-danger:  #b91c1c; --ds-danger-bg:  #fdecec; --ds-danger-border:  #f1c4c4;
  --ds-info:    #0d3c75; --ds-info-bg:    #eaf1fb; --ds-info-border:    #c9d9f0;

  /* ---- Dinheiro ---- */
  --ds-money-in: #0f7a3d;   /* entrada / a receber */
  --ds-money-out: var(--ds-text);
  --ds-money-neg: var(--ds-danger);

  /* ---- Gráficos — paleta da referência aprovada (validada para daltonismo; ordem fixa) ---- */
  --ds-viz-1: #5B3DF5;  /* roxo   — série principal / entradas / pessoas */
  --ds-viz-2: #1AB8EC;  /* ciano  — 2ª série / saídas / custos */
  --ds-viz-3: #EC4899;  /* rosa   — 3ª série / Instituto */
  --ds-viz-4: #F59E0B;  /* âmbar  — 4ª série */
  --ds-viz-5: #64748b;  /* cinza  — "outros" */
  --ds-viz-track: #E8EAF0;  /* fundo do anel / barra vazia (não é série) */
  --ds-viz-tip: #4B2FE0;    /* balão do gráfico */
  --ds-viz-grid: var(--ds-gray-200);
  --ds-viz-axis: var(--ds-gray-500);

  /* ---- Tipografia ---- */
  --ds-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ds-font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --ds-text-xs: .75rem;    /* 12 — rótulos em caixa alta, metadados */
  --ds-text-sm: .8125rem;  /* 13 — texto secundário */
  --ds-text-md: .9375rem;  /* 15 — corpo (base) */
  --ds-text-lg: 1.0625rem; /* 17 — títulos de card */
  --ds-text-xl: 1.25rem;   /* 20 — título de página (celular) */
  --ds-text-2xl: 1.5rem;   /* 24 — título de página / KPI */
  --ds-text-3xl: 2rem;     /* 32 — KPI de destaque */
  --ds-weight-regular: 400; --ds-weight-medium: 500; --ds-weight-semibold: 600;
  --ds-weight-bold: 700; --ds-weight-black: 800;
  --ds-leading: 1.45;
  --ds-leading-tight: 1.2;
  --ds-tracking-caps: .07em;

  /* ---- Espaço (base 4) ---- */
  --ds-space-1: 4px;  --ds-space-2: 8px;  --ds-space-3: 12px; --ds-space-4: 16px;
  --ds-space-5: 20px; --ds-space-6: 24px; --ds-space-8: 32px; --ds-space-10: 40px;
  --ds-space-12: 48px;

  /* ---- Raio ---- */
  --ds-radius-sm: 6px; --ds-radius-md: 10px; --ds-radius-lg: 14px;
  --ds-radius-xl: 20px; --ds-radius-pill: 999px;

  /* ---- Sombra ---- */
  --ds-shadow-sm: 0 1px 2px rgba(11,19,43,.06);
  --ds-shadow-md: 0 1px 3px rgba(11,19,43,.06), 0 4px 14px rgba(11,19,43,.05);
  --ds-shadow-lg: 0 10px 30px rgba(11,19,43,.16);

  /* ---- Medidas ---- */
  --ds-touch: 44px;          /* alvo mínimo de toque */
  --ds-control-h: 44px;      /* altura de campos e botões */
  --ds-control-h-sm: 34px;
  --ds-topbar-h: 60px;
  --ds-tabbar-h: 64px;
  --ds-sidebar-w: 232px;
  --ds-page-narrow: 720px;
  --ds-page: 1120px;
  --ds-page-wide: 1440px;

  /* ---- Camadas ---- */
  --ds-z-sticky: 10; --ds-z-nav: 20; --ds-z-overlay: 40; --ds-z-toast: 60;

  /* ---- Movimento ---- */
  --ds-ease: cubic-bezier(.2,.7,.2,1);
  --ds-dur: .15s;
}

/* Breakpoints (referência — CSS custom properties não funcionam em @media):
   sm 560px · md 900px (sidebar aparece) · lg 1200px */

/* =============================================================
   Base — ativada com <body class="ds">. Sem a classe, só os
   componentes .ds-* valem (dá para adotar aos poucos num app antigo).
   ============================================================= */
.ds, .ds *, .ds *::before, .ds *::after { box-sizing: border-box; }
.ds { margin: 0; font-family: var(--ds-font); font-size: var(--ds-text-md); line-height: var(--ds-leading);
  color: var(--ds-text); background: var(--ds-bg); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; min-height: 100vh; }
.ds :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; }
.ds :where(h1, h2, h3, h4) { color: var(--ds-heading); line-height: var(--ds-leading-tight); }
.ds :where(a) { color: var(--ds-primary); }
.ds :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.ds :where(input, select, textarea) { font: inherit; color: inherit; }
.ds :where(img, svg) { max-width: 100%; }
.ds :focus-visible { outline: 2px solid var(--ds-focus); outline-offset: 2px; }
.ds [hidden], .ds .hidden { display: none !important; }

/* Utilitários */
.ds-muted { color: var(--ds-text-muted); }
.ds-subtle { color: var(--ds-text-subtle); }
.ds-num { font-variant-numeric: tabular-nums; }
.ds-nowrap { white-space: nowrap; }
.ds-truncate { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ds-caps { font-size: var(--ds-text-xs); font-weight: var(--ds-weight-bold); letter-spacing: var(--ds-tracking-caps); text-transform: uppercase; color: var(--ds-text-muted); }
.ds-text-sm { font-size: var(--ds-text-sm); }
.ds-text-xs { font-size: var(--ds-text-xs); }

.ds-stack { display: grid; gap: var(--ds-gap, var(--ds-space-3)); align-content: start; }
.ds-stack > * { min-width: 0; }
.ds-stack--lg { --ds-gap: var(--ds-space-6); }
.ds-stack--sm { --ds-gap: var(--ds-space-2); }
.ds-inline { display: flex; align-items: center; flex-wrap: wrap; gap: var(--ds-gap, var(--ds-space-2)); }
.ds-inline--between { justify-content: space-between; }
.ds-inline--end { justify-content: flex-end; }
.ds-spacer { flex: 1; }

/* Grade responsiva: 1 coluna no celular, N a partir de 560/900px */
.ds-grid { display: grid; gap: var(--ds-gap, var(--ds-space-3)); grid-template-columns: minmax(0, 1fr); }
.ds-grid > * { min-width: 0; }
.ds-grid--2c { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* 2 colunas até no celular (KPIs) */
@media (min-width: 560px) {
  .ds-grid--2, .ds-grid--3, .ds-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .ds-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ds-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ds-grid--main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }  /* conteúdo + lateral */
}
.ds-grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(var(--ds-min, 240px), 100%), 1fr)); }
.ds-span-all { grid-column: 1 / -1; }

/* Mostrar só no celular / só a partir de 900px (ex.: tabela no desktop, lista no celular) */
@media (max-width: 899px) { .ds-only-desktop { display: none !important; } }
@media (min-width: 900px) { .ds-only-mobile { display: none !important; } }

/* =============================================================
   Estrutura do app — pensada primeiro para o celular.

   <body class="ds ds-has-nav">
     <nav class="ds-nav">…</nav>          abas embaixo (celular) · lateral (≥900px)
     <header class="ds-topbar">…</header> cabeçalho claro e fixo
     <main class="ds-page">…</main>
   ============================================================= */

/* ---- Topo (claro, fixo, com desfoque) ---- */
.ds-topbar { position: sticky; top: 0; z-index: var(--ds-z-sticky); color: var(--ds-text);
  background: rgba(255,255,255,.9); -webkit-backdrop-filter: saturate(1.6) blur(10px); backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--ds-border);
  padding: calc(env(safe-area-inset-top) + var(--ds-space-2)) var(--ds-space-4) var(--ds-space-2); }
.ds-topbar__row { max-width: var(--ds-page-wide); margin: 0 auto; display: flex; align-items: center; gap: var(--ds-space-3); min-height: 44px; }
.ds-topbar__logo { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; }
.ds-topbar__title { flex: 1; min-width: 0; }
.ds-topbar__title small { display: block; font-size: .6875rem; font-weight: var(--ds-weight-semibold); letter-spacing: var(--ds-tracking-caps); text-transform: uppercase; color: var(--ds-text-muted); }
.ds-topbar__title b, .ds-topbar__title h1 { display: block; font-size: var(--ds-text-lg); font-weight: var(--ds-weight-black); color: var(--ds-heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-topbar__actions { display: flex; align-items: center; gap: var(--ds-space-2); }
.ds-topbar .ds-icon-btn { color: var(--ds-gray-700); }
@media (min-width: 900px) { .ds-has-nav .ds-topbar__logo { display: none; } }

/* ---- Navegação: barra de abas no celular ---- */
.ds-nav { position: fixed; z-index: var(--ds-z-nav); left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--ds-border); display: flex; justify-content: space-around; padding: 6px 4px calc(env(safe-area-inset-bottom) + 6px); }
.ds-nav__brand, .ds-nav__group, .ds-nav__foot { display: none; }
.ds-nav__item { position: relative; flex: 1; max-width: 96px; min-height: 52px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; color: var(--ds-text-muted); text-decoration: none;
  font-size: .6875rem; font-weight: var(--ds-weight-semibold); border-radius: var(--ds-radius-md); -webkit-tap-highlight-color: transparent; }
.ds-nav__item > svg { width: 22px; height: 22px; flex-shrink: 0; padding: 4px 16px; box-sizing: content-box; border-radius: var(--ds-radius-pill); transition: background var(--ds-dur); }
.ds-nav__item:active > svg { background: var(--ds-gray-100); }
.ds-nav__item[aria-current="page"], .ds-nav__item.is-active { color: var(--ds-primary); font-weight: var(--ds-weight-bold); }
.ds-nav__item[aria-current="page"] > svg, .ds-nav__item.is-active > svg { background: var(--ds-navy-100); color: var(--ds-primary); }
.ds-nav__item .ds-badge { position: absolute; top: 0; left: calc(50% + 6px); }
.ds-nav__item--desktop { display: none; }
.ds-has-nav .ds-page { padding-bottom: calc(var(--ds-tabbar-h) + env(safe-area-inset-bottom) + var(--ds-space-8)); }

/* ---- Navegação: lateral a partir de 900px ---- */
@media (min-width: 900px) {
  .ds-nav { top: 0; right: auto; width: var(--ds-sidebar-w); height: 100vh; flex-direction: column; justify-content: flex-start;
    background: var(--ds-surface); border-top: 0; border-right: 1px solid var(--ds-border); padding: var(--ds-space-4) var(--ds-space-3); gap: 2px; overflow-y: auto; }
  .ds-nav__brand { display: flex; align-items: center; gap: var(--ds-space-3); padding: var(--ds-space-1) var(--ds-space-2) var(--ds-space-6); text-decoration: none; }
  .ds-nav__brand img { width: 36px; height: 36px; border-radius: 10px; }
  .ds-nav__brand b { display: block; color: var(--ds-heading); font-weight: var(--ds-weight-black); font-size: var(--ds-text-lg); line-height: 1.1; }
  .ds-nav__brand small { display: block; color: var(--ds-text-muted); font-size: var(--ds-text-xs); }
  .ds-nav__group { display: block; margin: var(--ds-space-5) var(--ds-space-3) var(--ds-space-2); font-size: .6875rem; font-weight: var(--ds-weight-bold); letter-spacing: var(--ds-tracking-caps); text-transform: uppercase; color: var(--ds-text-subtle); }
  .ds-nav__item, .ds-nav__item--desktop { display: flex; flex: 0 0 auto; max-width: none; min-height: 44px; flex-direction: row; justify-content: flex-start;
    gap: var(--ds-space-3); padding: 0 var(--ds-space-3); font-size: var(--ds-text-md); font-weight: var(--ds-weight-medium); color: var(--ds-gray-700); }
  .ds-nav__item > svg { width: 20px; height: 20px; padding: 0; color: var(--ds-text-muted); background: none !important; }
  .ds-nav__item:hover { background: var(--ds-gray-50); color: var(--ds-text); }
  .ds-nav__item[aria-current="page"], .ds-nav__item.is-active { background: var(--ds-primary); color: #fff; font-weight: var(--ds-weight-semibold); box-shadow: 0 4px 12px rgba(3,40,84,.22); }
  .ds-nav__item[aria-current="page"] > svg, .ds-nav__item.is-active > svg { color: #fff; }
  .ds-nav__item .ds-badge { position: static; margin-left: auto; }
  .ds-nav__item .ds-ext { margin-left: auto; width: 14px; height: 14px; color: var(--ds-text-subtle); }
  .ds-nav__foot { display: grid; gap: 2px; margin-top: auto; padding-top: var(--ds-space-4); }
  .ds-has-nav { padding-left: var(--ds-sidebar-w); }
  .ds-has-nav .ds-page { padding-bottom: var(--ds-space-10); }
  .ds-has-nav .ds-topbar { padding-left: var(--ds-space-8); padding-right: var(--ds-space-8); }
}

/* ---- Página ---- */
.ds-page { width: 100%; max-width: var(--ds-page); margin: 0 auto; padding: var(--ds-space-4); outline: none; overflow-x: clip; }
.ds .ds-page:focus, .ds .ds-page:focus-visible { outline: none; }
.ds-page--narrow { max-width: var(--ds-page-narrow); }
.ds-page--wide { max-width: var(--ds-page-wide); }
@media (min-width: 900px) { .ds-page { padding: var(--ds-space-6) var(--ds-space-8); } }

.ds-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--ds-space-3); margin-bottom: var(--ds-space-5); }
.ds-page-head__text { flex: 1 1 260px; min-width: 0; }
.ds-page-head h1 { font-size: var(--ds-text-2xl); font-weight: var(--ds-weight-black); letter-spacing: -.02em; }
.ds-page-head p { color: var(--ds-text-muted); margin-top: 2px; }
@media (min-width: 900px) { .ds-page-head h1 { font-size: var(--ds-text-3xl); } }
/* No celular as ações da página ocupam a largura toda (alvo grande para o polegar). */
@media (max-width: 559px) {
  .ds-page-head > .ds-actions { width: 100%; }
  .ds-page-head > .ds-actions > .ds-btn { flex: 1 1 0; }
}

.ds-section { margin-top: var(--ds-space-8); }
.ds-section:first-child { margin-top: 0; }
.ds-section__head { display: flex; align-items: center; gap: var(--ds-space-3); margin-bottom: var(--ds-space-3); min-height: 32px; }
.ds-section__head h2 { flex: 1; min-width: 0; font-size: var(--ds-text-lg); font-weight: var(--ds-weight-bold); }
.ds-section__head .ds-caps { flex: 1; }

/* Botão de ação flutuante (celular): a ação principal da tela, ao alcance do polegar. */
.ds-fab { position: fixed; z-index: var(--ds-z-nav); right: var(--ds-space-4); bottom: calc(var(--ds-tabbar-h) + env(safe-area-inset-bottom) + var(--ds-space-4));
  display: inline-flex; align-items: center; gap: var(--ds-space-2); min-height: 52px; padding: 0 var(--ds-space-5); border-radius: var(--ds-radius-pill);
  background: var(--ds-primary); color: #fff; font-weight: var(--ds-weight-bold); border: 0; box-shadow: 0 8px 24px rgba(3,40,84,.35); cursor: pointer; text-decoration: none; }
.ds-fab svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .ds-fab { display: none; } }

/* =============================================================
   Controles: botões, campos, seleção, abas, segmentado e chips.
   ============================================================= */

/* ---- Botão ---- */
.ds-btn { --ds-btn-bg: var(--ds-surface); --ds-btn-fg: var(--ds-primary); --ds-btn-border: var(--ds-border-strong); --ds-btn-bg-hover: var(--ds-gray-50);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--ds-space-2); min-height: var(--ds-control-h);
  padding: 0 var(--ds-space-4); border-radius: var(--ds-radius-md); border: 1px solid var(--ds-btn-border);
  background: var(--ds-btn-bg); color: var(--ds-btn-fg); font: inherit; font-weight: var(--ds-weight-bold); font-size: var(--ds-text-md);
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: background var(--ds-dur), border-color var(--ds-dur), transform var(--ds-dur); }
.ds-btn:hover { background: var(--ds-btn-bg-hover); }
.ds-btn:active { transform: translateY(1px); }
.ds-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.ds-btn--primary { --ds-btn-bg: var(--ds-primary); --ds-btn-fg: var(--ds-on-primary); --ds-btn-border: var(--ds-primary); --ds-btn-bg-hover: var(--ds-primary-hover); }
.ds-btn--ghost { --ds-btn-bg: transparent; --ds-btn-border: transparent; --ds-btn-bg-hover: var(--ds-gray-100); }
.ds-btn--danger { --ds-btn-bg: var(--ds-danger-bg); --ds-btn-fg: var(--ds-danger); --ds-btn-border: var(--ds-danger-border); --ds-btn-bg-hover: #fbdcdc; }
.ds-btn--success { --ds-btn-bg: var(--ds-success); --ds-btn-fg: #fff; --ds-btn-border: var(--ds-success); --ds-btn-bg-hover: #116a33; }
.ds-btn--sm { min-height: var(--ds-control-h-sm); padding: 0 var(--ds-space-3); font-size: var(--ds-text-sm); border-radius: var(--ds-radius-sm); }
.ds-btn--sm svg { width: 16px; height: 16px; }
.ds-btn--block { width: 100%; }
.ds-btn:disabled, .ds-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.ds-btn[aria-busy="true"] { color: transparent !important; position: relative; pointer-events: none; }
.ds-btn[aria-busy="true"]::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--ds-btn-fg); border-right-color: transparent; animation: ds-spin .7s linear infinite; }
@keyframes ds-spin { to { transform: rotate(360deg); } }

.ds-icon-btn { display: inline-grid; place-items: center; width: var(--ds-touch); height: var(--ds-touch); border-radius: var(--ds-radius-md);
  color: var(--ds-text-muted); background: transparent; border: 0; cursor: pointer; flex-shrink: 0; }
.ds-icon-btn:hover { background: var(--ds-gray-100); color: var(--ds-text); }
.ds-icon-btn svg { width: 20px; height: 20px; }

.ds-link { color: var(--ds-primary); font-weight: var(--ds-weight-semibold); text-decoration: underline; text-underline-offset: 2px; background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }

.ds-actions { display: flex; flex-wrap: wrap; gap: var(--ds-space-2); }
.ds-actions--stretch > .ds-btn { flex: 1 1 140px; }

/* ---- Campos ---- */
.ds-form { display: grid; gap: var(--ds-space-4); }
.ds-form-row { display: grid; gap: var(--ds-space-4); }
@media (min-width: 560px) { .ds-form-row { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.ds-field { display: grid; gap: 6px; min-width: 0; }
.ds-field > label, .ds-label { font-size: var(--ds-text-sm); font-weight: var(--ds-weight-semibold); color: var(--ds-gray-700); }
.ds-field__hint { font-size: var(--ds-text-xs); color: var(--ds-text-muted); }
.ds-field__error { font-size: var(--ds-text-xs); color: var(--ds-danger); font-weight: var(--ds-weight-semibold); }
.ds-input, .ds-select, .ds-textarea { width: 100%; min-width: 0; min-height: var(--ds-control-h); padding: 0 var(--ds-space-3);
  border: 1px solid var(--ds-border-strong); border-radius: var(--ds-radius-md); background: var(--ds-surface);
  font: inherit; font-size: 16px; /* 16px evita zoom no iPhone */ color: var(--ds-text); transition: border-color var(--ds-dur), box-shadow var(--ds-dur); }
.ds-textarea { padding: var(--ds-space-3); min-height: 96px; resize: vertical; line-height: var(--ds-leading); }
.ds-select { appearance: none; padding-right: 36px; cursor: pointer;
  background: var(--ds-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 18px; }
.ds-input:hover, .ds-select:hover, .ds-textarea:hover { border-color: var(--ds-gray-400); }
.ds-input:focus, .ds-select:focus, .ds-textarea:focus { outline: none; border-color: var(--ds-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.ds-input[aria-invalid="true"], .ds-select[aria-invalid="true"] { border-color: var(--ds-danger); }
.ds-input:disabled, .ds-select:disabled, .ds-textarea:disabled { background: var(--ds-gray-50); color: var(--ds-text-muted); cursor: not-allowed; }
.ds-input--sm, .ds-select--sm { min-height: var(--ds-control-h-sm); font-size: var(--ds-text-sm); border-radius: var(--ds-radius-sm); }

/* Campo com prefixo/sufixo (R$, %, ícone de busca) */
.ds-affix { position: relative; display: flex; align-items: center; }
.ds-affix > .ds-input { flex: 1; }
.ds-affix__pre, .ds-affix__post { position: absolute; color: var(--ds-text-muted); font-weight: var(--ds-weight-semibold); pointer-events: none; display: inline-flex; }
.ds-affix__pre { left: var(--ds-space-3); } .ds-affix__post { right: var(--ds-space-3); }
.ds-affix__pre svg, .ds-affix__post svg { width: 18px; height: 18px; }
.ds-affix:has(.ds-affix__pre) > .ds-input { padding-left: 38px; }
.ds-affix:has(.ds-affix__post) > .ds-input { padding-right: 38px; }

/* Senha com olho (dsRevealPasswords em icons.js monta isto) */
.ds-reveal { position: relative; display: block; min-width: 0; }
.ds-reveal > input { width: 100%; padding-right: 48px; }
.ds-reveal__btn { position: absolute; top: 50%; right: 2px; transform: translateY(-50%); width: var(--ds-touch); height: var(--ds-touch);
  display: grid; place-items: center; border: 0; background: transparent; color: var(--ds-text-muted); border-radius: var(--ds-radius-md);
  cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ds-reveal__btn:hover { color: var(--ds-text); }
.ds-reveal__btn:focus-visible { outline: 2px solid var(--ds-focus); outline-offset: -4px; }
.ds-reveal__btn svg { width: 20px; height: 20px; }
/* Esconde o olho nativo do Edge para não aparecerem dois */
.ds-reveal > input::-ms-reveal { display: none; }

/* Checkbox / rádio */
.ds-check { display: flex; align-items: flex-start; gap: var(--ds-space-3); font-weight: var(--ds-weight-medium); color: var(--ds-text); cursor: pointer; min-height: 24px; }
.ds-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ds-primary); flex-shrink: 0; cursor: pointer; }
.ds-check small { display: block; color: var(--ds-text-muted); font-size: var(--ds-text-sm); font-weight: var(--ds-weight-regular); }

/* Interruptor: <label class="ds-switch"><input type="checkbox"><span></span></label> */
.ds-switch { position: relative; display: inline-block; width: 48px; height: 28px; flex-shrink: 0; }
.ds-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.ds-switch span { position: absolute; inset: 0; border-radius: var(--ds-radius-pill); background: var(--ds-gray-300); transition: background var(--ds-dur); }
.ds-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--ds-shadow-sm); transition: transform var(--ds-dur) var(--ds-ease); }
.ds-switch input:checked + span { background: var(--ds-success); }
.ds-switch input:checked + span::after { transform: translateX(20px); }
.ds-switch input:focus-visible + span { outline: 2px solid var(--ds-focus); outline-offset: 2px; }
.ds-switch input:disabled + span { opacity: .5; }

/* ---- Abas (navegação entre telas de uma seção) ---- */
.ds-tabs { display: flex; gap: var(--ds-space-1); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--ds-border);
  margin: 0 calc(-1 * var(--ds-space-4)) var(--ds-space-5); padding: 0 var(--ds-space-4); }
.ds-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .ds-tabs { margin-left: 0; margin-right: 0; padding: 0; } }
.ds-tab { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: var(--ds-touch); padding: 0 var(--ds-space-3);
  color: var(--ds-text-muted); font-weight: var(--ds-weight-semibold); text-decoration: none; white-space: nowrap; background: none; border: 0; cursor: pointer; font-size: var(--ds-text-md); }
.ds-tab:hover { color: var(--ds-text); }
.ds-tab[aria-selected="true"], .ds-tab[aria-current="page"], .ds-tab.is-active { color: var(--ds-primary); }
.ds-tab[aria-selected="true"]::after, .ds-tab[aria-current="page"]::after, .ds-tab.is-active::after { content: ""; position: absolute; left: var(--ds-space-3); right: var(--ds-space-3); bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--ds-accent); }
.ds-tab .ds-badge { margin-left: 2px; }

/* ---- Segmentado (2–4 opções de visualização) ---- */
.ds-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--ds-gray-100); border-radius: var(--ds-radius-md); padding: 3px; gap: 2px; }
.ds-seg button { min-height: 36px; padding: 0 var(--ds-space-3); border-radius: 8px; font-weight: var(--ds-weight-semibold); font-size: var(--ds-text-sm); color: var(--ds-text-muted); white-space: nowrap; background: none; border: 0; cursor: pointer; }
.ds-seg button[aria-pressed="true"], .ds-seg button.is-active { background: var(--ds-surface); color: var(--ds-primary); font-weight: var(--ds-weight-bold); box-shadow: var(--ds-shadow-sm); }
.ds-seg--block { display: grid; width: 100%; }

/* ---- Chips (filtros) ---- */
.ds-chips { display: flex; gap: var(--ds-space-2); overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.ds-chips::-webkit-scrollbar { display: none; }
.ds-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 var(--ds-space-3);
  border-radius: var(--ds-radius-pill); border: 1px solid var(--ds-border-strong); background: var(--ds-surface); color: var(--ds-gray-700);
  font-weight: var(--ds-weight-semibold); font-size: var(--ds-text-sm); text-decoration: none; cursor: pointer; white-space: nowrap; }
.ds-chip:hover { border-color: var(--ds-gray-400); }
.ds-chip[aria-pressed="true"], .ds-chip.is-active { background: var(--ds-primary); border-color: var(--ds-primary); color: #fff; }
.ds-chip .ds-chip__n { font-size: var(--ds-text-xs); opacity: .7; }
.ds-chip svg { width: 15px; height: 15px; }

/* Barra de filtros: busca + chips + ações, quebra no celular */
.ds-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-2); margin-bottom: var(--ds-space-4); }
.ds-toolbar > .ds-affix, .ds-toolbar > .ds-input { flex: 1 1 220px; }

/* =============================================================
   Conteúdo: card, KPI, atalho, lista, tabela, chave-valor,
   status, badge, dinheiro, progresso e barra de composição.
   ============================================================= */

/* ---- Card ---- */
.ds-card { background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); box-shadow: var(--ds-shadow-sm); min-width: 0; }
.ds-card__head { display: flex; align-items: center; gap: var(--ds-space-3); padding: var(--ds-space-4) var(--ds-space-4) 0; }
.ds-card__head h3, .ds-card__title { flex: 1; min-width: 0; font-size: var(--ds-text-md); font-weight: var(--ds-weight-bold); color: var(--ds-heading); }
.ds-card__head p { color: var(--ds-text-muted); font-size: var(--ds-text-sm); }
.ds-card__body { padding: var(--ds-space-4); }
.ds-card__foot { padding: var(--ds-space-3) var(--ds-space-4); border-top: 1px solid var(--ds-border); display: flex; flex-wrap: wrap; gap: var(--ds-space-2); align-items: center; }
.ds-card--pad { padding: var(--ds-space-4); }
.ds-card--flat { box-shadow: none; }
.ds-card--sunken { background: var(--ds-surface-sunken); box-shadow: none; }
a.ds-card, button.ds-card { display: block; width: 100%; text-align: left; color: inherit; text-decoration: none; cursor: pointer; font: inherit; transition: border-color var(--ds-dur), box-shadow var(--ds-dur); }
a.ds-card:hover, button.ds-card:hover { border-color: var(--ds-border-strong); box-shadow: var(--ds-shadow-md); }
@media (min-width: 900px) { .ds-card__head { padding: var(--ds-space-5) var(--ds-space-5) 0; } .ds-card__body, .ds-card--pad { padding: var(--ds-space-5); } }

/* ---- KPI ----
   <div class="ds-kpi">
     <div class="ds-kpi__head"><span class="ds-kpi__icon">svg</span><span class="ds-kpi__label">Rótulo</span></div>
     <div class="ds-kpi__row"><span class="ds-kpi__value">R$ 1.234</span><span class="ds-delta is-good">svg +12%</span></div>
     <span class="ds-kpi__hint">vs mês anterior</span>
     <a class="ds-kpi__foot" href="#">Ver detalhes svg</a>
   </div>
   Sem __head também vale: só __label + __value + __hint. */
.ds-kpi { container-type: inline-size; display: flex; flex-direction: column; background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg);
  padding: var(--ds-space-4); box-shadow: var(--ds-shadow-sm); color: inherit; text-decoration: none; min-width: 0; }
a.ds-kpi:hover { border-color: var(--ds-border-strong); box-shadow: var(--ds-shadow-md); }
.ds-kpi__head { display: flex; align-items: center; gap: var(--ds-space-2); min-width: 0; }
.ds-kpi__icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--ds-gray-100); color: var(--ds-gray-700); }
.ds-kpi__icon svg { width: 17px; height: 17px; }
.ds-kpi__label { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--ds-gray-700); font-size: var(--ds-text-sm); font-weight: var(--ds-weight-semibold); }
.ds-kpi__label svg { width: 16px; height: 16px; }
.ds-kpi__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px var(--ds-space-2); margin-top: var(--ds-space-3); }
.ds-kpi__head + .ds-kpi__value, .ds-kpi__label + .ds-kpi__value { margin-top: var(--ds-space-2); }
/* Número grande: algarismos proporcionais (tabular só em colunas). */
.ds-kpi__value { display: block; font-size: var(--ds-text-xl); font-weight: var(--ds-weight-black); color: var(--ds-heading); letter-spacing: -.02em; white-space: nowrap; line-height: 1.15; }
.ds-kpi__hint { display: block; margin-top: var(--ds-space-1); color: var(--ds-text-muted); font-size: var(--ds-text-xs); overflow-wrap: anywhere; }
.ds-kpi__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-2); margin: var(--ds-space-3) calc(-1 * var(--ds-space-4)) calc(-1 * var(--ds-space-4));
  padding: var(--ds-space-3) var(--ds-space-4); border-top: 1px solid var(--ds-border); color: var(--ds-text-muted); font-size: var(--ds-text-sm); text-decoration: none; }
.ds-kpi > .ds-kpi__foot { margin-top: auto; }
.ds-kpi__foot svg { width: 18px; height: 18px; color: var(--ds-gray-700); flex-shrink: 0; }
a.ds-kpi__foot:hover { color: var(--ds-text); background: var(--ds-gray-25); border-radius: 0 0 var(--ds-radius-lg) var(--ds-radius-lg); }
/* O rodapé desce para a base do card (cards da mesma linha ficam alinhados). */
.ds-kpi > :has(+ .ds-kpi__foot) { margin-bottom: var(--ds-space-4); }

.ds-kpi--hero { background: linear-gradient(150deg, var(--ds-navy-950) 0%, var(--ds-navy-900) 60%, var(--ds-navy-800) 100%); border-color: transparent; color: #fff; box-shadow: 0 10px 30px rgba(3,40,84,.25); }
.ds-kpi--hero .ds-kpi__label, .ds-kpi--hero .ds-kpi__hint, .ds-kpi--hero .ds-kpi__foot { color: rgba(255,255,255,.72); }
.ds-kpi--hero .ds-kpi__icon { background: rgba(255,255,255,.12); color: var(--ds-gold-400); }
.ds-kpi--hero .ds-kpi__value { color: #fff; font-size: var(--ds-text-3xl); }
.ds-kpi--hero .ds-kpi__foot { border-top-color: rgba(255,255,255,.14); }
.ds-kpi--hero .ds-kpi__foot svg { color: #fff; }
.ds-kpi--hero a.ds-kpi__foot:hover { background: rgba(255,255,255,.06); color: #fff; }
.ds-kpi--hero .ds-money--neg { color: #fca5a5; }
.ds-kpi--hero .ds-money--in { color: #86efac; }
.ds-kpi--hero .ds-delta.is-good { color: #86efac; } .ds-kpi--hero .ds-delta.is-bad { color: #fca5a5; } .ds-kpi--hero .ds-delta { color: rgba(255,255,255,.75); }
.ds-kpi--empty .ds-kpi__value { color: var(--ds-text-subtle); }
@media (min-width: 900px) { .ds-kpi__value { font-size: var(--ds-text-2xl); } .ds-kpi--hero .ds-kpi__value { font-size: 2.5rem; } }
/* KPI estreito (grade de 2 no celular, 4 no desktop): o valor nunca quebra "R$" da cifra */
@container (max-width: 260px) { .ds-kpi--hero .ds-kpi__value { font-size: var(--ds-text-2xl); } }
@container (max-width: 190px) { .ds-kpi__value { font-size: var(--ds-text-lg); } .ds-kpi--hero .ds-kpi__value { font-size: var(--ds-text-xl); } }
@container (max-width: 150px) { .ds-kpi__icon { display: none; } }

/* ---- Variação (delta): direção na seta, bom/ruim na cor, sempre com o número ---- */
.ds-delta { display: inline-flex; align-items: center; gap: 2px; font-size: var(--ds-text-sm); font-weight: var(--ds-weight-bold); color: var(--ds-text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ds-delta svg { width: 15px; height: 15px; }
.ds-delta.is-good { color: var(--ds-success); }
.ds-delta.is-bad { color: var(--ds-danger); }

/* ---- Atalho (tile) ---- */
.ds-tile { display: flex; align-items: center; gap: var(--ds-space-3); width: 100%; text-align: left; background: var(--ds-surface); border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg); padding: var(--ds-space-3) var(--ds-space-4); box-shadow: var(--ds-shadow-sm); color: inherit; text-decoration: none; cursor: pointer; font: inherit;
  transition: border-color var(--ds-dur), box-shadow var(--ds-dur); }
.ds-tile:hover { border-color: var(--ds-border-strong); box-shadow: var(--ds-shadow-md); }
.ds-tile__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--ds-navy-900); color: var(--ds-gold-400); }
.ds-tile__icon svg { width: 22px; height: 22px; }
.ds-tile__icon--soft { background: var(--ds-navy-50); color: var(--ds-primary); }
.ds-tile__icon--warning { background: var(--ds-warning-bg); color: var(--ds-warning); }
.ds-tile__icon--danger { background: var(--ds-danger-bg); color: var(--ds-danger); }
.ds-tile__body { flex: 1; min-width: 0; }
.ds-tile__body b { display: block; color: var(--ds-heading); font-weight: var(--ds-weight-bold); }
.ds-tile__body span { display: block; color: var(--ds-text-muted); font-size: var(--ds-text-sm); margin-top: 1px; }
.ds-tile > svg:last-child { width: 18px; height: 18px; color: var(--ds-text-subtle); flex-shrink: 0; }

/* ---- Lista (linhas dentro de um card) ---- */
.ds-list { background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); overflow: hidden; box-shadow: var(--ds-shadow-sm); }
.ds-list--plain { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.ds-row { display: flex; align-items: center; gap: var(--ds-space-3); width: 100%; padding: var(--ds-space-3) var(--ds-space-4); text-align: left;
  color: inherit; text-decoration: none; background: none; border: 0; font: inherit; min-height: 56px; }
.ds-row + .ds-row { border-top: 1px solid var(--ds-border); }
a.ds-row, button.ds-row { cursor: pointer; }
a.ds-row:hover, button.ds-row:hover { background: var(--ds-gray-25); }
.ds-row__icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--ds-gray-100); color: var(--ds-gray-700); }
.ds-row__icon svg { width: 18px; height: 18px; }
.ds-row__icon--in { background: var(--ds-success-bg); color: var(--ds-money-in); }
.ds-row__icon--warning { background: var(--ds-warning-bg); color: var(--ds-warning); }
.ds-row__icon--danger { background: var(--ds-danger-bg); color: var(--ds-danger); }
.ds-row__main { flex: 1; min-width: 0; }
.ds-row__title { display: block; font-weight: var(--ds-weight-semibold); color: var(--ds-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Metadados numa linha só, cortando o fim — no celular nunca vira uma lista de "·" quebrados. */
.ds-row__meta { display: flex; flex-wrap: nowrap; gap: 0; color: var(--ds-text-muted); font-size: var(--ds-text-sm); margin-top: 1px; white-space: nowrap; overflow: hidden; min-width: 0; }
.ds-row__meta > span { flex-shrink: 0; }
.ds-row__meta > span:last-child { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ds-row__meta--wrap { flex-wrap: wrap; white-space: normal; }
.ds-row__meta > span + span::before { content: "·"; margin: 0 6px; color: var(--ds-text-subtle); }
.ds-row__end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; text-align: right; }
.ds-row > svg:last-child { width: 18px; height: 18px; color: var(--ds-text-subtle); flex-shrink: 0; }
.ds-list__head { padding: var(--ds-space-2) var(--ds-space-4); background: var(--ds-gray-25); border-bottom: 1px solid var(--ds-border); }
.ds-row + .ds-list__head, .ds-list__head + .ds-list__head { border-top: 1px solid var(--ds-border); }

/* ---- Tabela (vira cards no celular com data-label) ---- */
.ds-table-wrap { background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); box-shadow: var(--ds-shadow-sm); overflow-x: auto; }
.ds-table { width: 100%; border-collapse: collapse; font-size: var(--ds-text-sm); }
.ds-table th { text-align: left; font-size: var(--ds-text-xs); font-weight: var(--ds-weight-bold); letter-spacing: .04em; text-transform: uppercase; color: var(--ds-text-muted);
  background: var(--ds-gray-25); padding: var(--ds-space-2) var(--ds-space-3); border-bottom: 1px solid var(--ds-border); white-space: nowrap; position: sticky; top: 0; }
.ds-table td { padding: var(--ds-space-3); border-bottom: 1px solid var(--ds-border); vertical-align: middle; }
.ds-table tr:last-child td { border-bottom: 0; }
.ds-table tbody tr[data-href], .ds-table tbody tr.is-clickable { cursor: pointer; }
.ds-table tbody tr:hover td { background: var(--ds-gray-25); }
.ds-table .is-num, .ds-table th.is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-table .is-main { font-weight: var(--ds-weight-semibold); color: var(--ds-text); }
.ds-table tfoot td { font-weight: var(--ds-weight-bold); background: var(--ds-gray-25); border-top: 1px solid var(--ds-border); }
@media (max-width: 699px) {
  .ds-table--stack thead { display: none; }
  .ds-table--stack, .ds-table--stack tbody, .ds-table--stack tr, .ds-table--stack td { display: block; width: 100%; }
  .ds-table--stack tr { padding: var(--ds-space-3) var(--ds-space-4); border-bottom: 1px solid var(--ds-border); }
  .ds-table--stack tr:last-child { border-bottom: 0; }
  .ds-table--stack td { border: 0; padding: 2px 0; display: flex; justify-content: space-between; gap: var(--ds-space-3); text-align: right; }
  .ds-table--stack td::before { content: attr(data-label); color: var(--ds-text-muted); font-weight: var(--ds-weight-medium); text-align: left; }
  .ds-table--stack td.is-main { display: block; text-align: left; font-size: var(--ds-text-md); margin-bottom: 4px; }
  .ds-table--stack td.is-main::before { display: none; }
  .ds-table--stack tbody tr:hover td { background: none; }
}

/* ---- Chave–valor (detalhes e demonstrativos) ---- */
.ds-dl { display: grid; }
.ds-dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--ds-space-3); padding: 10px 0; border-top: 1px solid var(--ds-border); }
.ds-dl > div:first-child { border-top: 0; }
.ds-dl dt { color: var(--ds-text-muted); min-width: 0; }
.ds-dl dt small { display: block; font-size: var(--ds-text-xs); color: var(--ds-text-subtle); }
.ds-dl dd { margin: 0; font-weight: var(--ds-weight-semibold); color: var(--ds-text); text-align: right; font-variant-numeric: tabular-nums; }
.ds-dl .is-total { border-top: 2px solid var(--ds-border-strong); padding-top: var(--ds-space-3); }
.ds-dl .is-total dt { color: var(--ds-heading); font-weight: var(--ds-weight-bold); }
.ds-dl .is-total dd { font-size: var(--ds-text-lg); font-weight: var(--ds-weight-black); color: var(--ds-heading); }
.ds-dl dd.ds-money--in { color: var(--ds-money-in); }
.ds-dl dd.ds-money--neg { color: var(--ds-money-neg); }
.ds-dl--stacked > div { display: grid; gap: 2px; }
.ds-dl--stacked dt { font-size: var(--ds-text-xs); font-weight: var(--ds-weight-bold); letter-spacing: .04em; text-transform: uppercase; }
.ds-dl--stacked dd { text-align: left; font-weight: var(--ds-weight-regular); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- Status (texto com ponto) e badge (contador) ---- */
.ds-status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: var(--ds-radius-pill); font-size: var(--ds-text-xs); font-weight: var(--ds-weight-bold);
  background: var(--ds-gray-100); color: var(--ds-gray-700); white-space: nowrap; line-height: 1.5; }
.ds-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.ds-status--plain::before { display: none; }
.ds-status--info { background: var(--ds-info-bg); color: var(--ds-info); }
.ds-status--success { background: var(--ds-success-bg); color: var(--ds-success); }
.ds-status--warning { background: var(--ds-warning-bg); color: var(--ds-warning); }
.ds-status--danger { background: var(--ds-danger-bg); color: var(--ds-danger); }
.ds-status--outline { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.ds-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--ds-radius-pill); background: var(--ds-accent); color: #fff; font-size: .6875rem; font-weight: var(--ds-weight-black); font-variant-numeric: tabular-nums; }
.ds-badge--muted { background: var(--ds-gray-200); color: var(--ds-gray-700); }

/* ---- Dinheiro ---- */
.ds-money { font-weight: var(--ds-weight-bold); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ds-money-out); }
.ds-money--in { color: var(--ds-money-in); }
.ds-money--neg { color: var(--ds-money-neg); }
.ds-money--muted { color: var(--ds-text-muted); font-weight: var(--ds-weight-semibold); }

/* ---- Progresso ---- */
.ds-progress { height: 8px; border-radius: var(--ds-radius-pill); background: var(--ds-gray-100); overflow: hidden; }
.ds-progress > span { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: var(--ds-success); }
.ds-progress--sm { height: 5px; }

/* ---- Barra de composição (para onde foi o dinheiro) ---- */
.ds-split { display: flex; gap: 2px; height: 10px; border-radius: var(--ds-radius-pill); overflow: hidden; background: var(--ds-gray-100); }
.ds-split > span { min-width: 3px; }
.ds-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: var(--ds-space-2); font-size: var(--ds-text-sm); color: var(--ds-text-muted); }
.ds-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.ds-legend i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.ds-legend b { color: var(--ds-text); font-weight: var(--ds-weight-bold); font-variant-numeric: tabular-nums; }

/* ---- Avatar ---- */
.ds-avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--ds-navy-900); color: #fff; font-size: .6875rem; font-weight: var(--ds-weight-black); }
.ds-avatar--sm { width: 20px; height: 20px; font-size: .5625rem; }
.ds-avatar--lg { width: 64px; height: 64px; font-size: 1.25rem; }

/* ---- Painel (card de dashboard): título + subtítulo + ação à direita, corpo que cresce ----
   <section class="ds-panel"><header class="ds-panel__head"><div><h2>Título</h2><p>Subtítulo</p></div>…ação…</header>
     <div class="ds-panel__body">…</div></section> */
.ds-panel { display: flex; flex-direction: column; min-width: 0; background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); box-shadow: var(--ds-shadow-sm); padding: var(--ds-space-4); }
@media (min-width: 900px) { .ds-panel { padding: var(--ds-space-5); } }
.ds-panel__head { display: flex; align-items: flex-start; gap: var(--ds-space-3); margin-bottom: var(--ds-space-4); }
.ds-panel__head > div { flex: 1; min-width: 0; }
.ds-panel__head h2 { font-size: var(--ds-text-lg); font-weight: var(--ds-weight-bold); display: flex; align-items: center; gap: 8px; }
.ds-panel__head p { color: var(--ds-text-muted); font-size: var(--ds-text-sm); margin-top: 2px; }
.ds-panel__head .ds-select { width: auto; min-height: 36px; border-radius: var(--ds-radius-pill); font-size: var(--ds-text-sm); font-weight: var(--ds-weight-semibold);
  background-color: var(--ds-gray-50); border-color: transparent; color: var(--ds-gray-700); padding-left: 14px; }
.ds-panel__body { flex: 1; min-width: 0; }
/* Lista que encosta nas bordas do painel */
.ds-panel__body > .ds-list--plain { margin: -8px calc(-1 * var(--ds-space-4)); }
.ds-panel__body > .ds-list--plain .ds-row { padding-left: var(--ds-space-4); padding-right: var(--ds-space-4); }
@media (min-width: 900px) {
  .ds-panel__body > .ds-list--plain { margin: -8px calc(-1 * var(--ds-space-5)); }
  .ds-panel__body > .ds-list--plain .ds-row { padding-left: var(--ds-space-5); padding-right: var(--ds-space-5); }
}

/* ---- Número grande de um painel (ex.: total do gráfico) ---- */
.ds-bignum b { display: block; font-size: var(--ds-text-3xl); font-weight: var(--ds-weight-black); color: var(--ds-heading); letter-spacing: -.03em; line-height: 1.1; }
.ds-bignum small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ds-text-muted); font-size: var(--ds-text-sm); margin-top: 4px; }
@media (min-width: 900px) { .ds-bignum b { font-size: 2.5rem; } }

/* ---- Faixa de números (média, melhor dia…): rola de lado no celular ---- */
.ds-stats { display: flex; gap: var(--ds-space-2); margin: var(--ds-space-4) calc(-1 * var(--ds-space-4)) var(--ds-space-2); padding: 0 var(--ds-space-4); overflow-x: auto; scrollbar-width: none; }
.ds-stats::-webkit-scrollbar { display: none; }
.ds-stats > div { flex: 1 0 auto; min-width: 118px; background: var(--ds-gray-25); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-md); padding: 8px 12px; }
.ds-stats dt { font-size: var(--ds-text-xs); color: var(--ds-text-muted); font-weight: var(--ds-weight-semibold); }
.ds-stats dd { margin: 2px 0 0; font-weight: var(--ds-weight-bold); color: var(--ds-text); white-space: nowrap; font-size: var(--ds-text-md); }
.ds-stats:first-child { margin-top: 0; }
@media (min-width: 900px) { .ds-stats { margin-left: 0; margin-right: 0; padding: 0; } }

/* ---- Ranking / composição com barra (campanhas, contas, operações) ---- */
.ds-rank { display: grid; gap: var(--ds-space-4); }
.ds-rank__row { display: flex; gap: 10px; align-items: flex-start; color: inherit; text-decoration: none; }
a.ds-rank__row:hover .ds-rank__top b:first-child { text-decoration: underline; }
.ds-rank__n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: #fff; font-size: .6875rem; font-weight: var(--ds-weight-black); flex-shrink: 0; }
.ds-rank__main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.ds-rank__top { display: flex; justify-content: space-between; gap: 10px; }
.ds-rank__top b:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ds-text); font-weight: var(--ds-weight-semibold); }
.ds-rank__top b:last-child { white-space: nowrap; font-weight: var(--ds-weight-bold); }
.ds-rank__sub { display: flex; justify-content: space-between; gap: 10px; color: var(--ds-text-muted); font-size: var(--ds-text-xs); }

/* ---- Grade de KPIs de dashboard: 2 no celular, 4 a partir de 1000px ---- */
.ds-kpis { display: grid; gap: var(--ds-space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ds-kpis > * { min-width: 0; }
@media (min-width: 1000px) { .ds-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ds-space-4); } }
@media (min-width: 700px) { .ds-kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 699px) { .ds-kpis--3 > :first-child { grid-column: 1 / -1; } }
/* Espaço entre as faixas de um dashboard */
.ds-rows { display: grid; gap: var(--ds-space-4); }
.ds-rows > * { min-width: 0; }
@media (min-width: 900px) { .ds-rows { gap: var(--ds-space-5); } .ds-rows > .ds-grid { gap: var(--ds-space-5); } }

/* =============================================================
   Retorno ao usuário: aviso, vazio, carregando, folha/modal, toast,
   e gráficos (classes para SVG desenhado no tamanho real).
   ============================================================= */

/* ---- Aviso (inline, dentro da página) ---- */
.ds-alert { display: flex; gap: var(--ds-space-3); align-items: flex-start; padding: var(--ds-space-3) var(--ds-space-4); border-radius: var(--ds-radius-lg);
  border: 1px solid var(--ds-info-border); background: var(--ds-info-bg); color: var(--ds-info); }
.ds-alert > svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.ds-alert__body { flex: 1; min-width: 0; font-size: var(--ds-text-sm); color: var(--ds-text); }
.ds-alert__body b { display: block; color: inherit; font-size: var(--ds-text-md); }
.ds-alert__title { display: block; font-weight: var(--ds-weight-bold); font-size: var(--ds-text-md); color: var(--ds-alert-title, var(--ds-info)); }
.ds-alert .ds-actions { margin-top: var(--ds-space-2); }
.ds-alert--success { border-color: var(--ds-success-border); background: var(--ds-success-bg); color: var(--ds-success); --ds-alert-title: var(--ds-success); }
.ds-alert--warning { border-color: var(--ds-warning-border); background: var(--ds-warning-bg); color: var(--ds-warning); --ds-alert-title: var(--ds-warning); }
.ds-alert--danger  { border-color: var(--ds-danger-border);  background: var(--ds-danger-bg);  color: var(--ds-danger);  --ds-alert-title: var(--ds-danger); }

/* ---- Vazio ---- */
.ds-empty { text-align: center; padding: var(--ds-space-10) var(--ds-space-4); color: var(--ds-text-muted); }
.ds-empty > svg { width: 40px; height: 40px; color: var(--ds-text-subtle); margin-bottom: var(--ds-space-3); }
.ds-empty b { display: block; color: var(--ds-heading); font-size: var(--ds-text-lg); margin-bottom: var(--ds-space-1); }
.ds-empty p { max-width: 360px; margin: 0 auto; font-size: var(--ds-text-sm); }
.ds-empty .ds-actions { justify-content: center; margin-top: var(--ds-space-4); }
.ds-empty--boxed { border: 1px dashed var(--ds-border-strong); border-radius: var(--ds-radius-lg); background: var(--ds-surface); }

/* ---- Carregando ---- */
.ds-skeleton { display: block; border-radius: var(--ds-radius-sm); min-height: 1em;
  background: linear-gradient(90deg, var(--ds-gray-100) 25%, var(--ds-gray-50) 50%, var(--ds-gray-100) 75%) 0 0 / 200% 100%; animation: ds-shimmer 1.2s infinite linear; }
@keyframes ds-shimmer { to { background-position: -200% 0; } }
.ds-spinner { display: inline-block; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ds-gray-300); border-right-color: var(--ds-primary); animation: ds-spin .7s linear infinite; }

/* ---- Folha (bottom sheet no celular, modal centralizado no desktop) ----
   <div class="ds-sheet-wrap" role="dialog" aria-modal="true"><div class="ds-sheet">
     <div class="ds-sheet__head"><h2>…</h2><button class="ds-icon-btn">x</button></div>
     <div class="ds-sheet__body">…</div><div class="ds-sheet__foot">…</div></div></div> */
.ds-sheet-wrap { position: fixed; inset: 0; z-index: var(--ds-z-overlay); background: rgba(11,19,43,.5); display: flex; align-items: flex-end; justify-content: center; animation: ds-fade var(--ds-dur) ease-out; }
.ds-sheet { width: 100%; max-width: 640px; max-height: 92vh; display: flex; flex-direction: column; background: var(--ds-surface); border-radius: var(--ds-radius-xl) var(--ds-radius-xl) 0 0;
  box-shadow: var(--ds-shadow-lg); animation: ds-rise .2s var(--ds-ease); overscroll-behavior: contain; }
.ds-sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--ds-gray-300); margin: 8px auto 0; flex-shrink: 0; }
.ds-sheet__head { display: flex; align-items: flex-start; gap: var(--ds-space-3); padding: var(--ds-space-3) var(--ds-space-5) var(--ds-space-3); }
.ds-sheet__head h2 { flex: 1; min-width: 0; font-size: var(--ds-text-lg); font-weight: var(--ds-weight-black); padding-top: 8px; }
.ds-sheet__head p { color: var(--ds-text-muted); font-size: var(--ds-text-sm); margin-top: 2px; }
.ds-sheet__body { padding: 0 var(--ds-space-5) var(--ds-space-5); overflow-y: auto; flex: 1; }
.ds-sheet__foot { display: flex; flex-wrap: wrap; gap: var(--ds-space-2); padding: var(--ds-space-3) var(--ds-space-5) calc(env(safe-area-inset-bottom) + var(--ds-space-3)); border-top: 1px solid var(--ds-border); }
.ds-sheet__foot .ds-btn { flex: 1 1 140px; }
.ds-sheet--wide { max-width: 880px; }
@media (min-width: 700px) {
  .ds-sheet-wrap { align-items: center; padding: var(--ds-space-6); }
  .ds-sheet { border-radius: var(--ds-radius-xl); max-height: 86vh; }
  .ds-sheet::before { display: none; }
  .ds-sheet__head { padding-top: var(--ds-space-4); }
  .ds-sheet__foot { justify-content: flex-end; padding-bottom: var(--ds-space-3); }
  .ds-sheet__foot .ds-btn { flex: 0 0 auto; }
}
@keyframes ds-fade { from { opacity: 0; } }
@keyframes ds-rise { from { transform: translateY(24px); opacity: 0; } }

/* ---- Toast ---- */
.ds-toast { position: fixed; z-index: var(--ds-z-toast); left: 50%; transform: translateX(-50%); bottom: calc(var(--ds-tabbar-h) + env(safe-area-inset-bottom) + var(--ds-space-3));
  display: flex; align-items: center; gap: var(--ds-space-2); max-width: calc(100% - 32px); padding: 11px 16px; border-radius: var(--ds-radius-md);
  background: var(--ds-navy-950); color: #fff; font-weight: var(--ds-weight-semibold); font-size: var(--ds-text-sm); box-shadow: var(--ds-shadow-lg); animation: ds-rise .2s var(--ds-ease); }
.ds-toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.ds-toast--danger { background: var(--ds-danger); }
.ds-toast--success svg { color: #4ade80; }
@media (min-width: 900px) { .ds-toast { bottom: var(--ds-space-6); } }

/* ---- Gráficos (SVG) ----
   Desenhe o SVG no tamanho real do container (width = clientWidth), sem
   viewBox esticando, para o texto do eixo ficar sempre com 11–12px. */
.ds-viz { position: relative; }
.ds-viz svg { display: block; width: 100%; height: auto; overflow: visible; }
.ds-viz__grid { stroke: var(--ds-viz-grid); stroke-width: 1; shape-rendering: crispEdges; }
.ds-viz__axis { fill: var(--ds-viz-axis); font-size: 11px; font-family: var(--ds-font); font-variant-numeric: tabular-nums; }
.ds-viz__hit { fill: transparent; cursor: pointer; }
.ds-viz__hit:hover, .ds-viz__hit.is-active { fill: rgba(11,19,43,.04); }
.ds-viz__tip { position: absolute; top: 0; min-width: 170px; background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-md);
  box-shadow: var(--ds-shadow-lg); padding: var(--ds-space-2) var(--ds-space-3); font-size: var(--ds-text-sm); pointer-events: none; z-index: 2; }
.ds-viz__tip b { display: block; margin-bottom: 2px; }
.ds-viz__tip i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ds-viz-table summary { cursor: pointer; color: var(--ds-text-muted); font-size: var(--ds-text-sm); margin-top: var(--ds-space-2); }

/* ---- Gráfico de área/linha (charts.js → dsAreaChart) ---- */
.ds-chart { position: relative; width: 100%; user-select: none; -webkit-user-select: none; }
.ds-chart svg { display: block; overflow: visible; }
.ds-chart__grid { stroke: var(--ds-viz-grid); stroke-width: 1; shape-rendering: crispEdges; }
.ds-chart__base { stroke: var(--ds-border); stroke-width: 1; shape-rendering: crispEdges; }
.ds-chart__axis { fill: var(--ds-text-muted); font-size: 12px; font-family: var(--ds-font); font-variant-numeric: tabular-nums; }
.ds-chart__xlabel { transition: fill var(--ds-dur); }
.ds-chart__xlabel.is-active { fill: var(--ds-heading); font-weight: var(--ds-weight-bold); }
.ds-chart__guide { stroke: var(--ds-viz-1); stroke-width: 1.5; stroke-dasharray: 2 4; stroke-linecap: round; opacity: .55; }
/* Arrastar na horizontal lê o gráfico; na vertical a página continua rolando. */
.ds-chart__hit { touch-action: pan-y; cursor: crosshair; outline: none; }
.ds-chart__hit:focus-visible { stroke: var(--ds-focus); stroke-width: 2; }
/* Balão fixo sobre o ponto, na cor da marca, com setinha. */
.ds-chart__tip { position: absolute; z-index: 2; min-width: 132px; max-width: 250px; pointer-events: none;
  background: var(--ds-viz-tip); color: #fff; border-radius: var(--ds-radius-md); padding: 8px 12px 9px;
  box-shadow: 0 10px 24px rgba(75,47,224,.32); font-size: var(--ds-text-sm); transition: left .12s var(--ds-ease), top .12s var(--ds-ease); }
.ds-chart__tip::after { content: ""; position: absolute; left: var(--caret, 50%); bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.ds-chart__tip[data-side="left"]::after, .ds-chart__tip[data-side="right"]::after { left: auto; bottom: auto; top: var(--caret); transform: translateY(-50%) rotate(45deg); }
.ds-chart__tip[data-side="left"]::after { right: -5px; }
.ds-chart__tip[data-side="right"]::after { left: -5px; }
.ds-chart__tip-title { color: rgba(255,255,255,.72); font-size: var(--ds-text-xs); font-weight: var(--ds-weight-medium); margin-bottom: 1px; }
.ds-chart__tip-row { display: flex; align-items: center; gap: 8px; line-height: 1.45; }
.ds-chart__tip-row.is-main b { font-size: var(--ds-text-md); }
.ds-chart__tip-row i { width: 12px; height: 4px; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 0 1.5px rgba(255,255,255,.95); }   /* chave em traço, não em caixa */
.ds-chart__tip-row b { font-variant-numeric: tabular-nums; font-weight: var(--ds-weight-bold); }
.ds-chart__tip-row span { color: rgba(255,255,255,.72); }
.ds-chart__tip-extra { display: flex; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.7); font-size: var(--ds-text-xs); margin-top: 1px; }
.ds-chart__tip-extra:first-of-type { margin-top: 5px; padding-top: 5px; border-top: 1px solid rgba(255,255,255,.16); }

/* Cabeçalho do gráfico: rótulo, número grande, variação e seletor de período. */
.ds-chart-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--ds-space-3); margin-bottom: var(--ds-space-2); }
.ds-chart-head__main { flex: 1 1 200px; min-width: 0; }
.ds-chart-head__main > span { display: block; color: var(--ds-text-muted); font-size: var(--ds-text-sm); font-weight: var(--ds-weight-medium); }
.ds-chart-head__main > b { display: block; font-size: var(--ds-text-2xl); font-weight: var(--ds-weight-black); color: var(--ds-heading); letter-spacing: -.02em; margin-top: 2px; line-height: 1.15; }
.ds-chart-head__main > small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--ds-text-muted); font-size: var(--ds-text-sm); margin-top: 4px; }
.ds-chart-head .ds-select { width: auto; min-height: 36px; border-radius: var(--ds-radius-pill); font-size: var(--ds-text-sm); font-weight: var(--ds-weight-semibold); background-color: var(--ds-gray-50); border-color: transparent; color: var(--ds-gray-700); padding-left: 14px; }
@media (min-width: 900px) { .ds-chart-head__main > b { font-size: 2.25rem; } }

/* ---- Rosca (charts.js → dsDonut): anel grosso, % dentro da fatia, disco central em relevo ---- */
.ds-donut { container-type: inline-size; display: grid; gap: var(--ds-space-5); align-items: center; justify-items: center; }
.ds-donut__fig { position: relative; width: min(240px, 78%); aspect-ratio: 1; }
.ds-donut__fig svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ds-donut__seg { transition: opacity var(--ds-dur); cursor: pointer; }
.ds-donut__seg.is-dim { opacity: .28; }
.ds-donut__pct { fill: #fff; font-size: 11px; font-weight: var(--ds-weight-bold); font-family: var(--ds-font); pointer-events: none; }
.ds-donut__center { position: absolute; inset: 21.5%; border-radius: 50%; background: var(--ds-surface); display: grid; place-content: center; text-align: center; pointer-events: none;
  box-shadow: 0 6px 18px rgba(11,19,43,.12), inset 0 0 0 1px var(--ds-gray-100); }
.ds-donut__center b { display: block; font-size: var(--ds-text-xl); font-weight: var(--ds-weight-black); color: var(--ds-heading); letter-spacing: -.02em; white-space: nowrap; padding: 0 6px; }
.ds-donut__center span { display: block; font-size: var(--ds-text-xs); color: var(--ds-text-muted); margin-top: 2px; padding: 0 10px; }
/* Legenda: uma linha por fatia (bolinha · nome · valor), nunca encavala números grandes. */
.ds-donut__legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; width: 100%; }
.ds-donut__legend li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; column-gap: 10px; padding: 9px 10px; border-radius: var(--ds-radius-md); cursor: default; }
.ds-donut__legend li:hover, .ds-donut__legend li:focus-visible { background: var(--ds-gray-50); outline: none; }
.ds-donut__name { grid-column: 2; grid-row: 1; color: var(--ds-text-muted); font-size: var(--ds-text-sm); min-width: 0; }
.ds-donut__val { display: contents; }
.ds-donut__val i { grid-column: 1; grid-row: 1; width: 12px; height: 12px; border-radius: 50%; }
.ds-donut__val b { grid-column: 3; grid-row: 1; font-size: var(--ds-text-lg); font-weight: var(--ds-weight-black); color: var(--ds-text); letter-spacing: -.01em; white-space: nowrap; }
@container (min-width: 440px) {
  .ds-donut { grid-template-columns: auto 1fr; justify-items: stretch; }
  .ds-donut__fig { width: 220px; }
}

/* ---- Animações dos gráficos (desligadas para quem prefere menos movimento) ---- */
.ds-anim-draw { animation: ds-draw 1.1s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes ds-draw { to { stroke-dashoffset: 0; } }
.ds-anim-area { transform-box: fill-box; transform-origin: bottom; animation: ds-area-in .9s cubic-bezier(.2,.7,.2,1) .25s both; }
@keyframes ds-area-in { from { opacity: 0; transform: scaleY(.6); } }
.ds-anim-pop { animation: ds-pop .35s cubic-bezier(.2,.9,.3,1.3) 1s both; }
@keyframes ds-pop { from { opacity: 0; transform: scale(.85); } }
.ds-chart__tip.ds-anim-pop { transform-origin: var(--caret, 50%) 100%; }
.ds-anim-sweep { animation: ds-sweep 1.1s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes ds-sweep { to { stroke-dashoffset: 0; } }
.ds-anim-fade { animation: ds-fade .4s ease 1s both; }
@media (prefers-reduced-motion: reduce) { .ds-anim-draw, .ds-anim-area, .ds-anim-pop, .ds-anim-sweep, .ds-anim-fade { animation: none !important; stroke-dashoffset: 0 !important; } }

/* ---- Barra de participação (ranking): trilho + barra na cor da série, cresce ao abrir ---- */
.ds-bar { height: 8px; border-radius: var(--ds-radius-pill); background: var(--ds-viz-track); overflow: hidden; min-width: 60px; }
.ds-bar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ds-viz-1); transition: width .9s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) { .ds-bar > span { transition: none; } }
.ds-chart__cross.ds-anim-pop { animation-name: ds-fade; }
