/*! hedesign 1.0.1 · MIT · https://github.com/pycodebr/hedesign */
/* hedesign · 00 · tokens
   Tudo o que o sistema decide em um lugar: cor, tipo, espaço, forma, sombra e movimento.
   Tema claro por padrão; tema escuro em [data-he-theme="dark"], no <html> ou em qualquer elemento (ilha de tema:
   um trecho escuro numa página clara, ou o contrário, com [data-he-theme="light"]).
   Nunca escreva cor fixa em tela: use estes tokens, e a tela funciona nos dois temas. */

:root, [data-he-theme="light"] {
  color-scheme: light;

  /* ── Estúdio: fundo calmo, superfícies claras ── */
  --he-bg: #f4f2ee;            /* fundo da página (papel quente) */
  --he-bg-sunken: #ebe8e2;     /* áreas rebaixadas: trilhos, teclas, código */
  --he-surface: #ffffff;       /* cartões, campos, painéis */
  --he-soft: #f8f7f4;          /* superfície secundária dentro de um painel */
  --he-raise: #ffffff;         /* o que flutua: menus, paleta, campo de pedido */

  /* ── Tinta ── */
  --he-ink: #1b1a18;           /* texto principal e botão principal */
  --he-ink-2: #31302e;         /* texto de apoio forte */
  --he-muted: #5f5b56;         /* texto secundário */
  --he-faint: #6b6761;         /* legendas e rótulos (ainda AA sobre o fundo) */
  --he-ghost: #a39e98;         /* decorativo: ícones apagados, pontos neutros */

  /* ── Linhas e realce ── */
  --he-line: rgba(27, 26, 24, .1);
  --he-line-strong: rgba(27, 26, 24, .2);
  --he-hover: rgba(55, 53, 47, .06);
  --he-hover-strong: rgba(55, 53, 47, .11);

  /* ── Destaque e estados ── */
  --he-accent: #0075de;
  --he-accent-ink: #005bab;
  --he-accent-soft: #e8f2fc;
  --he-on-accent: #ffffff;
  --he-danger: #c4352b;
  --he-danger-soft: #fbeceb;
  --he-ok: #136c2a;
  --he-ok-soft: #e0f3e4;
  --he-scrim: rgba(20, 18, 16, .42);
  --he-spot: rgba(255, 255, 255, .85);   /* luz no topo da página */

  /* ── IA: cor própria, do violeta ao azul ── */
  --he-ai-1: #6b3fa8;
  --he-ai-2: #3d5fd9;
  --he-ai-3: #0075de;
  --he-ai: #6b3fa8;
  --he-ai-ink: #5b3e8f;
  --he-ai-soft: #f3ecfb;
  --he-ai-line: #ddd3f3;
  --he-ai-grad: linear-gradient(135deg, var(--he-ai-1) 0%, var(--he-ai-2) 55%, var(--he-ai-3) 100%);

  /* ── Seis tons, do frio ao verde. Cada tom tem quatro papéis:
        viva (ponto, barra, contorno) · -fg (texto) · -bg (fundo suave) · -solid (fundo cheio).
        Texto -fg sobre a superfície e sobre o próprio -bg passa de 4,5:1 nos dois temas. ── */
  --he-blue: #3d8fd6;    --he-blue-fg: #1c5f99;    --he-blue-bg: #e4f0fb;    --he-blue-solid: #1c5f99;
  --he-violet: #8a55cc;  --he-violet-fg: #6537a6;  --he-violet-bg: #f0e8fb;  --he-violet-solid: #6537a6;
  --he-pink: #d23fa0;    --he-pink-fg: #a3246f;    --he-pink-bg: #fce6f3;    --he-pink-solid: #a3246f;
  --he-orange: #dd5b00;  --he-orange-fg: #a04300;  --he-orange-bg: #fdecdc;  --he-orange-solid: #a04300;
  --he-teal: #1f9c97;    --he-teal-fg: #136a67;    --he-teal-bg: #dcf2f0;    --he-teal-solid: #136a67;
  --he-green: #1a8a35;   --he-green-fg: #136c2a;   --he-green-bg: #e0f3e4;   --he-green-solid: #136c2a;
  --he-on-tone: #ffffff;                 /* texto sobre -solid */
  --he-rail: linear-gradient(90deg, var(--he-blue), var(--he-violet), var(--he-pink), var(--he-orange), var(--he-teal), var(--he-green));

  /* ── Moldura de aparelho e papel ── */
  --he-post-bg: #ffffff;
  --he-post-ink: #0f1419;
  --he-post-muted: #6b7280;
  --he-post-line: #e6e6e6;
  --he-post-link: #00376b;
  --he-bezel: #101012;
  --he-paper: #fbf7ef;
  --he-paper-ink: #201d18;

  /* ── Avisos (sempre escuros, nos dois temas) ── */
  --he-toast-bg: #1f1d1a;
  --he-toast-ink: #f6f3ee;
  --he-toast-error: #5a1d18;
  --he-toast-shadow: var(--he-shadow-2);
  --he-knob: #ffffff;                    /* botão do interruptor */
  --he-check-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E");

  /* ── Casca ── */
  --he-sidebar-bg: #fbfbfa;
  --he-topbar-bg: rgba(246, 245, 244, .86);
  --he-disabled-bg: #e7e5e2;
  --he-disabled-ink: #a7a19a;

  /* ── Tipografia ── */
  --he-font: "Inter", -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --he-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --he-text-display: 700 40px/1.1 var(--he-font);    /* -1px */
  --he-text-h1: 700 32px/1.1 var(--he-font);         /* -.9px */
  --he-text-h2: 700 26px/1.23 var(--he-font);        /* -.6px */
  --he-text-h3: 700 18px/1.3 var(--he-font);         /* -.3px */
  --he-text-title: 600 14.5px/1.35 var(--he-font);   /* título de cartão */
  --he-text-lead: 400 17px/1.55 var(--he-font);
  --he-text-body: 400 15.5px/1.5 var(--he-font);
  --he-text-small: 400 13px/1.4 var(--he-font);
  --he-text-label: 600 12.5px/1.3 var(--he-font);    /* rótulo de campo */
  --he-text-overline: 700 12px/1.3 var(--he-font);   /* caixa alta, .3px */

  /* ── Espaço (base 4) ── */
  --he-s-1: 4px;
  --he-s-2: 8px;
  --he-s-3: 12px;
  --he-s-4: 16px;
  --he-s-5: 24px;
  --he-s-6: 32px;
  --he-s-7: 48px;
  --he-s-8: 64px;

  /* ── Forma ── */
  --he-r-xs: 6px;
  --he-r-sm: 10px;
  --he-r: 14px;
  --he-r-lg: 20px;
  --he-r-full: 999px;

  /* ── Elevação ── */
  --he-shadow-1: 0 1px 2px rgba(20, 18, 16, .05), 0 6px 18px -10px rgba(20, 18, 16, .18);
  --he-shadow-2: 0 2px 6px rgba(20, 18, 16, .06), 0 18px 44px -18px rgba(20, 18, 16, .32);
  --he-shadow-pop: 0 0 0 1px var(--he-line), 0 12px 28px -8px rgba(20, 18, 16, .22), 0 32px 80px -24px rgba(20, 18, 16, .4);
  --he-shadow-ai: 0 1px 2px rgba(20, 18, 16, .06), 0 16px 40px -18px rgba(48, 28, 96, .45);

  /* ── Movimento ── */
  --he-ease: cubic-bezier(.2, .7, .2, 1);
  --he-fast: 150ms;
  --he-med: 220ms;
}

/* Medidas da casca. Zero até o elemento existir na página (ver 02-shell.css). */
:root {
  --he-sidebar-w: 0px;
  --he-topbar-h: 0px;
  --he-top-h: 0px;
  --he-dock-h: 0px;
  --he-mnav-h: 0px;
  --he-bottom: calc(var(--he-dock-h) + var(--he-mnav-h));   /* espaço ocupado pelo rodapé fixo */
  --he-content-max: 1320px;
  --he-reading-max: 860px;
}

[data-he-theme="dark"] {
  color-scheme: dark;
  --he-bg: #131316;
  --he-bg-sunken: #0d0d10;
  --he-surface: #1d1d22;
  --he-soft: #18181c;
  --he-raise: #26262d;
  --he-ink: #f2f0eb;
  --he-ink-2: #d9d6cf;
  --he-muted: #aaa69e;
  --he-faint: #96928a;
  --he-ghost: #6d6a64;
  --he-line: rgba(255, 255, 255, .1);
  --he-line-strong: rgba(255, 255, 255, .2);
  --he-hover: rgba(255, 255, 255, .06);
  --he-hover-strong: rgba(255, 255, 255, .12);
  --he-accent: #5aa9ff;
  --he-accent-ink: #8cc4ff;
  --he-accent-soft: #1c2e45;
  --he-on-accent: #0b1220;
  --he-danger: #ff8a80;
  --he-danger-soft: #3d2222;
  --he-ok: #7bdc94;
  --he-ok-soft: #1f3526;
  --he-scrim: rgba(0, 0, 0, .6);
  --he-spot: rgba(255, 255, 255, .045);

  --he-ai: #a67be6;
  --he-ai-ink: #c4a8f5;
  --he-ai-soft: #2b2440;
  --he-ai-line: #453a66;

  --he-blue: #5aa9ee;    --he-blue-fg: #8cc4f6;    --he-blue-bg: #29394b;    --he-blue-solid: #5aa9ee;
  --he-violet: #a67be6;  --he-violet-fg: #c9acf5;  --he-violet-bg: #383049;  --he-violet-solid: #a67be6;
  --he-pink: #ec63b8;    --he-pink-fg: #f79ad2;    --he-pink-bg: #462b40;    --he-pink-solid: #ec63b8;
  --he-orange: #ff8a3d;  --he-orange-fg: #ffb07a;  --he-orange-bg: #4a3327;  --he-orange-solid: #ff8a3d;
  --he-teal: #35c2bb;    --he-teal-fg: #72d9d3;    --he-teal-bg: #223e41;    --he-teal-solid: #35c2bb;
  --he-green: #3fc463;   --he-green-fg: #7bdc94;   --he-green-bg: #243e2f;   --he-green-solid: #3fc463;
  --he-on-tone: #131316;
  --he-rail: linear-gradient(90deg, var(--he-blue), var(--he-violet), var(--he-pink), var(--he-orange), var(--he-teal), var(--he-green));

  --he-post-bg: #000000;
  --he-post-ink: #f5f5f5;
  --he-post-muted: #a8a8a8;
  --he-post-line: #262626;
  --he-post-link: #e0f1ff;
  --he-bezel: #050506;
  --he-paper: #24211c;
  --he-paper-ink: #f3ede1;

  --he-toast-bg: #34343c;
  --he-toast-error: #5a2420;
  --he-toast-shadow: var(--he-shadow-pop);
  --he-knob: #f2f0eb;
  --he-check-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23131316' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E");

  --he-sidebar-bg: #17171b;
  --he-topbar-bg: rgba(19, 19, 22, .86);
  --he-disabled-bg: #34343c;
  --he-disabled-ink: #8a867f;

  --he-shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 20px -10px rgba(0, 0, 0, .6);
  --he-shadow-2: 0 2px 6px rgba(0, 0, 0, .4), 0 20px 48px -18px rgba(0, 0, 0, .75);
  --he-shadow-pop: 0 0 0 1px var(--he-line-strong), 0 12px 28px -8px rgba(0, 0, 0, .6), 0 32px 80px -24px rgba(0, 0, 0, .8);
  --he-shadow-ai: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -18px rgba(0, 0, 0, .7);
}

/* Tom no elemento: qualquer coisa com data-tone recebe --tone (viva), --tone-fg (texto), --tone-bg (fundo) e --tone-solid.
   Selo, coluna, calendário, passos, chips, marcador de arrasto e a luz do estúdio leem essas quatro variáveis,
   por isso a cor é idêntica em todo lugar. */
[data-tone="blue"]   { --tone: var(--he-blue);   --tone-fg: var(--he-blue-fg);   --tone-bg: var(--he-blue-bg);   --tone-solid: var(--he-blue-solid); }
[data-tone="violet"] { --tone: var(--he-violet); --tone-fg: var(--he-violet-fg); --tone-bg: var(--he-violet-bg); --tone-solid: var(--he-violet-solid); }
[data-tone="pink"]   { --tone: var(--he-pink);   --tone-fg: var(--he-pink-fg);   --tone-bg: var(--he-pink-bg);   --tone-solid: var(--he-pink-solid); }
[data-tone="orange"] { --tone: var(--he-orange); --tone-fg: var(--he-orange-fg); --tone-bg: var(--he-orange-bg); --tone-solid: var(--he-orange-solid); }
[data-tone="teal"]   { --tone: var(--he-teal);   --tone-fg: var(--he-teal-fg);   --tone-bg: var(--he-teal-bg);   --tone-solid: var(--he-teal-solid); }
[data-tone="green"]  { --tone: var(--he-green);  --tone-fg: var(--he-green-fg);  --tone-bg: var(--he-green-bg);  --tone-solid: var(--he-green-solid); }
[data-tone="ai"]     { --tone: var(--he-ai);     --tone-fg: var(--he-ai-ink);    --tone-bg: var(--he-ai-soft);   --tone-solid: var(--he-ai); }
[data-tone="accent"] { --tone: var(--he-accent); --tone-fg: var(--he-accent-ink); --tone-bg: var(--he-accent-soft); --tone-solid: var(--he-accent); }
[data-tone="danger"] { --tone: var(--he-danger); --tone-fg: var(--he-danger);    --tone-bg: var(--he-danger-soft); --tone-solid: var(--he-danger); }
[data-tone="neutral"] { --tone: var(--he-ghost); --tone-fg: var(--he-muted);     --tone-bg: var(--he-hover-strong); --tone-solid: var(--he-muted); }

/* hedesign · 01 · base
   Base de página com especificidade zero (:where), para o CSS do projeto vencer sem esforço.
   Tipografia, utilitários de arranjo e regras globais de foco, seleção, movimento reduzido e impressão. */

:where(html) { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
:where(*, *::before, *::after) { box-sizing: border-box; }
:where(body) {
  margin: 0;
  background: var(--he-bg);
  color: var(--he-ink);
  font: 400 16px/1.5 var(--he-font);
  font-feature-settings: "lnum", "locl";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:where(h1, h2, h3, h4, p, figure) { margin: 0; }
:where(h1, h2, h3, h4) { color: var(--he-ink); }
:where(a) { color: var(--he-accent-ink); text-decoration: none; }
:where(a:hover) { text-decoration: underline; text-underline-offset: 3px; }
:where(img, video, svg) { max-width: 100%; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(:focus-visible) { outline: 2px solid var(--he-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--he-accent) 22%, transparent); }
[hidden] { display: none !important; }

/* Camada aberta: a página não rola e nada salta de lugar (a largura da barra de rolagem vira respiro) */
html.he-lock, html.he-lock body { overflow: hidden; }
html.he-lock body { padding-right: var(--he-sbw, 0px); }
html.he-lock .he-dock { right: var(--he-sbw, 0px); }

/* ── Tipografia ── */
.he-display { font: var(--he-text-display); letter-spacing: -1px; color: var(--he-ink); text-wrap: balance; }
.he-h1 { font: var(--he-text-h1); letter-spacing: -.9px; color: var(--he-ink); text-wrap: balance; }
.he-h2 { font: var(--he-text-h2); letter-spacing: -.6px; color: var(--he-ink); text-wrap: balance; }
.he-h3 { font: var(--he-text-h3); letter-spacing: -.3px; color: var(--he-ink); }
.he-title { font: var(--he-text-title); letter-spacing: -.1px; color: var(--he-ink); }
.he-lead { font: var(--he-text-lead); color: var(--he-muted); text-wrap: pretty; }
.he-text { font: var(--he-text-body); color: var(--he-ink-2); }
.he-small { font: var(--he-text-small); color: var(--he-muted); }
.he-label { font: var(--he-text-label); color: var(--he-muted); }
.he-overline { font: var(--he-text-overline); letter-spacing: .3px; text-transform: uppercase; color: var(--he-faint); }
.he-muted { color: var(--he-muted); }
.he-faint { color: var(--he-faint); }
.he-mono { font-family: var(--he-mono); }
.he-num { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .he-display { font-size: 30px; letter-spacing: -.6px; }
  .he-h1 { font-size: 26px; letter-spacing: -.6px; }
  .he-h2 { font-size: 22px; }
  .he-lead { font-size: 16px; }
}

/* Texto corrido (documentação, artigo, ajuda): o conteúdo entra sem classes */
.he-prose { max-width: 72ch; font: var(--he-text-body); font-size: 16px; line-height: 1.65; color: var(--he-ink-2); overflow-wrap: anywhere; }
.he-prose > * + * { margin-top: 1em; }
.he-prose :where(h1, h2, h3, h4) { color: var(--he-ink); text-wrap: balance; scroll-margin-top: calc(var(--he-topbar-h) + var(--he-top-h) + 16px); }
.he-prose :where(h1) { font: var(--he-text-h1); letter-spacing: -.9px; }
.he-prose :where(h2) { margin-top: 1.9em; font: var(--he-text-h2); font-size: 22px; letter-spacing: -.4px; }
.he-prose :where(h3) { margin-top: 1.6em; font: var(--he-text-h3); }
.he-prose :where(ul, ol) { margin: 1em 0 0; padding-left: 1.3em; }
.he-prose :where(li + li) { margin-top: .35em; }
.he-prose :where(a) { color: var(--he-accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.he-prose :where(strong) { color: var(--he-ink); }
.he-prose :where(code) { padding: 1px 5px; border-radius: var(--he-r-xs); background: var(--he-bg-sunken); color: var(--he-ink); font: 500 .88em/1.5 var(--he-mono); }
.he-prose :where(pre) { overflow: auto; padding: 14px 16px; border-radius: var(--he-r); background: var(--he-bg-sunken); color: var(--he-ink); font: 500 13px/1.6 var(--he-mono); }
.he-prose :where(pre code) { padding: 0; background: none; font: inherit; }
.he-prose :where(blockquote) { margin: 1em 0 0; padding: 12px 16px; border-radius: var(--he-r); background: var(--he-paper); color: var(--he-paper-ink); box-shadow: inset 3px 0 0 var(--he-orange); }
.he-prose :where(hr) { height: 1px; margin: 2em 0; border: 0; background: var(--he-line-strong); }
.he-prose :where(img) { border-radius: var(--he-r); }

/* ── Arranjos ── */
.he-page { max-width: var(--he-content-max); margin: 0 auto; padding: 28px 32px 8px; min-width: 0; }
.he-page--narrow { max-width: var(--he-reading-max); }
.he-page--full { max-width: none; }
@media (max-width: 760px) { .he-page { padding: 16px 16px 8px; } }
.he-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.he-stack--sm { gap: 6px; }
.he-stack--lg { gap: 24px; }
.he-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.he-row--between { justify-content: space-between; }
.he-row--nowrap { flex-wrap: nowrap; }
.he-grow { flex: 1 1 auto; min-width: 0; }
.he-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; min-width: 0; }
.he-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 24px; align-items: start; min-width: 0; }
.he-split--3 { grid-template-columns: minmax(220px, 320px) minmax(330px, 1fr) minmax(260px, 350px); }
.he-split > * { min-width: 0; }
/* Três colunas: com pouco espaço, a primeira (apoio, conversa) desce para baixo das outras duas, e fica por último também na pilha do celular.
   Com o menu lateral aberto sobram 256 px a menos, então a quebra acontece antes. */
@media (max-width: 1180px) { .he-split--3 { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); } .he-split--3 > :first-child { grid-column: 1 / -1; order: 3; } }
@media (min-width: 1181px) and (max-width: 1380px) { html:has(.he-sidebar):not(.he-nav-collapsed) .he-split--3 { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); } html:has(.he-sidebar):not(.he-nav-collapsed) .he-split--3 > :first-child { grid-column: 1 / -1; order: 3; } }
@media (max-width: 900px) { .he-split, .he-split--3 { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.he-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--min, 232px), 1fr)); gap: 14px; min-width: 0; }
.he-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.he-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.he-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .he-grid--3, .he-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .he-grid--2, .he-grid--3 { grid-template-columns: minmax(0, 1fr); } .he-grid--4 { gap: 10px; } }

/* ── Movimento reduzido: nada anima, e cada estado continua legível sem a animação ── */
@media (prefers-reduced-motion: reduce) {
  :where([class^="he-"], [class*=" he-"]), :where([class^="he-"], [class*=" he-"])::before, :where([class^="he-"], [class*=" he-"])::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
}

/* hedesign · 02 · casca
   Menu lateral, barra do topo e área principal. Cada peça é opcional: as medidas (--he-sidebar-w, --he-topbar-h,
   --he-dock-h, --he-mnav-h) só deixam de ser zero quando o elemento existe na página, e tudo o que é fixo
   (barra da área, campo de pedido, camada de detalhe, avisos) se posiciona a partir delas. */

:root:has(.he-sidebar) { --he-sidebar-w: 256px; }
html.he-nav-collapsed:has(.he-sidebar) { --he-sidebar-w: 64px; }
:root:has(.he-topbar) { --he-topbar-h: 52px; }
:root:has(.he-main > .he-top) { --he-top-h: 56px; }
:root:has(.he-dock) { --he-dock-h: 92px; }

.he-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 9000; width: var(--he-sidebar-w); display: flex; flex-direction: column; background: var(--he-sidebar-bg); border-right: 1px solid var(--he-line); color: var(--he-ink-2); font: 400 14px/1.43 var(--he-font); transition: width .2s ease; }
.he-sidebar ~ .he-topbar, .he-sidebar ~ .he-main, .he-sidebar ~ .he-footer { margin-left: var(--he-sidebar-w); transition: margin-left .2s ease; }
.he-sidebar__head { display: flex; align-items: center; flex: 0 0 auto; height: 52px; padding: 0 12px; border-bottom: 1px solid var(--he-line); }
.he-brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 5px 8px; border-radius: 8px; color: var(--he-ink) !important; text-decoration: none !important; }
.he-brand:hover { background: var(--he-hover); }
.he-brand__mark { position: relative; display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px; background: var(--he-ink); color: var(--he-bg); font: 700 14px/1 var(--he-font); letter-spacing: -.3px; }
/* Marca padrão do hedesign: um cartão com o trilho dos seis tons. Com texto ou imagem dentro, a marca é a sua. */
.he-brand__mark:empty::before { content: ""; width: 12px; height: 15px; border-radius: 3.5px; background: var(--he-rail); box-shadow: 0 0 0 1.5px var(--he-ink), 4px -3px 0 -1px color-mix(in srgb, var(--he-bg) 55%, transparent); }
.he-brand__mark img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; }
.he-brand__text { display: flex; flex-direction: column; min-width: 0; }
.he-brand__name { font: 700 15px/1.2 var(--he-font); letter-spacing: -.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.he-brand__sub { font-size: 12px; line-height: 1.2; color: var(--he-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.he-side { flex: 1; overflow-y: auto; padding: 12px 12px 16px; scrollbar-width: thin; }
.he-side__section + .he-side__section { margin-top: 14px; }
.he-side__label { padding: 4px 8px; font: 600 12px/1.4 var(--he-font); letter-spacing: .125px; color: var(--he-faint); white-space: nowrap; overflow: hidden; }
.he-side__item { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 32px; margin: 1px 0; padding: 5px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--he-ink-2) !important; font: 500 14px/1.43 var(--he-font); text-align: left; text-decoration: none !important; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.he-side__item:hover { background: var(--he-hover); }
.he-side__item.is-active, .he-side__item[aria-current="page"] { background: var(--he-hover-strong); color: var(--he-ink) !important; font-weight: 600; }
.he-side__item:focus-visible { outline: 2px solid var(--he-accent); outline-offset: -2px; }
.he-side__icon { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; color: var(--he-faint); }
.he-side__icon .he-i { font-size: 17px; stroke-width: 1.8; }
.he-side__item:hover .he-side__icon { color: var(--he-muted); }
.he-side__item.is-active .he-side__icon, .he-side__item[aria-current="page"] .he-side__icon { color: var(--he-accent); }
.he-side__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.he-side__item .he-count { flex: 0 0 auto; }
.he-sidebar__foot { flex: 0 0 auto; padding: 8px 12px 12px; border-top: 1px solid var(--he-line); font-size: 12px; color: var(--he-faint); }
.he-sidebar__note { padding: 6px 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.he-sidebar__note a { color: var(--he-muted) !important; }

/* Menu recolhido (computador): só os ícones, com o nome na dica */
@media (min-width: 1024px) {
  html.he-nav-collapsed .he-brand__text, html.he-nav-collapsed .he-side__text, html.he-nav-collapsed .he-side__label, html.he-nav-collapsed .he-sidebar__note, html.he-nav-collapsed .he-side__item .he-count { display: none; }
  html.he-nav-collapsed .he-sidebar__head { padding: 0; justify-content: center; }
  html.he-nav-collapsed .he-brand { flex: 0 0 auto; padding: 5px; }
  html.he-nav-collapsed .he-side, html.he-nav-collapsed .he-sidebar__foot { padding-left: 10px; padding-right: 10px; }
  html.he-nav-collapsed .he-side__item { justify-content: center; min-height: 40px; padding: 0; }
  html.he-nav-collapsed .he-side__section + .he-side__section { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--he-line); }
  html.he-nav-collapsed .he-side__item[data-he-tip]:hover::after, html.he-nav-collapsed .he-side__item[data-he-tip]:focus-visible::after { content: attr(data-he-tip); position: absolute; left: calc(100% + 10px); top: 50%; z-index: 2; translate: 0 -50%; padding: 6px 10px; border-radius: 8px; background: var(--he-toast-bg); color: var(--he-toast-ink); font: 600 12.5px/1.2 var(--he-font); white-space: nowrap; box-shadow: var(--he-shadow-2); pointer-events: none; }
  html.he-nav-collapsed .he-sidebar, html.he-nav-collapsed .he-side { overflow: visible; }
}

.he-topbar { position: sticky; top: 0; z-index: 8000; display: flex; align-items: center; gap: 10px; height: var(--he-topbar-h); padding: 0 20px; background: var(--he-topbar-bg); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--he-line); color: var(--he-muted); font: 400 14px/1.43 var(--he-font); }
.he-topbar__menu { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: -8px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--he-ink-2); cursor: pointer; }
.he-topbar__menu:hover { background: var(--he-hover); }
.he-topbar__menu .he-i { font-size: 20px; }
.he-crumbs { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.he-crumbs a { padding: 3px 6px; border-radius: 6px; color: var(--he-muted) !important; text-decoration: none !important; }
.he-crumbs a:hover { background: var(--he-hover); color: var(--he-ink) !important; }
.he-crumbs__sep { color: var(--he-ghost); }
.he-crumbs__current { padding: 3px 6px; color: var(--he-ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.he-topbar__actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.he-topbar__btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--he-muted) !important; font: 500 14px/1 var(--he-font); text-decoration: none !important; cursor: pointer; }
.he-topbar__btn:hover { background: var(--he-hover); color: var(--he-ink) !important; }
.he-topbar__btn .he-i { font-size: 16px; }
.he-live { display: inline-flex; align-items: center; gap: 7px; padding: 0 8px; font: 500 13px/1 var(--he-font); color: var(--he-muted); white-space: nowrap; }
.he-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--he-danger); box-shadow: 0 0 0 0 color-mix(in srgb, var(--he-danger) 55%, transparent); animation: he-live 2s ease-out infinite; }
.he-live[data-state="off"]::before { background: var(--he-ghost); animation: none; }
@keyframes he-live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--he-danger) 55%, transparent); } 100% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--he-danger) 0%, transparent); } }

.he-main { position: relative; min-width: 0; overflow-x: clip; min-height: calc(100vh - var(--he-topbar-h)); min-height: calc(100dvh - var(--he-topbar-h)); padding-bottom: calc(var(--he-bottom) + 28px);
  background: radial-gradient(1100px 420px at 50% -140px, var(--he-spot), transparent 72%) no-repeat; }
.he-scrim-nav { display: none; }

@media (max-width: 1023px) {
  :root:has(.he-sidebar), html.he-nav-collapsed:has(.he-sidebar) { --he-sidebar-w: 0px; }
  .he-sidebar { width: min(300px, 86vw); transform: translateX(-102%); transition: transform .22s ease; }
  html.he-nav-open .he-sidebar { transform: none; box-shadow: var(--he-shadow-2); }
  html.he-nav-open .he-scrim-nav { display: block; position: fixed; inset: 0; z-index: 8900; background: var(--he-scrim); animation: he-fade var(--he-med) ease both; }
  .he-topbar__menu { display: inline-flex; }
  .he-topbar { padding: 0 14px; }
  .he-side__item { min-height: 44px; }
}
@media (max-width: 600px) {
  .he-crumbs > :not(:last-child) { display: none; }
  .he-topbar .he-wide { display: none; }
}
@media print {
  .he-sidebar, .he-topbar, .he-top, .he-dock, .he-mnav, .he-toasts { display: none !important; }
  .he-sidebar ~ .he-main { margin-left: 0; }
}

/* hedesign · 03 · componentes
   Primitivos, barra da área, campo de pedido à IA, camadas, avisos, cartões, quadro, calendário, estúdio com moldura
   de aparelho, barra de decisão, recortes e arrastar e soltar. Comportamentos em hedesign.js (window.HE).
   Regra geral: a tela usa só tokens --he-* e classes he-*; cor fixa em tela quebra no tema escuro. */

/* Campos e camadas têm realce próprio de foco (borda e anel), então o contorno padrão sai */
.he-pal__input:focus-visible, .he-quick input:focus-visible, .he-adjust__pin input:focus-visible,
.he-input:focus-visible, .he-textarea:focus-visible, .he-select:focus-visible, .he-composer__input:focus-visible { outline: none; }
.he-drawer:focus-visible, .he-layer:focus-visible, .he-pal:focus-visible { outline: none; }
@media (hover: none) and (pointer: coarse) { .he-keyhint { display: none; } }

/* ══════════ 3. Primitivos ══════════ */
.he-i { width: 1em; height: 1em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; font-size: 18px; }
.he-i--fill { fill: currentColor; stroke: none; }
.he-i--bold { stroke-width: 2.8; }
.he-i--sm { font-size: 14px; } .he-i--lg { font-size: 22px; } .he-i--xl { font-size: 28px; }
.he-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.he-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.he-kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--he-bg-sunken); box-shadow: inset 0 -1px 0 var(--he-line-strong); color: var(--he-muted); font: 600 11px/1 var(--he-font); white-space: nowrap; }
@media (hover: none) and (pointer: coarse) { .he-kbd:not(.he-kbd--always) { display: none; } }

.he-btn { --b-bg: var(--he-surface); --b-fg: var(--he-ink); --b-line: var(--he-line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; min-width: 40px; padding: 8px 16px; margin: 0;
  border: 1px solid var(--b-line); border-radius: 999px; background: var(--b-bg); color: var(--b-fg) !important;
  font: 600 14.5px/1.2 var(--he-font); text-decoration: none !important; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform var(--he-fast) var(--he-ease), background var(--he-fast), border-color var(--he-fast), box-shadow var(--he-fast); }
.he-btn:hover { border-color: var(--he-ink); }
.he-btn:active { transform: scale(.97); }
.he-btn:focus-visible, .he-iconbtn:focus-visible { outline: 2px solid var(--he-accent); outline-offset: 2px; }
.he-btn:disabled, .he-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.he-btn .he-i { font-size: 17px; }
.he-btn--primary { --b-bg: var(--he-ink); --b-fg: var(--he-bg); --b-line: var(--he-ink); box-shadow: var(--he-shadow-1); }
.he-btn--primary:hover { box-shadow: var(--he-shadow-2); }
.he-btn--accent { --b-bg: var(--he-accent); --b-fg: var(--he-on-accent); --b-line: var(--he-accent); }
.he-btn--soft { --b-bg: var(--he-hover); --b-line: transparent; }
.he-btn--soft:hover { --b-bg: var(--he-hover-strong); border-color: transparent; }
.he-btn--ghost { --b-bg: transparent; --b-line: transparent; --b-fg: var(--he-muted); }
.he-btn--ghost:hover { --b-bg: var(--he-hover); --b-fg: var(--he-ink); border-color: transparent; }
.he-btn--danger { --b-fg: var(--he-danger); }
.he-btn--danger:hover { --b-bg: var(--he-danger-soft); border-color: var(--he-danger); }
.he-btn--ok { --b-bg: var(--he-green-solid); --b-fg: var(--he-on-tone); --b-line: var(--he-green-solid); }
.he-btn--ai { --b-bg: var(--he-ai-soft); --b-fg: var(--he-ai-ink); --b-line: var(--he-ai-line); }
.he-btn--ai:hover { border-color: var(--he-ai); }
.he-btn--sm { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.he-btn--lg { min-height: 48px; padding: 10px 22px; font-size: 16px; }
.he-btn--block { width: 100%; }
@media (max-width: 760px) { .he-btn--sm { min-height: 40px; } button.he-badge { min-height: 40px; } }

.he-iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--he-muted) !important; cursor: pointer; text-decoration: none !important; transition: background var(--he-fast), color var(--he-fast); -webkit-tap-highlight-color: transparent; }
.he-iconbtn:hover { background: var(--he-hover); color: var(--he-ink) !important; }
.he-iconbtn--solid { background: var(--he-surface); box-shadow: 0 0 0 1px var(--he-line); }
.he-iconbtn:disabled, .he-iconbtn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; background: transparent; }
.he-iconbtn.is-active { background: var(--he-surface); color: var(--he-ink) !important; box-shadow: 0 0 0 1px var(--he-line), var(--he-shadow-1); }

.he-input, .he-textarea, .he-select { width: 100%; min-height: 40px; padding: 9px 12px; border: 1px solid var(--he-line-strong); border-radius: var(--he-r-sm); background: var(--he-surface); color: var(--he-ink); font: 400 15px/1.4 var(--he-font); outline: none; transition: border-color var(--he-fast), box-shadow var(--he-fast); }
.he-textarea { min-height: 88px; resize: vertical; }
.he-input::placeholder, .he-textarea::placeholder { color: var(--he-faint); opacity: 1; }
.he-input:focus, .he-textarea:focus, .he-select:focus { border-color: var(--he-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--he-accent) 18%, transparent); }
.he-field { display: grid; gap: 6px; min-width: 0; }
.he-field > label, .he-label { font: 600 12.5px/1.3 var(--he-font); color: var(--he-muted); }
@media (max-width: 760px) { .he-input, .he-textarea, .he-select { font-size: 16px; } }

/* Captura rápida: uma linha, Enter guarda */
.he-quick { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px 0 12px; border: 1px dashed var(--he-line-strong); border-radius: var(--he-r); background: transparent; color: var(--he-faint); transition: border-color var(--he-fast), background var(--he-fast); }
.he-quick:focus-within { border-style: solid; border-color: var(--tone, var(--he-accent)); background: var(--he-surface); }
.he-quick input { flex: 1; min-width: 0; height: 42px; border: 0; outline: 0; background: transparent; color: var(--he-ink); font: 400 14.5px/1.3 var(--he-font); }
.he-quick input::placeholder { color: var(--he-faint); opacity: 1; }
@media (max-width: 760px) { .he-quick input { font-size: 16px; } }

/* Cabeçalho de tela e de bloco */
.he-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 0 0 22px; }
.he-head__main { min-width: 0; }
.he-head h1, .he-head__title { margin: 0; font: 700 32px/1.1 var(--he-font); letter-spacing: -.9px; color: var(--he-ink); text-wrap: balance; }
.he-head p.he-head__sub, .he-head__sub { margin: 8px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--he-muted); max-width: 640px; }
.he-head__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; max-width: 100%; }
.he-sec { margin-top: 32px; min-width: 0; }
.he-sec:first-child { margin-top: 0; }
.he-sec__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-width: 0; }
.he-sec__head h2, .he-sec__title { margin: 0; font: 700 18px/1.3 var(--he-font); letter-spacing: -.3px; color: var(--he-ink); }
.he-sec__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--he-hover-strong); color: var(--he-ink-2); font: 700 12px/1 var(--he-font); font-variant-numeric: tabular-nums; }
.he-sec__head > :last-child:not(:first-child):not(.he-sec__n) { margin-left: auto; }
@media (max-width: 760px) { .he-head h1, .he-head__title { font-size: 26px; letter-spacing: -.6px; } .he-head { margin-bottom: 16px; } }

.he-tag { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 2px 8px; border-radius: 6px; background: var(--he-hover); color: var(--he-ink-2); font: 500 12px/1.5 var(--he-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.he-avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: var(--he-ink); color: var(--he-bg); font: 700 12px/1 var(--he-font); overflow: hidden; }
.he-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.he-avatar--ring { padding: 2px; background: conic-gradient(from 210deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); }
.he-avatar--ring > * { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--he-post-bg); color: var(--he-post-ink); box-shadow: 0 0 0 1.5px var(--he-post-bg); font: 700 11px/1 var(--he-font); object-fit: cover; }

/* ══════════ 4. Casca: topo do módulo ══════════ */
.he-top { position: sticky; top: var(--he-topbar-h); z-index: 7500; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px; min-width: 0;
  background: color-mix(in srgb, var(--he-bg) 88%, transparent); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid var(--he-line); }
.he-top__brand { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; min-height: 40px; padding: 4px 6px 4px 0; color: var(--he-ink) !important; text-decoration: none !important; font: 700 16px/1 var(--he-font); letter-spacing: -.3px; }
.he-top__mark { position: relative; width: 26px; height: 26px; border-radius: 8px; background: var(--he-ink); display: grid; place-items: center; }
.he-top__mark::before { content: ""; width: 12px; height: 15px; border-radius: 3.5px; background: var(--he-rail); background-size: 100% 100%; box-shadow: 0 0 0 1.5px var(--he-ink), 4px -3px 0 -1px color-mix(in srgb, var(--he-bg) 55%, transparent); }
.he-nav { display: flex; align-items: center; gap: 2px; min-width: 0; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; margin-left: 6px; }
.he-nav::-webkit-scrollbar { display: none; }
.he-nav__item { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 13px; border-radius: 999px; color: var(--he-muted) !important; text-decoration: none !important; font: 600 14px/1 var(--he-font); white-space: nowrap; transition: background var(--he-fast), color var(--he-fast); }
.he-nav__item .he-i { font-size: 17px; }
.he-nav__item:hover { background: var(--he-hover); color: var(--he-ink) !important; }
.he-nav__item.is-active { background: var(--he-surface); color: var(--he-ink) !important; box-shadow: 0 0 0 1px var(--he-line), var(--he-shadow-1); }
.he-nav__item.is-active .he-i { color: var(--he-accent); }
.he-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--he-orange-solid); color: var(--he-on-tone); font: 700 11.5px/1 var(--he-font); font-variant-numeric: tabular-nums; }
.he-top__actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; margin-left: auto; }

/* Ação principal com contador (por exemplo "Revisar agora 3"): sempre à mão quando há fila */
.he-review { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 8px 0 16px; margin-right: 6px; border-radius: 999px; background: var(--he-ink); color: var(--he-bg) !important; text-decoration: none !important; font: 700 14px/1 var(--he-font); white-space: nowrap; box-shadow: var(--he-shadow-1); transition: transform var(--he-fast) var(--he-ease), box-shadow var(--he-fast); }
.he-review:hover { transform: translateY(-1px); box-shadow: var(--he-shadow-2); }
.he-review:active { transform: scale(.97); }
.he-review:focus-visible { outline: 2px solid var(--he-accent); outline-offset: 2px; }
.he-review__n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--he-orange); color: var(--he-on-tone); font: 800 12.5px/1 var(--he-font); font-variant-numeric: tabular-nums; }
.he-review--dock { display: none; }

/* Presença da IA: o orbe diz se ela está livre, trabalhando ou esperando você */
.he-presence { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px 0 9px; border: 0; border-radius: 999px; background: transparent; color: var(--he-ink-2); font: 600 13.5px/1 var(--he-font); white-space: nowrap; cursor: pointer; transition: background var(--he-fast); -webkit-tap-highlight-color: transparent; }
.he-presence:hover, .he-presence[aria-expanded="true"] { background: var(--he-hover); }
.he-presence:focus-visible { outline: 2px solid var(--he-ai); outline-offset: 2px; }
.he-presence[data-state="working"] { color: var(--he-ai-ink); }
.he-presence[data-state="waiting"] { color: var(--he-orange-fg); background: var(--he-orange-bg); }

.he-orb { --s: 22px; position: relative; display: inline-block; width: var(--s); height: var(--s); flex: 0 0 var(--s); border-radius: 50%; isolation: isolate;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--he-ai-1) 40%, transparent), 0 3px 10px -3px color-mix(in srgb, var(--he-ai-1) 70%, transparent); }
.he-orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 200deg, var(--he-ai-1), var(--he-ai-2), var(--he-ai-3), #8a55cc, var(--he-ai-1)); }
.he-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .75) 0 10%, rgba(255, 255, 255, 0) 46%), radial-gradient(circle at 70% 78%, rgba(0, 0, 0, .18), transparent 55%); }
.he-orb--sm { --s: 16px; }
.he-orb--lg { --s: 36px; }
.he-orb--xl { --s: 56px; }
.he-orb, .he-orb[data-state="idle"] { animation: he-breathe 4.5s ease-in-out infinite; }
.he-orb[data-state="working"] { animation: he-halo 1.6s ease-out infinite; }
.he-orb[data-state="working"]::before { animation: he-spin 1.4s linear infinite; background: conic-gradient(from 0deg, var(--he-ai-1), var(--he-ai-3) 35%, #fff 50%, var(--he-ai-2) 65%, var(--he-ai-1)); }
.he-orb[data-state="waiting"] { animation: he-ping 1.5s ease-out infinite; box-shadow: 0 0 0 0 color-mix(in srgb, var(--he-orange) 55%, transparent); }
.he-orb[data-state="waiting"]::before { background: conic-gradient(from 200deg, #ff9d4d, #dd5b00, #d23fa0, #ff9d4d); }
@keyframes he-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes he-spin { to { transform: rotate(360deg); } }
@keyframes he-halo { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--he-ai-2) 55%, transparent); } 100% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--he-ai-2) 0%, transparent); } }
@keyframes he-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--he-orange) 60%, transparent); } 100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--he-orange) 0%, transparent); } }
/* Sem animação o estado continua legível pelo anel */
@media (prefers-reduced-motion: reduce) {
  .he-orb[data-state="working"] { box-shadow: 0 0 0 2px var(--he-bg), 0 0 0 4px var(--he-ai-2); }
  .he-orb[data-state="waiting"] { box-shadow: 0 0 0 2px var(--he-bg), 0 0 0 4px var(--he-orange); }
}

/* A barra aperta aos poucos conforme a largura que ela mesma tem (o menu lateral pode estar aberto ou recolhido):
   some o nome, depois os ícones dos destinos, o rótulo da presença e o "agora". */
.he-top { container: he-top / inline-size; }
@container he-top (max-width: 1290px) { .he-top__brand span:not(.he-top__mark) { display: none; } .he-nav { margin-left: 0; } }
@container he-top (max-width: 1200px) { .he-nav__item .he-i { display: none; } }
@container he-top (max-width: 1040px) { .he-presence__label { display: none; } .he-presence { padding: 0 9px; } }
@container he-top (max-width: 880px) { .he-review__long { display: none; } .he-nav__item { padding: 0 10px; font-size: 13.5px; } .he-review { padding-left: 13px; margin-right: 2px; } }
@container he-top (max-width: 820px) { .he-top__actions [data-he-theme-toggle], .he-top__brand { display: none; } .he-nav__item { padding: 0 8px; } .he-nav { gap: 0; } }
@media (max-width: 900px) { .he-top { padding: 0 12px; gap: 6px; } }
@media (max-width: 760px) {
  /* No celular os cinco destinos vão para a barra inferior; o topo rola com a página */
  .he-top { position: static; height: 52px; padding: 0 8px 0 16px; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; gap: 6px; }
  .he-top .he-top__brand { display: inline-flex; }
  .he-top .he-top__actions [data-he-theme-toggle] { display: inline-grid; }
  .he-top .he-top__brand span:not(.he-top__mark) { display: inline; }
  .he-top .he-nav { display: none; }
  .he-top .he-review { display: none; }
}

/* ══════════ 5. Barra inferior (celular) ══════════ */
.he-mnav { display: none; }
@media (max-width: 760px) {
  :root:has(.he-mnav) { --he-mnav-h: calc(58px + env(safe-area-inset-bottom, 0px)); }
  :root:has(.he-dock) { --he-dock-h: 68px; }
  .he-mnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8600; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); height: var(--he-mnav-h); padding: 0 4px env(safe-area-inset-bottom, 0px);
    background: color-mix(in srgb, var(--he-surface) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--he-line); }
  .he-mnav__item { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; min-width: 0; height: 58px; padding: 0 2px; color: var(--he-faint) !important; text-decoration: none !important; font: 600 10.5px/1 var(--he-font); letter-spacing: -.1px; -webkit-tap-highlight-color: transparent; }
  .he-mnav__item span:not(.he-count) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .he-mnav__item .he-i { font-size: 22px; }
  .he-mnav__item.is-active { color: var(--he-ink) !important; }
  .he-mnav__item.is-active::before { content: ""; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; margin-left: -14px; border-radius: 0 0 3px 3px; background: var(--he-rail); }
  .he-mnav__item .he-count { position: absolute; top: 6px; left: 50%; margin-left: 6px; min-width: 17px; height: 17px; padding: 0 4px; font-size: 10.5px; box-shadow: 0 0 0 2px var(--he-surface); }
  html.he-focus .he-mnav, html.he-layer-open .he-mnav, html.he-dock-open .he-mnav { display: none; }
  html.he-focus:root, html.he-layer-open:root, html.he-dock-open:root { --he-mnav-h: 0px; }
}

/* ══════════ 6. Campo de pedido à IA (rodapé fixo) ══════════ */
.he-dock { position: fixed; z-index: 8600; left: var(--he-sidebar-w); right: 0; bottom: var(--he-mnav-h); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 20px 14px; pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--he-bg) 82%, transparent) 46%, var(--he-bg)); transition: left .2s ease; }
.he-dock > * { pointer-events: auto; }
.he-dock__row { display: flex; align-items: flex-end; gap: 8px; width: min(760px, 100%); min-width: 0; }
.he-dock .he-composer { --he-composer-r: 24px; --he-composer-btn: 36px; flex: 1 1 auto; min-width: 0; }
.he-dock .he-composer__box { display: flex; flex-wrap: wrap; align-items: flex-end; min-height: 52px; padding: 7px 8px 7px 8px; gap: 0 8px; border-color: var(--he-line-strong); background: var(--he-raise);
  box-shadow: var(--he-shadow-ai); }
.he-dock .he-composer__box:focus-within { border-color: var(--he-ai); box-shadow: 0 0 0 3px color-mix(in srgb, var(--he-ai) 16%, transparent), var(--he-shadow-ai); }
.he-dock__orb { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.he-dock__orb:hover { background: var(--he-hover); }
.he-dock__orb:focus-visible { outline: 2px solid var(--he-ai); outline-offset: 1px; }
.he-dock .he-composer__input { flex: 1 1 160px; width: auto; min-height: 36px; padding: 7px 2px; font-size: 15px; line-height: 22px; color: var(--he-ink); }
.he-dock .he-composer__input::placeholder { color: var(--he-faint); }
.he-dock .he-composer__bar { flex: 0 0 auto; min-height: 36px; padding: 0; gap: 8px; }
.he-dock .he-composer__tools { display: none; }
.he-dock.is-sending .he-composer__box { border-color: var(--he-ai); }

/* Etiquetas de contexto (tela, período, item aberto) */
.he-dock__ctx { display: flex; align-items: center; gap: 6px; flex: 0 1 auto; max-width: 46%; min-width: 0; min-height: 36px; overflow: hidden; }
.he-dock__ctx:empty { display: none; }
.he-ctx { display: inline-flex; align-items: center; gap: 2px; min-width: 0; height: 26px; padding: 0 2px 0 9px; border-radius: 999px; background: var(--he-ai-soft); color: var(--he-ai-ink); font: 600 12px/1 var(--he-font); white-space: nowrap; }
.he-ctx:not(:has(.he-ctx__x)) { padding-right: 9px; }
.he-ctx__label { min-width: 0; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.he-ctx__kind { font-weight: 500; opacity: .8; margin-right: 3px; }
.he-ctx__x { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; opacity: .75; }
.he-ctx__x::after { content: ""; position: absolute; width: 40px; height: 40px; }
.he-ctx__x { position: relative; }
.he-ctx__x:hover, .he-ctx__x:focus-visible { opacity: 1; background: color-mix(in srgb, currentColor 14%, transparent); outline: none; }
.he-ctx__x .he-i { font-size: 12px; stroke-width: 2.6; }
.he-dock.is-open .he-composer__box { border-radius: 22px; }
.he-dock.is-open .he-dock__ctx { flex: 1 1 100%; max-width: none; order: -1; flex-wrap: wrap; padding: 2px 2px 4px; min-height: 0; }
.he-dock.is-open .he-dock__orb { order: 0; }

/* Sugestões em botões, mudam conforme a tela */
.he-dock__sugs { display: none; flex-wrap: wrap; justify-content: center; gap: 6px; width: min(760px, 100%); }
.he-dock.is-open .he-dock__sugs:not(:empty) { display: flex; animation: he-rise var(--he-med) var(--he-ease) both; }
.he-sug { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; max-width: 100%; padding: 6px 13px; border: 1px solid var(--he-ai-line); border-radius: 999px; background: var(--he-raise); color: var(--he-ai-ink); font: 600 13px/1.25 var(--he-font); text-align: left; cursor: pointer; box-shadow: var(--he-shadow-1); transition: transform var(--he-fast) var(--he-ease), border-color var(--he-fast); }
.he-sug:hover { border-color: var(--he-ai); transform: translateY(-1px); }
.he-sug:focus-visible { outline: 2px solid var(--he-ai); outline-offset: 2px; }
.he-sug .he-i { font-size: 14px; }
@keyframes he-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes he-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes he-fade-out { to { opacity: 0; } }


@media (max-width: 1023px) { .he-dock { left: 0; } }
@media (max-width: 760px) {
  .he-dock { padding: 14px 10px 8px; gap: 6px; }
  .he-dock .he-composer { --he-composer-r: 22px; }
  .he-dock .he-composer__box { min-height: 48px; padding: 3px 4px; }
  .he-dock__orb { width: 40px; height: 40px; flex-basis: 40px; }
  .he-dock .he-composer__input { min-height: 40px; padding: 9px 2px; }
  .he-dock .he-composer__bar { min-height: 40px; }
  .he-dock .he-composer__input { font-size: 16px; flex-basis: 100px; }
  .he-dock:not(.is-open) .he-dock__ctx { display: none; }
  .he-dock:not(.is-open) .he-composer.is-empty .he-composer__bar { display: none; }
  .he-review--dock { display: inline-flex; flex: 0 0 auto; height: 48px; margin: 0; padding: 0 8px 0 14px; }
  .he-dock.is-open .he-review--dock, .he-review--dock[hidden] { display: none; }
  .he-dock__sugs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; width: calc(100% + 20px); margin: 0 -10px; padding: 2px 10px; }
  .he-dock__sugs::-webkit-scrollbar { display: none; }
  .he-sug { flex: 0 0 auto; min-height: 40px; }
}

/* ══════════ 7. Camadas: fundo, gaveta, folha, paleta, camada de detalhe, ajuda ══════════ */
.he-scrim { position: fixed; inset: 0; z-index: 9300; background: var(--he-scrim); animation: he-fade var(--he-med) ease both; }
.he-scrim.is-closing, .he-pal.is-closing { animation: he-fade-out var(--he-fast) ease both; }
.he-drawer { position: fixed; z-index: 9310; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); display: flex; flex-direction: column; min-height: 0; background: var(--he-surface); color: var(--he-ink); box-shadow: var(--he-shadow-pop); animation: he-slide-in var(--he-med) var(--he-ease) both; outline: none; }
.he-drawer--left { right: auto; left: 0; animation-name: he-slide-in-left; }
.he-drawer--wide { width: min(620px, 100vw); }
.he-drawer.is-closing { animation: he-slide-out var(--he-fast) ease-in both; }
.he-drawer--left.is-closing { animation-name: he-slide-out-left; }
.he-drawer__grip { display: none; }
.he-drawer__head { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; min-height: 60px; padding: 10px 10px 10px 20px; border-bottom: 1px solid var(--he-line); }
.he-drawer__head h2, .he-drawer__title { flex: 1; min-width: 0; margin: 0; font: 700 17px/1.3 var(--he-font); letter-spacing: -.2px; color: var(--he-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.he-drawer__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 24px; }
.he-drawer__foot { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--he-line); background: var(--he-surface); }
@keyframes he-slide-in { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes he-slide-out { to { transform: translateX(28px); opacity: 0; } }
@keyframes he-slide-in-left { from { transform: translateX(-28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes he-slide-out-left { to { transform: translateX(-28px); opacity: 0; } }
@keyframes he-sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes he-sheet-out { to { transform: translateY(40px); opacity: 0; } }
/* Folha: no computador vira caixa central; no celular sobe de baixo */
.he-drawer--sheet { top: auto; right: auto; left: 50%; bottom: 50%; width: min(560px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 48px)); margin: 0; translate: -50% 50%; border-radius: var(--he-r-lg); animation-name: he-sheet-in; }
.he-drawer--sheet.is-closing { animation-name: he-sheet-out; }
@media (max-width: 760px) {
  .he-drawer, .he-drawer--left, .he-drawer--sheet { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: min(88dvh, calc(100dvh - 40px)); translate: none; border-radius: 22px 22px 0 0; animation-name: he-sheet-in; touch-action: pan-y; }
  .he-drawer.is-closing, .he-drawer--left.is-closing { animation-name: he-sheet-out; }
  .he-drawer__grip { display: block; flex: 0 0 auto; width: 100%; height: 22px; padding: 0; border: 0; background: transparent; cursor: grab; touch-action: none; }
  .he-drawer__grip::before { content: ""; display: block; width: 40px; height: 4px; margin: 9px auto 0; border-radius: 4px; background: var(--he-line-strong); }
  .he-drawer__head { min-height: 48px; padding-top: 0; border-bottom: 0; }
  .he-drawer__body { padding: 8px 16px 20px; }
  .he-drawer__foot { padding-left: 16px; padding-right: 16px; }
  .he-drawer__foot .he-btn { flex: 1 1 auto; }
}

/* Paleta Ctrl K */
.he-pal { position: fixed; inset: 0; z-index: 9500; display: grid; align-items: start; justify-items: center; padding: 11vh 16px 16px; background: var(--he-scrim); animation: he-fade var(--he-fast) ease both; }
.he-pal__box { width: min(640px, 100%); max-height: min(600px, 78vh); display: flex; flex-direction: column; min-height: 0; border-radius: var(--he-r-lg); background: var(--he-raise); color: var(--he-ink); box-shadow: var(--he-shadow-pop); overflow: hidden; animation: he-rise var(--he-med) var(--he-ease) both; }
.he-pal__top { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--he-line); color: var(--he-faint); }
.he-pal__input { flex: 1; min-width: 0; height: 56px; border: 0; outline: 0; background: transparent; color: var(--he-ink); font: 400 17px/1.3 var(--he-font); }
.he-pal__input::placeholder { color: var(--he-faint); opacity: 1; }
.he-pal__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 6px; list-style: none; scroll-padding: 40px 0; }
.he-pal__group { padding: 10px 12px 4px; font: 700 11.5px/1.3 var(--he-font); letter-spacing: .3px; text-transform: uppercase; color: var(--he-faint); }
.he-pal__item { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 6px 12px; border-radius: var(--he-r-sm); color: var(--he-ink-2); font: 500 14.5px/1.3 var(--he-font); cursor: pointer; }
.he-pal__item.is-sel { background: var(--he-hover-strong); color: var(--he-ink); }
.he-pal__ico { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; background: var(--tone-bg, var(--he-hover)); color: var(--tone-fg, var(--he-muted)); overflow: hidden; }
.he-pal__ico img { width: 100%; height: 100%; object-fit: cover; }
.he-pal__ico .he-i { font-size: 16px; }
.he-pal__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.he-pal__hint { flex: 0 0 auto; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--he-faint); font-size: 12.5px; }
.he-pal__item--ai { margin-top: 4px; background: var(--he-ai-soft); color: var(--he-ai-ink); font-weight: 600; }
.he-pal__item--ai.is-sel { background: var(--he-ai-soft); box-shadow: inset 0 0 0 2px var(--he-ai); color: var(--he-ai-ink); }
.he-pal__item--ai .he-pal__ico { background: transparent; }
.he-pal__item--ai q { quotes: "“" "”"; font-weight: 500; color: var(--he-ink); }
.he-pal__note { padding: 14px 12px; color: var(--he-faint); font-size: 14px; }
.he-pal__foot { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 9px 16px; border-top: 1px solid var(--he-line); background: var(--he-soft); color: var(--he-faint); font: 500 12px/1.4 var(--he-font); }
.he-pal__foot span { display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 760px) { .he-pal { padding: 10px 10px 0; } .he-pal__box { max-height: min(78dvh, 600px); } .he-pal__foot { display: none; } .he-pal__input { font-size: 16px; } .he-pal__item--ai .he-pal__hint { display: none; } }

/* Camada de detalhe: abre por cima da tela e devolve ao ponto exato */
.he-layer { position: fixed; z-index: 8500; top: 0; right: 0; bottom: 0; left: var(--he-sidebar-w); display: flex; flex-direction: column; min-height: 0; padding-top: 10px; background: var(--he-scrim); animation: he-fade var(--he-med) ease both; outline: none; }
.he-layer__panel { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin: 0 10px; border-radius: 18px 18px 0 0; background: var(--he-bg); box-shadow: var(--he-shadow-pop); overflow: hidden; animation: he-sheet-in var(--he-med) var(--he-ease) both; }
.he-layer.is-closing { animation: he-fade-out var(--he-fast) ease both; }
.he-layer.is-closing .he-layer__panel { animation: he-sheet-out var(--he-fast) ease-in both; }
.he-layer__bar { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 4px 8px; border-bottom: 1px solid var(--he-line); background: var(--he-bg); }
.he-layer__title { flex: 1; min-width: 0; font: 600 13.5px/1.3 var(--he-font); color: var(--he-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.he-layer__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(var(--he-bottom) + 16px); }
.he-layer__body > [data-he-layer-root] { padding: 20px 28px 8px; min-width: 0; }
@media (max-width: 760px) { .he-layer__body > [data-he-layer-root] { padding: 14px 16px 8px; } }
.he-layer__state { display: grid; justify-items: center; align-content: center; gap: 14px; min-height: 60%; padding: 40px 20px; text-align: center; color: var(--he-muted); }
@media (max-width: 1023px) { .he-layer { left: 0; } }
@media (max-width: 760px) { .he-layer { padding-top: 0; } .he-layer__panel { margin: 0; border-radius: 0; } }

/* Ajuda de atalhos (tecla ?) */
.he-keys { display: grid; gap: 18px; }
.he-keys__group h3 { margin: 0 0 6px; font: 700 12px/1.3 var(--he-font); letter-spacing: .3px; text-transform: uppercase; color: var(--he-faint); }
.he-keys__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 4px 0; border-top: 1px solid var(--he-line); font-size: 14.5px; color: var(--he-ink-2); }
.he-keys__row span:last-child { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.he-keys__row .he-kbd { display: inline-grid; }

/* ══════════ 8. Avisos com Desfazer ══════════ */
.he-toasts { position: fixed; z-index: 9700; left: calc(var(--he-sidebar-w) + 20px); bottom: calc(var(--he-toasts-bottom, var(--he-bottom)) + 6px); display: flex; flex-direction: column-reverse; gap: 8px; width: min(420px, calc(100vw - 40px)); pointer-events: none; }
.he-toast { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 8px 8px 16px; border-radius: var(--he-r); background: var(--he-toast-bg); color: var(--he-toast-ink); font: 500 14px/1.4 var(--he-font); box-shadow: var(--he-toast-shadow); overflow: hidden; pointer-events: auto; animation: he-rise var(--he-med) var(--he-ease) both; }
.he-toast.is-leaving { animation: he-sheet-out var(--he-fast) ease-in both; }
.he-toast__text { flex: 1; min-width: 0; padding: 4px 0; overflow-wrap: anywhere; }
.he-toast__text small { display: block; margin-top: 2px; font-size: 12.5px; color: #cfcac2; }
.he-toast__btn { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font: 700 13.5px/1 var(--he-font); cursor: pointer; white-space: nowrap; }
.he-toast__btn:hover { background: rgba(255, 255, 255, .24); }
.he-toast__btn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.he-toast__x { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #cfcac2; cursor: pointer; }
.he-toast__x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.he-toast__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--he-rail); transform-origin: left; animation: he-countdown linear both; animation-duration: var(--he-toast-ms, 10000ms); }
.he-toast:hover .he-toast__bar, .he-toast:focus-within .he-toast__bar { animation-play-state: paused; }
.he-toast--error { background: var(--he-toast-error); }
.he-toast--error .he-toast__text small { color: #f3cfca; }
.he-toast--ok .he-toast__ico { color: #7bdc94; }
.he-toast--error .he-toast__ico { color: #ffb3aa; }
.he-toast--ai .he-toast__ico { color: #c9acf5; }
.he-toast__ico { flex: 0 0 auto; display: grid; }
@keyframes he-countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* Com a camada de detalhe aberta, os avisos sobem pelo centro: no canto eles cobririam o campo de comentário
   enquanto o Desfazer está na tela. */
@media (min-width: 1024px) {
  html.he-layer-open .he-toasts, .he-toasts--center { left: calc(var(--he-sidebar-w) + (100vw - var(--he-sidebar-w)) / 2 - 210px); }
}
@media (max-width: 1023px) { .he-toasts { left: 20px; } }
@media (max-width: 760px) { .he-toasts { left: 10px; right: 10px; width: auto; } .he-toast { flex-wrap: wrap; } .he-toast__text { flex: 1 1 60%; } }
/* Com a barra de decisão na tela, os avisos sobem para não cobrir os botões dela.
   Tela com rodapé próprio grudado (um chat, por exemplo) informa a altura em --he-toasts-bottom, no <html>. */
html.he-has-decide .he-toasts { bottom: calc(var(--he-toasts-bottom, var(--he-bottom)) + 84px); }
@media (max-width: 760px) { html.he-has-decide .he-toasts { bottom: calc(var(--he-toasts-bottom, var(--he-bottom)) + 124px); } }

/* Erro com orientação (dentro da página) */
.he-error { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--he-r); background: var(--he-danger-soft); color: var(--he-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--he-danger) 30%, transparent); }
.he-error > .he-i { color: var(--he-danger); font-size: 20px; margin-top: 1px; }
.he-error__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.he-error__title { font: 700 14.5px/1.4 var(--he-font); }
.he-error__text { font-size: 14px; line-height: 1.5; color: var(--he-ink-2); }
.he-error__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ══════════ 9. Atividade da IA (gaveta) ══════════ */
.he-act { display: grid; gap: 22px; }
.he-act__group > h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 700 12px/1.3 var(--he-font); letter-spacing: .3px; text-transform: uppercase; color: var(--he-faint); }
.he-act__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.he-job { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 12px 14px; border-radius: var(--he-r); background: var(--he-soft); box-shadow: inset 0 0 0 1px var(--he-line); overflow: hidden; }
.he-job > .he-orb { margin-top: 2px; }
.he-job__title { font: 600 14.5px/1.35 var(--he-font); color: var(--he-ink); overflow-wrap: anywhere; }
.he-job__title a { color: inherit !important; text-decoration: none !important; }
.he-job__title a:hover { text-decoration: underline !important; }
.he-job__step { grid-column: 2; display: flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1.4; color: var(--he-ai-ink); }
.he-job__meta { grid-column: 2; font-size: 12.5px; color: var(--he-faint); }
.he-job[data-status="running"]::before, .he-job[data-status="queued"]::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 40%; background: linear-gradient(90deg, transparent, var(--he-ai-1), var(--he-ai-3), transparent); animation: he-scan 1.6s linear infinite; }
.he-job[data-status="failed"] { background: var(--he-danger-soft); }
.he-job[data-status="failed"] .he-job__step { color: var(--he-danger); }
.he-job--new { animation: he-rise var(--he-med) var(--he-ease) both; }
@keyframes he-scan { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.he-dots3 { display: inline-flex; gap: 3px; }
.he-dots3 i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: he-blink 1.1s infinite ease-in-out; }
.he-dots3 i:nth-child(2) { animation-delay: .15s; } .he-dots3 i:nth-child(3) { animation-delay: .3s; }
@keyframes he-blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* Pergunta da IA com respostas em botões */
.he-question { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; padding: 14px 16px; border-radius: var(--he-r); background: var(--he-orange-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--he-orange) 35%, transparent); }
.he-question__who { font: 600 12.5px/1.3 var(--he-font); color: var(--he-orange-fg); }
.he-question__text { margin-top: 2px; font: 600 15px/1.45 var(--he-font); color: var(--he-ink); overflow-wrap: anywhere; }
.he-question__answers { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.he-question__answers .he-btn { background: var(--he-surface); white-space: normal; text-align: left; }
.he-question.is-answered { opacity: .6; }

/* ══════════ 9b. Arranjos e painéis ══════════ */
.he-panel { min-width: 0; padding: 16px 18px; border-radius: var(--he-r-lg); background: var(--he-surface); box-shadow: inset 0 0 0 1px var(--he-line); }
.he-panel--soft { background: var(--he-soft); }
.he-panel__title { margin: 0 0 8px; font: 700 12px/1.3 var(--he-font); letter-spacing: .3px; text-transform: uppercase; color: var(--he-faint); }
.he-panel__text { font-size: 14.5px; line-height: 1.55; color: var(--he-ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.he-counter { display: inline-flex; align-items: center; gap: 4px; font: 700 14px/1 var(--he-font); color: var(--he-ink-2); font-variant-numeric: tabular-nums; }
.he-counter b { font-size: 20px; letter-spacing: -.4px; color: var(--he-ink); }
/* Conferências automáticas, cada uma com a sua situação */
.he-checks { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.he-check { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 14px; line-height: 1.4; color: var(--he-ink-2); }
.he-check::before { content: ""; flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--he-ok) center / 11px no-repeat; background-image: var(--he-check-glyph); }
.he-check[data-state="warn"]::before { background-color: var(--he-orange); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M12 6v7M12 17.5h.01'/%3E%3C/svg%3E"); }
.he-check[data-state="fail"]::before { background-color: var(--he-danger); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E"); }
.he-check[data-state="wait"]::before { background: none; box-shadow: inset 0 0 0 2px var(--he-line-strong); }
.he-check small { display: block; font-size: 12.5px; color: var(--he-faint); }
.he-link { color: var(--he-accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.he-link:hover { text-decoration-thickness: 2px; }
.he-sheet__lead { margin: 0; font-size: 14px; line-height: 1.5; color: var(--he-ink-2); }
.he-field__error { margin: 0; font-size: 13px; line-height: 1.4; color: var(--he-danger); }
/* O que mudou desde a versão anterior */
.he-diff { font-size: 14.5px; line-height: 1.6; color: var(--he-ink-2); overflow-wrap: anywhere; }
.he-diff ins { text-decoration: none; border-radius: 4px; padding: 1px 3px; background: var(--he-ok-soft); color: var(--he-ok); font-weight: 600; }
.he-diff del { border-radius: 4px; padding: 1px 3px; background: var(--he-danger-soft); color: var(--he-danger); }

/* ══════════ 10. Selo de tom, linha de passos e com quem está ══════════ */
.he-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; max-width: 100%; padding: 0 10px 0 8px; border: 0; border-radius: 999px; background: var(--tone-bg, var(--he-hover)); color: var(--tone-fg, var(--he-muted)); font: 700 12px/1 var(--he-font); white-space: nowrap; }
.he-badge::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--tone, var(--he-ghost)); }
.he-badge--sm { height: 20px; padding: 0 8px 0 6px; font-size: 11px; }
.he-badge--lg { height: 32px; padding: 0 14px 0 11px; font-size: 13.5px; }
.he-badge--solid { background: var(--tone-solid); color: var(--he-on-tone); }
.he-badge--solid::before { background: currentColor; opacity: .85; }
.he-badge--dot { width: 10px; height: 10px; padding: 0; background: var(--tone); font-size: 0; }
.he-badge--dot::before { display: none; }
button.he-badge { cursor: pointer; min-height: 32px; transition: box-shadow var(--he-fast); }
button.he-badge:hover { box-shadow: inset 0 0 0 1.5px var(--tone); }
button.he-badge:focus-visible { outline: 2px solid var(--tone); outline-offset: 2px; }
button.he-badge .he-i { font-size: 13px; margin-right: -3px; }
@media (max-width: 760px) { button.he-badge { min-height: 40px; padding: 0 14px 0 11px; font-size: 13px; } }

.he-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.he-steps__step { position: relative; display: grid; gap: 7px; min-width: 0; padding-top: 0; font: 600 12px/1.2 var(--he-font); color: var(--he-faint); }
.he-steps__step::before { content: ""; height: 6px; border-radius: 6px; background: var(--he-line-strong); transition: background var(--he-med); }
.he-steps__step span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.he-steps__step.is-done::before { background: var(--tone, var(--he-accent)); }
.he-steps__step.is-done { color: var(--he-muted); }
.he-steps__step.is-current, .he-steps__step[aria-current="step"] { color: var(--tone-fg, var(--he-accent-ink)); font-weight: 700; }
.he-steps__step.is-current::before, .he-steps__step[aria-current="step"]::before { background: var(--tone, var(--he-accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone, var(--he-accent)) 25%, transparent); }
.he-steps--bar { gap: 3px; }
.he-steps--bar .he-steps__step { gap: 0; }
.he-steps--bar .he-steps__step::before { height: 4px; box-shadow: none !important; }
.he-steps--bar .he-steps__step span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
/* Pouco espaço (painel estreito, celular): só o rótulo do passo atual aparece */
.he-steps { container: he-steps / inline-size; }
@container he-steps (max-width: 520px) {
  .he-steps:not(.he-steps--bar) .he-steps__step span { visibility: hidden; }
  .he-steps:not(.he-steps--bar) .he-steps__step:is(.is-current, [aria-current="step"]) span { visibility: visible; overflow: visible; }
  .he-steps:not(.he-steps--bar) .he-steps__step:is(.is-current, [aria-current="step"]):nth-last-child(-n+2) span { justify-self: end; text-align: right; direction: rtl; }
}

.he-who { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 4px; border-radius: 999px; font: 700 12px/1 var(--he-font); white-space: nowrap; }
.he-who::before { content: ""; width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%; }
.he-who[data-who="you"] { background: var(--he-ink); color: var(--he-bg); }
.he-who[data-who="you"]::before { background: var(--he-orange); box-shadow: inset 0 0 0 4.5px var(--he-ink), inset 0 0 0 16px var(--he-orange); border: 1.5px solid var(--he-orange); }
.he-who[data-who="ai"] { background: var(--he-ai-soft); color: var(--he-ai-ink); }
.he-who[data-who="ai"]::before { background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .7) 0 10%, transparent 46%), conic-gradient(from 200deg, var(--he-ai-1), var(--he-ai-2), var(--he-ai-3), #8a55cc, var(--he-ai-1)); }
.he-who--mini { width: 24px; padding: 0 4px; font-size: 0; gap: 0; }
.he-who--mini[data-who="you"] { background: none; padding: 0; width: 18px; height: 18px; }
.he-who--mini[data-who="you"]::before { width: 18px; height: 18px; flex-basis: 18px; background: var(--he-orange); box-shadow: inset 0 0 0 4px var(--he-ink); border: 2px solid var(--he-ink); }
.he-who--mini[data-who="ai"] { background: none; padding: 0; width: 18px; height: 18px; }
.he-who--mini[data-who="ai"]::before { width: 18px; height: 18px; flex-basis: 18px; }

/* Selo discreto de item sincronizado com um sistema externo, e link para a origem */
.he-sync { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--he-line-strong); background: var(--he-surface); color: var(--he-ink-2); font: 700 10.5px/1 var(--he-font); letter-spacing: .02em; white-space: nowrap; flex: 0 0 auto; }
.he-sync--assumed { box-shadow: none; background: var(--he-hover); font-weight: 600; }
.he-sync__link { display: inline-flex; align-items: center; gap: 4px; color: var(--he-ink-2); font: 600 12.5px/1.3 var(--he-font); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.he-sync__link:hover { color: var(--he-ink); }
.he-sync__link .he-i { font-size: 13px; }

/* ══════════ 11. Cartão de item ══════════ */
.he-card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--he-r); background: var(--he-surface); color: var(--he-ink); box-shadow: 0 0 0 1px var(--he-line), var(--he-shadow-1); overflow: hidden; transition: transform var(--he-fast) var(--he-ease), box-shadow var(--he-fast); animation: he-rise var(--he-med) var(--he-ease) both; }
.he-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--he-line-strong), var(--he-shadow-2); }
.he-card:focus-within { box-shadow: 0 0 0 2px var(--he-accent), var(--he-shadow-2); }
.he-card__thumb { position: relative; aspect-ratio: 4 / 3; background: var(--tone-bg, var(--he-bg-sunken)); color: var(--tone-fg, var(--he-muted)); overflow: hidden; }
.he-card__thumb img, .he-card__thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.he-card__poster { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px 14px; font: 700 15px/1.25 var(--he-font); letter-spacing: -.2px; text-wrap: balance;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--tone, var(--he-ghost)) 30%, transparent), transparent 60%); }
.he-card__poster span { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.he-card__kind { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border-radius: 999px; background: rgba(15, 15, 17, .72); color: #fff; font: 600 11.5px/1 var(--he-font); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.he-card__kind .he-i { font-size: 13px; }
.he-card__body { display: grid; gap: 8px; padding: 12px 14px 13px; min-width: 0; border-top: 3px solid var(--tone, transparent); }
.he-card__title { margin: 0; font: 600 14.5px/1.35 var(--he-font); letter-spacing: -.1px; color: var(--he-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.he-card__link { color: inherit !important; text-decoration: none !important; outline: none; }
.he-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.he-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; font-size: 12.5px; line-height: 1.3; color: var(--he-muted); }
.he-card__date { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--he-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.he-card__date .he-i { font-size: 13px; color: var(--he-faint); }
.he-card__camp { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.he-card__camp::before { content: "#"; opacity: .6; }
.he-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.he-card__actions { position: relative; z-index: 2; display: flex; gap: 4px; }
.he-card.is-suggestion { background: transparent; box-shadow: none; outline: 1.5px dashed var(--he-ai); outline-offset: -1.5px; }
.he-card.is-suggestion .he-card__body { border-top-color: transparent; }

.he-card.he-glow[data-he-glow]:not([data-he-glow=""]) .he-card__kind { padding: 0 6px; font-size: 0; gap: 0; }
.he-card.he-glow::before { max-width: calc(100% - 52px); }
.he-card--row.he-glow::before { top: auto; bottom: 8px; }
/* Quadro: a coluna já diz o tom */
.he-card--board .he-badge { display: none; }
.he-card--board { cursor: grab; touch-action: pan-y; }
/* Lista */
.he-card--row { flex-direction: row; align-items: stretch; }
.he-card--row .he-card__thumb { flex: 0 0 76px; aspect-ratio: auto; min-height: 84px; }
.he-card--row .he-card__poster { padding: 8px; font-size: 0; }
.he-card--row .he-card__kind { top: 6px; left: 6px; padding: 0 6px; font-size: 0; gap: 0; }
.he-card--row .he-card__body { flex: 1; align-content: center; border-top: 0; border-left: 3px solid var(--tone, transparent); padding: 10px 14px; }
.he-card--row .he-card__title { -webkit-line-clamp: 1; font-size: 15px; }
.he-card--row { container: he-row / inline-size; }
@container he-row (min-width: 560px) {
  .he-card--row .he-card__body { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; }
  .he-card--row .he-card__foot { grid-column: 2; grid-row: 1 / span 2; }
}
/* Calendário: compacto, barra do tom à esquerda */
.he-card--cal { flex-direction: row; align-items: center; gap: 8px; padding: 6px 8px 6px 10px; border-radius: 10px; background: var(--tone-bg, var(--he-surface)); box-shadow: inset 3px 0 0 var(--tone, var(--he-ghost)); cursor: grab; touch-action: pan-y; min-height: 44px; }
.he-card--cal:hover { box-shadow: inset 3px 0 0 var(--tone, var(--he-ghost)), var(--he-shadow-1); }
.he-card--cal .he-card__thumb { flex: 0 0 32px; width: 32px; height: 32px; aspect-ratio: 1; border-radius: 6px; background: color-mix(in srgb, var(--tone, var(--he-ghost)) 22%, transparent); display: grid; place-items: center; }
.he-card--cal .he-card__poster { display: none; }
.he-card--cal .he-card__kind { position: static; padding: 0; height: auto; background: none; color: var(--tone-fg); font-size: 0; gap: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.he-card--cal .he-card__kind .he-i { font-size: 16px; }
.he-card--cal .he-card__thumb img + .he-card__kind { display: none; }
.he-card--cal .he-card__body { flex: 1; gap: 1px; padding: 0; border: 0; }
.he-card--cal .he-card__title { -webkit-line-clamp: 2; font-size: 12.5px; line-height: 1.3; }
.he-card--cal .he-card__meta { font-size: 11.5px; color: var(--tone-fg, var(--he-muted)); }
.he-card--cal .he-card__date { color: inherit; }
.he-card--cal .he-badge, .he-card--cal .he-card__camp, .he-card--cal .he-who:not(.he-who--mini), .he-card--cal .he-card__date .he-i { display: none; }
.he-card--cal .he-card__foot { position: absolute; top: 5px; right: 5px; }
.he-card--cal .he-who--mini { width: 14px; height: 14px; padding: 0; background: none; }
.he-card--cal .he-who--mini::before { width: 14px; height: 14px; flex-basis: 14px; }
.he-card--cal .he-card__title { padding-right: 14px; }
.he-card--cal.is-suggestion { background: transparent; box-shadow: none; }
/* Grade de perfil: só a miniatura, 4:5, com o que importa por cima */
.he-card--tile { border-radius: 4px; box-shadow: none; }
.he-card--tile[data-he-drag] { cursor: grab; touch-action: pan-y; }
.he-card--tile .he-card__link { pointer-events: auto; }
.he-card--tile:hover { transform: none; box-shadow: 0 0 0 2px var(--tone, var(--he-accent)); z-index: 1; }
.he-card--tile .he-card__thumb { aspect-ratio: 4 / 5; }
.he-card--tile .he-card__kind { left: auto; right: 6px; top: 6px; padding: 0 6px; font-size: 0; gap: 0; background: rgba(15, 15, 17, .55); }
.he-card--tile .he-card__body { position: absolute; left: 0; right: 0; bottom: 0; gap: 2px; padding: 22px 8px 7px; border: 0; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72)); pointer-events: none; }
.he-card--tile .he-card__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.he-card--tile .he-card__meta { color: #fff; font-size: 11.5px; gap: 5px; flex-wrap: nowrap; }
.he-card--tile .he-card__date { color: #fff; }
.he-card--tile .he-card__date .he-i { display: none; }
.he-card--tile .he-badge { height: 10px; width: 10px; flex: 0 0 10px; padding: 0; font-size: 0; background: var(--tone); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9); }
.he-card--tile .he-badge::before { display: none; }
.he-card--tile .he-card__camp, .he-card--tile .he-card__foot { display: none; }
.he-card--tile .he-card__poster { align-items: center; padding: 8px 8px 26px; font-size: clamp(10px, 2.6vw, 14px); }

/* Quadro e colunas */
.he-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(248px, 1fr); gap: 12px; align-items: start; overflow-x: auto; padding: 4px 2px 16px; margin: 0 -2px; scroll-snap-type: x proximity; scrollbar-width: thin; overscroll-behavior-x: contain; }
.he-col { display: flex; flex-direction: column; min-width: 0; max-height: 100%; border-radius: var(--he-r-lg); background: color-mix(in srgb, var(--tone-bg) 46%, var(--he-bg)); scroll-snap-align: start; }
.he-col__head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 12px 14px 10px; border-radius: var(--he-r-lg) var(--he-r-lg) 0 0; box-shadow: inset 0 3px 0 var(--tone); }
.he-col__head h3, .he-col__title { margin: 0; font: 700 14px/1.2 var(--he-font); color: var(--tone-fg); }
.he-col__n { margin-left: auto; min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--tone-bg); color: var(--tone-fg); font: 700 12px/1.3 var(--he-font); text-align: center; font-variant-numeric: tabular-nums; }
.he-col__top { padding: 0 8px 8px; }
.he-col__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; min-height: 72px; padding: 0 8px 10px; border-radius: 0 0 var(--he-r-lg) var(--he-r-lg); }
.he-col.is-locked .he-col__list { background: repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in srgb, var(--tone) 8%, transparent) 8px 9px); }
@media (max-width: 760px) { .he-board { grid-auto-columns: 84%; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 16px; scroll-padding: 0 16px; } }

/* Calendário (semana e mês) */
.he-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.he-cal__day { display: flex; flex-direction: column; min-width: 0; min-height: 220px; border-radius: var(--he-r); background: var(--he-surface); box-shadow: inset 0 0 0 1px var(--he-line); }
.he-cal__day.is-out { background: transparent; }
.he-cal__head { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 10px 4px; font: 600 12px/1.2 var(--he-font); color: var(--he-faint); text-transform: lowercase; }
.he-cal__num { font: 700 16px/1.2 var(--he-font); color: var(--he-ink); font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.he-cal__day.is-today .he-cal__num { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--he-ink); color: var(--he-bg); font-size: 13.5px; }
.he-cal__list { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; align-content: start; padding: 2px 6px 8px; min-height: 48px; }
.he-cal__add { display: none; align-items: center; justify-content: center; gap: 5px; min-height: 40px; margin: 0 6px 6px; padding: 4px 6px; border: 1px dashed var(--he-ai-line); border-radius: 10px; background: transparent; color: var(--he-ai-ink); font: 600 12px/1.2 var(--he-font); cursor: pointer; }
.he-cal__add .he-i { font-size: 13px; }
.he-cal__day:hover .he-cal__add, .he-cal__day:focus-within .he-cal__add, .he-cal__day.is-empty .he-cal__add { display: flex; }
.he-cal__add:hover { border-color: var(--he-ai); background: var(--he-ai-soft); }
.he-cal--month { gap: 4px; }
.he-cal--month .he-cal__day { min-height: 104px; border-radius: 10px; }
.he-cal--month .he-cal__head { padding: 6px 8px 2px; }
.he-cal--month .he-cal__num { font-size: 13px; }
.he-cal--month .he-card--cal { min-height: 26px; padding: 3px 6px 3px 8px; border-radius: 7px; }
.he-cal--month .he-card--cal .he-card__thumb, .he-cal--month .he-card--cal .he-card__meta { display: none; }
.he-cal--month .he-card--cal .he-card__title { -webkit-line-clamp: 1; font-size: 12px; }
.he-cal--month .he-cal__add { display: none !important; }
.he-cal__dow { font: 700 11.5px/1.2 var(--he-font); letter-spacing: .3px; text-transform: uppercase; color: var(--he-faint); padding: 0 8px 2px; }
@media (max-width: 900px) {
  /* Agenda: um dia por linha */
  .he-cal:not(.he-cal--month) { grid-template-columns: minmax(0, 1fr); }
  .he-cal:not(.he-cal--month) .he-cal__day { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .he-cal:not(.he-cal--month) .he-cal__head { flex: 0 0 62px; flex-direction: column; align-items: flex-start; gap: 1px; padding: 12px 0 10px 12px; }
  .he-cal:not(.he-cal--month) .he-cal__list { flex: 1 1 0; padding: 8px 8px 8px 0; min-height: 56px; }
  .he-cal:not(.he-cal--month) .he-cal__add { display: flex; flex: 1 1 100%; margin: 0 8px 8px 62px; }
  .he-cal:not(.he-cal--month) .he-cal__day:not(.is-empty) .he-cal__add { display: none; }
  .he-cal--month .he-cal__day { min-height: 64px; }
  .he-cal--month .he-card--cal { min-height: 8px; height: 8px; padding: 0; border-radius: 4px; background: var(--tone); box-shadow: none; }
  .he-cal--month .he-card--cal .he-card__body { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .he-cal--month .he-cal__list { gap: 3px; padding: 2px 5px 6px; }
  .he-cal__dow { padding: 0 2px 2px; text-align: center; font-size: 10.5px; }
}

/* Faixa de metas do período */
.he-goals { display: flex; flex-wrap: wrap; gap: 8px; }
.he-goal { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px 4px 10px; border-radius: 999px; background: var(--he-surface); box-shadow: inset 0 0 0 1px var(--he-line); font: 600 13px/1.2 var(--he-font); color: var(--he-ink-2); }
.he-goal b { font-variant-numeric: tabular-nums; color: var(--he-ink); }
.he-goal .he-i { font-size: 15px; color: var(--he-faint); }
.he-goal.is-done { background: var(--he-ok-soft); box-shadow: none; color: var(--he-ok); }
.he-goal.is-done b, .he-goal.is-done .he-i { color: inherit; }

/* Grade de perfil (3 colunas, miniaturas 4:5) */
.he-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; max-width: 560px; margin: 0 auto; border-radius: var(--he-r); overflow: hidden; }
.he-grid3__sep { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 10px 4px 6px; font: 700 11.5px/1.2 var(--he-font); letter-spacing: .3px; text-transform: uppercase; color: var(--he-faint); }
.he-grid3__sep::after { content: ""; flex: 1; height: 1px; background: var(--he-line-strong); }
.he-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.he-cards--list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (max-width: 560px) { .he-cards:not(.he-cards--list) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ══════════ 12. IA trabalhando: brilho aplicável a qualquer elemento ══════════ */
.he-glow { position: relative; isolation: isolate; }
.he-glow::after { content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; padding: 2px; pointer-events: none;
  background: linear-gradient(110deg, var(--he-ai-1), var(--he-ai-3), #d23fa0, var(--he-ai-2), var(--he-ai-1)); background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: he-glow-run 2.4s linear infinite; }
.he-glow::before { content: attr(data-he-glow); position: absolute; z-index: 6; top: 8px; right: 8px; max-width: calc(100% - 16px); padding: 5px 10px; border-radius: 999px; background: var(--he-ai-grad); color: #fff; font: 700 11.5px/1.2 var(--he-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; box-shadow: 0 6px 16px -6px rgba(61, 63, 200, .7); animation: he-pulse 1.8s ease-in-out infinite; }
.he-glow:not([data-he-glow])::before, .he-glow[data-he-glow=""]::before { display: none; }
.he-glow > :where(img, video, .he-card__thumb, .he-slide, .he-post__media) { filter: saturate(.7); }
.he-glow--soft::after { padding: 1.5px; opacity: .8; }
.he-glow--veil { overflow: hidden; }
.he-glow--veil > * { opacity: .55; }
@keyframes he-glow-run { to { background-position: -300% 0; } }
@keyframes he-pulse { 50% { opacity: .72; } }
@media (prefers-reduced-motion: reduce) { .he-glow::after { background: var(--he-ai); } }

/* ══════════ 13. Estado vazio, esqueleto ══════════ */
.he-empty { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; min-width: 0; gap: 6px; padding: 36px 20px 32px; border-radius: var(--he-r-lg); text-align: center; color: var(--he-muted); }
.he-empty--boxed { background: var(--he-surface); box-shadow: inset 0 0 0 1px var(--he-line); }
.he-empty--compact { padding: 18px 12px; gap: 4px; }
.he-empty__art { width: 132px; height: 96px; margin-bottom: 8px; color: var(--he-line-strong); }
.he-empty--compact .he-empty__art { width: 88px; height: 64px; margin-bottom: 2px; }
.he-empty__art .a { fill: var(--he-surface); stroke: var(--he-line-strong); stroke-width: 1.5; }
.he-empty__art .b { fill: var(--he-bg-sunken); }
.he-empty__art .c1 { fill: var(--he-blue); } .he-empty__art .c2 { fill: var(--he-violet); } .he-empty__art .c3 { fill: var(--he-pink); }
.he-empty__art .c4 { fill: var(--he-orange); } .he-empty__art .c5 { fill: var(--he-teal); } .he-empty__art .c6 { fill: var(--he-green); }
.he-empty__art .k { fill: url(#he-grad-ai); }
.he-empty__art .l { fill: none; stroke: var(--he-line-strong); stroke-width: 2; stroke-linecap: round; }
.he-empty__art .l6 { stroke: var(--he-green); stroke-linejoin: round; }
.he-empty__title { font: 700 17px/1.3 var(--he-font); letter-spacing: -.2px; color: var(--he-ink); text-wrap: balance; }
.he-empty__text { max-width: 420px; font-size: 14.5px; line-height: 1.5; text-wrap: pretty; }
.he-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; max-width: 100%; }
.he-empty__actions .he-btn { max-width: 100%; white-space: normal; }

.he-skel { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--he-hover) 0%, var(--he-hover-strong) 50%, var(--he-hover) 100%); background-size: 200% 100%; animation: he-shimmer 1.4s linear infinite; min-height: 12px; color: transparent !important; user-select: none; }
.he-skel--text { height: 12px; margin: 6px 0; border-radius: 6px; }
.he-skel--title { height: 20px; width: 60%; }
.he-skel--thumb { aspect-ratio: 4 / 3; border-radius: var(--he-r); }
.he-skel--card { height: 220px; border-radius: var(--he-r); }
.he-skel--row { height: 84px; border-radius: var(--he-r); }
.he-skel--phone { width: min(300px, 80%); aspect-ratio: 9 / 17; border-radius: 40px; margin: 0 auto; }
.he-skel--circle { width: 36px; height: 36px; border-radius: 50%; }
.he-skel--w40 { width: 40%; } .he-skel--w60 { width: 60%; } .he-skel--w80 { width: 80%; }
@keyframes he-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ══════════ 14. Alternador de visões, chips de filtro, abas ══════════ */
.he-views { position: relative; display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--he-hover-strong); max-width: 100%; }
.he-views__item { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--he-muted) !important; font: 600 13.5px/1 var(--he-font); white-space: nowrap; text-decoration: none !important; cursor: pointer; transition: color var(--he-fast); -webkit-tap-highlight-color: transparent; }
.he-views__item .he-i { font-size: 16px; }
.he-views__item:hover { color: var(--he-ink) !important; }
.he-views__item.is-active, .he-views__item[aria-pressed="true"], .he-views__item[aria-current="true"] { color: var(--he-ink) !important; }
.he-views:not(.is-ready) .he-views__item:is(.is-active, [aria-pressed="true"], [aria-current="true"]) { background: var(--he-surface); box-shadow: var(--he-shadow-1); }
.he-views__thumb { position: absolute; z-index: 0; top: 3px; left: 0; height: calc(100% - 6px); border-radius: 999px; background: var(--he-surface); box-shadow: var(--he-shadow-1); transition: transform var(--he-med) var(--he-ease), width var(--he-med) var(--he-ease); pointer-events: none; }
.he-views__item:focus-visible { outline: 2px solid var(--he-accent); outline-offset: 1px; }
@media (max-width: 760px) { .he-views__item { min-height: 40px; padding: 0 12px; } }
/* Tela estreita: só a visão ativa mostra o nome; as outras ficam com o ícone */
@media (max-width: 480px) { .he-views__item:has(.he-i):not(.is-active):not([aria-pressed="true"]):not([aria-current="true"]) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); } .he-views__item:has(.he-i) { min-width: 44px; } }

.he-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.he-chips__label { font: 600 12.5px/1 var(--he-font); color: var(--he-faint); margin-right: 2px; white-space: nowrap; }
.he-chips__sep { width: 1px; height: 20px; background: var(--he-line-strong); margin: 0 4px; flex: 0 0 1px; }
.he-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border: 1px solid var(--he-line-strong); border-radius: 999px; background: var(--he-surface); color: var(--he-ink-2) !important; font: 600 13px/1 var(--he-font); white-space: nowrap; text-decoration: none !important; cursor: pointer; transition: background var(--he-fast), border-color var(--he-fast), color var(--he-fast); -webkit-tap-highlight-color: transparent; }
.he-chip .he-i { font-size: 15px; }
.he-chip:hover { border-color: var(--he-ink); }
.he-chip:focus-visible { outline: 2px solid var(--he-accent); outline-offset: 2px; }
.he-chip[aria-pressed="true"], .he-chip.is-active { background: var(--he-ink); border-color: var(--he-ink); color: var(--he-bg) !important; }
.he-chip[data-tone]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.he-chip[data-tone][aria-pressed="true"] { background: var(--tone-solid); border-color: var(--tone-solid); color: var(--he-on-tone) !important; }
.he-chip[data-tone][aria-pressed="true"]::before { background: currentColor; }
.he-chip__n { font-weight: 700; opacity: .7; font-variant-numeric: tabular-nums; }
.he-chip--clear { border-color: transparent; background: transparent; color: var(--he-accent-ink) !important; padding: 0 8px; }
@media (max-width: 760px) {
  .he-chip { min-height: 40px; }
  .he-chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; scroll-padding: 0 16px; }
  .he-chips--scroll::-webkit-scrollbar { display: none; }
  .he-chips--scroll > * { flex: 0 0 auto; }
}

.he-tabs { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--he-line); }
.he-tabs::-webkit-scrollbar { display: none; }
.he-tab { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--he-muted) !important; font: 600 14px/1 var(--he-font); white-space: nowrap; text-decoration: none !important; cursor: pointer; }
.he-tab:hover { color: var(--he-ink) !important; }
.he-tab[aria-selected="true"], .he-tab.is-active { color: var(--he-ink) !important; }
.he-tab[aria-selected="true"]::after, .he-tab.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--he-ink); }
.he-tab:focus-visible { outline: 2px solid var(--he-accent); outline-offset: -2px; border-radius: 8px; }
.he-tabs--fill .he-tab { flex: 1 1 0; justify-content: center; }
.he-tabpanel { padding-top: 16px; min-width: 0; }
.he-tabpanel:focus-visible { outline: 2px solid var(--he-accent); outline-offset: 4px; border-radius: 8px; }

/* ══════════ 15. Estúdio, moldura de aparelho e prévia de publicação ══════════ */
.he-studio { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; gap: 16px; min-width: 0; padding: 20px 16px 30px; isolation: isolate; }
.he-studio::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: 4px; width: min(420px, 100%); height: 46px; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--tone, var(--he-ink)) 38%, transparent), transparent); filter: blur(10px); }
.he-studio::after { content: ""; position: absolute; z-index: -2; inset: 0; border-radius: var(--he-r-lg); background: radial-gradient(60% 46% at 50% 38%, color-mix(in srgb, var(--tone, var(--he-accent)) 13%, transparent), transparent 70%); pointer-events: none; }

.he-studio > * { max-width: 100%; min-width: 0; }
.he-phone { --pw: 330px; position: relative; width: var(--pw); max-width: 100%; flex: 0 0 auto; padding: 9px; border-radius: 46px; background: var(--he-bezel); box-shadow: inset 0 0 0 1.5px #3a3a40, inset 0 0 0 4px #1b1b1f, 0 30px 60px -28px rgba(15, 12, 30, .65), 0 12px 24px -14px rgba(15, 12, 30, .4); container-type: inline-size; }
.he-phone--sm { --pw: 250px; padding: 7px; border-radius: 36px; }
.he-phone--lg { --pw: 380px; }
/* Cabe na altura da tela (fila e estúdio): a largura sai do espaço vertical que sobra */
.he-phone--fit { --pw: clamp(240px, calc((100dvh - 560px) / 1.25), 380px); }
.he-phone--fit:has(.he-reel) { --pw: clamp(220px, calc((100dvh - 400px) * .5625), 360px); }
.he-phone__screen { position: relative; display: flex; flex-direction: column; border-radius: 37px; background: var(--he-post-bg); color: var(--he-post-ink); overflow: hidden; font-family: -apple-system, "Segoe UI", var(--he-font); }
.he-phone--sm .he-phone__screen { border-radius: 29px; }
.he-phone__status { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 6px 22px 0; font: 700 12px/1 var(--he-font); color: var(--he-post-ink); }
.he-phone__status::after { content: ""; width: 44px; height: 10px; border-radius: 3px; background:
  linear-gradient(currentColor 0 0) 0 100% / 3px 4px no-repeat, linear-gradient(currentColor 0 0) 5px 100% / 3px 6px no-repeat, linear-gradient(currentColor 0 0) 10px 100% / 3px 8px no-repeat, linear-gradient(currentColor 0 0) 15px 100% / 3px 10px no-repeat,
  linear-gradient(currentColor 0 0) 100% 50% / 20px 9px no-repeat; opacity: .9; border-radius: 2px; }
.he-phone__status::before { content: ""; position: absolute; top: 8px; left: 50%; width: 78px; height: 20px; margin-left: -39px; border-radius: 12px; background: #000; }
.he-phone--flat { padding: 0; border-radius: var(--he-r-lg); background: transparent; box-shadow: 0 0 0 1px var(--he-line), var(--he-shadow-1); }
.he-phone--flat .he-phone__screen { border-radius: var(--he-r-lg); }
.he-phone--flat .he-phone__status { display: none; }
@media (max-width: 480px) {
  /* No celular a moldura some: a tela já é um celular */
  .he-studio > :has(> .he-phone) { width: 100%; }
  .he-phone:not(.he-phone--keep) { --pw: 100%; padding: 0; border-radius: var(--he-r-lg); background: transparent; box-shadow: 0 0 0 1px var(--he-line), var(--he-shadow-1); }
  .he-phone:not(.he-phone--keep) .he-phone__screen { border-radius: var(--he-r-lg); }
  .he-phone:not(.he-phone--keep) .he-phone__status { display: none; }
  .he-studio { width: 100%; padding: 8px 0 22px; }
}

.he-post__head { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 6px 6px 6px 12px; }
.he-post__head .he-avatar { width: 32px; height: 32px; }
.he-post__who { flex: 1; min-width: 0; display: grid; }
.he-post__account { font: 700 13px/1.25 var(--he-font); color: var(--he-post-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.he-post__sub { font: 400 11.5px/1.25 var(--he-font); color: var(--he-post-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.he-post__more { display: grid; place-items: center; width: 36px; height: 36px; color: var(--he-post-ink); }
.he-post__media { position: relative; background: #0b0b0d; aspect-ratio: 4 / 5; overflow: hidden; }
.he-post__media[data-ratio="1x1"] { aspect-ratio: 1; }
.he-post__media[data-ratio="9x16"] { aspect-ratio: 9 / 16; }
.he-post__media[data-ratio="4x5"] { aspect-ratio: 4 / 5; }
.he-post__media > img, .he-post__media > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.he-post__actions { position: relative; display: flex; align-items: center; gap: 2px; min-height: 44px; padding: 2px 6px; color: var(--he-post-ink); }
.he-post__act { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 7px; font: 600 13px/1 var(--he-font); color: var(--he-post-ink); }
.he-post__act .he-i { font-size: 23px; stroke-width: 1.8; }
.he-post__act--save { margin-left: auto; }
.he-dots + .he-post__act--save { margin-left: 0; }
.he-post__caption { padding: 0 14px 14px; font: 400 13px/1.45 var(--he-font); color: var(--he-post-ink); overflow-wrap: anywhere; }
.he-post__caption b { font-weight: 700; margin-right: 4px; }
.he-post__captext { white-space: pre-line; }
.he-post__caption:not(.is-open) .he-post__captext { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.he-post__more-btn { display: inline; min-height: 0; margin: 0; padding: 4px 0; border: 0; background: none; color: var(--he-post-muted); font: 400 13px/1.45 var(--he-font); cursor: pointer; }
.he-post__more-btn:hover, .he-post__more-btn:focus-visible { color: var(--he-post-ink); outline: none; text-decoration: underline; }
.he-post__tags { color: var(--he-post-link); }
.he-post__date { margin-top: 6px; font-size: 11px; color: var(--he-post-muted); }
.he-post__music { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; }

/* Carrossel: toque (rolagem com encaixe), setas, teclado e pontos */
.he-carousel { position: relative; outline: none; }
.he-carousel:focus-visible { box-shadow: inset 0 0 0 3px var(--he-accent); }
.he-carousel__track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.he-carousel__track::-webkit-scrollbar { display: none; }
.he-slide { position: relative; flex: 0 0 100%; min-width: 0; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; overflow: hidden; background: #0b0b0d; }
.he-slide > img, .he-slide > video { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
.he-carousel__nav { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 30px; height: 30px; margin-top: -15px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #111; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); opacity: 0; transition: opacity var(--he-fast), transform var(--he-fast); }
.he-carousel__nav::after { content: ""; position: absolute; inset: -7px; }
.he-carousel__nav .he-i { font-size: 16px; stroke-width: 2.4; }
.he-carousel__nav--prev { left: 8px; } .he-carousel__nav--next { right: 8px; }
.he-carousel:hover .he-carousel__nav, .he-carousel:focus-within .he-carousel__nav { opacity: 1; }
.he-carousel__nav:hover { transform: scale(1.08); }
.he-carousel__nav[disabled] { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .he-carousel__nav { opacity: .92; } }
.he-carousel__count { position: absolute; top: 10px; right: 10px; z-index: 3; padding: 5px 9px; border-radius: 999px; background: rgba(18, 18, 18, .7); color: #fff; font: 600 11.5px/1 var(--he-font); font-variant-numeric: tabular-nums; pointer-events: none; }
.he-dots { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 24px; margin: 0 6px; overflow: hidden; }
.he-dots--static { padding: 8px 0; margin: 0; }
.he-dots__dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: var(--he-post-muted); opacity: .45; cursor: pointer; transition: transform var(--he-fast), opacity var(--he-fast), background var(--he-fast); position: relative; }
.he-dots__dot::after { content: ""; position: absolute; inset: -9px -2px; }
.he-dots__dot.is-active { background: var(--he-accent); opacity: 1; transform: scale(1.15); }
.he-dots__dot.is-far { transform: scale(.66); }

/* Cartões de texto: aprovar o texto antes da arte */
.he-slide--text { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 44px 26px 30px; background: var(--he-paper); color: var(--he-paper-ink);
  background-image: radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--he-violet) 14%, transparent), transparent 60%); }
.he-slide__n { position: absolute; top: 14px; left: 18px; display: inline-flex; align-items: center; gap: 8px; font: 800 12px/1 var(--he-font); letter-spacing: .6px; text-transform: uppercase; color: var(--he-violet-fg); }
.he-slide__n b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 8px; background: var(--he-violet-solid); color: var(--he-on-tone); font-size: 12px; }
.he-slide__text { margin: 0; font: 700 clamp(17px, 7cqw, 26px)/1.22 var(--he-font); letter-spacing: -.4px; text-wrap: balance; overflow-wrap: anywhere; white-space: pre-line; }
.he-slide__text--long { font-size: clamp(14px, 5cqw, 18px); font-weight: 600; line-height: 1.35; letter-spacing: -.1px; }
.he-slide__note { margin: 0; font: 500 12.5px/1.4 var(--he-font); color: color-mix(in srgb, var(--he-paper-ink) 62%, transparent); }
.he-slide.is-locked::after { content: ""; position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: rgba(18, 18, 18, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 13px no-repeat; }
.he-carousel:has(.he-slide.is-locked) .he-carousel__count { right: 44px; }

/* Vídeo vertical 9:16: interface por cima do vídeo */
.he-reel { position: relative; aspect-ratio: 9 / 16; background: #0b0b0d; color: #fff; overflow: hidden; }
.he-reel > .he-player { position: absolute; inset: 0; }
.he-reel__side { position: absolute; right: 8px; bottom: 76px; z-index: 3; display: grid; gap: 14px; justify-items: center; font: 600 11px/1 var(--he-font); text-shadow: 0 1px 3px rgba(0, 0, 0, .5); pointer-events: none; }
.he-reel__side span { display: grid; justify-items: center; gap: 4px; }
.he-reel__side .he-i { font-size: 25px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.he-reel__info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; gap: 6px; padding: 60px 58px 44px 12px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .7)); font: 400 12.5px/1.4 var(--he-font); pointer-events: none; }
.he-reel__info > * { pointer-events: auto; }
.he-reel__who { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.he-reel__who .he-avatar { width: 28px; height: 28px; }
.he-reel__info .he-post__caption { padding: 0; color: #fff; font-size: 12.5px; }
.he-reel__info .he-post__more-btn { color: rgba(255, 255, 255, .78); }
.he-reel__info .he-post__tags { color: #fff; }

/* Player de vídeo */
.he-player { position: relative; width: 100%; height: 100%; background: #0b0b0d; color: #fff; overflow: hidden; outline: none; }
.he-player > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.he-player--contain > video { object-fit: contain; }
.he-player__big { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; width: 100%; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
.he-player__big span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(18, 18, 18, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity var(--he-fast), transform var(--he-fast); }
.he-player__big .he-i { font-size: 28px; margin-left: 3px; }
.he-player.is-playing .he-player__big span { opacity: 0; transform: scale(1.2); }
.he-player__big:focus-visible span { outline: 2px solid #fff; outline-offset: 2px; opacity: 1; }
.he-player__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 4px; padding: 16px 6px 4px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .6)); }
.he-player__btn { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.he-player__btn:hover { background: rgba(255, 255, 255, .16); }
.he-player__btn:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.he-player__btn .he-i { font-size: 19px; }
.he-player__time { flex: 0 0 auto; padding: 0 4px; font: 600 11.5px/1 var(--he-font); font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.he-player.is-error::after { content: var(--he-label-video-error, "Não foi possível tocar este vídeo."); position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 20px; text-align: center; font: 600 13px/1.4 var(--he-font); background: rgba(11, 11, 13, .8); }

/* Linha do tempo com marcadores de comentário */
.he-tl { --p: 0; position: relative; flex: 1 1 auto; min-width: 0; height: 40px; cursor: pointer; touch-action: none; outline: none; }
.he-tl::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: rgba(255, 255, 255, .32); }
.he-tl__fill { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; width: calc(var(--p) * 100%); border-radius: 4px; background: #fff; }
.he-tl__fill::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); transition: transform var(--he-fast); }
.he-tl:hover .he-tl__fill::after, .he-tl:focus-visible .he-tl__fill::after, .he-tl.is-seeking .he-tl__fill::after { transform: scale(1.3); }
.he-tl:focus-visible::before { box-shadow: 0 0 0 2px #fff; }
.he-tl__range { position: absolute; top: 50%; height: 8px; margin-top: -4px; left: calc(var(--t) * 100%); width: calc(var(--w, 0) * 100%); border-radius: 4px; background: color-mix(in srgb, var(--he-orange) 75%, transparent); pointer-events: none; }
.he-tl .he-pin { top: 50%; left: calc(var(--t) * 100%); width: 20px; height: 20px; margin: -24px 0 0 -10px; font-size: 10.5px; border-radius: 50% 50% 50% 2px; rotate: -45deg; }
.he-tl .he-pin > span { rotate: 45deg; }
.he-tl--light { height: 44px; }
.he-tl--light::before { background: var(--he-line-strong); }
.he-tl--light .he-tl__fill, .he-tl--light .he-tl__fill::after { background: var(--he-ink); }

/* Marcador numerado de comentário */
.he-pinnable { position: relative; }
.he-pinnable.is-pinning { cursor: crosshair; }
.he-pinnable.is-pinning::after { content: ""; position: absolute; inset: 0; z-index: 2; box-shadow: inset 0 0 0 3px var(--he-orange); pointer-events: none; border-radius: inherit; }
.he-pin { position: absolute; z-index: 4; left: calc(var(--x, 50) * 1%); top: calc(var(--y, 50) * 1%); display: grid; place-items: center; width: 28px; height: 28px; margin: -14px 0 0 -14px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--he-orange-solid); color: var(--he-on-tone); font: 800 12.5px/1 var(--he-font); box-shadow: 0 3px 10px rgba(0, 0, 0, .4); cursor: pointer; animation: he-pop var(--he-med) var(--he-ease) both; }
.he-pin::after { content: ""; position: absolute; inset: -8px; }
.he-pin:hover, .he-pin:focus-visible, .he-pin.is-active { transform: scale(1.14); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--he-orange) 40%, transparent), 0 3px 10px rgba(0, 0, 0, .4); }
.he-pin.is-resolved { background: var(--he-green-solid); }
.he-pin--static::after { display: none; }
.he-pin--static { position: relative; left: auto; top: auto; margin: 0; flex: 0 0 auto; width: 24px; height: 24px; font-size: 11.5px; border-width: 0; box-shadow: none; animation: none; }
@keyframes he-pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }

/* Tira de slides (reordenar por arrasto) */
.he-strip { display: flex; gap: 8px; align-items: center; max-width: 100%; overflow-x: auto; padding: 6px 4px 10px; scrollbar-width: thin; }
.he-strip__item { position: relative; flex: 0 0 52px; width: 52px; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 8px; background: var(--he-paper); color: var(--he-paper-ink); box-shadow: 0 0 0 1px var(--he-line-strong); overflow: hidden; cursor: grab; font: 800 13px/1 var(--he-font); display: grid; place-items: center; touch-action: pan-x; transition: transform var(--he-fast), box-shadow var(--he-fast); }
.he-strip__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.he-strip__item b { position: relative; z-index: 1; }
.he-strip__item img + b { position: absolute; left: 4px; bottom: 4px; display: grid; place-items: center; min-width: 18px; height: 18px; border-radius: 6px; background: rgba(18, 18, 18, .72); color: #fff; font-size: 10.5px; }
.he-strip__item:hover { transform: translateY(-2px); }
.he-strip__item.is-active { box-shadow: 0 0 0 2.5px var(--he-accent); }
.he-strip__item:focus-visible { outline: 2px solid var(--he-accent); outline-offset: 2px; }
.he-strip__add { flex: 0 0 52px; width: 52px; aspect-ratio: 4 / 5; display: grid; place-items: center; border: 1.5px dashed var(--he-line-strong); border-radius: 8px; background: transparent; color: var(--he-faint); cursor: pointer; }
.he-strip__add:hover { border-color: var(--he-ink); color: var(--he-ink); }

/* ══════════ 16. Barra de decisão e folha de ajuste ══════════ */
.he-decide { position: sticky; z-index: 30; bottom: calc(var(--he-bottom) + 4px); display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; max-width: 100%; margin: 16px auto 0; padding: 8px; border-radius: 999px; background: color-mix(in srgb, var(--he-raise) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--he-shadow-pop); }
.he-decide--static { position: static; box-shadow: 0 0 0 1px var(--he-line); }
.he-decide__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--he-ink); font: 700 15px/1.15 var(--he-font); white-space: nowrap; cursor: pointer; transition: transform var(--he-fast) var(--he-ease), background var(--he-fast), box-shadow var(--he-fast); -webkit-tap-highlight-color: transparent; }
.he-decide__btn .he-i { font-size: 18px; }
@media (max-width: 760px) { .he-decide__btn .he-kbd { display: none; } }
.he-decide__btn .he-kbd { background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; box-shadow: none; }
.he-decide__btn:active, .he-decide__btn.is-pressed { transform: scale(.95); }
.he-decide__btn:focus-visible { outline: 2px solid var(--he-accent); outline-offset: 2px; }
.he-decide__btn:disabled { opacity: .5; cursor: not-allowed; }
.he-decide__btn--approve { background: var(--he-green-solid); color: var(--he-on-tone); padding: 0 22px; box-shadow: 0 8px 20px -10px var(--he-green); }
.he-decide__btn--approve:hover { box-shadow: 0 10px 24px -8px var(--he-green); transform: translateY(-1px); }
.he-decide__btn--adjust { background: var(--he-orange-bg); color: var(--he-orange-fg); }
.he-decide__btn--adjust:hover { box-shadow: inset 0 0 0 1.5px var(--he-orange); }
.he-decide__btn--deny { color: var(--he-danger); }
.he-decide__btn--deny:hover { background: var(--he-danger-soft); }
.he-decide__btn small { display: block; font: 500 11.5px/1.2 var(--he-font); opacity: .9; margin-top: 2px; }
.he-decide__btn > span { display: block; text-align: left; }
@media (max-width: 480px) {
  /* Pouca largura: o complemento do rótulo some e a linha de apoio fica embaixo */
  .he-decide__more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .he-decide__btn--approve > span { text-align: center; }
}
.he-decide__swap { min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--he-accent-ink); font: 600 13px/1 var(--he-font); cursor: pointer; white-space: nowrap; }
.he-decide__swap:hover { background: var(--he-hover); }
.he-decide.is-busy { pointer-events: none; opacity: .7; }
@media (max-width: 760px) {
  .he-decide { position: fixed; left: 8px; right: 8px; bottom: calc(var(--he-bottom) + 2px); width: auto; margin: 0; gap: 6px; padding: 6px; border-radius: 22px; }
  .he-decide--static { position: static; }
  .he-decide__btn { min-height: 52px; padding: 0 10px; font-size: 14.5px; border-radius: 16px; }
  .he-decide__btn--approve { flex: 1.5 1 0; min-width: 0; padding: 0 10px; }
  .he-decide__btn--adjust { flex: 1 1 0; min-width: 0; }
  .he-decide__btn--deny { flex: 0 0 52px; padding: 0; }
  .he-decide__btn--deny .he-decide__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .he-decide__btn--approve .he-i, .he-decide__btn--adjust .he-i { display: none; }
  .he-decide__btn > span { overflow: hidden; }
  .he-decide__btn small { overflow: hidden; text-overflow: ellipsis; }
  .he-decide__swap { position: absolute; right: 8px; bottom: calc(100% + 6px); background: var(--he-raise); box-shadow: var(--he-shadow-1); }
  html.he-has-decide { --he-decide-h: 72px; }
  html.he-has-decide .he-main { padding-bottom: calc(var(--he-bottom) + 96px); }
}

.he-adjust { display: grid; gap: 14px; }
.he-adjust__quick { display: flex; flex-wrap: wrap; gap: 6px; }
.he-adjust__pins { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.he-adjust__pin { display: flex; align-items: flex-start; gap: 10px; padding: 8px 6px 8px 10px; border-radius: var(--he-r-sm); background: var(--he-soft); box-shadow: inset 0 0 0 1px var(--he-line); }
.he-adjust__pin > div { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 14px; line-height: 1.4; color: var(--he-ink); overflow-wrap: anywhere; }
.he-adjust__pin small { font-size: 12px; color: var(--he-faint); }
.he-adjust__pin input { width: 100%; min-height: 36px; border: 0; outline: 0; background: transparent; color: var(--he-ink); font: 400 14px/1.4 var(--he-font); }
@media (max-width: 760px) { .he-adjust__pin input { font-size: 16px; } }
.he-adjust__hint { font-size: 12.5px; color: var(--he-faint); }

/* ══════════ 17. Recortes (referências guardadas): item e mural ══════════ */
.he-mural { columns: 4 240px; column-gap: 14px; }
.he-mural > * { break-inside: avoid; margin: 0 0 14px; }
@media (max-width: 560px) { .he-mural { columns: 2; column-gap: 10px; } .he-mural > * { margin-bottom: 10px; } }
.he-clip { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--he-r); background: var(--he-surface); color: var(--he-ink); box-shadow: 0 0 0 1px var(--he-line), var(--he-shadow-1); overflow: hidden; transition: transform var(--he-fast) var(--he-ease), box-shadow var(--he-fast); animation: he-rise var(--he-med) var(--he-ease) both; }
.he-clip:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--he-line-strong), var(--he-shadow-2); }
.he-clip:focus-within { box-shadow: 0 0 0 2px var(--he-accent), var(--he-shadow-2); }
.he-clip__media { position: relative; background: var(--he-bg-sunken); overflow: hidden; }
.he-clip__media img, .he-clip__media video { width: 100%; height: auto; display: block; }
.he-clip[data-kind="video"] .he-clip__media::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(18, 18, 18, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l12-7Z'/%3E%3C/svg%3E") 55% 50% / 20px no-repeat; }
.he-clip__time { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; border-radius: 6px; background: rgba(18, 18, 18, .72); color: #fff; font: 600 11px/1 var(--he-font); font-variant-numeric: tabular-nums; }
.he-clip__body { display: grid; gap: 8px; padding: 12px 14px 12px; min-width: 0; }
.he-clip__kind { display: inline-flex; align-items: center; gap: 5px; font: 700 11px/1 var(--he-font); letter-spacing: .4px; text-transform: uppercase; color: var(--he-faint); }
.he-clip__kind .he-i { font-size: 14px; }
.he-clip h3.he-clip__title, .he-clip__title { margin: 0; font: 600 14.5px/1.35 var(--he-font); color: var(--he-ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.he-clip__link { color: inherit !important; text-decoration: none !important; outline: none; }
.he-clip__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.he-clip__text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--he-ink-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.he-clip__host { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: 12.5px; color: var(--he-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.he-clip__host .he-i { font-size: 13px; }
.he-clip__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.he-clip__foot { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--he-faint); }
.he-clip__foot .he-who { height: 20px; font-size: 11px; padding: 0 7px 0 3px; }
.he-clip__foot .he-who::before { width: 14px; height: 14px; flex-basis: 14px; }
.he-clip__foot time { margin-left: auto; white-space: nowrap; }
.he-clip__pin { position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--he-ink); color: var(--he-bg); }
.he-clip__pin .he-i { font-size: 14px; }
/* Tipos */
.he-clip[data-kind="note"] { background: var(--he-paper); color: var(--he-paper-ink); box-shadow: 0 0 0 1px color-mix(in srgb, var(--he-orange) 22%, var(--he-line)), var(--he-shadow-1); }
.he-clip[data-kind="note"] .he-clip__text { color: var(--he-paper-ink); font-size: 15px; line-height: 1.45; -webkit-line-clamp: 9; }
.he-clip[data-kind="note"] .he-clip__title { color: var(--he-paper-ink); }
.he-clip[data-kind="research"] { box-shadow: 0 0 0 1px var(--he-ai-line), var(--he-shadow-1); }
.he-clip[data-kind="research"] .he-clip__body { background: linear-gradient(180deg, var(--he-ai-soft), transparent 70%); }
.he-clip[data-kind="research"] .he-clip__kind { color: var(--he-ai-ink); }
.he-clip__sources { display: inline-flex; align-items: center; gap: 5px; font: 600 12px/1 var(--he-font); color: var(--he-ai-ink); }
.he-clip[data-kind="link"] .he-clip__media { aspect-ratio: 1.91; }
.he-clip[data-kind="link"] .he-clip__media img { height: 100%; object-fit: cover; }
.he-clip.is-reading .he-clip__foot::before { content: var(--he-label-reading, "A IA está lendo"); color: var(--he-ai-ink); font-weight: 600; }
.he-clip.is-reading .he-clip__foot > * { display: none; }

/* ══════════ 18. Arrastar e soltar (HE.dnd) ══════════ */
html.he-dragging, html.he-dragging * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }
html.he-dragging { -webkit-touch-callout: none; }
.he-drag-ghost { position: fixed !important; z-index: 9900; top: 0; left: 0; margin: 0 !important; pointer-events: none; opacity: .96; rotate: 2deg; box-shadow: var(--he-shadow-pop) !important; transition: none !important; animation: none !important; will-change: transform; }
.he-drag-ph { box-sizing: border-box; border-radius: var(--he-r); background: color-mix(in srgb, var(--tone, var(--he-accent)) 12%, transparent); outline: 2px dashed color-mix(in srgb, var(--tone, var(--he-accent)) 60%, transparent); outline-offset: -2px; min-height: 8px; flex: 0 0 auto; }
.he-drag-src { display: none !important; }
.he-drop-on { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tone, var(--he-accent)) 60%, transparent) !important; background-color: color-mix(in srgb, var(--tone, var(--he-accent)) 7%, transparent); }
.he-drop-no { opacity: .45; }
.he-drag-arm { transform: scale(1.03) !important; box-shadow: 0 0 0 2px var(--he-accent), var(--he-shadow-2) !important; }
[data-he-drag], .he-drag-handle { -webkit-touch-callout: none; }
.he-drag-handle { cursor: grab; touch-action: none; color: var(--he-ghost); }

/* ══════════ 19. Botão Novo e menu de criação ══════════ */
.he-new { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 15px 0 11px; margin-right: 6px; border: 1px solid var(--he-line-strong); border-radius: 999px; background: var(--he-surface); color: var(--he-ink) !important; font: 700 14px/1 var(--he-font); white-space: nowrap; cursor: pointer; box-shadow: var(--he-shadow-1); -webkit-tap-highlight-color: transparent; transition: border-color var(--he-fast), transform var(--he-fast) var(--he-ease); }
.he-new .he-i { font-size: 18px; stroke-width: 2.4; color: var(--he-accent); }
.he-new:hover, .he-new[aria-expanded="true"] { border-color: var(--he-ink); }
.he-new:active { transform: scale(.97); }
.he-new:focus-visible { outline: 2px solid var(--he-accent); outline-offset: 2px; }
@container he-top (max-width: 960px) { .he-new__label { display: none; } .he-new { padding: 0; width: 40px; margin-right: 2px; } }
@media (max-width: 760px) { .he-top .he-new { padding: 0; width: 40px; margin-right: 0; } .he-top .he-new__label { display: none; } }
.he-menu { position: fixed; z-index: 9400; top: var(--y, 60px); left: var(--x, 8px); width: 288px; max-width: calc(100vw - 16px); padding: 6px; border-radius: var(--he-r); background: var(--he-raise); color: var(--he-ink); box-shadow: var(--he-shadow-pop); animation: he-rise var(--he-fast) var(--he-ease) both; }
.he-menu.is-closing { animation: he-fade-out var(--he-fast) ease both; }
.he-menu__item, .he-newgrid__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 6px 10px; border: 0; text-decoration: none !important; border-radius: var(--he-r-sm); background: transparent; color: var(--he-ink) !important; font: 600 14.5px/1.25 var(--he-font); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.he-menu__item:hover, .he-menu__item:focus-visible { background: var(--he-hover-strong); outline: none; }
.he-menu__item:focus-visible { box-shadow: inset 0 0 0 2px var(--he-accent); }
.he-menu__ico { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: var(--he-hover-strong); color: var(--he-ink-2); }
.he-menu__text { display: grid; gap: 2px; min-width: 0; }
.he-menu__text small { font: 500 12.5px/1.3 var(--he-font); color: var(--he-faint); }
.he-menu__item[data-tone] .he-menu__ico, .he-newgrid__item[data-tone] .he-menu__ico { background: var(--tone-bg); color: var(--tone-fg); }
.he-newgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.he-newgrid__item { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 96px; padding: 12px; border: 1px solid var(--he-line-strong); border-radius: var(--he-r); background: var(--he-surface); }
.he-newgrid__item:active { background: var(--he-hover-strong); }
.he-newgrid__item:focus-visible { outline: 2px solid var(--he-accent); outline-offset: 2px; }

/* ══════════ 20. Ação da IA esperando permissão e pedidos que não concluíram ══════════ */
.he-job__extra { grid-column: 1 / -1; margin-top: 6px; min-width: 0; }
.he-job[data-status="approval"] { background: var(--he-orange-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--he-orange) 35%, transparent); }
.he-job[data-status="approval"] .he-job__step { color: var(--he-orange-fg); }
.he-job[data-status="canceled"] { background: var(--he-soft); }
.he-job[data-status="canceled"] .he-job__step { color: var(--he-muted); }
.he-approval { display: grid; gap: 8px; min-width: 0; padding: 12px; border-radius: var(--he-r-sm); background: var(--he-surface); box-shadow: inset 0 0 0 1px var(--he-line-strong); }
.he-approval__head { display: flex; align-items: center; gap: 7px; font: 700 13px/1.3 var(--he-font); color: var(--he-orange-fg); }
.he-approval p.he-approval__desc { margin: 0; font-size: 14px; line-height: 1.45; color: var(--he-ink-2); overflow-wrap: anywhere; }
.he-approval__cmd { margin: 0; max-height: 132px; overflow: auto; padding: 9px 11px; border-radius: 8px; background: var(--he-bg-sunken); color: var(--he-ink); font: 500 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.he-approval__cmd:focus-visible { outline: 2px solid var(--he-accent); outline-offset: 1px; }
.he-approval__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.he-approval.is-done { opacity: .6; }
@media (max-width: 760px) { .he-approval__actions .he-btn { flex: 1 1 auto; } }

/* Movimento reduzido: 01-base.css já corta as animações; aqui só o que depende de transição para aparecer */
@media (prefers-reduced-motion: reduce) {
  .he-views__thumb { transition: none; }
  .he-toast__bar { animation: none !important; transform: none; opacity: .5; }
  .he-carousel__track { scroll-behavior: auto !important; }
}
@media print { .he-top, .he-dock, .he-mnav, .he-toasts { display: none !important; } }

/* hedesign · 04 · compositor
   Campo de pedido no padrão dos chats de IA: o texto e a barra de ações ficam dentro do mesmo contorno arredondado.
   Um só componente para o campo fixo do rodapé (.he-dock), um chat, um formulário "criar com a IA" ou um comentário.
   A altura acompanha o texto e Enter envia (HE.composer). */

.he-composer { --he-composer-r: 26px; --he-composer-btn: 36px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; margin: 0; }
.he-composer [hidden] { display: none !important; }

.he-composer__box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; cursor: text;
  border: 1px solid var(--he-line-strong); border-radius: var(--he-composer-r); background: var(--he-raise); box-shadow: var(--he-shadow-ai);
  transition: border-color var(--he-fast) ease, box-shadow var(--he-fast) ease; }
.he-composer__box:hover { border-color: color-mix(in srgb, var(--he-ink) 30%, transparent); }
.he-composer__box:focus-within { border-color: var(--he-ai); box-shadow: 0 0 0 3px color-mix(in srgb, var(--he-ai) 16%, transparent), var(--he-shadow-ai); }
.he-composer.is-over .he-composer__box { border-style: dashed; border-color: var(--he-ai); background: var(--he-ai-soft); }
.he-composer__box:has(.he-composer__input:disabled) { background: var(--he-soft); cursor: default; }

.he-composer__input { display: block; width: 100%; min-width: 0; min-height: 28px; max-height: min(40vh, 320px); margin: 0; padding: 15px 18px 4px;
  border: 0 !important; outline: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important;
  resize: none; overflow-y: hidden; font: 400 15px/1.55 var(--he-font); color: var(--he-ink); scrollbar-width: thin; }
.he-composer__input::placeholder { color: var(--he-faint); opacity: 1; }
.he-composer__input:disabled { color: var(--he-muted); cursor: default; }

.he-composer__bar { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: calc(var(--he-composer-btn) + 14px); padding: 5px 8px 9px 10px; cursor: default; }
.he-composer__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; flex: 1 1 auto; }
.he-composer__actions { display: flex; align-items: center; align-self: flex-end; gap: 6px; flex: 0 0 auto; margin-left: auto; }

/* Ferramentas da barra: ícone redondo, seletor em pílula, marcação e opções */
.he-composer__tool { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; width: var(--he-composer-btn); height: var(--he-composer-btn); padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--he-muted); cursor: pointer; transition: background var(--he-fast), color var(--he-fast); }
.he-composer__tool:hover { background: var(--he-hover); color: var(--he-ink); }
.he-composer__tool:focus-within, .he-composer__tool:focus-visible { outline: 2px solid var(--he-ai); outline-offset: 1px; }
.he-composer__pill { height: 32px; min-width: 0; max-width: 100%; padding: 0 12px; border: 1px solid var(--he-line-strong); border-radius: 99px; background: var(--he-soft); color: var(--he-ink-2);
  font: 500 13px/1 var(--he-font); box-shadow: none; transition: border-color var(--he-fast), background var(--he-fast); }
select.he-composer__pill { padding-right: 30px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23858079' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }
input.he-composer__pill { width: 190px; font-weight: 400; }
input.he-composer__pill::placeholder { color: var(--he-faint); }
.he-composer__pill:hover { border-color: color-mix(in srgb, var(--he-ink) 30%, transparent); }
.he-composer__pill:focus { outline: 0; border-color: var(--he-ai); background-color: var(--he-surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--he-ai) 14%, transparent); }
.he-composer__check { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px 0 9px; border-radius: 99px; color: var(--he-muted);
  font: 500 12.5px/1 var(--he-font); white-space: nowrap; cursor: pointer; user-select: none; transition: background var(--he-fast), color var(--he-fast); }
.he-composer__check:hover { background: var(--he-hover); color: var(--he-ink); }
.he-composer__check input { width: 15px; height: 15px; margin: 0; accent-color: var(--he-ai); }
.he-composer__check:has(input:checked) { background: var(--he-ai-soft); color: var(--he-ai-ink); }
.he-composer__check:has(input:focus-visible) { outline: 2px solid var(--he-ai); outline-offset: 1px; }
.he-composer__seg { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 99px; background: var(--he-hover-strong); }
.he-composer__seg label { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 99px; color: var(--he-muted); font: 500 12.5px/1 var(--he-font); white-space: nowrap; cursor: pointer; }
.he-composer__seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.he-composer__seg label:has(input:checked) { background: var(--he-surface); color: var(--he-ink); box-shadow: var(--he-shadow-1); }
.he-composer__seg label:has(input:focus-visible) { outline: 2px solid var(--he-ai); outline-offset: 1px; }

/* Enviar (seta para cima) e parar (quadrado), botões redondos como nos chats de IA */
.he-composer__send, .he-composer__stop { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; width: var(--he-composer-btn); height: var(--he-composer-btn); padding: 0; border: 0; border-radius: 50%;
  color: #fff; cursor: pointer; transition: background var(--he-fast), opacity var(--he-fast), transform var(--he-fast), box-shadow var(--he-fast); -webkit-tap-highlight-color: transparent; }
.he-composer__send { background: var(--he-ai-grad); box-shadow: 0 4px 12px -6px rgba(61, 63, 200, .7); }
.he-composer__send::before { content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.he-composer__send:hover:not(:disabled) { filter: brightness(1.08); }
.he-composer__send:active:not(:disabled), .he-composer__stop:active { transform: scale(.94); }
.he-composer__send:focus-visible, .he-composer__stop:focus-visible { outline: 2px solid var(--he-ai); outline-offset: 2px; }
.he-composer.is-empty .he-composer__send, .he-composer__send:disabled { background: var(--he-disabled-bg); color: var(--he-disabled-ink); box-shadow: none; cursor: default; filter: none; }
.he-composer.is-empty .he-composer__send:not(:disabled) { cursor: pointer; }
.he-composer__send.is-busy { background: var(--he-disabled-bg); color: var(--he-ai); box-shadow: none; }
.he-composer__send.is-busy::before { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--he-ai-line); border-top-color: var(--he-ai); background: none; -webkit-mask: none; mask: none; animation: he-spin .8s linear infinite; }
.he-composer__stop { background: var(--he-ink); }
.he-composer__stop::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--he-bg); }
.he-composer__stop:hover:not(:disabled) { opacity: .86; }
.he-composer__stop:disabled { opacity: .5; cursor: default; }

/* Variante com texto, para formulários de criação ("Criar com a IA") */
.he-composer__send--text { width: auto; height: var(--he-composer-btn); gap: 7px; grid-auto-flow: column; padding: 0 14px 0 16px; border-radius: 99px; font: 600 13.5px/1 var(--he-font); white-space: nowrap; }
.he-composer__send--text::before { order: 2; width: 16px; height: 16px; }

.he-composer__hint { margin: 0; padding: 0 12px; text-align: center; font: 400 11.5px/1.45 var(--he-font); color: var(--he-faint); }
.he-composer__hint kbd { display: inline-block; padding: 0 5px; border-radius: 4px; background: var(--he-bg-sunken); box-shadow: inset 0 -1px 0 var(--he-line-strong); font: 500 10.5px/16px var(--he-font); color: var(--he-muted); }
@media (max-width: 760px) { .he-composer__input { font-size: 16px; } }

/* hedesign · 05 · dados, formulários e conversa
   Números, tabela, barras, interruptor, seções de ajuste, mensagens, linha do tempo, destaque do dia, envio de
   arquivo, carimbo de decisão, aviso, lista e dica. Mesma linguagem do 03: superfícies com contorno interno de 1px,
   pílulas, tons por data-tone e movimento curto. */

/* ── Números ── */
.he-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; min-width: 0; }
@media (max-width: 560px) { .he-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.he-stat { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 16px 18px; border-radius: var(--he-r-lg); background: var(--he-surface); box-shadow: inset 0 0 0 1px var(--he-line); }
.he-stat__label { font: 600 12.5px/1.3 var(--he-font); color: var(--he-faint); }
.he-stat__value { font: 750 30px/1.1 var(--he-font); letter-spacing: -.8px; color: var(--he-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.he-stat__hint { font: 500 12px/1.35 var(--he-font); color: var(--he-faint); }
.he-stat[data-tone] { background: var(--tone-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 30%, transparent); }
.he-stat[data-tone] .he-stat__value { color: var(--tone-fg); }
@media (max-width: 560px) { .he-stat { padding: 12px 14px; } .he-stat__value { font-size: 24px; } }
.he-delta { display: inline-flex; align-items: center; gap: 4px; justify-self: start; max-width: 100%; padding: 3px 8px; border-radius: 999px; background: var(--he-hover); color: var(--he-muted); font: 650 12px/1.3 var(--he-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.he-delta--up { background: var(--he-ok-soft); color: var(--he-ok); }
.he-delta--down { background: var(--he-danger-soft); color: var(--he-danger); }
.he-delta--none { padding-left: 0; background: transparent; color: var(--he-faint); font-weight: 500; }
.he-delta small { font: inherit; font-weight: 500; opacity: .85; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ── Tabela ── */
.he-tablewrap { min-width: 0; overflow-x: auto; border-radius: var(--he-r-lg); background: var(--he-surface); box-shadow: inset 0 0 0 1px var(--he-line); }
.he-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; color: var(--he-ink-2); }
.he-table thead th { position: sticky; top: 0; z-index: 1; padding: 10px 12px; background: var(--he-soft); border-bottom: 1px solid var(--he-line-strong); color: var(--he-muted); font: 600 12.5px/1.3 var(--he-font); text-align: left; white-space: nowrap; }
.he-table thead th:first-child { border-top-left-radius: var(--he-r-lg); }
.he-table thead th:last-child { border-top-right-radius: var(--he-r-lg); }
.he-table tbody th, .he-table tbody td { padding: 10px 12px; border-bottom: 1px solid var(--he-line); vertical-align: middle; text-align: left; font-weight: 400; }
.he-table tbody th { min-width: 13rem; color: var(--he-ink); font-weight: 600; }
.he-table tbody tr:last-child > * { border-bottom: 0; }
.he-table tbody tr:hover > * { background: var(--he-hover); }
.he-table .is-num, .he-table th.is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.he-table td.is-num { color: var(--he-ink); font-weight: 650; }
.he-table__sort { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.he-table__sort:hover, .he-table th[aria-sort] .he-table__sort { color: var(--he-ink); }
.he-table__sort .he-i { font-size: 13px; }

/* ── Barras horizontais (comparar categorias) ── */
.he-bars { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; container: he-bars / inline-size; }
.he-bar { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; font-size: 14px; }
.he-bar__name { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--he-ink); white-space: nowrap; }
.he-bar__name small { font-weight: 500; color: var(--he-faint); }
.he-bar__track { height: 10px; border-radius: 6px; background: var(--he-hover); overflow: hidden; }
.he-bar__track i { display: block; height: 100%; width: calc(var(--v, 0) * 100%); min-width: 4px; border-radius: 6px; background: var(--tone, var(--he-accent)); transition: width var(--he-med) var(--he-ease); }
.he-bar__val { font-weight: 700; color: var(--he-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Pouco espaço: o nome e o valor ficam em cima e a barra ocupa a linha de baixo */
@container he-bars (max-width: 380px) { .he-bar { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; } .he-bar__track { grid-column: 1 / -1; grid-row: 2; } }

/* Colunas (evolução no tempo): cada coluna recebe --v de 0 a 1 */
.he-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; gap: 6px; height: var(--h, 140px); margin: 0; padding: 0; list-style: none; }
.he-cols__col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; min-width: 0; font: 600 11.5px/1 var(--he-font); color: var(--he-faint); font-variant-numeric: tabular-nums; }
.he-cols__col::before { content: ""; width: 100%; max-width: 44px; height: calc(var(--v, 0) * (var(--h, 140px) - 24px)); min-height: 4px; flex: 0 0 auto; border-radius: 6px 6px 3px 3px; background: var(--tone, var(--he-accent)); opacity: .85; transition: height var(--he-med) var(--he-ease), opacity var(--he-fast); }
.he-cols__col:hover::before, .he-cols__col.is-current::before { opacity: 1; }
.he-cols__col.is-current { color: var(--he-ink); }

/* ── Interruptor e linha de opção ── */
.he-switch { position: relative; flex: 0 0 auto; width: 52px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.he-switch::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 32px; border-radius: 999px; background: var(--he-line-strong); transition: background var(--he-fast); }
.he-switch__knob { position: absolute; top: 7px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--he-knob); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform var(--he-fast) var(--he-ease); }
.he-switch[aria-checked="true"]::before { background: var(--he-green-solid); }
.he-switch[aria-checked="true"] .he-switch__knob { transform: translateX(20px); }
.he-switch[aria-checked="true"] .he-switch__knob::after { content: ""; position: absolute; inset: 8px 7px 9px; border: solid #136c2a; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.he-switch:disabled, .he-switch[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
.he-switch:focus-visible { outline: 2px solid var(--he-accent); outline-offset: 3px; }
.he-toggle { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 12px 14px; border-radius: var(--he-r); background: var(--he-soft); box-shadow: inset 0 0 0 1px var(--he-line); }
.he-toggle__text { display: grid; gap: 2px; min-width: 0; }
.he-toggle__text b { font: 700 15px/1.3 var(--he-font); color: var(--he-ink); }
.he-toggle__text small { font: 500 13px/1.35 var(--he-font); color: var(--he-muted); }
.he-checkbox { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; font: 500 14.5px/1.3 var(--he-font); color: var(--he-ink-2); cursor: pointer; }
.he-radio { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; font: 500 14.5px/1.3 var(--he-font); color: var(--he-ink-2); cursor: pointer; }
.he-radio input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--he-accent); }
.he-checkbox input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--he-accent); }
.he-suffix { position: relative; }
.he-suffix .he-input { padding-right: 44px; }
.he-suffix > span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 600 13px/1 var(--he-font); color: var(--he-faint); pointer-events: none; }
.he-help { font: 500 12.5px/1.35 var(--he-font); color: var(--he-faint); }
.he-input[aria-invalid="true"], .he-textarea[aria-invalid="true"], .he-select[aria-invalid="true"] { border-color: var(--he-danger); }
.he-input[aria-invalid="true"]:focus, .he-textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--he-danger) 18%, transparent); }
.he-select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23858079' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 15px; }

/* ── Tela de ajustes: índice em pílulas à esquerda e seções em cartões que avisam quando há mudança por salvar ── */
.he-settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; min-width: 0; }
.he-sidenav { position: sticky; top: calc(var(--he-topbar-h) + var(--he-top-h) + 16px); display: grid; gap: 2px; }
.he-sidenav__item { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--he-muted) !important; font: 600 14px/1.2 var(--he-font); text-align: left; text-decoration: none !important; cursor: pointer; }
.he-sidenav__item .he-i { font-size: 17px; }
.he-sidenav__item:hover { background: var(--he-hover); color: var(--he-ink) !important; }
.he-sidenav__item.is-active, .he-sidenav__item[aria-current] { background: var(--he-surface); color: var(--he-ink) !important; box-shadow: 0 0 0 1px var(--he-line), var(--he-shadow-1); }
.he-formsecs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.he-formsec { min-width: 0; padding: 22px 24px 18px; border-radius: var(--he-r-lg); background: var(--he-surface); box-shadow: inset 0 0 0 1px var(--he-line); scroll-margin-top: calc(var(--he-topbar-h) + var(--he-top-h) + 16px); transition: box-shadow var(--he-fast); }
.he-formsec.is-dirty { box-shadow: inset 0 0 0 1px var(--he-line), inset 4px 0 0 var(--he-orange); }
.he-formsec__head { margin-bottom: 16px; }
.he-formsec__head p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--he-muted); }
.he-formsec__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.he-formsec__body > .he-field { max-width: 460px; }
.he-formsec__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--he-line); }
@media (max-width: 900px) {
  .he-settings { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .he-sidenav { position: static; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
  .he-sidenav::-webkit-scrollbar { display: none; }
  .he-sidenav__item { flex: 0 0 auto; }
  .he-formsec { padding: 16px 16px 14px; }
}

/* ── Conversa: você à direita em tinta, a IA à esquerda na cor dela ── */
.he-feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; min-width: 0; }
/* Conversa dentro de um painel: rola por conta própria, sem levar a página junto */
@media (min-width: 901px) { .he-feed--scroll { max-height: var(--max, clamp(16rem, calc(100dvh - 29rem), 35rem)); overflow-y: auto; overscroll-behavior: contain; margin-right: -8px; padding-right: 8px; scrollbar-width: thin; } }
.he-msg { display: grid; gap: 4px; min-width: 0; }
.he-msg__meta { font: 500 11.5px/1.3 var(--he-font); color: var(--he-faint); }
.he-msg--me { justify-items: end; text-align: right; }
.he-bubble { max-width: 92%; padding: 9px 12px; border-radius: 16px 16px 4px 16px; background: var(--he-ink); color: var(--he-bg); font-size: 14px; line-height: 1.45; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; }
.he-msg__ctx { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 92%; }
.he-msg--ai { grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; }
.he-msg--ai > .he-orb { margin-top: 3px; }
.he-msg__main { display: grid; gap: 6px; justify-items: start; min-width: 0; padding: 9px 12px; border-radius: 4px 16px 16px 16px; background: var(--he-ai-soft); box-shadow: inset 0 0 0 1px var(--he-ai-line); }
.he-msg__main .he-msg__meta { color: var(--he-ai-ink); font-weight: 600; }
.he-msg__text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--he-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.he-msg__text.is-error { color: var(--he-danger); }
.he-msg--other .he-bubble { border-radius: 4px 16px 16px 16px; background: var(--he-surface); color: var(--he-ink); box-shadow: inset 0 0 0 1px var(--he-line); }

/* Linha do tempo: o que aconteceu, por quem e quando */
.he-event { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; line-height: 1.4; color: var(--he-muted); }
.he-event::before { content: ""; width: 7px; height: 7px; margin: 0 4px; border-radius: 50%; background: var(--tone, var(--he-line-strong)); }
.he-event__main { display: grid; gap: 1px; min-width: 0; overflow-wrap: anywhere; }
.he-event__main b { font-weight: 700; color: var(--he-ink-2); }
.he-event__main small { font-size: 11.5px; color: var(--he-faint); }
.he-event time { font-size: 11.5px; color: var(--he-faint); white-space: nowrap; }
.he-event.is-undone .he-event__main > span { text-decoration: line-through; }
.he-event--box { padding: 8px 6px 8px 10px; border-radius: var(--he-r-sm); background: var(--he-soft); box-shadow: inset 0 0 0 1px var(--he-line); font-size: 13px; color: var(--he-ink-2); }
.he-event--box::before { display: none; }
.he-event--box { grid-template-columns: minmax(0, 1fr) auto; }

/* ── Destaque do dia: um número grande, um leque de miniaturas e uma ação ── */
.he-hero { position: relative; display: flex; align-items: center; gap: 28px; min-width: 0; padding: 24px 28px; border-radius: var(--he-r-lg); background: var(--tone-bg, var(--he-surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone, var(--he-ink)) 30%, transparent); overflow: hidden; isolation: isolate; }
.he-hero::after { content: ""; position: absolute; z-index: -1; right: -70px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--tone, var(--he-accent)) 26%, transparent), transparent); pointer-events: none; }
.he-hero__main { display: grid; gap: 6px; min-width: 0; justify-items: start; }
.he-hero__count { font: 600 15px/1.4 var(--he-font); color: var(--he-ink-2); }
.he-hero__count b { display: block; margin-bottom: 4px; font: 800 46px/1 var(--he-font); letter-spacing: -1.6px; color: var(--tone-fg, var(--he-ink)); font-variant-numeric: tabular-nums; }
.he-hero__main .he-btn { margin-top: 10px; }
.he-hero__main .he-btn .he-kbd { background: color-mix(in srgb, currentColor 18%, transparent); color: inherit; box-shadow: none; }
.he-fan { position: relative; flex: 0 0 132px; height: 128px; }
.he-fan__card { position: absolute; top: 8px; left: 22px; display: grid; place-items: center; width: 88px; height: 110px; padding: 8px; border-radius: 12px; background: var(--he-surface); color: var(--tone-fg, var(--he-muted)); font: 700 9.5px/1.25 var(--he-font); text-align: center; overflow: hidden; box-shadow: 0 0 0 1px var(--he-line), 0 10px 22px -12px rgba(20, 18, 16, .5); transition: rotate var(--he-med) var(--he-ease), translate var(--he-med) var(--he-ease); }
.he-fan__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.he-fan__card:nth-child(1) { z-index: 3; }
.he-fan__card:nth-child(2) { z-index: 2; rotate: 9deg; translate: 22px 2px; }
.he-fan__card:nth-child(3) { z-index: 1; rotate: -9deg; translate: -22px 2px; }
.he-hero:hover .he-fan__card:nth-child(2) { rotate: 13deg; translate: 30px 0; }
.he-hero:hover .he-fan__card:nth-child(3) { rotate: -13deg; translate: -30px 0; }
@media (max-width: 560px) { .he-hero { gap: 16px; padding: 18px 16px; } .he-fan { flex-basis: 104px; scale: .8; margin: -12px -14px; } .he-hero__count b { font-size: 38px; } }

/* ── Envio de arquivo: progresso na linha, erro com saída, e a área de soltar por cima da tela ── */
.he-upload { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 8px 8px 12px; border-radius: var(--he-r-sm); background: var(--he-soft); box-shadow: inset 0 0 0 1px var(--he-line); }
.he-upload__track { flex: 1 1 80px; min-width: 60px; height: 8px; border-radius: 8px; background: var(--he-hover-strong); overflow: hidden; }
.he-upload__track i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: 8px; background: var(--tone, var(--he-pink)); transition: width var(--he-med) linear; }
.he-upload__text { flex: 0 1 auto; min-width: 0; font: 600 13px/1.35 var(--he-font); color: var(--he-ink-2); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.he-upload--error { flex-wrap: wrap; background: var(--he-danger-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--he-danger) 30%, transparent); }
.he-upload--error > .he-i { flex: 0 0 auto; color: var(--he-danger); }
.he-upload--error .he-upload__text { flex: 1 1 180px; white-space: normal; }
.he-dropzone { position: fixed; z-index: 9200; inset: 0; display: grid; place-items: center; padding: 24px; background: color-mix(in srgb, var(--he-bg) 72%, transparent); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); pointer-events: none; animation: he-fade var(--he-fast) ease both; }
.he-dropzone--inline { position: relative; z-index: auto; inset: auto; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: auto; animation: none; }
.he-dropzone__box { display: grid; justify-items: center; gap: 8px; max-width: 420px; padding: 36px 40px; border: 2px dashed var(--he-accent); border-radius: var(--he-r-lg); background: var(--he-surface); box-shadow: var(--he-shadow-pop); text-align: center; color: var(--he-muted); font-size: 14.5px; }
.he-dropzone--inline .he-dropzone__box { width: 100%; max-width: none; border-color: var(--he-line-strong); box-shadow: none; background: transparent; transition: border-color var(--he-fast), background var(--he-fast); }
.he-dropzone--inline:hover .he-dropzone__box, .he-dropzone--inline.is-over .he-dropzone__box { border-color: var(--he-accent); background: var(--he-accent-soft); }
.he-dropzone__box b { font: 700 17px/1.3 var(--he-font); color: var(--he-ink); }
.he-dropzone__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--he-accent-soft); color: var(--he-accent-ink); }
.he-dropzone__ico .he-i { font-size: 24px; }

/* ── Carimbo de decisão: confirma no centro da prévia o que acabou de acontecer ── */
.he-stamp { position: absolute; z-index: 6; top: 46%; left: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: var(--he-green-solid); color: var(--he-on-tone); font: 800 19px/1 var(--he-font); letter-spacing: -.2px; white-space: nowrap; box-shadow: var(--he-shadow-pop); pointer-events: none; }
.he-stamp .he-i { font-size: 22px; stroke-width: 2.6; }
.he-stamp[data-kind="adjust"] { background: var(--he-orange-solid); }
.he-stamp[data-kind="denied"] { background: var(--he-danger); color: var(--he-on-tone); }
.he-stamp--pop { animation: he-stamp var(--he-med) var(--he-ease) both; }
.he-stamp.is-leaving { animation: he-fade-out var(--he-med) ease both; }
@keyframes he-stamp { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }

/* Dica em pílula com ação (por exemplo "Faltam 2 para fechar a semana") */
.he-hint { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; max-width: 100%; padding: 4px 6px 4px 16px; border-radius: 999px; background: var(--tone-bg, var(--he-orange-bg)); color: var(--tone-fg, var(--he-orange-fg)); font: 600 14px/1.3 var(--he-font); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone, var(--he-orange)) 35%, transparent); }
.he-hint > span { padding-right: 10px; min-width: 0; }
.he-hint .he-btn { min-height: 40px; background: var(--he-surface); }

/* ── Aviso dentro da página, com tom ── */
.he-callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--he-r); background: var(--tone-bg, var(--he-accent-soft)); color: var(--he-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone, var(--he-accent)) 30%, transparent); }
.he-callout > .he-i { margin-top: 1px; color: var(--tone-fg, var(--he-accent-ink)); font-size: 20px; }
.he-callout__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.he-callout__title { font: 700 14.5px/1.4 var(--he-font); }
.he-callout__text { font-size: 14px; line-height: 1.5; color: var(--he-ink-2); }

/* ── Lista de linhas: ícone, título, apoio e o que vem à direita ── */
.he-list { display: grid; margin: 0; padding: 0; list-style: none; border-radius: var(--he-r-lg); background: var(--he-surface); box-shadow: inset 0 0 0 1px var(--he-line); overflow: hidden; }
.he-list__row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; color: var(--he-ink) !important; text-decoration: none !important; }
.he-list__row + .he-list__row, li + li > .he-list__row { border-top: 1px solid var(--he-line); }
a.he-list__row:hover, button.he-list__row:hover { background: var(--he-hover); }
.he-list__ico { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: var(--tone-bg, var(--he-hover-strong)); color: var(--tone-fg, var(--he-ink-2)); }
.he-list__main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.he-list__title { font: 600 14.5px/1.35 var(--he-font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.he-list__sub { font-size: 12.5px; line-height: 1.4; color: var(--he-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.he-list__end { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; color: var(--he-faint); font-size: 13px; }

/* ── Código, avatares empilhados e dica ── */
.he-code { margin: 0; overflow: auto; padding: 12px 14px; border-radius: var(--he-r); background: var(--he-bg-sunken); color: var(--he-ink); font: 500 12.5px/1.6 var(--he-mono); white-space: pre; tab-size: 2; }
.he-code--wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.he-avatars { display: inline-flex; }
.he-avatars > .he-avatar { box-shadow: 0 0 0 2px var(--he-surface); }
.he-avatars > .he-avatar + .he-avatar { margin-left: -8px; }
[data-he-tip] { position: relative; }
.he-tips [data-he-tip]:hover::after, .he-tips [data-he-tip]:focus-visible::after, [data-he-tip].he-tip:hover::after, [data-he-tip].he-tip:focus-visible::after { content: attr(data-he-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 9600; translate: -50% 0; padding: 6px 10px; border-radius: 8px; background: var(--he-toast-bg); color: var(--he-toast-ink); font: 600 12.5px/1.2 var(--he-font); white-space: nowrap; box-shadow: var(--he-shadow-2); pointer-events: none; animation: he-rise var(--he-fast) var(--he-ease) both; }

/* ── Entradas prontas: aplique a classe no que acabou de chegar à tela ── */
.he-in-rise { animation: he-rise var(--he-med) var(--he-ease) both; }
.he-in-fade { animation: he-fade var(--he-med) ease both; }
.he-in-pop { animation: he-pop var(--he-med) var(--he-ease) both; }
.he-in-next { animation: he-in-next var(--he-med) var(--he-ease) both; }
.he-in-prev { animation: he-in-prev var(--he-med) var(--he-ease) both; }
@keyframes he-in-next { from { opacity: 0; transform: translateX(28px); } }
@keyframes he-in-prev { from { opacity: 0; transform: translateX(-28px); } }
/* Em sequência: os filhos entram um depois do outro, 40 ms de distância, até o oitavo */
.he-stagger > * { animation: he-rise var(--he-med) var(--he-ease) both; }
.he-stagger > :nth-child(2) { animation-delay: 40ms; } .he-stagger > :nth-child(3) { animation-delay: 80ms; } .he-stagger > :nth-child(4) { animation-delay: 120ms; }
.he-stagger > :nth-child(5) { animation-delay: 160ms; } .he-stagger > :nth-child(6) { animation-delay: 200ms; } .he-stagger > :nth-child(7) { animation-delay: 240ms; }
.he-stagger > :nth-child(n+8) { animation-delay: 280ms; }
/* Pulso de atenção para um ponto que acabou de mudar */
.he-ping { animation: he-ping 1.5s ease-out infinite; border-radius: 50%; }

/* ── Complementos dos comportamentos ── */
.he-menu__item:disabled, .he-menu__item[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.he-job[data-status="done"] { opacity: .8; }
.he-job[data-status="done"] .he-job__step { color: var(--he-ok); }

/* Painel tingido: com data-tone, o painel inteiro leva o fundo suave do tom (data-tone="ai" para o que a IA concluiu) */
.he-panel[data-tone] { background: var(--tone-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 30%, transparent); }
.he-panel[data-tone] .he-panel__title { color: var(--tone-fg); }

/* Captura rápida grande, para ser a entrada principal de uma tela */
.he-quick--lg { min-height: 56px; padding: 0 8px 0 16px; border-radius: var(--he-r-lg); background: var(--he-surface); }
.he-quick--lg input { font-size: 16px; }

/* Botão ocupado: a ação já foi pedida e ainda não terminou */
.he-btn[aria-busy="true"], .he-btn.is-busy { pointer-events: none; opacity: .75; cursor: progress; }

/* Pergunta que abre e fecha (details nativo) */
.he-disclosures { display: grid; gap: 8px; }
.he-disclosure { border-radius: var(--he-r); background: var(--he-surface); box-shadow: inset 0 0 0 1px var(--he-line); }
.he-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 18px; border-radius: var(--he-r); font: 600 15.5px/1.35 var(--he-font); color: var(--he-ink); cursor: pointer; list-style: none; }
.he-disclosure > summary::-webkit-details-marker { display: none; }
.he-disclosure > summary:hover { background: var(--he-hover); }
.he-disclosure > summary .he-i { flex: 0 0 auto; color: var(--he-faint); transition: transform var(--he-fast) var(--he-ease); }
.he-disclosure[open] > summary .he-i { transform: rotate(180deg); }
.he-disclosure > :not(summary) { max-width: 64ch; margin: 0; padding: 0 18px 18px; font: var(--he-text-body); color: var(--he-ink-2); }

/* Sem data-he-theme no <html> (página sem o script de tema), vale o tema do sistema */
@media (prefers-color-scheme: dark) {
  :root:not([data-he-theme]) {
    color-scheme: dark;
    --he-bg: #131316;
    --he-bg-sunken: #0d0d10;
    --he-surface: #1d1d22;
    --he-soft: #18181c;
    --he-raise: #26262d;
    --he-ink: #f2f0eb;
    --he-ink-2: #d9d6cf;
    --he-muted: #aaa69e;
    --he-faint: #96928a;
    --he-ghost: #6d6a64;
    --he-line: rgba(255, 255, 255, .1);
    --he-line-strong: rgba(255, 255, 255, .2);
    --he-hover: rgba(255, 255, 255, .06);
    --he-hover-strong: rgba(255, 255, 255, .12);
    --he-accent: #5aa9ff;
    --he-accent-ink: #8cc4ff;
    --he-accent-soft: #1c2e45;
    --he-on-accent: #0b1220;
    --he-danger: #ff8a80;
    --he-danger-soft: #3d2222;
    --he-ok: #7bdc94;
    --he-ok-soft: #1f3526;
    --he-scrim: rgba(0, 0, 0, .6);
    --he-spot: rgba(255, 255, 255, .045);
  
    --he-ai: #a67be6;
    --he-ai-ink: #c4a8f5;
    --he-ai-soft: #2b2440;
    --he-ai-line: #453a66;
  
    --he-blue: #5aa9ee;    --he-blue-fg: #8cc4f6;    --he-blue-bg: #29394b;    --he-blue-solid: #5aa9ee;
    --he-violet: #a67be6;  --he-violet-fg: #c9acf5;  --he-violet-bg: #383049;  --he-violet-solid: #a67be6;
    --he-pink: #ec63b8;    --he-pink-fg: #f79ad2;    --he-pink-bg: #462b40;    --he-pink-solid: #ec63b8;
    --he-orange: #ff8a3d;  --he-orange-fg: #ffb07a;  --he-orange-bg: #4a3327;  --he-orange-solid: #ff8a3d;
    --he-teal: #35c2bb;    --he-teal-fg: #72d9d3;    --he-teal-bg: #223e41;    --he-teal-solid: #35c2bb;
    --he-green: #3fc463;   --he-green-fg: #7bdc94;   --he-green-bg: #243e2f;   --he-green-solid: #3fc463;
    --he-on-tone: #131316;
    --he-rail: linear-gradient(90deg, var(--he-blue), var(--he-violet), var(--he-pink), var(--he-orange), var(--he-teal), var(--he-green));
  
    --he-post-bg: #000000;
    --he-post-ink: #f5f5f5;
    --he-post-muted: #a8a8a8;
    --he-post-line: #262626;
    --he-post-link: #e0f1ff;
    --he-bezel: #050506;
    --he-paper: #24211c;
    --he-paper-ink: #f3ede1;
  
    --he-toast-bg: #34343c;
    --he-toast-error: #5a2420;
    --he-toast-shadow: var(--he-shadow-pop);
    --he-knob: #f2f0eb;
    --he-check-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23131316' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E");
  
    --he-sidebar-bg: #17171b;
    --he-topbar-bg: rgba(19, 19, 22, .86);
    --he-disabled-bg: #34343c;
    --he-disabled-ink: #8a867f;
  
    --he-shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 20px -10px rgba(0, 0, 0, .6);
    --he-shadow-2: 0 2px 6px rgba(0, 0, 0, .4), 0 20px 48px -18px rgba(0, 0, 0, .75);
    --he-shadow-pop: 0 0 0 1px var(--he-line-strong), 0 12px 28px -8px rgba(0, 0, 0, .6), 0 32px 80px -24px rgba(0, 0, 0, .8);
    --he-shadow-ai: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -18px rgba(0, 0, 0, .7);
  }
}
