/* ============================================================
   Prontuário eletrônico (/modulos/prontuario-eletronico)
   Hero próprio (.pe-hero) e a demonstração do editor de evolução
   (.pe-demo). Carrega ANTES do style.css: tudo aqui usa classes
   próprias .pe-*, e onde o elemento também leva classe do
   style.css (.mod-hero, .mod-shot) a regra é composta.

   Cores da demo vêm do app (DictationEditor.vue e Evolution.vue):
   azul #1c8af6 e o gradiente dos botões, roxo da Zoe #7c4dff,
   gravando #e5484d, fundo de campo #eef1f6, verde do salvar.
   Onde a cor do app vira TEXTO pequeno sobre fundo claro, ela
   escurece para passar no AA (4,5:1): verde #0f7a3d em vez de
   #12a150, laranja #b45309 em vez de #d97706, roxo #5b2fd6 no selo.
   ============================================================ */

/* ---------- Hero ---------- */
.mod-hero.pe-hero { padding-bottom: 36px; }
.pe-hero .eyebrow.reveal-hero { animation-delay: .04s; }
.pe-hero h1.reveal-hero { animation-delay: .08s; }
.pe-hero .sub.reveal-hero { animation-delay: .14s; }
.pe-hero .mod-ctas.reveal-hero { animation-delay: .2s; }

.pe-hero-fig { position: relative; max-width: 1132px; margin: 48px auto 0; }
.pe-hero-shot { cursor: zoom-in; }
.pe-hero-shot:hover .mod-vitrine-lupa, .pe-hero-shot:focus-visible .mod-vitrine-lupa { opacity: 1; }
.pe-hero-cap {
  max-width: 760px; margin: 16px auto 0;
  font-size: 13.5px; line-height: 1.55; color: var(--muted); text-align: center;
}

/* Selos por cima do print (decorativos, aria-hidden no HTML) */
.pe-hero-selo {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--ink);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(13, 40, 90, .1);
  border-radius: 100px; padding: 9px 16px;
  box-shadow: 0 18px 40px -14px rgba(13, 40, 90, .35);
  animation: pe-selo-in .5s cubic-bezier(.34, 1.56, .64, 1) .7s backwards;
}
.pe-hero-selo .ic { width: 16px; height: 16px; }
.pe-hero-selo b {
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: #34c759; color: #fff; font-size: 11px;
}
.pe-hero-selo--3d { left: -16px; bottom: 7%; transform: rotate(-2deg); }
.pe-hero-selo--resumo { right: 28px; top: -18px; transform: rotate(2deg); animation-delay: .9s; }
@keyframes pe-selo-in {
  from { opacity: 0; translate: 0 18px; scale: .85; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
.no-motion .pe-hero-selo { animation: none; }

/* Ponte para os módulos de especialidade */
.pe-esp { margin-top: 34px; }
.pe-esp-t {
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.pe-esp-lista {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.pe-esp-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px; border-radius: 18px;
  text-decoration: none; color: var(--ink); text-align: left;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(13, 40, 90, .1);
  box-shadow: 0 12px 28px -18px rgba(13, 40, 90, .35);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.pe-esp-link:hover { transform: translateY(-2px); border-color: rgba(28, 138, 246, .35); box-shadow: 0 16px 34px -18px rgba(28, 90, 180, .45); }
.pe-esp-ic {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(28, 138, 246, .1);
}
.pe-esp-ic .ic { width: 19px; height: 19px; }
.pe-esp-tx { display: flex; flex-direction: column; line-height: 1.3; }
.pe-esp-tx b { font-size: 14.5px; }
.pe-esp-tx span { font-size: 13px; color: var(--muted); }
.pe-esp-seta { width: 14px; height: 14px; margin-left: 4px; }
.no-motion .pe-esp-link { transition: none; }
.no-motion .pe-esp-link:hover { transform: none; }

/* ---------- Demonstração: moldura e guia ---------- */
.pe-demo {
  --pe-blue: #1c8af6;
  --pe-zoe: #7c4dff;
  --pe-rec: #e5484d;
  --pe-field: #eef1f6;
  --pe-line: rgba(13, 21, 38, .09);
  max-width: 1132px; margin: 0 auto;
  font-size: 14px; line-height: 1.5; color: var(--ink);
}
.pe-demo button { font: inherit; }
.pe-demo svg { display: block; width: 100%; height: 100%; }
.pe-demo [hidden] { display: none !important; }

.pe-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pe-aviso { margin: 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pe-aviso-tag {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #8a4b00; background: #fff1d6; border: 1px solid #f6d49a;
  padding: 3px 10px; border-radius: 100px;
}
.pe-reiniciar {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 14px; border-radius: 12px; cursor: pointer;
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  background: #fff; border: 1px solid var(--pe-line);
}
.pe-reiniciar svg { width: 16px; height: 16px; }
.pe-reiniciar:hover { border-color: rgba(28, 138, 246, .4); }

.pe-passos {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.pe-passos li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 14px;
  font-size: 13.5px; font-weight: 700; color: var(--muted);
  background: rgba(13, 21, 38, .035); border: 1px solid transparent;
}
.pe-passo-n {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: var(--muted); background: #fff;
  border: 1px solid var(--pe-line);
}
.pe-passos li.atual { color: var(--ink); background: rgba(28, 138, 246, .08); border-color: rgba(28, 138, 246, .28); }
.pe-passos li.atual .pe-passo-n { color: #fff; background: var(--pe-blue); border-color: var(--pe-blue); }
.pe-passos li.feito { color: var(--ink); }
.pe-passos li.feito .pe-passo-n { color: #fff; background: #12a150; border-color: #12a150; font-size: 0; }
.pe-passos li.feito .pe-passo-n::before { content: "✓"; font-size: 12px; }
.pe-agora { margin: 12px 0 0; min-height: 3em; font-size: 14.5px; line-height: 1.55; color: #33415a; }
.pe-agora b { color: var(--ink); }
.pe-noscript { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- A tela simulada (dialog Nova evolução) ---------- */
.pe-dlg {
  position: relative; margin-top: 16px;
  padding: 20px 22px 18px; border-radius: 28px;
  background: #fff; border: 1px solid rgba(13, 40, 90, .1);
  box-shadow: 0 18px 44px -18px rgba(13, 21, 38, .18), 0 46px 110px -34px rgba(13, 21, 38, .28);
}
.pe-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--pe-line); }
.pe-top-ic {
  flex: none; width: 44px; height: 44px; border-radius: 13px; padding: 11px;
  color: #fff; background: linear-gradient(140deg, #1c8af6, #1573e0);
}
.pe-top-tx { min-width: 0; flex: 1; }
.pe-top-t { font-size: 19px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.pe-top-s { font-size: 13px; color: var(--muted); }
.pe-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 100px; font-size: 12.5px; font-weight: 700;
}
.pe-pill svg { width: 14px; height: 14px; }
.pe-pill--ok { color: #0f7a3d; background: rgba(18, 161, 80, .12); }

.pe-grid { display: grid; grid-template-columns: 36% minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: stretch; }
.pe-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pe-box { border: 1px solid var(--pe-line); border-radius: 20px; padding: 16px 18px; background: #fff; min-width: 0; }
.pe-box-t { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.pe-dados { display: flex; flex-direction: column; flex: 1; }
.pe-campo { margin-top: 12px; }
.pe-rot { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.pe-input {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 40px; padding: 8px 14px; border-radius: 13px;
  background: var(--pe-field); font-weight: 600; color: var(--ink);
}
.pe-input svg { width: 18px; height: 18px; color: var(--muted); flex: none; }

/* Cartão de assinatura: novo (azul), pendente (laranja), assinado (verde) */
.pe-sign {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto; padding: 12px 14px; border-radius: 16px;
  background: var(--pe-field);
}
.pe-dados .pe-sign { margin-top: 18px; }
.pe-sign-ic {
  flex: none; width: 40px; height: 40px; border-radius: 12px; padding: 10px;
  color: var(--pe-blue); background: #fff;
}
.pe-sign-t { font-size: 14.5px; font-weight: 800; }
.pe-sign-s { font-size: 13px; color: #45536b; line-height: 1.45; }
.pe-sign--pend { background: rgba(217, 119, 6, .1); }
.pe-sign--pend .pe-sign-ic { color: #d97706; }
.pe-sign--pend .pe-sign-t { color: #b45309; }
.pe-sign--ok { background: rgba(18, 161, 80, .1); }
.pe-sign--ok .pe-sign-ic { color: #12a150; }
.pe-sign--ok .pe-sign-t { color: #0f7a3d; }

.pe-confid { display: flex; align-items: center; gap: 12px; }
.pe-confid-ic {
  flex: none; width: 40px; height: 40px; border-radius: 12px; padding: 10px;
  color: var(--muted); background: var(--pe-field);
}
.pe-confid-tx { flex: 1; min-width: 0; }
.pe-confid-t { font-size: 14.5px; font-weight: 800; }
.pe-confid-s { font-size: 13px; color: #45536b; line-height: 1.45; }
.pe-confid.on { border-color: rgba(217, 119, 6, .35); background: rgba(217, 119, 6, .06); }
.pe-confid.on .pe-confid-ic { color: #d97706; background: rgba(217, 119, 6, .12); }
.pe-switch {
  flex: none; position: relative; width: 44px; height: 26px; border-radius: 100px; cursor: pointer;
  background: #cfd6e2; border: 0; padding: 0;
  transition: background .2s var(--ease);
}
.pe-switch span {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s var(--ease);
}
.pe-switch[aria-checked="true"] { background: #d97706; }
.pe-switch[aria-checked="true"] span { transform: translateX(18px); }
.pe-switch:disabled { cursor: default; opacity: .55; }

/* ---------- Descrição, ditado e editor ---------- */
.pe-desc { display: flex; flex-direction: column; }
.pe-hint { font-size: 13px; color: var(--muted); margin-top: 2px; }
.pe-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 14px 0 12px; }
.pe-seg { display: inline-flex; flex-wrap: wrap; padding: 3px; border-radius: 12px; background: var(--pe-field); }
.pe-opt {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 34px; padding: 6px 13px; border: 0; border-radius: 10px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--ink); background: transparent;
}
.pe-opt svg { width: 15px; height: 15px; }
.pe-opt.on { background: #fff; font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 41, .12); }
.pe-opt--zoe.on { color: var(--pe-zoe); }
.pe-opt:disabled { cursor: default; }
.pe-opt:disabled:not(.on) { opacity: .6; }
.pe-selo {
  margin-left: 2px; padding: 2px 7px; border-radius: 100px;
  font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: #5b2fd6; background: rgba(124, 77, 255, .12);
}
.pe-mic {
  display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 12px; cursor: pointer;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, #1c8af6, #1573e0);
  box-shadow: 0 10px 22px -12px rgba(21, 115, 224, .9);
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.pe-mic-ic { width: 18px; height: 18px; }
.pe-mic.gravando { background: var(--pe-rec); box-shadow: 0 10px 22px -12px rgba(229, 72, 77, .9); }
.pe-mic.chamando { animation: pe-pulso 1.6s ease-in-out infinite; }
.pe-mic:disabled { cursor: default; opacity: .55; box-shadow: none; }
@keyframes pe-pulso {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .45); }
  50% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); }
}

.pe-live {
  border: 1px solid var(--pe-line); border-radius: 14px;
  padding: 10px 14px; margin-bottom: 12px; background: var(--pe-field);
}
.pe-live.zoe { background: rgba(124, 77, 255, .08); border-color: rgba(124, 77, 255, .22); }
.pe-live-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.pe-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--pe-rec); animation: pe-pisca 1.2s ease-in-out infinite; }
@keyframes pe-pisca { 50% { opacity: .25; } }
.pe-dots { display: inline-flex; gap: 3px; }
.pe-dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: pe-pontos 1s ease-in-out infinite; }
.pe-dots i:nth-child(2) { animation-delay: .15s; }
.pe-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes pe-pontos { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.pe-live-tx { margin-top: 6px; font-size: 13.5px; font-weight: 500; line-height: 1.5; }
.pe-live-tx:empty { display: none; }
.pe-interim { opacity: .55; }
.pe-live-hint { margin-top: 6px; font-size: 12px; font-weight: 600; }

.pe-ed {
  flex: 1; display: flex; flex-direction: column;
  border: 1px solid var(--pe-line); border-radius: 14px; overflow: hidden; background: var(--pe-field);
}
.pe-ed-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 14px; border-bottom: 1px solid var(--pe-line);
  font-size: 13px; color: #33415a;
}
.pe-ed-bar b, .pe-ed-bar i, .pe-ed-bar u, .pe-ed-bar s { font-style: normal; }
.pe-ed-bar .pe-tb-i { font-style: italic; font-family: Georgia, serif; }
.pe-tb { width: 14px; height: 10px; background:
  linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
  linear-gradient(currentColor, currentColor) 0 4px / 70% 2px no-repeat,
  linear-gradient(currentColor, currentColor) 0 8px / 100% 2px no-repeat; }
.pe-tb--c { background-position: 0 0, 50% 4px, 0 8px; }
.pe-tb--r { background-position: 0 0, 100% 4px, 0 8px; }
.pe-tb--j { background-size: 100% 2px, 100% 2px, 100% 2px; }
.pe-tb-sep { width: 1px; height: 16px; background: var(--pe-line); }
.pe-tb-ud { width: 16px; height: 16px; }
.pe-tb-ud--r { transform: scaleX(-1); }
.pe-ed-tx {
  flex: 1; min-height: 190px; padding: 14px 16px;
  font-size: 14.5px; line-height: 1.6; color: var(--ink);
}
.pe-ed-tx:empty::before { content: attr(data-placeholder); color: #7b879b; }
.pe-ed-tx p { margin: 0; }
.pe-ed-tx .pe-cru + .pe-cru { margin-top: 0; }
.pe-sec + .pe-sec { margin-top: 14px; }
.pe-sec b { display: block; }
.pe-sec ul { margin: 2px 0 0; padding-left: 22px; }
.pe-sec p { margin-top: 2px; }
.pe-ed.travado .pe-ed-bar { opacity: .45; }
.pe-ed.ocupado .pe-ed-tx { opacity: .55; }
.pe-novo { animation: pe-entra .5s var(--ease); }
@keyframes pe-entra { from { background: rgba(124, 77, 255, .14); } to { background: transparent; } }

.pe-after { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; min-height: 34px; }
.pe-link {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 34px; padding: 4px 10px; border: 0; border-radius: 10px; cursor: pointer;
  font-size: 13.5px; font-weight: 700; color: var(--pe-zoe); background: transparent;
}
.pe-link svg { width: 15px; height: 15px; }
.pe-link:hover { background: rgba(124, 77, 255, .08); }
.pe-link:disabled { cursor: default; opacity: .55; }
.pe-note { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; }
.pe-note svg { width: 14px; height: 14px; color: var(--pe-zoe); }

/* ---------- Rodapé da tela: Salvar e Assinar ---------- */
.pe-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--pe-line); }
.pe-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 18px; border-radius: 13px; cursor: pointer;
  font-size: 14.5px; font-weight: 700; border: 0; color: #fff;
}
.pe-btn svg { width: 18px; height: 18px; }
.pe-btn--save { background: linear-gradient(180deg, #4cd964, #12a150); box-shadow: 0 10px 22px -12px rgba(18, 161, 80, .9); }
.pe-btn--sign { background: linear-gradient(140deg, #1c8af6, #1573e0); box-shadow: 0 10px 22px -12px rgba(21, 115, 224, .9); }
.pe-btn--ghost { color: var(--ink); background: #fff; border: 1px solid var(--pe-line); }
.pe-btn:disabled { cursor: default; opacity: .5; box-shadow: none; }

/* Notificação do app ("A Zoe organizou o texto...") */
.pe-toast {
  position: absolute; z-index: 4; top: 16px; right: 16px; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px;
  font-size: 13.5px; font-weight: 600; color: #fff; background: #12a150;
  box-shadow: 0 16px 34px -14px rgba(13, 21, 38, .45);
  animation: pe-toast-in .3s var(--ease);
}
.pe-toast svg { width: 18px; height: 18px; flex: none; }
@keyframes pe-toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Dialog de assinatura, por cima da tela simulada */
.pe-sd {
  position: absolute; z-index: 5; inset: 0; border-radius: 28px;
  display: grid; place-items: center; padding: 16px;
  background: rgba(13, 21, 38, .38);
}
.pe-sd-card {
  width: 100%; max-width: 420px; padding: 22px; border-radius: 24px;
  background: #fff; box-shadow: 0 40px 90px -30px rgba(13, 21, 38, .55);
  animation: pe-toast-in .25s var(--ease);
}
.pe-sd-t { font-size: 20px; font-weight: 800; letter-spacing: -.015em; }
.pe-sd-s { margin-top: 2px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; color: var(--muted); }
.pe-sd-info { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; color: #5c4400; background: #fff6db; }
.pe-sd-l { display: block; margin-top: 14px; font-size: 15px; font-weight: 700; }
.pe-sd-in {
  display: block; width: 100%; margin-top: 8px; min-height: 42px; padding: 0 16px;
  border-radius: 100px; border: 1px solid rgba(13, 21, 38, .18);
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
}
.pe-sd-nota { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.pe-sd-acoes { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Rodapé do PDF ---------- */
.pe-pdf { margin-top: 22px; outline: none; }
.pe-pdf:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; border-radius: 16px; }
.pe-pdf-rot { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pe-pdf-rot span { font-weight: 500; }
.pe-pdf-bloco {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; border-radius: 16px;
  background: #fff; border: 1px dashed rgba(13, 21, 38, .22);
  font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 1.55; color: #1f2937;
}
.pe-demo .pe-qr { flex: none; width: 84px; height: 84px; }
.pe-pdf-info { min-width: 0; overflow-wrap: anywhere; }
.pe-pdf-t { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.pe-pdf-legal { margin-top: 2px; font-style: italic; color: #4b5563; }
.pe-pdf-nota { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.pe-pdf.aparece { animation: pe-toast-in .4s var(--ease); }

.pe-ditado { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.pe-ditado summary { cursor: pointer; font-weight: 700; color: #33415a; width: fit-content; }
.pe-ditado p { margin: 8px 0 0; max-width: 760px; font-style: italic; }

/* Foco visível nos controles da simulação (o raio do :focus-visible do
   style.css deixaria os botões arredondados com canto de 6px) */
.pe-demo button:focus-visible, .pe-esp-link:focus-visible {
  outline: 2px solid #2563eb; outline-offset: 2px;
}
.pe-demo .pe-opt:focus-visible, .pe-demo .pe-link:focus-visible { border-radius: 10px; }
.pe-demo .pe-mic:focus-visible, .pe-demo .pe-reiniciar:focus-visible { border-radius: 12px; }
.pe-demo .pe-btn:focus-visible { border-radius: 13px; }
.pe-demo .pe-switch:focus-visible { border-radius: 100px; }
.pe-esp-link:focus-visible { border-radius: 18px; }

/* ---------- Movimento reduzido ---------- */
.no-motion .pe-dot, .no-motion .pe-dots i, .no-motion .pe-mic.chamando,
.no-motion .pe-novo, .no-motion .pe-toast, .no-motion .pe-sd-card, .no-motion .pe-pdf.aparece { animation: none; }
.no-motion .pe-switch, .no-motion .pe-switch span, .no-motion .pe-mic { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .pe-hero-selo, .pe-dot, .pe-dots i, .pe-mic.chamando, .pe-novo, .pe-toast, .pe-sd-card, .pe-pdf.aparece { animation: none; }
  .pe-switch, .pe-switch span, .pe-mic, .pe-esp-link { transition: none; }
}

/* ---------- Telas menores ---------- */
@media (max-width: 1023px) {
  .pe-hero-selo--3d { left: 8px; }
}
@media (max-width: 859px) {
  .pe-grid { grid-template-columns: minmax(0, 1fr); }
  /* No celular a descrição vem primeiro: é ela que a demo mexe */
  .pe-desc { order: -1; }
  .pe-ed-tx { min-height: 150px; }
}
@media (max-width: 719px) {
  .pe-hero-fig { margin-top: 36px; }
  .pe-hero-selo { display: none; }
  .pe-esp-lista { flex-direction: column; align-items: stretch; }
  .pe-esp-seta { margin-left: auto; }
  .pe-dlg { padding: 14px 12px 14px; border-radius: 22px; }
  .pe-sd { border-radius: 22px; }
  .pe-box { padding: 14px; border-radius: 16px; }
  .pe-top-t { font-size: 17px; }
  .pe-passos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pe-mic { margin-left: 0; }
  .pe-bar { align-items: stretch; }
  .pe-actions { justify-content: stretch; }
  .pe-actions .pe-btn { flex: 1; }
  .pe-pdf-bloco { flex-direction: column; align-items: flex-start; }
  .pe-toast { left: 12px; right: 12px; top: 12px; max-width: none; }
}

/* Trechos do campo (texto cru e seções da Zoe) um embaixo do outro */
.pe-ed-tx > * + * { margin-top: 12px; }
