/* ==========================================================================
   prototipo.css — folha ÚNICA das telas internas.
   Autossuficiente: o base.html novo NÃO carrega style.css nem os app-v*.css.
   Nada do visual antigo sobra.
   ========================================================================== */

:root {
  --rose: #b5615a;
  --rose-dark: #8f4a44;
  --gold: #c9a227;
  --gold-claro: #d8b64a;
  --bg: #fff7f3;
  --text: #3a2c2a;
  --text-suave: #6d5b58;
  --muted: #8a7a77;
  --border: #eadcd8;
  --danger: #b23b3b;
  --verde: #2f9e6b;
  --verde-escuro: #1f7a50;

  --vidro: rgba(255, 255, 255, 0.6);
  --vidro-borda: rgba(255, 255, 255, 0.7);
  --vidro-sombra: 0 4px 18px rgba(58, 44, 42, 0.07);

  --tabbar-h: 58px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 80% at 12% 0%, rgba(181, 97, 90, 0.32), transparent 60%),
    radial-gradient(100% 70% at 100% 24%, rgba(201, 162, 39, 0.30), transparent 62%),
    radial-gradient(110% 80% at 50% 100%, rgba(143, 74, 68, 0.24), transparent 65%),
    repeating-linear-gradient(135deg, rgba(58, 44, 42, 0.035) 0 2px, transparent 2px 11px);
  background-attachment: fixed;
}

a { color: var(--rose); text-decoration: none; }
a:hover { color: var(--rose-dark); }

h1 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 0.7rem; }
h2 { font-size: 1rem; font-weight: 600; margin: 0 0 0.6rem; }
p { margin: 0 0 0.7rem; }

/* ---------- estrutura ---------- */

.topo {
  position: sticky;
  top: calc(var(--safe-top) + 0.6rem);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 48px;
  padding: 0 1rem;
  margin: calc(var(--safe-top) + 0.6rem) calc(0.75rem + var(--safe-left)) 0 calc(0.75rem + var(--safe-right));
  border-radius: 999px;
  background: linear-gradient(100deg, var(--rose) 0%, var(--rose-dark) 45%, var(--gold-claro) 100%);
  box-shadow: 0 8px 20px rgba(143, 74, 68, 0.25);
  color: #fff;
}

.topo-voltar,
.topo-acao {
  color: #fff;
  background: none;
  border: none;
  padding: 0;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  width: 24px;
  text-align: left;
}

.topo-titulo {
  flex: 1;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topo-pilula {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.conteudo {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0.85rem 0.75rem calc(var(--tabbar-h) + var(--safe-bottom) + 1.5rem);
}

.pilha { display: flex; flex-direction: column; gap: 0.7rem; }
.pilha > .secao:not(:first-child) { margin-top: 0.35rem; }

/* ---------- barra de abas ---------- */

.abas {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  padding-bottom: var(--safe-bottom);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--vidro-borda);
}

.abas a {
  flex: 1;
  min-height: var(--tabbar-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 2px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 500;
  position: relative;
}

.abas a svg { width: 21px; height: 21px; }
.abas a.ativa { color: var(--rose); font-weight: 600; }

.aba-badge {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(4px);
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- cartões ---------- */

.cartao {
  background: var(--vidro);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--vidro-borda);
  box-shadow: var(--vidro-sombra);
  border-radius: 18px;
  padding: 1rem;
}

.cartao-destaque {
  background: linear-gradient(120deg, rgba(181, 97, 90, 0.12), rgba(201, 162, 39, 0.12));
  border: 1px solid var(--vidro-borda);
  border-radius: 18px;
  padding: 1rem;
}

.cartao-alerta {
  background: rgba(178, 59, 59, 0.08);
  border: 1px solid rgba(178, 59, 59, 0.2);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #8f3030;
}

.rotulo {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

.secao {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 0.25rem;
  margin: 0.35rem 0 0;
}

.suave { color: var(--muted); }
.mini { font-size: 0.76rem; line-height: 1.5; }

.vazio { text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: 0.88rem; }

/* ---------- linhas de lista ---------- */

.linha {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  color: inherit;
  background: var(--vidro);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--vidro-borda);
  box-shadow: var(--vidro-sombra);
}

.linha-corpo { flex: 1; min-width: 0; display: block; }
.linha-titulo { display: block; font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.linha-sub { display: block; font-size: 0.76rem; color: var(--muted); line-height: 1.45; }
.linha-hora { font-weight: 700; font-size: 0.85rem; color: var(--rose); width: 44px; flex: none; }
.linha-seta { color: #c4b2ad; font-size: 1.1rem; }

.divisor {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(234, 220, 216, 0.7);
}
.divisor:last-child { border-bottom: none; }

/* ---------- avatar e selos ---------- */

.avatar {
  width: 48px; height: 48px; flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
}
.avatar-p { width: 40px; height: 40px; font-size: 0.82rem; }
.avatar-g { width: 54px; height: 54px; font-size: 1.1rem; }

.selo {
  font-size: 0.63rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.selo-ok { background: rgba(47, 158, 107, 0.14); color: var(--verde-escuro); }
.selo-espera { background: rgba(201, 162, 39, 0.18); color: #8a6c12; }
.selo-alerta { background: rgba(178, 59, 59, 0.13); color: #a03030; }
.selo-neutro { background: rgba(58, 44, 42, 0.08); color: var(--muted); }

.ponto { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ponto-ok { background: var(--verde); }
.ponto-alerta { background: var(--danger); }

/* ---------- botões ---------- */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--vidro-borda);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  font: 600 0.85rem/1.2 "Inter", sans-serif;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.botao:active { transform: scale(0.98); }
.botao-bloco { width: 100%; }

.botao-rosa { background: var(--rose); border-color: var(--rose); color: #fff; }
.botao-rosa:hover { background: var(--rose-dark); border-color: var(--rose-dark); color: #fff; }

.botao-verde { background: var(--verde); border-color: var(--verde); color: #fff; }

.botao-escuro {
  background: var(--text); border-color: var(--text); color: #fff;
  border-radius: 16px; padding: 0.9rem; font-size: 0.92rem; font-weight: 700;
}

.botao-suave { background: rgba(181, 97, 90, 0.1); border-color: transparent; color: var(--rose-dark); }

.botao-p { padding: 0.5rem 0.8rem; font-size: 0.78rem; border-radius: 10px; }

.botao-perigo { background: transparent; border-color: rgba(178, 59, 59, 0.35); color: var(--danger); }

.botao-texto {
  background: none; border: none; padding: 4px 6px;
  color: #a89793; font: 500 0.74rem "Inter", sans-serif; cursor: pointer;
}

.dupla { display: flex; gap: 0.55rem; }
.dupla > * { flex: 1; }

/* ---------- formulários ---------- */

label { display: block; font-size: 0.72rem; color: var(--muted); margin-bottom: 0.75rem; }

input[type="text"], input[type="number"], input[type="email"], input[type="password"],
input[type="date"], input[type="time"], input[type="datetime-local"], input[type="tel"],
select, textarea {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.7rem 0.75rem;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  font: 600 0.88rem/1.3 "Inter", sans-serif;
  outline: none;
}
textarea { font-weight: 400; line-height: 1.55; resize: none; }
input:focus, select:focus, textarea:focus { border-color: rgba(181, 97, 90, 0.45); }
input[type="file"] { font-weight: 400; font-size: 0.8rem; }

.par { display: flex; gap: 0.6rem; }
.par > label { flex: 1; }

fieldset { border: none; padding: 0; margin: 0 0 1rem; }
legend {
  padding: 0; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem;
}

/* chips de escolha */
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip { position: relative; margin: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: block; padding: 0.4rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--vidro-borda); background: rgba(255, 255, 255, 0.5);
  color: var(--muted); font-size: 0.78rem; cursor: pointer;
}
.chip input:checked + span { background: var(--rose); border-color: var(--rose); color: #fff; font-weight: 600; }
.chip-verde input:checked + span { background: var(--verde); border-color: var(--verde); }
.chip-escuro input:checked + span { background: var(--text); border-color: var(--text); }

/* interruptor */
.chave { width: 42px; height: 24px; flex: none; border-radius: 999px; padding: 3px; display: flex; background: #e2d3ce; cursor: pointer; border: none; }
.chave span { width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(58, 44, 42, 0.3); }
.chave.ligada { background: var(--verde); justify-content: flex-end; }

/* ---------- números e barras ---------- */

.numeros { display: flex; gap: 0.55rem; }
.numero { flex: 1; border-radius: 14px; padding: 0.75rem 0.5rem; text-align: center; }
.numero-valor { font-weight: 700; font-size: 1.1rem; }
.numero-valor.rosa { color: var(--rose); }
.numero-valor.verde { color: var(--verde-escuro); }
.numero-rotulo { font-size: 0.66rem; color: var(--muted); }

.barra { height: 7px; border-radius: 999px; background: #f2e6e1; overflow: hidden; }
.barra span { display: block; height: 100%; transition: width 0.25s; }
.barra-baixo span { background: var(--danger); }
.barra-medio span { background: var(--gold); }
.barra-ok span { background: var(--verde); }

.valor-grande { font-weight: 700; font-size: 2rem; margin: 0.3rem 0 0.85rem; }

.entre { display: flex; justify-content: space-between; align-items: baseline; }
.entre-linha { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 0.35rem 0; }
.entre-total {
  display: flex; justify-content: space-between;
  border-top: 1px dashed var(--border); margin-top: 0.5rem; padding-top: 0.7rem;
  font-weight: 600; font-size: 0.95rem;
}

/* ---------- placeholders de imagem ---------- */

.foto-vazia {
  border-radius: 14px;
  border: 1px solid var(--vidro-borda);
  background-color: rgba(255, 255, 255, 0.4);
  background-image: repeating-linear-gradient(135deg, rgba(58, 44, 42, 0.07) 0 1px, transparent 1px 8px);
  background-size: cover;
  background-position: center;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 6px;
}
.foto-vazia span {
  font: 600 0.62rem ui-monospace, monospace;
  color: var(--text-suave);
  background: rgba(255, 255, 255, 0.75);
  padding: 3px 7px; border-radius: 999px;
}
.fotos-par { display: flex; gap: 0.55rem; }
.fotos-par .foto-vazia { flex: 1; height: 96px; }

/* ---------- mensagens ---------- */

.balao {
  background: rgba(47, 158, 107, 0.09);
  border: 1px solid rgba(47, 158, 107, 0.22);
  border-radius: 12px; border-bottom-left-radius: 4px;
  padding: 0.7rem 0.75rem;
  font-size: 0.8rem; line-height: 1.55;
}

.aviso {
  border-radius: 14px; padding: 0.8rem 1rem;
  background: rgba(47, 158, 107, 0.12);
  border: 1px solid rgba(47, 158, 107, 0.25);
  color: var(--verde-escuro); font-size: 0.85rem;
}

.aviso-erro {
  background: rgba(178, 59, 59, 0.1);
  border-color: rgba(178, 59, 59, 0.28);
  color: #8f3030;
}

/* ---------- arte de campanha ---------- */

.arte {
  border-radius: 16px; padding: 1.5rem 1.1rem; text-align: center; color: #fff;
  background: linear-gradient(150deg, var(--rose) 0%, var(--rose-dark) 45%, var(--gold) 100%);
}
.arte-marca { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; opacity: 0.85; margin-bottom: 0.55rem; }
.arte-nome { font-size: 1.3rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.4rem; }
.arte-motivo { font-size: 0.78rem; opacity: 0.9; margin-bottom: 0.9rem; }
.arte-desconto {
  display: inline-block; padding: 0.5rem 1rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--rose-dark); font-weight: 700; font-size: 1rem;
}
.arte-periodo { font-size: 0.68rem; font-weight: 600; margin-top: 0.8rem; opacity: 0.9; }

/* ---------- login ---------- */

body.tela-login .conteudo {
  max-width: 380px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 1.5rem;
}

.login-marca {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background-image: linear-gradient(120deg, var(--rose) 0%, var(--rose-dark) 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.3rem;
}
.login-sub { text-align: center; font-size: 0.82rem; color: var(--muted); margin-bottom: 1.5rem; }

/* ---------- login art déco noir (T40) ---------- */

/* Só entra com a classe .tela-deco (login e cadastro). As outras telas com
   .tela-login — esqueci senha, redefinir, TOTP, admin — continuam no visual
   claro, porque lá .login-marca carrega frase longa e não a marca. */

body.tela-deco {
  color-scheme: dark;
  color: #e8e2d4;
  background-color: #0a090b;
  background-image: linear-gradient(180deg, #111013 0%, #0a090b 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.tela-deco .conteudo { max-width: 340px; }

/* ornamento: três traços de 1px, 18/27/18 de altura, 5px de espaço entre eles.
   Feito com três gradientes num pseudo-elemento pra não sujar o HTML. */
body.tela-deco .login-marca::before {
  content: "";
  display: block;
  width: 13px;   /* 1 + 5 + 1 + 5 + 1 */
  height: 27px;
  margin: 0 auto 1.15rem;
  background-image:
    linear-gradient(#c9a24b, #c9a24b),
    linear-gradient(#c9a24b, #c9a24b),
    linear-gradient(#c9a24b, #c9a24b);
  background-repeat: no-repeat;
  background-size: 1px 18px, 1px 27px, 1px 18px;
  background-position: left center, center center, right center;
}

body.tela-deco .login-marca {
  margin: 0 0 0.5rem;
  font-family: "Cormorant Garamond", "Times New Roman", Times, serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: 0.14em;
  text-indent: 0.14em;   /* recentra: letter-spacing sobra depois da última letra */
  text-transform: uppercase;
  color: #e9d8ab;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}

body.tela-deco .login-sub {
  margin: 0 0 2.3rem;
  font-family: "Cormorant Garamond", "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 16px;
  color: #9c8b62;
}

/* título da etapa (esqueci senha, TOTP, admin): entra no lugar da frase da
   marca, menor que os 40px do BLESS pra caber frase longa sem quebrar. */
body.tela-deco .deco-etapa {
  margin: 0 0 0.6rem;
  text-align: center;
  font-family: "Cormorant Garamond", "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: 400;   /* é h2: sem isto o bold default sintetizaria a itálica */
  font-size: 18px;
  line-height: 1.3;
  color: #9c8b62;
}

/* texto de apoio da etapa — em Inter, porque é instrução, não assinatura */
body.tela-deco .deco-ajuda {
  margin: 0 auto 2rem;
  max-width: 30ch;
  text-align: center;
  font: 400 12px/1.7 "Inter", sans-serif;
  letter-spacing: 0.02em;
  color: #9c8b62;
}

body.tela-deco .deco-secao {
  margin: 0 0 1.4rem;
  font: 600 11px/1 "Inter", sans-serif;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: #9c8b62;
}

body.tela-deco .cartao {
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* bloco com moldura (QR do TOTP, segredo manual) — o .cartao vira transparente
   no noir, então quem precisa de caixa pede esta classe explicitamente */
body.tela-deco .deco-quadro {
  margin-bottom: 1.6rem;
  padding: 1.3rem 1rem;
  border: 1px solid #33301f;
  text-align: center;
}
/* o QR é PNG preto-no-branco: sem a moldura clara o leitor não lê */
body.tela-deco .deco-quadro img {
  display: block;
  margin: 0 auto;
  padding: 12px;
  background: #fff;
}
body.tela-deco .deco-quadro .deco-segredo {
  margin: 0.9rem 0 0;
  /* 12px/.05em cabe os 32 caracteres do segredo base32 numa linha só na
     coluna de 340px — a 13px sobrava uma letra órfã na segunda linha */
  font: 400 12px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.05em;
  word-break: break-all;
  color: #e8e2d4;
}
body.tela-deco .deco-quadro .deco-legenda {
  margin: 1rem 0 0;
  font: 400 11px/1.6 "Inter", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9c8b62;
}

body.tela-deco label { margin-bottom: 0.85rem; }

/* rótulo real pro leitor de tela; na tela quem nomeia o campo é o placeholder */
body.tela-deco .deco-rotulo {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

body.tela-deco input[type="text"],
body.tela-deco input[type="email"],
body.tela-deco input[type="password"] {
  margin-top: 0;
  padding: 15px 16px;
  border: 1px solid #33301f;
  border-radius: 0;
  background: transparent;
  color: #e8e2d4;
  font: 400 14px/1.2 "Inter", sans-serif;
  letter-spacing: 0.03em;
}

body.tela-deco input::placeholder {
  /* a spec pedia #7c7154, que dá 3,9:1 no fundo — abaixo do mínimo AA.
     #8a7d5e é o tom mais próximo que fecha 4,7:1. */
  color: #8a7d5e;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 1;
}

body.tela-deco input:focus {
  border-color: #c9a24b;
  box-shadow: inset 0 0 0 1px #c9a24b;
}

/* o autofill do Chrome pinta o campo de branco e derruba o noir inteiro */
body.tela-deco input:-webkit-autofill,
body.tela-deco input:-webkit-autofill:hover,
body.tela-deco input:-webkit-autofill:focus {
  -webkit-text-fill-color: #e8e2d4;
  -webkit-box-shadow: 0 0 0 1000px #131215 inset;
  caret-color: #e8e2d4;
  transition: background-color 9999s ease-out 0s;
}

body.tela-deco .deco-botao {
  display: block;
  width: 100%;
  margin-top: 1.35rem;
  padding: 16px 12px;
  border: none;
  border-radius: 0;
  background: #c9a24b;
  color: #131107;
  font: 600 12px/1 "Inter", sans-serif;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
body.tela-deco .deco-botao:hover { background: #d8b45e; }
body.tela-deco .deco-botao:focus-visible { outline: 2px solid #e9d8ab; outline-offset: 3px; }

body.tela-deco a { color: #8a7a55; text-decoration: none; border-bottom: 1px solid rgba(138, 122, 85, 0.4); }
body.tela-deco a:hover,
body.tela-deco a:focus-visible { color: #c9a24b; border-bottom-color: #c9a24b; }

body.tela-deco .deco-rodape {
  margin: 1.7rem 0 0;
  text-align: center;
  font: 400 11px/1.9 "Inter", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a7a55;
}
body.tela-deco .deco-rodape .sep { margin: 0 0.45rem; color: #4a422e; }

body.tela-deco .aviso {
  padding: 12px 14px;
  border: 1px solid #33301f;
  border-radius: 0;
  background: rgba(201, 162, 75, 0.06);
  color: #cbb989;
  font: 400 12px/1.6 "Inter", sans-serif;
  letter-spacing: 0.03em;
}
body.tela-deco .aviso-erro {
  border-color: #8a3d33;
  background: rgba(138, 61, 51, 0.1);
  color: #e6bcb1;
}

/* ---------- estoque ---------- */

.estoque-acoes { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.estoque-acoes form { display: contents; }
.quad {
  width: 40px; height: 36px; border-radius: 10px;
  border: 1px solid var(--vidro-borda); background: rgba(255, 255, 255, 0.5);
  font-size: 1.05rem; font-weight: 600; line-height: 1; cursor: pointer;
}
.quad.mais { color: var(--verde-escuro); }
.quad.menos { color: var(--rose-dark); }
.qtd { width: 72px; margin: 0; text-align: center; font-weight: 700; }

/* ---------- assinatura ---------- */

.assinatura {
  width: 100%; height: 150px; display: block;
  border-radius: 14px; border: 1px dashed #c4b2ad;
  background: rgba(255, 255, 255, 0.4);
  touch-action: none;
}

@media print {
  .abas, .topo { display: none; }
}

/* ---------- banner de instalação do PWA ---------- */

.banner-pwa {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(var(--tabbar-h, 58px) + var(--safe-bottom, 0px) + 12px);
  z-index: 40;
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem .9rem;
  border-radius: 14px;
  background: var(--vidro);
  backdrop-filter: blur(10px);
  border: 1px solid var(--vidro-borda);
  box-shadow: var(--vidro-sombra);
  font-size: .82rem;
  color: var(--text);
}
.banner-pwa span { flex: 1; }
.banner-pwa button {
  border: none; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: .8rem; font-weight: 600;
}
.banner-pwa #btn-instalar-pwa {
  background: var(--rose); color: #fff; padding: .4rem .7rem;
}
.banner-pwa #btn-dispensar-pwa {
  background: transparent; color: var(--muted); padding: .3rem .4rem; font-size: .9rem;
}

/* ---------- indicador de status offline (T23) ---------- */

.indicador-offline {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  top: calc(var(--safe-top, 0px) + 8px);
  z-index: 50;
  max-width: calc(100% - 24px);
  padding: .35rem .8rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: .76rem;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--vidro-sombra);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
