/* Cor principal (padrão: azul). Trocada em Mais → Aparência. */
:root { --c-l: #1d4ed8; --c-soft-l: #dbe6fe; --c-ink-l: #ffffff; --c-d: #60a5fa; --c-soft-d: #172a4a; --c-ink-d: #04122b; }
:root[data-cor="verde"]   { --c-l: #0f766e; --c-soft-l: #d9f0ec; --c-d: #2dd4bf; --c-soft-d: #123a35; --c-ink-d: #062320; }
:root[data-cor="roxo"]    { --c-l: #6d28d9; --c-soft-l: #ede5fd; --c-d: #a78bfa; --c-soft-d: #2a1f4a; --c-ink-d: #160b33; }
:root[data-cor="rosa"]    { --c-l: #be185d; --c-soft-l: #fce4ef; --c-d: #f472b6; --c-soft-d: #3f1a2c; --c-ink-d: #2b0617; }
:root[data-cor="laranja"] { --c-l: #c2410c; --c-soft-l: #ffe9dc; --c-d: #fb923c; --c-soft-d: #3d2414; --c-ink-d: #2a1003; }
:root[data-cor="grafite"] { --c-l: #334155; --c-soft-l: #e2e8f0; --c-d: #cbd5e1; --c-soft-d: #253041; --c-ink-d: #0f172a; }

:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #151b24;
  --muted: #5e6877;
  --line: #e0e5ec;
  --brand: var(--c-l);
  --brand-ink: var(--c-ink-l);
  --brand-soft: var(--c-soft-l);
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --bad: #b91c1c;
  --bad-soft: #fee2e2;
  --whats: #1fa855;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.04);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --bg: #0d1118; --card: #161c26; --text: #e7ecf3; --muted: #98a3b3; --line: #262f3d;
    --brand: var(--c-d); --brand-ink: var(--c-ink-d); --brand-soft: var(--c-soft-d);
    --ok: #4ade80; --ok-soft: #12321f; --warn: #fbbf24; --warn-soft: #3a2c0b; --bad: #f87171; --bad-soft: #3b1414;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-tema="escuro"] {
  --bg: #0d1118; --card: #161c26; --text: #e7ecf3; --muted: #98a3b3; --line: #262f3d;
  --brand: var(--c-d); --brand-ink: var(--c-ink-d); --brand-soft: var(--c-soft-d);
  --ok: #4ade80; --ok-soft: #12321f; --warn: #fbbf24; --warn-soft: #3a2c0b; --bad: #f87171; --bad-soft: #3b1414;
  --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
main { max-width: 640px; margin: 0 auto; padding: 16px 16px 24px; outline: none; }
h1 { font-size: 1.5rem; margin: 4px 0 0; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; margin: 22px 0 10px; }
h3 { font-size: 1rem; margin: 0 0 6px; }
a { color: var(--brand); }
small, .muted { color: var(--muted); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* topo */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.top p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.voltar { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-size: .95rem; margin-bottom: 6px; }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px;
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn.sec { background: var(--brand-soft); color: var(--text); }
.btn.perigo { background: var(--bad-soft); color: var(--bad); }
.btn.whats { background: var(--whats); color: #fff; }
.btn.full { width: 100%; }
.btn:active { transform: scale(.98); }
.btn-ic {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 12px; background: transparent; color: var(--muted);
  cursor: pointer; text-decoration: none; font-size: 1.4rem;
}
.btn-ic.whats { color: var(--whats); }
.btn-ic:hover { background: var(--brand-soft); }
.fab {
  position: fixed; right: max(16px, calc(50% - 304px)); bottom: calc(84px + env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 18px; border: 0; z-index: 5;
  background: var(--brand); color: var(--brand-ink); font-size: 2rem; line-height: 1;
  box-shadow: 0 6px 18px rgba(0,0,0,.2); cursor: pointer;
}
.acoes { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.acoes .btn { flex: 1 1 140px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.lista { display: grid; gap: 10px; }
.vazio { text-align: center; color: var(--muted); padding: 28px 12px; border: 1px dashed var(--line); border-radius: var(--radius); }
.vazio .btn { margin-top: 12px; }

.resumo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.resumo .card span { display: block; font-size: .85rem; color: var(--muted); }
.resumo .card strong { display: block; font-size: 1.3rem; margin-top: 2px; font-variant-numeric: tabular-nums; }
.resumo .ok strong { color: var(--ok); }
.resumo .warn strong { color: var(--warn); }

.aviso { background: var(--brand-soft); border: 0; }
.aviso p { margin: 4px 0 10px; }

/* agendamento */
.ag { display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 14px; }
.ag.cancelado { opacity: .55; }
.ag-hora { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 50px; text-align: center; }
.ag-hora small { display: block; font-weight: 500; font-size: .78rem; }
.ag-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ag-info strong, .ag-info > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-info > span { color: var(--muted); font-size: .9rem; }
.ag-acoes { display: flex; }
.tag { align-self: flex-start; font-size: .74rem; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--text); margin-top: 2px; }
.tag.verde { background: var(--ok-soft); color: var(--ok); }
.tag.vermelho { background: var(--bad-soft); color: var(--bad); }
.tag.amarelo { background: var(--warn-soft); color: var(--warn); }
.tag.cinza { background: var(--line); color: var(--muted); }

/* navegação por dia/mês */
.navdia { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.navdia div { text-align: center; flex: 1; }
.navdia strong { display: block; }
.navdia strong::first-letter { text-transform: uppercase; }
.navdia button.link { background: none; border: 0; color: var(--brand); font: inherit; font-size: .85rem; cursor: pointer; padding: 2px 6px; }
.semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 14px; }
.semana a { text-decoration: none; color: var(--text); text-align: center; padding: 6px 0; border-radius: 10px; font-size: .78rem; position: relative; }
.semana a b { display: block; font-size: 1rem; }
.semana a.sel { background: var(--brand); color: var(--brand-ink); }
.semana a.hoje:not(.sel) b { color: var(--brand); }
.semana a i { position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: currentColor; opacity: .6; }

/* linhas de lista */
.linha { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.linha .info { flex: 1; min-width: 0; }
.linha .info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linha .info span { color: var(--muted); font-size: .9rem; }
.avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.valor { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-lista { display: grid; gap: 8px; }
.menu-lista a { display: flex; align-items: center; justify-content: space-between; text-decoration: none; color: var(--text); }
.menu-lista a span { color: var(--muted); font-size: .9rem; display: block; }

.busca { width: 100%; margin-bottom: 12px; }

/* formulários */
input, select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--text); font: inherit;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 12px; }
label > input, label > select, label > textarea { margin-top: 4px; font-weight: 400; }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
label.check input { width: 22px; min-height: 22px; height: 22px; margin: 0; accent-color: var(--brand); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

dialog#sheet {
  width: 100%; max-width: 560px; max-height: 92vh; margin: auto auto 0; padding: 0;
  border: 0; border-radius: 20px 20px 0 0; background: var(--card); color: var(--text);
}
dialog#sheet::backdrop { background: rgba(0,0,0,.45); }
#sheetBody { padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
#sheetBody h2 { margin-top: 0; }
.sheet-acoes { display: flex; gap: 10px; margin-top: 8px; position: sticky; bottom: 0; background: var(--card); padding-top: 8px; }
.sheet-acoes .btn { flex: 1; }
.opcoes { display: grid; gap: 8px; }
.opcoes .btn { justify-content: flex-start; }
@media (min-width: 640px) { dialog#sheet { margin: auto; border-radius: 20px; } }

.itens { display: grid; gap: 10px; margin-bottom: 8px; }
.item { display: grid; grid-template-columns: 80px 1fr 36px; gap: 6px; align-items: center; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.item .i-desc { grid-column: 1 / -1; }
.item .btn-ic { width: 36px; }
.itens-cab { font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.total-linha { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; padding: 10px 0; border-top: 1px solid var(--line); margin-top: 6px; }

/* documento do orçamento */
.doc { background: #fff; color: #111; border-radius: var(--radius); padding: 22px 18px; border: 1px solid var(--line); }
.doc header { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--c-l); padding-bottom: 12px; margin-bottom: 14px; }
.doc header h2 { margin: 0; font-size: 1.2rem; color: var(--c-l); }
.doc header p, .doc .cli p { margin: 2px 0; font-size: .88rem; color: #444; }
.doc .num { text-align: right; font-size: .88rem; color: #444; }
.doc .num strong { display: block; font-size: 1.05rem; color: #111; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .92rem; }
.doc th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: #555; border-bottom: 1px solid #ccc; padding: 6px 4px; }
.doc td { border-bottom: 1px solid #eee; padding: 8px 4px; vertical-align: top; }
.doc .r { text-align: right; white-space: nowrap; }
.doc tfoot td { font-weight: 700; font-size: 1.05rem; border: 0; padding-top: 12px; }
.doc .obs { font-size: .88rem; color: #333; white-space: pre-wrap; }
.doc footer { margin-top: 18px; font-size: .8rem; color: #666; }

#toast {
  position: fixed; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: .92rem;
  opacity: 0; pointer-events: none; transition: .2s; z-index: 50; max-width: calc(100% - 32px);
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* barra inferior */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 600; }
.tabs a.ativo { color: var(--brand); }

/* aparência: escolha de tema e cor */
.escolhas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.escolhas label { margin: 0; position: relative; }
.escolhas input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; min-height: 0; padding: 0; }
.escolhas small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.escolhas label > span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 2px solid var(--line); border-radius: 12px; font-weight: 600; font-size: .88rem; cursor: pointer; text-align: center; }
.escolhas input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.escolhas input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.bolinha { width: 28px; height: 28px; border-radius: 50%; }

.dica { font-size: .8rem; color: var(--muted); font-weight: 400; margin: 4px 0 0; }
.dica code { background: var(--brand-soft); color: var(--text); padding: 0 4px; border-radius: 4px; font-size: .78rem; }
.msg-bloco { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.msg-bloco:last-of-type { border-bottom: 0; }
.msg-bloco .linha-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.msg-bloco button.link, button.link { background: none; border: 0; color: var(--brand); font: inherit; font-size: .85rem; cursor: pointer; padding: 4px; }
.lucro strong { color: var(--brand); }
.resumo .bad strong { color: var(--bad); }
.secao-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 22px 0 10px; }
.secao-topo h2 { margin: 0; }
.mini { min-height: 36px; padding: 0 12px; font-size: .88rem; }

/* conta e Premium */
body.sem-sessao { padding-bottom: 24px; }
body.sem-sessao .tabs { display: none; }
.auth { max-width: 420px; margin: 0 auto; padding-top: 24px; text-align: center; }
.auth img { border-radius: 18px; box-shadow: var(--shadow); }
.auth h1 { margin-top: 10px; }
.auth > p { margin: 4px 0 18px; }
.auth form { text-align: left; }
.abas { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--line); border-radius: 12px; margin-bottom: 12px; }
.abas a { padding: 10px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; }
.abas a.sel { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.selo { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; padding: 3px 10px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); margin-bottom: 6px; }
.paywall { text-align: center; }
.paywall h2 { margin: 6px 0 8px; }
.preco { margin: 6px 0 12px; color: var(--muted); }
.preco strong { font-size: 2rem; color: var(--text); }
.beneficios { list-style: none; padding: 0; margin: 0 0 16px; text-align: left; display: grid; gap: 6px; }
.beneficios li { padding: 8px 12px; border-radius: 10px; background: var(--bg); }
.beneficios li.destaque { background: var(--brand-soft); font-weight: 700; }
.paywall .qr { display: block; margin: 8px auto 14px; background: #fff; padding: 8px; border-radius: 12px; }
.paywall textarea { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; word-break: break-all; }
.aguardando { margin: 14px 0 10px; padding: 10px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-weight: 600; font-size: .92rem; }

/* primeiros passos e ajuda */
.passos-app { margin-bottom: 14px; border: 2px solid var(--brand); }
.passos-app .barra { height: 8px; border-radius: 4px; background: var(--line); margin-bottom: 12px; overflow: hidden; }
.passos-app .barra span { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.passos-app ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.passos-app li { display: flex; gap: 12px; align-items: flex-start; }
.passos-app li > div { flex: 1; }
.passos-app li span:not(.marca-passo) { display: block; color: var(--muted); font-size: .9rem; }
.passos-app li.ok strong { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.marca-passo { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: var(--line); color: var(--muted); }
.passos-app li.ok .marca-passo { background: var(--ok-soft); color: var(--ok); }
.passos-app li.atual .marca-passo { background: var(--brand); color: var(--brand-ink); }
.ajuda { display: grid; gap: 8px; }
.ajuda details { padding: 0; }
.ajuda summary { cursor: pointer; padding: 14px; font-weight: 700; }
.ajuda details > div { padding: 0 14px 14px; color: var(--muted); }
.ajuda details > div b { color: var(--text); }

/* central de cobranças */
.tabs a { position: relative; }
.badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-style: normal; font-size: .68rem; font-weight: 800; display: grid; place-items: center; }
.cob-chamada { display: flex; align-items: center; gap: 12px; margin-top: 10px; text-decoration: none; color: inherit; border: 2px solid var(--warn); background: var(--warn-soft); }
.cob-chamada > span { font-size: 1.6rem; }
.cob-chamada div { flex: 1; }
.cob-chamada small { display: block; color: var(--muted); }
.cob-topo { margin-bottom: 12px; }
.sumidos-chamada { border-color: var(--brand); background: var(--brand-soft); }
.cob { display: flex; align-items: center; gap: 10px; }
.cob .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cob .info > span { color: var(--muted); font-size: .9rem; }
.cob-linha { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cob small { color: var(--muted); }
.cob.feito { opacity: .7; }
.ok-txt { color: var(--ok) !important; font-weight: 600; }
.seq { text-align: center; }
.seq-valor { font-size: 2rem; font-weight: 800; margin: 10px 0; font-variant-numeric: tabular-nums; }
.seq-botao { min-height: 54px; font-size: 1.05rem; }
.seq-msg { text-align: left; margin: 0 0 12px; }
.seq-msg summary { cursor: pointer; color: var(--brand); font-size: .9rem; }
.seq-msg pre { white-space: pre-wrap; font: inherit; font-size: .88rem; background: var(--bg); padding: 10px; border-radius: 10px; margin: 8px 0 0; }

/* horário de trabalho e horários livres */
.expediente { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 0 0 12px; }
.expediente legend { font-weight: 700; font-size: .9rem; padding: 0 6px; }
.dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 10px; }
.dia { margin: 0; position: relative; }
.dia input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; min-height: 0; padding: 0; }
.dia span { display: block; text-align: center; padding: 8px 0; border-radius: 9px; border: 1px solid var(--line); font-size: .8rem; cursor: pointer; }
.dia input:checked + span { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.dia input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.livres { padding-bottom: 120px; }
.dia-titulo { display: block; text-transform: none; }
.dia-titulo::first-letter { text-transform: uppercase; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.slot { min-width: 64px; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.slot.sel { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.barra-livres { position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 6; background: var(--card); border-top: 1px solid var(--line); padding: 10px 16px; box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
.barra-livres > span { font-weight: 700; font-size: .9rem; }
.barra-livres.vazia > span { color: var(--muted); font-weight: 500; }
.barra-livres .acoes .btn { flex: 1 1 auto; }

/* relatório e formas de pagamento */
.rel-num .var { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; }
.rel-num .var.sobe { color: var(--ok); font-weight: 700; }
.rel-num .var.desce { color: var(--bad); font-weight: 700; }
.destaques p { margin: 6px 0; }
.so-impressao { display: none; }
.formas { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
@media print { .so-impressao { display: block; } .relatorio .card { border: 1px solid #ccc; } }

/* senha: mostrar/esconder, força e "pote de mel" */
.campo-senha { position: relative; margin-top: 4px; }
.campo-senha input { padding-right: 48px; font-weight: 400; }
.ver-senha { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px; border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; border-radius: 8px; }
.ver-senha:focus-visible { outline: 2px solid var(--brand); }
.forca { height: 6px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.forca span { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--bad); transition: width .2s; }
.forca span[data-nivel="2"] { background: var(--warn); }
.forca span[data-nivel="3"], .forca span[data-nivel="4"] { background: var(--ok); }
.pote { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* excluir conta */
.zona-perigo { margin-top: 28px; border: 1px solid var(--bad-soft); border-radius: var(--radius); }
.zona-perigo summary { cursor: pointer; padding: 14px; color: var(--bad); font-weight: 700; }
.zona-perigo form { padding: 0 14px 14px; }
.zona-perigo ul { padding-left: 20px; margin: 6px 0 10px; }
.zona-perigo li { margin: 4px 0; }

/* minha página */
.pagina-no-ar { border: 2px solid var(--ok); }
.link-pagina { margin: 0 0 6px; font-weight: 700; color: var(--brand); word-break: break-all; }
.campo-slug { display: flex; align-items: center; margin-top: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.campo-slug span { padding: 0 4px 0 12px; color: var(--muted); font-weight: 400; }
.campo-slug input { border: 0; margin: 0; padding-left: 2px; min-width: 0; }
.campo-slug:focus-within { outline: 2px solid var(--brand); }
.campo-slug input:focus { outline: none; }
.perfil-linha { display: flex; align-items: center; gap: 14px; }
.perfil-mini { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.galeria-app { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.foto-app { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--line); }
.foto-app img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apagar-foto { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 1.2rem; }

/* lembrete de backup */
.aviso-backup { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; border: 2px solid var(--brand); }
.aviso-backup > span { font-size: 1.6rem; }
.aviso-backup small { display: block; color: var(--muted); margin-top: 2px; }

/* recibo */
.recibo .recibo-valor { display: block; margin-top: 6px; font-size: 1.15rem; color: #111; }
.recibo-texto { font-size: 1rem; line-height: 1.7; color: #222; margin: 16px 0; }
.recibo-local { color: #444; margin: 22px 0 0; }
.assinatura { margin: 46px auto 0; max-width: 300px; text-align: center; }
.assinatura span { display: block; border-top: 1px solid #333; }
.assinatura p { margin: 6px 0 0; font-size: .9rem; color: #333; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }

@media print {
  body { background: #fff; padding: 0; }
  .tabs, .fab, .top, .acoes, .voltar, #toast, .nao-imprimir { display: none !important; }
  main { padding: 0; max-width: none; }
  .doc { border: 0; padding: 0; }
}
