/* =====================================================================
   PRONTUÁRIO (PORTAL DO PACIENTE) — css/acesso_portal.css
   Tela de entrada do paciente. Mesmo desenho do login da clínica
   (app/css/acesso.css), com a paleta verde esmeralda → turquesa,
   que combina com o ícone verde do app do prontuário.

   ÍNDICE
    1. Tokens — tema claro
    2. Tokens — tema escuro (aparelho escuro OU escolha manual)
    3. Base
    4. Painel da marca (plexo + logo no centro + pulso)
    5. Coluna do formulário
    6. Campos, botões e alertas
    7. Nova senha: barra de força e regras
    8. Barra animada do rodapé
    9. Responsivo — 1024px (painel vira faixa no topo)
   10. Responsivo — 768px (celular)
   11. Movimento reduzido
   12. Instalar o app (celular)
   13. Celular: tela inteira sem rolar (rodapé visível)
   14. App instalado (tela cheia, sem barra do navegador)
   ===================================================================== */

/* 1. TOKENS — CLARO */
:root {
    --px-bg: #F3F6FB;
    --px-surface: #FFFFFF;
    --px-surface-2: #EEF2F8;
    --px-line: #D9E1EC;
    --px-ink: #0B1324;
    --px-muted: #5B6878;
    --px-blue: #059669;
    --px-cyan: #14B8A6;
    --px-panel: #04110F;
    --px-panel-ink: #E8EEF8;
    --px-bad: #DC2626;
    --px-bad-soft: #FDECEC;
    --px-good: #16A34A;
    --px-good-soft: #E3F6EA;
    --px-warn: #B45309;
    --px-warn-soft: #FEF3C7;
    --px-grad: linear-gradient(135deg, #059669 0%, #14B8A6 100%);
    --px-shadow: 0 1px 2px rgba(11, 19, 36, .06), 0 12px 32px rgba(11, 19, 36, .08);
    --px-autofill: #FFFFFF;
    --px-f-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    --px-f-body: "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* 2. TOKENS — ESCURO */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --px-bg: #06100E; --px-surface: #0D1A17; --px-surface-2: #12231F; --px-line: #1F3631;
        --px-ink: #E6ECF5; --px-muted: #8BA8A0; --px-blue: #34D399; --px-cyan: #2DD4BF;
        --px-bad: #F87171; --px-bad-soft: #3A1515; --px-good: #4ADE80; --px-good-soft: #0F2E1C;
        --px-warn: #FBBF24; --px-warn-soft: #3A2A0A;
        --px-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .45);
        --px-autofill: #0D1A17;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --px-bg: #06100E; --px-surface: #0D1A17; --px-surface-2: #12231F; --px-line: #1F3631;
    --px-ink: #E6ECF5; --px-muted: #8BA8A0; --px-blue: #34D399; --px-cyan: #2DD4BF;
    --px-bad: #F87171; --px-bad-soft: #3A1515; --px-good: #4ADE80; --px-good-soft: #0F2E1C;
    --px-warn: #FBBF24; --px-warn-soft: #3A2A0A;
    --px-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .45);
    --px-autofill: #0D1A17;
    color-scheme: dark;
}

/* 3. BASE */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body.px-body {
    margin: 0;
    background: var(--px-bg);
    color: var(--px-ink);
    font-family: var(--px-f-body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.px-body :where(button, input) { font: inherit; color: inherit; }
.px-body :focus-visible { outline: 2px solid var(--px-blue); outline-offset: 2px; }
.px-body ::-webkit-scrollbar { width: 6px; }
.px-body ::-webkit-scrollbar-track { background: var(--px-bg); }
.px-body ::-webkit-scrollbar-thumb { background: var(--px-line); border-radius: 10px; }

.px {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

/* 4. PAINEL DA MARCA */
.px-panel {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--px-panel);
    color: var(--px-panel-ink);
    padding: 40px max(40px, env(safe-area-inset-left, 0px)) 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
#pxPlexo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.px-panel::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(60% 50% at 50% 42%, rgba(5, 150, 105, .16) 0%, rgba(4, 17, 15, 0) 70%);
}

.px-centro {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
}

/* Logo no centro da rede, com ondas de pulso saindo dela */
.px-hub { position: relative; width: 280px; height: 280px; display: grid; place-items: center; }
.px-hub::before {
    content: ""; position: absolute; inset: 6px; border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, .22) 0%, rgba(5, 150, 105, .10) 55%, rgba(4, 17, 15, 0) 72%);
}
.px-hub-onda {
    position: absolute; inset: 18px; border-radius: 50%;
    border: 1.5px solid rgba(45, 212, 191, .55);
    animation: px-onda 6s ease-out infinite;
}
.px-hub-onda-2 { animation-delay: -3s; }
@keyframes px-onda { from { transform: scale(.02); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.px-logo-svg { position: relative; width: 275px; height: auto; filter: drop-shadow(0 10px 24px rgba(5, 150, 105, .45)); }
.px-logo-pulso { stroke: var(--px-panel); }

.px-marca { font-family: var(--px-f-display); font-weight: 800; font-size: 30px; letter-spacing: -.025em; line-height: 1; margin-top: 4px; }
.px-marca span { background: var(--px-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.px-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #5EEAD4;
}
.px-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #2DD4BF; animation: px-ping 1.8s ease-out infinite; }
@keyframes px-ping { from { box-shadow: 0 0 0 0 rgba(45, 212, 191, .6); } to { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); } }
.px-frase {
    font-family: var(--px-f-display); font-weight: 800; color: var(--px-panel-ink);
    font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.03em;
    margin: 18px 0 0; max-width: none; white-space: nowrap;
}
.px-frase em { font-style: normal; background: var(--px-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.px-texto { margin: 0; opacity: .75; font-size: 15px; max-width: 44ch; }
.px-modulos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; max-width: 600px; }
.px-modulos span { display: inline-flex; align-items: center; gap: 7px; }
.px-modulos svg { width: 14px; height: 14px; color: #2DD4BF; flex: none; }

.px-base { display: flex; flex-direction: column; gap: 10px; }
.px-ecg { height: 50px; }
.px-ecg svg { width: 100%; height: 100%; display: block; overflow: visible; }
.px-ecg path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.px-ecg .trilho { stroke: rgba(150, 220, 200, .16); }
.px-ecg .pulso { stroke: url(#pxGradEcg); stroke-dasharray: 180 1400; animation: px-pulso 3.2s linear infinite; filter: drop-shadow(0 0 6px rgba(45, 212, 191, .7)); }
@keyframes px-pulso { from { stroke-dashoffset: 180; } to { stroke-dashoffset: -1400; } }
.px-licenca { font-size: 12.5px; opacity: .7; text-align: center; }
.px-licenca b { color: #FFFFFF; font-weight: 600; }

/* 5. COLUNA DO FORMULÁRIO */
.px-side {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 48px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px));
}
.px-tools { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
.px-iconbtn {
    width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--px-line);
    background: var(--px-surface); color: var(--px-ink); display: grid; place-items: center; cursor: pointer;
}
.px-iconbtn svg { width: 18px; height: 18px; }
.px-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }
.px-card h2 { font-family: var(--px-f-display); font-size: 28px; font-weight: 800; letter-spacing: -.025em; margin: 0; color: var(--px-ink); text-align: center; }
.px-sub { margin: -10px 0 0; color: var(--px-muted); font-size: 13.5px; text-align: center; }

.px-clinica {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border: 1px solid var(--px-line); background: var(--px-surface); border-radius: 16px;
}
.px-clinica .av {
    width: 42px; height: 42px; border-radius: 12px; background: var(--px-grad); color: #FFFFFF;
    display: grid; place-items: center; font-family: var(--px-f-display); font-weight: 800; font-size: 15px; flex: none;
}
.px-clinica div { min-width: 0; flex: 1; }
.px-clinica small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--px-muted); }
.px-clinica b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-clinica a { font-size: 12.5px; font-weight: 600; color: var(--px-blue); text-decoration: none; white-space: nowrap; }

/* Cartão da clínica mais discreto no computador (acima de 1024px):
   avatar e letras menores, e o nome quebra em até 2 linhas em vez de cortar com "…" */
@media (min-width: 1025px) {
    .px-clinica { gap: 10px; padding: 9px 12px; border-radius: 14px; }
    .px-clinica .av { width: 34px; height: 34px; border-radius: 10px; font-size: 12.5px; }
    .px-clinica small { font-size: 10px; letter-spacing: .12em; }
    .px-clinica b {
        font-size: 12px; font-weight: 600; line-height: 1.3;
        white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    }
    .px-clinica a { font-size: 12px; align-self: center; }
}

.px-foot { font-size: 12.5px; color: var(--px-muted); text-align: center; margin-top: 30px; }
.px-seguro { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10px; color: var(--px-muted); text-align: center; }
.px-seguro svg { width: 14px; height: 14px; color: var(--px-good); flex: none; }

/* 6. CAMPOS, BOTÕES E ALERTAS */
.px-form { display: flex; flex-direction: column; gap: 14px; }
.px-field label { display: block; font-size: 13px; font-weight: 600; color: var(--px-muted); margin-bottom: 6px; }
.px-input { position: relative; }
.px-input > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--px-muted); pointer-events: none; }
.px-input input {
    width: 100%; border: 1px solid var(--px-line); background: var(--px-surface); color: var(--px-ink);
    border-radius: 12px; padding: 13px 46px 13px 42px; font-size: 16px;
    transition: border-color .15s, box-shadow .15s;
}
.px-input input::placeholder { color: var(--px-muted); opacity: .8; font-size: 14px; }
.px-input input:focus { outline: none; border-color: var(--px-blue); box-shadow: 0 0 0 4px rgba(5, 150, 105, .16); }
.px-input input:-webkit-autofill,
.px-input input:-webkit-autofill:hover,
.px-input input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--px-autofill) inset !important;
    -webkit-text-fill-color: var(--px-ink) !important;
    caret-color: var(--px-ink);
    transition: background-color 5000s ease-in-out 0s;
}
.px-ver {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border: none; background: transparent; border-radius: 9px;
    color: var(--px-muted); display: grid; place-items: center; cursor: pointer;
}
.px-ver svg { width: 18px; height: 18px; }
.px-caps { display: none; align-items: center; gap: 6px; font-size: 12.5px; color: var(--px-warn); margin-top: 6px; font-weight: 600; }
.px-caps svg { width: 14px; height: 14px; }
.px-caps.on { display: flex; }

.px-linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.px-check { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--px-muted); margin: 0; }
.px-check input { width: 17px; height: 17px; accent-color: var(--px-blue); margin: 0; }
.px-link { color: var(--px-blue); text-decoration: none; font-weight: 600; }
.px-link:hover { text-decoration: underline; }
.px-voltar { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; }
.px-voltar svg { width: 16px; height: 16px; }

/* "Esqueci a senha" → "Não lembro meu e-mail" (recuperar pelo CPF/CNPJ) */
.px-link-campo { display: inline-block; margin-top: 8px; font-size: 13px; }
.px-dica {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--px-line);
    font-size: 13px; line-height: 1.5; color: var(--px-muted); text-align: justify;
}
.px-dica svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--px-blue); }
.px-dica b { color: var(--px-ink); font-weight: 600; }
.px-links-rodape { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--px-muted); }
.px-email-mascara {
    display: inline-block; margin-top: 6px;
    font-family: var(--px-f-body); font-size: 15px; font-weight: 600; letter-spacing: .01em;
    color: var(--px-blue); background: rgba(5, 150, 105, .10);
    padding: 4px 12px; border-radius: 999px;
}

.px-btn {
    position: relative; overflow: hidden; width: 100%;
    border: none; border-radius: 12px; padding: 14px;
    font-weight: 700; font-size: 15.5px; color: #FFFFFF; background: var(--px-grad);
    display: flex; align-items: center; justify-content: center; gap: 10px;
    cursor: pointer; text-decoration: none;
    box-shadow: 0 10px 24px -10px rgba(5, 150, 105, .7);
}
.px-btn:hover { color: #FFFFFF; }
.px-btn::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transform: translateX(-100%); transition: transform .6s;
}
.px-btn:hover::after { transform: translateX(100%); }
.px-btn svg { width: 18px; height: 18px; }
.px-btn[disabled] { opacity: .75; cursor: progress; }
.px-giro { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #FFFFFF; animation: px-girar .8s linear infinite; }
@keyframes px-girar { to { transform: rotate(360deg); } }

.px-alerta { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; text-align: justify; line-height: 1.5; }
.px-alerta svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.px-alerta.erro  { background: var(--px-bad-soft);  color: var(--px-bad); }
.px-alerta.ok    { background: var(--px-good-soft); color: var(--px-good); }
.px-alerta.aviso { background: var(--px-warn-soft); color: var(--px-warn); }

.px-estado { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.px-estado-icone { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; }
.px-estado-icone svg { width: 30px; height: 30px; }
.px-estado-icone.ok   { background: var(--px-good-soft); color: var(--px-good); }
.px-estado-icone.erro { background: var(--px-bad-soft);  color: var(--px-bad); }
.px-estado p { margin: 0; color: var(--px-muted); max-width: 36ch; font-size: 13.5px; line-height: 1.6; }

/* 7. NOVA SENHA */
.px-forca { height: 6px; border-radius: 999px; background: var(--px-surface-2); overflow: hidden; margin-top: 8px; }
.px-forca span { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .25s, background .25s; }
.px-regras { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12.5px; color: var(--px-muted); }
.px-regras li { display: flex; align-items: center; gap: 6px; }
.px-regras li i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--px-line); flex: none; transition: all .2s; }
.px-regras li.ok { color: var(--px-good); }
.px-regras li.ok i { background: var(--px-good); border-color: var(--px-good); box-shadow: inset 0 0 0 3px var(--px-surface); }

/* 8. BARRA ANIMADA DO RODAPÉ (agora nas cores da marca) */
.px-barra {
    position: fixed; left: 0; right: 0; bottom: 0; height: 3px; z-index: 50;
    background: linear-gradient(90deg, #059669, #14B8A6, #0EA5E9, #059669);
    background-size: 300% 100%; animation: px-barra 6s linear infinite;
}
@keyframes px-barra { to { background-position: 300% 0; } }

/* 9. RESPONSIVO — 1024px: painel vira faixa no topo */
@media (max-width: 1024px) {
    .px { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .px-panel { padding: max(24px, env(safe-area-inset-top, 0px)) 24px 16px; gap: 10px; }
    .px-centro { gap: 8px; }
    .px-hub { width: 200px; height: 200px; }
    .px-logo-svg { width: 170px; }
    .px-marca { font-size: 24px; }
    .px-frase, .px-texto, .px-modulos { display: none; }
    .px-ecg { height: 36px; }
    .px-licenca { display: none; }
    .px-side { justify-content: flex-start; padding-top: 32px; padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)); position: static; }
    /* Rodapé "PlexusClinic ©" sempre lá embaixo, perto da borda da tela */
    .px-foot { margin-top: auto; padding-top: 32px; }
    /* Botão de tema preso no canto da faixa do topo (antes ficava "flutuando" por cima do formulário ao rolar) */
    .px { position: relative; }
    .px-tools { position: absolute; z-index: 40; }
    /* Nome da clínica: até 2 linhas em vez de cortar com "…" */
    .px-clinica b {
        font-size: 12px; line-height: 1.3;
        white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    }
    .px-tools .px-iconbtn { background: rgba(10, 32, 28, .7); border-color: rgba(150, 220, 200, .25); color: #FFFFFF; }
}

/* 10. RESPONSIVO — 768px: celular */
@media (max-width: 768px) {
    .px-panel { padding: max(18px, env(safe-area-inset-top, 0px)) 16px 10px; }
    .px-hub { width: 160px; height: 160px; }
    .px-hub-onda { inset: 12px; }
    .px-logo-svg { width: 170px; }
    .px-marca { font-size: 21px; margin-top: 0; }
    .px-eyebrow { font-size: 10.5px; }
    .px-ecg { height: 28px; }
    .px-side { padding-top: 24px; }
    .px-card h2 { font-size: 24px; }
    .px-sub { font-size: 11.5px; }
    .px-regras { grid-template-columns: 1fr; }
    .px-foot { margin-top: auto; padding-top: 28px; }
    /* Texto justificado em caixas estreitas abre "buracos" entre as palavras; no celular fica alinhado à esquerda */
    .px-alerta, .px-dica { text-align: left; }
    .px-clinica { padding: 10px 12px; gap: 10px; }
    .px-clinica .av { width: 38px; height: 38px; font-size: 14px; }
    .px-clinica b { font-size: 12px; }
    .px-input input::placeholder { font-size: 12px; }
}

/* 11. MOVIMENTO REDUZIDO */
@media (prefers-reduced-motion: reduce) {
    .px-body *, .px-body *::before, .px-body *::after { animation: none !important; transition: none !important; }
}

/* 12. INSTALAR O APP (celular, acima do "Olá")
   Fica sempre visível no celular até o app ser instalado. */
.px-instalar {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 16px;
    border: 1px solid var(--px-line);
    background: linear-gradient(135deg, rgba(5, 150, 105, .10), rgba(6, 182, 212, .10)), var(--px-surface);
    animation: px-surgir .45s ease-out both;
}
.px-instalar.aberto { align-items: flex-start; }
.px-instalar-icone { width: 42px; height: 42px; border-radius: 11px; flex: none; object-fit: cover; box-shadow: 0 4px 12px rgba(5, 150, 105, .25); }
.px-instalar-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; line-height: 1.45; color: var(--px-muted); }
.px-instalar-titulo { font-family: var(--px-f-display); font-size: 14px; font-weight: 700; color: var(--px-ink); }
.px-instalar-texto b { color: var(--px-ink); font-weight: 600; }
.px-instalar-texto .ic { display: inline-block; width: 15px; height: 15px; vertical-align: -3px; color: var(--px-blue); }
.px-instalar-btn {
    flex: none; border: none; border-radius: 10px; padding: 9px 14px; cursor: pointer;
    background: var(--px-grad); color: #FFFFFF; font-size: 13px; font-weight: 700;
    box-shadow: 0 6px 16px -8px rgba(5, 150, 105, .8);
}
.px-instalar-dica { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-instalar.aberto .px-instalar-dica { white-space: normal; overflow: visible; }
@media (max-width: 768px) {
    .px-instalar { gap: 10px; padding: 12px; }
    .px-instalar-dica { font-size: 12px; }
    .px-instalar-btn { padding: 9px 12px; }
}
.px-instalar.aberto .px-instalar-btn { background: var(--px-surface-2); color: var(--px-ink); box-shadow: none; }
@keyframes px-surgir { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 13. CELULAR: TUDO CABE NA TELA, COM O RODAPÉ VISÍVEL SEM ROLAR
   Faixa da logo mais baixa e espaços verticais mais curtos. Em celulares
   bem pequenos (ex.: iPhone SE) ainda pode rolar um pouco. */
@media (max-width: 768px) {
    .px-panel { padding-bottom: 4px; gap: 6px; }
    .px-hub { width: 120px; height: 120px; }
    .px-hub-onda { inset: 8px; }
    .px-logo-svg { width: 130px; }
    .px-ecg { height: 20px; }
    .px-side { padding-top: 16px; padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
    .px-card { gap: 12px; }
    .px-sub { margin-top: -6px; }
    .px-form { gap: 10px; }
    .px-field label { margin-bottom: 4px; }
    .px-input input { padding-top: 11px; padding-bottom: 11px; }
    .px-btn { padding: 12px; }
    .px-instalar { padding: 10px 12px; }
    .px-foot { padding-top: 14px; }
}

/* 14. APP INSTALADO (aberto pelo ícone da tela inicial)
   Sem a barra do navegador a tela fica mais alta, e o rodapé "colado no fim
   da tela" descia demais (no Android chegava a ficar escondido, exigindo rolar).
   No app, o rodapé vem logo depois do conteúdo e a página nunca passa da tela. */
@media (display-mode: standalone) {
    .px { min-height: 0; }
    .px-side { padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
    .px-foot { margin-top: 28px; padding-top: 0; }
}
