/* ============================================================================
   Painel navegável da Clínica Alvorada (componente da home).
   Retrato do produto real: identidade "Eucalipto sobre Papel" do painel (tokens
   copiados do design system do axion-health-web), não a identidade do site.
   Tudo aqui vive sob .ax, para não vazar para o resto da página.
   ============================================================================ */

/* as fontes do painel real (tokens.scss: Inter no texto, Hanken Grotesk no display), hospedadas aqui,
   variáveis, só o subconjunto latino (cobre todos os acentos do português). Licença SIL OFL 1.1. */
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('../fonts/HankenGrotesk-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

.demo { max-width: 1120px; margin: 40px auto 0; padding-bottom: clamp(48px, 6vw, 72px); text-align: left; }

.ax {
  /* tokens do painel (tokens.scss do produto) */
  --ax-marca: #1c5d45;
  --ax-marca-hover: #18503b;
  --ax-marca-bg: #e8f0ec;
  --ax-marca-clara: #7ab89b;
  --ax-ink: #16241e;
  --ax-ink-suave: #21342b;
  --ax-ink-borda: #2c4339;
  --ax-ink-conteudo: #c8d4ce;
  --ax-surface: #ffffff;
  --ax-surface-2: #faf9f5;
  --ax-bg: #f3f2ec;
  --ax-gray-100: #f4f3ed;
  --ax-gray-200: #e7e5dc;
  --ax-gray-300: #d6d3c8;
  --ax-borda: #e7e5dc;
  --ax-glass-forte: #faf9f5;
  --ax-glass-hover: #f4f3ed;
  --ax-glass-borda: rgba(35, 33, 26, 0.08);
  --ax-texto: #23211a;
  --ax-texto-2: #5e5a4d;
  --ax-texto-3: #837e6f;
  --ax-sucesso: #15803d; --ax-sucesso-bg: #e3f3e8;
  --ax-alerta: #b45309; --ax-alerta-bg: #fdf1e0;
  --ax-erro: #c0362c; --ax-erro-bg: #fbe7e5;
  --ax-info: #2563a8; --ax-info-bg: #e5eefa;
  --ax-atencao: #c2410c; --ax-atencao-bg: #fdebe3;
  --ax-raio-sm: 8px; --ax-raio-md: 12px; --ax-raio-lg: 18px;
  --ax-sombra: 0 1px 2px rgba(35, 33, 26, 0.05), 0 1px 1px rgba(35, 33, 26, 0.04);
  --ax-sombra-lg: 0 16px 40px rgba(35, 33, 26, 0.12);
  --ax-fonte: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ax-fonte-display: 'Hanken Grotesk', 'Inter', system-ui, sans-serif;
  --ax-mono: 'IBM Plex Mono', 'Cascadia Mono', Consolas, monospace;

  position: relative;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  height: 640px;
  font-family: var(--ax-fonte);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ax-texto);
  background: var(--ax-bg);
  border: 1px solid var(--borda);
  border-radius: var(--raio-g);
  box-shadow: var(--sombra-g);
  overflow: hidden;
  text-align: left;
}

.ax *, .ax *::before, .ax *::after { box-sizing: border-box; }
.ax button { font-family: inherit; font-size: inherit; cursor: pointer; }
.ax svg { width: 18px; height: 18px; flex-shrink: 0; }
.ax .i { display: inline-flex; align-items: center; justify-content: center; }
.ax b, .ax strong { font-weight: 600; }
.ax.sem-lateral { grid-template-columns: 1fr; }
.ax.sem-lateral .ax__lateral { display: none; }

/* ------------------------------ barra lateral (menu-lateral + shell) ------------------------------ */

.ax__lateral { background: var(--ax-ink); color: var(--ax-ink-conteudo); display: flex; flex-direction: column; min-height: 0; }

.ax__marca { position: relative; height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 0 20px; }
.ax__marca::after { content: ''; position: absolute; left: 20px; right: 20px; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent); }
.ax__logo-btn { background: transparent; border: 0; padding: 0; display: inline-flex; border-radius: 8px; }
.ax__logo-btn img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.ax__fechar-menu { display: none; background: transparent; border: 0; color: rgba(255, 255, 255, 0.7); padding: 6px; border-radius: 8px; }

.ax__busca { flex-shrink: 0; margin: 14px 12px 8px; position: relative; display: flex; align-items: center; }
.ax__busca svg { position: absolute; left: 10px; width: 17px; height: 17px; color: rgba(255, 255, 255, 0.45); pointer-events: none; }
.ax__busca input { width: 100%; height: 36px; padding: 0 12px 0 34px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--ax-raio-sm); color: #fff; font: inherit; font-size: 13.5px; outline: none; transition: border-color 120ms ease, background-color 120ms ease; }
.ax__busca input::placeholder { color: rgba(255, 255, 255, 0.45); }
.ax__busca input:focus { border-color: var(--ax-marca-clara); background: rgba(255, 255, 255, 0.09); }

.ax-menu { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 12px 12px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.15) transparent; }
.ax-menu__grupo { display: flex; flex-direction: column; }
.ax-menu__grupo + .ax-menu__grupo { margin-top: 14px; }
.ax-menu__grupo[hidden] { display: none; }
.ax-menu__secao { margin: 0 0 4px; padding: 0 12px; color: rgba(255, 255, 255, 0.42); font-family: var(--ax-fonte); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; line-height: 1.4; }
.ax-menu__lista { display: flex; flex-direction: column; gap: 2px; }
.ax-menu__item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: var(--ax-raio-sm); background: transparent; color: var(--ax-ink-conteudo); font-size: 13.5px; font-weight: 500; text-align: left; transition: background-color 120ms ease, color 120ms ease; }
.ax-menu__item svg { width: 19px; height: 19px; }
.ax-menu__item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.ax-menu__item.ativo { background: rgba(255, 255, 255, 0.08); color: #fff; font-weight: 600; }
.ax-menu__item.ativo::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 58%; border-radius: 999px; background: var(--ax-marca-clara); }
.ax-menu__item.ativo svg { color: var(--ax-marca-clara); }
.ax-menu__item.escondido { display: none; }
.ax-menu__vazio { margin: 12px 4px 0; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.ax__rodape { position: relative; flex-shrink: 0; padding: 12px 16px; font-size: 11px; color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.ax__rodape::before { content: ''; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent); }
.ax__rodape b { color: rgba(255, 255, 255, 0.72); font-weight: 600; }

/* --------------------------------- topo (header-component) --------------------------------- */

.ax__principal { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; }

.ax__topo { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 18px; background: var(--ax-surface); box-shadow: 0 6px 18px -12px rgba(35, 33, 26, 0.16); position: relative; z-index: 5; }
.ax__topo-esq { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.ax__topo-dir { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ax__ferramentas { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ax__divisor { width: 1px; height: 26px; background: var(--ax-borda); flex-shrink: 0; }
.ax__hamburguer { display: none; width: 36px; height: 36px; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--ax-texto-2); border-radius: var(--ax-raio-sm); }
.ax__hamburguer:hover { background: var(--ax-gray-100); color: var(--ax-texto); }
.ax__logo-topo { display: none; align-items: center; }
.ax__logo-topo--fixo { display: inline-flex; }
.ax__logo-topo img { height: 28px; width: auto; }

/* gatilhos de vidro: módulos, clínica, sala e relógio compartilham o mesmo desenho */
.ax-gatilho { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 10px; background: var(--ax-glass-forte); border: 1px solid var(--ax-glass-borda); border-radius: var(--ax-raio-sm); color: var(--ax-texto-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease; }
.ax-gatilho:hover, .ax-gatilho.aberto { background: var(--ax-glass-hover); border-color: var(--ax-gray-300); color: var(--ax-texto); }
.ax-gatilho__icone { color: var(--ax-marca); width: 18px; height: 18px; }
.ax-gatilho__icone--grande { width: 21px; height: 21px; }
.ax-gatilho__caret { width: 15px; height: 15px; color: var(--ax-texto-3); transition: transform 120ms ease; }
.ax-gatilho.aberto .ax-gatilho__caret { transform: rotate(180deg); }
.ax-gatilho--modulos { gap: 1px; padding: 0 6px 0 8px; }
.ax-gatilho__atual { max-width: 160px; overflow: hidden; text-overflow: ellipsis; color: var(--ax-texto); font-weight: 600; }
.ax-gatilho--sala { padding-right: 8px; }
.ax-gatilho__texto { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.ax-gatilho__rotulo { font-size: 10px; color: var(--ax-texto-3); text-transform: uppercase; letter-spacing: 0.04em; }
.ax-gatilho__valor { font-size: 13px; font-weight: 600; color: var(--ax-texto); }
.ax-gatilho--sala-sem { color: var(--ax-atencao); border-color: rgba(194, 65, 12, 0.4); }
.ax-gatilho--sala-sem .ax-gatilho__icone, .ax-gatilho--sala-sem .ax-gatilho__valor { color: var(--ax-atencao); }
.ax-relogio { display: inline-flex; align-items: baseline; gap: 3px; font-variant-numeric: tabular-nums; }
.ax-relogio__hm { font-size: 14px; font-weight: 600; color: var(--ax-texto); letter-spacing: 0.02em; }
.ax-relogio__seg { font-size: 10px; color: var(--ax-texto-3); }
.ax__relogio-wrap, .ax__perfil-wrap { position: relative; flex-shrink: 0; }

.ax-sino { position: relative; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid transparent; border-radius: var(--ax-raio-sm); color: var(--ax-texto-2); }
.ax-sino svg { width: 21px; height: 21px; }
.ax-sino:hover { background: var(--ax-gray-100); color: var(--ax-texto); }
.ax-sino.ativo { color: var(--ax-marca); }
.ax-sino__badge { position: absolute; top: 2px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--ax-erro); color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ax-surface); line-height: 1; }

.ax-perfil { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px; background: transparent; border: 1px solid transparent; border-radius: var(--ax-raio-sm); transition: background-color 120ms ease, border-color 120ms ease; }
.ax-perfil:hover, .ax-perfil.aberto { background: var(--ax-glass-hover); border-color: var(--ax-glass-borda); }
.ax-avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--ax-marca); color: #fff; font-family: var(--ax-fonte-display); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.ax-avatar--grande { width: 44px; height: 44px; font-size: 18px; }
.ax-perfil__usuario { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.ax-perfil__nome { font-size: 13.5px; font-weight: 600; color: var(--ax-texto); white-space: nowrap; }
.ax-perfil__funcao { font-size: 11.5px; color: var(--ax-texto-3); white-space: nowrap; }
.ax-perfil__caret { width: 17px; height: 17px; color: var(--ax-texto-3); transition: transform 120ms ease; }
.ax-perfil.aberto .ax-perfil__caret { transform: rotate(180deg); }

/* painéis suspensos: seletor de módulos, seletor de clínica, mini agenda, menu do perfil */
.ax-pop { position: absolute; top: 60px; right: 18px; z-index: 30; padding: 12px; background: var(--ax-surface); border: 1px solid var(--ax-borda); border-radius: var(--ax-raio-lg); box-shadow: var(--ax-sombra-lg); display: flex; flex-direction: column; gap: 12px; max-height: calc(100% - 72px); overflow: auto; scrollbar-width: thin; }
.ax-pop__titulo { margin: 0; font-size: 11px; font-weight: 700; color: var(--ax-texto-3); text-transform: uppercase; letter-spacing: 0.08em; }
.ax-pop--modulos { min-width: 340px; }
.ax-pop--clinica { min-width: 320px; }
.ax-pop--agenda { min-width: 340px; padding: 8px; }
.ax-pop--perfil { min-width: 256px; padding: 8px; gap: 2px; }

.ax-modulos__grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ax-modulos__item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px; background: transparent; border: 1px solid transparent; border-radius: var(--ax-raio-md); color: var(--ax-texto-2); transition: background-color 120ms ease; }
.ax-modulos__item:hover { background: var(--ax-surface-2); }
.ax-modulos__item.ativo { background: var(--ax-marca-bg); }
.ax-modulos__selo { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--ax-raio-md); background: var(--ax-gray-100); color: var(--ax-marca); transition: background-color 120ms ease, color 120ms ease; }
.ax-modulos__selo svg { width: 24px; height: 24px; }
.ax-modulos__item.ativo .ax-modulos__selo { background: var(--ax-marca); color: #fff; }
.ax-modulos__label { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; color: var(--ax-texto); }
.ax-modulos__item.ativo .ax-modulos__label { color: var(--ax-marca); }
.ax-modulos__hub { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px; background: var(--ax-surface-2); border: 0; color: var(--ax-marca); font-size: 13.5px; font-weight: 600; border-radius: var(--ax-raio-md); transition: background-color 120ms ease; }
.ax-modulos__hub:hover { background: var(--ax-marca-bg); }
.ax-modulos__seta { margin-left: auto; opacity: 0.75; width: 16px; height: 16px; }
.ax-pop__extra { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-top: 10px; border-top: 1px dashed var(--ax-borda); }
.ax-pop__extra-titulo { width: 100%; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ax-texto-3); }
.ax-pop__link { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ax-texto-2); font-size: 12.5px; font-weight: 500; }
.ax-pop__link svg { width: 15px; height: 15px; color: var(--ax-marca); }
.ax-pop__link:hover { background: var(--ax-surface-2); color: var(--ax-texto); }

.ax-clinicas { display: flex; flex-direction: column; gap: 2px; }
.ax-clinicas__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; background: transparent; border: 0; border-radius: var(--ax-raio-md); color: var(--ax-texto); text-align: left; transition: background-color 120ms ease; }
.ax-clinicas__item:hover { background: var(--ax-surface-2); }
.ax-clinicas__item.ativo { background: var(--ax-marca-bg); }
.ax-clinicas__selo { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--ax-raio-md); background: var(--ax-gray-100); color: var(--ax-marca); flex-shrink: 0; }
.ax-clinicas__selo svg { width: 21px; height: 21px; }
.ax-clinicas__item.ativo .ax-clinicas__selo { background: var(--ax-marca); color: #fff; }
.ax-clinicas__corpo { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ax-clinicas__label { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-clinicas__item.ativo .ax-clinicas__label { color: var(--ax-marca); }
.ax-clinicas__tag { font-size: 11px; color: var(--ax-texto-3); }
.ax-clinicas__check { margin-left: auto; color: var(--ax-marca); width: 18px; height: 18px; }

.ax-mini { display: flex; flex-direction: column; gap: 8px; padding: 6px 4px 2px; width: 330px; max-width: 100%; }
.ax-mini__topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 8px 6px; }
.ax-mini__eyebrow { margin: 0; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ax-marca); }
.ax-mini__titulo { margin: 2px 0 0; font-family: var(--ax-fonte-display); font-size: 15px; font-weight: 700; color: var(--ax-texto); letter-spacing: -0.01em; }
.ax-mini__contador { min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--ax-marca-bg); color: var(--ax-marca); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ax-mini__lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 250px; overflow: auto; scrollbar-width: thin; }
.ax-mini__item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; }
.ax-mini__item:hover { background: var(--ax-surface-2); }
.ax-mini__hora { font-family: var(--ax-mono); font-size: 12px; font-weight: 600; color: var(--ax-texto-2); font-variant-numeric: tabular-nums; }
.ax-mini__barra { width: 3px; height: 26px; border-radius: 999px; background: var(--ax-gray-300); flex-shrink: 0; }
.ax-mini__barra--info { background: var(--ax-info); }
.ax-mini__barra--sucesso { background: var(--ax-sucesso); }
.ax-mini__barra--atencao { background: var(--ax-atencao); }
.ax-mini__barra--alerta { background: var(--ax-alerta); }
.ax-mini__info { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ax-mini__paciente { font-size: 13.5px; font-weight: 500; color: var(--ax-texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-mini__meta { font-size: 12px; color: var(--ax-texto-3); }
.ax-mini__rodape { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 9px; margin-top: 2px; background: transparent; border: 0; border-top: 1px solid var(--ax-borda); color: var(--ax-marca); font-size: 13px; font-weight: 600; border-radius: 0 0 8px 8px; }
.ax-mini__rodape svg { width: 15px; height: 15px; }
.ax-mini__rodape:hover { background: var(--ax-surface-2); }

.ax-pop__id { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 8px; }
.ax-pop__id-texto { display: flex; flex-direction: column; min-width: 0; }
.ax-pop__id-nome { font-size: 13.5px; font-weight: 600; color: var(--ax-texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-pop__id-email { font-size: 12px; color: var(--ax-texto-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-pop__id-papel { margin-top: 3px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ax-marca); }
.ax-pop__sep { height: 1px; margin: 4px 0; background: linear-gradient(90deg, transparent, var(--ax-borda), transparent); }
.ax-pop__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; background: transparent; border: 0; border-radius: var(--ax-raio-sm); color: var(--ax-texto-2); font-size: 13.5px; font-weight: 500; text-align: left; transition: background-color 120ms ease, color 120ms ease; }
.ax-pop__item svg { width: 19px; height: 19px; }
.ax-pop__item:hover { background: var(--ax-surface-2); color: var(--ax-texto); }
.ax-pop__item--sair { color: var(--ax-erro); }
.ax-pop__item--sair:hover { background: var(--ax-erro-bg); color: var(--ax-erro); }

/* modal padrão (modal-padrao-component): header e rodapé fixos, corpo rola */
.ax-modal-overlay { position: absolute; inset: 0; z-index: 40; background: rgba(22, 36, 30, 0.45); }
.ax-modal { position: absolute; z-index: 41; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(440px, 92%); max-height: 90%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--ax-surface); border: 1px solid var(--ax-borda); border-radius: var(--ax-raio-lg); box-shadow: var(--ax-sombra-lg); overflow: hidden; }
.ax-modal__topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.ax-modal__topo h3 { margin: 0; font-family: var(--ax-fonte-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--ax-texto); }
.ax-modal__topo p { margin: 4px 0 0; font-size: 13px; color: var(--ax-texto-2); }
.ax-modal__fechar { flex-shrink: 0; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 8px; color: var(--ax-texto-3); }
.ax-modal__fechar:hover { background: var(--ax-gray-100); color: var(--ax-texto); }
.ax-modal__corpo { padding: 4px 20px 12px; overflow: auto; scrollbar-gutter: stable; }
.ax-modal__rodape { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 18px; border-top: 1px solid var(--ax-borda); }
.ax-modal__msg { margin: 0; font-size: 13.5px; color: var(--ax-texto-2); }
.ax-salas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ax-salas__opcao { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; background: var(--ax-surface-2); border: 1px solid var(--ax-borda); border-radius: var(--ax-raio-md); color: var(--ax-texto); text-align: left; font-size: 13.5px; font-weight: 500; }
.ax-salas__opcao svg { width: 18px; height: 18px; color: var(--ax-marca); }
.ax-salas__opcao:hover { background: var(--ax-gray-100); }
.ax-salas__opcao.sel { background: var(--ax-marca-bg); border-color: var(--ax-marca); }
.ax-salas__nome { flex: 1; }
.ax-salas__check { color: var(--ax-marca); }

/* -------------------------------- conteúdo (pagina-padrao) -------------------------------- */

.ax__conteudo { overflow: auto; padding: 22px 24px 28px; scrollbar-width: thin; scrollbar-color: #cfcbbf transparent; position: relative; }
.ax-tela { display: grid; gap: 16px; align-content: start; min-height: 100%; }

/* cabeçalho de página (cabecalho-pagina-component) */
.ax-cab { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ax-cab__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ax-marca); margin-bottom: 4px; }
.ax-cab__eyebrow::before { content: ''; width: 16px; height: 2px; background: currentColor; border-radius: 999px; }
.ax-cab h2 { font-family: var(--ax-fonte-display); font-size: 30px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; margin: 0; color: var(--ax-texto); text-wrap: balance; }
.ax-cab p { margin: 4px 0 0; color: var(--ax-texto-2); font-size: 13.5px; max-width: 68ch; }
.ax-cab__acoes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }

/* botões (button-primary / button-secondary) e ações de linha (acao-icone) */
.ax-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: var(--ax-raio-sm); border: 1px solid transparent; font-weight: 600; font-size: 13.5px; line-height: 1.2; white-space: nowrap; transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease; }
.ax-btn svg { width: 17px; height: 17px; }
.ax-btn--primario { background: var(--ax-marca); color: #fff; }
.ax-btn--primario:hover { background: var(--ax-marca-hover); }
.ax-btn--contorno { background: var(--ax-surface); border-color: rgba(28, 93, 69, 0.45); color: var(--ax-marca); }
.ax-btn--contorno:hover { background: var(--ax-marca-bg); }
.ax-btn--secundario { background: var(--ax-surface); border-color: var(--ax-gray-300); color: var(--ax-texto); }
.ax-btn--secundario:hover { background: var(--ax-gray-100); }
.ax-btn--suave { background: var(--ax-surface-2); border-color: var(--ax-borda); color: var(--ax-texto); }
.ax-btn--icone { padding: 0 9px; }
.ax-btn--mini { min-height: 32px; padding: 0 10px; font-size: 12.5px; }
.ax-btn--perigo { background: var(--ax-surface); border-color: rgba(192, 54, 44, 0.3); color: var(--ax-erro); }
.ax-btn:disabled { opacity: 0.5; cursor: default; }
.ax-acao { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--ax-borda); border-radius: var(--ax-raio-sm); padding: 6px 11px; font-size: 12px; font-weight: 500; color: var(--ax-texto-2); white-space: nowrap; transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease; }
.ax-acao svg { width: 15px; height: 15px; }
.ax-acao:hover { background: var(--ax-surface-2); border-color: var(--ax-gray-300); color: var(--ax-texto); }
.ax-acao--destaque { color: var(--ax-marca); font-weight: 600; }
.ax-acao--perigo { color: var(--ax-erro); border-color: rgba(192, 54, 44, 0.28); }
.ax-acao--perigo:hover { background: var(--ax-erro-bg); border-color: rgba(192, 54, 44, 0.4); color: var(--ax-erro); }
.ax-acao:disabled { opacity: 0.45; cursor: not-allowed; }
.ax-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 6px 4px; background: transparent; border: 0; color: var(--ax-marca); font-size: 13px; font-weight: 600; }
.ax-link svg { width: 15px; height: 15px; }
.ax-pilula { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--ax-borda); border-radius: 999px; background: var(--ax-surface); color: var(--ax-texto-2); font-size: 12.5px; font-weight: 500; }
.ax-pilula svg { width: 15px; height: 15px; }
.ax-pilula:hover { background: var(--ax-surface-2); color: var(--ax-texto); }

/* painel-card e secao-titulo */
.ax-card { background: var(--ax-surface); border: 1px solid var(--ax-borda); border-radius: var(--ax-raio-lg); box-shadow: var(--ax-sombra); padding: 20px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.ax-card > * { min-width: 0; }
.ax-abas__painel > * { min-width: 0; }
.ax-card__titulo { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ax-card__titulo h3 { margin: 0; font-family: var(--ax-fonte-display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--ax-texto); line-height: 1.3; }
.ax-card__titulo small { font-size: 12px; color: var(--ax-texto-2); font-weight: 400; margin-left: 6px; font-family: var(--ax-fonte); }
.ax-card__titulo p { margin: 0; font-size: 12.5px; color: var(--ax-texto-2); }
.ax-secao-sub { margin: 16px 0 10px; font-family: var(--ax-fonte-display); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--ax-texto); }
.ax-chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* identidade do paciente (ficha-paciente e busca-paciente selecionado) */
.ax-ident { display: flex; align-items: flex-start; gap: 14px; }
.ax-ident--compacta { padding: 14px 16px; align-items: center; }
.ax-ident__txt { flex: 1; min-width: 0; display: grid; gap: 6px; }
.ax-ident__nome { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ax-ident__nome h2 { margin: 0; font-family: var(--ax-fonte-display); font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: var(--ax-texto); line-height: 1.2; }
.ax-ident__meta { margin: 0; font-size: 13px; color: var(--ax-texto-2); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ax-ident__meta span { display: inline-flex; align-items: center; gap: 5px; }
.ax-ident__meta svg { width: 14px; height: 14px; color: var(--ax-texto-3); }
.ax-ident__revelar { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border: 0; background: transparent; color: var(--ax-marca); font-size: 12.5px; font-weight: 600; }
.ax-ident__resp { margin: 0; font-size: 13px; color: var(--ax-texto-2); display: inline-flex; align-items: center; gap: 6px; }
.ax-ident__resp svg { width: 14px; height: 14px; color: var(--ax-texto-3); }
.ax-ident__trocar { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--ax-gray-300); border-radius: var(--ax-raio-sm); background: var(--ax-surface); color: var(--ax-texto-2); font-size: 13px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.ax-ident__trocar:hover { border-color: var(--ax-marca); color: var(--ax-marca); }
.ax-ident__trocar svg { width: 15px; height: 15px; }
.ax-ficha__imprimir, .ax-ficha__rodape { display: flex; gap: 10px; flex-wrap: wrap; }
/* prontuário */
.ax-pront__sessao { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 4px; padding: 10px 12px; border-radius: var(--ax-raio-sm); background: var(--ax-marca-bg); color: var(--ax-texto); font-size: 13px; }
.ax-pront__sessao svg { width: 16px; height: 16px; color: var(--ax-marca); }
.ax-pront__sessao span { flex: 1; min-width: 0; }
.ax-pront__desvincular { border: 0; background: transparent; color: var(--ax-marca); font-size: 12.5px; font-weight: 600; text-decoration: underline; padding: 2px 4px; }
.ax-pront__cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ax-pront__cab .ax-secao-sub { margin: 8px 0 0; }
.ax-cadeado { display: inline-flex; margin-left: 6px; vertical-align: middle; color: var(--ax-texto-3); }
.ax-cadeado svg { width: 13px; height: 13px; }
.ax-input.ax-input--area { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; min-height: 92px; padding: 10px 12px; }
.ax-hist { align-items: center; }
.ax-hist__chev { color: var(--ax-texto-3); flex-shrink: 0; }
.ax .ax-hist__chev { width: 18px; height: 18px; }
.ax-nota { margin: -6px 0 4px; font-size: 12.5px; color: var(--ax-texto-2); }
.ax-grade { display: grid; gap: 16px; }
.ax-grade--2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.ax-grade--igual { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ax-grade--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* kpi-card, variante painel */
.ax-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: stretch; }
.ax-kpis--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ax-kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ax-kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ax-kpis--5, .ax-kpis--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ax-kpi { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 14px 18px; background: var(--ax-surface-2); border: 1px solid var(--ax-borda); border-radius: var(--ax-raio-lg); position: relative; min-width: 0; container-type: inline-size; }
.ax-kpi__cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
/* rótulo em até duas linhas (reserva das duas para a grade não entortar) e reticências além disso, como no kpi-card real */
.ax-kpi__rotulo { font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ax-texto-2); line-height: 1.5; min-height: 3em; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.ax-kpi__selo { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: var(--ax-raio-sm); background: var(--ax-marca-bg); color: var(--ax-marca); }
.ax-kpi__selo svg { width: 15px; height: 15px; }
@container (max-width: 150px) {
  .ax-kpi__cab { flex-wrap: wrap; }
  .ax-kpi__rotulo { flex: 1 0 100%; min-height: 0; }
}
/* número fluido pela largura do card (clamp com cqw), como a variante painel */
.ax-kpi__valor { font-family: var(--ax-fonte-display); font-size: clamp(16px, 10.5cqw, 24px); font-weight: 800; letter-spacing: -0.02em; color: var(--ax-texto); font-variant-numeric: tabular-nums lining-nums; line-height: 1.15; overflow-wrap: anywhere; }
.ax-kpi__valor.neg { color: var(--ax-erro); }
.ax-kpi__valor.pos { color: var(--ax-sucesso); }
.ax-kpi__nota { font-size: 11.5px; color: var(--ax-texto-2); margin-top: auto; }


/* status-badge */
.ax-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; line-height: 1; }
.ax-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ax-chip--neutro { background: var(--ax-gray-200); color: var(--ax-texto-2); }
.ax-chip--info { background: #e3edf7; color: #2563a8; }
.ax-chip--sucesso { background: #e3f2e8; color: #15803d; }
.ax-chip--alerta { background: #fbebd7; color: #7c3a06; }
.ax-chip--erro { background: #fbe6e3; color: #c0362c; }
.ax-chip--atencao { background: #ffe9d6; color: #c2410c; }
.ax-chip--marca { background: var(--ax-marca-bg); color: var(--ax-marca); }
.ax-chip--sem-ponto::before { display: none; }

/* lista-registros */
.ax-lista { display: flex; flex-direction: column; }
.ax-linha { display: flex; align-items: center; gap: 16px; padding: 12px; margin: 0 -12px; border-radius: var(--ax-raio-sm); border-bottom: 1px solid var(--ax-borda); min-width: 0; transition: background-color 120ms ease; }
.ax-linha:hover { background: var(--ax-surface-2); }
.ax-linha:last-child { border-bottom: 0; }
.ax-linha--btn { width: calc(100% + 24px); color: inherit; background: transparent; border-left: 0; border-right: 0; border-top: 0; text-align: left; font: inherit; }
.ax-linha__hora { font-family: var(--ax-mono); font-size: 13px; color: var(--ax-marca); font-weight: 600; min-width: 46px; font-variant-numeric: tabular-nums; }
.ax-linha__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ax-linha__nome { font-size: 15px; font-weight: 600; color: var(--ax-texto); line-height: 1.3; }
.ax-linha__sub { font-size: 13.5px; color: var(--ax-texto-2); }
.ax-linha__dir { display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.ax-linha--destaque { background: var(--ax-marca-bg); }
.ax-linha[hidden] { display: none; }

/* pendências (tela Início) */
.ax-pendencias { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ax-pendencia { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--ax-borda); border-radius: var(--ax-raio-sm); background: var(--ax-surface); font-size: 14px; color: var(--ax-texto); }
.ax-pendencia__acao { display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 0; padding: 0; color: inherit; }
.ax-pendencia__ver { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; color: var(--ax-marca); }
.ax-pendencia__ver svg { width: 14px; height: 14px; }
.ax-contador { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--ax-gray-100); color: var(--ax-texto-2); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.ax-contador--alerta { background: var(--ax-marca-bg); color: var(--ax-marca); }

/* tabela-padrao: cabeçalho na cor da marca */
.ax-tabela { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ax-tabela thead { background: var(--ax-marca); }
.ax-tabela th { text-align: left; color: #fff; font-size: 13px; font-weight: 600; padding: 11px 14px; white-space: nowrap; }
.ax-tabela th:first-child { border-top-left-radius: var(--ax-raio-sm); }
.ax-tabela th:last-child { border-top-right-radius: var(--ax-raio-sm); }
.ax-tabela td { padding: 11px 14px; border-bottom: 1px solid var(--ax-borda); vertical-align: middle; color: var(--ax-texto); }
.ax-tabela tr:last-child td { border-bottom: 0; }
.ax-tabela tbody tr { transition: background-color 120ms ease; }
.ax-tabela tbody tr:hover { background: rgba(28, 93, 69, 0.04); }
.ax-tabela td.num, .ax-tabela th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ax-tabela .sub { display: block; font-size: 12px; color: var(--ax-texto-2); }
.ax-tabela-rolagem { overflow-x: auto; }

/* abas-component e filtro-tabs */
.ax-abas { display: flex; gap: 0; border-bottom: 1px solid var(--ax-borda); overflow-x: auto; scrollbar-width: none; }
.ax-abas::-webkit-scrollbar { display: none; }
.ax-aba { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 10px 14px; background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--ax-texto-2); font-size: 15.5px; font-weight: 500; white-space: nowrap; transition: color 120ms ease, border-color 120ms ease; }
.ax-aba svg { width: 17px; height: 17px; opacity: 0.9; }
.ax-aba:hover { color: var(--ax-marca); }
.ax-aba.ativa { color: var(--ax-marca); border-bottom-color: var(--ax-marca); font-weight: 600; }
.ax-aba__n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ax-surface-2); color: var(--ax-texto-2); font-size: 12px; font-weight: 600; }
.ax-aba.ativa .ax-aba__n { background: rgba(28, 93, 69, 0.1); color: var(--ax-marca); }
.ax-abas__painel { padding-top: 18px; display: grid; gap: 14px; }
.ax-ferramentas-lista { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ax-ferramentas-lista .ax-input--busca { flex: 1 1 260px; }
.ax-filtro { display: inline-flex; align-items: center; gap: 4px; background: var(--ax-gray-100); padding: 4px; border-radius: 999px; }
.ax-filtro__tab { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ax-texto-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.ax-filtro__tab:hover:not(.ativa) { color: var(--ax-marca); }
.ax-filtro__tab.ativa { background: var(--ax-marca); color: #fff; }
.ax-filtro__n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(35, 33, 26, 0.06); font-size: 12px; font-weight: 600; }
.ax-filtro__tab.ativa .ax-filtro__n { background: rgba(255, 255, 255, 0.2); color: #fff; }
.ax-filtro-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--ax-borda); border-radius: 999px; background: var(--ax-surface); color: var(--ax-texto-2); font-size: 13px; font-weight: 500; }
.ax-filtro-toggle svg { width: 15px; height: 15px; }
.ax-filtro-toggle.ativo { border-color: var(--ax-marca); color: var(--ax-marca); background: var(--ax-marca-bg); }
.ax-segmento { display: inline-flex; background: var(--ax-gray-100); border-radius: var(--ax-raio-sm); padding: 3px; gap: 2px; }
.ax-segmento__item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--ax-texto-2); font-size: 13px; font-weight: 500; }
.ax-segmento__item svg { width: 15px; height: 15px; }
.ax-segmento__item.ativo { background: var(--ax-surface); color: var(--ax-texto); box-shadow: var(--ax-sombra); font-weight: 600; }

/* barra da agenda e lista por dia */
.ax-barra-agenda { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ax-barra-agenda__data { font-family: var(--ax-fonte-display); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--ax-texto); margin-left: 4px; }
.ax-barra-agenda__dir { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ax-input--select { min-height: 38px; max-width: 250px; gap: 6px; padding-right: 8px; }
.ax-input__limpar { width: 16px; height: 16px; color: var(--ax-texto-3); margin-left: auto; }
.ax-lista-dias { display: grid; gap: 8px; }
.ax-lista-dias__dia { margin: 8px 0 0; font-size: 13.5px; font-weight: 500; color: var(--ax-texto-2); }
.ax-lista-dias .ax-pilula { justify-self: start; }

/* formulários (input-padrao, select, campo) */
.ax-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.ax-campo { display: grid; gap: 6px; min-width: 0; }
.ax-campo--cheio { grid-column: 1 / -1; }
.ax-campo label { font-size: 13px; font-weight: 500; color: var(--ax-texto); }
.ax-campo label i { color: var(--ax-erro); font-style: normal; margin-left: 4px; }
.ax-campo .ajuda { font-size: 12px; color: var(--ax-texto-2); }
.ax-input { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--ax-gray-300); border-radius: var(--ax-raio-sm); background: var(--ax-surface); color: var(--ax-texto-3); font-size: 13.5px; min-height: 40px; }
.ax-input.preenchido { color: var(--ax-texto); }
.ax-input svg { width: 16px; height: 16px; color: var(--ax-texto-3); flex-shrink: 0; }
.ax-input .chev { margin-left: auto; }
.ax-input--busca { color: var(--ax-texto); border-radius: 999px; }
.ax-input--busca input { border: 0; outline: 0; background: transparent; font: inherit; width: 100%; color: inherit; min-width: 0; }
.ax-input--busca input::placeholder { color: var(--ax-texto-3); }
.ax-form__rodape { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding-top: 4px; flex-wrap: wrap; }
.ax-toggle { color: inherit; width: 36px; height: 20px; border-radius: 999px; background: #d6d3c8; position: relative; flex-shrink: 0; border: 0; padding: 0; transition: background-color 160ms ease; }
.ax-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: left 160ms ease; }
.ax-toggle.ligado { background: var(--ax-marca); }
.ax-toggle.ligado::after { left: 18px; }
.ax-toggle:disabled { opacity: 0.5; cursor: default; }

/* estado-vazio e avisos */
.ax-vazio { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 32px 12px; color: var(--ax-texto-2); }
.ax-vazio svg { width: 40px; height: 40px; color: var(--ax-gray-300); margin-bottom: 4px; }
.ax-vazio b { font-size: 17px; font-weight: 600; color: #45423a; }
.ax-vazio p { margin: 0; font-size: 13.5px; max-width: 360px; }
.ax-aviso { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--ax-raio-md); background: var(--ax-marca-bg); color: var(--ax-marca); font-size: 13px; }
.ax-aviso svg { width: 16px; height: 16px; margin-top: 2px; }
.ax-aviso--alerta { background: #fbebd7; color: #7c3a06; }
.ax-aviso--info { background: #e3edf7; color: #2563a8; }
.ax-aviso b { font-weight: 600; }
.ax-faixa { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; background: var(--ax-gray-100); color: var(--ax-texto-2); font-size: 12.5px; }
.ax-faixa svg { width: 15px; height: 15px; }

/* gráfico de barras e atalhos */
.ax-graficos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ax-graficos--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ax-graficos > .ax-card { margin: 0; }
.ax-grafico__titulo { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ax-texto-2); }
/* grafico-colunas */
.ax-colunas__series { list-style: none; margin: 0 0 10px; padding: 0; display: flex; gap: 16px; }
.ax-colunas__series li { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 500; color: var(--ax-texto-2); }
.ax-colunas__series i { width: 10px; height: 10px; border-radius: 3px; }
.ax-colunas__area { display: flex; align-items: stretch; gap: 12px; height: 170px; }
.ax-colunas__grupo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ax-colunas__colunas { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 6px; border-bottom: 1px solid var(--ax-borda); }
.ax-colunas__coluna { position: relative; width: clamp(14px, 40%, 34px); border-radius: var(--ax-raio-sm) var(--ax-raio-sm) 0 0; }
.ax-colunas__coluna span { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 3px; font-family: var(--ax-mono); font-size: 10px; color: var(--ax-texto-2); white-space: nowrap; }
.ax-colunas__rotulo { text-align: center; font-size: 11.5px; font-weight: 500; color: var(--ax-texto-2); }
/* grafico-barras (horizontal) */
.ax-barras { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ax-barras__item { display: grid; grid-template-columns: minmax(90px, 40%) 1fr auto; align-items: center; gap: 12px; }
.ax-barras__rotulo { font-size: 13px; color: var(--ax-texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-barras__trilha { height: 12px; border-radius: 999px; background: var(--ax-gray-100); overflow: hidden; }
.ax-barras__barra { display: block; height: 100%; border-radius: 999px; }
.ax-barras__valor { font-family: var(--ax-mono); font-size: 13px; font-weight: 600; color: var(--ax-texto); min-width: 28px; text-align: right; white-space: nowrap; }
/* grafico-donut */
.ax-donut { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ax .ax-donut__svg { width: 132px; height: 132px; flex-shrink: 0; }
.ax-donut__base { stroke: var(--ax-gray-100); }
.ax-donut__numero { font-family: var(--ax-fonte-display); font-weight: 800; fill: var(--ax-texto); text-anchor: middle; }
.ax-donut__centro { font-size: 3.2px; fill: var(--ax-texto-3); text-anchor: middle; text-transform: uppercase; letter-spacing: 0.1em; }
.ax-donut__legenda { list-style: none; margin: 0; padding: 0; flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ax-donut__legenda li { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: var(--ax-raio-sm); font-size: 13px; }
.ax-donut__legenda i { width: 12px; height: 12px; flex-shrink: 0; border-radius: var(--ax-raio-sm); }
.ax-donut__legenda span { flex: 1; min-width: 0; color: var(--ax-texto-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-donut__legenda b { font-family: var(--ax-mono); font-weight: 600; color: var(--ax-texto); white-space: nowrap; }
.ax-atalhos { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.ax-atalho { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--ax-borda); border-radius: var(--ax-raio-md); background: var(--ax-surface-2); text-align: left; font-weight: 500; color: var(--ax-texto); }
.ax-atalho:hover { border-color: #cfd9d3; background: var(--ax-marca-bg); }
.ax-atalho .i { width: 34px; height: 34px; border-radius: 10px; background: var(--ax-marca-bg); color: var(--ax-marca); }
.ax-atalho .chev { margin-left: auto; color: var(--ax-texto-3); width: 16px; height: 16px; }

/* agenda: grade do dia (blocos de 15 minutos) */
.ax-dia { display: grid; grid-template-columns: 52px 1fr; }
.ax-dia__hora { font-size: 11px; color: var(--ax-texto-3); font-variant-numeric: tabular-nums; padding: 0 8px 0 0; text-align: right; height: 22px; line-height: 1; transform: translateY(-5px); }
.ax-dia__hora.cheia { color: var(--ax-texto); font-weight: 600; font-size: 12px; }
.ax-dia__slot { border-top: 1px solid #f1efe8; height: 22px; position: relative; }
.ax-dia__slot.cheia { border-top-color: var(--ax-borda); }
.ax-dia__bloco { position: absolute; left: 6px; right: 6px; top: 2px; z-index: 2; border-radius: 6px; background: var(--ax-marca-bg); border-left: 3px solid var(--ax-marca); padding: 4px 8px; font-size: 12px; line-height: 1.25; overflow: hidden; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ax-dia__bloco b { font-weight: 600; }
.ax-dia__bloco span { color: var(--ax-texto-2); }
.ax-dia__agora { position: absolute; left: 0; right: 0; height: 2px; background: var(--ax-erro); z-index: 3; }
.ax-dia__agora::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ax-erro); }

/* hub de módulos */
.ax-hub { display: grid; gap: 14px; }
.ax-hub__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.ax-hub__card { text-align: left; color: var(--ax-texto); background: var(--ax-surface); border: 1px solid var(--ax-borda); border-radius: var(--ax-raio-lg); padding: 18px; display: grid; gap: 10px; align-content: start; box-shadow: var(--ax-sombra); transition: transform 120ms ease, border-color 120ms ease; }
.ax-hub__card:hover { transform: translateY(-2px); border-color: #cfd9d3; }
.ax-hub__card .i { width: 44px; height: 44px; border-radius: 12px; background: var(--ax-marca-bg); color: var(--ax-marca); }
.ax-hub__card .i svg { width: 22px; height: 22px; }
.ax-hub__card b { font-family: var(--ax-fonte-display); font-size: 17px; }
.ax-hub__card p { margin: 0; font-size: 12.5px; color: var(--ax-texto-2); }

/* TV: prévia dentro da recepção */
.ax-tv { background: linear-gradient(165deg, #0d1f18, #0a1712); color: #e9f5ee; border-radius: var(--ax-raio-lg); padding: 18px 20px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; min-height: 240px; }
.ax-tv::after { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 0%, rgba(111, 208, 168, 0.14), transparent 70%); pointer-events: none; }
.ax-tv__topo { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.ax-tv__destaque { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 10px 0; }
.ax-tv__chamando { font-size: 12px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: #6fd0a8; animation: axPisca 1.4s ease-in-out infinite; }
.ax-tv__paciente { font-family: var(--ax-fonte-display); font-size: 30px; font-weight: 700; line-height: 1.05; color: #fff; text-wrap: balance; }
.ax-tv__prof { font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.ax-tv__sala { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 18px; border-radius: 14px; font-size: 18px; font-weight: 700; color: #6fd0a8; background: rgba(111, 208, 168, 0.08); border: 2px solid rgba(111, 208, 168, 0.4); box-shadow: 0 0 40px rgba(111, 208, 168, 0.16); }
.ax-tv__sala svg { width: 20px; height: 20px; }
.ax-tv--previa { align-self: start; min-height: 0; }
.ax-tv--previa .ax-tv__destaque { flex: 0 0 auto; padding: 14px 0 8px; }
@keyframes axPisca { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* TV: a tela inteira (pages/tv) */
.ax-tvp { position: relative; overflow: hidden; min-height: 100%; margin: -22px -24px -28px; padding: 26px 32px; background: var(--ax-ink); color: #fff; display: flex; flex-direction: column; gap: 18px; }
.ax-tvp__blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.ax-tvp__blob--a { width: 46%; height: 70%; left: -12%; bottom: -25%; background: radial-gradient(circle at 35% 35%, rgba(111, 208, 168, 0.16), transparent 65%); }
.ax-tvp__blob--b { width: 38%; height: 60%; right: -10%; top: -18%; background: radial-gradient(circle at 60% 40%, rgba(46, 125, 91, 0.22), transparent 70%); }
.ax-tvp__blob--c { width: 24%; height: 40%; right: 16%; bottom: -10%; background: radial-gradient(circle at 50% 50%, rgba(122, 184, 155, 0.1), transparent 70%); }
.ax-tvp > * { position: relative; }
.ax-tvp__topo { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; color: rgba(255, 255, 255, 0.75); font-size: 14px; }
.ax-tvp__relogio { font-family: var(--ax-mono); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ax-tvp__destaque { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 10px 0 18px; }
.ax-tvp__chamando { font-size: 18px; font-weight: 700; letter-spacing: 0.32em; color: #6fd0a8; animation: axPisca 1.4s ease-in-out infinite; }
.ax-tvp__paciente { font-family: var(--ax-fonte-display); font-size: clamp(34px, 6cqw, 56px); font-weight: 700; line-height: 1.05; text-wrap: balance; }
.ax-tvp__prof { font-size: 18px; color: rgba(255, 255, 255, 0.72); }
.ax-tvp__sala { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 28px; border-radius: 18px; font-size: 26px; font-weight: 700; color: #6fd0a8; background: rgba(111, 208, 168, 0.08); border: 2px solid rgba(111, 208, 168, 0.4); box-shadow: 0 0 80px rgba(111, 208, 168, 0.16); }
.ax-tvp__sala svg { width: 26px; height: 26px; }
.ax-tvp__historico { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 14px; }
.ax-tvp__historico-titulo { display: block; margin-bottom: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.5); }
.ax-tvp__lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.ax-tvp__item { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; }
.ax-tvp__item-topo { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.ax-tvp__item-hora { font-family: var(--ax-mono); font-variant-numeric: tabular-nums; }
.ax-tvp__item-paciente { font-family: var(--ax-fonte-display); font-size: 17px; font-weight: 700; }
.ax-tvp__item-sala { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #6fd0a8; }
.ax-tvp__item-sala svg { width: 15px; height: 15px; }
.ax-tvp__rodape { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 12px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.ax-tvp__rodape img { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }

/* portal do paciente (layout real: header horizontal, miolo centrado; no celular, abas embaixo) */
.ax-portal { position: relative; margin: -22px -24px -28px; min-height: 100%; display: flex; flex-direction: column; background: var(--ax-bg); }
.ax-portal__topo { display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 20px; background: var(--ax-surface); box-shadow: 0 6px 18px -12px rgba(35, 33, 26, 0.16); position: sticky; top: -22px; z-index: 4; }
.ax-portal__logo { height: 26px; width: auto; }
.ax-portal__nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.ax-portal__aba { padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ax-texto-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.ax-portal__aba:hover { color: var(--ax-marca); }
.ax-portal__aba.ativa { background: var(--ax-marca); color: #fff; font-weight: 600; }
.ax-portal__dir { display: flex; align-items: center; gap: 8px; }
.ax-portal__usuario { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--ax-marca-bg); color: var(--ax-marca); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ax-portal__usuario svg { width: 15px; height: 15px; }
.ax-portal__sair { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--ax-borda); border-radius: 999px; background: var(--ax-surface); color: var(--ax-texto); font-size: 12.5px; font-weight: 500; }
.ax-portal__sair svg { width: 15px; height: 15px; }
.ax-portal__corpo { flex: 1; padding: 22px 24px 28px; }
.ax-portal__miolo { max-width: 720px; margin: 0 auto; display: grid; gap: 16px; }
.ax-portal__titulo { margin: 0; font-family: var(--ax-fonte-display); font-size: 28px; font-weight: 800; letter-spacing: -0.025em; color: var(--ax-texto); }
.ax-portal__sub { margin: -8px 0 0; font-size: 13.5px; color: var(--ax-texto-2); }
.ax-portal__abas-mobile { display: none; }
.ax-portal-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ax-borda); flex-wrap: wrap; }
.ax-portal-linha:last-child { border-bottom: 0; }
.ax-portal-linha__acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.ax-portal-item { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.ax-portal-item__data { font-size: 15px; font-weight: 600; color: var(--ax-texto); }
.ax-portal-item__servico { font-size: 13.5px; font-weight: 500; color: var(--ax-marca); }
.ax-portal-item__com { font-size: 13px; color: var(--ax-texto-2); }
.ax-portal-item .ax-chip { margin-top: 4px; }
.ax-aval { display: grid; gap: 12px; padding-top: 10px; border-top: 1px solid var(--ax-borda); margin-top: 6px; }
.ax-aval__linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; font-weight: 500; color: var(--ax-texto); }
.ax-estrelas { display: inline-flex; gap: 2px; }
.ax-estrelas button, .ax-estrelas i { border: 0; background: transparent; padding: 0; font-size: 24px; line-height: 1; color: #e2e8e3; font-style: normal; cursor: pointer; }
.ax-estrelas .acesa { color: #e2a93b; }

/* modal de detalhe do atendimento (agenda-detalhe) */
.ax-modal--largo { width: min(620px, 94%); }
.ax-det { display: grid; gap: 16px; }
.ax-det__quem { display: grid; gap: 12px; }
.ax-det__pessoa { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--ax-surface-2); border: 1px solid var(--ax-borda); border-radius: var(--ax-raio-md); }
.ax-det__pessoa--prof { background: var(--ax-surface); }
.ax-det__dados { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ax-det__rotulo { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ax-texto-3); }
.ax-det__nome { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; font-weight: 600; color: var(--ax-texto); }
.ax-det__nome--prof { font-size: 15px; }
.ax-det__meta { font-size: 13px; color: var(--ax-texto-2); }
.ax-det__servico { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ax-det__servico > span { display: flex; flex-direction: column; gap: 3px; }
.ax-det__valor { font-size: 14px; font-weight: 600; color: var(--ax-texto); }
.ax-jornada { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; }
.ax-jornada__passo { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--ax-texto-3); position: relative; text-align: center; }
.ax-jornada__passo::before { content: ''; position: absolute; top: 12px; left: -50%; right: 50%; height: 2px; background: var(--ax-gray-200); z-index: 0; }
.ax-jornada__passo:first-child::before { display: none; }
.ax-jornada__passo.feito::before { background: var(--ax-marca); }
.ax-jornada__ponto { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: var(--ax-surface); border: 2px solid var(--ax-gray-200); display: grid; place-items: center; color: #fff; }
.ax-jornada__ponto svg { width: 13px; height: 13px; }
.ax-jornada__passo.feito .ax-jornada__ponto { background: var(--ax-marca); border-color: var(--ax-marca); }
.ax-jornada__passo.feito { color: var(--ax-texto); font-weight: 500; }
.ax-jornada__passo.atual { color: var(--ax-marca); font-weight: 600; }
.ax-jornada__passo.falta .ax-jornada__ponto { background: var(--ax-erro); border-color: var(--ax-erro); }
.ax-det__acoes { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }

/* botão de volta das "outras portas" (portal e TV são páginas próprias no produto) */
.ax-voltar { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 8px; border-radius: 999px; border: 1px solid var(--ax-marca); background: var(--ax-marca-bg); color: var(--ax-marca); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ax-voltar svg { width: 15px; height: 15px; }
.ax-voltar:hover { background: var(--ax-surface); }
.ax-voltar--escuro { border-color: rgba(111, 208, 168, 0.5); background: rgba(111, 208, 168, 0.1); color: #6fd0a8; }
.ax-tvp__topo-dir { display: inline-flex; align-items: center; gap: 12px; }

/* toast do painel */
.ax-toast { position: absolute; right: 18px; bottom: 16px; z-index: 20; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--ax-ink); color: #eff7f2; font-size: 13px; font-weight: 500; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25); max-width: min(360px, 90%); }
.ax-toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #6fd0a8; flex-shrink: 0; }
.ax-toast.some { animation: axToastSome 300ms ease forwards; }
@keyframes axToastSome { to { opacity: 0; transform: translateY(6px); } }

/* -------------------- movimentos das cenas (só com .no-ar) -------------------- */
/* Estado padrão: tudo no estado final, sem animação. Com .no-ar na tela, os elementos
   marcados ganham os movimentos, com o atraso em --d e a duração em --t. */

.ax-tela .chip--passa, .ax-tela .flutua { display: none; }
.ax-tela .cursor { display: none; }
.ax-tela .digita { clip-path: none; }

.ax-tela.no-ar .anim { opacity: 0; animation: aparece 520ms cubic-bezier(0.2, 0, 0, 1) both; animation-delay: var(--d, 0s); }
.ax-tela.no-ar .pop { opacity: 0; animation: pop 640ms cubic-bezier(0.2, 0, 0, 1) both; animation-delay: var(--d, 0s); }
.ax-tela.no-ar .flutua { display: inline-flex; opacity: 0; animation: flutua var(--t, 2.6s) ease both; animation-delay: var(--d, 0s); }
.ax-tela.no-ar .destaca { animation: axDestaca 700ms ease both; animation-delay: var(--d, 0s); }
.ax-tela.no-ar .aperta { animation: aperta 640ms ease both; animation-delay: var(--d, 0s); }
.ax-tela.no-ar .digita { clip-path: inset(0 100% 0 0); animation: digita var(--t, 1.4s) steps(26, end) both; animation-delay: var(--d, 0s); }
.ax-tela.no-ar .cursor { display: inline-block; width: 2px; height: 1em; background: var(--ax-marca); vertical-align: text-bottom; margin-left: 2px; animation: piscaCursor 900ms steps(2, start) infinite, some 1ms linear both; animation-delay: 0s, var(--d, 6s); }
.ax-tela.no-ar .troca .chip--passa { display: inline-flex; opacity: 0; animation: passa var(--t, 2s) ease both; animation-delay: var(--d, 0s); }
.ax-tela.no-ar .troca .chip--fica { opacity: 0; animation: aparece 420ms ease both; animation-delay: var(--d, 0s); }
.ax-tela.no-ar .ax-barra i { transform: scaleY(0); animation: cresceBarra 900ms cubic-bezier(0.2, 0, 0, 1) both; animation-delay: var(--d, 0.6s); }
.ax-tela.no-ar .ax-estrelas .acesa { color: #e2e8e3; animation: acende 300ms ease both; animation-delay: var(--d, 0s); }

.troca { position: relative; display: inline-grid; }
.troca > * { grid-area: 1 / 1; justify-self: end; }

@keyframes axDestaca { to { background: var(--ax-marca-bg); border-radius: 8px; } }
@keyframes aparece { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@keyframes pop { 0% { opacity: 0; transform: scale(0.7); } 60% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }

@keyframes passa { 0% { opacity: 0; transform: translateY(4px); } 12% { opacity: 1; transform: none; } 86% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-4px); } }

@keyframes flutua { 0% { opacity: 0; transform: translateY(10px); } 12% { opacity: 1; transform: none; } 84% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }

@keyframes aperta { 0%, 100% { transform: none; } 40% { transform: scale(0.94); filter: brightness(0.9); } }

@keyframes digita { to { clip-path: inset(0 0 0 0); } }

@keyframes piscaCursor { to { visibility: hidden; } }

@keyframes some { to { opacity: 0; } }

@keyframes acende { from { color: #E2E8E3; transform: scale(0.8); } to { color: #E2A93B; transform: scale(1); } }


/* --------------------------- linha do tempo (site) --------------------------- */

.demo__passos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.demo__passo {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 12px 14px 14px;
  border: 1px solid var(--borda);
  border-radius: 14px;
  background: var(--cartao);
  text-align: left;
  font-family: var(--fonte-texto);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transicao), box-shadow var(--transicao);
}
.demo__passo:hover { border-color: var(--verde-borda); }
.demo__passo b { font-size: 0.9rem; font-weight: 650; color: var(--tinta); line-height: 1.2; }
.demo__passo span { font-size: 0.76rem; font-weight: 700; color: var(--verde-escuro); font-variant-numeric: tabular-nums; }
.demo__passo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--verde), var(--verde-vivo)); transform: scaleX(0); transform-origin: left; }
.demo__passo.ativo { border-color: var(--verde-borda); box-shadow: var(--sombra-s); }
.demo__passo.ativo::after { animation: progresso var(--dur, 6s) linear both; }
.demo.pausado .demo__passo.ativo::after { animation-play-state: paused; }
.demo.parado .demo__passo.ativo::after { transform: scaleX(1); animation: none; }
@keyframes progresso { to { transform: scaleX(1); } }

.demo__legenda { max-width: 64ch; margin: 18px auto 0; text-align: center; color: var(--texto); font-size: 1.02rem; min-height: 3.3em; transition: opacity 260ms ease; }
.demo__legenda.trocando { opacity: 0; }
.demo__nota { text-align: center; font-size: 0.86rem; color: var(--suave); margin: 10px 0 0; }
.demo__nota b { font-weight: 650; color: var(--texto); }

/* ------------------------------- responsivo ------------------------------- */

@media (max-width: 1020px) {
  .demo__passos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ax-grade--2, .ax-grade--3, .ax-grade--igual { grid-template-columns: 1fr; }
  .ax-kpis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-graficos, .ax-graficos--3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 780px) {
  .ax { grid-template-columns: 1fr; height: 600px; border-radius: var(--raio-m); }
  .ax__lateral { position: absolute; inset: 0 auto 0 0; width: min(280px, 86%); z-index: 40; transform: translateX(-100%); transition: transform 220ms ease; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0); }
  .ax.menu-aberto .ax__lateral { transform: none; box-shadow: 0 0 0 100vmax rgba(22, 36, 30, 0.45); }
  .ax__marca { justify-content: space-between; padding: 0 10px 0 20px; }
  .ax__fechar-menu { display: inline-flex; }
  .ax__hamburguer { display: inline-flex; }
  .ax__logo-topo { display: inline-flex; }
  .ax__topo { padding: 0 10px; }
  .ax__topo-dir { gap: 6px; }
  .ax__ferramentas { gap: 6px; }
  /* modo app, como no produto: sobram hambúrguer, seletores compactos, Minha sala e o avatar */
  .ax__divisor, .ax__relogio-wrap, .ax-perfil__usuario, .ax-perfil__caret, .ax-gatilho--sala .ax-gatilho__texto, .ax-gatilho--sala .ax-gatilho__caret, .ax-gatilho--clinica .ax-gatilho__atual { display: none; }
  .ax-gatilho { padding: 0 8px; }
  .ax-perfil { padding: 0 2px; }
  .ax-pop { right: 8px; left: 8px; min-width: 0; }
  .ax-modulos__grade { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ax__conteudo { padding: 12px 12px 20px; }
  .ax-card { padding: 16px; }
  .ax-cab h2 { font-size: 22px; }
  .ax-form { grid-template-columns: 1fr; }
  .ax-kpis, .ax-kpis--3, .ax-kpis--4, .ax-kpis--5, .ax-kpis--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ax-det__servico { grid-template-columns: 1fr; }
  .ax-ident { flex-wrap: wrap; }
  .ax-ident__trocar { flex-basis: 100%; justify-content: center; }
  .ax-tvp { margin: -12px -12px -20px; padding: 18px 16px; }
  .ax-tvp__paciente { font-size: 30px; }
  .ax-tvp__sala { font-size: 18px; padding: 8px 18px; }
  .ax-portal { margin: -12px -12px -20px; }
  .ax-portal__topo { padding: 0 14px; top: -12px; }
  .ax-portal__nav, .ax-portal__usuario { display: none; }
  .ax-portal__corpo { padding: 16px 14px 24px; }
  .ax-portal__sair { display: none; }
  .ax-portal__titulo { font-size: 22px; }
  .ax-portal__abas-mobile { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: sticky; bottom: -20px; z-index: 3; margin-top: auto; background: var(--ax-surface); border-top: 1px solid var(--ax-borda); }
  .ax-portal__aba-m { display: grid; justify-items: center; gap: 3px; padding: 8px 1px 9px; border: 0; background: transparent; font-size: 9.5px; min-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; color: var(--ax-texto-3); }
  .ax-portal__aba-m svg { width: 18px; height: 18px; }
  .ax-portal__aba-m.ativa { color: var(--ax-marca); }
  .ax-barra-agenda__dir { margin-left: 0; }
  .ax-kpi { padding: 12px; }
  .ax-kpi__rotulo { font-size: 11px; }
  .ax-kpis--moeda { grid-template-columns: minmax(0, 1fr); }
  .ax-colunas__area { height: 140px; }
  .ax__logo-topo img { height: 22px; }
  .ax-cab__acoes { width: 100%; }
  .ax-cab__acoes .ax-btn { white-space: normal; }
  .ax-linha { flex-wrap: wrap; gap: 8px 12px; }
  .ax-linha__txt { flex: 1 1 55%; }
  .ax-linha__dir { flex: 1 1 100%; max-width: 100%; justify-content: flex-start; }
  .ax-filtro { flex-wrap: wrap; border-radius: 16px; }
  .ax-ferramentas-lista .ax-input--busca { flex-basis: 100%; }
  .ax-barra-agenda__data { font-size: 16px; }
  .ax-tabela th, .ax-tabela td { padding-left: 6px; padding-right: 6px; }
  .demo__passos { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .demo__passos::-webkit-scrollbar { display: none; }
  .demo__passo { flex: 0 0 150px; scroll-snap-align: center; }
  .demo__legenda { min-height: 4.4em; font-size: 0.96rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ax-tela.no-ar .anim, .ax-tela.no-ar .pop, .ax-tela.no-ar .destaca, .ax-tela.no-ar .aperta, .ax-tela.no-ar .digita,
  .ax-tela.no-ar .troca .chip--fica, .ax-tela.no-ar .ax-barra i, .ax-tela.no-ar .ax-estrelas .acesa { animation-delay: 0s !important; }
  .ax-tela.no-ar .flutua, .ax-tela.no-ar .troca .chip--passa, .ax-tela.no-ar .cursor { display: none; }
  .ax-tv__chamando::before { animation: none; }
}
