/* Onboarding da conta nova do prontuário (25/11/2026): a casca de tela cheia do cadastro e do
   "Montar seu consultório". Veio do protótipo aprovado pelo dono em
   docs/frontend/prototipos/onboarding-prontuario/ (mesmos nomes, salvo os que colidiam com o app.css:
   chip -> ob-chip, aviso -> ob-aviso, pc-* -> obp-*). Carregado só nas telas do onboarding, depois do
   app.min.css, cujos tokens (--bg-*, --text-*, --accent*, --radius-*, --shadow-*) ele usa.
   Prefixos: ob- (a casca e os controles), obp- (a prévia ao lado). Doc: docs/codex/prontuario-onboarding.md */
body.ob-pagina {
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ouro: #B9985A; --ouro-soft: rgba(185, 152, 90, 0.16); --ouro-txt: #7A5C22;
  --palco: #F7F1EC; --palco-linha: #EADFD6; --papel: #FFFFFF;
  --wa: #25D366; --wa-fundo: #EFE7DE; --wa-bolha: #FFFFFF;
  margin: 0; background: var(--bg-1); color: var(--text-1); font: 15px/1.45 var(--font-sans); -webkit-font-smoothing: antialiased;
}
html[data-theme="dark"] body.ob-pagina {
  --ouro-txt: #E2C68C; --ouro-soft: rgba(185, 152, 90, 0.20);
  --palco: #211A1E; --palco-linha: #33272D; --papel: #F7F3F0;
  --wa-fundo: #161E1B; --wa-bolha: #22302A;
}
/* O app.css trava a rolagem do html e do body (o app rola dentro do #avie-main); a tela cheia do
   onboarding rola a página inteira, senão a etapa alta corta a ação do pé (achado na Frente 2, 26/11). */
html:has(> body.ob-pagina) { overflow-y: auto; height: auto; }
body.ob-pagina { overflow: visible; height: auto; }
/* :where() zera a especificidade: o `color: inherit` não pode vencer o .bt-pri, o .bt-ghost nem o
   .ob-link (o texto do botão principal saía vinho sobre vinho). */
:where(body.ob-pagina) :where(button, input, textarea, select) { font: inherit; color: inherit; }
:where(body.ob-pagina) :where(button) { cursor: pointer; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.i-s { width: 15px; height: 15px; }
.i-l { width: 22px; height: 22px; }
.num { font-variant-numeric: tabular-nums; }
.sans { font-family: var(--font-sans); font-weight: 600; letter-spacing: -.01em; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- a casca do onboarding */
.ob { min-height: 100dvh; display: grid; grid-template-columns: minmax(440px, 600px) 1fr; background: var(--bg-1); }
.ob.cheia { grid-template-columns: 1fr; background: var(--bg-2); }
.ob-lado { display: flex; flex-direction: column; min-height: 100%; padding: 24px 56px 0; }
.ob-topo { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.ob-marca { height: 24px; width: auto; display: block; }
.ob-voltar { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px 0 6px; border: 0; background: none; color: var(--text-2);
  border-radius: var(--radius-sm); font-weight: 600; }
.ob-voltar:hover { background: var(--bg-3); color: var(--text-1); }
.ob-corpo { flex: 1; width: 100%; max-width: 460px; padding: clamp(28px, 9vh, 96px) 0 28px; }
.ob-pe { position: sticky; bottom: 0; z-index: var(--z-sticky); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 460px; width: 100%;
  padding: 16px 0 24px; background: linear-gradient(to bottom, transparent, var(--bg-1) 18px); }
.ob-pe .bt-pri { min-width: 180px; }
.ob-pe .ob-pe-dir { margin-left: auto; }

.ob-sobre { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--text-3); font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.ob-sobre::before { content: ""; width: 20px; height: 1px; background: var(--ouro); }
.ob-h1 { margin: 0; font: 600 clamp(28px, 3.2vw, 36px)/1.12 var(--font-display); font-variation-settings: "SOFT" 30, "WONK" 0; letter-spacing: -.012em; text-wrap: balance; }
.ob-h1:focus { outline: none; }
.ob-h1 .num, .ob-h1 .sans { font-family: var(--font-sans); font-weight: 600; letter-spacing: -.01em; }
:root[data-theme="dark"] .ob-marca, :root[data-theme="dark"] .obp-cartao-pe img { filter: brightness(0) invert(.92); }
.ob-p { margin: 12px 0 0; font-size: 16px; line-height: 1.5; color: var(--text-2); max-width: 46ch; text-wrap: pretty; }
.ob-p strong { color: var(--text-1); font-weight: 600; }
.ob-p .num { white-space: nowrap; }
.ob-bloco { margin-top: 28px; display: grid; gap: 14px; }
.ob-bloco + .ob-bloco { margin-top: 24px; }
.ob-q { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--text-1); }
.ob-miuda { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.ob-miuda a, .ob-link { color: var(--accent); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
.ob-miuda a:hover, .ob-link:hover { text-decoration: underline; }
.ob-ou { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; }
.ob-ou::before, .ob-ou::after { content: ""; flex: 1; height: 1px; background: var(--border-1); }

.entra { animation: entra .22s var(--ease) both; }
.entra > * { animation: entra .26s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* botões */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.bt:active { transform: translateY(1px); }
.bt-pri { background: var(--accent); color: var(--on-accent); }
.bt-pri:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.bt-sec { background: var(--bg-1); border-color: var(--border-2); color: var(--text-1); }
.bt-sec:hover { border-color: var(--text-3); }
.bt-ghost { background: none; color: var(--text-2); padding: 0 12px; }
.bt-ghost:hover { background: var(--bg-3); color: var(--text-1); }
.bt-larga { width: 100%; }
.bt[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.bt-google { background: var(--bg-1); border-color: var(--border-2); color: var(--text-1); height: 52px; font-size: 15.5px; }
.bt-google:hover { border-color: var(--text-3); box-shadow: var(--shadow-1); }
.g-logo { width: 20px; height: 20px; flex: none; }
.bt .gira { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* campos */
.campo { display: grid; gap: 6px; }
.campo > span { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.campo input, .campo select, .campo textarea, .entrada { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: var(--bg-1);
  font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.campo textarea { height: auto; min-height: 150px; padding: 12px 14px; line-height: 1.5; resize: vertical; font-size: 14.5px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.campo input[readonly] { background: var(--bg-2); color: var(--text-2); }
.campo-ajuda { font-size: 13px; color: var(--text-3); line-height: 1.45; }
.linha-2 { display: grid; grid-template-columns: 1fr 120px; gap: 12px; }
.linha-2b { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.com-pre { position: relative; }
.com-pre input { padding-left: 52px; }
.com-pre > b { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--text-3); font-size: 15px; }

.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: 372px; }
.otp input { width: 100%; min-width: 0; height: 58px; text-align: center; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  background: var(--bg-1); padding: 0; }
.otp input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.otp.ok input { border-color: var(--success); background: var(--success-soft); }
.otp input:nth-child(3) { margin-right: 10px; }

/* escolhas */
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-chip { height: 38px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--border-2); background: var(--bg-1); font-weight: 600; font-size: 14px; color: var(--text-1); }
.ob-chip:hover { border-color: var(--text-3); }
.ob-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.seg { display: inline-flex; padding: 3px; border-radius: var(--radius-pill); background: var(--bg-3); gap: 2px; }
.seg button { height: 36px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: none; font-weight: 600; font-size: 14px; color: var(--text-2); }
.seg button[aria-pressed="true"] { background: var(--bg-1); color: var(--text-1); box-shadow: var(--shadow-1); }

.opcoes { display: grid; gap: 10px; }
.opcao { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 14px 16px; border-radius: var(--radius-md);
  border: 1px solid var(--border-1); background: var(--bg-1); color: inherit; text-decoration: none; transition: border-color .15s, background .15s, box-shadow .15s; }
.opcao:hover { border-color: var(--border-2); box-shadow: var(--shadow-1); }
.opcao[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.opcao .op-ic { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--bg-3); display: grid; place-items: center; color: var(--accent); }
.opcao .op-ic img { width: 26px; height: 26px; object-fit: contain; }
.opcao strong { display: block; font-size: 15px; }
.opcao small { display: block; margin-top: 2px; font-size: 13px; color: var(--text-3); line-height: 1.4; }
.opcao .op-fim { color: var(--text-3); }
.opcao[aria-pressed="true"] .op-fim { color: var(--accent); }

.chave { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--border-1); border-radius: var(--radius-md); cursor: pointer; }
.chave input { appearance: none; width: 42px; height: 24px; border-radius: var(--radius-pill); background: var(--bg-4); position: relative; flex: none; cursor: pointer; transition: background .15s; margin: 0; }
.chave input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform .18s var(--ease); }
.chave input:checked { background: var(--accent); }
.chave input:checked::after { transform: translateX(18px); }
.chave strong { display: block; font-size: 14.5px; font-weight: 600; }
.chave small { display: block; font-size: 13px; color: var(--text-3); }

/* planos */
.planos { display: grid; gap: 10px; }
.plano { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; width: 100%; text-align: left; padding: 15px 16px; border-radius: var(--radius-md);
  border: 1px solid var(--border-1); background: var(--bg-1); transition: border-color .15s, background .15s; }
.plano:hover { border-color: var(--border-2); }
.plano[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.plano strong { font-size: 15.5px; }
.plano .pl-preco { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.plano .pl-preco small { font-weight: 500; color: var(--text-3); font-size: 13px; }
.plano .pl-linha { grid-column: 1 / -1; font-size: 13.5px; color: var(--text-2); line-height: 1.4; }
.plano .pl-ind { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 9px; border-radius: var(--radius-pill); border: 1px solid var(--ouro);
  font-size: 12px; font-weight: 600; color: var(--ouro-txt); background: var(--ouro-soft); vertical-align: 2px; }

.resumo { display: grid; gap: 0; border: 1px solid var(--border-1); border-radius: var(--radius-md); overflow: hidden; }
.resumo > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; font-size: 14.5px; }
.resumo > div + div { border-top: 1px solid var(--border-1); }
.resumo span { color: var(--text-2); }
.resumo b { font-weight: 600; text-align: right; }

.qr { width: 184px; height: 184px; padding: 12px; background: #fff; border: 1px solid var(--border-1); border-radius: var(--radius-md); }
.pix-caixa { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.espera { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14.5px; font-weight: 500; }
.pulso { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); position: relative; flex: none; }
.pulso::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: pulso 1.6s var(--ease) infinite; }
@keyframes pulso { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* conferência em passos (procurando, CFM) */
.confere { display: grid; gap: 4px; margin-top: 28px; }
.confere-l { display: grid; grid-template-columns: 28px auto 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-1); font-size: 15px; }
.confere-l:last-child { border-bottom: 0; }
.confere-l img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.confere-l .cf-ic { width: 28px; height: 28px; display: grid; place-items: center; color: var(--text-3); }
.confere-l .cf-st { font-size: 13.5px; color: var(--text-3); text-align: right; }
.confere-l.ok .cf-st { color: var(--success); font-weight: 600; }
.confere-l.nao .cf-st { color: var(--text-3); }
.confere-l .gira-p { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-2); border-right-color: var(--accent); animation: gira .8s linear infinite; }
.desenha path, .desenha circle { stroke-dasharray: 60; stroke-dashoffset: 60; animation: desenha .5s var(--ease) forwards; }
@keyframes desenha { to { stroke-dashoffset: 0; } }

.dados { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 22px 0 0; padding: 16px 18px; border: 1px solid var(--border-1); border-radius: var(--radius-md); background: var(--bg-2); font-size: 14.5px; }
.dados dt { color: var(--text-3); }
.dados dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.selo { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 7px; border-radius: var(--radius-pill); background: var(--success-soft); color: var(--success); font-size: 13px; font-weight: 600; }
.selo .i { width: 16px; height: 16px; }

.ob-aviso { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--bg-3); font-size: 14px; color: var(--text-2); line-height: 1.45; }
.ob-aviso .i { color: var(--text-3); margin-top: 1px; }
.ob-aviso.erro { background: var(--danger-soft); }
.ob-aviso.erro .i { color: var(--danger); }

/* especialidade */
.esp-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.esp { display: grid; justify-items: center; align-content: center; gap: 10px; height: 108px; padding: 10px 6px; border-radius: var(--radius-md); border: 1px solid var(--border-1);
  background: var(--bg-1); color: var(--text-1); font-weight: 600; font-size: 14px; text-align: center; transition: border-color .15s, background .15s; }
.esp:hover { border-color: var(--border-2); }
.esp svg { width: 40px; height: 40px; fill: var(--accent); }
.esp[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }

.solta { width: 100%; background: var(--bg-1); font: inherit; display: grid; place-items: center; gap: 10px; padding: 22px; border: 1px dashed var(--border-2); border-radius: var(--radius-md); color: var(--text-2); text-align: center; cursor: pointer; }
.solta:hover { border-color: var(--accent); color: var(--text-1); }
.solta .i { width: 24px; height: 24px; color: var(--accent); }
.solta small { display: block; }
.ob-miuda .gira-p, p .gira-p { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.logo-escolhido { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--border-1); border-radius: var(--radius-md); }
.logo-escolhido img { width: 52px; height: 52px; object-fit: contain; border-radius: var(--radius-sm); background: var(--bg-3); }

.dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dia { height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: var(--bg-1); font-weight: 600; font-size: 14px; color: var(--text-2); }
.dia[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.horas { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 10px; align-items: center; font-size: 14.5px; color: var(--text-2); }
.horas input { height: 44px; padding: 0 10px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: var(--bg-1); font-size: 16px; font-variant-numeric: tabular-nums; width: 100%; }

.jeito { display: grid; border: 1px solid var(--border-1); border-radius: var(--radius-md); overflow: hidden; }
.jeito-l { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 16px; }
.jeito-l + .jeito-l { border-top: 1px solid var(--border-1); }
.jeito-l span { font-size: 13px; color: var(--text-3); grid-column: 1; }
.jeito-l b { font-weight: 600; font-size: 15px; grid-column: 1; }
.jeito-l .ob-link { grid-column: 2; grid-row: 1 / span 2; }
.jeito-l .ob-chips { grid-column: 1 / -1; margin-top: 8px; }

.mapa { width: 100%; border-collapse: collapse; font-size: 14px; }
.mapa th { text-align: left; font-size: 12.5px; color: var(--text-3); font-weight: 600; padding: 0 0 8px; }
.mapa td { padding: 8px 0; border-top: 1px solid var(--border-1); vertical-align: middle; }
.mapa td:nth-child(2) { color: var(--text-3); text-align: center; width: 36px; }
.mapa select { height: 36px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: var(--bg-1); padding: 0 8px; font-size: 14px; width: 100%; }
.mapa .ex { display: block; font-size: 12.5px; color: var(--text-3); }

.medidor { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.medidor i { width: 5px; border-radius: 3px; background: var(--accent); height: 6px; transition: height .08s linear; }
.mic-caixa { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--border-1); border-radius: var(--radius-md); }
.mic-caixa .op-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.texto-paciente { padding: 14px 16px; border-radius: var(--radius-md); background: var(--bg-2); border: 1px solid var(--border-1); font-size: 14.5px; line-height: 1.55; color: var(--text-1); }

/* ---------------------------------------------------------------- o palco (como fica) */
.ob-palco { position: sticky; top: 0; height: 100dvh; display: grid; place-items: center; padding: 40px; background: var(--palco); border-left: 1px solid var(--palco-linha); overflow: hidden; }
.obp { width: 100%; max-width: 520px; display: grid; gap: 14px; justify-items: center; }
.obp-rot { justify-self: start; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.obp-rot::before { content: ""; width: 20px; height: 1px; background: var(--ouro); }
.obp-leg { justify-self: start; font-size: 13.5px; color: var(--text-3); max-width: 46ch; line-height: 1.5; }

/* o cartão do consultório */
.obp-cartao { width: 100%; max-width: 440px; padding: 24px 24px 20px; border-radius: var(--radius-lg); background: var(--bg-1); border: 1px solid var(--border-1); box-shadow: var(--shadow-2); display: grid; gap: 18px; }
.obp-cartao-topo { display: flex; align-items: center; gap: 14px; }
.obp-av { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; }
.obp-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.obp-nome { font-size: 18px; font-weight: 650; line-height: 1.25; }
.obp-sub { font-size: 13.5px; color: var(--text-3); margin-top: 2px; }
.obp-linhas { display: grid; gap: 0; }
.obp-l { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--border-1); font-size: 14.5px; }
.obp-l .i { color: var(--text-3); }
.obp-l .obp-v { color: var(--text-1); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obp-l .obp-falta { display: block; height: 10px; width: 62%; border-radius: var(--radius-pill); background: var(--bg-3); }
.obp-l .obp-ok { color: var(--success); }
.obp-l.novo { animation: brilho 1.2s var(--ease); }
@keyframes brilho { 0% { background: var(--success-soft); } 100% { background: transparent; } }
.obp-cartao-pe { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-3); }
.obp-cartao-pe img { height: 16px; opacity: .85; }

/* o celular desenhado */
.obp-fone { width: 290px; height: 560px; border-radius: 40px; border: 9px solid #1d1418; background: var(--wa-fundo); box-shadow: var(--shadow-3); overflow: hidden; display: grid; grid-template-rows: auto 1fr; position: relative; }
.obp-fone-cab { display: flex; align-items: center; gap: 10px; padding: 34px 14px 10px; background: var(--bg-1); border-bottom: 1px solid var(--border-1); }
.obp-fone-cab .obp-av { width: 34px; height: 34px; font-size: 13px; }
.obp-fone-cab b { display: block; font-size: 14px; }
.obp-fone-cab small { display: block; font-size: 11.5px; color: var(--text-3); }
.obp-fone-fio { padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; }
.obp-bolha { align-self: flex-start; max-width: 86%; padding: 9px 11px 6px; border-radius: 10px; border-top-left-radius: 3px; background: var(--wa-bolha); box-shadow: var(--shadow-1); font-size: 13.5px; line-height: 1.45; color: var(--text-1); animation: entra .3s var(--ease) both; }
.obp-bolha .hora { display: block; text-align: right; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.obp-bolha-bt { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px -11px -6px; padding: 9px; border-top: 1px solid var(--border-1); color: #1f7aa8; font-weight: 600; font-size: 13.5px; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: calc(100% + 22px); }
.obp-fone-vazio { color: var(--text-3); font-size: 13px; text-align: center; margin: auto 0 40px; }
.obp-notif { position: absolute; left: 10px; right: 10px; top: 40px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--bg-1) 94%, transparent); box-shadow: var(--shadow-2);
  display: grid; grid-template-columns: auto 1fr; gap: 10px; animation: desce .4s var(--ease) both; }
.obp-notif img { width: 30px; height: 30px; border-radius: 7px; object-fit: contain; background: #fff; }
.obp-notif b { font-size: 13.5px; } .obp-notif small { display: block; font-size: 12.5px; color: var(--text-2); line-height: 1.35; }
@keyframes desce { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
.obp-app { padding: 150px 18px 18px; display: grid; gap: 14px; align-content: start; background: var(--bg-1); }
.obp-app-tit { font-size: 16px; font-weight: 650; text-align: center; }
.obp-app-card { padding: 14px; border: 1px solid var(--border-1); border-radius: var(--radius-md); font-size: 13.5px; line-height: 1.45; color: var(--text-2); display: grid; gap: 4px; }
.obp-app-card b { color: var(--text-1); }
.obp-app-bts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.obp-app-bts span { display: grid; place-items: center; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--border-2); font-weight: 600; font-size: 13.5px; }
.obp-app-bts span.sim { background: var(--success); border-color: var(--success); color: #fff; }
.obp-codigo { font-size: 34px; font-weight: 650; letter-spacing: .08em; text-align: center; font-variant-numeric: tabular-nums; }
.obp-renova { height: 4px; border-radius: var(--radius-pill); background: var(--bg-3); overflow: hidden; }
.obp-renova i { display: block; height: 100%; width: 60%; background: var(--accent); animation: renova 24s linear infinite; }
@keyframes renova { from { width: 100%; } to { width: 0; } }

/* o plano ao lado */
.obp-plano { width: 100%; max-width: 440px; padding: 26px; border-radius: var(--radius-lg); background: var(--bg-1); border: 1px solid var(--border-1); box-shadow: var(--shadow-2); display: grid; gap: 18px; }
.obp-plano-nome { font: 600 26px/1.1 var(--font-display); font-variation-settings: "SOFT" 30, "WONK" 0; }
.obp-plano-preco { font-size: 34px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.obp-plano-preco small { font-size: 15px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.obp-plano ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.obp-plano li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14.5px; line-height: 1.4; }
.obp-plano li .i { color: var(--success); margin-top: 1px; }
.obp-plano-pe { padding-top: 14px; border-top: 1px solid var(--border-1); font-size: 13px; color: var(--text-3); line-height: 1.5; }

/* o documento de verdade */
.obp-doc { width: 100%; max-width: 400px; aspect-ratio: 1 / 1.3; padding: 30px 30px 22px; background: var(--papel); color: #2A1620; border-radius: 4px; box-shadow: var(--shadow-3);
  display: grid; grid-template-rows: auto 1fr auto auto; gap: 16px; font-size: 12px; }
.obp-doc-cab { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1.5px solid #6D3746; }
.obp-doc-cab img { width: 44px; height: 44px; object-fit: contain; }
.obp-doc-cab .sem-logo { width: 44px; height: 44px; border-radius: 6px; border: 1px dashed #CFC2C6; }
.obp-doc-nome { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.obp-doc-crm { font-size: 11.5px; color: #55444B; margin-top: 2px; }
.obp-doc-tit { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-align: center; color: #6D3746; margin: 6px 0 10px; }
.obp-doc-corpo p { margin: 0 0 8px; line-height: 1.6; font-size: 12px; color: #2A1620; }
.obp-doc-ass { justify-self: center; text-align: center; min-width: 220px; }
.obp-doc-ass .linha { border-top: 1px solid #2A1620; margin-bottom: 6px; }
.obp-doc-ass b { display: block; font-size: 12px; }
.obp-doc-ass small { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11px; color: #3F6B50; font-weight: 600; }
.obp-doc-ass small .i { width: 13px; height: 13px; }
.obp-doc-rod { text-align: center; font-size: 11px; color: #6E5D63; padding-top: 10px; border-top: 1px solid #E7E1E3; line-height: 1.5; }
.obp-doc-rod.vazio { color: #CFC2C6; }
.obp-doc .realce { animation: realce 1.4s var(--ease); border-radius: 3px; }
@keyframes realce { 0% { background: rgba(185, 152, 90, .35); } 100% { background: transparent; } }

/* a semana */
.obp-semana { width: 100%; max-width: 500px; padding: 18px; border-radius: var(--radius-lg); background: var(--bg-1); border: 1px solid var(--border-1); box-shadow: var(--shadow-2); }
.obp-semana-cab { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.obp-semana-cab b { font-size: 15px; }
.obp-semana-cab span { font-size: 13px; color: var(--text-3); }
.obp-grade { display: grid; grid-template-columns: 34px repeat(7, 1fr); gap: 4px; font-size: 11.5px; }
.obp-grade .h { color: var(--text-3); text-align: right; padding-right: 4px; line-height: 16px; font-variant-numeric: tabular-nums; }
.obp-grade .d { text-align: center; font-weight: 600; color: var(--text-2); padding-bottom: 4px; font-size: 12px; }
.obp-grade .c { height: 16px; border-radius: 3px; background: var(--bg-3); }
.obp-grade .c.livre { background: var(--accent-strong); animation: pinta .3s var(--ease) both; animation-delay: calc(var(--i, 0) * 6ms); }
.obp-grade .c.pausa { background: repeating-linear-gradient(135deg, var(--bg-3) 0 4px, var(--bg-4) 4px 6px); }
@keyframes pinta { from { transform: scaleY(.2); opacity: 0; } to { transform: none; opacity: 1; } }

/* a ficha pequena */
.obp-ficha { width: 100%; max-width: 520px; border-radius: var(--radius-lg); background: var(--bg-1); border: 1px solid var(--border-1); box-shadow: var(--shadow-2); overflow: hidden; display: grid; grid-template-columns: 1fr 158px; }
.obp-ficha-cab { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border-1); }
.obp-ficha-cab .obp-av { width: 30px; height: 30px; font-size: 12px; }
.obp-ficha-cab b { font-size: 14px; } .obp-ficha-cab small { font-size: 12px; color: var(--text-3); margin-left: 6px; }
.obp-ficha-nota { padding: 16px; display: grid; gap: 10px; align-content: start; min-height: 260px; }
.obp-ficha-nota h5 { margin: 0; font-size: 12.5px; font-weight: 700; }
.obp-ficha-nota .tr { height: 7px; border-radius: var(--radius-pill); background: var(--bg-3); }
.obp-ficha-col { border-left: 1px solid var(--border-1); padding: 12px; display: grid; gap: 8px; align-content: start; background: var(--bg-2); }
.obp-ficha-col h6 { margin: 4px 0 0; font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.obp-ferr { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border-radius: var(--radius-sm); background: var(--bg-1); border: 1px solid var(--border-1); font-size: 12px; font-weight: 600; animation: entra .3s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.obp-ferr .i { width: 15px; height: 15px; color: var(--accent); }
.obp-ferr.ia { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.obp-tag { justify-self: start; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: var(--radius-pill); border: 1px solid var(--ouro); color: var(--ouro-txt); background: var(--ouro-soft); }

/* o fechar ao lado */
.obp-fechar { width: 100%; max-width: 420px; border-radius: var(--radius-lg); background: var(--bg-1); border: 1px solid var(--border-1); box-shadow: var(--shadow-2); overflow: hidden; }
.obp-fechar-tit { padding: 16px 18px; border-bottom: 1px solid var(--border-1); font: 600 18px/1.2 var(--font-display); font-variation-settings: "SOFT" 30, "WONK" 0; }
.obp-fechar-l { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border-1); font-size: 14px; }
.obp-fechar-l .i { color: var(--accent); }
.obp-fechar-l span { display: block; font-size: 12.5px; color: var(--text-3); }
.obp-fechar-l b { font-weight: 600; }
.obp-fechar-l.muda { animation: brilho 1.2s var(--ease); }
.obp-fechar-pe { padding: 14px 18px; display: flex; justify-content: flex-end; }
.obp-fechar-pe span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 14px; }

/* listas ao lado */
.obp-lista { width: 100%; max-width: 440px; border-radius: var(--radius-lg); background: var(--bg-1); border: 1px solid var(--border-1); box-shadow: var(--shadow-2); overflow: hidden; }
.obp-lista-cab { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 18px; border-bottom: 1px solid var(--border-1); }
.obp-lista-cab b { font-size: 15px; } .obp-lista-cab span { font-size: 13px; color: var(--text-3); }
.obp-lista-l { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--border-1); font-size: 14px; animation: entra .3s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.obp-lista-l:last-child { border-bottom: 0; }
.obp-lista-l .obp-av { width: 32px; height: 32px; font-size: 12px; }
.obp-lista-l small { display: block; font-size: 12.5px; color: var(--text-3); }
.obp-lista-l .obp-st { font-size: 12.5px; color: var(--text-3); }
.obp-lista-vazio { padding: 34px 18px; text-align: center; color: var(--text-3); font-size: 14px; line-height: 1.5; }

.obp-estilo { width: 100%; max-width: 460px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--bg-1); border: 1px solid var(--border-1); box-shadow: var(--shadow-2); font-size: 14px; line-height: 1.6; }
.obp-estilo h5 { margin: 12px 0 2px; font-size: 13.5px; font-weight: 700; }
.obp-estilo h5:first-child { margin-top: 0; }
.obp-estilo p, .obp-estilo ul { margin: 0; color: var(--text-1); }
.obp-estilo ul { padding-left: 18px; }

.obp-av-marca { background: #fff; border: 1px solid var(--border-1); }
.obp-av-marca img { width: 24px; height: 24px; border-radius: 0; object-fit: contain; }
.ico-bt { width: 36px; height: 36px; border: 0; border-radius: var(--radius-sm); background: none; display: grid; place-items: center; color: var(--text-2); }
.ico-bt:hover { background: var(--bg-3); }

/* ---------------------------------------------------------------- folha do celular (Ver como fica) */
.ob-ver { display: none; }
.ob-folha { position: fixed; z-index: var(--z-sheet); inset: 0; display: grid; grid-template-rows: 1fr auto; }
.ob-folha-veu { position: absolute; inset: 0; background: var(--scrim); animation: some .2s both reverse; }
.ob-folha-corpo { position: relative; grid-row: 2; max-height: 86%; overflow: auto; background: var(--palco); border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 14px 16px 24px; animation: sobe .26s var(--ease) both; }
.ob-folha-corpo .obp { margin: 0 auto; }
.ob-folha-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ob-folha-cab b { font-size: 15px; }
@keyframes sobe { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes some { from { opacity: 1; } to { opacity: 0; } }

/* ---------------------------------------------------------------- pop-ups de mentira (Google, planos) */
.veu { position: fixed; z-index: var(--z-modal); inset: 0; display: grid; place-items: center; padding: 16px; background: var(--scrim); animation: some .18s both reverse; }
.pop { width: min(440px, 100%); background: var(--bg-1); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); padding: 22px 22px 18px; display: grid; gap: 12px; animation: sobe .22s var(--ease) both; }
.pop h3 { margin: 0; font: 600 22px/1.2 var(--font-display); font-variation-settings: "SOFT" 30, "WONK" 0; }
.pop p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.pop-bts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.pop-bts .bt { height: 42px; font-size: 14.5px; }

/* ---------------------------------------------------------------- a festa da primeira nota */
.festa { position: fixed; z-index: var(--z-modal); inset: 0; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--bg-1) 86%, transparent); backdrop-filter: blur(6px); animation: some .25s both reverse; }
.festa-c { width: min(460px, 100%); text-align: center; display: grid; justify-items: center; gap: 14px; animation: sobe .35s var(--ease) both; }
.festa-ic { width: 84px; height: 84px; border-radius: 50%; background: var(--success-soft); display: grid; place-items: center; color: var(--success); }
.festa-ic svg { width: 46px; height: 46px; stroke-width: 1.6; }
.festa h2 { margin: 0; font: 600 30px/1.15 var(--font-display); font-variation-settings: "SOFT" 30, "WONK" 0; }
.festa p { margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
.festa ul { list-style: none; margin: 6px 0 4px; padding: 14px 18px; display: grid; gap: 8px; text-align: left; border: 1px solid var(--border-1); border-radius: var(--radius-md); background: var(--bg-1); width: 100%; }
.festa li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14.5px; animation: entra .3s var(--ease) both; animation-delay: calc(300ms + var(--i, 0) * 120ms); }
.festa li .i { color: var(--success); }
.confete { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confete i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; opacity: .9; animation: cai 2.4s var(--ease) forwards; }
@keyframes cai { to { transform: translateY(110vh) rotate(540deg); opacity: 0; } }

/* ---------------------------------------------------------------- celular (pela largura da tela) */
@media (max-width: 860px) {
  .ob { grid-template-columns: 1fr; }
  .ob-palco { display: none; }
  .ob-lado { padding: 14px 20px 0; }
  .ob-corpo { padding: 28px 0 20px; max-width: none; }
  .ob-pe { max-width: none; padding: 12px 0 calc(16px + env(safe-area-inset-bottom)); }
  .ob-pe .bt-pri { flex: 1; }
  .ob-ver { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; height: 40px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-2); background: var(--bg-1); font-weight: 600; font-size: 14px; color: var(--text-1); }
  .esp-grade { grid-template-columns: repeat(3, 1fr); }
  .esp { height: 96px; font-size: 13px; }
  .pix-caixa { grid-template-columns: 1fr; justify-items: start; }
  .linha-2 { grid-template-columns: 1fr 96px; }
}
@media (max-width: 420px) {
  .otp { gap: 6px; }
  .otp input { height: 52px; font-size: 21px; }
  .otp input:nth-child(3) { margin-right: 6px; }
  .esp-grade { grid-template-columns: repeat(2, 1fr); }
}

.ob-toast { position: fixed; z-index: var(--z-toast); left: 50%; bottom: 24px; transform: translate(-50%, 16px); max-width: min(440px, calc(100% - 32px)); padding: 11px 16px;
  border-radius: var(--radius-md); background: var(--text-1); color: var(--bg-1); font-size: 14px; line-height: 1.4; box-shadow: var(--shadow-3); opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s var(--ease); }
.ob-toast.on { opacity: 1; transform: translate(-50%, 0); }
:root[data-theme="dark"] .ob-marca, :root[data-theme="dark"] .obp-cartao-pe img { filter: brightness(0) invert(.92); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- Frente 1: a entrada (25/11/2026)
   As peças das telas do cadastro sem senha e do entrar sem senha (templates/onboarding/entrada.html)
   que o protótipo desenhava com estilo na linha. */
.ob-form { display: grid; gap: 14px; }
.ob-isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.campo-erro { font-size: 13px; color: var(--danger); line-height: 1.4; }
.campo [aria-invalid="true"] { border-color: var(--danger); }
.ob-aceite, .ob-sem-cert { margin-top: 20px; }
.ob-aceite { margin-top: 24px; }
.ob-captcha-status:empty { display: none; }
.ob-captcha-status.erro { color: var(--danger); }
.ob-check { width: 56px; height: 56px; margin-bottom: 22px; }
.ob-check svg { width: 30px; height: 30px; }
.ob-bloco + .ob-aviso, .ob-p + .ob-aviso { margin-top: 20px; }
.ob-aviso a { color: var(--accent); font-weight: 600; }
.ob-pe > form { display: contents; }
a.bt { color: inherit; }
a.bt.bt-pri { color: var(--on-accent); }
.bt[aria-busy="true"] { opacity: .7; pointer-events: none; }
button.opcao { font: inherit; }
.ob-link[hidden] { display: none; }
.obp-quem { min-width: 0; flex: 1; }
.obp-falta-nome { display: block; height: 14px; width: 58%; border-radius: var(--radius-pill); background: var(--bg-3); }
.obp-app-cheio { grid-row: 1 / -1; }
.obp-app-birdid { grid-row: 1 / -1; padding-top: 64px; }
.obp-app-logo { width: 52px; justify-self: center; }
.obp-centro { text-align: center; }
.obp-bolha-bt { cursor: default; }
/* `body.ob-pagina button { color: inherit }` (o reset da casca) vence `.bt-pri` e `.ob-link`: o texto do botão
   principal saía escuro no vinho e o link-botão saía cinza. O link "Voltar" sem sublinhado, como no protótipo. */
body.ob-pagina .bt-pri { color: var(--on-accent); }
body.ob-pagina .ob-link { color: var(--accent); font-weight: 600; }
a.ob-voltar { text-decoration: none; }

/* ---------------------------------------------------------------- a tela do problema (28/11/2026, direção B,
   docs/frontend/tela-de-problema-direcoes-2026-11-27.md): de quem é, o que ficou guardado, a linha marcada no palco */
.pb-dono { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin-top: 20px; padding: 12px 14px; border-radius: var(--radius-md);
  background: var(--bg-3); font-size: 14px; color: var(--text-2); line-height: 1.45; }
.pb-dono b { color: var(--text-1); font-weight: 650; }
.pb-dono .pb-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-1); color: var(--text-2); border: 1px solid var(--border-1); }
.pb-dono .pb-ic .i { width: 16px; height: 16px; }
.pb-dono .pb-ic img { width: 16px; height: 16px; }
.pb-dono.nosso { background: var(--gold-soft); }
.pb-dono.nosso .pb-ic { color: var(--accent); }
.pb-guardado { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13.5px; color: var(--text-3); }
.pb-guardado .i { color: var(--success); width: 15px; height: 15px; }
.pb-dono + .ob-bloco { margin-top: 20px; }
.pb-ajuda { margin-top: 12px; }
.obp-l.ruim .obp-v { color: var(--danger); font-weight: 600; }
.obp-l.ruim .i { color: var(--danger); }
.obp-l.espera .obp-v { color: var(--warning); font-weight: 600; }
.obp-l.espera .i { color: var(--warning); }
@media (max-width: 860px) {
  .pb-dono + .ob-bloco .opcoes { gap: 11px; }
  .pb-dono + .ob-bloco .opcao .op-ic { width: 36px; height: 36px; }
}
