/* IG Imobiliário: estilo Apple. Tudo em cinza claro, a cor da empresa só nos botões principais e nas marcas ativas. */

:root {
  --fundo: #f5f5f7;
  --lateral: #ececee;
  --painel: #ffffff;
  --painel-2: #f5f5f7;
  --texto: #1d1d1f;
  --texto-2: #6e6e73;
  --texto-3: #8e8e93;
  --linha: rgba(0, 0, 0, 0.08);
  --linha-forte: rgba(0, 0, 0, 0.16);
  --hover: rgba(0, 0, 0, 0.04);
  --ativo: rgba(0, 0, 0, 0.075);
  --acento: #0071e3;
  --acento-texto: #ffffff;
  --acento-fundo: rgba(0, 113, 227, 0.1);
  --foco: rgba(0, 113, 227, 0.3);
  --verde: #248a3d;
  --verde-fundo: rgba(52, 199, 89, 0.14);
  --laranja: #b25000;
  --laranja-fundo: rgba(255, 149, 0, 0.15);
  --vermelho: #d70015;
  --vermelho-fundo: rgba(255, 59, 48, 0.11);
  --azul: #0060c0;
  --azul-fundo: rgba(0, 122, 255, 0.1);
  --cinza-fundo: rgba(120, 120, 128, 0.12);
  --sombra: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.02);
  --sombra-alta: 0 24px 70px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08);
  --raio: 16px;
  --raio-p: 10px;
  --largura-lateral: 248px;
  color-scheme: light;
}
:root[data-aspeto="escuro"] {
  --fundo: #000000;
  --lateral: #161617;
  --painel: #1c1c1e;
  --painel-2: #2c2c2e;
  --texto: #f5f5f7;
  --texto-2: #aeaeb2;
  --texto-3: #8e8e93;
  --linha: rgba(255, 255, 255, 0.1);
  --linha-forte: rgba(255, 255, 255, 0.2);
  --hover: rgba(255, 255, 255, 0.06);
  --ativo: rgba(255, 255, 255, 0.11);
  --verde: #30d158;
  --verde-fundo: rgba(48, 209, 88, 0.17);
  --laranja: #ff9f0a;
  --laranja-fundo: rgba(255, 159, 10, 0.17);
  --vermelho: #ff6961;
  --vermelho-fundo: rgba(255, 69, 58, 0.18);
  --azul: #64b0ff;
  --azul-fundo: rgba(10, 132, 255, 0.2);
  --cinza-fundo: rgba(120, 120, 128, 0.26);
  --sombra: 0 0 0 1px rgba(255, 255, 255, 0.05);
  --sombra-alta: 0 24px 70px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--fundo);
  color: var(--texto);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.024em; line-height: 1.15; }
h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.012em; }
h3 { font-size: 13px; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
.i { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mudo { color: var(--texto-2); }
.fraco { color: var(--texto-3); font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.oculto { display: none !important; }
.linha-flex { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.entre { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pilha { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ---------- Estrutura ---------- */

.app { display: flex; min-height: 100vh; }
.lateral {
  width: var(--largura-lateral); flex: none; height: 100vh; position: sticky; top: 0;
  background: var(--lateral); border-right: 1px solid var(--linha);
  display: flex; flex-direction: column; padding: 18px 12px 14px; overflow-y: auto;
}
.lateral-logo { padding: 2px 8px 18px; min-height: 66px; display: flex; align-items: flex-start; }
.lateral-logo img { max-width: 124px; max-height: 76px; display: block; }
.lateral-logo .logo-texto b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.lateral-logo .logo-texto span { display: block; font-size: 12px; color: var(--texto-2); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; border: 0; background: none;
  color: var(--texto); font-weight: 500; font-size: 13.5px; cursor: pointer; width: 100%; text-align: left;
}
.nav-item .i { color: var(--texto-2); }
.nav-item:hover { background: var(--hover); }
.nav-item.ativo { background: var(--ativo); font-weight: 600; }
.nav-item.ativo .i { color: var(--acento); }
.nav-item .contador { margin-left: auto; font-size: 11.5px; font-weight: 600; background: var(--vermelho); color: #fff; border-radius: 999px; padding: 0 6px; min-width: 18px; text-align: center; line-height: 18px; }
.lateral-fundo { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.quem { display: flex; align-items: center; gap: 9px; padding: 0 6px; min-width: 0; }
.avatar { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--cinza-fundo); color: var(--texto-2); display: grid; place-items: center; font-weight: 600; font-size: 11.5px; }
.quem-nome { min-width: 0; flex: 1; line-height: 1.25; }
.quem-nome b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quem-nome span { display: block; font-size: 11.5px; color: var(--texto-2); }
.seg { display: flex; background: var(--cinza-fundo); border-radius: 9px; padding: 2px; gap: 1px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 7px; padding: 4px 8px; font-size: 12px; font-weight: 500; color: var(--texto-2); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
.seg button:hover { color: var(--texto); }
.seg button.ativo { background: var(--painel); color: var(--texto); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); font-weight: 600; }
:root[data-aspeto="escuro"] .seg button.ativo { background: #636366; }
.seg .i { width: 14px; height: 14px; }
.logo-ignicao { display: block; padding: 2px 8px 0; }
.logo-ignicao img { height: 30px; display: block; opacity: 0.92; }
.faixa-admin { display: flex; align-items: center; gap: 6px; background: var(--azul-fundo); color: var(--azul); border-radius: 9px; padding: 7px 10px; font-size: 12px; font-weight: 500; margin-bottom: 10px; }
.faixa-admin button { margin-left: auto; border: 0; background: none; color: inherit; font-weight: 600; cursor: pointer; padding: 0; }

.principal { flex: 1; min-width: 0; padding: 30px 36px 70px; }
.conteudo { max-width: 1180px; margin: 0 auto; }
.topo-movel { display: none; }
.cabecalho { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.cabecalho .acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cabecalho p { color: var(--texto-2); margin-top: 3px; }
.voltar { display: inline-flex; align-items: center; gap: 2px; color: var(--acento); font-size: 13.5px; margin: 0 0 10px -4px; cursor: pointer; background: none; border: 0; padding: 0; font-weight: 500; }

/* ---------- Componentes ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; border-radius: 980px;
  border: 0; background: var(--cinza-fundo); color: var(--texto); font-weight: 500; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--ativo); }
.btn.primario { background: var(--acento); color: var(--acento-texto); }
.btn.primario:hover { filter: brightness(1.08); }
.btn.perigo { color: var(--vermelho); }
.btn.perigo:hover { background: var(--vermelho-fundo); }
.btn.sem-fundo { background: none; color: var(--acento); padding: 6px 8px; }
.btn.sem-fundo:hover { background: var(--hover); }
.btn.peq { padding: 4px 11px; font-size: 12.5px; }
.btn.icone { padding: 6px; width: 30px; height: 30px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn .i { width: 15px; height: 15px; }
.btn.feito { background: var(--verde-fundo); color: var(--verde); }

.cartao { background: var(--painel); border-radius: var(--raio); box-shadow: var(--sombra); padding: 18px 20px; min-width: 0; }
.cartao > .entre:first-child { margin-bottom: 12px; }
.cartao.justo { padding: 0; overflow: hidden; }
.grelha-2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grelha-par { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--painel); border-radius: var(--raio); box-shadow: var(--sombra); padding: 14px 18px; min-width: 0; }
.kpi span { display: block; font-size: 12.5px; color: var(--texto-2); }
.kpi b { display: block; font-size: 25px; font-weight: 650; letter-spacing: -0.024em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.kpi.texto b { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; margin-top: 3px; }
.kpi small { display: block; color: var(--texto-3); font-size: 12px; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--cinza-fundo); color: var(--texto-2); white-space: nowrap; }
.pill.verde { background: var(--verde-fundo); color: var(--verde); }
.pill.laranja { background: var(--laranja-fundo); color: var(--laranja); }
.pill.vermelho { background: var(--vermelho-fundo); color: var(--vermelho); }
.pill.azul { background: var(--azul-fundo); color: var(--azul); }

.campo { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.campo > label, .rotulo { font-size: 12.5px; font-weight: 500; color: var(--texto-2); }
.entrada, select.entrada, textarea.entrada {
  width: 100%; padding: 7px 11px; border-radius: var(--raio-p); border: 1px solid var(--linha-forte); background: var(--painel); outline: none; min-height: 34px;
}
textarea.entrada { resize: vertical; min-height: 72px; line-height: 1.45; }
.entrada:focus { border-color: var(--acento); box-shadow: 0 0 0 3px var(--foco); }
select.entrada { appearance: none; padding-right: 26px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 13px; }
.form-grelha { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grelha .inteiro { grid-column: 1 / -1; }
.form-secao { font-size: 12px; font-weight: 600; color: var(--texto-3); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 8px; grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--linha); }
.form-secao:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.visto { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.visto input { margin: 3px 0 0; accent-color: var(--acento); width: 15px; height: 15px; flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 0; background: var(--cinza-fundo); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 500; cursor: pointer; color: var(--texto); }
.chip:hover { background: var(--ativo); }
.chip.ligado { background: var(--acento); color: var(--acento-texto); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; padding: 4px 7px; border: 1px solid var(--linha-forte); border-radius: var(--raio-p); min-height: 34px; background: var(--painel); cursor: text; }
.tags:focus-within { border-color: var(--acento); box-shadow: 0 0 0 3px var(--foco); }
.tags input { border: 0; outline: none; background: none; flex: 1; min-width: 90px; padding: 2px; }
.tag { display: inline-flex; align-items: center; gap: 3px; background: var(--cinza-fundo); padding: 1px 4px 1px 9px; border-radius: 999px; font-size: 12.5px; }
.tag button { border: 0; background: none; cursor: pointer; padding: 0 2px; color: var(--texto-2); line-height: 1; font-size: 15px; }

/* Barra de pesquisa e filtros */
.barra { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.pesquisa { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.pesquisa .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--texto-3); width: 15px; height: 15px; }
.pesquisa input { padding-left: 32px; border-radius: 980px; background: var(--painel); border-color: var(--linha); }
.filtro { width: auto; max-width: 170px; border-radius: 980px; border-color: var(--linha); font-size: 13px; }
.filtro.ligado { border-color: var(--acento); color: var(--acento); font-weight: 500; }

/* Tabela */
.tabela { width: 100%; border-collapse: collapse; }
.tabela th { text-align: left; font-size: 12px; font-weight: 500; color: var(--texto-2); padding: 10px 12px; border-bottom: 1px solid var(--linha); white-space: nowrap; }
.tabela td { padding: 9px 12px; border-bottom: 1px solid var(--linha); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tbody tr.clicavel { cursor: pointer; }
.tabela tbody tr.clicavel:hover { background: var(--hover); }
.tabela .nome b { font-weight: 600; display: block; }
.tabela .nome span { color: var(--texto-2); font-size: 12.5px; }
.tabela input[type="checkbox"] { accent-color: var(--acento); width: 15px; height: 15px; margin: 0; display: block; }
.tabela .estreita { width: 34px; padding-right: 0; }
.barra-selecao { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--painel); box-shadow: var(--sombra); border-radius: var(--raio); padding: 10px 16px; margin-bottom: 12px; }
.barra-selecao b { font-weight: 600; }
.barra-selecao .acoes { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }

/* Listas */
.lista { display: flex; flex-direction: column; }
.item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linha); min-width: 0; }
.item:last-child { border-bottom: 0; }
.item:first-child { padding-top: 2px; }
.item-corpo { flex: 1; min-width: 0; }
.item-corpo b { font-weight: 600; }
.item-corpo .fraco { display: block; }
.item-acoes { display: flex; gap: 6px; flex: none; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.item.clicavel { cursor: pointer; }
.item-icone { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--cinza-fundo); color: var(--texto-2); }
.item-icone.vermelho { background: var(--vermelho-fundo); color: var(--vermelho); }
.item-icone.laranja { background: var(--laranja-fundo); color: var(--laranja); }
.item-icone.azul { background: var(--azul-fundo); color: var(--azul); }
.item-icone.verde { background: var(--verde-fundo); color: var(--verde); }
.vazio { color: var(--texto-3); padding: 18px 6px; text-align: center; font-size: 13px; }
.vazio-grande { text-align: center; padding: 56px 20px; color: var(--texto-2); }
.vazio-grande h2 { color: var(--texto); font-size: 17px; margin-bottom: 4px; }
.vazio-grande .btn { margin-top: 14px; }

.dados { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.dado span { display: block; font-size: 12px; color: var(--texto-2); }
.dado b { display: block; font-weight: 500; overflow-wrap: anywhere; }
.dado.inteiro { grid-column: 1 / -1; }
.ligacao { color: var(--acento); }
.ligacao:hover { text-decoration: underline; }

/* Imóveis */
.imoveis-grelha { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.imovel-cartao { background: var(--painel); border-radius: var(--raio); box-shadow: var(--sombra); padding: 16px 18px; cursor: pointer; display: flex; flex-direction: column; gap: 9px; transition: transform 0.15s ease, box-shadow 0.15s ease; min-width: 0; border: 0; text-align: left; }
.imovel-cartao:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }
.imovel-cartao h2 { font-size: 15px; line-height: 1.25; }
.imovel-preco { font-size: 17px; font-weight: 650; letter-spacing: -0.018em; }
.progresso { height: 5px; background: var(--cinza-fundo); border-radius: 99px; overflow: hidden; }
.progresso i { display: block; height: 100%; background: var(--acento); border-radius: 99px; }
.imovel-pes { display: flex; gap: 12px; font-size: 12.5px; color: var(--texto-2); flex-wrap: wrap; }
.imovel-pes span { display: inline-flex; align-items: center; gap: 4px; }
.imovel-pes .i { width: 13px; height: 13px; }
.prox-passo { font-size: 12.5px; color: var(--texto-2); }
.prox-passo b { color: var(--texto); font-weight: 500; }

.etapas { display: flex; gap: 3px; background: var(--cinza-fundo); padding: 3px; border-radius: 12px; margin-bottom: 16px; overflow-x: auto; }
.etapas button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 7px 10px; font-size: 12.5px; font-weight: 500; color: var(--texto-2); cursor: pointer; white-space: nowrap; display: flex; gap: 5px; align-items: center; justify-content: center; }
.etapas button:hover { color: var(--texto); }
.etapas button.passada { color: var(--texto); }
.etapas button.passada .i { color: var(--verde); }
.etapas button.ativo { background: var(--acento); color: var(--acento-texto); font-weight: 600; }
.etapas button .i { width: 13px; height: 13px; }

.grupo-passos { margin-bottom: 16px; }
.grupo-passos:last-child { margin-bottom: 0; }
.grupo-passos > .entre { margin-bottom: 4px; }
.grupo-passos h3 { color: var(--texto-2); font-weight: 600; }
.passo { display: flex; align-items: center; gap: 9px; padding: 6px 0; min-height: 34px; }
.passo input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--acento); margin: 0; flex: none; cursor: pointer; }
.passo .passo-titulo { flex: 1; min-width: 0; }
.passo.feito .passo-titulo { color: var(--texto-3); text-decoration: line-through; }
.passo .prazo { border: 0; background: none; color: var(--texto-2); font-size: 12px; width: 118px; padding: 2px 4px; border-radius: 6px; }
.passo .prazo:hover, .passo .prazo:focus { background: var(--hover); outline: none; }
.passo .prazo.atrasado { color: var(--vermelho); font-weight: 500; }
.passo .btn-tirar { opacity: 0; border: 0; background: none; color: var(--texto-3); cursor: pointer; padding: 2px; }
.passo:hover .btn-tirar { opacity: 1; }
.passo.proximo .passo-titulo { font-weight: 600; }

/* Barras simples */
.barra-valor { display: grid; grid-template-columns: 120px 1fr 28px; gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; }
.barra-valor .pista { height: 7px; background: var(--cinza-fundo); border-radius: 99px; overflow: hidden; }
.barra-valor .pista i { display: block; height: 100%; background: var(--acento); border-radius: 99px; }
.barra-valor span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Janelas */
.fundo-janela { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; z-index: 50; animation: aparecer 0.14s ease; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.janela { background: var(--painel); border-radius: 18px; box-shadow: var(--sombra-alta); width: 100%; max-width: 560px; display: flex; flex-direction: column; animation: subir 0.18s ease; }
.janela.larga { max-width: 760px; }
.janela-topo { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 12px; gap: 10px; }
.janela-topo h2 { font-size: 16px; }
.janela-corpo { padding: 2px 20px 16px; }
.janela-pes { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--linha); flex-wrap: wrap; }
@keyframes aparecer { from { opacity: 0; } }
@keyframes subir { from { transform: translateY(8px); opacity: 0; } }
.destinatario { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--linha); }
.destinatario:last-child { border-bottom: 0; }
.destinatarios { max-height: 260px; overflow-y: auto; }
.ajuda-chaves { font-size: 12px; color: var(--texto-3); line-height: 1.6; }
.ajuda-chaves code { background: var(--cinza-fundo); padding: 0 5px; border-radius: 5px; font: inherit; color: var(--texto-2); }

#toasts { position: fixed; top: 16px; right: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 90; }
.toast { background: var(--texto); color: var(--fundo); padding: 9px 15px; border-radius: 12px; font-weight: 500; font-size: 13px; box-shadow: var(--sombra-alta); max-width: 340px; animation: subir 0.18s ease; }
.toast.erro { background: var(--vermelho); color: #fff; }
.a-carregar { width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: girar 0.7s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.carregando { display: grid; place-items: center; padding: 70px; color: var(--texto-3); }

/* Entrada */
.entrada-pagina { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; gap: 26px; }
.entrada-cartao { background: var(--painel); border-radius: 22px; box-shadow: var(--sombra-alta); padding: 34px 32px 28px; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.entrada-cartao h1 { font-size: 24px; text-align: center; }
.entrada-cartao > p { text-align: center; color: var(--texto-2); margin-top: -8px; margin-bottom: 6px; }
.entrada-cartao .btn { padding: 9px 14px; margin-top: 4px; font-size: 14px; }
.entrada-erro { color: var(--vermelho); font-size: 13px; text-align: center; }
.entrada-rodape { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.entrada-rodape img { height: 30px; opacity: 0.9; }
.entrada-rodape .seg { width: 230px; }

.so-escuro { display: none !important; }
:root[data-aspeto="escuro"] .so-escuro { display: block !important; }
:root[data-aspeto="escuro"] .so-claro { display: none !important; }

/* Telemóvel */
.fundo-menu { display: none; }
@media (max-width: 900px) {
  .app { display: block; }
  .lateral { position: fixed; left: 0; top: 0; z-index: 40; transform: translateX(-100%); transition: transform 0.2s ease; box-shadow: var(--sombra-alta); height: 100dvh; }
  .app.menu-aberto .lateral { transform: none; }
  .app.menu-aberto .fundo-menu { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.3); z-index: 30; }
  .topo-movel { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--lateral); border-bottom: 1px solid var(--linha); position: sticky; top: 0; z-index: 20; }
  .topo-movel img { height: 34px; }
  .topo-movel b { font-weight: 600; }
  .principal { padding: 18px 14px 56px; }
  h1 { font-size: 24px; }
  .grelha-2, .grelha-par { grid-template-columns: minmax(0, 1fr); }
  .form-grelha { grid-template-columns: minmax(0, 1fr); }
  .tabela .col-opcional { display: none; }
  .fundo-janela { padding: 0; align-items: flex-end; }
  .janela { border-radius: 18px 18px 0 0; max-height: 94dvh; overflow-y: auto; }
  .pesquisa { max-width: none; flex-basis: 100%; }
  .passo .btn-tirar { opacity: 1; }
  .imoveis-grelha { grid-template-columns: minmax(0, 1fr); }
}
