/* CRM v2 · direção de arte "Escuro premium Tokyo" (docs/crm/v2/06-design-visual.md).
   Camada final: carrega depois de styles.css, v2.css e screens-b.css. Só apresentação.
   Regras da casa: vermelho = ação principal ou estado crítico; roxo = IA; verde/âmbar/vermelho claro = semântica discreta. */

/* ——— 1. tokens ——— */
:root {
  /* superfícies em camadas */
  --bg: #0b0b0f;          /* tela */
  --side-bg: #0f0f14;     /* lateral */
  --card: #15151b;        /* cartão (elevação 1) */
  --surface: #1c1c24;     /* hover, cabeçalho de tabela, controles (elevação 2) */
  --raised: #20202a;      /* menus, diálogos, gavetas, paleta (elevação 3) */
  --well: #101015;        /* campos de texto (afundado) */
  --line: #24242d;        /* fio */
  --line-strong: #33333e;
  --field-line: #6b6b78;  /* borda de campo: 3,4:1 (WCAG 1.4.11) */
  --hover: rgba(255, 255, 255, 0.045);
  --active: rgba(255, 255, 255, 0.075);

  /* texto */
  --ink: #f2f2f5;         /* 16,3:1 no cartão */
  --muted: #a3a3ae;       /* 7,3:1 */
  --faint: #8e8e9b;       /* 5,6:1 */

  /* marca */
  --brand: #ff0f45;
  --brand-press: #e00a3b; /* fundo do botão principal: branco 4,9:1 */
  --brand-ink: #ff5c7f;   /* vermelho como texto: 6,1:1 */
  --accent: #8b2be8;
  --accent-ink: #b98aff;  /* roxo como texto: 7,0:1 */
  --accent-bg: rgba(139, 43, 232, 0.14);
  --accent-line: rgba(185, 138, 255, 0.32);

  /* semântica discreta */
  --ok: #4ade80;
  --warn: #f5b45e;
  --danger: #f87171;
  --info: #7cc4fa;
  --ok-bg: rgba(74, 222, 128, 0.1);
  --warn-bg: rgba(245, 180, 94, 0.1);
  --danger-bg: rgba(248, 113, 113, 0.1);
  --info-bg: rgba(124, 196, 250, 0.1);
  --crit-bg: rgba(255, 15, 69, 0.09);
  --crit-line: rgba(255, 92, 127, 0.38);

  /* gráficos */
  --viz-1: #5b6b8c;       /* série de volume (cadastros) */
  --viz-2: #7cc4fa;       /* série de resultado (FTD) */
  --viz-3: #f5b45e;       /* custo */

  /* forma */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --hi: inset 0 1px 0 rgba(255, 255, 255, 0.035); /* brilho de borda superior das superfícies */

  /* foco neutro (o vermelho fica para ação e erro) */
  --focus-c: #d6d6e0;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--focus-c);

  --ctl-h: 36px;
  --ctl-h-sm: 30px;
  --font: "Inter", system-ui, sans-serif;
}

/* ——— 2. base e superfícies do navegador ——— */
html { background: var(--bg); }
body {
  background: var(--bg);
  font-size: var(--fs-md);
  line-height: 1.45;
  font-optical-sizing: auto;
  font-feature-settings: "cv05", "cv08";
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(124, 196, 250, 0.3); color: var(--ink); }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
input, textarea { caret-color: var(--ink); }
.num, .hoje-kpi-v, .v2-count, .side-count, .tb-bell-n { font-variant-numeric: tabular-nums; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { box-shadow: var(--focus); outline: none; }
:where(button, a, summary, [tabindex]):focus-visible { outline: none; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.v2-view a:not(.btn):not(.v2-tab):not(.side-link):not(.hoje-kpi-v):not(.tb-notif-act) { text-decoration-color: var(--line-strong); }
.v2-view a:not(.btn):hover { text-decoration-color: currentColor; }

/* ——— 3. botões ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: var(--ctl-h); padding: 0 0.9rem;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.005em; line-height: 1.1;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.1s var(--ease);
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn .icon { width: 16px; height: 16px; }
.btn.sm { min-height: var(--ctl-h-sm); padding: 0 0.65rem; font-size: var(--fs-sm); }
.btn.primary { background: var(--brand-press); color: #fff; box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.btn.primary:hover:not(:disabled) { background: #c70833; }
.btn.primary:disabled, .btn.primary:disabled:hover { background: var(--surface); color: var(--faint); border-color: var(--line); box-shadow: none; }
.btn.primary.danger { background: #b91c1c; }
.btn.primary.danger:hover:not(:disabled) { background: #991b1b; }
.btn.ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); box-shadow: var(--hi); }
.btn.ghost:hover:not(:disabled) { background: #262630; border-color: #42424e; }
.btn.ghost.strong { border-color: #4a4a57; }
.btn.text { min-height: 0; padding: 0.25rem 0.35rem; border: 0; background: none; color: var(--ink); font-size: var(--fs-sm); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.btn.text:hover { text-decoration-color: currentColor; background: none; }
.btn.text.danger-text { color: var(--danger); }
.btn.ai { background: var(--accent-bg); border-color: var(--accent-line); color: var(--accent-ink); box-shadow: none; }
.btn.ai:hover:not(:disabled) { background: rgba(139, 43, 232, 0.24); border-color: rgba(185, 138, 255, 0.5); color: #d3b6ff; }
.icon-btn { border-radius: var(--radius-sm); color: var(--muted); transition: background-color 0.15s var(--ease), color 0.15s var(--ease); }
.icon-btn:hover { background: var(--hover); color: var(--ink); }

/* ——— 4. campos ——— */
textarea,
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"],
select, .field select, .classify select, .ix-search {
  background-color: var(--well);
  border: 1px solid var(--field-line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"], select, .field select { min-height: var(--ctl-h); }
textarea:hover, input:not([type="checkbox"]):not([type="radio"]):hover, select:hover { border-color: #80808e; }
textarea:focus, input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, .ix-search:focus {
  outline: none; border-color: var(--focus-c); box-shadow: 0 0 0 3px rgba(214, 214, 224, 0.14);
}
::placeholder { color: var(--faint); opacity: 1; }
select {
  appearance: none; -webkit-appearance: none;
  padding-right: 2rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23a3a3ae' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.65rem center;
}
select option { background: var(--raised); color: var(--ink); }
input[type="checkbox"], input[type="radio"] { accent-color: #e6e6ec; }
.field span, .v2-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; color: var(--faint); }
.check, .tpl-inline { color: var(--muted); }

/* ——— 5. shell: lateral ——— */
.sidebar { background: var(--side-bg); border-right: 1px solid var(--line); }
@media (min-width: 900px) {
  .app.shell { background: linear-gradient(90deg, var(--side-bg) calc(var(--side-w) - 1px), var(--line) 0 var(--side-w), transparent 0); }
  .app.shell.side-collapsed { background: linear-gradient(90deg, var(--side-bg) calc(var(--side-w-mini) - 1px), var(--line) 0 var(--side-w-mini), transparent 0); }
}
.side-brand { padding: 0.9rem 0.75rem 0.9rem 1rem; }
.side-brand .mark { height: 28px; }
.side-nav { gap: 1.25rem; padding: 0.25rem 0.625rem 1rem; }
.side-group { gap: 1px; }
.side-link {
  height: 36px; padding: 0 0.7rem; gap: 0.7rem;
  border-radius: var(--radius-sm); color: var(--muted);
  font-size: var(--fs-md); font-weight: 500;
  transition: background-color 0.12s var(--ease), color 0.12s var(--ease);
}
.side-link .icon { width: 18px; height: 18px; color: var(--faint); }
.side-link:hover { background: var(--hover); color: var(--ink); }
.side-link:hover .icon { color: var(--muted); }
.side-link.on, .side-link[aria-current="page"] { background: var(--active); color: var(--ink); font-weight: 600; }
.side-link.on .icon, .side-link[aria-current="page"] .icon { color: var(--ink); }
.side-link.on::before, .side-link[aria-current="page"]::before { left: -0.625rem; top: 9px; bottom: 9px; width: 2px; border-radius: 0 2px 2px 0; background: var(--brand); }
.side-count { min-width: 20px; height: 18px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 0.6875rem; font-weight: 600; }
.side-count.ai { background: var(--accent-bg); color: var(--accent-ink); }
.side-count.dot { min-width: 0; width: 7px; height: 7px; padding: 0; background: var(--warn); }
.side-count:empty:not(.dot) { display: none; }
.side-foot { padding: 0.5rem 0.625rem 0.9rem; border-top: 1px solid var(--line); }
.side-label, .side-label.side-fold { color: var(--faint); font-size: 0.6875rem; letter-spacing: 0.08em; }
.fav-list a { padding: 0.4rem 0.65rem 0.4rem 2.1rem; }
.fav-list a:hover { background: var(--hover); }
.fav-list a[aria-current="page"] { background: var(--active); }

/* ——— 6. shell: barra superior ——— */
.topbar {
  gap: 0.5rem; padding: 0 1rem 0 1.25rem;
  background: rgba(11, 11, 15, 0.82);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.tb-search { height: 34px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--card); color: var(--faint); box-shadow: var(--hi); transition: border-color 0.15s var(--ease), color 0.15s var(--ease); }
.tb-search:hover { border-color: #4a4a57; color: var(--muted); }
.tb-search .icon { width: 16px; height: 16px; }
kbd { border-color: var(--line-strong); background: var(--surface); color: var(--faint); border-radius: 4px; font-size: 0.6875rem; font-weight: 500; line-height: 1.5; }
.tb-create .btn, #tbCreate .btn { height: 34px; min-height: 34px; }
.tb-create-btn .icon { width: 15px; height: 15px; }
.tb-health, .tb-balance { height: 32px; border-radius: var(--radius-sm); color: var(--muted); font-size: var(--fs-sm); }
.tb-health:hover, .tb-balance:hover { background: var(--hover); }
.tb-dot { width: 7px; height: 7px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04); }
.tb-health[data-tone="ok"] .tb-dot { box-shadow: 0 0 0 3px var(--ok-bg); }
.tb-health[data-tone="error"] { color: var(--danger); }
.tb-balance.credits { gap: 0.5rem; }
.tb-balance.credits span { color: var(--faint); font-weight: 600; letter-spacing: 0.06em; }
.tb-balance.credits strong { color: var(--ink); font-weight: 600; }
.tb-balance.credits.neg { background: var(--crit-bg); box-shadow: inset 0 0 0 1px var(--crit-line); }
.tb-balance.credits.neg strong { color: var(--brand-ink); }
.tb-copilot { height: 34px; min-height: 34px; gap: 0.4rem; padding: 0 0.7rem; }
.tb-copilot .icon { width: 16px; height: 16px; }
.tb-copilot kbd { background: transparent; color: var(--accent-ink); border-color: var(--accent-line); }
.tb-avatar { width: 32px; height: 32px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, #24242e, #1a1a22); color: var(--ink); font-size: 0.6875rem; letter-spacing: 0.02em; }
.tb-avatar:hover { border-color: #4a4a57; }

/* central de avisos */
.tb-bell { position: relative; width: 34px; height: 34px; }
.tb-bell .icon { width: 18px; height: 18px; }
.tb-bell-n { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; border: 2px solid var(--bg); background: var(--surface); color: var(--ink); font-size: 0.625rem; font-weight: 700; line-height: 1; }
.tb-bell-n:empty { display: none; }
.tb-bell[data-tone="error"] .tb-bell-n { background: var(--brand-press); color: #fff; }
.tb-bell[data-tone="warn"] .tb-bell-n { background: var(--warn); color: #1a1206; }
.tb-notif-panel { width: min(380px, calc(100vw - 1.5rem)); max-width: none; padding: 0; overflow: hidden; }
.tb-notif-head { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); font-size: var(--fs-md); font-weight: 650; }
.tb-notif-list { list-style: none; max-height: min(420px, 70vh); overflow-y: auto; }
.tb-notif-item { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 0.65rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); font-size: var(--fs-md); line-height: 1.4; }
.tb-notif-item:last-child { border-bottom: 0; }
.tb-notif-ic .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--info); }
.tb-notif-item[data-level="warn"] .tb-notif-ic .icon { color: var(--warn); }
.tb-notif-item[data-level="error"] .tb-notif-ic .icon { color: var(--brand-ink); }
.tb-notif-act { display: inline-block; margin-top: 0.35rem; color: var(--ink); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.tb-notif-act:hover { text-decoration: underline; }
.tb-notif-empty { padding: 1.25rem 1rem; color: var(--muted); font-size: var(--fs-md); }

/* ——— 7. página ——— */
.crumbs { margin: 1rem auto -0.5rem; font-size: var(--fs-sm); }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.v2-page { padding: 1.5rem 0 3.5rem; }
.v2-head { align-items: center; margin-bottom: 1.25rem; }
.v2-head h1, .rec-top h1 { font-size: 1.625rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.v2-sub { color: var(--muted); }

/* cartões: fio + brilho superior; sem sombra (a elevação aqui é a cor da superfície) */
.v2-card, .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--hi); }
.v2-card { padding: 1.125rem 1.25rem; }
.v2-card > h2, .v2-h2 {
  font-size: var(--fs-md); font-weight: 650; letter-spacing: -0.01em; text-transform: none; color: var(--ink);
  margin-bottom: 0.875rem;
}
.v2-card > h2 .btn.text { font-weight: 600; color: var(--muted); }

/* abas: sublinhado neutro (o vermelho não marca navegação) */
.v2-tabs, .subtabs { gap: 0.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; }
.v2-tab, .subtab { padding: 0.6rem 0.75rem; color: var(--muted); font-size: var(--fs-md); font-weight: 550; border-bottom-width: 2px; transition: color 0.12s var(--ease); }
.v2-tab:hover, .subtab:hover { color: var(--ink); }
.v2-tab.on, .subtab.on, button.v2-tab.on { color: var(--ink); font-weight: 650; border-bottom-color: var(--ink); }
.v2-count { min-width: 20px; height: 18px; padding: 0 6px; display: inline-grid; place-items: center; background: var(--surface); color: var(--muted); font-size: 0.6875rem; font-weight: 600; border-radius: 999px; }
.v2-tab.on .v2-count { background: var(--active); color: var(--ink); }

/* chips e controle segmentado */
.chip { min-height: 32px; padding: 0 0.75rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: transparent; color: var(--muted); font-size: var(--fs-sm); font-weight: 550; transition: background-color 0.12s var(--ease), color 0.12s var(--ease), border-color 0.12s var(--ease); }
.chip:hover { color: var(--ink); background: var(--hover); }
.chip.on, .chip[aria-pressed="true"] { background: var(--active); border-color: #4a4a57; color: var(--ink); font-weight: 600; }
.hoje-periods, .tpl-frow .chips { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.hoje-periods .chip { min-height: 28px; padding: 0 0.7rem; border: 0; border-radius: 7px; background: transparent; }
.hoje-periods .chip.on, .hoje-periods .chip[aria-pressed="true"] { background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-sm); }

/* selos */
.v2-status { height: 20px; padding: 0 0.45rem; border-radius: var(--radius-xs); font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.04em; background: var(--active); color: var(--muted); }
.v2-status[data-tone="danger"] { background: var(--danger-bg); color: var(--danger); }
.stage { height: 22px; padding: 0 0.55rem 0 0.45rem; font-size: 0.75rem; font-weight: 600; background: color-mix(in srgb, var(--c, var(--muted)) 12%, transparent); }
.stage::before { width: 6px; height: 6px; }
.pill { border-radius: var(--radius-xs); }

/* dicas */
.v2-tip-btn { width: 15px; height: 15px; border-color: var(--line-strong); color: var(--faint); font-size: 9px; }
.v2-tip-btn:hover { color: var(--ink); border-color: var(--muted); }
.v2-tip [role="tooltip"] { background: #f2f2f5; color: #121216; border-radius: var(--radius-xs); box-shadow: var(--shadow); line-height: 1.4; }

/* menus */
.v2-menu { background: var(--raised); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow); padding: 0.3rem; }
.v2-menu-item { min-height: 34px; padding: 0.45rem 0.65rem; border-radius: var(--radius-xs); }
.v2-menu-item:hover, .v2-menu-item:focus { background: var(--active); }
.v2-menu-item:focus-visible { box-shadow: inset 0 0 0 2px var(--focus-c); }

/* faixas: tingidas, fio fino, ícone com a cor do tipo (sem borda lateral grossa) */
.v2-banner, .v2-error {
  gap: 0.5rem 0.75rem; padding: 0.7rem 0.9rem; border-radius: 10px;
  background: var(--info-bg); border: 1px solid rgba(124, 196, 250, 0.22); color: var(--ink); font-size: var(--fs-md);
}
.v2-banner .icon, .v2-error .icon { width: 17px; height: 17px; color: var(--info); }
.v2-banner[data-kind="warn"] { background: var(--warn-bg); border-color: rgba(245, 180, 94, 0.26); }
.v2-banner[data-kind="warn"] .icon { color: var(--warn); }
.v2-banner[data-kind="error"], .v2-error { background: var(--crit-bg); border-color: var(--crit-line); }
.v2-banner[data-kind="error"] .icon, .v2-error .icon { color: var(--brand-ink); }
.v2-banner .btn.text, .v2-error .btn.text { white-space: nowrap; }
.note { border-radius: var(--radius-sm); }

/* estados */
.skeleton { border-radius: 6px; background: linear-gradient(90deg, #1a1a21 25%, #24242c 50%, #1a1a21 75%); background-size: 200% 100%; }
.v2-skel, .v2-skel-card { animation: v2-appear 0.01s linear 150ms both; } /* só aparece depois de 150 ms (não pisca) */
@keyframes v2-appear { from { opacity: 0; } to { opacity: 1; } }
.v2-skel { gap: 0; padding: 0; }
.v2-skel .skeleton { height: 10px; margin: 15px var(--cell-px); width: 70%; }
.v2-skel .skeleton:nth-child(3n + 1) { width: 85%; }
.v2-skel .skeleton:nth-child(4n + 2) { width: 48%; }
.v2-skel .skeleton:nth-child(5n + 3) { width: 60%; }
.ix-table-wrap > .v2-skel, .v2-card > .v2-skel { background: linear-gradient(var(--surface) 0 36px, transparent 36px); padding-top: 36px; }
.v2-skel-card .skeleton:first-child, .hoje-card > .skeleton:first-child { width: 42%; height: 10px; }
.v2-skel-card .skeleton:last-child, .hoje-card > .skeleton:last-child { width: 58%; height: 26px; margin-top: 0.6rem; }
.v2-empty .icon, .empty-state .icon { color: var(--faint); }
.empty-state h3 { font-size: var(--fs-md); font-weight: 650; }

/* toasts */
.v2-toast { padding: 0.7rem 0.5rem 0.7rem 0.9rem; gap: 0.6rem; background: var(--raised); border: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow); }
.v2-toast::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--info); box-shadow: 0 0 0 3px var(--info-bg); }
.v2-toast[data-kind="ok"]::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.v2-toast[data-kind="error"]::before { background: var(--brand-ink); box-shadow: 0 0 0 3px var(--crit-bg); }
.v2-toast .btn.text { color: var(--ink); }

/* diálogo, gaveta, paleta */
.v2-dialog::backdrop, .v2-drawer::backdrop, .v2-palette::backdrop { background: rgba(4, 4, 7, 0.68); backdrop-filter: blur(2px); }
.v2-dialog { padding: 1.5rem; background: var(--raised); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); }
.v2-dialog h2 { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.015em; }
.v2-dialog-actions { margin-top: 0.25rem; }
.v2-drawer { background: var(--raised); border-left: 1px solid var(--line-strong); box-shadow: -24px 0 48px -12px rgba(0, 0, 0, 0.55); }
.v2-drawer-head { padding: 1rem 1.25rem; }
.v2-drawer-head h2 { font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.015em; }
.v2-drawer-body { padding: 1.25rem; }
.v2-drawer-foot { padding: 0.85rem 1.25rem; background: rgba(0, 0, 0, 0.12); }
.v2-palette { background: var(--raised); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.7); }
.pal-top { padding: 0.85rem 1rem; }
.pal-input { font-size: 1rem; }
.pal-scope { padding: 0.5rem 1rem; }
.pal-scope button { min-height: 26px; border-color: var(--line-strong); }
.pal-scope button[aria-pressed="true"] { background: var(--active); border-color: #4a4a57; color: var(--ink); }
.pal-group { padding: 0.7rem 0.65rem 0.3rem; font-size: 0.6875rem; letter-spacing: 0.07em; }
.pal-item { min-height: 38px; border-radius: var(--radius-sm); }
.pal-item[aria-selected="true"] { background: var(--active); box-shadow: none; }
.pal-item[aria-selected="true"] .icon { color: var(--ink); }
.pal-foot { padding: 0.55rem 1rem; background: rgba(0, 0, 0, 0.14); }

/* medidor e prévia de SMS */
.v2-meter-bar { height: 4px; background: var(--line-strong); }
.v2-phone { padding: 0.85rem; border-radius: 22px; background: linear-gradient(180deg, #121218, #0d0d12); border-color: var(--line-strong); box-shadow: var(--hi); }
.v2-phone-bubble { background: #26262f; border-radius: 16px 16px 16px 5px; }

/* ——— 8. índice (tabelas) ——— */
.ix-bar { gap: 0.5rem; margin-bottom: 0.75rem; }
.ix-search { height: var(--ctl-h); padding: 0 0.75rem 0 2.1rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238e8e9b' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='7.3' cy='7.3' r='4.8'/%3E%3Cpath d='m14 14-3.2-3.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 0.7rem center; }
.ix-chip { height: 30px; border-color: var(--line-strong); background: var(--surface); }
.ix-meta { margin-bottom: 0.6rem; color: var(--muted); }
.ix-table-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--hi); }
.ix-table, .v2-table { font-size: var(--fs-sm); }
.ix-table th { height: 38px; background: #18181f; border-bottom: 1px solid var(--line); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; color: var(--faint); }
.ix-table thead th:first-child { border-top-left-radius: calc(var(--radius) - 1px); }
.ix-table thead th:last-child { border-top-right-radius: calc(var(--radius) - 1px); }
.ix-table td { height: 44px; border-bottom: 1px solid var(--line); color: var(--muted); }
.ix-dense .ix-table td { height: 34px; }
.ix-table tbody tr { transition: background-color 0.1s var(--ease); }
.ix-table tbody tr:hover { background: var(--hover); }
.ix-table tbody tr.sel { background: rgba(124, 196, 250, 0.06); }
.ix-table tbody tr.sel:hover { background: rgba(124, 196, 250, 0.09); }
.ix-table td.ix-name { color: var(--ink); font-weight: 550; }
.ix-table td .mono, .ix-table .mono { color: var(--muted); font-size: 0.8125rem; letter-spacing: -0.01em; }
.ix-table td .sub { color: var(--faint); }
.ix-sort .arrow { color: var(--faint); }
.ix-table input[type="checkbox"], .tpl-card-top input, .ag-queue li input { accent-color: #e6e6ec; }
.ix-bulk { background: var(--raised); border-color: var(--line-strong); border-radius: var(--radius); box-shadow: 0 -12px 32px -8px rgba(0, 0, 0, 0.55); }
.ix-panel { background: var(--raised); border-color: var(--line-strong); box-shadow: var(--shadow); }
.ix-cond { background: var(--card); border-color: var(--line); }
.ix-pager { color: var(--muted); }
.ix-card { padding: 0.85rem 1rem; }
.ix-card:hover { background: var(--hover); }
.v2-table th { font-size: 0.6875rem; font-weight: 600; color: var(--faint); border-bottom-color: var(--line); padding: 0.55rem 0.65rem; }
.v2-table td { padding: 0.6rem 0.65rem; border-bottom-color: var(--line); }
.v2-table tbody tr:hover { background: var(--hover); }
.v2-table tbody tr:last-child td, .v2-table tbody tr:last-child th { border-bottom: 0; }

/* ——— 9. registro (ficha) ——— */
.rec-head { gap: 0.6rem; margin-bottom: 1.25rem; }
.rec-sub { color: var(--muted); }
.rec-path { gap: 0; margin-top: 0.35rem; }
.rec-path li { color: var(--faint); font-size: var(--fs-sm); }
.rec-path li + li::before { width: 20px; height: 1px; background: var(--line-strong); }
.rec-path li.done { color: var(--muted); }
.rec-path li.done + li::before, .rec-path li.cur::before { background: var(--muted); }
.rec-path li.cur { color: var(--ink); font-size: 0.75rem; letter-spacing: 0.05em; }
.rec-guide { background: var(--card); border: 1px solid var(--line); color: var(--muted); border-radius: 10px; }
.rec-hl { gap: 0.75rem; margin-bottom: 1rem; }
.rec-hl > div { padding: 0.9rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--hi); }
.rec-hl .v { margin-top: 0.35rem; font-size: 1.25rem; font-weight: 650; letter-spacing: -0.015em; }
.rec-hl .s { color: var(--faint); }
.rec-grid { gap: 1rem; }
.rec-about dl { gap: 0.6rem; }
.rec-about dt { color: var(--faint); }
.rec-tl .day { padding: 1rem 0 0.4rem; font-size: 0.6875rem; letter-spacing: 0.07em; }
.rec-tl .ev { padding: 0.55rem 0; }
.rec-tl .ev::before { width: 7px; height: 7px; margin-top: 0.45rem; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--faint)) 16%, transparent); }
.rec-tl .ev[data-kind="signup"] { --c: var(--st-cadastro); }
.rec-tl .ev .m { background: var(--surface); border-radius: var(--radius-sm); }
.rec-assoc li a:hover { background: var(--hover); }
.rec-tl-filters .chip { min-height: 28px; }

/* ——— 10. formulários, segmentos, configurações ——— */
.v2-choice label { padding: 0.7rem 0.8rem; border-color: var(--line); border-radius: 10px; background: var(--card); transition: border-color 0.12s var(--ease), background-color 0.12s var(--ease); }
.v2-choice label:hover { border-color: var(--line-strong); }
.v2-choice label:has(input:checked) { border-color: #5a5a68; background: var(--surface); box-shadow: inset 0 0 0 1px #5a5a68; }
.sg-row { background: var(--card); border-color: var(--line); border-radius: 10px; }
.sg-row.locked { background: var(--surface); }
.sg-big { font-size: 2rem; font-weight: 650; letter-spacing: -0.03em; }
.cfg-nav a { height: 36px; padding: 0 0.7rem; color: var(--muted); font-weight: 500; }
.cfg-nav a:hover { background: var(--hover); }
.cfg-nav a[aria-current="page"] { background: var(--active); color: var(--ink); font-weight: 600; }
.cfg-kv div strong { font-size: 1rem; }
.cfg-rules li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); transform: translateY(-2px); }
.cfg-spark i { background: var(--viz-1); opacity: 1; }

/* ——— 11. Hoje e relatórios ——— */
.hoje-head { align-items: flex-end; margin-bottom: 1.25rem; }
.hoje-subline { gap: 0.25rem 0.5rem; }
.hoje-today { color: var(--muted); }
.hoje-stamp { color: var(--faint); }
.hoje-stamp:not(:empty)::before { content: "·"; margin-right: 0.5rem; color: var(--line-strong); }
.hoje-controls { gap: 0.5rem 0.75rem; }
.hoje-cmp { min-height: 34px; height: 34px; }
.hoje-top { gap: 0.5rem; margin-bottom: 1rem; }
.hoje-top:empty { display: none; }
.hoje-notices {
  justify-self: start; display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 32px; padding: 0 0.75rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--muted); font: inherit; font-size: var(--fs-sm); font-weight: 550; cursor: pointer;
}
.hoje-notices .icon { width: 15px; height: 15px; color: var(--warn); }
.hoje-notices:hover { color: var(--ink); border-color: var(--line-strong); }
.hoje-note { color: var(--faint); font-size: var(--fs-sm); }
.hoje-grid { gap: 1rem; }
.hoje-card { gap: 0.3rem; }
.hoje-card[data-kind="kpi"] { padding: 1.125rem 1.25rem 1.1rem; }
.hoje-card[data-kind="kpi"] > h2, .rel-kpi > h2 {
  margin-bottom: 0.35rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint);
}
.hoje-kpi-v { font-size: 2.125rem; font-weight: 650; letter-spacing: -0.035em; line-height: 1.1; font-feature-settings: "tnum", "ss01"; }
a.hoje-kpi-v { text-decoration: none; }
a.hoje-kpi-v:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--line-strong); text-underline-offset: 5px; }
.hoje-kpi-l { color: var(--faint); font-size: var(--fs-sm); line-height: 1.4; }
.hoje-kpi-l:first-of-type { margin-top: 0.3rem; }
/* KPIs de apoio: mesma estrutura, um degrau abaixo */
.hoje-card[data-tier="sub"] { padding: 0.95rem 1.25rem; background: transparent; box-shadow: none; }
.hoje-card[data-tier="sub"] .hoje-kpi-v { font-size: 1.375rem; letter-spacing: -0.025em; }
.hoje-card[data-tier="sub"] .hoje-kpi-l:first-of-type { margin-top: 0.15rem; }
.hoje-delta { color: var(--faint); font-weight: 500; }
.hoje-dv { font-weight: 600; color: var(--muted); }
.hoje-dv [aria-hidden="true"] { font-size: 0.7em; vertical-align: 1px; }
.hoje-delta[data-dir="up"][data-good="up"] .hoje-dv, .hoje-delta[data-dir="down"][data-good="down"] .hoje-dv { color: var(--ok); }
.hoje-delta[data-dir="down"][data-good="up"] .hoje-dv, .hoje-delta[data-dir="up"][data-good="down"] .hoje-dv { color: var(--danger); }
.hoje-delta[data-dir], .hoje-delta { color: var(--faint); }
.hoje-vs { color: var(--faint); }
/* faixa de agentes: roxo só como identidade de IA */
.hoje-card[data-card="agentes"] { padding: 0.8rem 1.25rem; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; background: linear-gradient(90deg, rgba(139, 43, 232, 0.08), transparent 55%), var(--card); border-color: rgba(185, 138, 255, 0.2); }
.hoje-card[data-card="agentes"] > h2 { margin: 0; }
.hoje-ai { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--accent-ink); font-size: var(--fs-sm); font-weight: 650; }
.hoje-ai .icon { width: 16px; height: 16px; }
.hoje-slot { gap: 0.35rem 1.75rem; color: var(--muted); }
.hoje-slot b { color: var(--ink); font-weight: 600; }
.hoje-slot a { color: var(--accent-ink); text-decoration-color: var(--accent-line); }
/* gráfico */
.hoje-chart { max-height: 280px; overflow: visible; }
.hc-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.hc-grid.hc-base { stroke: var(--line-strong); stroke-dasharray: none; }
.hoje-chart-x, .hoje-chart-y { fill: var(--faint); font-size: 10.5px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.hc-hit { fill: transparent; transition: fill 0.12s var(--ease); }
.hoje-chart a:hover .hc-hit { fill: rgba(255, 255, 255, 0.045); }
.hoje-chart a:hover rect:not(.hc-hit) { opacity: 1; filter: brightness(1.12); }
.hoje-legend { gap: 0.25rem 1.25rem; margin-top: 0.6rem; color: var(--muted); }
.hoje-legend i { width: 8px; height: 8px; border-radius: 2px; }
.hoje-numbers summary { color: var(--muted); font-size: var(--fs-sm); }
.hoje-numbers summary:hover { color: var(--ink); }
/* para agir agora */
.hoje-act { gap: 0.4rem; padding: 0.8rem 0; }
.hoje-act:first-of-type { padding-top: 0.1rem; }
.hoje-act-top > span:first-child { color: var(--ink); font-weight: 550; }
.hoje-act-n { font-size: 1.375rem; font-weight: 650; letter-spacing: -0.02em; }
.hoje-act-n { text-decoration: none !important; }
.hoje-act-n:hover { text-decoration: underline !important; }
.hoje-act .v2-actions-row { margin-top: 0.15rem; }
.hoje-src { gap: 0.55rem; }
.hoje-src-bar, .rel-bar { height: 6px; border-radius: 3px; background: var(--surface); }
.hoje-src-bar i { background: var(--viz-1); border-radius: inherit; }
.hoje-camp-list li { padding: 0.6rem 0; }
.hoje-camp-list a { font-weight: 550; text-decoration: none; }
.hoje-camp-list a:hover { text-decoration: underline; }
/* relatórios */
.rel-kpis { gap: 1rem; }
.rel-kpi .hoje-kpi-v { font-size: 1.625rem; }
.rel-bar { height: 8px; border-radius: 4px; }
.rel-bar i { background: var(--viz-1); border-radius: inherit; }
.rel-funnel li:first-child .rel-bar i { background: var(--viz-1); }
.rel-funnel li:not(:first-child) .rel-bar i { background: var(--viz-2); }
.rel-hist .rel-bar i { background: var(--viz-2); }
.rel-heat { background: rgba(124, 196, 250, calc(var(--heat, 0) * 0.22)); }
.rel-heat a { color: var(--ink); }
.rel-loss { color: var(--warn); }

/* ——— 12. campanhas, disparo, hub ——— */
.cmp-extra { gap: 0.75rem 1rem; margin-bottom: 1rem; }
.cmp-del { font-weight: 600; }
.cmp-del.warn { color: var(--warn); }
.cmp-del.bad { color: var(--danger); }
.hub-funnel li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 0.9rem; }
.hub-funnel .num { font-size: 1.25rem; letter-spacing: -0.02em; }
.hub-text { background: var(--surface); border-radius: var(--radius-sm); }
.hub-ai { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(139, 43, 232, 0.07), transparent 70%), var(--card); }
.dsp-n { width: 22px; height: 22px; background: var(--active); color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 1px var(--line-strong); }
.dsp-sec > h2 { gap: 0.6rem; }
.dsp-count b { font-size: 1.25rem; letter-spacing: -0.02em; }
.dsp-dl > div { padding: 0.15rem 0; }
.dsp-dl dt { color: var(--muted); }
.dsp-go { min-height: 44px; font-size: 0.9375rem; }
.dsp-why { color: var(--warn); line-height: 1.4; }
.dsp-final { border-left: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* ——— 13. templates ——— */
.tpl-page .v2-head .v2-actions-row { flex-wrap: nowrap; }
.tpl-page .v2-head .ix-search { flex: 0 1 320px; width: 320px; min-width: 0; }
.tpl-filters { gap: 0.6rem; margin-bottom: 1.25rem; }
.tpl-frow { gap: 0.5rem 0.75rem; }
.tpl-frow > .v2-label, .tpl-frow > span:first-child { min-width: 4.5rem; }
.tpl-groups { gap: 1.75rem; }
.tpl-group-head { margin-bottom: 0.75rem; }
.tpl-group-head h2 { font-size: 0.6875rem; letter-spacing: 0.07em; color: var(--faint); }
.tpl-grid { gap: 1rem; }
.tpl-card { gap: 0.6rem; padding: 1rem 1.1rem; transition: border-color 0.15s var(--ease); }
.tpl-card:hover { border-color: var(--line-strong); }
.tpl-card.sel { border-color: #6b6b78; box-shadow: inset 0 0 0 1px #6b6b78; }
.tpl-name { font-size: var(--fs-md); font-weight: 650; letter-spacing: -0.01em; line-height: 1.35; }
.tpl-body { color: var(--muted); }
.tpl-acts { padding-top: 0.6rem; border-top: 1px solid var(--line); }
.tpl-var { border-color: var(--accent-line); border-radius: 10px; }

/* ——— 14. jornadas e construtor ——— */
.jb-node { border: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card); box-shadow: var(--hi); padding: 0.9rem 1rem; }
.jb-node[data-kind="trigger"] { --c: var(--ink); border-color: #4a4a57; }
.jb-node[data-kind="wait"] { --c: var(--muted); background: transparent; border-style: dashed; }
.jb-node[data-kind="sms"] { --c: var(--info); }
.jb-node[data-kind="end"] { --c: var(--ok); }
.jb-node.bad { border-color: var(--crit-line); box-shadow: var(--hi), 0 0 0 1px var(--crit-line); }
.jb-kind { color: var(--c, var(--muted)); font-size: 0.6875rem; letter-spacing: 0.07em; }
.jb-conn { background: var(--line-strong); width: 1px; }
.jb-plus { background: var(--raised); border-color: var(--line-strong); color: var(--muted); box-shadow: var(--shadow-sm); }
.jb-plus:hover { border-color: var(--muted); color: var(--ink); }
.jb-valid { border-color: rgba(245, 180, 94, 0.3); background: linear-gradient(180deg, var(--warn-bg), transparent 80%), var(--card); }
.jb-approve { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.jb-approve input { accent-color: #e6e6ec; }

/* ——— 15. agentes e copiloto ——— */
.ag-budget progress { appearance: none; -webkit-appearance: none; height: 6px; border: 0; border-radius: 3px; background: var(--surface); overflow: hidden; }
.ag-budget progress::-webkit-progress-bar { background: var(--surface); border-radius: 3px; }
.ag-budget progress::-webkit-progress-value { background: var(--accent-ink); border-radius: 3px; }
.ag-budget progress::-moz-progress-bar { background: var(--accent-ink); border-radius: 3px; }
.ag-queue { border-color: var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--hi); overflow: hidden; }
.ag-qhead { background: #18181f; }
.ag-queue li { padding: 0.7rem 0.85rem; transition: background-color 0.1s var(--ease); }
.ag-queue li:hover { background: var(--hover); }
.ag-queue li.on { background: var(--active); box-shadow: inset 2px 0 0 var(--accent-ink); }
.ag-qagent { letter-spacing: 0.06em; }
.ag-effect { background: var(--accent-bg); border: 1px solid var(--accent-line); border-radius: 10px; }
.ag-card h3 { font-size: 0.9375rem; letter-spacing: -0.01em; }
.ag-metrics dd { font-size: 1.125rem; letter-spacing: -0.02em; }
.cop-panel { background: var(--raised); border-left-color: var(--line-strong); box-shadow: -24px 0 48px -12px rgba(0, 0, 0, 0.55); }
.cop-head { padding: 0.85rem 1rem; background: linear-gradient(180deg, rgba(139, 43, 232, 0.1), transparent); }
.cop-head h2 { font-size: 1rem; font-weight: 650; }
.cop-sg { border-radius: var(--radius-sm); }
.cop-sg:hover { background: var(--active); }
.cop-q { background: var(--active); }
.cop-a { background: var(--card); border-color: var(--line); border-radius: 10px; }
.cop-off { border-radius: 10px; }

/* ——— 16. login (mesmos elementos e ids; só estilo) ——— */
.auth-gate {
  background:
    radial-gradient(1000px 520px at 50% -10%, rgba(255, 15, 69, 0.13), transparent 62%),
    radial-gradient(800px 480px at 100% 110%, rgba(139, 43, 232, 0.12), transparent 60%),
    var(--bg);
}
.auth-card { width: min(380px, 100%); padding: 2rem 1.75rem 1.75rem; background: rgba(21, 21, 27, 0.92); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.8), var(--hi); }
.auth-mark { height: 64px; margin-bottom: 1rem; }
.auth-card .eyebrow { color: var(--faint); font-size: 0.6875rem; letter-spacing: 0.12em; margin-bottom: 0.4rem; }
.auth-card h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; }
.auth-lede { font-size: var(--fs-md); margin-bottom: 1.5rem; }
.auth-card > .btn { min-height: 42px; }
.auth-form { margin-top: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.auth-form .btn { min-height: 42px; }
#btnGoogleLogin { background: var(--ink); color: #111116; box-shadow: var(--shadow-sm); }
#btnGoogleLogin:hover { background: #ffffff; }

/* ——— 17. celular e tablet ——— */
@media (max-width: 1100px) {
  .hoje-card[data-kind="kpi"] { grid-column: span 6; }
}
@media (max-width: 899px) {
  .topbar { padding: 0 0.75rem; }
}
@media (max-width: 719px) {
  .bottombar { background: rgba(15, 15, 20, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top-color: var(--line); }
  .bottombar a, .bottombar button { color: var(--faint); }
  .bottombar [aria-current="page"] { color: var(--ink); }
  .bottombar [aria-current="page"] .icon { color: var(--ink); }
  .v2-head h1, .rec-top h1 { font-size: 1.375rem; }
  .hoje-grid { gap: 0.625rem; }
  .hoje-card[data-kind="kpi"] { padding: 0.85rem 0.9rem; }
  .hoje-kpi-v { font-size: 1.5rem; }
  .hoje-card[data-tier="sub"] .hoje-kpi-v { font-size: 1.125rem; }
  .hoje-periods { display: flex; width: 100%; }
  .hoje-periods .chip { flex: 1 1 auto; padding: 0 0.5rem; }
  .hoje-controls { gap: 0.5rem; }
  .hoje-cmp-l { flex: 1 1 auto; }
  .hoje-cmp { width: 100%; max-width: none; }
  .tb-bell { width: 36px; height: 36px; }
  .tpl-page .v2-head .v2-actions-row { flex-wrap: wrap; width: 100%; }
  .tpl-page .v2-head .ix-search { flex: 1 1 100%; width: 100%; }
  .v2-card { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:active:not(:disabled) { transform: none; }
  .v2-skel, .v2-skel-card { animation: none; }
}

/* ——— 18. ajustes finos ——— */
.pal-input, .pal-input:hover, .pal-input:focus, .pal-input:focus-visible { min-height: 0; padding: 0.2rem 0; background: none; border: 0 !important; box-shadow: none !important; }
.v2-toast[data-kind] { border-left-color: var(--line-strong); }
@media (min-width: 900px) {
  .shell.side-collapsed .side-count { min-width: 0; width: 8px; height: 8px; padding: 0; font-size: 0; }
  .shell.side-collapsed .side-count:empty:not(.dot) { display: none; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .hoje-card[data-tier="sub"] { grid-column: span 3; }
}
@media (max-width: 719px) {
  .hoje-grid > .hoje-card[data-tier="sub"] { grid-column: span 1; }
  .hoje-kpi-v { font-size: 1.25rem; overflow-wrap: normal; white-space: nowrap; }
  .hoje-card[data-tier="sub"] .hoje-kpi-v { font-size: 1.0625rem; }
}
@media (max-width: 1100px) {
  .tb-search { width: min(360px, 30vw); }
  .tb-balance.credits span, .tb-copilot-text { display: none; }
}
