/* [NOME] - login e area de membros */

/* ---------- Login ---------- */
.pagina-entrar { min-height: 100dvh; background: var(--bg-alt); }
.entrar { min-height: 100dvh; display: grid; align-content: center; justify-items: center; gap: 22px; padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); }
.entrar-marca { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font: 600 21px/1 var(--font-display); letter-spacing: -.02em; }
.entrar-marca:hover { text-decoration: none; }
.entrar-cartao { width: 100%; max-width: 400px; background: var(--card); border-radius: 24px; padding: 32px 28px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.entrar-cartao h1 { font-size: 32px; font-weight: 700; }
.entrar-sub { color: var(--fg-2); margin-top: -8px; }
.entrar-cartao form { display: grid; gap: 14px; margin-top: 4px; }
.entrar-nota { color: var(--fg-3); font-size: 13px; text-align: center; }
.entrar-voltar { color: var(--fg-2); font-size: 15px; }

.entrar-esqueci { justify-self: center; font-size: 15px; font-weight: 500; color: var(--accent); padding: 4px 0; }
.nota-longa { margin-top: 0; font-size: 15px; line-height: 1.45; }

/* ---------- Dica de forca da senha ---------- */
.forca { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 2px; }
.forca i { display: block; height: 5px; border-radius: 3px; background: var(--line); transition: background .2s; }
.forca[data-nivel="1"] i:nth-child(-n+1) { background: var(--danger); }
.forca[data-nivel="2"] i:nth-child(-n+2) { background: var(--warn); }
.forca[data-nivel="3"] i:nth-child(-n+3) { background: var(--ok); }
.forca[data-nivel="4"] i { background: var(--ok); }
.forca-txt { font-size: 13px; line-height: 1.4; color: var(--fg-3); min-height: 1.4em; }
.forca-txt.n0 { color: var(--danger); }
.forca-txt.n1, .forca-txt.n2 { color: var(--warn); }
.forca-txt.n3, .forca-txt.n4 { color: var(--ok); }
.ver-senha { appearance: none; border: 0; background: none; color: var(--accent); font: 500 14px/1 var(--font); padding: 4px 0; justify-self: end; margin-top: -2px; cursor: pointer; }

/* ---------- Estrutura do app ---------- */
body.app-body { height: 100dvh; overflow: hidden; background: var(--bg-alt); overscroll-behavior: none; }
.app { height: 100dvh; display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; background: var(--bg); position: relative; }
@media (min-width: 800px) { .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }

.topo { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) 16px 10px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); }
.topo-titulo { display: flex; align-items: center; gap: 10px; font: 600 19px/1 var(--font-display); letter-spacing: -.02em; }
.pilula { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--fg-2); padding: 6px 11px; border-radius: 980px; background: var(--bg-alt); white-space: nowrap; }
.pilula i { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-3); display: block; }
.pilula.on i { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.pilula.erro i { background: var(--danger); }

.conteudo { flex: 1; min-height: 0; position: relative; }
.aba { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 16px 24px; }
.aba[hidden] { display: none; }
#aba-assistente { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
#aba-assistente[hidden] { display: none; }

.abas { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); }
.abas button { appearance: none; border: 0; background: none; color: var(--fg-3); font: 500 11px/1 var(--font); letter-spacing: 0; display: grid; justify-items: center; gap: 4px; padding: 9px 0 8px; min-height: 52px; cursor: pointer; }
.abas button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.abas button[aria-selected="true"] { color: var(--accent); }
.abas .selo { position: relative; }
.abas .selo b { position: absolute; top: -4px; right: -9px; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px; background: var(--danger); color: #fff; font: 600 11px/16px var(--font); text-align: center; }
.abas .selo b[hidden] { display: none; }

/* ---------- Chat ---------- */
.chat { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.chat-vazio { margin: auto; text-align: center; color: var(--fg-2); max-width: 300px; display: grid; gap: 10px; justify-items: center; padding: 20px 0; }
.chat-vazio .marca-svg { opacity: .9; }
.chat-vazio h2 { font-size: 21px; color: var(--fg); }
.dia { align-self: center; font-size: 12px; color: var(--fg-3); margin: 10px 0 4px; font-weight: 500; }
.bolha { max-width: 82%; padding: 9px 14px; border-radius: 20px; font-size: 16px; line-height: 1.38; white-space: pre-wrap; overflow-wrap: anywhere; animation: entra .22s ease both; }
.bolha.eu { align-self: flex-end; background: var(--accent); color: var(--accent-fg); border-bottom-right-radius: 6px; }
.bolha.ia { align-self: flex-start; background: var(--bg-alt); color: var(--fg); border-bottom-left-radius: 6px; }
.bolha.sis { align-self: center; max-width: 92%; background: none; color: var(--fg-3); font-size: 13px; text-align: center; padding: 4px 8px; }
.meta { font-size: 11px; color: var(--fg-3); margin: 0 6px 4px; }
.meta.eu { align-self: flex-end; }
.meta.erro { color: var(--danger); }
.digitando { align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 16px; border-radius: 20px; border-bottom-left-radius: 6px; background: var(--bg-alt); }
.digitando[hidden] { display: none; }
.digitando i { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-3); animation: pulso 1.2s infinite ease-in-out; }
.digitando i:nth-child(2) { animation-delay: .15s; } .digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes pulso { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.faixa-offline { flex: none; margin: 0 16px 8px; }
.faixa-offline[hidden] { display: none; }

.aprovacoes { flex: none; display: grid; gap: 8px; padding: 0 12px; }
.aprovacoes:empty { display: none; }
.apr { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 10px; animation: entra .25s ease both; }
.apr-tit { font-size: 12px; font-weight: 600; color: var(--warn); text-transform: uppercase; letter-spacing: .04em; }
.apr-txt { font-size: 16px; line-height: 1.38; overflow-wrap: anywhere; }
.apr-bt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.compositor { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: var(--bg); }
.compositor textarea { flex: 1; resize: none; font: inherit; font-size: 17px; line-height: 1.35; color: var(--fg); background: var(--bg-alt); border: 1px solid transparent; border-radius: 22px; padding: 10px 16px; max-height: 140px; min-height: 44px; }
.compositor textarea:focus { outline: none; border-color: var(--accent); background: var(--bg); }
.enviar { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; cursor: pointer; transition: transform .15s, opacity .2s; }
.enviar:active { transform: scale(.94); }
.enviar[disabled] { opacity: .35; cursor: default; }
.enviar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Respostas do Assistente formatadas (mesmo subconjunto do computador) ---------- */
.bolha.md { white-space: normal; max-width: 88%; }
.bolha.md p { margin: 0 0 8px; }
.bolha.md p:last-child, .bolha.md ul:last-child, .bolha.md ol:last-child { margin-bottom: 0; }
.bolha.md ul, .bolha.md ol { margin: 0 0 8px; padding-left: 22px; }
.bolha.md li { margin: 0 0 4px; }
.bolha.md li:last-child { margin-bottom: 0; }
.bolha.md li::marker { color: var(--fg-3); }
.bolha.md strong { font-weight: 600; }
.bolha.md code { font: 14px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: color-mix(in srgb, var(--fg) 8%, transparent); padding: 1px 5px; border-radius: 6px; overflow-wrap: anywhere; }

/* respostas rapidas (linha OPCOES) */
.opcoes { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; margin: 2px 0 6px; animation: entra .22s ease both; }
.opcoes[hidden] { display: none; }
.opcao { appearance: none; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: var(--bg); color: var(--accent); font: 500 15px/1.2 var(--font); border-radius: 980px; padding: 0 16px; min-height: 44px; cursor: pointer; transition: background .15s, transform .15s; }
.opcao:active { transform: scale(.97); background: var(--accent-soft); }
.opcao.p { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }

/* revisao de pendentes do WhatsApp */
.revisao { align-self: stretch; display: grid; gap: 8px; margin: 2px 0 8px; animation: entra .25s ease both; }
.rv-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 8px; }
.rv-topo { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rv-nome { font-size: 16px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-hora { flex: none; font-size: 13px; color: var(--fg-3); }
.rv-chip { flex: none; margin-left: auto; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 980px; white-space: nowrap; }
.rv-chip.responder { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.rv-chip.verificar { background: var(--bg-alt); color: var(--fg-2); }
.rv-chip.nao { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.rv-ctx { font-size: 15px; line-height: 1.38; color: var(--fg-2); overflow-wrap: anywhere; }
.rv-rot { font-size: 12px; font-weight: 600; color: var(--fg-3); text-transform: uppercase; letter-spacing: .04em; }
.rv-sug { font-size: 16px; line-height: 1.38; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg-alt); overflow-wrap: anywhere; white-space: pre-wrap; }
.rv-alt { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-alt .chip { min-height: 36px; padding: 8px 12px; font-size: 14px; }
.rv-bt { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-bt .btn.sm { min-height: 44px; }
.rv-msg { font-size: 13px; color: var(--fg-2); }
.rv-msg:empty { display: none; }
.rv-mais { border-radius: var(--radius); }
.rv-mais summary { cursor: pointer; color: var(--accent); font-size: 15px; font-weight: 500; padding: 10px 4px; min-height: 44px; display: flex; align-items: center; }
.rv-mais[open] { display: grid; gap: 8px; }
.rv-rodape { font-size: 13px; color: var(--fg-3); padding: 0 4px; }

/* microfone */
.mic { flex: none; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg-alt); color: var(--fg-2); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, transform .15s; -webkit-tap-highlight-color: transparent; }
.mic:active { transform: scale(.94); }
.mic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mic[data-estado="ouvindo"] { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.mic[data-estado="erro"] { box-shadow: inset 0 0 0 1.5px var(--danger); color: var(--danger); }
.voz-dica { flex: none; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 max(16px, env(safe-area-inset-right)) 6px max(16px, env(safe-area-inset-left)); font-size: 13px; color: var(--fg-2); }
.voz-dica[hidden] { display: none; }
.voz-dica.erro { color: var(--danger); }
.voz-dica.ouvindo::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: ouvindo 1.1s ease-in-out infinite; }
@keyframes ouvindo { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 45%, transparent); } 50% { opacity: .55; box-shadow: 0 0 0 5px transparent; } }

/* ---------- Lembretes ---------- */
.grupo { margin-top: 22px; }
.grupo h2 { font-size: 13px; font-weight: 600; color: var(--fg-2); text-transform: uppercase; letter-spacing: .05em; margin: 0 4px 8px; }
.lista { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.item:first-child { border-top: 0; }
.item:active { background: var(--bg-alt); }
.bola { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--fg-3); background: none; padding: 0; cursor: pointer; display: grid; place-items: center; color: transparent; transition: background .2s, border-color .2s, color .2s; }
.bola:hover { border-color: var(--accent); }
.bola svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.item.feito .bola { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.item.feito .item-tit { text-decoration: line-through; color: var(--fg-3); }
.item-corpo { flex: 1; min-width: 0; display: grid; gap: 2px; }
.item-tit { font-size: 17px; overflow-wrap: anywhere; }
.item-sub { font-size: 13px; color: var(--fg-2); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.item-sub .atraso { color: var(--danger); font-weight: 500; }
.vazio { color: var(--fg-2); text-align: center; padding: 56px 24px; display: grid; gap: 6px; }
.vazio strong { font: 600 21px/1.2 var(--font-display); color: var(--fg); }
.fab { position: fixed; right: max(18px, calc(50% - 380px + 18px)); bottom: calc(76px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-fg); box-shadow: 0 6px 20px rgba(0, 113, 227, .38); display: grid; place-items: center; cursor: pointer; z-index: 5; transition: transform .15s; }
.fab:active { transform: scale(.94); }
.fab[hidden] { display: none; }
.fab svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.aba-fim { height: 90px; }

/* ---------- Folha (formulario) ---------- */
.fundo { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 20; animation: fade .2s ease both; }
.fundo[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.folha { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; max-width: 560px; margin: 0 auto; max-height: 92dvh; overflow-y: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 8px 20px max(22px, env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.25); animation: sobe .28s cubic-bezier(.2,.8,.2,1) both; }
.folha[hidden] { display: none; }
@keyframes sobe { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.folha-puxador { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 14px; }
.folha h2 { font-size: 22px; margin-bottom: 14px; }
.folha form { display: grid; gap: 14px; }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { appearance: none; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: 500 15px/1 var(--font); border-radius: 980px; padding: 10px 14px; min-height: 40px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.interruptor { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 2px; font-size: 16px; }
.interruptor input { appearance: none; width: 51px; height: 31px; border-radius: 16px; background: var(--line); position: relative; cursor: pointer; flex: none; transition: background .2s; }
.interruptor input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.interruptor input:checked { background: var(--ok); }
.interruptor input:checked::after { transform: translateX(20px); }
.folha-bt { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-top: 4px; }
.folha-bt .dir0 { display: flex; flex-wrap: wrap; gap: 8px; }
.folha-bt .dir { display: flex; gap: 8px; margin-left: auto; }
.rot { font-size: 13px; font-weight: 500; color: var(--fg-2); margin-bottom: 6px; display: block; }
.erro-campo { color: var(--danger); font-size: 13px; }

/* ---------- Ajustes ---------- */
.cartao { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 16px; display: grid; gap: 12px; }
.cartao h2 { font-size: 20px; }
.cartao p { color: var(--fg-2); font-size: 15px; }
.cartao form { display: grid; gap: 12px; }
.cartao .linha { display: flex; flex-wrap: wrap; gap: 8px; }
.disp { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.disp:first-of-type { border-top: 0; }
.disp-nome { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.disp-nome small { display: block; color: var(--fg-3); font-size: 12px; }
.tag { font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 980px; background: var(--bg-alt); color: var(--fg-2); white-space: nowrap; }
.tag.on { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.conta-id { color: var(--fg); font-weight: 500; }

/* ---------- Aviso rapido ---------- */
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; max-width: min(92vw, 440px); background: var(--fg); color: var(--bg); padding: 11px 18px; border-radius: 980px; font-size: 15px; box-shadow: 0 8px 30px rgba(0,0,0,.3); animation: entra .2s ease both; }
.toast[hidden] { display: none; }

/* ---------- Instalador para Windows ---------- */
.faixa-baixar { flex: none; display: flex; align-items: center; gap: 12px; margin: 10px 12px 0; padding: 12px 10px 12px 14px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); animation: entra .25s ease both; }
.faixa-baixar[hidden] { display: none; }
.faixa-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; }
.faixa-ico svg { width: 20px; height: 20px; fill: currentColor; }
.faixa-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.faixa-txt strong { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.faixa-txt small { font-size: 12px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.faixa-x { flex: none; appearance: none; border: 0; background: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--fg-2); cursor: pointer; }
.faixa-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.win-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.win-notas { color: var(--fg); }
.win-integridade { font-size: 14px; color: var(--fg-2); }
.win-integridade summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.win-integridade p { margin-top: 8px; font-size: 14px; }
.win-integridade code, .win-hash { font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; color: var(--fg); }
.win-hash { display: block; padding: 8px 10px; margin-top: 6px; }

/* ---------- Alarme de lembrete (tela cheia, como no computador) ---------- */
.alarme { position: fixed; inset: 0; z-index: 60; min-height: 100vh; min-height: 100dvh; background: #0b1220; color: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  -webkit-user-select: none; user-select: none; animation: fade .25s ease both; }
.alarme[hidden] { display: none; }
.alarme-fundo { position: absolute; inset: -25%; pointer-events: none;
  background: radial-gradient(48% 42% at 24% 30%, rgba(0,113,227,.85), transparent 70%), radial-gradient(42% 40% at 78% 24%, rgba(90,200,250,.6), transparent 70%),
              radial-gradient(40% 38% at 70% 78%, rgba(175,82,222,.5), transparent 70%), radial-gradient(46% 44% at 22% 82%, rgba(0,113,227,.55), transparent 70%);
  animation: deriva 30s ease-in-out infinite alternate; }
@keyframes deriva { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }
.alarme-caixa { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; max-width: min(640px, 100%); text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.alarme-rot { font-size: 15px; font-weight: 600; letter-spacing: .02em; padding: 5px 14px; border-radius: 980px; background: rgba(255,255,255,.22); }
.alarme-hora { font: 600 clamp(64px, 22vw, 96px)/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.alarme-texto { font: 600 clamp(24px, 7vw, 32px)/1.2 var(--font-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.alarme-nota { font-size: 17px; line-height: 1.4; opacity: .85; overflow-wrap: anywhere; }
.alarme-nota[hidden] { display: none; }
.alarme-bt { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.alarme-bt button { appearance: none; min-height: 50px; padding: 0 24px; border: 0; border-radius: 980px; font: 600 17px/1 var(--font); color: #fff; background: rgba(255,255,255,.24);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); cursor: pointer; text-shadow: none; transition: background .15s, transform .15s; }
.alarme-bt button:active { transform: scale(.97); background: rgba(255,255,255,.36); }
.alarme-bt button.p { background: #0071e3; flex-basis: 100%; max-width: 320px; }
.alarme-bt button.p:active { background: #0a84ff; }
.alarme-bt button[disabled] { opacity: .5; }
.alarme-bt button:focus-visible { outline: 2px solid rgba(255,255,255,.75); outline-offset: 3px; }
.alarme-msg { font-size: 15px; color: #ffd0cc; min-height: 0; }
.alarme-msg:empty { display: none; }
.alarme-som { font-size: 14px; opacity: .8; }
.alarme-som[hidden] { display: none; }
/* aviso antecipado: cartao menor sobre a tela (segue o tema claro ou escuro) */
.alarme.mini { background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); color: var(--fg); }
.alarme.mini .alarme-fundo, .alarme.mini .alarme-hora { display: none; }
.alarme.mini .alarme-caixa { background: var(--card); border-radius: 22px; padding: 26px 24px; box-shadow: 0 24px 64px rgba(0,0,0,.4); width: min(420px, 100%); text-shadow: none; gap: 10px; }
.alarme.mini .alarme-rot { background: var(--accent-soft); color: var(--accent); }
.alarme.mini .alarme-texto { font-size: 22px; }
.alarme.mini .alarme-nota { color: var(--fg-2); opacity: 1; font-size: 15px; }
.alarme.mini .alarme-bt { margin-top: 8px; }
.alarme.mini .alarme-bt button { background: var(--accent-soft); color: var(--accent); -webkit-backdrop-filter: none; backdrop-filter: none; min-height: 46px; }
.alarme.mini .alarme-bt button.p { background: var(--accent); color: var(--accent-fg); }
.alarme.mini .alarme-msg { color: var(--danger); }
