/* ============ Fabricio Pereira Contabilidade — visual "editorial claro" ============ */
:root {
  --bg: #f6f4ef; --bg-2: #fbfaf7; --card: #ffffff; --ink: #12202b; --ink-2: #3b4852; --muted: #6b7780; --muted-2: #8a949b;
  --line: #e4e0d8; --line-2: #d9d3c7; --line-3: #ece8e0;
  --navy: #0b3a5c; --navy-deep: #071e30; --navy-soft: #e8eef3;
  --gold: #a9885a; --gold-ink: #7a5d34; --gold-soft: #f3ecdf; --cream: #f7efe4;
  --ok: #166534; --ok-bg: #e3f1e8; --warn: #9a3412; --warn-bg: #fbe7dc; --bad: #a11b1b; --bad-bg: #fde4e4; --hot: #c2410c;
  --sombra: 0 1px 2px rgba(18,32,43,.05), 0 12px 32px rgba(18,32,43,.05);
  --sombra-2: 0 1px 2px rgba(18,32,43,.06), 0 16px 40px rgba(18,32,43,.09);
  --serif: 'Playfair Display', Georgia, serif;
  --r: 24px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; color: var(--ink); background: var(--bg); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 500; }
h1 { font-family: var(--serif); font-size: 44px; line-height: 1.05; letter-spacing: -.01em; color: var(--navy); }
h2 { font-family: var(--serif); font-size: 22px; }
h3 { font-size: 15px; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
.carregando { padding: 40px; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rotulo { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.serif { font-family: var(--serif); }

/* ---------- estrutura ---------- */
.app-top { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 24px; padding: 14px 32px; background: rgba(246,244,239,.86); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); min-width: 200px; }
.brand img { width: 28px; height: 31px; object-fit: contain; }
.brand b { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.top-dir { display: flex; align-items: center; gap: 8px; min-width: 200px; justify-content: flex-end; }
.sino { position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; text-decoration: none; }
.sino:hover { background: rgba(18,32,43,.05); }
.sino .ponto { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--hot); }

.corpo { display: flex; gap: 28px; padding: 8px 32px 60px 20px; align-items: flex-start; }
.dock { position: sticky; top: 86px; flex: none; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 999px; background: var(--card); box-shadow: var(--sombra); }
.dock a { position: relative; width: 48px; height: 48px; border-radius: 50%; color: var(--ink); display: grid; place-items: center; text-decoration: none; }
.dock a:hover { background: var(--bg); }
.dock a.on { background: var(--navy); color: #fff; }
.dock a .n { position: absolute; top: 6px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; }
.dock a .dica { position: absolute; left: 60px; white-space: nowrap; background: var(--ink); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transform: translateX(-4px); transition: .15s; }
.dock a:hover .dica, .dock a:focus-visible .dica { opacity: 1; transform: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 28px; padding-top: 12px; }

/* busca / comando */
.busca { position: relative; flex: 1 1 360px; max-width: 580px; margin: 0 auto; }
.busca label { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 18px; border-radius: 999px; background: var(--card); box-shadow: var(--sombra); color: var(--muted); }
.busca input[type=search] { flex: 1; border: 0; outline: 0; background: transparent; box-shadow: none; border-radius: 0; padding: 0; min-width: 0; color: var(--ink); font-size: 14px; height: 100%; }
.busca input[type=search]:focus { box-shadow: none; }
.numeros b, .kpi b, .pagar .valor, .serif, h1 { font-variant-numeric: lining-nums; }
.busca kbd { font: 12px Inter, sans-serif; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.busca label:focus-within { box-shadow: 0 0 0 2px var(--gold), var(--sombra); }
.busca-res { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--card); border-radius: 20px; box-shadow: var(--sombra-2); padding: 8px; max-height: 60vh; overflow: auto; }
.busca-res[hidden] { display: none; }
.busca-res .grupo { padding: 8px 12px 4px; }
.busca-res a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.busca-res a small { color: var(--muted); }
.busca-res a.ativo, .busca-res a:hover { background: var(--bg); }

/* cliente */
.app-top.cli nav { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--card); box-shadow: var(--sombra); margin: 0 auto; }
.app-top.cli nav a { padding: 10px 16px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.app-top.cli nav a.on { background: var(--navy); color: #fff; }
.conteudo { max-width: 1240px; width: 100%; margin: 0 auto; padding: 16px 32px 60px; display: flex; flex-direction: column; gap: 28px; }

/* ---------- componentes ---------- */
.cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.cab p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.card { background: var(--card); border-radius: var(--r); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; box-shadow: var(--sombra); }
.card.creme { background: var(--gold-soft); box-shadow: none; }
.card.navy { background: var(--navy); color: var(--cream); box-shadow: none; }
.card.navy h2, .card.navy h3 { color: var(--cream); }
.card h2 { font-size: 22px; }
.grid { display: grid; gap: 20px; }
.g4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); align-items: start; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi b { font-family: var(--serif); font-size: 40px; font-weight: 500; color: var(--ink); }
.kpi small { font-size: 12px; }
.linha { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.espaco { justify-content: space-between; }
.muted { color: var(--muted); }
.pequeno { font-size: 12px; }

.btn { height: 42px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--navy); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.btn:hover { background: var(--card); box-shadow: inset 0 0 0 1px var(--navy); }
.btn.pri { background: var(--navy); color: #fff; box-shadow: none; }
.btn.pri:hover { background: var(--navy-deep); }
.btn.escuro { background: var(--ink); color: var(--bg); box-shadow: none; }
.btn.perigo { color: var(--bad); }
.btn.mini { height: 34px; padding: 0 14px; font-size: 12.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); box-shadow: var(--sombra); }
.seg button { border: 0; background: transparent; color: var(--ink-2); padding: 0 14px; height: 34px; border-radius: 999px; font-weight: 600; font-size: 12.5px; cursor: pointer; }
.seg button.on { background: var(--navy); color: #fff; }

label.campo { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=month], input[type=number], input[type=search], select, textarea {
  height: 44px; border: 0; border-radius: 14px; padding: 0 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink); min-width: 0;
}
.card input[type=text], .card input[type=email], .card input[type=password], .card input[type=date], .card input[type=month], .card input[type=number], .card input[type=search], .card select, .card textarea { background: var(--bg-2); }
textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--gold); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
label.check { display: flex; align-items: center; gap: 9px; min-height: 34px; cursor: pointer; color: var(--ink); font-size: 14px; font-weight: 400; }
label.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form .full { grid-column: 1 / -1; }
fieldset { border: 0; border-top: 1px solid var(--line); padding: 20px 0 6px; margin: 0; }
legend { padding: 0 12px 0 0; font-family: var(--serif); font-size: 20px; color: var(--navy); }

.tabela { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 500; }
td { padding: 14px 10px; border-bottom: 1px solid var(--line-3); vertical-align: middle; }
tr:hover td { background: rgba(255,255,255,.5); }
tr.atraso td:first-child { box-shadow: inset 3px 0 0 var(--hot); }
td a:not(.btn) { text-decoration: none; }
td a:not(.btn):hover { text-decoration: underline; }
td .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
td select, td input { height: 36px; font-size: 13px; }

.chip { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.info { background: var(--navy-soft); color: var(--navy); }
.chip.gold { background: var(--gold-soft); color: var(--gold-ink); }

.alerta { border-radius: 16px; padding: 14px 18px; font-size: 14px; line-height: 1.5; }
.alerta.bad { background: var(--bad-bg); color: var(--bad); }
.alerta.warn { background: var(--warn-bg); color: var(--warn); }
.alerta.ok { background: var(--ok-bg); color: var(--ok); }
.alerta ul { margin: 4px 0 0; padding-left: 18px; }
.vazio { padding: 22px; border-radius: 18px; background: var(--bg-2); color: var(--muted); text-align: center; }
.lista-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-3); background: none; }
.lista-item:last-child { border-bottom: 0; }

.abas { display: flex; gap: 4px; flex-wrap: wrap; padding: 5px; border-radius: 999px; background: var(--card); box-shadow: var(--sombra); align-self: flex-start; }
.abas a { padding: 9px 16px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.abas a.on { background: var(--navy); color: #fff; }

/* números do topo (tela Hoje) */
.numeros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numeros > div { padding: 22px 20px; display: flex; flex-direction: column; gap: 4px; }
.numeros > div + div { border-left: 1px solid var(--line); }
.numeros > div:first-child { padding-left: 0; }
.numeros b { font-family: var(--serif); font-weight: 500; font-size: 42px; line-height: 1.1; }
.numeros span { font-size: 13px; color: var(--muted); }
.saudacao h1 { font-size: 60px; }
.saudacao h1 em { color: var(--gold-ink); }
.saudacao p.resumo { margin: 14px 0 0; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 660px; }
.fila-item { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line-3); }
.fila-item .bola { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.fila-item .quando { width: 70px; flex: none; font-size: 13px; color: var(--muted); }
.fila-item .oque { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fila-item .oque strong { font-size: 15.5px; font-weight: 600; }
.fila-item .oque span { font-size: 13px; color: var(--muted); }
.radar-item { display: flex; gap: 12px; }
.radar-item .barra-cor { flex: none; width: 3px; border-radius: 3px; }
.radar-item strong { font-size: 14px; font-weight: 600; }
.radar-item span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.ini { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; font-size: 12px; font-weight: 600; }

/* modo foco */
.foco { display: flex; flex-wrap: wrap; min-height: calc(100vh - 74px); }
.foco-fila { flex: 1 1 280px; max-width: 330px; padding: 8px 24px 32px 32px; display: flex; flex-direction: column; gap: 18px; border-right: 1px solid var(--line); }
.foco-fila ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.foco-fila li button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: none; text-align: left; cursor: pointer; }
.foco-fila li button:hover { background: var(--card); }
.foco-fila li button.on { background: var(--card); box-shadow: var(--sombra); }
.foco-fila .marca { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); }
.foco-fila .marca.feita { background: var(--navy); color: #fff; box-shadow: none; }
.foco-fila .marca.agora { color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.progresso { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progresso > span { display: block; height: 100%; background: var(--navy); border-radius: 999px; }
.foco-main { flex: 999 1 620px; min-width: 0; padding: 8px 48px 40px; display: flex; flex-direction: column; gap: 24px; }
.foco-main h1 { font-size: 46px; }
.foco-main h1 .ponto { color: var(--gold); }
.passos-foco { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.passos-foco li { display: flex; gap: 18px; padding: 16px 20px; border-radius: 20px; }
.passos-foco li.atual { background: var(--card); box-shadow: var(--sombra-2); }
.passos-foco .num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); }
.passos-foco li.feito .num { background: var(--navy); color: #fff; box-shadow: none; }
.passos-foco li.atual .num { background: var(--gold); color: #fff; box-shadow: none; }
.passos-foco .txt { padding-top: 6px; line-height: 1.5; color: var(--muted); font-size: 15px; flex: 1; }
.passos-foco li.feito .txt { color: var(--muted-2); text-decoration: line-through; }
.passos-foco li.atual .txt { color: var(--ink); font-size: 18.5px; font-weight: 500; }
.passos-foco li { cursor: pointer; }
.passos-foco .txt .btn { font-size: 14px; font-weight: 600; text-decoration: none; }
.nota { font-size: 13px; color: var(--muted); line-height: 1.55; border-left: 2px solid var(--gold); padding: 2px 0 2px 14px; }
.soltar { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 210px; padding: 24px; border-radius: var(--r); border: 1.5px dashed #c9c1b2; background: var(--bg-2); text-align: center; color: var(--muted); cursor: pointer; }
.soltar.sobre { border-color: var(--navy); background: var(--navy-soft); }
.soltar strong { font-size: 16px; color: var(--ink); font-weight: 600; }

/* documentos */
.docs { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.arvore { flex: 1 1 280px; max-width: 360px; background: var(--card); border-radius: var(--r); padding: 12px 8px; max-height: 75vh; overflow: auto; box-shadow: var(--sombra); }
.arvore button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; border: 0; background: none; border-radius: 10px; cursor: pointer; text-align: left; padding-right: 8px; }
.arvore button:hover { background: var(--bg); }
.arvore button.on { background: var(--navy-soft); color: var(--navy); font-weight: 600; }
.arvore button.raiz { font-weight: 600; }
.arvore .seta { width: 14px; flex: none; color: var(--muted); font-size: 11px; }
.arvore .nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arvore .oculta { opacity: .55; }
.badge { font-size: 11px; font-weight: 600; min-width: 20px; text-align: center; padding: 1px 7px; border-radius: 999px; background: var(--gold); color: #fff; }
.painel-docs { flex: 999 1 480px; min-width: 0; }
.trilha { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.trilha b { color: var(--navy); }
.subpastas { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.subpastas button { display: flex; align-items: center; gap: 10px; padding: 14px; min-height: 54px; border: 0; border-radius: 16px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-3); cursor: pointer; text-align: left; font-weight: 600; }
.subpastas button:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.drop { border: 1.5px dashed #c9c1b2; border-radius: var(--r); background: var(--bg-2); padding: 26px; display: flex; align-items: center; gap: 18px; cursor: pointer; }
.drop.sobre { border-color: var(--navy); background: var(--navy-soft); }
.nome-doc { font-weight: 500; text-decoration: none; }
.nome-doc.novo { font-weight: 700; }

/* calendário */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal .dow { font-size: 11px; color: var(--muted); padding: 4px 0; letter-spacing: .06em; }
.cal button { min-height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.cal button:hover { background: var(--bg); }
.cal button.tem { background: var(--bg-2); font-weight: 600; }
.cal button.hoje { box-shadow: inset 0 0 0 1.5px var(--navy); }
.cal button.fer { color: var(--muted); }
.cal button.sel { background: var(--navy); color: #fff; }
.pt { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.pt.pago { background: var(--ok); } .pt.aberto { background: var(--hot); } .pt.prazo { background: var(--gold); }

/* cartão de pagamento do cliente */
.pagar { border-radius: 28px; padding: 26px; background: var(--navy); color: var(--cream); display: flex; flex-direction: column; gap: 14px; }
.pagar .valor { font-family: var(--serif); font-size: 48px; line-height: 1; }
.pagar .rot { color: var(--gold-light, #c7a374); }
.pagar .btn { box-shadow: inset 0 0 0 1px rgba(247,239,228,.35); color: var(--cream); }
.pagar .btn.claro { background: var(--cream); color: var(--navy); box-shadow: none; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; background: var(--bg); padding: 20px; }
.login .caixa { background: var(--card); border-radius: 28px; padding: 40px 36px; width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--sombra-2); }
.login .caixa img { width: 52px; height: 57px; object-fit: contain; align-self: center; }
.login .caixa h1 { text-align: center; font-size: 30px; }
.login .caixa p { text-align: center; margin: 0; color: var(--muted); }
.login .caixa .btn { justify-content: center; height: 48px; }

#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 13px 20px; border-radius: 999px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; max-width: 90vw; }
#toast.on { opacity: 1; }
#toast.erro { background: var(--bad); color: #fff; }

dialog { border: 0; border-radius: 28px; padding: 0; width: min(560px, 94vw); box-shadow: 0 24px 70px rgba(18,32,43,.28); overflow: hidden; background: var(--bg); }
dialog::backdrop { background: rgba(18,32,43,.35); backdrop-filter: blur(3px); }
dialog .dlg { padding: 28px; display: flex; flex-direction: column; gap: 16px; max-height: 88vh; overflow: auto; }
dialog.largo { width: min(780px, 96vw); }
.roteiro-onde { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.passos-lista { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.passos-lista li::marker { color: var(--navy); font-weight: 600; }
.passos-lista label.check { align-items: flex-start; line-height: 1.5; }
.passos-lista label.check input { margin-top: 2px; flex: none; }
.passos-lista input:checked + span { color: var(--muted); text-decoration: line-through; }
.senha-box { font-family: Consolas, monospace; font-size: 18px; background: var(--card); padding: 14px; border-radius: 14px; text-align: center; user-select: all; }

.msgs { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; }
.msg { max-width: 80%; padding: 12px 14px; border-radius: 18px 18px 18px 6px; background: var(--bg-2); align-self: flex-start; }
.msg.esc { background: var(--navy-soft); align-self: flex-end; border-radius: 18px 18px 6px 18px; }
.msg small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.passos span { height: 6px; border-radius: 999px; background: var(--line); }
.passos span.on { background: var(--navy); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tiles button { text-align: left; padding: 16px; border: 0; border-radius: 18px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-3); cursor: pointer; min-height: 64px; font-weight: 600; }
.tiles button:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.tiles button.on { background: var(--navy); color: #fff; box-shadow: none; }

/* avatar e menu do perfil */
.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--gold); }
.avatar.ini-av { display: inline-grid; place-items: center; background: var(--navy); color: var(--cream); font-weight: 600; letter-spacing: .02em; }
.perfil { position: relative; }
.perfil-btn { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 12px 4px 4px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; color: var(--ink); }
.perfil-btn:hover, .perfil-btn[aria-expanded=true] { background: rgba(18,32,43,.05); }
.perfil-txt { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.perfil-txt b { font-size: 14px; font-weight: 600; }
.perfil-txt small { font-size: 12px; color: var(--muted); }
.perfil-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 270px; background: var(--card); color: var(--ink); border-radius: 22px; box-shadow: var(--sombra-2); padding: 8px; z-index: 30; display: flex; flex-direction: column; }
.perfil-menu[hidden] { display: none; }
.perfil-cab { display: flex; align-items: center; gap: 12px; padding: 10px 12px 14px; border-bottom: 1px solid var(--line-3); margin-bottom: 6px; }
.perfil-cab span { display: flex; flex-direction: column; min-width: 0; }
.perfil-cab small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.perfil-menu a, .perfil-menu button { display: block; width: 100%; text-align: left; padding: 11px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; font-size: 14px; }
.perfil-menu a:hover, .perfil-menu button:hover { background: var(--bg); }
.perfil-menu hr { border: 0; border-top: 1px solid var(--line-3); margin: 6px 0; }
.perfil-menu .sair { color: var(--bad); font-weight: 600; }

/* ---------- contabilidade e honorários ---------- */
.passo-n { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--muted); }
.passo-n.ok { background: var(--navy); color: #fff; box-shadow: none; }
.cobertura { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.cobertura span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; font-size: 12px; color: var(--muted); background: var(--bg-2); }
.cobertura span b { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 600; }
.cobertura span.tem { background: var(--navy-soft); color: var(--navy); }
.cobertura span.falta { background: var(--warn-bg); color: var(--warn); }
.cobertura span.fora { opacity: .45; }
.pergunta { display: flex; flex-direction: column; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line-3); }
.pergunta:last-child { border-bottom: 0; }
.hon-emp { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line-3); }
.hon-emp:last-of-type { border-bottom: 0; }
@media (max-width: 900px) { .cobertura { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---------- variação: fundo branco + menu azul-marinho ---------- */
[data-tema="branco"] { --bg: #ffffff; --bg-2: #f7f8fa; --line: #e6e9ed; --line-3: #eef0f3; --sombra: 0 0 0 1px #eceef1, 0 8px 24px rgba(18,32,43,.04); }
[data-tema="branco"] body { background: #fff; }
[data-tema="branco"] .app-top { background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line-3); }
[data-tema="branco"] .dock { background: var(--navy); box-shadow: 0 12px 30px rgba(11,58,92,.25); }
[data-tema="branco"] .dock a { color: #cfdbe5; }
[data-tema="branco"] .dock a:hover { background: rgba(255,255,255,.1); color: #fff; }
[data-tema="branco"] .dock a.on { background: #fff; color: var(--navy); }
[data-tema="branco"] .dock a .n { background: var(--gold); box-shadow: 0 0 0 2px var(--navy); }
[data-tema="branco"] .card { box-shadow: var(--sombra); }
[data-tema="branco"] .busca label { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
[data-tema="branco"] .card input[type=text], [data-tema="branco"] .card select, [data-tema="branco"] .card input[type=search] { background: #fff; }
[data-tema="branco"] .foco-fila li button.on, [data-tema="branco"] .foco-fila li button:hover { background: var(--bg-2); box-shadow: none; }
[data-tema="branco"] .passos-foco li.atual { background: var(--bg-2); box-shadow: none; }
[data-tema="branco"] .app-top.cli nav { background: var(--navy); box-shadow: none; }
[data-tema="branco"] .app-top.cli nav a { color: #cfdbe5; }
[data-tema="branco"] .app-top.cli nav a.on { background: #fff; color: var(--navy); }

@media (max-width: 900px) {
  .app-top { padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
  .brand { min-width: 0; }
  .brand b { display: none; }
  .top-dir { min-width: 0; }
  .busca { order: 3; flex-basis: 100%; max-width: none; }
  .perfil-txt { display: none; }
  .corpo { padding: 8px 16px 110px; }
  .dock { position: fixed; top: auto; bottom: 14px; left: 50%; transform: translateX(-50%); flex-direction: row; z-index: 30; }
  .dock a { width: 44px; height: 44px; }
  .dock a .dica { display: none; }
  .saudacao h1 { font-size: 40px; }
  .numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numeros > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .arvore { max-width: none; max-height: 40vh; }
  .foco-fila { max-width: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 16px 20px; }
  .foco-main { padding: 8px 16px 40px; }
  .app-top.cli nav { position: fixed; bottom: 14px; left: 16px; right: 16px; z-index: 30; justify-content: space-around; background: var(--ink); }
  .app-top.cli nav a { color: #cfd6db; padding: 10px 12px; }
  .app-top.cli nav a.on { background: var(--bg); color: var(--ink); }
  .conteudo { padding: 12px 16px 110px; }
}
