/* ════════════════════════════════════════════════════════════════════════
   A CASCA DO APP · menu lateral, topo e a grade do Início (24/09)
   Design master aprovado pelo Marcelo, com a revisão de arquitetura
   visual dele: menu recolhido como estado principal (abre por cima no
   hover, fixa por botão), grade de 12 colunas ocupando a tela, cartões
   sem cartão dentro, profundidade por superfície e não por borda.

   É a BASE das outras telas. Tudo sai dos tokens (claro e escuro).
   Nada aqui muda comportamento: só onde as coisas ficam e como parecem.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --sb-w: 72px;             /* recolhido: só ícones (o estado principal) */
  --sb-w-aberto: 240px;
  --sb-mov: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --topbar-h: 60px;
  --inicio-max: 1440px;     /* a largura útil do Início, centralizada */
}

/* ── A GRADE DA PÁGINA (computador) ──
   O menu ocupa a coluna da esquerda (72px; 240px só quando FIXADO);
   topo e conteúdo, a da direita. */
#app-sidebar { display: none; }
@media (min-width: 768px) {
  body {
    display: grid;
    grid-template-columns: var(--sb-w) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 100dvh;
    transition: grid-template-columns var(--sb-mov);
  }
  body.vf-menu-aberto { --sb-w: var(--sb-w-aberto); }
  #app-sidebar { display: block; grid-row: 1 / -1; grid-column: 1; position: relative; z-index: calc(var(--z-dropdown) + 10); }
  #app-topbar, #app-root, #app-nav { grid-column: 2; }
  body.vf-porta, body.vf-janela { display: flex; flex-direction: column; }
  body.vf-porta #app-sidebar, body.vf-janela #app-sidebar { display: none; }
}

/* ── O MENU LATERAL ──
   Recolhido: 72px, ícones. No hover ele ABRE POR CIMA do conteúdo (a
   coluna continua com 72px — nada se mexe). Fixado: a coluna reserva os
   240px. */
.sb {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  width: var(--sb-w);
  height: 100dvh;
  box-sizing: border-box;
  padding: var(--space-4) var(--space-3) var(--space-3);
  background: var(--color-surface-1);
  border-right: 1px solid var(--border);
  overflow: hidden;
  transition: width var(--sb-mov), box-shadow var(--sb-mov);
}
.sb:hover, body.vf-menu-aberto .sb { width: var(--sb-w-aberto); }
body:not(.vf-menu-aberto) .sb:hover { box-shadow: 16px 0 40px rgba(0, 0, 0, 0.28); }
:root[data-tema='claro'] body:not(.vf-menu-aberto) .sb:hover { box-shadow: 16px 0 40px rgba(90, 60, 20, 0.12); }

.sb__topo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-1);
  margin-bottom: var(--space-3);
}
.sb__marca { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; text-decoration: none; color: inherit; }
.sb__marca:hover { text-decoration: none; }
.sb__marca img { height: 24px; width: auto; flex: 0 0 auto; }
.sb__marca__nome {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 160ms ease;
}
/* Fixar/soltar: só aparece com o menu largo (hover ou fixado). */
.sb__fixar {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 160ms ease, color var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}
.sb__fixar:hover { color: var(--text); background: var(--bg-subtle); }
.sb__fixar[aria-pressed="true"] { color: var(--primary); }

.sb__nav {
  display: flex; flex-direction: column;
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none;             /* sem barra de rolagem à vista */
}
.sb__nav::-webkit-scrollbar { display: none; }
.sb__grupo { display: flex; flex-direction: column; gap: 2px; padding-top: var(--space-2); }
.sb__grupo + .sb__grupo { margin-top: var(--space-1); border-top: 1px solid var(--border-subtle); padding-top: var(--space-3); }
.sb:hover .sb__grupo + .sb__grupo, body.vf-menu-aberto .sb__grupo + .sb__grupo { border-top-color: transparent; padding-top: var(--space-2); }
.sb__grupo__nome {
  height: 24px;
  padding: 0 var(--space-3);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  line-height: 24px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 160ms ease;
}
.sb__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  height: 40px;
  padding: 0 11px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: none;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease);
}
.sb__item:hover { background: var(--bg-subtle); color: var(--text); text-decoration: none; }
.sb__item:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 1px; }
.sb__icone { display: flex; flex: 0 0 auto; width: 20px; justify-content: center; color: var(--text-muted); }
.sb__item:hover .sb__icone { color: var(--text-secondary); }
.sb__rotulo {
  display: flex; flex-direction: column; min-width: 0;
  line-height: 1.15;
  opacity: 0;
  transition: opacity 160ms ease;
}
.sb__rotulo small { font-size: 11px; font-weight: 400; color: var(--text-muted); }
.sb:hover .sb__rotulo, body.vf-menu-aberto .sb__rotulo,
.sb:hover .sb__grupo__nome, body.vf-menu-aberto .sb__grupo__nome,
.sb:hover .sb__marca__nome, body.vf-menu-aberto .sb__marca__nome,
.sb:hover .sb__fixar, body.vf-menu-aberto .sb__fixar { opacity: 1; }

/* O ATIVO, sóbrio: superfície um degrau acima, ícone laranja e um fio
   lateral com brilho — sem faixa laranja. */
.sb__item--ativo { background: var(--bg-subtle); border-color: var(--border-subtle); color: var(--text); font-weight: var(--fw-semibold); }
.sb__item--ativo .sb__icone { color: var(--primary); }
.sb__item--ativo::before {
  content: '';
  position: absolute;
  left: -13px; top: 11px;
  width: 3px; height: 18px;
  border-radius: 3px;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
}
.sb__item--apagado { color: var(--text-muted); }
.sb__item--apagado .sb__icone { opacity: 0.6; }

/* O pé: perfil, Sair e a versão (discreta), sempre ao pé do menu. */
.sb__pe { display: flex; flex-direction: column; gap: 2px; padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); }
.sb__perfil { display: flex; align-items: center; gap: var(--space-3); height: 44px; padding: 0 5px; white-space: nowrap; }
.sb__avatar {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  font-size: 13px; font-weight: var(--fw-bold);
  color: var(--text);
}
.sb__versao { padding: var(--space-1) 11px 0; font-size: 10px; letter-spacing: 0.04em; color: var(--text-muted); white-space: nowrap; opacity: 0; transition: opacity 160ms ease; }
.sb:hover .sb__versao, body.vf-menu-aberto .sb__versao { opacity: 0.8; }

/* ── O TOPO no computador: só a trilha ── */
@media (min-width: 768px) {
  .topbar { height: var(--topbar-h); padding-inline: var(--space-8); background: transparent; backdrop-filter: none; }
}
.topbar__trilha { font-size: var(--text-sm); color: var(--text-muted); }
.topbar__trilha strong { color: var(--text); font-weight: var(--fw-semibold); }

/* ── O SÍMBOLO DA MARCA AO FUNDO (3%, atrás de tudo; nunca sobre texto) ── */
@media (min-width: 768px) {
  #app-root { position: relative; isolation: isolate; }
  #app-root::before {
    content: '';
    position: absolute;
    top: -60px; right: 24px;
    width: 520px; height: 420px;
    background: url('/assets/img/logo-simbolo.webp') no-repeat right top / contain;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
  }
  #app-root::after {
    content: '';
    position: absolute;
    top: -260px; right: -120px;
    width: 640px; height: 640px;
    border-radius: var(--radius-full);
    background: radial-gradient(closest-side, rgba(242, 138, 22, 0.08), transparent 70%);
    pointer-events: none;
    z-index: -1;
  }
  :root[data-tema='claro'] #app-root::before { opacity: 0.05; }
}

/* ── SUPERFÍCIES: profundidade por degrau, não por contorno ──
   fundo → cartão (surface-1) → elevado (surface-elevated). Borda mínima. */
.card, .tile, .estado {
  background: var(--color-surface-1);
  border-color: var(--border-subtle);
  border-radius: var(--radius-xl);
}
.card { padding: var(--space-5) var(--space-6); }
.card__title { font-size: 15px; font-weight: var(--fw-semibold); }

/* ── O INÍCIO: 12 colunas, até 1440px, centralizado ── */
.inicio { max-width: var(--inicio-max); }
@media (min-width: 768px) { .inicio { padding-inline: var(--space-8); } }
.inicio__topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.inicio__titulo {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 1.2rem + 1vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: var(--fw-bold);
}
.inicio__estado { display: flex; flex-direction: column; gap: 2px; margin-top: var(--space-3); }
.inicio__estado p { margin: 0; display: flex; align-items: center; gap: var(--space-2); font-size: 15px; color: var(--text); }
.inicio__estado small { font-size: 14px; color: var(--text-secondary); padding-left: calc(8px + var(--space-2)); }
.inicio__estado .estado__ponto { width: 8px; height: 8px; }
.inicio__direita { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); }
.inicio__data { font-size: 13px; color: var(--text-muted); }
@media (max-width: 767px) { .inicio__direita { align-items: flex-start; } }

/* Linha 2: Operação agora (8) + Agenda de hoje (4), mesma altura. */
.inicio__grade { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .inicio__grade { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: stretch; }
  .inicio__col-8 { grid-column: span 8; }
  .inicio__col-4 { grid-column: span 4; }
}
.inicio__grade > .card { display: flex; flex-direction: column; min-width: 0; }

/* Linha 3: os 4 KPIs, 3 colunas cada, a largura toda. */
#numeros .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-4); }
@media (max-width: 1023px) { #numeros .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Linha 4: período (7) e horas (5), mesma altura. */
#numeros .grade-graficos { grid-template-columns: minmax(0, 1fr); align-items: stretch; margin-top: var(--space-4); gap: var(--space-4); }
@media (min-width: 1024px) { #numeros .grade-graficos { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
#numeros .grade-graficos > .card { display: flex; flex-direction: column; min-width: 0; }
#numeros .grade-graficos svg { width: 100%; height: auto; }

/* Linha 5: desempenho da equipe, 12 colunas (o relatório de sempre). */
.inicio__desempenho { margin-top: var(--space-4); }
.inicio__desempenho > .card { margin-top: 0 !important; }

/* O "Agora": UM cartão. A faixa de estado (o botão que abre a lista da
   equipe) mora dentro sem borda nem fundo; os fatos vêm em linha, sem
   caixinhas. */
.agora { display: flex; flex-direction: column; gap: var(--space-4); }
.agora .estado { border: 0; background: transparent; padding: 0; border-radius: 0; }
.agora .painel__equipe:hover { background: transparent; }
.agora .painel__lista { margin-top: 0; padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); }
.agora__extras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: auto;              /* empurra os fatos para o pé do cartão */
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}
.agora__bloco { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.agora__bloco strong { font-family: var(--font-display); font-size: 26px; font-weight: var(--fw-bold); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.agora__bloco span { font-size: var(--text-xs); color: var(--text-muted); }
.agora__canais { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: 2px; }
.agora__canal {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--success-bg);
  font-size: 11px; font-weight: var(--fw-medium);
  color: var(--success);
}
.agora__barra { height: 4px; border-radius: var(--radius-full); background: var(--bg-muted); overflow: hidden; margin-top: 4px; }
.agora__barra > span { display: block; height: 100%; border-radius: var(--radius-full); background: var(--primary); }
.painel__pilha > * { border-color: var(--color-surface-1); }

/* KPIs: rótulo pequeno, número grande, contexto curto. */
.tile { padding: var(--space-5); gap: var(--space-2); }
.tile__rotulo { font-size: 13px; font-weight: var(--fw-medium); }
.tile__valor { font-family: var(--font-display); font-size: 34px; font-weight: var(--fw-bold); letter-spacing: -0.03em; }
.tile__apoio { font-size: 13px; color: var(--text-muted); }

/* Período: controle segmentado, cantos médios, ativo um degrau acima. */
.periodo__abas { border-radius: var(--radius-md); padding: 3px; gap: 2px; border-color: var(--border-subtle); }
.periodo__aba { border-radius: var(--radius-sm); padding: 6px 12px; font-weight: var(--fw-medium); }
.periodo__aba--ativa { background: var(--color-surface-elevated); box-shadow: none; }
.periodo__nav { height: 34px; padding: 0 var(--space-1); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-subtle); }

/* Agenda de hoje (o resumo; a Agenda inteira continua no menu). */
.agenda-hoje__semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.agenda-hoje__dia {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 0;
  border-radius: var(--radius-md);
  font-size: 11px; color: var(--text-muted); text-transform: uppercase;
}
.agenda-hoje__dia strong { font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.agenda-hoje__dia--hoje { background: var(--primary-subtle); }
.agenda-hoje__dia--hoje strong { color: var(--color-brand-text); }
.agenda-hoje__lista { display: flex; flex-direction: column; margin-top: var(--space-3); }
.agenda-hoje__item { display: flex; gap: var(--space-3); padding: var(--space-3) 0; }
.agenda-hoje__item + .agenda-hoje__item { border-top: 1px solid var(--border-subtle); }
.agenda-hoje__hora { width: 44px; flex: 0 0 auto; font-size: 13px; font-weight: var(--fw-semibold); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.agenda-hoje__item span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.agenda-hoje__item span:last-child small { font-size: 12px; color: var(--text-muted); }
.agenda-hoje__vazio { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; flex: 1 1 auto; padding: var(--space-6) 0; text-align: center; color: var(--text-muted); }
.agenda-hoje__vazio strong { font-size: 14px; color: var(--text); }
.agenda-hoje__vazio span { font-size: 13px; }
.agenda-hoje__acoes { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); margin-top: auto; padding-top: var(--space-3); font-size: 13px; }
.agenda-hoje__acoes a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-weight: var(--fw-semibold); text-decoration: none; }

.gr__barra { border-radius: 5px 5px 2px 2px; }
.gr__barra--atual { box-shadow: 0 0 14px rgba(242, 138, 22, 0.35); }

/* Celular: os blocos do Agora em 2 colunas; números um pouco menores. */
@media (max-width: 767px) {
  .agora__extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile__valor { font-size: 28px; }
}

/* Recolhido, o nome da marca e o botão de fixar não podem OCUPAR espaço
   (opacidade 0 ainda empurrava o símbolo até virar um risco). Somem de
   largura e voltam no hover/fixado. */
.sb__marca { gap: 0; }
.sb__marca__nome { max-width: 0; overflow: hidden; transition: opacity 160ms ease, max-width var(--sb-mov); }
.sb__fixar { width: 0; min-width: 0; padding: 0; border-width: 0; overflow: hidden; }
.sb:hover .sb__marca, body.vf-menu-aberto .sb__marca { gap: 10px; }
.sb:hover .sb__marca__nome, body.vf-menu-aberto .sb__marca__nome { max-width: 160px; }
.sb:hover .sb__fixar, body.vf-menu-aberto .sb__fixar { width: 30px; border-width: 1px; }

/* ════════════════════════════════════════════════════════════════════════
   PROFUNDIDADE CONTROLADA (24/09, pedido do Marcelo: 20% da landing)
   Uma LINGUAGEM, não efeitos soltos. Três peças reutilizáveis:
   · .icone-superficie   o ícone com relevo (menu; depois, outras telas)
   · .marca-ambiente     o fundo ambiente do conteúdo (peças quase invisíveis)
   · .forma-flutuante    cada peça do fundo (balão, calendário, gráfico…)
   Só CSS/SVG: nada de imagem para o relevo. Tudo respeita
   prefers-reduced-motion.
   ════════════════════════════════════════════════════════════════════════ */

/* ── 18/19 · Ícones do menu: planos parados, relevo no hover, "botão
   físico" no ativo. A superfície é um bloco de 32px atrás do traço. ── */
.sb__icone, .icone-superficie {
  position: relative;
  width: 32px; height: 32px;
  margin-left: -6px;
  border-radius: 9px;
  align-items: center; justify-content: center;
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1), background 220ms ease, box-shadow 220ms ease, color 180ms ease;
  transform-style: preserve-3d;
}
.sb__item:hover .sb__icone, .icone-superficie:hover {
  transform: translateY(-1px) rotateX(3deg);
  background: linear-gradient(180deg, var(--color-surface-elevated), var(--color-surface-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 6px rgba(0, 0, 0, 0.28);
}
.sb__item--ativo .sb__icone, .icone-superficie--ativo {
  color: var(--primary);
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-surface-elevated) 80%, var(--primary)), var(--color-surface-2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 3px 8px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(242, 138, 22, 0.16);
}
.sb__item--ativo:hover .sb__icone { transform: translateY(-1px) rotateX(3deg); }
:root[data-tema='claro'] .sb__item:hover .sb__icone { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 6px rgba(90, 60, 20, 0.12); }
:root[data-tema='claro'] .sb__item--ativo .sb__icone { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 3px 8px rgba(90, 60, 20, 0.14), 0 0 18px rgba(242, 138, 22, 0.18); }

/* ── 20 · Ao abrir: os textos entram com opacidade + 6px da esquerda. ── */
.sb__rotulo, .sb__grupo__nome, .sb__marca__nome { transform: translateX(-6px); transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1), max-width var(--sb-mov); }
.sb:hover .sb__rotulo, body.vf-menu-aberto .sb__rotulo,
.sb:hover .sb__grupo__nome, body.vf-menu-aberto .sb__grupo__nome,
.sb:hover .sb__marca__nome, body.vf-menu-aberto .sb__marca__nome { transform: none; }

/* ── 21/22/23 · O ambiente do topo: peças quase invisíveis, desfocadas,
   atrás do conteúdo, com luz laranja fraca; um parallax de até 4px pelo
   cursor (--amb-x/--amb-y, escritos por app.js; nada no toque). ── */
.marca-ambiente {
  --amb-x: 0; --amb-y: 0;
  position: relative;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  display: none;
}
@media (min-width: 768px) {
  .marca-ambiente { display: block; grid-column: 2; grid-row: 2; }
  #app-root { z-index: 1; }
  #app-root::before, #app-root::after { display: none; }   /* o fundo mudou de casa */
}
.forma-flutuante {
  position: absolute;
  opacity: 0.09;
  filter: blur(1.2px);
  transform: translate(calc(var(--amb-x) * var(--prof, 1) * 1px), calc(var(--amb-y) * var(--prof, 1) * 1px)) rotate(var(--giro, 0deg));
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
  background: linear-gradient(160deg, var(--color-surface-elevated), var(--color-surface-1));
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.10), inset -2px -3px 0 rgba(0, 0, 0, 0.35), 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 60px rgba(242, 138, 22, 0.10);
}
:root[data-tema='claro'] .forma-flutuante { opacity: 0.16; background: linear-gradient(160deg, #ffffff, #efe3d3); box-shadow: inset 1px 1px 0 rgba(255,255,255,1), inset -2px -3px 0 rgba(120,80,30,0.12), 0 18px 40px rgba(120,80,30,0.14), 0 0 60px rgba(242,138,22,0.12); }
/* o símbolo, o mais fundo e o maior */
.forma-flutuante--simbolo {
  top: -70px; right: 60px; width: 420px; height: 340px; --prof: 0.6;
  background: url('/assets/img/logo-simbolo.webp') no-repeat center / contain; box-shadow: none; filter: blur(0.6px);
  opacity: 0.035;
}
:root[data-tema='claro'] .forma-flutuante--simbolo { opacity: 0.06; }
/* o balão de conversa */
.forma-flutuante--balao { top: 28px; right: 440px; width: 84px; height: 66px; border-radius: 20px 20px 20px 6px; --prof: 1.4; --giro: -8deg; }
.forma-flutuante--balao::after { content: ''; position: absolute; left: 22px; right: 22px; top: 24px; height: 6px; border-radius: 6px; background: var(--primary); opacity: 0.55; box-shadow: 0 14px 0 0 currentColor; color: rgba(255,255,255,0.18); }
/* o calendário */
.forma-flutuante--agenda { top: 150px; right: 520px; width: 72px; height: 68px; border-radius: 14px; --prof: 1; --giro: 6deg; }
.forma-flutuante--agenda::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 16px; border-radius: 14px 14px 0 0; background: var(--primary); opacity: 0.5; }
/* o gráfico */
.forma-flutuante--grafico { top: 190px; right: 120px; width: 90px; height: 70px; border-radius: 14px; --prof: 1.8; --giro: -4deg; }
.forma-flutuante--grafico::after { content: ''; position: absolute; left: 16px; bottom: 14px; width: 12px; height: 16px; border-radius: 3px; background: var(--primary); opacity: 0.55; box-shadow: 18px -10px 0 0 var(--primary), 36px -22px 0 0 var(--primary); }
/* o check */
.forma-flutuante--check { top: 60px; right: 20px; width: 46px; height: 46px; border-radius: 50%; --prof: 2.2; }
.forma-flutuante--check::after { content: ''; position: absolute; left: 15px; top: 12px; width: 10px; height: 18px; border: solid var(--primary); border-width: 0 3px 3px 0; transform: rotate(45deg); opacity: 0.6; }
/* a luz */
.marca-ambiente::before { content: ''; position: absolute; top: -260px; right: -120px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 138, 22, 0.08), transparent 70%); }

/* ── 24/25 · Volume nos cartões estratégicos, assinatura no "Agora". ── */
.agora, #agenda-hoje {
  position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 10px 30px rgba(0, 0, 0, 0.22);
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1), border-color 220ms ease, box-shadow 220ms ease;
}
:root[data-tema='claro'] .agora, :root[data-tema='claro'] #agenda-hoje { box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 10px 30px rgba(120, 80, 30, 0.08); }
.agora:hover, #agenda-hoje:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 40px rgba(0, 0, 0, 0.30); }
:root[data-tema='claro'] .agora:hover, :root[data-tema='claro'] #agenda-hoje:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 16px 40px rgba(120, 80, 30, 0.12); }
.agora > * { position: relative; z-index: 1; }
/* A assinatura: um balão grande, quase invisível, atrás das informações. */
.agora::before {
  content: '';
  position: absolute; right: -60px; top: -40px;
  width: 260px; height: 200px;
  border-radius: 64px 64px 64px 18px;
  background: linear-gradient(160deg, var(--color-surface-elevated), transparent 70%);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.06), 0 0 80px rgba(242, 138, 22, 0.08);
  opacity: 0.55;
  transform: rotate(-8deg);
  pointer-events: none;
}
.sb__item--ativo { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }

/* ── 26 · A entrada da Home: escalonada, curta, só opacidade + 6px. ── */
@keyframes vf-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.inicio__topo, .inicio__grade, #numeros .tiles, #numeros .grade-graficos, .inicio__desempenho { animation: vf-entra 260ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.inicio__grade { animation-delay: 50ms; }
#numeros .tiles { animation-delay: 100ms; }
#numeros .grade-graficos { animation-delay: 150ms; }
.inicio__desempenho { animation-delay: 200ms; }

@media (prefers-reduced-motion: reduce) {
  .inicio__topo, .inicio__grade, #numeros .tiles, #numeros .grade-graficos, .inicio__desempenho { animation: none; }
  .sb__icone, .icone-superficie, .sb__rotulo, .sb__grupo__nome, .sb__marca__nome, .forma-flutuante, .agora, #agenda-hoje { transition: none; transform: none; }
  .sb__item:hover .sb__icone, .agora:hover, #agenda-hoje:hover { transform: none; }
}

/* As linhas da grade ficam EXPLÍCITAS: o ambiente divide a célula do
   conteúdo (coluna 2, linha 2) em vez de empurrar o resto para baixo. */
@media (min-width: 768px) {
  #app-topbar { grid-row: 1; }
  #app-root, .marca-ambiente { grid-row: 2; }
  #app-nav { grid-row: 3; }
  body.vf-porta .marca-ambiente, body.vf-janela .marca-ambiente { display: none; }
}
