:root { --fundo:#0f1422; --lado:#131a2d; --painel:#191f2e; --painel2:#1f2637; --campo:#161c2a; --borda:#36415a; --texto:#ecf0f8; --suave:#a9b4c8; --acento:#2f6fe0; --acento-texto:#8ab6ff; --acento-fundo:#1b2c50; --verde:#3cc882; --vermelho:#ff8078; --amarelo:#f5c04a; color-scheme: dark; }
[data-tema=claro] { --fundo:#eef2f8; --lado:#e2e9f5; --painel:#fff; --painel2:#f4f7fc; --campo:#fff; --borda:#bcc7da; --texto:#1c2434; --suave:#536078; --acento:#1d5bd0; --acento-texto:#174fb5; --acento-fundo:#dbe7fd; --verde:#12784a; --vermelho:#b8322a; --amarelo:#8a5a00; color-scheme: light; }
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: var(--fundo); color: var(--texto); font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; line-height: 1.45; overflow-wrap: anywhere; }
a { color: var(--acento-texto); }
h1 { font-size: 1.45rem; margin: 0; } h2 { font-size: 1.05rem; margin: 0 0 .7rem; } h3 { font-size: .95rem; margin: 1rem 0 .4rem; }
p { margin: 0 0 .7rem; }
:focus-visible { outline: 3px solid var(--acento-texto); outline-offset: 2px; }
.moldura { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.lado { background: var(--lado); border-right: 1px solid var(--borda); padding: 1rem .7rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: .15rem; }
.marca { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.1rem; padding: .2rem .3rem .8rem; text-decoration: none; color: var(--texto); }
.marca img { width: 36px; height: 36px; }
.lado a.item, .lado button.item { display: flex; justify-content: space-between; align-items: center; min-height: 42px; padding: .4rem .7rem; border-radius: 8px; color: var(--texto); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.lado .item:hover { background: var(--painel2); }
.lado .item[aria-current] { background: var(--acento-fundo); color: var(--acento-texto); font-weight: 600; }
.lado a.item { justify-content: flex-start; gap: .6rem; min-height: 33px; padding: .1rem .55rem; background: var(--painel2); border: 1px solid var(--borda); font-size: .88rem; flex: none; }
.rotulo { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lado .item:hover { border-color: var(--acento-texto); } .lado .item[aria-current] { border-color: var(--acento); } .lado .item[aria-current]::after { content: "›"; margin-left: auto; } .lado .item .conta { margin-left: auto; }
.lado { gap: .28rem; width: 232px; padding: .8rem .65rem .6rem; } .moldura { grid-template-columns: 232px minmax(0, 1fr); }
.icone { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.secao { font-size: .72rem; letter-spacing: .12em; color: var(--suave); margin: .2rem .5rem .1rem; font-weight: 600; } .novo { font-size: .62rem; font-weight: 700; color: var(--verde); border: 1px solid var(--verde); border-radius: 99px; padding: 0 .4rem; }
.lado .fim { margin-top: auto; padding-top: .5rem; display: grid; gap: .35rem; flex: none; } .quadro { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 40px; padding: .4rem .6rem; border: 1px solid var(--borda); border-radius: 8px; background: var(--painel2); color: var(--texto); font: inherit; font-size: .9rem; text-align: left; text-decoration: none; cursor: pointer; } .quadro:hover { border-color: var(--acento-texto); } .quadro.tema { color: var(--suave); min-height: 34px; white-space: pre; } .conta-usuario { background: none; border-color: transparent; border-top: 1px solid var(--borda); border-radius: 0; }
.selo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--acento-fundo); color: var(--acento-texto); font-weight: 700; flex: none; } .dois { display: grid; min-width: 0; flex: 1; line-height: 1.2; } .dois b, .dois small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } .dois small { font-weight: 400; font-size: .75rem; color: var(--suave); } .dois small.bom { color: var(--verde); } .marca .dois small { color: var(--acento-texto); font-size: .8rem; } .opcoes { display: grid; gap: .34rem; } .opcoes[hidden] { display: none; }
.decisao { padding: .8rem .3rem; } .decisao summary { cursor: pointer; margin-bottom: .5rem; } .busca-juris { display: flex; gap: .5rem; margin-bottom: .6rem; } .marca-trib { display: inline-flex; gap: .4rem; align-items: center; } .abas { margin-bottom: 1rem; } .abas [aria-current] { background: var(--acento-fundo); color: var(--acento-texto); }
.conta { background: var(--acento); color: #fff; border-radius: 99px; font-size: .75rem; padding: 0 .5rem; font-weight: 600; }
.topo { display: flex; gap: .7rem; align-items: center; padding: .7rem 1.4rem; border-bottom: 1px solid var(--borda); position: sticky; top: 0; background: var(--fundo); z-index: 5; }
.topo form { flex: 1; max-width: 480px; position: relative; }
.resultados { position: absolute; top: 100%; left: 0; right: 0; background: var(--painel); border: 1px solid var(--borda); border-radius: 8px; max-height: 60vh; overflow: auto; z-index: 9; }
.resultados a { display: block; padding: .6rem .8rem; text-decoration: none; color: var(--texto); } .resultados a:hover, .resultados a:focus { background: var(--acento-fundo); }
.resultados small { display: block; color: var(--suave); }
main { padding: 1.4rem; max-width: 1200px; margin: 0 auto; width: 100%; }
.suspenso { background: var(--painel2); border-bottom: 1px solid var(--amarelo); color: var(--amarelo); padding: .6rem 1.4rem; }
.cabeca { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.acoes { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 1rem; align-items: start; }
.cartao { background: var(--painel); border: 1px solid var(--borda); border-radius: 12px; padding: 1.1rem; margin-bottom: 1rem; min-width: 0; }
.grade .cartao { margin: 0; }
.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.numeros div { background: var(--painel); border: 1px solid var(--borda); border-radius: 12px; padding: .8rem 1rem; } .numeros b { display: block; font-size: 1.25rem; } .numeros span { color: var(--suave); font-size: .85rem; }
.botao { font: inherit; min-height: 40px; padding: .4rem .9rem; border-radius: 8px; border: 1px solid var(--borda); background: var(--painel2); color: var(--texto); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.botao:hover { border-color: var(--acento-texto); } .botao:disabled { opacity: .55; cursor: default; }
.botao.principal { background: var(--acento); border-color: var(--acento); color: #fff; font-weight: 600; }
.botao.perigo { color: var(--vermelho); } .botao.mini { min-height: 34px; padding: .2rem .6rem; font-size: .88rem; } .botao[aria-pressed=true] { background: var(--acento-fundo); color: var(--acento-texto); }
input, select, textarea { font: inherit; width: 100%; min-height: 40px; padding: .45rem .7rem; border-radius: 8px; border: 1px solid var(--borda); background: var(--campo); color: var(--texto); }
input[type=checkbox] { width: 20px; min-height: 20px; accent-color: var(--acento); }
textarea { resize: vertical; }
.filtro { max-width: 360px; margin-bottom: .8rem; }
.formulario { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.campo { display: flex; flex-direction: column; gap: .25rem; min-width: 0; } .campo label { font-size: .88rem; color: var(--suave); } .campo small { color: var(--suave); } .campo.marcar { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: .5rem; }
.largo { grid-column: 1 / -1; }
.erro-form { grid-column: 1 / -1; color: var(--vermelho); margin: 0; min-height: 1.2em; }
.lista { list-style: none; margin: 0; padding: 0; } .lista li { border-bottom: 1px solid var(--borda); } .lista li:last-child { border: 0; }
.linha { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1rem; padding: .7rem .3rem; color: var(--texto); text-decoration: none; min-height: 46px; }
a.linha:hover .titulo { color: var(--acento-texto); text-decoration: underline; }
.linha .titulo { flex: 1 1 220px; min-width: 0; } .extras { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: var(--suave); font-size: .9rem; }
.feita .titulo { text-decoration: line-through; color: var(--suave); }
.etiqueta { font-size: .8rem; padding: .1rem .5rem; border-radius: 99px; background: var(--painel2); border: 1px solid var(--borda); color: var(--texto); white-space: nowrap; }
.etiqueta.ruim { color: var(--vermelho); border-color: var(--vermelho); } .etiqueta.alerta { color: var(--amarelo); border-color: var(--amarelo); } .etiqueta.bom { color: var(--verde); border-color: var(--verde); }
.bom { color: var(--verde); } .ruim { color: var(--vermelho); } .suave { color: var(--suave); }
.vazio, .carregando { color: var(--suave); padding: 1.2rem .3rem; }
.mais { padding: .8rem 0; text-align: center; }
.texto { white-space: pre-wrap; }
.codigo { font-family: Consolas, monospace; font-size: 1.05rem; background: var(--campo); border: 1px solid var(--borda); border-radius: 8px; padding: .6rem .8rem; user-select: all; }
dl.ficha { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem 1rem; margin: 0; } dl.ficha dt { color: var(--suave); } dl.ficha dd { margin: 0; white-space: pre-wrap; }
dialog.janela { background: var(--painel); color: var(--texto); border: 1px solid var(--borda); border-radius: 14px; padding: 1.2rem; width: min(680px, calc(100vw - 1.5rem)); max-height: calc(100vh - 2rem); overflow: auto; }
dialog.janela::backdrop { background: rgb(5 9 20 / .65); } dialog.janela header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; } dialog.janela header h2 { margin: 0; }
.fechar { background: none; border: 0; color: var(--texto); font-size: 1.6rem; width: 40px; height: 40px; cursor: pointer; border-radius: 8px; }
#avisos { position: fixed; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; z-index: 50; max-width: min(400px, calc(100vw - 2rem)); }
.aviso { background: var(--painel2); border: 1px solid var(--verde); border-left-width: 5px; border-radius: 8px; padding: .7rem 1rem; box-shadow: 0 6px 20px rgb(0 0 0 / .3); } .aviso.erro { border-color: var(--vermelho); }
.entrada { min-height: 100vh; display: grid; place-items: center; padding: 1rem; } .entrada .cartao { width: min(420px, 100%); } .entrada .formulario { grid-template-columns: 1fr; } .entrada .marca { justify-content: center; font-size: 1.4rem; } .entrada .marca img { width: 52px; height: 52px; } .entrada .botao.principal { width: 100%; justify-content: center; }
dialog .entrada { min-height: 0; padding: 0; } dialog .entrada .cartao { border: 0; padding: 0; margin: 0; }
.ligacao { background: none; border: 0; color: var(--acento-texto); font: inherit; cursor: pointer; text-decoration: underline; padding: .5rem 0; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; align-items: start; }
.ferramentas { display: flex; flex-wrap: wrap; gap: .35rem; position: sticky; top: 62px; background: var(--fundo); padding: .5rem 0; z-index: 4; } .ferramentas select { width: auto; min-height: 34px; padding: .2rem .5rem; }
.folha { background: #fff; color: #111; border-radius: 6px; padding: clamp(1rem, 5vw, 4rem); font-family: "Times New Roman", Times, serif; font-size: 12pt; box-shadow: 0 2px 14px rgb(0 0 0 / .25); }
.folha textarea { font: inherit; color: #111; background: transparent; border: 1px solid transparent; border-radius: 4px; padding: .2rem .4rem; overflow: hidden; resize: none; min-height: 0; line-height: 1.5; } .folha textarea:hover { border-color: #d5dbe8; } .folha textarea:focus { border-color: #1d5bd0; outline: none; }
.folha .titulo-doc { font-weight: bold; } .p-titulo { font-weight: bold; } .p-citacao { padding-left: 4cm !important; font-size: 10pt !important; line-height: 1.2 !important; } .p-lista { padding-left: 1.2cm !important; }
.a-centro { text-align: center; } .a-direita { text-align: right; } .a-justificado { text-align: justify; } .p-corpo.leitura { text-indent: 2cm; } .leitura { margin: 0 0 .6em; line-height: 1.5; white-space: pre-wrap; } .leitura.p-lista::before { content: "• "; }
.assistente { position: sticky; top: 70px; } .conversa { display: grid; gap: .6rem; max-height: 50vh; overflow: auto; margin-bottom: .7rem; } .fala { background: var(--painel2); border: 1px solid var(--borda); border-radius: 10px; padding: .6rem .8rem; white-space: pre-wrap; font-size: .93rem; } .fala.minha { background: var(--acento-fundo); } .conversa.alta { max-height: 55vh; } .fala .acoes { margin-top: .5rem; } .botao-ia { white-space: nowrap; margin-left: auto; }
.proposta { border-color: var(--acento-texto); }
.impressao { display: none; }
.barra { display: none; }
@media (max-width: 1000px) { .editor { grid-template-columns: minmax(0, 1fr); } .assistente { position: static; } }
@media (max-width: 767px) {
  .moldura { grid-template-columns: minmax(0, 1fr); padding-bottom: 64px; } .lado { display: none; } .moldura.menu .lado { display: flex; width: auto; position: fixed; inset: 0 0 60px 0; height: auto; z-index: 20; }
  .topo { padding: .6rem .8rem; } main { padding: .9rem; } .formulario { grid-template-columns: 1fr; } .ferramentas { top: 60px; }
  .barra { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; height: 60px; background: var(--lado); border-top: 1px solid var(--borda); z-index: 21; }
  .barra a, .barra button { display: grid; place-items: center; font: inherit; font-size: .72rem; color: var(--suave); background: none; border: 0; text-decoration: none; position: relative; overflow-wrap: normal; } .barra [aria-current] { color: var(--acento-texto); font-weight: 700; } .barra .conta { position: absolute; top: 4px; right: 8px; }
  #avisos { bottom: 70px; } dl.ficha { grid-template-columns: 1fr; gap: .1rem; } dl.ficha dd { margin-bottom: .5rem; }
}
@media print {
  @page { size: A4; margin: 3cm 2cm 2cm 3cm; }
  body { background: #fff; } #app, #avisos, dialog { display: none !important; } .impressao { display: block; color: #000; font-family: "Times New Roman", Times, serif; font-size: 12pt; }
}
/* Menu lateral com o laranja do programa (theme.rs); o resto do site segue azul. */
:root { --menu: #ec9648; --menu-texto: #f2a862; --menu-fundo: #3a2718; --menu-conta: #462418; }
[data-tema=claro] { --menu: #d47424; --menu-texto: #8f440a; --menu-fundo: #fae4ce; --menu-conta: #fae4ce; }
.lado .item[aria-current] { background: var(--menu-fundo); border-color: var(--menu); color: var(--menu-texto); }
.lado .conta { background: var(--menu-conta); color: var(--menu-texto); } .lado .selo { background: var(--menu-fundo); color: var(--menu-texto); } .lado .marca .dois small { color: var(--menu-texto); }
.lado a.item:hover, .lado .quadro:hover { border-color: var(--menu); }

/* Plano e pagamento */
.uso { margin-bottom: .7rem; } .uso .linha { display: flex; justify-content: space-between; gap: .5rem; font-size: .9rem; } .uso .ruim { color: var(--vermelho); }
.uso progress { width: 100%; height: 8px; accent-color: var(--acento); }
.tabela-planos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: .8rem; }
.plano-cartao { border: 1px solid var(--borda); border-radius: 10px; padding: .9rem; background: var(--painel2); } .plano-cartao.atual { border-color: var(--acento); }
.plano-cartao h3 { margin-top: 0; } .plano-cartao ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .9rem; }
.preco { font-size: 1.35rem; font-weight: 700; margin: 0; } .preco small { font-size: .8rem; font-weight: 400; color: var(--suave); }
.suspenso a { color: inherit; font-weight: 600; }
