/* Simulações de uso real (páginas de produto) */
.ud { position: relative; }
.ud__janela { border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--linha-forte); box-shadow: 0 30px 60px -24px rgba(6, 42, 94, .4); }
.ud__barra { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; background: #F3F5F8; border-bottom: 1px solid var(--linha); }
.ud__barra i { width: 9px; height: 9px; border-radius: 50%; background: #D7DEE7; flex: none; }
.ud__barra > span { margin-left: 8px; font-size: 12.5px; font-weight: 600; color: var(--suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ud__barra button { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px; height: 25px; padding: 0 10px; /* 25: o quadro da demo é reduzido ~97%; na tela fica ≥ 24 px (WCAG 2.5.8) */ border: 1px solid var(--linha-forte); border-radius: 999px; background: #fff; color: var(--tinta-2); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.ud__barra button:hover { color: var(--azul); border-color: var(--azul); }
.ud__ao-vivo { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 11px; font-weight: 700; color: #B91C1C; letter-spacing: .04em; }
.ud__ao-vivo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #B91C1C; animation: ud-pisca 1.2s infinite; }
.ud.pausado .ud__ao-vivo { color: var(--suave); } .ud.pausado .ud__ao-vivo::before { background: var(--suave); animation: none; }
.ud__barra .ud__ao-vivo + button { margin-left: 10px; }
@keyframes ud-pisca { 50% { opacity: .3; } }
.ud__palco { position: relative; height: 430px; overflow: hidden; }
.ud__tela { padding: 20px; transform-origin: 50% 0; transition: transform .9s cubic-bezier(.65, 0, .35, 1); display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--tinta-2); }
.ud__cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 22px; height: 22px; opacity: 0; pointer-events: none; transform: translate(80%, 90%); transition: transform .75s cubic-bezier(.3, .8, .3, 1), opacity .3s; }
.ud__cursor svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.ud__cursor::after { content: ""; position: absolute; left: -8px; top: -8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(1, 98, 204, .35); transform: scale(0); }
.ud__cursor.clique::after { animation: ud-clique .45s ease-out; }
@keyframes ud-clique { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.ud__carregando { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--marinho, #062A5E); color: #fff; font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; pointer-events: none; }
.ud__carregando.on { opacity: 1; transform: none; }
.ud__carregando i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: ud-gira .8s linear infinite; flex: none; }
@keyframes ud-gira { to { transform: rotate(360deg); } }

/* Elementos que aparecem durante a demonstração */
.ud [data-oculto]:not(.on) { display: none !important; }
.ud [data-oculto].on { animation: ud-entra .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes ud-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ud .pressionado { transform: scale(.95); }
.ud .destaque { box-shadow: 0 0 0 3px var(--azul), 0 12px 24px -10px rgba(1, 98, 204, .5) !important; border-radius: 12px; }
.ud .pulso { animation: ud-pulso .8s ease-out 2; }
@keyframes ud-pulso { 50% { transform: scale(1.15); color: var(--azul); } }

/* Kit de interface */
.ud-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--linha); }
.ud-cab b { color: var(--marinho, #062A5E); font-size: 15.5px; }
.ud-cab > span { font-size: 12.5px; color: var(--suave); }
.ud-rotulo { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--suave); margin: 2px 0 6px; }
.ud-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--azul); color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; transition: transform .15s, box-shadow .2s, background .2s; }
.ud-btn.ativo { box-shadow: 0 0 0 5px rgba(1, 98, 204, .15); }
.ud-btn--sec { background: #fff; color: var(--azul); border: 1.5px solid var(--azul); }
.ud-btn--grande { width: 100%; justify-content: center; min-height: 48px; font-size: 15px; }
.ud-in { display: inline-flex; align-items: center; min-width: 54px; height: 30px; padding: 0 10px; border: 1px solid var(--linha-forte); border-radius: 8px; background: #fff; font-weight: 600; color: var(--tinta); transition: border-color .2s, box-shadow .2s; }
.ud-in--largo { display: flex; width: 100%; height: 38px; }
.ud-in.foco { border-color: var(--azul); box-shadow: 0 0 0 4px rgba(1, 98, 204, .12); }
.ud-in.foco::after { content: ""; width: 2px; height: 16px; margin-left: 2px; background: var(--azul); animation: ud-pisca 1s steps(1) infinite; }
.ud-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; transition: background .3s, color .3s; }
.ud-badge.ok { background: #DCFCE7; color: #166534; }
.ud-badge.alerta { background: #FEF3C7; color: #92400E; }
.ud-badge.erro { background: #FEE2E2; color: #991B1B; }
.ud-badge.alerta.ok, .ud-badge.erro.ok { background: #DCFCE7; color: #166534; }
.ud-tab { width: 100%; border-collapse: collapse; font-size: 13px; }
.ud-tab th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--suave); padding: 6px 8px; border-bottom: 1px solid var(--linha); }
.ud-tab td { padding: 8px; border-bottom: 1px solid var(--linha); color: var(--tinta); vertical-align: middle; }
.ud-tab tr.on { animation: ud-entra .45s; }
.ud-card { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--linha); background: var(--fundo-suave); }
.ud-linha { display: flex; gap: 10px; align-items: center; }
.ud-linha strong, .ud-titulo { display: block; color: var(--marinho, #062A5E); }
.ud-titulo { font-size: 16px; margin-bottom: 6px; }
.ud-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--azul-100); color: var(--azul); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.ud-toast { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 14px; background: #ECFDF3; color: #067647; font-size: 13px; }
.ud-toast > i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #067647; color: #fff; font-style: normal; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.ud-toast strong { display: block; color: #054F31; font-size: 14px; }
.ud-dado { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 5px 0; border-bottom: 1px dashed var(--linha); font-size: 13px; }
.ud-dado b { color: var(--tinta); }
.ud-dado--total { border-bottom: 0; font-size: 14px; } .ud-dado--total b { color: var(--azul); }
.ud-duas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ud-duas > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ud-opcoes { display: grid; gap: 6px; }
.ud-opcoes span { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--linha); border-radius: 12px; background: #fff; font-weight: 600; color: var(--tinta); transition: border-color .2s, background .2s; }
.ud-opcoes small { font-weight: 500; color: var(--suave); }
.ud-opcoes span.ativo { border-color: var(--azul); background: var(--azul-50); }
.ud-opcoes--peq span { padding: 8px 10px; font-size: 12.5px; }
.ud-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.ud-chips span { padding: 7px 12px; border: 1.5px solid var(--linha); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--tinta-2); transition: all .2s; }
.ud-chips span.ativo { border-color: var(--azul); background: var(--azul); color: #fff; }
.ud-chips .ud-ocupado { color: var(--linha-forte); text-decoration: line-through; }
.ud-onda { display: flex; align-items: center; gap: 3px; height: 46px; }
.ud-onda i { flex: 1; height: 6px; border-radius: 3px; background: var(--azul-200); }
.ud-onda.gravando i { background: var(--azul); animation: ud-onda .9s ease-in-out infinite alternate; }
.ud-onda.gravando i:nth-child(3n) { animation-delay: -.3s; } .ud-onda.gravando i:nth-child(3n+1) { animation-delay: -.6s; }
.ud-onda.parada i { animation: none; background: var(--azul-200); }
@keyframes ud-onda { from { height: 6px; } to { height: 42px; } }
.ud-metricas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ud-metricas > div { padding: 10px; border-radius: 12px; border: 1px solid var(--linha); background: var(--fundo-suave); }
.ud-metricas span { display: block; font-size: 11px; font-weight: 700; color: var(--suave); text-transform: uppercase; letter-spacing: .03em; }
.ud-metricas strong { font-size: 26px; color: var(--marinho, #062A5E); font-variant-numeric: tabular-nums; }
.ud-texto { margin: 0; font-size: 13.5px; line-height: 1.7; }
.ud-texto mark { background: #DCFCE7; color: #14532D; padding: 0 3px; border-radius: 4px; }
.ud-texto mark.erro { background: #FEF3C7; color: #92400E; }
.ud-celular { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 22px; border: 6px solid #0E1624; background: #fff; }
.ud-hora { margin: 0; text-align: center; } .ud-hora strong { display: block; font-size: 34px; color: var(--marinho, #062A5E); } .ud-hora span { font-size: 12px; color: var(--suave); }
.ud-status { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #ECFDF3; color: #067647; font-size: 12.5px; font-weight: 600; }
.ud-status i { font-style: normal; }
.ud-comprovante { padding: 10px; border-radius: 12px; background: var(--azul-50); border: 1px dashed var(--azul-200); font-size: 12px; color: var(--suave); }
.ud-comprovante strong { display: block; color: var(--marinho, #062A5E); font-size: 14px; }
.ud-painel { padding: 14px; border-radius: 16px; background: var(--fundo-suave); border: 1px solid var(--linha); }
.ud-kpi { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--linha); }
.ud-kpi strong { display: inline-block; font-size: 26px; color: var(--marinho, #062A5E); }
.ud-linha-nova { padding: 8px 10px; border-radius: 10px; background: #fff; border-left: 3px solid #16A34A; font-size: 12.5px; }
.ud-aviso { padding: 9px 12px; border-radius: 10px; background: var(--azul-50); color: var(--azul); font-size: 12.5px; font-weight: 600; }
.ud-pergunta { margin: 0 0 10px; font-weight: 600; color: var(--tinta); font-size: 15px; }
.ud-likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ud-likert span { padding: 8px 4px; text-align: center; border: 1.5px solid var(--linha); border-radius: 10px; background: #fff; font-size: 11.5px; font-weight: 600; transition: all .2s; }
.ud-likert span.ativo { border-color: var(--azul); background: var(--azul); color: #fff; }
.ud-progresso { margin: 12px 0 0; font-size: 12px; color: var(--suave); }
.ud-progresso i { display: block; height: 6px; margin-bottom: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--azul) 40%, var(--linha) 40%); transition: background .6s; }
.ud-progresso i.cheio { background: var(--azul); }
.ud-qr { display: block; width: 96px; height: 96px; border-radius: 10px; background: #fff url("/assets/img/qr-whatsapp.svg") center / 84% no-repeat; border: 1px solid var(--linha); flex: none; }
.ud-qr--peq { width: 110px; height: 110px; }
.ud-pix { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--linha); }
.ud-pix em { display: block; margin-top: 6px; font-style: normal; font-weight: 700; color: #B45309; }
.ud-pix em.pago { color: #067647; }
.ud-doc p { margin: 0 0 8px; font-size: 13px; line-height: 1.6; color: var(--tinta); }
.ud-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.ud-selo { padding: 12px 14px; border-radius: 14px; border: 1.5px solid #16A34A; background: #F0FDF4; font-size: 12.5px; color: #166534; }
.ud-selo strong { display: block; font-size: 14px; color: #14532D; }
.ud-scanner { position: relative; display: flex; align-items: center; justify-content: center; height: 220px; border-radius: 20px; background: #0E1624; overflow: hidden; }
.ud-scanner::before { content: ""; position: absolute; inset: 30px; border: 3px solid rgba(255, 255, 255, .6); border-radius: 14px; }
.ud-laser { position: absolute; left: 34px; right: 34px; top: 30px; height: 2px; background: #22D3EE; box-shadow: 0 0 10px #22D3EE; opacity: 0; }
.ud-scanner.lendo .ud-laser { opacity: 1; animation: ud-laser 1.2s ease-in-out infinite alternate; }
@keyframes ud-laser { to { top: calc(100% - 32px); } }
.ud-precos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ud-precos > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 1px solid var(--linha); }
.ud-precos span { font-size: 12px; color: var(--suave); }
.ud-precos strong { font-size: 24px; color: var(--marinho, #062A5E); }
.ud-precos em { font-style: normal; }
.ud-precos__ideal { background: var(--azul-50); border-color: var(--azul-200) !important; } .ud-precos__ideal strong { color: var(--azul); }
.ud-comanda p { margin: 4px 0 0; font-weight: 600; color: var(--tinta); font-size: 13px; }
.ud-painel--escuro { background: #0E1624; border-color: #0E1624; display: flex; flex-direction: column; gap: 8px; }
.ud-painel--escuro .ud-rotulo { color: #94A3B8; }
.ud-pedido { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #fff; border-left: 4px solid #F59E0B; font-size: 12.5px; }
.ud-pedido strong { font-size: 16px; color: var(--tinta); }
.ud-pedido em { font-style: normal; font-weight: 700; color: #B45309; }
.ud-pedido.preparo { border-left-color: var(--azul); } .ud-pedido.preparo em { color: var(--azul); }
.ud-pedido--velho { opacity: .7; border-left-color: #DC2626; } .ud-pedido--velho em { color: #DC2626; }
.ud-whats { padding: 12px; border-radius: 16px; background: #E7F6EC; }
.ud-balao { margin: 0 0 8px; padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: #fff; font-size: 12.5px; line-height: 1.5; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }

@media (max-width: 640px) {
  .ud__palco { height: 470px; }
  .ud__tela { padding: 14px; font-size: 13px; }
  .ud-duas { grid-template-columns: minmax(0, 1fr); }
  .ud-tab { font-size: 11.5px; } .ud-tab td, .ud-tab th { padding: 6px 4px; }
  .ud-in { min-width: 40px; padding: 0 6px; }
  .ud-metricas strong { font-size: 20px; }
  .ud-likert span { font-size: 10px; padding: 7px 2px; }
  .ud-scanner { height: 150px; }
  .ud-precos strong { font-size: 19px; }
  .ud__barra button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.ud__nota { margin-top: 10px; font-size: 0.78125rem; color: var(--suave); }

.ud-pix strong { display: block; color: var(--marinho, #062A5E); }
.ud-pix > span:last-child { font-size: 13px; }
.ud-tab tr.destaque { box-shadow: none !important; } .ud-tab tr.destaque td { background: var(--azul-50); }
.ud__ao-vivo { white-space: nowrap; }
@media (max-width: 640px) { .ud__barra > span { font-size: 11.5px; } .ud__ao-vivo { font-size: 0; gap: 0; } .ud__ao-vivo::before { width: 8px; height: 8px; } }

/* Deedo Cloud: arquivo enviado */
.ud-arquivo { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ud-arquivo strong { display: block; font-size: 13px; color: var(--tinta); overflow-wrap: anywhere; }
.ud-arquivo small { font-size: 12px; color: var(--suave); }
.ud-pdf { flex: none; width: 34px; height: 42px; border-radius: 6px; background: #FEE2E2; color: #B42318; font: 700 10px Inter, sans-serif; display: flex; align-items: center; justify-content: center; }
/* Deedo Lucro: margem abaixo do preço */
.ud-margem { display: block; margin-top: 6px; font-size: 12px; color: var(--suave); }
.ud-margem b { color: var(--tinta); }
/* celular: o botão Pausar fica só com o ícone */
@media (max-width: 640px) {
  .ud__barra button::before { content: "❚❚"; font-size: 8px; letter-spacing: -1px; }
  .ud__barra button[aria-pressed="true"]::before { content: "▶"; font-size: 9px; letter-spacing: 0; }
}

/* Versão de celular (tools/demos-cel.js): a tela de celular do sistema dentro do aparelho.
   Medidas em cqw da tela do aparelho (130cqw = largura de um celular de 390 px), para escalar junto. */
.ud--cel .celular__tela { background: #F1F5F9; }
.ud--cel .ud__palco { flex: 1; height: auto; min-height: 0; }
.ud--cel .ud__tela { padding: 0 5.33cqw 13cqw; gap: 4.03cqw; font-size: 4.68cqw; line-height: 1.4; color: #334155; }
.ud--cel .ud__carregando { left: 5.2cqw; right: 5.2cqw; bottom: 9.1cqw; padding: 3.38cqw 4.68cqw; gap: 3.38cqw; border-radius: 3.9cqw; font-size: 4.29cqw; }
.ud--cel .ud__carregando i { width: 5.2cqw; height: 5.2cqw; }
/* toque de dedo no lugar do cursor */
.ud--cel .ud__cursor { width: 11.7cqw; height: 11.7cqw; margin: -5.85cqw 0 0 -5.85cqw; border-radius: 50%; background: rgba(15, 23, 42, .22); box-shadow: 0 0 0 1.04cqw rgba(255, 255, 255, .85); transition-duration: .5s, .25s; }
.ud--cel .ud__cursor::after { left: -2.6cqw; top: -2.6cqw; width: 16.9cqw; height: 16.9cqw; background: rgba(1, 98, 204, .4); }
/* kit da tela de celular */
.uc-bar { display: flex; align-items: center; gap: 3.9cqw; margin: 0 -5.33cqw; padding: 3.38cqw 5.33cqw; background: #fff; border-bottom: 1px solid #E2E8F0; }
.uc-bar > i { flex: none; width: 10.4cqw; height: 10.4cqw; border: 1px solid #CBD5E1; border-radius: 2.34cqw; display: flex; align-items: center; justify-content: center; font-style: normal; color: #475569; font-size: 4.68cqw; }
.uc-bar b { display: block; font-size: 5.72cqw; color: #0F172A; }
.uc-bar small { display: block; font-size: 3.9cqw; color: #64748B; }
.uc-abas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.08cqw; }
.uc-abas span { padding: 2.34cqw 0; border: 1px solid #E2E8F0; border-radius: 2.6cqw; background: #fff; text-align: center; font-size: 4.03cqw; color: #64748B; }
.uc-abas span.on { border-color: var(--marinho, #0B2559); color: var(--marinho, #0B2559); font-weight: 600; }
.uc-card { padding: 4.68cqw 5.33cqw; border: 1px solid #E2E8F0; border-radius: 4.68cqw; background: #fff; }
.uc-rot { display: block; font-size: 3.64cqw; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #64748B; }
.uc-nome { display: block; margin: 0.78cqw 0 2.08cqw; font-size: 5.72cqw; color: #0F172A; }
.uc-tit { display: block; font-size: 6.5cqw; line-height: 1.25; color: #0F172A; }
.uc-sub { display: block; font-size: 3.9cqw; color: #64748B; }
.uc-azul { color: var(--azul, #0162CC) !important; }
.uc-campo { display: flex; justify-content: space-between; align-items: center; gap: 2.6cqw; margin: 0; padding: 2.08cqw 0; font-size: 4.68cqw; }
.uc-campo > span:first-child { color: #475569; }
.uc-campo b { color: #0F172A; text-align: right; }
.ud--cel .ud-in { min-width: 19.5cqw; height: 11.7cqw; padding: 0 3.38cqw; border-radius: 2.6cqw; justify-content: flex-end; font-size: 4.94cqw; }
.ud--cel .ud-in.foco { border-color: var(--azul); box-shadow: 0 0 0 1.04cqw rgba(1, 98, 204, .18); }
.ud--cel .ud-badge:not(.ok):not(.erro) { background: #F1F5F9; color: #64748B; }
.ud--cel .ud-badge { padding: 0.91cqw 3.38cqw; font-size: 3.9cqw; }
.ud--cel .ud-btn { min-height: 13cqw; padding: 0 5.2cqw; font-size: 4.68cqw; }
.ud--cel .uc-largo { align-self: stretch; justify-content: center; }
.ud--cel .ud-toast { padding: 3.64cqw 4.68cqw; gap: 3.38cqw; border-radius: 4.68cqw; font-size: 4.03cqw; }
.ud--cel .ud-toast > i { width: 8.32cqw; height: 8.32cqw; font-size: 3.9cqw; }
.ud--cel .ud-toast strong { font-size: 4.68cqw; }
.uc-kpi strong { display: block; font-size: 7.8cqw; color: #0F172A; margin: 0.78cqw 0 0.26cqw; }
.uc-kpi > span { display: block; font-size: 4.03cqw; color: #64748B; }
.uc-link { display: inline-block; margin-top: 2.08cqw; font-size: 4.29cqw; font-weight: 600; color: var(--azul, #0162CC); }
.uc-voltar { margin-top: 3.38cqw; font-size: 4.29cqw; color: var(--azul, #0162CC); }
.uc-texto { margin: 1.3cqw 0 2.08cqw; font-size: 4.68cqw; color: #0F172A; }
.ud [data-n=s2].on { display: flex; flex-direction: column; gap: 3.38cqw; }
.ud [data-n=s1].on { display: flex; flex-direction: column; gap: 4.03cqw; }
.uc-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 3.38cqw 4.68cqw; margin-top: 2.6cqw; }
.uc-grade > div > span:first-child { display: block; font-size: 3.9cqw; color: #64748B; }
.uc-grade b { font-size: 4.94cqw; color: #0F172A; }
.uc-grade small { display: block; font-size: 3.64cqw; color: #64748B; }
.uc-preco { grid-column: 1 / -1; }
.uc-envio { display: flex; flex-direction: column; align-items: center; gap: 3.38cqw; padding: 7.8cqw 5.2cqw; border: 1.5px dashed #CBD5E1; border-radius: 4.68cqw; background: #fff; text-align: center; color: #475569; }
.ud--cel .ud-arquivo { margin: 0; padding: 3.9cqw; gap: 3.9cqw; border-radius: 4.68cqw; }
.ud--cel .ud-arquivo strong { font-size: 4.29cqw; }
.ud--cel .ud-arquivo small { font-size: 3.9cqw; }
.ud--cel .ud-pdf { width: 10.92cqw; height: 13.52cqw; font-size: 3.38cqw; }
/* "Seu preço hoje" livre para o visitante (no fim da simulação do Lucro) */
.uc-exp { display: flex; align-items: center; gap: 2.6cqw; margin-top: 1.3cqw; }
.uc-exp[hidden], .uc-dica[hidden] { display: none; }
.uc-exp:not([hidden]) ~ [data-n=atual], .uc-preco:has(.uc-exp:not([hidden])) [data-n=atual] { display: none; }
.uc-exp button { flex: none; width: 13.52cqw; height: 13.52cqw; border-radius: 50%; border: 1px solid #CBD5E1; background: #fff; font: 600 6.5cqw/1 Inter, sans-serif; color: var(--marinho, #0B2559); cursor: pointer; touch-action: manipulation; }
.uc-exp label { display: inline-flex; align-items: center; gap: 1.56cqw; font-weight: 600; color: var(--marinho, #0B2559); font-size: 4.94cqw; }
.uc-exp input { width: 31.2cqw; height: 13.52cqw; padding: 0 3.12cqw; border: 1.5px solid var(--azul, #0162CC); border-radius: 2.6cqw; font: 600 16px Inter, sans-serif; color: var(--marinho, #0B2559); text-align: right; }
.uc-dica { margin: 3.38cqw 0 0; padding: 2.6cqw 3.38cqw; border-radius: 2.6cqw; background: #EEF5FF; font-size: 4.03cqw; font-weight: 600; color: var(--marinho, #0B2559); }
.uc-dica output { display: block; color: #067647; }
.uc-dica output.neg { color: #B42318; }

/* Versões de celular de Fluência, Ponto, Previne, Seletivo, Gov, Patrimônio, Comanda e Studio (tools/demos-cel.js).
   Mesmo padrão acima: medidas em cqw da tela do aparelho. */
.ud--cel .uc-centro { text-align: center; color: #475569; }
.ud--cel .ud-linha { gap: 3.38cqw; }
.ud--cel .ud-linha .uc-nome { margin: 0; }
.ud--cel .ud-avatar { width: 11.7cqw; height: 11.7cqw; font-size: 4.03cqw; }
.ud--cel .ud-btn--grande { min-height: 15.6cqw; font-size: 5.2cqw; }
/* Fluência: gravação */
.ud--cel .uc-grava { display: flex; flex-direction: column; gap: 3.38cqw; }
.ud--cel .ud-onda { height: 14cqw; gap: 0.78cqw; }
.ud--cel .ud-onda i { height: 1.56cqw; border-radius: 1cqw; }
.ud--cel .ud-onda.gravando i { animation-name: ucel-onda; }
.ud--cel .ud-onda.parada i { height: 1.56cqw; }
@keyframes ucel-onda { from { height: 1.56cqw; } to { height: 12.5cqw; } }
.ud--cel .ud-metricas { gap: 2.08cqw; }
.ud--cel .ud-metricas > div { padding: 2.6cqw 3.12cqw; border-radius: 3.9cqw; background: #fff; border-color: #E2E8F0; }
.ud--cel .ud-metricas span { font-size: 3.12cqw; letter-spacing: .02em; }
.ud--cel .ud-metricas strong { font-size: 7.28cqw; }
.ud--cel .ud-texto { margin: 0; font-size: 4.29cqw; line-height: 1.6; color: #0F172A; }
/* Ponto: relógio, status, câmera, comprovante */
.ud--cel .ud-hora { text-align: center; }
.ud--cel .ud-hora strong { display: block; font-size: 12.5cqw; line-height: 1.1; color: #0F172A; }
.ud--cel .ud-hora span { font-size: 4.03cqw; color: #64748B; }
.ud--cel .ud-status { gap: 2.6cqw; padding: 2.86cqw 3.9cqw; border-radius: 3.38cqw; font-size: 4.03cqw; }
.ud--cel .uc-camera { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.38cqw; height: 62cqw; border-radius: 4.68cqw; background: radial-gradient(circle at 50% 42%, #475569, #0E1624 70%); color: #fff; }
.ud--cel .uc-camera i { display: flex; align-items: center; justify-content: center; width: 34cqw; height: 42cqw; border: 1.04cqw dashed rgba(255, 255, 255, .8); border-radius: 50%; font-style: normal; font-size: 18cqw; color: rgba(255, 255, 255, .75); }
.ud--cel .uc-camera small { font-size: 3.9cqw; font-weight: 600; }
.ud--cel .ud-comprovante { padding: 3.38cqw 4.16cqw; border-radius: 3.9cqw; font-size: 3.64cqw; }
.ud--cel .ud-comprovante strong { font-size: 4.68cqw; }
.ud--cel .ud-linha-nova { margin-top: 2.08cqw; padding: 2.6cqw 3.38cqw; border-radius: 2.6cqw; border-left-width: 1.04cqw; background: #F0FDF4; font-size: 4.03cqw; }
.ud--cel .uc-campo b.pulso { display: inline-block; }
/* Previne: aviso, progresso e escala em pilha vertical */
.ud--cel .ud-aviso { padding: 2.86cqw 3.9cqw; border-radius: 3.38cqw; font-size: 3.9cqw; }
.ud--cel .ud-progresso { margin: 0 0 3.12cqw; font-size: 3.64cqw; }
.ud--cel .ud-progresso i { height: 1.56cqw; margin-bottom: 1.3cqw; border-radius: 1cqw; }
.ud--cel .ud-pergunta { margin: 0 0 3.38cqw; font-size: 5.2cqw; line-height: 1.35; color: #0F172A; }
.ud--cel .ud-opcoes { gap: 2.08cqw; }
.ud--cel .ud-opcoes span { flex-direction: column; justify-content: center; gap: 0.52cqw; min-height: 11.7cqw; padding: 2.34cqw 4.16cqw; border-radius: 3.38cqw; font-size: 4.42cqw; }
.ud--cel .ud-opcoes small { font-size: 3.9cqw; }
/* Seletivo: Pix */
.ud--cel .ud-pix { flex-direction: column; gap: 3.38cqw; padding: 5.2cqw; border-radius: 4.68cqw; background: #fff; border-color: #E2E8F0; text-align: center; }
.ud--cel .ud-pix .ud-qr { width: 40cqw; height: 40cqw; border-radius: 3.12cqw; }
.ud--cel .ud-pix > span:last-child { font-size: 4.16cqw; }
.ud--cel .ud-pix strong { font-size: 5.72cqw; }
.ud--cel .ud-pix em { margin-top: 2.08cqw; font-size: 4.42cqw; }
/* Gov: documento, senha e selo */
.ud--cel .ud-doc p:not(.uc-campo) { margin: 0 0 2.08cqw; font-size: 4.29cqw; line-height: 1.55; color: #0F172A; }
.ud--cel .ud-doc .uc-campo { padding-top: 0; }
.ud--cel .ud-in--largo { display: flex; width: 100%; margin-top: 2.08cqw; justify-content: flex-start; }
.ud--cel .ud-selo { padding: 3.9cqw 4.68cqw; border-radius: 4.68cqw; font-size: 3.9cqw; }
.ud--cel .ud-selo strong { font-size: 4.68cqw; }
/* Patrimônio: câmera lendo a etiqueta */
.ud--cel .ud-scanner { height: 112cqw; border-radius: 5.2cqw; background: radial-gradient(circle at 50% 45%, #334155, #0E1624 75%); }
.ud--cel .ud-scanner::before { inset: 18cqw 12cqw; border-width: 1.04cqw; border-radius: 4.68cqw; }
.ud--cel .ud-qr--peq { width: 48cqw; height: 48cqw; border-radius: 3.12cqw; }
.ud--cel .ud-laser { left: 13cqw; right: 13cqw; top: 18cqw; height: 0.78cqw; }
.ud--cel .ud-scanner.lendo .ud-laser { animation-name: ucel-laser; }
@keyframes ucel-laser { to { top: calc(100% - 19cqw); } }
.ud--cel [data-n=s1] .uc-texto { margin: 0; }
/* Comanda: cardápio do QR Code da mesa */
.ud--cel .uc-item { display: flex; align-items: center; justify-content: space-between; gap: 3.38cqw; padding: 3.12cqw 4.16cqw; border: 1px solid #E2E8F0; border-radius: 4.16cqw; background: #fff; transition: border-color .2s, background .2s, transform .15s; }
.ud--cel .uc-item b { display: block; font-size: 4.42cqw; color: #0F172A; }
.ud--cel .uc-item small { font-size: 4.03cqw; color: #64748B; }
.ud--cel .uc-item > i { flex: none; width: 9.36cqw; height: 9.36cqw; border-radius: 50%; background: var(--azul, #0162CC); color: #fff; font-style: normal; font-weight: 700; font-size: 5.72cqw; display: flex; align-items: center; justify-content: center; }
.ud--cel .uc-item.ativo { border-color: var(--azul, #0162CC); background: #EEF5FF; }
.ud--cel .ud-comanda p { margin: 1.3cqw 0 0; font-size: 4.42cqw; }
.ud--cel .ud-comanda .uc-vazio { color: #94A3B8; font-weight: 500; }
.ud--cel .ud-pedido { gap: 0.52cqw; padding: 3.38cqw 4.16cqw; border-radius: 3.9cqw; border-left-width: 1.3cqw; font-size: 4.03cqw; }
.ud--cel .ud-pedido strong { font-size: 4.94cqw; }
/* Studio: escolhas e conversa no WhatsApp */
.ud--cel .ud-chips { gap: 2.08cqw; margin: 1.56cqw 0 0; }
.ud--cel .ud-chips span { padding: 2.34cqw 3.9cqw; font-size: 4.03cqw; }
.ud--cel .uc-zap-bar { display: flex; align-items: center; gap: 3.38cqw; margin: 0 -5.33cqw; padding: 3.38cqw 5.33cqw; background: #075E54; color: #fff; }
.ud--cel .uc-zap-bar b { display: block; font-size: 4.94cqw; }
.ud--cel .uc-zap-bar small { display: block; font-size: 3.64cqw; opacity: .8; }
.ud--cel .uc-zap-bar .ud-avatar { background: #fff; color: #075E54; }
.ud--cel .ud-whats { padding: 4.16cqw; border-radius: 4.68cqw; background: #E7F6EC; }
.ud--cel .ud-balao { margin: 0 0 2.6cqw; padding: 3.38cqw 3.9cqw; border-radius: 3.9cqw 3.9cqw 3.9cqw 1.3cqw; font-size: 4.29cqw; }
.ud--cel .ud-balao:last-child { margin-bottom: 0; }
.ud--cel .uc-card > .uc-bloco { display: flex; width: 100%; margin-top: 2.6cqw; }
.ud--cel .uc-card > .ud-texto { margin-top: 1.56cqw; }
.ud--cel .uc-cod { white-space: nowrap; }
.ud--cel .uc-hist p { display: flex; gap: 3.38cqw; margin: 2.08cqw 0 0; font-size: 4.03cqw; color: #334155; }
.ud--cel .uc-hist b { flex: none; min-width: 20cqw; color: #0F172A; }
.ud--cel [data-n=s2] .ud-whats { min-height: 190cqw; margin: -3.38cqw -5.33cqw -55cqw; border-radius: 0; display: flex; flex-direction: column; align-items: flex-start; }
.ud--cel .ud-whats .ud-balao { max-width: 88%; }
.ud--cel .uc-dia { align-self: center; margin: 0 0 2.6cqw; padding: 1.04cqw 3.12cqw; border-radius: 2.08cqw; background: #fff; font-size: 3.38cqw; font-weight: 600; color: #64748B; }
.ud--cel .uc-dia.on { display: block; }
.ud--cel .uc-abas--3 { grid-template-columns: repeat(3, 1fr); }
.ud--cel .uc-edital span { display: block; margin-top: 1.04cqw; font-size: 4.16cqw; color: #334155; }
.ud--cel .uc-hist p .ud-pdf { width: 7.8cqw; height: 9.36cqw; font-size: 2.6cqw; }
.ud--cel .uc-hist p:has(.ud-pdf) { align-items: center; }

/* Simulações de celular: botão largo com respiro em relação ao conteúdo de cima (ex.: "Aplicar preço ideal" no Lucro) */
.ud--cel .uc-largo { margin-top: 5.2cqw; }

/* Pausada: as animações em CSS (giro do carregando, cursor de digitação, onda, laser) também param (WCAG 2.2.2) */
.ud.pausado *, .ud.pausado *::before, .ud.pausado *::after,
.ud.fora *, .ud.fora *::before, .ud.fora *::after { animation-play-state: paused !important; } /* .fora: simulação fora da tela ou aba escondida (demo-uso.js) */

/* Componentes das simulações da página de IA (tools/demos-ia.js) */
.ud-balao--meu { margin-left: auto; max-width: 88%; border-radius: 12px 12px 4px 12px; background: #D9FDD3; }
.ud-balao--transc { font-style: italic; color: var(--tinta-2); }
.ud-balao .ud-onda--mini { display: inline-flex; width: 120px; height: 18px; vertical-align: middle; gap: 2px; }
.ud-onda--mini i { height: 4px; }
.ud-campo-ia { margin: 0; display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--suave); }
.ud-slides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ud-slides span { aspect-ratio: 16 / 10; display: flex; flex-direction: column; justify-content: space-between; padding: 6px 8px; border-radius: 8px; background: var(--azul); color: #fff; font-size: 11px; font-weight: 700; }
.ud-slides span:nth-child(even) { background: var(--marinho, #0B2559); }
.ud-slides b { font-size: 11px; line-height: 1.2; }
.ud-aviso--alerta { background: #FEF3C7; color: #92400E; }
@media (max-width: 640px) { .ud-slides span { padding: 4px 5px; font-size: 10px; } .ud-slides b { font-size: 9.5px; } }

/* "Reduzir movimento": tela parada no estado final (demo-uso.js, estadoFinal). Sem botão nem selo de "ao vivo" */
.ud--estatico:not(.ud--cel) .ud__palco { height: auto; }
.ud--estatico .ud__ao-vivo, .ud__barra button[hidden], .ud__pausa[hidden] { display: none; }
/* Pausar da simulação no celular (embaixo do aparelho): conteúdo que se mexe sozinho precisa poder parar (WCAG 2.2.2) */
.ud__pausa { display: flex; align-items: center; gap: 7px; margin: 12px auto 0; min-height: 36px; padding: 0 16px; border: 1px solid var(--linha-forte); border-radius: 999px; background: #fff; color: var(--tinta-2); font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.ud__pausa::before { content: "❚❚"; font-size: 9px; letter-spacing: -1px; }
.ud__pausa[aria-pressed="true"]::before { content: "▶"; font-size: 10px; letter-spacing: 0; }
/* Celular: a mensagem de quem envia fica à direita, com a ponta embaixo à direita */
.ud--cel .ud-balao--meu { margin-left: auto; border-radius: 3.9cqw 3.9cqw 1.3cqw 3.9cqw; }
.ud--cel .ud-balao .ud-onda--mini { width: 30cqw; height: 4.5cqw; }
/* Onda pequena do áudio: as barras sobem e descem dentro do balão (a animação da onda grande vai até 42 px) */
.ud-onda--mini.gravando i { animation-name: ud-onda-mini; }
@keyframes ud-onda-mini { from { height: 4px; } to { height: 16px; } }
.ud--cel .ud-onda--mini.gravando i { animation-name: ucel-onda-mini; }
@keyframes ucel-onda-mini { from { height: 1cqw; } to { height: 4cqw; } }
.ud--cel .ud-slides span { padding: 1cqw 1.4cqw; } .ud--cel .ud-slides b { font-size: 2.5cqw; }
.ud-tab .ud-badge { white-space: nowrap; } /* "Devido ao município" numa linha só */
