/* ============================================================
   PROJETO DOURADO — tema preto e dourado
   Para mudar as cores do sistema inteiro, altere as variáveis abaixo.
   ============================================================ */
:root {
  --preto: #0a0a0b;
  --preto-2: #121214;
  --preto-3: #1a1a1d;
  --borda: #2b2617;
  --dourado: #d4af37;
  --dourado-claro: #f1d77a;
  --dourado-escuro: #a8841f;
  --gradiente: linear-gradient(135deg, #f1d77a 0%, #d4af37 45%, #a8841f 100%);
  --texto: #ffffff;
  --texto-suave: #a7a29a;
  --perigo: #e5484d;
  --sucesso: #46a758;
  --raio: 10px;
}

:root { color-scheme: dark; } /* barras de rolagem e campos nativos escuros */
[hidden] { display: none !important; } /* o atributo "hidden" sempre esconde, mesmo em botões e formulários */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--preto);
  color: var(--texto);
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-size: 24px; }
h2 { font-size: 16px; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.dourado { color: var(--dourado); }
.suave { color: var(--texto-suave); }
.icone { width: 18px; height: 18px; flex-shrink: 0; }
h2 .icone { color: var(--dourado); }

/* ---------- Barra do topo ---------- */
/* O cabeçalho fixo junta: barra com os módulos + (menu do módulo) + faixa de senhas favoritas.
   Fica acima das janelas (z-index alto) e some quando a página está dentro de uma janela. */
.cabecalho-fixo {
  position: sticky; top: 0; z-index: 10000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
}
.topo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 56px; padding: 0 16px;
  background: var(--preto-2);
  border-bottom: 1px solid var(--dourado-escuro);
}
.marca-topo { color: var(--dourado); font-weight: 700; letter-spacing: 1.5px; white-space: nowrap; margin-right: 8px; }
.modulos-barra { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; }
.botao-modulo {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px;
  color: var(--texto); white-space: nowrap; font-weight: 500;
}
.botao-modulo .icone { color: var(--dourado); }
.botao-modulo:hover { background: var(--preto-3); }
.botao-modulo.ativo { color: var(--dourado); background: rgba(212, 175, 55, .1); }
.submenu { display: flex; gap: 4px; padding: 4px 16px; background: var(--preto-2); border-bottom: 1px solid var(--borda); overflow-x: auto; }
.submenu a { padding: 6px 12px; border-radius: 8px; white-space: nowrap; font-size: 13px; }
.submenu a:hover { background: var(--preto-3); }
.submenu a.ativo { color: var(--dourado); background: rgba(212, 175, 55, .1); }

/* ---------- Faixa de senhas favoritas ---------- */
.barra-favoritas {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; overflow-x: auto;
  background: #0e0d0a; border-bottom: 1px solid var(--borda);
}
.favoritas-rotulo { display: flex; align-items: center; gap: 6px; color: var(--dourado); font-size: 12px; font-weight: 500; white-space: nowrap; }
.favoritas-rotulo .icone { width: 15px; height: 15px; fill: currentColor; }
.favoritas-lista { display: flex; align-items: center; gap: 8px; }
.favoritas-vazio { font-size: 12px; white-space: nowrap; }
.favorita { display: inline-flex; align-items: stretch; flex-shrink: 0; border: 1px solid var(--dourado-escuro); border-radius: 999px; overflow: hidden; background: var(--preto-3); }
.favorita button { background: none; border: 0; cursor: pointer; color: var(--texto); font: 500 12px "Poppins", sans-serif; padding: 5px 12px; }
.favorita .principal:hover { background: rgba(212, 175, 55, .18); color: var(--dourado-claro); }
.favorita .mini { padding: 5px 7px; color: var(--texto-suave); border-left: 1px solid var(--borda); }
.favorita .mini:hover { color: var(--dourado); background: var(--preto); }
.favorita .mini.remover:hover { color: var(--perigo); }
.favorita .mini .icone { width: 14px; height: 14px; display: block; }
.toast {
  position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 20000;
  padding: 10px 18px; border-radius: 999px; background: var(--preto-3); color: var(--texto);
  border: 1px solid var(--dourado); box-shadow: 0 10px 30px rgba(0, 0, 0, .7); font-size: 13px;
}

.usuario-topo {
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; cursor: pointer; color: var(--texto);
  font-family: inherit; padding: 6px 10px; border-radius: 8px; text-align: left;
}
.usuario-topo:hover { background: var(--preto-3); }
.usuario-topo .icone { color: var(--dourado); width: 22px; height: 22px; }
.usuario-texto { display: flex; flex-direction: column; line-height: 1.2; }
.usuario-texto small { color: var(--dourado); font-size: 11px; }

/* ---------- Menus suspensos ---------- */
.menu-suspenso { position: relative; }
.suspenso-lista {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
  background: var(--preto-2); border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, .6);
}
.menu-suspenso.direita .suspenso-lista { left: auto; right: 0; min-width: 160px; }
.menu-suspenso.aberto .suspenso-lista { display: block; }
.suspenso-lista a, .suspenso-lista button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border-radius: 8px; border: 0; background: none;
  color: var(--texto); font: 400 14px "Poppins", sans-serif; cursor: pointer; text-align: left;
}
.suspenso-lista a:hover, .suspenso-lista button:hover { background: var(--preto-3); }
.suspenso-lista a.ativo { color: var(--dourado); font-weight: 600; }
.suspenso-lista .icone { color: var(--dourado); }

/* ---------- Conteúdo ---------- */
.conteudo { max-width: 1280px; margin: 0 auto; padding: 28px 16px 48px; }
.cabecalho { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.cartao {
  background: var(--preto-2); border: 1px solid var(--borda);
  border-radius: var(--raio); padding: 20px;
}
.cartao.sem-padding { padding: 0; overflow-x: auto; }
.cartao.estreito { max-width: 560px; }
.colunas { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }

.etiqueta {
  display: inline-block; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px;
  color: var(--dourado); border: 1px solid var(--dourado-escuro); background: rgba(212, 175, 55, .08);
}
.lista-simples { list-style: none; margin: 0; padding: 0; }
.lista-simples li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--borda); }
.lista-simples li:last-child { border-bottom: 0; }

/* ---------- Tabela ---------- */
.tabela { width: 100%; border-collapse: collapse; }
.tabela th { text-align: left; font-weight: 500; color: var(--dourado); padding: 14px 16px; border-bottom: 1px solid var(--borda); white-space: nowrap; }
.tabela td { padding: 12px 16px; border-bottom: 1px solid var(--borda); }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tr:hover td { background: rgba(255, 255, 255, .02); }
.acoes { text-align: right; white-space: nowrap; }
.acoes .botao { margin-left: 6px; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--borda); background: var(--preto-3); color: var(--texto);
  font: 500 13px "Poppins", sans-serif;
}
.botao:hover { border-color: var(--dourado); }
.botao.primario { background: var(--gradiente); color: #111; border: 0; font-weight: 600; }
.botao.primario:hover { filter: brightness(1.08); }
.botao.largo { width: 100%; padding: 12px; font-size: 15px; }
.botoes { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* ---------- Formulários ---------- */
.formulario { display: flex; flex-direction: column; gap: 14px; }
.formulario label { display: flex; flex-direction: column; gap: 6px; color: var(--texto-suave); font-size: 13px; }
.formulario input[type=text], .formulario input[type=password], .formulario input[type=email],
.formulario input[type=url], .formulario textarea, .formulario select {
  background: var(--preto); border: 1px solid var(--borda); border-radius: 8px;
  color: var(--texto); font: 400 14px "Poppins", sans-serif; padding: 10px 12px; outline: none;
}
.formulario input:focus, .formulario textarea:focus, .formulario select:focus {
  border-color: var(--dourado); box-shadow: 0 0 0 3px rgba(212, 175, 55, .15);
}
.formulario label.caixa { flex-direction: row; align-items: center; gap: 10px; color: var(--texto); cursor: pointer; }
.formulario input[type=checkbox] { accent-color: var(--dourado); width: 18px; height: 18px; }
.formulario ul { margin: 0; padding-left: 18px; color: var(--texto-suave); font-size: 12px; }
.erro-campo { color: var(--perigo); margin-top: -8px; }

/* ---------- Tela inicial como fundo + janelas dos módulos ---------- */
body.pagina-inicio {
  background:
    radial-gradient(ellipse 80% 50% at 15% 0%, rgba(212, 175, 55, .10), transparent 60%),
    radial-gradient(ellipse 60% 45% at 100% 100%, rgba(212, 175, 55, .07), transparent 60%),
    var(--preto);
  background-attachment: fixed;
}
#area-janelas { position: static; }

.janela {
  position: fixed; z-index: 100; display: flex; flex-direction: column;
  min-width: 360px; min-height: 260px; overflow: hidden;
  background: var(--preto-2); border: 1px solid var(--dourado-escuro); border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .75), 0 0 0 1px rgba(212, 175, 55, .08);
  opacity: .96;
}
.janela[hidden] { display: none; }
.janela.ativa { opacity: 1; border-color: var(--dourado); box-shadow: 0 22px 60px rgba(0, 0, 0, .85), 0 0 0 1px rgba(212, 175, 55, .25); }
.janela.maximizada {
  left: 0 !important; top: var(--altura-topo, 100px) !important; width: 100vw !important;
  height: calc(100vh - var(--altura-topo, 100px) - 46px) !important;
  border-radius: 0; border-left: 0; border-right: 0;
}
.janela-topo {
  display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; height: 42px; flex-shrink: 0;
  background: linear-gradient(180deg, #1c1a14, var(--preto-2)); border-bottom: 1px solid var(--borda);
  cursor: grab; user-select: none; touch-action: none;
}
.janela-topo:active { cursor: grabbing; }
.janela.maximizada .janela-topo { cursor: default; }
.janela-icone { display: grid; place-items: center; color: var(--dourado); }
.janela-nome { font-weight: 600; color: var(--dourado); white-space: nowrap; }
.janela-abas { display: flex; gap: 2px; margin-left: 8px; overflow-x: auto; }
.janela-aba {
  background: none; border: 0; cursor: pointer; color: var(--texto);
  font: 400 13px "Poppins", sans-serif; padding: 6px 12px; border-radius: 8px; white-space: nowrap;
}
.janela-aba:hover { background: var(--preto-3); }
.janela-aba.ativa { color: var(--dourado); background: rgba(212, 175, 55, .1); }
.espaco { flex: 1; }
.janela-botoes { display: flex; gap: 2px; }
.janela-botao {
  width: 32px; height: 28px; border: 0; border-radius: 6px; background: none; cursor: pointer;
  color: var(--texto-suave); font: 500 14px "Poppins", sans-serif; line-height: 1;
}
.janela-botao:hover { background: var(--preto-3); color: var(--dourado); }
.janela-botao:last-child:hover { background: rgba(229, 72, 77, .2); color: #ffb4b6; }
.janela-quadro { flex: 1; width: 100%; border: 0; background: var(--preto); color-scheme: dark; }
.janela-canto { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; touch-action: none; }
.janela-canto::after {
  content: ""; position: absolute; right: 4px; bottom: 4px; width: 8px; height: 8px;
  border-right: 2px solid var(--dourado-escuro); border-bottom: 2px solid var(--dourado-escuro);
}
.janela.maximizada .janela-canto { display: none; }
body.arrastando .janela-quadro { pointer-events: none; }
body.arrastando { user-select: none; }

#barra-tarefas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; height: 46px;
  display: flex; align-items: center; gap: 8px; padding: 0 12px; overflow-x: auto;
  background: var(--preto-2); border-top: 1px solid var(--dourado-escuro);
}
#barra-tarefas[hidden] { display: none; }
.tarefa {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 8px; cursor: pointer;
  background: var(--preto-3); border: 1px solid var(--borda); color: var(--texto);
  font: 500 13px "Poppins", sans-serif; white-space: nowrap;
}
.tarefa .icone { color: var(--dourado); width: 16px; height: 16px; }
.tarefa:hover { border-color: var(--dourado); }
.tarefa.ativa { border-color: var(--dourado); background: rgba(212, 175, 55, .12); color: var(--dourado); }
.tarefa.minimizada { opacity: .6; }
body.pagina-inicio { padding-bottom: 0; }

/* Página dentro de uma janela: sem barra do topo e com menos espaço em volta */
html.embutido .cabecalho-fixo { display: none; }
html.embutido .conteudo { max-width: none; padding: 18px 16px 28px; }
html.embutido body { background: var(--preto); }

/* ---------- Notificações e previsão do tempo (tela inicial) ---------- */
.contador {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--perigo); color: #fff; font-size: 12px; font-weight: 600;
}
.contador[hidden] { display: none; }
.botao-pequeno { padding: 4px 10px; font-size: 12px; }
h2 .botao-pequeno, h2 .botao-icone { margin-left: auto; }
.lista-notif { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; }
.notif {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--borda); border-left: 3px solid var(--dourado); border-radius: 8px; background: var(--preto-3);
}
.notif-texto { display: flex; flex-direction: column; min-width: 0; }
.notif-acoes { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

.clima-atual { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.clima-icone { font-size: 48px; line-height: 1; }
.clima-temp { font-size: 36px; font-weight: 600; line-height: 1.1; color: var(--dourado-claro); }
.clima-desc { font-weight: 500; }
.clima-detalhes { margin: 4px 0 14px; font-size: 12px; }
.clima-dias { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.clima-dia {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px;
  border: 1px solid var(--borda); border-radius: 8px; background: var(--preto-3); font-size: 12px; text-align: center;
}
.clima-dia strong { color: var(--dourado); font-weight: 500; }
.clima-dia-icone { font-size: 22px; }
.lista-resultados { list-style: none; margin: -4px 0 12px; padding: 0; border: 1px solid var(--borda); border-radius: 8px; overflow: hidden; }
.lista-resultados li { padding: 8px 12px; }
.lista-resultados li + li { border-top: 1px solid var(--borda); }
.lista-resultados[hidden] { display: none; }
.resultado { background: none; border: 0; padding: 0; width: 100%; text-align: left; cursor: pointer; color: var(--texto); font: 400 13px "Poppins", sans-serif; }
.resultado:hover { color: var(--dourado); }

/* ---------- Módulo Arquivos e arrastar-e-soltar ---------- */
.nome-arquivo { display: inline-flex; align-items: center; gap: 8px; }
.nome-arquivo .icone { color: var(--dourado); }
.selo { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; border: 1px solid; }
.selo.breve { color: #f0c24b; border-color: #8a6d1b; background: rgba(240, 194, 75, .1); }
.selo.ok { color: #6fd08a; border-color: rgba(70, 167, 88, .6); background: rgba(70, 167, 88, .1); }
.aviso-seguranca { margin: 14px 0 0; font-size: 12px; }
.selo.vencido { color: #ff8a8d; border-color: rgba(229, 72, 77, .6); background: rgba(229, 72, 77, .12); }

#soltar-aqui {
  position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; pointer-events: none;
  background: rgba(10, 10, 11, .78); border: 3px dashed var(--dourado); margin: 10px; border-radius: 16px;
}
#soltar-aqui > div { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--dourado); text-align: center; }
#soltar-aqui .icone { width: 56px; height: 56px; }
#soltar-aqui strong { font-size: 22px; }
#soltar-aqui span { color: var(--texto-suave); }

.zona-soltar {
  display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 16px; padding: 26px 16px;
  text-align: center; cursor: pointer; border: 2px dashed var(--dourado-escuro); border-radius: var(--raio);
  background: rgba(212, 175, 55, .04); transition: border-color .15s, background .15s;
}
.zona-soltar .icone { width: 34px; height: 34px; color: var(--dourado); }
.zona-soltar strong { font-size: 16px; color: var(--dourado-claro); }
.zona-soltar span { color: var(--texto-suave); font-size: 13px; }
.zona-soltar:hover, .zona-soltar:focus-visible, .zona-soltar.sobre {
  outline: none; border-color: var(--dourado); background: rgba(212, 175, 55, .12);
}

.dialogo {
  width: min(520px, calc(100vw - 32px)); padding: 24px; color: var(--texto);
  background: var(--preto-2); border: 1px solid var(--dourado-escuro); border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .85);
}
.dialogo::backdrop { background: rgba(0, 0, 0, .72); }
.up-arquivos { list-style: none; margin: 0; padding: 0; max-height: 150px; overflow-y: auto; border: 1px solid var(--borda); border-radius: 8px; }
.up-arquivos li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; }
.up-arquivos li + li { border-top: 1px solid var(--borda); }
.up-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progresso { height: 10px; border-radius: 999px; background: var(--preto-3); border: 1px solid var(--borda); overflow: hidden; }
.progresso > div { height: 100%; width: 0; background: var(--gradiente); transition: width .15s; }

.passos { margin: 0 0 10px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.passos code, .cartao code { background: var(--preto); border: 1px solid var(--borda); border-radius: 6px; padding: 1px 6px; color: var(--dourado-claro); }
.codigo-novo { margin-bottom: 16px; border-color: var(--dourado); }
.codigo-novo input { font-family: Consolas, monospace; }
.erro-pagina { margin: 40px auto; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* ---------- Módulo Logs ---------- */
.abas { display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.abas a { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--borda); background: var(--preto-2); }
.abas a:hover { border-color: var(--dourado); }
.abas a.ativo { color: var(--dourado); border-color: var(--dourado-escuro); background: rgba(212, 175, 55, .1); }
.filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.filtros label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--texto-suave); }
.filtros input, .filtros select {
  background: var(--preto); border: 1px solid var(--borda); border-radius: 8px; color: var(--texto);
  font: 400 13px "Poppins", sans-serif; padding: 7px 10px;
}
.nowrap { white-space: nowrap; }
.detalhes summary { cursor: pointer; color: var(--dourado); }
.mudancas { border-collapse: collapse; margin-top: 8px; font-size: 12px; }
.mudancas th { text-align: left; color: var(--texto-suave); font-weight: 500; padding: 3px 12px 3px 0; white-space: nowrap; vertical-align: top; }
.mudancas td { padding: 3px 6px; vertical-align: top; word-break: break-word; max-width: 280px; }
.mudancas .antes { color: #ff9a9d; }
.mudancas .depois { color: #7ddb96; }
.mudancas .seta { color: var(--texto-suave); }
.paginacao { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }

/* ---------- Módulo Senhas ---------- */
.barra-acoes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
form.inline { display: inline; margin: 0; }
select, input[type=search] {
  background: var(--preto); border: 1px solid var(--borda); border-radius: 8px;
  color: var(--texto); font: 400 14px "Poppins", sans-serif; padding: 9px 12px; outline: none;
}
select:focus, input[type=search]:focus { border-color: var(--dourado); }
.layout-pastas { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.pastas h2 { margin-bottom: 10px; }
.lista-pastas { display: flex; flex-direction: column; gap: 2px; }
.lista-pastas a { padding: 8px 10px; border-radius: 8px; }
.lista-pastas a:hover { background: var(--preto-3); }
.lista-pastas a.ativo { color: var(--dourado); background: rgba(212, 175, 55, .1); font-weight: 600; }
.acoes-pasta { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--borda); }
.acoes-pasta form { display: contents; }
.busca { display: flex; gap: 8px; margin-bottom: 12px; }
.busca input { flex: 1; }
.busca[hidden] { display: none; }
.botao.perigo:hover { border-color: var(--perigo); color: #ffb4b6; }
.link { color: var(--dourado-claro); }
.link:hover { text-decoration: underline; }
.celula-senha { white-space: nowrap; }
.valor-senha { font-family: Consolas, monospace; letter-spacing: 1px; margin-right: 6px; }
.valor-senha.visivel { color: var(--dourado-claro); letter-spacing: 0; }
.botao-icone {
  background: none; border: 1px solid transparent; border-radius: 6px; padding: 4px;
  color: var(--texto-suave); cursor: pointer; vertical-align: middle;
}
.botao-icone:hover { color: var(--dourado); border-color: var(--borda); }
.botao-icone.feito { color: var(--sucesso); }
.botao-icone.estrela { margin-right: 4px; padding: 6px; }
.botao-icone.estrela.favorita { color: var(--dourado); }
.botao-icone.estrela.favorita .icone { fill: currentColor; }
.observacao { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--texto-suave); }
.vazio { text-align: center; padding: 32px 16px !important; }
.campo-senha { display: flex; gap: 6px; }
.campo-senha input { flex: 1; min-width: 0; }
@media (max-width: 860px) { .layout-pastas { grid-template-columns: 1fr; } }

/* ---------- Mensagens ---------- */
.mensagens { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.mensagem { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--borda); background: var(--preto-3); }
.mensagem.success { border-color: rgba(70, 167, 88, .5); }
.mensagem.error { border-color: rgba(229, 72, 77, .6); color: #ffb4b6; }

/* ---------- Tela de login ---------- */
.tela-login {
  min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(ellipse at top, rgba(212, 175, 55, .12), transparent 60%), var(--preto);
}
.login-cartao { width: 100%; max-width: 380px; padding: 32px; border-color: var(--dourado-escuro); }
.marca { text-align: center; margin-bottom: 24px; }
.marca h1 { font-size: 22px; letter-spacing: 2px; }
.marca-simbolo { font-size: 32px; color: var(--dourado); display: block; margin-bottom: 4px; }

/* ---------- Celular ---------- */
@media (max-width: 720px) {
  .usuario-texto, .botao-modulo span, .marca-topo span { display: none; }
  .botao-modulo { padding: 8px 10px; }
  h1 { font-size: 20px; }
  /* No celular as janelas ocupam a tela toda */
  .janela, .janela.maximizada {
    left: 0 !important; top: var(--altura-topo, 100px) !important; width: 100vw !important;
    height: calc(100vh - var(--altura-topo, 100px) - 46px) !important;
    border-radius: 0; border-left: 0; border-right: 0; min-width: 0;
  }
  .janela-canto, .janela-botao:nth-child(2) { display: none; }
}
