/* SGL | Câmara Municipal de Serranópolis
   Paleta oficial (Manual de Bordo v2): verde #194a36, ouro #f8b80d, marinho #06284c, cinza #f3f3f3, texto #1a1a1a. Fonte: Montserrat. */
@font-face { font-family: Montserrat; font-weight: 400; font-display: swap; src: url(../fonts/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 500; font-display: swap; src: url(../fonts/montserrat-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 700; font-display: swap; src: url(../fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 800; font-display: swap; src: url(../fonts/montserrat-latin-800-normal.woff2) format("woff2"); }

:root {
  --verde: #194a36; --verde-esc: #10331f; --verde-cl: #e7efea;
  --ouro: #f8b80d; --marinho: #06284c;
  --fundo: #f3f3f3; --papel: #fff; --texto: #1a1a1a; --mudo: #66706b;
  --linha: #d7dcd9; --perigo: #b3261e; --perigo-cl: #fbeceb;
  --raio: 12px; --sombra: 0 1px 2px rgba(16,51,31,.06), 0 4px 16px rgba(16,51,31,.05);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 400 15px/1.5 Montserrat, system-ui, sans-serif; color: var(--texto); background: var(--fundo); -webkit-font-smoothing: antialiased; }
a { color: var(--verde); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
code { font-family: ui-monospace, Menlo, monospace; background: var(--fundo); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
.ic { width: 18px; height: 18px; flex: none; }
.mudo { color: var(--mudo); }
.nowrap { white-space: nowrap; }

/* Estrutura */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--verde) 264px, var(--fundo) 264px); }
.lateral { background: var(--verde); color: #fff; display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.marca { display: flex; gap: 12px; align-items: center; color: #fff; padding: 4px 48px 22px 8px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 14px; }
.marca:hover { text-decoration: none; }
.marca strong { display: block; font-weight: 800; font-size: 20px; letter-spacing: .04em; color: var(--ouro); }
.marca small { display: block; font-weight: 500; font-size: 11px; line-height: 1.3; opacity: .95; }
.lateral nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.lateral nav a, .lateral nav .breve { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #fff; font-weight: 600; font-size: 14px; }
.lateral nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.lateral nav a.ativo { background: #fff; color: var(--verde); font-weight: 700; }
.lateral nav a.ativo .ic { color: var(--verde); }
.lateral nav .breve { opacity: .8; cursor: default; font-weight: 500; }
.lateral nav .breve em { white-space: nowrap; font-size: 9px !important; margin-left: auto; font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; border: 1px solid rgba(255,255,255,.4); border-radius: 99px; padding: 1px 7px; }
.nav-titulo { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--ouro); opacity: 1; padding: 14px 12px 4px; }
.perfil { display: flex; align-items: center; gap: 10px; padding: 14px 8px 2px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 14px; }
.perfil a { color: rgba(255,255,255,.9); padding: 6px; border-radius: 8px; display: inline-flex; }
.perfil a:hover { background: rgba(255,255,255,.1); color: #fff; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ouro); color: var(--verde-esc); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.perfil-txt { flex: 1; min-width: 0; }
.perfil-txt strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.perfil-txt small { font-size: 11px; opacity: .9; }

.conteudo { padding: 28px 44px 72px; min-width: 0; max-width: none; }
.topo { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.topo h1 { font-weight: 800; font-size: 26px; color: var(--verde-esc); flex: 1; }
.topo-acao { display: flex; gap: 8px; flex-wrap: wrap; }
.topo-ferramentas { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; border: 0; background: var(--verde); color: #fff; width: 40px; height: 40px; border-radius: 10px; font-size: 18px; }

/* Componentes */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--linha); background: var(--papel); color: var(--texto); font: 600 14px Montserrat, sans-serif; padding: 9px 16px; border-radius: 10px; cursor: pointer; text-decoration: none; transition: .15s; }
.btn:hover { border-color: var(--verde); text-decoration: none; }
.btn-primario { background: var(--verde); color: #fff; border-color: var(--verde); }
.btn-primario:hover { background: var(--verde-esc); }
.btn-perigo { background: var(--perigo); color: #fff; border-color: var(--perigo); }
.btn-claro { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-claro:hover { background: rgba(255,255,255,.25); border-color: #fff; }
.btn-grande { padding: 14px 22px; font-size: 16px; }
.btn-bloco { width: 100%; justify-content: center; padding: 13px; font-size: 15px; }
.btn-mini { padding: 5px 10px; font-size: 12px; }

.cartao { background: var(--papel); border-radius: var(--raio); box-shadow: var(--sombra); padding: 22px 24px; margin-bottom: 20px; }
.cartao.sem-pad { padding: 0; overflow-x: auto; }
.cartao.estreito { max-width: 760px; }
.cartao h3 { font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.cartao-topo { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.cartao-topo a { font-size: 13px; }
.cartao.perigo summary { cursor: pointer; font-weight: 700; color: var(--perigo); }
.cartao.perigo[open] { box-shadow: 0 0 0 1px var(--perigo-cl), var(--sombra); }

.aviso { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; border-left: 4px solid; }
.aviso-ok { background: var(--verde-cl); border-color: var(--verde); }
.aviso-erro { background: var(--perigo-cl); border-color: var(--perigo); color: #7a1a14; }
.aviso-info { background: #eef3f9; border-color: var(--marinho); color: #0c2d52; }
.aviso-alerta { background: #fff7e0; border-color: var(--ouro); line-height: 2; }
.cartao .aviso:last-child { margin-bottom: 0; margin-top: 16px; }

.selo { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 99px; background: var(--fundo); color: var(--mudo); vertical-align: middle; }
.selo-anulado { background: var(--perigo-cl); color: var(--perigo); }
.selo-ok { background: var(--verde-cl); color: var(--verde); }
.selo-usado { background: rgba(248,184,13,.16); color: #9a6a00; }
.proximo-passo { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.proximo-passo h3 { font-size: 15px; font-weight: 700; margin: 0 0 3px; }
.proximo-passo p { margin: 0; max-width: 60ch; }
.proximo-passo .btn { flex-shrink: 0; }
.selo-admin { background: #fff2c9; color: #7a5800; }
.selo-gestor { background: var(--verde-cl); color: var(--verde); }
.selo-vereador { background: #e6edf6; color: var(--marinho); }

.num { --cor: var(--verde); display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--texto); font-variant-numeric: tabular-nums; white-space: nowrap; }
.num b { background: var(--cor); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; padding: 3px 7px; border-radius: 6px; }

/* Tabelas */
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela th { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mudo); padding: 12px 16px; border-bottom: 1px solid var(--linha); background: #fafbfa; }
.cartao:not(.sem-pad) .tabela th { background: none; padding-left: 0; }
.tabela td { padding: 13px 16px; border-bottom: 1px solid var(--linha); vertical-align: top; }
.cartao:not(.sem-pad) .tabela td { padding-left: 0; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tr.clicavel { cursor: pointer; }
.tabela tr.clicavel:hover td { background: #f8faf9; }
.tabela tr.anulado td { color: var(--mudo); }
.tabela tr.anulado .num { text-decoration: line-through; opacity: .6; }

/* Formulários */
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13.5px; }
.form label small { font-weight: 400; color: var(--mudo); }
input, select, textarea { font: 400 15px Montserrat, sans-serif; color: var(--texto); border: 1px solid #d3d8d5; border-radius: 10px; padding: 10px 12px; background: #fff; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ouro); outline-offset: 1px; border-color: var(--verde); }
input[type=color] { height: 42px; padding: 4px; }
input[type=radio], input[type=checkbox] { width: auto; accent-color: var(--verde); }
.form label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
.duas-colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duas-colunas.topo-alinhado { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); align-items: start; }
.inline { display: flex; gap: 6px; align-items: center; }
input.mini { width: 78px; padding: 6px 8px; font-size: 13px; }

fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
.opcoes-serie { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.opcao { --cor: var(--verde); position: relative; cursor: pointer; }
.opcao input { position: absolute; opacity: 0; }
.opcao span { display: flex; flex-direction: column; gap: 2px; border: 1.5px solid var(--linha); border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 13.5px; transition: .15s; height: 100%; }
.opcao span b { color: var(--cor); font-weight: 800; font-size: 11px; letter-spacing: .06em; }
.opcao span small { color: var(--mudo); font-weight: 500; font-size: 12px; font-variant-numeric: tabular-nums; }
.opcao:hover span { border-color: var(--cor); }
.opcao input:checked + span { border-color: var(--cor); box-shadow: inset 0 0 0 1.5px var(--cor); background: color-mix(in srgb, var(--cor) 7%, white); }
.opcao input:focus-visible + span { outline: 2px solid var(--ouro); }

.filtros { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filtros select { width: auto; }
.filtros .combo-in { width: auto; flex: 0 1 215px; min-width: 170px; }
.filtros select.combo-sel { display: none; }
.filtros .busca { flex: 1; min-width: 240px; position: relative; display: flex; align-items: center; }
.filtros .busca .ic { position: absolute; left: 12px; color: var(--mudo); }
.filtros .busca input { padding-left: 38px; }
.paginacao { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.paginacao > span:last-child { display: flex; gap: 10px; align-items: center; }

/* Painel */
.boas-vindas { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: linear-gradient(120deg, var(--verde) 0%, #1f5c43 100%); color: #fff; border-radius: var(--raio); padding: 26px 28px; margin-bottom: 28px; flex-wrap: wrap; position: relative; overflow: hidden; }
.boas-vindas h2 { font-weight: 800; font-size: 24px; }
.boas-vindas p { margin: 6px 0 0; opacity: .85; }
.metricas { display: flex; gap: 10px; margin: 0; position: relative; z-index: 1; }
.metricas div { background: rgba(255,255,255,.1); border-radius: 10px; padding: 10px 18px; min-width: 120px; }
.metricas dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.metricas dd { margin: 0; font-weight: 800; font-size: 26px; color: var(--ouro); font-variant-numeric: tabular-nums; }

.secao { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--mudo); margin: 0 0 12px; }
.grade-series { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 28px; }
.serie-card { --cor: var(--verde); display: flex; flex-direction: column; gap: 4px; background: var(--papel); border-radius: var(--raio); box-shadow: var(--sombra); padding: 16px 18px 14px; color: var(--texto); border-top: 4px solid var(--cor); transition: transform .15s, box-shadow .15s; }
a.serie-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16,51,31,.08), 0 10px 24px rgba(16,51,31,.1); }
.serie-sigla { color: var(--cor); font-weight: 800; font-size: 12px; letter-spacing: .08em; }
.serie-nome { font-weight: 600; font-size: 14px; min-height: 2.6em; line-height: 1.3; }
.serie-prox { font-weight: 800; font-size: 28px; color: var(--verde-esc); font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 6px; }
.serie-prox small { display: block; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--mudo); }
.serie-ult { font-size: 12px; color: var(--mudo); }

/* Número recém-reservado */
.numero-novo { --cor: var(--verde); background: var(--verde); color: #fff; border-radius: var(--raio); padding: 30px; margin-bottom: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; border-left: 8px solid var(--ouro); animation: surgir .4s ease-out; }
.numero-novo small { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; color: var(--ouro); }
.numero-novo strong { font-size: 52px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.numero-novo span { opacity: .85; margin-bottom: 10px; }
@keyframes surgir { from { opacity: 0; transform: translateY(8px); } }

.ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; margin: 0; }
.ficha .largo { grid-column: 1 / -1; }
.ficha dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mudo); font-weight: 700; margin-bottom: 4px; }
.ficha dd { margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ficha .anulacao dd { color: var(--perigo); }

.vazio { text-align: center; padding: 48px 20px; color: var(--mudo); }
.vazio h2 { font-size: 18px; color: var(--texto); margin-bottom: 6px; }

/* Login */

/* Celular */
@media (max-width: 900px) {
  .app { background: var(--fundo); }
  .app { grid-template-columns: 1fr; }
  .lateral { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 20; transform: translateX(-100%); transition: transform .2s; }
  .lateral.aberto { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .menu-btn { display: block; }
  .conteudo { padding: 18px 16px 48px; }
  .topo { flex-wrap: wrap; }
  .topo h1 { font-size: 21px; }
  .topo-acao { width: 100%; }
  .duas-colunas, .duas-colunas.topo-alinhado, .ficha { grid-template-columns: 1fr; }
  .metricas { width: 100%; }
  .metricas div { flex: 1; min-width: 0; padding: 10px 12px; }
  .numero-novo strong { font-size: 40px; }
  .tabela th:nth-child(3), .tabela td:nth-child(3), .tabela th:nth-child(4), .tabela td:nth-child(4) { display: none; }
}

/* Mapa de numeração (tela Reservar) */
.reserva-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(330px, 1fr); gap: 20px; align-items: start; }
.mapa-cabe { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.mapa-cabe h3 { font-weight: 700; font-size: 16px; } .mapa-cabe .mudo { font-size: 12.5px; }
.mapa-sub { color: var(--mudo); font-size: 12.5px; margin: 0 0 14px; }
.grade-num { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 6px; }
.gn { text-align: center; padding: 7px 2px; border-radius: 7px; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; border: 1px solid var(--linha); color: var(--texto); background: #fff; }
.gn { cursor: pointer; }
.gn.usado { color: var(--mudo); opacity: .75; background: var(--fundo); border-color: transparent; }
.gn.sel { outline: 2px solid var(--verde); outline-offset: 1px; opacity: 1; }
.mapa-historico { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--linha); }
.mh-topo { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; font-size: 15px; }
.mh { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 0 0 12px; font-size: 13.5px; }
.mh dt { color: var(--mudo); font-weight: 600; }
.mh dd { margin: 0; }
@media (max-width: 600px) { .mh { grid-template-columns: 1fr; gap: 0; } .mh dd { margin-bottom: 6px; } }
.gn.prox { background: var(--verde); color: #fff; border-color: var(--verde); box-shadow: 0 0 0 3px var(--verde-cl); }
.gn.livre { color: var(--verde-esc); border-color: #cfe0d7; }
.legenda { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 12.5px; color: var(--mudo); }
.legenda span { display: inline-flex; align-items: center; gap: 7px; }
.legenda i { width: 16px; height: 16px; border-radius: 5px; display: inline-block; border: 1px solid var(--linha); }
.legenda i.u { background: var(--fundo); opacity: .5; border-color: transparent; }
.legenda i.p { background: var(--verde); border-color: var(--verde); }
.legenda i.l { background: #fff; border-color: #cfe0d7; }
@media (max-width: 1100px) { .reserva-cols { grid-template-columns: 1fr; } }

/* Bloco de reserva dentro do Livro de Numeração */
.bloco-reserva { margin-bottom: 26px; scroll-margin-top: 18px; }
.bloco-reserva-cabe { margin-bottom: 18px; }
.bloco-reserva-cabe h2 { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; }
.bloco-reserva-cabe h2 .ic { color: var(--verde); }
.bloco-reserva-cabe .mudo { margin: 4px 0 0; font-size: 13px; }
.bloco-reserva #mapa { background: var(--fundo); }
.livro-historico { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 14px; padding-top: 22px; border-top: 1px solid var(--linha); }
.livro-historico h2 { font-size: 16px; font-weight: 700; }
.livro-historico .mudo { font-size: 12.5px; }

/* ====================== Páginas públicas (cidadão) ====================== */
body.pub { background: var(--fundo); }
.pub-topo { background: var(--verde); color: #fff; }
.pub-topo-in { max-width: 1100px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pub-marca { display: flex; align-items: center; gap: 12px; color: #fff; }
.pub-marca:hover { text-decoration: none; }
.pub-marca strong { display: block; font-weight: 800; font-size: 17px; line-height: 1.2; }
.pub-marca small { display: block; font-size: 12px; opacity: .8; }
.pub-nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pub-nav a { color: rgba(255,255,255,.85); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 8px; }
.pub-nav a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.pub-nav a.ativo { background: #fff; color: var(--verde); }
.pub-nav a.pub-restrita { border: 1px solid rgba(255,255,255,.4); opacity: .9; }
.pub-nav a.pub-voltar { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.55); opacity: 1; }
.pub-nav a.pub-voltar:hover { background: #fff; color: var(--verde); }
.pub-nav a.pub-voltar .ic { width: 17px; height: 17px; }
.pub-conteudo { max-width: 1100px; margin: 0 auto; padding: 32px 24px 60px; }
.pub-conteudo h1 { font-weight: 800; font-size: 28px; color: var(--verde-esc); margin-bottom: 6px; }
.pub-sub { color: var(--mudo); margin: 0 0 22px; max-width: 70ch; }
.pub-secao { font-size: 16px; font-weight: 800; color: var(--verde-esc); margin: 0 0 10px; }
.pub-rodape { max-width: 1100px; margin: 0 auto; padding: 24px; border-top: 1px solid var(--linha); font-size: 13px; color: var(--texto); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .pub-topo-in { flex-direction: column; align-items: flex-start; }
  .pub-conteudo h1 { font-size: 22px; }
}

/* ====================== Modo escuro (neutro) ====================== */
html[data-tema="escuro"] {
  --fundo: #0e1013; --papel: #181b20; --texto: #f4f6f8; --mudo: #c3c9d0;
  --linha: #282c33; --verde-cl: #1a241e; --perigo-cl: #2c1a18;
  --sombra: 0 1px 2px rgba(0,0,0,.4), 0 6px 22px rgba(0,0,0,.35);
}
/* barra lateral mantém o verde da marca; só o conteúdo fica grafite */
html[data-tema="escuro"] .topo h1 { color: #eef0f3; }
html[data-tema="escuro"] code { background: #0b0d10; }
html[data-tema="escuro"] input,
html[data-tema="escuro"] select,
html[data-tema="escuro"] textarea { background: #0f1216; border-color: #2d323a; color: var(--texto); }
html[data-tema="escuro"] .tabela th { background: #141720; }
html[data-tema="escuro"] .cartao:not(.sem-pad) .tabela th { background: none; }
html[data-tema="escuro"] .tabela tr.clicavel:hover td { background: rgba(255,255,255,.035); }
html[data-tema="escuro"] .aviso-info { background: #15202e; color: #bcd4ef; }
html[data-tema="escuro"] .aviso-alerta { background: #2a2411; }
html[data-tema="escuro"] .aviso-erro { color: #f0b3ad; }
html[data-tema="escuro"] .selo-admin { background: #332a12; color: #e3c266; }
html[data-tema="escuro"] .selo-vereador { background: #1a2636; color: #9db8dd; }
html[data-tema="escuro"] .selo-usado { background: rgba(248,184,13,.14); color: #e0b964; }

/* ====================== Menu lateral: hover ouro (claro e escuro) ====================== */
.lateral nav a:not(.ativo):hover { background: rgba(255,255,255,.12); color: var(--ouro); }
.lateral nav a:not(.ativo):hover .ic { color: var(--ouro); }
.perfil a:hover { color: var(--ouro); }

.lateral { overflow-x: hidden; }

/* ====================== Modo escuro: texto branco e nítido ====================== */
html[data-tema="escuro"] a { color: #fff; }
html[data-tema="escuro"] .btn { color: #fff; background: #20242b; border-color: #3a404a; }
html[data-tema="escuro"] .btn:hover { border-color: var(--ouro); color: var(--ouro); }
html[data-tema="escuro"] .btn-primario { background: var(--verde); border-color: #2f7a58; color: #fff; }
html[data-tema="escuro"] .btn-primario:hover { background: #1f5c43; color: #fff; }
html[data-tema="escuro"] .btn-perigo { background: var(--perigo); color: #fff; }
html[data-tema="escuro"] .topo h1,
html[data-tema="escuro"] .serie-prox,
html[data-tema="escuro"] .pub-conteudo h1,
html[data-tema="escuro"] .pub-secao,
html[data-tema="escuro"] .gn.livre { color: #fff; }
html[data-tema="escuro"] .serie-sigla { color: #fff; opacity: .85; }
html[data-tema="escuro"] .serie-card { color: #fff; }
html[data-tema="escuro"] .serie-prox small,
html[data-tema="escuro"] .serie-ult { color: #c3c9d0; }
html[data-tema="escuro"] .bloco-reserva-cabe h2 .ic { color: #fff; }
html[data-tema="escuro"] .selo-ok,
html[data-tema="escuro"] .selo-gestor { color: #bff0d6; }
html[data-tema="escuro"] .gn.livre { border-color: #3a404a; }
/* menu lateral e topo público mantêm o verde, texto branco */
html[data-tema="escuro"] .lateral nav a { color: #fff; }
html[data-tema="escuro"] .lateral nav a:hover { color: var(--ouro); }
html[data-tema="escuro"] .lateral nav a.ativo { background: #fff; color: var(--verde); }
html[data-tema="escuro"] .marca, html[data-tema="escuro"] .pub-marca { color: #fff; }
html[data-tema="escuro"] .marca strong { color: var(--ouro); }
html[data-tema="escuro"] .perfil a { color: #fff; }
html[data-tema="escuro"] .perfil a:hover { color: var(--ouro); }
html[data-tema="escuro"] .pub-nav a { color: #fff; }
html[data-tema="escuro"] .pub-nav a.ativo { color: var(--verde); }
html[data-tema="escuro"] .pub-nav a:hover { color: var(--ouro); }
html[data-tema="escuro"] .pub-nav a.ativo:hover, html[data-tema="escuro"] .pub-nav a.pub-voltar:hover { color: var(--verde); }

/* ====================== Painel: etiquetas e hover ====================== */
.serie-sigla { display: block; }
.serie-sigla b { display: inline-block; background: var(--cor); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .07em; padding: 3px 9px; border-radius: 6px; }
.serie-nome { transition: color .18s; }
a.serie-card:hover .serie-nome { color: #b07d00; }
html[data-tema="escuro"] a.serie-card:hover .serie-nome { color: var(--ouro); }
html[data-tema="escuro"] .serie-sigla { opacity: 1; }
html[data-tema="escuro"] .serie-sigla b { color: #fff; }

/* ====================== Ferramentas do topo (busca, ajuda, tema) ====================== */
.tema-btn, .busca-rapida { height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--papel); border: 1px solid var(--linha); color: var(--texto); border-radius: 10px; cursor: pointer; padding: 0 12px; font: 600 13px Montserrat, sans-serif; transition: .15s; }
.tema-btn { width: 38px; padding: 0; }
.tema-btn:hover, .busca-rapida:hover { border-color: var(--ouro); color: #b07d00; }
html[data-tema="escuro"] .tema-btn:hover, html[data-tema="escuro"] .busca-rapida:hover { color: var(--ouro); }
.tema-btn .ic { width: 18px; height: 18px; }
.tema-btn .ic-lua, .tema-btn .ic-sol, .tema-btn .ic-ajuda { display: inline-flex; font-weight: 800; font-size: 16px; }
.tema-btn .ic-sol { display: none; }
html[data-tema="escuro"] .tema-btn .ic-lua { display: none; }
html[data-tema="escuro"] .tema-btn .ic-sol { display: inline-flex; }
.busca-rapida kbd, .as-caixa kbd { font: 700 10.5px Montserrat, sans-serif; background: var(--fundo); border: 1px solid var(--linha); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--mudo); }
.versao-btn { margin-top: 10px; background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; font: 600 11px Montserrat, sans-serif; padding: 6px 10px; border-radius: 8px; cursor: pointer; transition: .15s; }
.versao-btn:hover { border-color: var(--ouro); color: var(--ouro); }
@media (max-width: 900px) { .busca-rapida span, .busca-rapida kbd { display: none; } .busca-rapida { width: 38px; padding: 0; } }

/* ====================== Assistente: janelas ====================== */
.as-fundo { position: fixed; inset: 0; z-index: 1000; background: rgba(6,20,14,.6); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .2s; }
.as-fundo.aberto { opacity: 1; }
.as-caixa { background: var(--papel); color: var(--texto); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45); width: 100%; max-width: 580px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; overflow: hidden; transform: translateY(16px) scale(.97); transition: transform .28s cubic-bezier(.2,.9,.3,1.2); }
.as-fundo.aberto .as-caixa { transform: none; }
.as-rodape { display: flex; justify-content: space-between; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--linha); }
.nv-topo { position: relative; overflow: hidden; background: linear-gradient(125deg, #10331f, #194a36 55%, #1f6a4b); color: #fff; padding: 28px 28px 24px; }
.nv-topo h2 { font-size: 24px; font-weight: 800; line-height: 1.2; margin: 12px 0 6px; }
.nv-topo p { margin: 0; opacity: .9; font-size: 13.5px; }
.nv-selo { display: inline-block; background: var(--ouro); color: #10331f; font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 11px; border-radius: 99px; }
.nv-brilho { position: absolute; right: -50px; top: -50px; width: 190px; height: 190px; border-radius: 50%; border: 26px solid rgba(248,184,13,.16); animation: girar 14s linear infinite; }
.nv-brilho::after { content: ""; position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--ouro); box-shadow: 0 0 18px var(--ouro); }
@keyframes girar { to { transform: rotate(360deg); } }
.nv-corpo { padding: 20px 28px 8px; overflow-y: auto; }
.nv-bloco h4, .nv-hist h4 { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin: 14px 0 8px; color: var(--mudo); }
.nv-bloco h4 i { font-style: normal; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; color: #fff; }
.nv-bloco.novo h4 i { background: #2f7a58; } .nv-bloco.melhorou h4 i { background: #b07d00; } .nv-bloco.removido h4 i { background: #b3261e; }
.nv-bloco ul { list-style: none; margin: 0; padding: 0; }
.nv-bloco li { position: relative; padding: 7px 0 7px 18px; font-size: 14px; line-height: 1.45; border-bottom: 1px dashed var(--linha); opacity: 0; transform: translateX(-8px); animation: entra .4s forwards; animation-delay: calc(.25s + var(--i) * .07s); }
.nv-bloco li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--ouro); }
.nv-bloco.removido li::before { background: #b3261e; }
@keyframes entra { to { opacity: 1; transform: none; } }
.nv-hist { margin-top: 10px; padding-bottom: 12px; }
.nv-antiga { border: 1px solid var(--linha); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; }
.nv-antiga summary { cursor: pointer; font-weight: 700; font-size: 13px; } .nv-antiga summary small { color: var(--mudo); font-weight: 500; margin-left: 6px; }
.nv-antiga li { opacity: 1; transform: none; animation: none; }

/* Busca rápida */
.as-paleta { max-width: 560px; align-self: start; margin-top: 12vh; }
.pl-busca { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--linha); }
.pl-busca span { font-size: 22px; color: var(--mudo); }
.pl-busca input { flex: 1; border: 0; background: none; font: 500 16px Montserrat, sans-serif; color: var(--texto); outline: none; padding: 4px 0; }
.pl-lista { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.pl-lista li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.pl-lista li em { font-style: normal; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 800; color: var(--mudo); min-width: 84px; }
.pl-lista li.sel, .pl-lista li:hover { background: var(--verde); color: #fff; } .pl-lista li.sel em, .pl-lista li:hover em { color: var(--ouro); }
.pl-lista li.vazio { color: var(--mudo); cursor: default; } .pl-lista li.vazio:hover { background: none; color: var(--mudo); }
.pl-dica { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--linha); font-size: 12px; color: var(--mudo); }

/* ====================== Guia interativo ====================== */
.tr-bloq { position: fixed; inset: 0; z-index: 900; background: rgba(6,20,14,.72); transition: opacity .2s; }
.tr-anel { position: fixed; z-index: 901; border-radius: 14px; border: 2px solid var(--ouro); box-shadow: 0 0 0 4px rgba(248,184,13,.25), 0 0 28px rgba(248,184,13,.5); pointer-events: none; transition: all .3s cubic-bezier(.3,.8,.3,1); animation: pulsa 1.8s ease-in-out infinite; }
@keyframes pulsa { 50% { box-shadow: 0 0 0 9px rgba(248,184,13,.12), 0 0 34px rgba(248,184,13,.6); } }
.tr-card { position: fixed; z-index: 902; width: 360px; max-width: calc(100vw - 24px); background: var(--papel); color: var(--texto); border-radius: 16px; padding: 22px 22px 16px; box-shadow: 0 24px 60px rgba(0,0,0,.45); transition: left .3s, top .3s; }
.tr-card.centro { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 460px; text-align: center; }
.tr-card.entra { animation: card-in .35s cubic-bezier(.2,.9,.3,1.2); }
.tr-card.centro.entra { animation: card-in-c .35s cubic-bezier(.2,.9,.3,1.2); }
@keyframes card-in { from { opacity: 0; scale: .94; } } @keyframes card-in-c { from { opacity: 0; scale: .94; } }
.tr-bloq.sai, .tr-anel.sai, .tr-card.sai { opacity: 0; }
.tr-icone { font-size: 44px; line-height: 1; margin-bottom: 8px; }
.tr-passo { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #b07d00; }
.tr-card h3 { font-size: 20px; font-weight: 800; margin: 4px 0 8px; }
.tr-card p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--texto); }
.tr-pontos { display: flex; gap: 5px; justify-content: center; margin: 14px 0 12px; }
.tr-pontos b { width: 7px; height: 7px; border-radius: 99px; background: var(--linha); transition: .25s; }
.tr-pontos b.ok { background: #2f7a58; } .tr-pontos b.at { width: 20px; background: var(--ouro); }
.tr-acoes { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tr-card.centro .tr-acoes { justify-content: space-between; }
.tr-acoes > span { display: flex; gap: 8px; margin-left: auto; }
.tr-pular { background: none; border: 0; color: var(--mudo); font: 600 12.5px Montserrat, sans-serif; cursor: pointer; text-decoration: underline; padding: 6px; }
body.tr-ativo { overflow-x: hidden; }
.confete { position: fixed; inset: 0; z-index: 1100; pointer-events: none; }
/* treino */
.tn { text-align: left; margin-bottom: 4px; }
.tn-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tn-chip { display: flex; align-items: center; gap: 8px; background: var(--fundo); border: 2px solid transparent; border-radius: 10px; padding: 9px 11px; font: 600 13px Montserrat, sans-serif; color: var(--texto); cursor: pointer; transition: .15s; }
.tn-chip b { background: var(--cor); color: #fff; font-size: 10.5px; padding: 2px 7px; border-radius: 6px; letter-spacing: .05em; }
.tn-chip:hover { transform: translateY(-2px); border-color: var(--ouro); } .tn-chip.sel { border-color: var(--cor); }
.tn-res { margin-top: 12px; } .tn-res.mostra { animation: entra .45s both; }
.tn-num { background: var(--verde); color: #fff; border-radius: 12px; padding: 12px 16px; border-left: 6px solid var(--ouro); } .tn-num small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ouro); font-weight: 800; } .tn-num strong { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tn-fluxo { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.tn-fluxo li { display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; align-items: center; font-weight: 700; font-size: 13px; opacity: 0; animation: entra .4s forwards; }
.tn-fluxo li:nth-child(1) { animation-delay: .35s; } .tn-fluxo li:nth-child(2) { animation-delay: .75s; } .tn-fluxo li:nth-child(3) { animation-delay: 1.15s; }
.tn-fluxo li b { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--ouro); color: #10331f; display: grid; place-items: center; font-size: 12px; }
.tn-fluxo li small { grid-column: 2; font-weight: 500; color: var(--mudo); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .tr-anel, .nv-brilho { animation: none; } .nv-bloco li, .tn-fluxo li { opacity: 1; transform: none; animation: none; } }

/* ====================== Livro de Numeração: etiquetas e modo escuro ====================== */
.opcao span b { display: inline-block; align-self: flex-start; background: var(--cor); color: #fff; padding: 2px 8px; border-radius: 6px; margin-bottom: 3px; }
html[data-tema="escuro"] .opcao span { background: #1d2127; border-color: #343a43; color: #fff; }
html[data-tema="escuro"] .opcao:hover span { border-color: var(--ouro); }
html[data-tema="escuro"] .opcao span small { color: #c3c9d0; }
html[data-tema="escuro"] .opcao input:checked + span { background: #223a2e; border-color: var(--ouro); box-shadow: inset 0 0 0 1.5px var(--ouro); }
html[data-tema="escuro"] .opcao input:checked + span small { color: #fff; }
html[data-tema="escuro"] .mapa-sub b { color: #fff !important; }
html[data-tema="escuro"] .mapa-sub b[style] { color: var(--ouro) !important; }
html[data-tema="escuro"] .bloco-reserva #mapa { background: #12151a; }
html[data-tema="escuro"] .gn { background: #20242b; border-color: #3a404a; color: #fff; }
html[data-tema="escuro"] .gn.livre { background: #20242b; border-color: #3a404a; color: #fff; }
html[data-tema="escuro"] .gn.usado { background: #0e1013; color: #8a919a; opacity: .55; }
html[data-tema="escuro"] .gn.prox { background: var(--ouro); color: #10331f; border-color: var(--ouro); box-shadow: 0 0 0 3px rgba(248,184,13,.28); font-weight: 800; }
html[data-tema="escuro"] .legenda { color: #c3c9d0; }
html[data-tema="escuro"] .legenda i { border-color: #3a404a; }
html[data-tema="escuro"] .legenda i.l { background: #20242b; border-color: #3a404a; }
html[data-tema="escuro"] .legenda i.u { background: #0e1013; opacity: .8; }
html[data-tema="escuro"] .legenda i.p { background: var(--ouro); border-color: var(--ouro); }

/* Ícone de editar (lápis) nas listas */
.icone-editar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--linha); vertical-align: middle; margin-left: 6px; transition: .15s; }
.icone-editar .ic { width: 16px; height: 16px; }
.icone-editar:hover { border-color: var(--ouro); background: rgba(248,184,13,.14); color: #b07d00; text-decoration: none; }
html[data-tema="escuro"] .icone-editar:hover { color: var(--ouro); }

.nv-conf { margin: 0; padding: 0 22px 14px; font-size: 12px; color: var(--mudo); text-align: center; }
.nv-topo { flex-shrink: 0; }
.as-novidades .as-rodape { justify-content: flex-end; flex-shrink: 0; }
.as-novidades .as-rodape [data-guia] { margin-right: auto; }
.nv-conf { flex-shrink: 0; }

/* Propositores / responsáveis */
.campo-pessoas { border: 1px solid var(--linha); border-radius: 12px; padding: 14px 16px 12px; }
.campo-pessoas legend { padding: 0 6px; }
.campo-pessoas legend small { color: var(--mudo); font-weight: 500; margin-left: 4px; }
.pessoas-grupo { margin-top: 10px; } .pessoas-grupo > small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mudo); margin-bottom: 6px; }
.pessoas-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-pessoa { position: relative; cursor: pointer; }
.chip-pessoa input { position: absolute; opacity: 0; }
.chip-pessoa span { display: inline-flex; flex-direction: column; border: 1.5px solid var(--linha); border-radius: 10px; padding: 7px 14px; font-weight: 600; font-size: 13.5px; transition: .15s; line-height: 1.25; }
.chip-pessoa span em { font-style: normal; font-weight: 500; font-size: 11px; color: var(--mudo); }
.chip-pessoa:hover span { border-color: var(--ouro); }
.chip-pessoa input:checked + span { background: var(--verde); border-color: var(--verde); color: #fff; box-shadow: 0 2px 8px rgba(25,74,54,.25); }
.chip-pessoa input:checked + span em { color: rgba(255,255,255,.8); }
.chip-pessoa input:checked + span::before { content: "✓ "; font-weight: 800; color: var(--ouro); }
.chip-pessoa input:focus-visible + span { outline: 2px solid var(--ouro); outline-offset: 2px; }
.pessoas-lista { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-leitura { display: inline-block; background: var(--verde-cl); color: var(--verde); font-weight: 700; font-size: 12.5px; padding: 4px 11px; border-radius: 99px; }
.chip-leitura:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--ouro); }
html[data-tema="escuro"] .chip-pessoa span { background: #1d2127; border-color: #343a43; color: #fff; }
html[data-tema="escuro"] .chip-pessoa input:checked + span { background: #223a2e; border-color: var(--ouro); }
html[data-tema="escuro"] .chip-leitura { background: #223a2e; color: #fff; }

/* Comissões */
.grade-comissoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.cartao.comissao { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.comissao header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.comissao header h3 { flex: 1 0 100%; margin: 0; font-size: 15.5px; line-height: 1.3; }
.comissao header .icone-editar { margin-left: auto; }
.comissao-membros { margin: 0; display: grid; gap: 8px; }
.comissao-membros > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: baseline; border-top: 1px solid var(--linha); padding-top: 8px; }
.comissao-membros dt { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mudo); }
.comissao-membros dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-weight: 600; }
.comissao-membros dd a { color: inherit; }
.comissao-membros dd a:hover { color: var(--ouro); text-decoration: none; }
.comissao-membros .a-nomear { color: var(--mudo); font-weight: 500; font-style: italic; }
.comissao footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; font-size: 13px; }
.comissao footer a { font-weight: 700; }
html[data-tema="escuro"] .comissao footer a, html[data-tema="escuro"] .comissao .icone-editar { color: #fff; }
html[data-tema="escuro"] .comissao footer a:hover { color: var(--ouro); text-decoration: none; }

/* Marca d'água: símbolo da Câmara, cortado no canto */
.boas-vindas::after { content: ""; position: absolute; right: -34px; top: -46px; width: 210px; height: 250px; background: url(../img/simbolo-branco.png) no-repeat center / contain; opacity: .09; transform: rotate(8deg); pointer-events: none; }

/* Login */
.tela-login { display: grid; grid-template-columns: 1.08fr 1fr; min-height: 100vh; background: #f3f5f2; }
.login-lado { background: radial-gradient(120% 90% at 0% 0%, #1f5c43 0%, var(--verde) 48%, var(--verde-esc) 100%); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.login-lado::after { content: ""; position: absolute; right: -150px; bottom: -120px; width: 560px; height: 667px; background: url(../img/simbolo-branco.png) no-repeat center / contain; opacity: .07; pointer-events: none; }
.login-lado::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--ouro), rgba(248,184,13,0)); }
.login-marca { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.login-marca img { width: 46px; height: auto; }
.login-marca b { display: block; color: var(--ouro); font-weight: 800; font-size: 22px; letter-spacing: .06em; line-height: 1; }
.login-marca span { display: block; font-size: 12px; font-weight: 500; opacity: .85; margin-top: 4px; }
.login-texto { position: relative; z-index: 1; max-width: 520px; }
.login-lado h1 { font-weight: 800; font-size: 40px; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 14px; }
.login-lado .lead { font-size: 16px; line-height: 1.55; opacity: .88; margin: 0 0 32px; max-width: 44ch; color: #fff; font-weight: 500; }
.login-lado ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.login-lado li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; font-size: 14px; line-height: 1.5; opacity: .92; border: 0; padding: 0; }
.login-lado li i { width: 38px; height: 38px; border-radius: 11px; background: rgba(248,184,13,.14); border: 1px solid rgba(248,184,13,.35); display: grid; place-items: center; color: var(--ouro); }
.login-lado li i .ic { width: 19px; height: 19px; }
.login-lado li strong { display: block; color: #fff; font-size: 14.5px; margin-bottom: 1px; }
.login-rodape { position: relative; z-index: 1; font-size: 12px; opacity: .7; letter-spacing: .04em; }
.login-form { display: grid; place-items: center; padding: 40px 28px; }
.login-cartao { width: 100%; max-width: 400px; background: #fff; border-radius: 20px; padding: 40px 36px 30px; box-shadow: 0 1px 2px rgba(16,51,31,.06), 0 24px 60px -20px rgba(16,51,31,.28); border: 1px solid rgba(16,51,31,.06); display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.login-cartao::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--verde), var(--ouro)); }
.login-brasao { display: none; }
.login-cartao h2 { font-weight: 800; font-size: 27px; color: var(--verde-esc); margin: 0; }
.login-cartao .sub { margin: -8px 0 4px; color: var(--mudo); font-size: 14px; }
.login-cartao label { display: flex; flex-direction: column; gap: 7px; font-weight: 700; font-size: 13px; color: var(--verde-esc); }
.campo-ic { position: relative; display: block; }
.campo-ic > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #8a948e; pointer-events: none; }
.campo-ic input { width: 100%; height: 48px; padding: 0 44px 0 42px; border: 1.5px solid #d9dfda; border-radius: 12px; font: inherit; font-weight: 500; font-size: 15px; background: #fbfcfb; color: #17211b; transition: .15s; }
.campo-ic input:focus { outline: 0; border-color: var(--verde); background: #fff; box-shadow: 0 0 0 4px rgba(25,74,54,.12); }
.ver-senha { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--mudo); font: inherit; font-size: 12px; font-weight: 700; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.ver-senha:hover { color: var(--verde); background: var(--verde-cl); }
.login-cartao .btn-bloco { height: 50px; font-size: 15.5px; border-radius: 12px; margin-top: 4px; }
.login-ajuda { margin: 2px 0 0; text-align: center; font-size: 12.5px; color: var(--mudo); }
.login-pub { display: flex; justify-content: center; border-top: 1px solid #e6ebe7; padding-top: 16px; margin-top: 4px; font-size: 13px; font-weight: 600; }
.login-pub a { color: var(--verde); }
.login-pub a:hover { color: #9a6a00; text-decoration: none; }

/* Mensagem pronta (criação de usuário) */
.msg-acesso { border-left: 4px solid var(--ouro); margin-bottom: 20px; }
.msg-acesso h3 { margin: 0 0 8px; }
.msg-whats { width: 100%; font: inherit; font-size: 14px; line-height: 1.55; font-weight: 500; padding: 12px 14px; border: 1.5px solid var(--linha); border-radius: 12px; background: var(--fundo); color: var(--texto); resize: vertical; }
.msg-acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
html[data-tema="escuro"] .msg-whats { background: #15181d; border-color: #343a43; color: #fff; }

@media (max-width: 900px) {
  .tela-login { grid-template-columns: 1fr; }
  .login-lado { padding: 26px 24px 30px; gap: 18px; }
  .login-lado h1 { font-size: 26px; margin-bottom: 8px; }
  .login-lado .lead { margin-bottom: 0; font-size: 14px; }
  .login-lado ul, .login-rodape { display: none; }
  .login-form { padding: 24px 16px 40px; }
  .login-cartao { padding: 32px 22px 24px; }
}

/* Sessões e pauta */
.sessao-card { display: grid; grid-template-columns: 70px 1fr auto; gap: 18px; align-items: center; margin-bottom: 12px; }
.sessao-data { background: var(--verde); color: #fff; border-radius: 14px; width: 70px; height: 76px; display: grid; place-content: center; text-align: center; line-height: 1; }
.sessao-data b { font-size: 28px; font-weight: 800; }
.sessao-data small { color: var(--ouro); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; margin-top: 4px; }
.sessao-info h3 { margin: 0; font-size: 17px; }
.sessao-info p { margin: 4px 0 0; }
.sessao-acoes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pauta-cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--verde-cl); border-left: 4px solid var(--ouro); border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; }
.pauta-publicar { display: flex; align-items: center; gap: 10px; margin: 0; }
.pauta-lista .pauta-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--linha); }
.pauta-lista .pauta-item:first-child { border-top: 0; }
.pauta-n { width: 30px; height: 30px; border-radius: 50%; background: var(--verde-cl); color: var(--verde); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.pauta-corpo b { display: block; }
.pauta-corpo small { display: inline-block; margin-top: 2px; }
.pauta-botoes { display: flex; gap: 6px; align-items: center; margin: 0; }
.pauta-botoes select { font-size: 12px; padding: 5px 6px; max-width: 150px; }
.pauta-vazio { padding: 16px; color: var(--mudo); }
.pauta-achado { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--linha); }
.pauta-achado select { font-size: 12px; padding: 5px 6px; max-width: 140px; }
.proxima-sessao { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--linha); border-left: 4px solid var(--ouro); border-radius: 14px; padding: 14px 20px; margin-bottom: 26px; color: inherit; transition: .15s; }
.proxima-sessao:hover { text-decoration: none; box-shadow: 0 6px 20px rgba(16,51,31,.12); transform: translateY(-1px); }
.ps-icone { width: 46px; height: 46px; border-radius: 12px; background: var(--verde); color: var(--ouro); display: grid; place-items: center; }
.ps-icone .ic { width: 23px; height: 23px; }
.ps-texto small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mudo); }
.ps-texto b { display: block; font-size: 16px; font-weight: 800; }
.ps-texto em { font-style: normal; color: var(--mudo); font-size: 13px; }
.ps-seta { font-weight: 700; color: var(--verde); font-size: 13.5px; }
.proxima-sessao.vazia { border-left-color: var(--linha); }
.pub-sessao { border-left: 4px solid var(--ouro); }
html[data-tema="escuro"] .pauta-cab { background: #1b2a22; }
html[data-tema="escuro"] .pauta-n { background: #223a2e; color: #fff; }
html[data-tema="escuro"] .proxima-sessao { background: #1d2127; border-color: #343a43; border-left-color: var(--ouro); }
html[data-tema="escuro"] .ps-seta { color: var(--ouro); }
@media (max-width: 900px) {
  .sessao-card { grid-template-columns: 60px 1fr; }
  .sessao-acoes { grid-column: 1 / -1; justify-content: flex-start; }
  .pauta-lista .pauta-item { grid-template-columns: auto 1fr; }
  .pauta-lista .pauta-item > :last-child { grid-column: 1 / -1; }
  .proxima-sessao { grid-template-columns: 46px 1fr; }
  .ps-seta { grid-column: 1 / -1; }
}
.pub-pauta { margin: 4px 0 8px; padding-left: 22px; } .pub-pauta li { padding: 5px 0; }

/* Modo escuro: ícones nativos dos campos (calendário, relógio, setas) ficam claros com color-scheme */
html[data-tema="escuro"] { color-scheme: dark; }
html[data-tema="escuro"] input[type="date"]::-webkit-calendar-picker-indicator,
html[data-tema="escuro"] input[type="time"]::-webkit-calendar-picker-indicator,
html[data-tema="escuro"] input[type="month"]::-webkit-calendar-picker-indicator { filter: none; opacity: 1; cursor: pointer; }
html[data-tema="escuro"] input[type="date"], html[data-tema="escuro"] input[type="time"] { color: #fff; }

.selo-etapa { background: rgba(248,184,13,.2); color: #7a5800; margin-left: 6px; }
.selo-hist { color: #9a6a00; font-weight: 600; }
.pauta-botoes select[name=etapa] { max-width: 120px; }
html[data-tema="escuro"] .selo-etapa { background: rgba(248,184,13,.16); color: #f0cf7a; }
html[data-tema="escuro"] .selo-hist { color: #e0b964; }

/* Fotos e perfil */
.perfil .perfil-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 4px; }
.avatar.tem-foto { background: #000; overflow: hidden; padding: 0; }
.avatar.tem-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-g { width: 120px; height: 120px; border-radius: 50%; background: var(--ouro); color: var(--verde-esc); font-weight: 800; font-size: 38px; display: grid; place-items: center; overflow: hidden; flex: none; }
.avatar-g img { width: 100%; height: 100%; object-fit: cover; }
.avatar-p { width: 34px; height: 34px; border-radius: 50%; background: var(--verde-cl); color: var(--verde); font-weight: 800; font-size: 12px; display: inline-grid; place-items: center; overflow: hidden; vertical-align: middle; margin-right: 10px; flex: none; }
.avatar-p img { width: 100%; height: 100%; object-fit: cover; }
.foto-campo { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Painel de votação */
.vt-obs { margin-bottom: 18px; } .vt-obs-linha { display: flex; gap: 10px; margin: 8px 0 6px; flex-wrap: wrap; }
.vt-obs-linha input { flex: 1; min-width: 260px; font: inherit; font-size: 13px; padding: 10px 12px; border: 1.5px solid var(--linha); border-radius: 10px; background: var(--fundo); color: var(--texto); }
.vt-layout { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.vt-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--linha); color: inherit; }
.vt-item:first-child { border-top: 0; } .vt-item:hover { text-decoration: none; background: var(--verde-cl); }
.vt-item.ativo { background: var(--verde-cl); box-shadow: inset 4px 0 0 var(--ouro); }
.vt-item-txt small { display: block; margin-top: 2px; }
.vt-abrir { text-align: center; padding: 40px 28px; } .vt-abrir h2 { margin: 6px 0; font-size: 24px; } .vt-abrir p { margin: 0 0 22px; color: var(--mudo); }
.vt-cab { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.vt-cab h2 { margin: 2px 0; font-size: 22px; } .vt-cab p { margin: 0; color: var(--mudo); max-width: 52ch; }
.vt-totais { display: flex; gap: 8px; }
.vt-t { text-align: center; min-width: 64px; padding: 8px 10px; border-radius: 12px; background: var(--fundo); }
.vt-t b { display: block; font-size: 26px; font-weight: 800; line-height: 1; } .vt-t small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mudo); }
.vt-t.sim b { color: #16a34a; } .vt-t.nao b { color: #dc2626; } .vt-t.abs b { color: #b8860b; }
.vt-grade { display: grid; gap: 8px; margin-bottom: 14px; }
.vt-linha { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--linha); border-radius: 14px; padding: 10px 14px; }
.vt-foto { width: 48px; height: 48px; margin: 0; font-size: 14px; }
.vt-nome b { display: block; } .vt-nome small { display: block; }
.vt-botoes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.vt-b { font: inherit; font-weight: 700; font-size: 13.5px; padding: 11px 16px; min-width: 84px; border-radius: 10px; border: 1.5px solid var(--linha); background: #fff; color: var(--texto); cursor: pointer; transition: .12s; }
.vt-b:hover:not(:disabled) { border-color: var(--ouro); } .vt-b:disabled { opacity: .5; cursor: default; }
.vt-b.vt-sim.on { background: #16a34a; border-color: #16a34a; color: #fff; }
.vt-b.vt-nao.on { background: #dc2626; border-color: #dc2626; color: #fff; }
.vt-b.vt-abstencao.on { background: #f8b80d; border-color: #f8b80d; color: #10331f; }
.vt-b.vt-ausente.on { background: #6b7280; border-color: #6b7280; color: #fff; }
.vt-rodape { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.vt-rodape form { margin: 0; } .vt-enc { display: flex; gap: 10px; align-items: flex-end; } .vt-enc label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 12.5px; }
.vt-final { display: flex; gap: 10px; align-items: center; }
html[data-tema="escuro"] .vt-linha { background: #1d2127; border-color: #343a43; }
html[data-tema="escuro"] .vt-b { background: #15181d; border-color: #343a43; color: #fff; }
html[data-tema="escuro"] .vt-t { background: #15181d; } html[data-tema="escuro"] .vt-t b { color: #fff; }
html[data-tema="escuro"] .vt-t.sim b { color: #4ade80; } html[data-tema="escuro"] .vt-t.nao b { color: #ff6b6b; } html[data-tema="escuro"] .vt-t.abs b { color: #fcd34d; }
html[data-tema="escuro"] .vt-item:hover, html[data-tema="escuro"] .vt-item.ativo { background: #1b2a22; }
html[data-tema="escuro"] .avatar-p { background: #223a2e; color: #fff; }
@media (max-width: 900px) { .vt-layout { grid-template-columns: 1fr; } .vt-linha { grid-template-columns: 48px 1fr; } .vt-botoes { grid-column: 1 / -1; justify-content: flex-start; } .vt-b { flex: 1; min-width: 70px; padding: 12px 8px; } }
.vt-obs-linha { align-items: center; } .vt-obs-rot { min-width: 150px; font-weight: 700; font-size: 13px; line-height: 1.3; }

/* Redigir documentos */
.gen-form { display: grid; gap: 14px; }
.gen-form textarea { width: 100%; font: inherit; line-height: 1.5; resize: vertical; }
.gen-linha { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.gen-modelo { background: var(--fundo-suave, rgba(25,74,54,.06)); border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; }
.gen-ajuda { border: 1px solid var(--linha); border-radius: 10px; padding: 10px 14px; }
.gen-ajuda summary { cursor: pointer; font-weight: 600; }
.gen-ajuda code { background: rgba(0,0,0,.06); padding: 1px 6px; border-radius: 5px; }
.gen-acoes { display: flex; gap: 10px; flex-wrap: wrap; }
.rotulo-campo { display: block; font-weight: 600; margin-bottom: 6px; }

/* opção com/sem timbre */
.timbre-opt{display:inline-flex;gap:8px;align-items:center;font:600 14px Montserrat,sans-serif;padding:9px 14px;border:1px solid var(--linha);border-radius:10px;cursor:pointer;background:var(--papel);color:var(--texto)}
.timbre-opt:hover{border-color:var(--verde)}
.timbre-opt input{width:16px;height:16px;margin:0;accent-color:var(--verde);cursor:pointer}

/* item de texto da pauta: descrição (texto corrido) e edição */
.pauta-desc { color: var(--mudo); font-size: .93em; margin-top: 3px; line-height: 1.5; }
.pauta-edit { margin-top: 6px; } .pauta-edit summary { cursor: pointer; color: var(--verde); font-weight: 600; font-size: .85em; }
.pauta-edit .form { margin-top: 8px; }
.pub-pauta .pauta-desc { margin-top: 2px; }

/* realce dos [pontos a completar] nas caixas de texto */
.realce-wrap { position: relative; background: #fff; border-radius: 10px; }
html[data-tema="escuro"] .realce-wrap { background: #0f1216; }
.realce-fundo { position: absolute; top: 0; left: 0; right: 0; white-space: pre-wrap; overflow-wrap: break-word; word-wrap: break-word; overflow: hidden; color: transparent; border-style: solid; border-color: transparent; pointer-events: none; box-sizing: border-box; }
.realce-fundo mark { background: #ffd84d; color: transparent; border-radius: 3px; }
html[data-tema="escuro"] .realce-fundo mark { background: #8a6d00; }
.realce-wrap textarea.realce-ta { position: relative; z-index: 1; background: transparent !important; display: block; }
.realce-barra { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: .88em; }
.realce-barra.vazio { display: none; }
.realce-barra b { color: #9a6b00; }

/* alinhamento: em linhas com vários campos, rótulo e dica ficam na mesma linha e os campos alinham pela base */
.gen-linha > label, .duas-colunas > label { display: block; font-weight: 600; font-size: 13.5px; }
.gen-linha > label > small, .duas-colunas > label > small { display: inline; margin-left: 6px; font-weight: 400; color: var(--mudo); }
.gen-linha > label > :is(input, select, textarea), .duas-colunas > label > :is(input, select, textarea) { display: block; margin-top: 6px; }
.gen-linha > label > :is(input, select), .duas-colunas > label > :is(input, select) { height: 44px; box-sizing: border-box; }
.gen-linha, .duas-colunas { align-items: start; }
.form > label:not(.check):not(.chip-pessoa) { display: block; font-weight: 600; font-size: 13.5px; }
.form > label:not(.check):not(.chip-pessoa) > small { display: inline; margin-left: 6px; font-weight: 400; color: var(--mudo); }
.form > label:not(.check):not(.chip-pessoa) > :is(input, select, textarea) { display: block; margin-top: 6px; }
.rotulo-campo { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.rotulo-campo small { font-weight: 400; color: var(--mudo); margin-left: 6px; }

/* roteiro de teste */
.roteiro-topo { display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: center; }
.roteiro-prog { text-align: center; } .roteiro-prog b { font-size: 1.6rem; display: block; line-height: 1.1; color: var(--verde); } .roteiro-prog small { color: var(--mudo); }
.roteiro-barra { height: 10px; background: var(--linha); border-radius: 99px; overflow: hidden; margin-top: 8px; } .roteiro-barra i { display: block; height: 100%; background: var(--verde); border-radius: 99px; }
.roteiro-passo { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: start; padding: 16px 18px; border-top: 1px solid var(--linha); }
.roteiro-passo:first-child { border-top: 0; }
.roteiro-corpo p { margin: 4px 0 0; color: var(--mudo); font-size: .93em; line-height: 1.55; }
.roteiro-passo.feito .roteiro-corpo b { text-decoration: line-through; opacity: .6; }
.roteiro-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.roteiro-check span { display: block; width: 26px; height: 26px; border: 2px solid var(--verde); border-radius: 8px; cursor: pointer; background: var(--papel); }
.roteiro-check input:checked + span { background: var(--verde); }
.roteiro-check input:checked + span::after { content: "✓"; color: #fff; display: block; text-align: center; line-height: 22px; font-weight: 700; }
.roteiro-check input:focus-visible + span { outline: 3px solid var(--ouro); }
.roteiro-nota { border-top: 1px solid var(--linha); padding: 10px 0; font-size: .93em; }
.roteiro-pendente { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; background: #fff8e1; border: 1px solid #ecd48a; border-left: 4px solid var(--ouro); border-radius: 14px; padding: 14px 20px; margin-bottom: 18px; color: #3d2f00; }
.roteiro-pendente:hover { text-decoration: none; box-shadow: 0 6px 20px rgba(16,51,31,.12); }
.roteiro-pendente .rp-icone { width: 44px; height: 44px; border-radius: 12px; background: var(--ouro); color: #3d2f00; display: grid; place-items: center; }
.roteiro-pendente small { display: block; text-transform: uppercase; letter-spacing: .06em; font-size: .72em; }
.roteiro-pendente .rp-mini { height: 6px; background: rgba(0,0,0,.12); border-radius: 99px; margin-top: 6px; overflow: hidden; } .roteiro-pendente .rp-mini i { display: block; height: 100%; background: var(--verde); }
html[data-tema="escuro"] .roteiro-pendente { background: #2a2410; border-color: #6b5a1c; color: #f3e6b0; }
@media (max-width: 720px) { .roteiro-topo { grid-template-columns: 1fr; } .roteiro-passo { grid-template-columns: 34px 1fr; } .roteiro-passo > .btn { grid-column: 2; justify-self: start; } }
.roteiro-lib { border: 1px solid var(--linha); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
.roteiro-lib summary { cursor: pointer; }
.roteiro-fs { border: 1px solid var(--linha); border-radius: 10px; padding: 8px 12px 10px; display: grid; gap: 6px; margin: 0; }
.roteiro-fs legend { font-weight: 700; font-size: .85em; padding: 0 6px; }
.roteiro-lib-acoes { display: flex; gap: 8px; flex-wrap: wrap; }

/* Configurações */
.grade-config { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 8px; }
.config-card { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; color: inherit; transition: .15s; margin: 0; }
.config-card:hover { text-decoration: none; border-color: var(--verde); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(16,51,31,.1); }
.config-card b { display: block; color: var(--texto); }
.config-card small { display: block; color: var(--mudo); font-weight: 400; margin-top: 2px; line-height: 1.45; }
.config-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--verde-cl); color: var(--verde); display: grid; place-items: center; font-weight: 800; }
.config-ic .ic { width: 22px; height: 22px; }
.lateral nav .nav-config { margin-top: auto; }
html[data-tema="escuro"] .config-ic { background: #1e2a24; color: #8fd1ad; }

/* barras de rolagem personalizadas */
* { scrollbar-width: thin; scrollbar-color: rgba(25,74,54,.35) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(25,74,54,.30); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(25,74,54,.55); background-clip: content-box; border: 2px solid transparent; }
*::-webkit-scrollbar-corner { background: transparent; }
.lateral { scrollbar-color: rgba(255,255,255,.28) transparent; }
.lateral::-webkit-scrollbar { width: 8px; }
.lateral::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); background-clip: content-box; border: 2px solid transparent; }
.lateral::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.45); background-clip: content-box; border: 2px solid transparent; }
html[data-tema="escuro"] * { scrollbar-color: rgba(255,255,255,.22) transparent; }
html[data-tema="escuro"] *::-webkit-scrollbar-thumb { background: rgba(255,255,255,.20); background-clip: content-box; border: 2px solid transparent; }
html[data-tema="escuro"] *::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.40); background-clip: content-box; border: 2px solid transparent; }
.grade-config + .secao { margin-top: 28px; }

/* Eleição da Mesa Diretora */
.el-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.el-chapa { margin: 0; }
.el-membros { display: grid; gap: 10px; margin: 6px 0 12px; }
.el-membro { display: grid; grid-template-columns: 52px 1fr; grid-template-areas: "f c" "f s"; column-gap: 12px; row-gap: 2px; align-items: center; font-weight: 600; }
.el-membro .el-foto { grid-area: f; width: 52px; height: 52px; border-radius: 50%; background: var(--ouro); color: #10331f; font-weight: 800; display: grid; place-items: center; overflow: hidden; }
.el-membro .el-foto img { width: 100%; height: 100%; object-fit: cover; }
.el-membro .el-cargo { grid-area: c; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--mudo); }
.el-membro select, .el-membro b { grid-area: s; }
.el-acoes { display: flex; gap: 8px; justify-content: space-between; }
.el-links { margin-top: 6px; display: flex; gap: 6px; }
.el-resumo { padding: 6px 0; border-bottom: 1px solid var(--linha); font-size: 14px; }
.el-totais { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.el-totais .vt-t { flex: 1; min-width: 90px; }
.vt-rodape { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.vt-enc { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.vt-botoes { flex-wrap: wrap; }
.abas-mini { display: flex; gap: 4px; background: var(--fundo); padding: 4px; border-radius: 12px; margin-bottom: 10px; }
.abas-mini a { flex: 1; text-align: center; padding: 8px 6px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--mudo); text-decoration: none; }
.abas-mini a.ativa { background: #fff; color: var(--verde); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
html[data-tema="escuro"] .abas-mini a.ativa { background: #1d2127; color: #fff; }

/* ====================== Modo celular (app) ====================== */
.nav-app, .lat-fundo { display: none; }
@media (max-width: 900px) {
  html { -webkit-text-size-adjust: 100%; }
  body { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
  .app { display: block; background: var(--fundo); }
  .conteudo { padding: 0 14px calc(96px + env(safe-area-inset-bottom)); }

  /* cabeçalho de aplicativo */
  .topo { background: var(--verde); margin: 0 -14px 18px; padding: calc(14px + env(safe-area-inset-top)) 16px 16px; border-radius: 0 0 24px 24px; display: grid; grid-template-columns: 1fr auto; gap: 12px 10px; align-items: center; box-shadow: 0 6px 18px rgba(16,51,31,.22); }
  .topo h1 { color: #fff !important; font-size: 21px; line-height: 1.2; grid-column: 1; margin: 0; }
  .topo .menu-btn { display: none; }
  .topo-ferramentas { grid-column: 2; grid-row: 1; gap: 6px; }
  .topo-ferramentas #btn-ajuda { display: none; }
  .topo-acao { grid-column: 1 / -1; width: auto; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .topo-acao:empty { display: none; }
  .topo-acao::-webkit-scrollbar { display: none; }
  .topo-acao .btn { flex: none; white-space: nowrap; background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
  .topo-acao .btn-primario { background: var(--ouro); color: #10331f; border-color: var(--ouro); }
  .topo-acao .btn-perigo { background: var(--perigo); border-color: var(--perigo); }
  .tema-btn, .busca-rapida { width: 40px; height: 40px; border-radius: 12px; }

  /* menu lateral vira gaveta */
  .lateral { width: min(300px, 86vw); padding-top: calc(20px + env(safe-area-inset-top)); padding-bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40; box-shadow: none; }
  .lateral.aberto { box-shadow: 8px 0 40px rgba(0,0,0,.35); }
  .lat-fundo { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(6,20,14,.55); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .lateral.aberto ~ .conteudo, .lateral.aberto { }
  .lateral.aberto { transform: none; }
  .lat-fundo:has(~ .lateral.aberto) { opacity: 1; pointer-events: auto; }
  .lateral nav a, .lateral nav .breve { padding: 13px 12px; font-size: 15px; }

  /* barra de navegação inferior */
  .nav-app { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--papel); border-top: 1px solid var(--linha); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(0,0,0,.08); }
  .nav-app a, .nav-app button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 600 10.5px Montserrat, sans-serif; color: var(--mudo); background: none; border: 0; padding: 4px 2px; min-height: 52px; text-decoration: none; cursor: pointer; }
  .nav-app .ni { display: grid; place-items: center; width: 52px; height: 28px; border-radius: 14px; transition: background .15s; }
  .nav-app .ic { width: 22px; height: 22px; }
  .nav-app .ativo { color: var(--verde); font-weight: 800; }
  .nav-app .ativo .ni { background: var(--verde-cl); }
  html[data-tema="escuro"] .nav-app .ativo { color: var(--ouro); }
  html[data-tema="escuro"] .nav-app .ativo .ni { background: rgba(248,184,13,.16); }

  /* toque confortável e sem zoom automático no iPhone */
  input, select, textarea { font-size: 16px !important; min-height: 46px; }
  textarea { min-height: 96px; }
  .btn { min-height: 44px; }
  .btn-mini { min-height: 38px; padding: 7px 12px; }
  .form { gap: 14px; }
  .cartao { padding: 18px 16px; border-radius: 16px; }
  .cartao.sem-pad { padding: 0; }
  .filtros { gap: 8px; }
  .filtros .busca { min-width: 100%; flex-basis: 100%; }
  .filtros select, .filtros .combo-in { width: 100%; flex-basis: 100%; }
  .filtros .btn { flex: 1; justify-content: center; }
  .tabela { font-size: 13.5px; }
  .duas-colunas, .duas-colunas.topo-alinhado { gap: 14px; }

  /* sessões e pauta */
  .pauta-cab { flex-direction: column; align-items: stretch; }
  .pauta-publicar { justify-content: space-between; flex-wrap: wrap; }
  .pauta-botoes { display: flex; flex-wrap: wrap; gap: 6px; }
  .pauta-botoes select { flex: 1; min-width: 120px; }
  .pauta-achado { grid-template-columns: 1fr !important; gap: 8px; }
  .pauta-achado select, .pauta-achado .btn { width: 100%; }
  .abas-mini a { padding: 11px 6px; }

  /* votação e eleição */
  .vt-obs-linha { flex-direction: column; align-items: stretch; }
  .vt-cab { flex-direction: column; align-items: stretch; }
  .vt-totais, .el-totais { flex-wrap: wrap; }
  .vt-t { min-width: 56px; flex: 1; }
  .vt-botoes { gap: 6px; } .vt-b { min-height: 48px; min-width: 0 !important; flex: 1 1 30% !important; padding: 11px 6px !important; }
  .el-grade { grid-template-columns: 1fr; }
  .vt-rodape, .vt-enc { flex-direction: column; align-items: stretch; }
  .vt-rodape .btn, .vt-enc .btn { width: 100%; justify-content: center; }

  /* janelas flutuantes (busca, guia, novidades) */
  .as-fundo { padding: 12px; }
  .as-fundo > * { max-width: 100%; }
}
@media (max-width: 420px) {
  .topo h1 { font-size: 19px; }
  .conteudo { padding-left: 12px; padding-right: 12px; }
  .topo { margin-left: -12px; margin-right: -12px; padding-left: 14px; padding-right: 14px; }
  .topo-acao { margin: 0 -14px; padding: 0 14px 2px; }
}

/* Convite de instalação do aplicativo */
.pwa-card { position: fixed; z-index: 60; right: 22px; bottom: 22px; width: 380px; max-width: calc(100vw - 24px); display: grid; grid-template-columns: 52px 1fr; gap: 14px; background: var(--papel); color: var(--texto); border-radius: 18px; padding: 18px 18px 16px; box-shadow: 0 18px 50px rgba(0,0,0,.28); border-top: 4px solid var(--ouro); animation: sobe-pwa .35s ease; }
@keyframes sobe-pwa { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.pwa-ico { width: 52px; height: 52px; border-radius: 12px; }
.pwa-txt b { font-size: 16px; font-weight: 800; }
.pwa-txt p { margin: 6px 0 8px; font-size: 13.5px; color: var(--mudo); line-height: 1.45; }
.pwa-txt ol { margin: 8px 0 10px; padding-left: 20px; font-size: 13.5px; line-height: 1.55; }
.pwa-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pwa-x { position: absolute; right: 8px; top: 6px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--mudo); cursor: pointer; padding: 6px 10px; }
@media (max-width: 900px) { .pwa-card { left: 12px; right: 12px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* Notificações */
.notif-wrap { position: relative; }
#btn-notif { position: relative; }
.notif-badge { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--fundo); }
.notif-painel { position: absolute; right: 0; top: 48px; width: 380px; max-width: calc(100vw - 24px); background: var(--papel); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.28); z-index: 50; overflow: hidden; border: 1px solid var(--linha); }
.notif-painel[hidden] { display: none; }
.notif-cab { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--linha); }
.notif-lertudo { border: 0; background: none; color: var(--verde); font: 700 12.5px Montserrat, sans-serif; cursor: pointer; padding: 4px; }
html[data-tema="escuro"] .notif-lertudo { color: var(--ouro); }
.notif-lista { max-height: min(60vh, 460px); overflow-y: auto; }
.notif-todas { display: block; text-align: center; padding: 13px; border-top: 1px solid var(--linha); font-weight: 700; font-size: 13px; }
.notif-item { display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding: 13px 16px; border-top: 1px solid var(--linha); color: var(--texto); text-decoration: none; }
.notif-lista .notif-item:first-child, .notif-lista-pg .notif-item:first-child { border-top: 0; }
.notif-item:hover { background: var(--verde-cl); text-decoration: none; }
.notif-item.nova { background: rgba(248,184,13,.1); }
.notif-ponto { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; background: transparent; }
.notif-item.nova .notif-ponto { background: var(--ouro); }
.notif-corpo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-corpo b { font-size: 14px; } .notif-corpo > span { font-size: 13px; color: var(--mudo); overflow-wrap: anywhere; } .notif-corpo small { font-size: 11.5px; color: var(--mudo); }
.notif-item:not(.nova) .notif-corpo b { font-weight: 600; }
.notif-barra { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.notif-barra form { margin: 0; }
.notif-pag { display: flex; gap: 8px; justify-content: space-between; margin-top: 12px; }
.notif-pref { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 600; }
.notif-pref input { width: 20px; height: 20px; min-height: 0 !important; }
.notif-toast { position: fixed; z-index: 1200; top: 18px; right: 18px; width: 360px; max-width: calc(100vw - 24px); display: flex; gap: 12px; align-items: flex-start; background: var(--papel); color: var(--texto); border-left: 5px solid var(--ouro); border-radius: 14px; padding: 14px 16px; box-shadow: 0 14px 40px rgba(0,0,0,.3); text-decoration: none; animation: sobe-pwa .3s ease; transition: opacity .4s, transform .4s; }
.notif-toast:hover { text-decoration: none; }
.notif-toast.sai { opacity: 0; transform: translateY(-12px); }
.notif-toast b { display: block; font-size: 14px; } .notif-toast small { display: block; color: var(--mudo); font-size: 12.5px; margin-top: 2px; }
.nt-ic { font-size: 20px; }
@media (max-width: 900px) {
  .notif-wrap { position: static; }
  .notif-painel { position: fixed; left: 10px; right: 10px; top: calc(70px + env(safe-area-inset-top)); width: auto; max-width: none; }
  .notif-toast { top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; width: auto; }
  .notif-badge { border-color: var(--verde); }
}
.notif-badge[hidden] { display: none; }

/* Mensagens para o WhatsApp */
.wa-texto { width: 100%; min-height: 230px; font: 14px/1.5 Montserrat, sans-serif; white-space: pre-wrap; resize: vertical; }
.wa-sig { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-weight: 600; font-size: 14px; }
.wa-sig input { width: 18px; height: 18px; min-height: 0 !important; }
.wa-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.wa-aviso { margin: 10px 0 0; color: var(--verde); font-weight: 600; }
details.cartao > summary { cursor: pointer; }
details.cartao > summary .mudo { font-weight: 500; margin-left: 6px; }
details.cartao .wa-cartao { box-shadow: none; border: 1px solid var(--linha); }
@media (max-width: 900px) { .wa-acoes .btn { flex: 1; justify-content: center; } }

.sessao-excluir { display: inline; margin: 0; }
.icone-excluir { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--linha); background: transparent; color: #c0392b; vertical-align: middle; margin-left: 6px; cursor: pointer; transition: .15s; padding: 0; }
.icone-excluir .ic { width: 16px; height: 16px; }
.icone-excluir:hover { background: #c0392b; border-color: #c0392b; color: #fff; }
.check-linha { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 6px 0 14px; }
.check-linha input { width: auto; margin-top: 4px; }

.pauta-lado { display: flex; align-items: center; gap: 6px; }
.arraste { display: inline-grid; place-items: center; width: 22px; height: 34px; color: var(--mudo, #7a8a80); cursor: grab; touch-action: none; border-radius: 6px; user-select: none; }
.arraste:hover { color: var(--verde); background: var(--verde-cl); }
.arraste:active { cursor: grabbing; }
.arraste-trava { display: inline-grid; place-items: center; width: 22px; font-size: 12px; opacity: .55; }
.pauta-item.arrastando { background: var(--verde-cl); box-shadow: 0 4px 16px rgba(0,0,0,.18); position: relative; z-index: 2; }
.pauta-fixo { background: rgba(0,0,0,.02); }
.arraste-aviso { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #194a36; color: #fff; padding: 9px 18px; border-radius: 999px; font-size: 14px; z-index: 50; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.arraste-aviso.erro { background: #c0392b; }
.arraste-aviso[hidden] { display: none; }
body.arrastando-corpo { user-select: none; cursor: grabbing; }
.ata-sync { background: var(--verde-cl); color: var(--verde); border-radius: 10px; padding: 9px 14px; font-size: 14px; margin: 0 0 10px; }
.ata-sync.alerta { background: #fff4d6; color: #7a5200; }
.wa-padrao { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; }
.padrao-cartao textarea { width: 100%; }
.ata-salvo { align-self: center; font-size: 13px; color: var(--mudo, #6b7a70); margin-left: 4px; }

/* Botão único "Imprimir" com lista de opções */
.menu-imp { position: relative; display: inline-block; }
.menu-imp > summary { list-style: none; cursor: pointer; }
.menu-imp > summary::-webkit-details-marker { display: none; }
.menu-imp > summary::after { content: "▾"; margin-left: 6px; font-size: 11px; }
.menu-imp .lista { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 300px; background: var(--papel); border: 1px solid var(--linha); border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.menu-imp .lista a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--texto); text-decoration: none; }
.menu-imp .lista a:hover { background: var(--fundo); }
.menu-imp .lista strong { display: block; font-size: 13.5px; }
.menu-imp .lista small { display: block; color: var(--mudo); font-size: 12px; margin-top: 2px; font-weight: 400; }
@media (max-width: 720px) { .menu-imp .lista { left: 0; right: auto; min-width: 260px; } }
