/* Folha única do sistema. Visual-base "Canteiro" (papel, grafite, cantos de 12px, Figtree + Bricolage Grotesque);
   as cores da marca (--primary, --accent…) vêm de cada empresa (core/marca.py). Fontes servidas daqui (offline/PWA). */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("../fonts/figtree.202cfb54d4e6.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/bricolage-grotesque.ada540c0e24a.woff2") format("woff2"); }
:root {
  --bg: #faf7f2; --surface: #ffffff; --surface-2: #f1ece3; --line: #ddd6ca; --line-forte: #8a8278;
  --ink: #1e2321; --ink-2: #575e5a; --ink-3: #666c68;
  --primary: #c2410c; --primary-ink: #ffffff; --primary-soft: #ffe3cc; --primary-text: #c2410c;
  --accent: #f5c518; --accent-ink: #1e2321; --accent-soft: #fdf3c4;
  --ok: #2f7d4f; --ok-soft: #dff0e5; --info: #2a5f9e; --info-soft: #e1ebf7;
  --warn: #8a5a00; --warn-soft: #fbedd0; --err: #c62828; --err-soft: #fbe3e1;
  --mute: #666c68; --mute-soft: #ece7de;
  --grafite: #1e2321; --side-acento: #fb7b2e;
  --radius: 12px; --radius-sm: 8px; --shadow: 0 1px 2px rgba(30, 35, 33, .05);
  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-titulo: "Bricolage Grotesque", var(--font);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141716; --surface: #1e2321; --surface-2: #262c29; --line: #2e3431; --line-forte: #6e7671;
    --ink: #f3efe8; --ink-2: #b9bfba; --ink-3: #959c97;
    --primary: #fb7b2e; --primary-ink: #141716; --primary-soft: #3a2416; --primary-text: #fb7b2e;
    --accent: #f5c518; --accent-ink: #141716; --accent-soft: #3a3214;
    --ok: #5bbf83; --ok-soft: #173326; --info: #8fb3e3; --info-soft: #1d2b3f;
    --warn: #f0b72f; --warn-soft: #3a2f12; --err: #f06a6a; --err-soft: #3d1d1b;
    --mute: #9aa0a8; --mute-soft: #262a29;
    --grafite: #0f1211;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--primary-text, var(--primary)); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; }
h1 { font-family: var(--font-titulo); font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
h2 { font-family: var(--font-titulo); font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: .8rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
p { margin: 0 0 .8rem; }
small, .muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pre { white-space: pre-wrap; }
/* Marca da plataforma (só onde não há empresa): "faz" grafite + "mesmo" laranja */
.wm { font-family: var(--font-titulo); font-weight: 800; letter-spacing: -.035em; color: var(--ink); white-space: nowrap; }
.wm .wm-2 { color: #e8590c; }
@media (prefers-color-scheme: dark) { .wm .wm-2 { color: #fb7b2e; } }

/* ---------- Layout ---------- */
.app { min-height: 100vh; }
.side { background: var(--grafite); color: #fff; padding: 20px 12px; position: fixed; top: 0; left: 0; bottom: 0; width: 232px; overflow-y: auto; }
@media (prefers-color-scheme: dark) { .side { border-right: 1px solid var(--line); } }
.side .wm, .topo .wm { color: #fff; }
.side .wm .wm-2, .topo .wm .wm-2 { color: #fb7b2e; }
.marca { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; padding: 0 8px 20px; color: #fff; }
.marca svg { flex: none; }
.marca .logo-chip { flex: none; display: inline-flex; align-items: center; background: #fff; border-radius: 8px; padding: 3px 5px; }
.marca .logo-chip img { display: block; max-height: 26px; max-width: 120px; }
.marca .marca-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.side nav a { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.78); padding: 10px 12px;
  border-radius: var(--radius-sm); font-size: .95rem; font-weight: 500; position: relative; }
.side nav a:hover { background: rgba(255,255,255,.07); text-decoration: none; color: #fff; }
.side nav a.ativo { background: rgba(255,255,255,.1); color: #fff; font-weight: 700; }
.side nav a.ativo::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px;
  background: var(--side-acento); }
.side nav .sep { height: 1px; background: rgba(255,255,255,.1); margin: 10px 6px; }
.side .rodape { position: absolute; bottom: 14px; left: 12px; right: 12px; font-size: .82rem; color: rgba(255,255,255,.62); }
.side .rodape a { color: rgba(255,255,255,.82); }
.app { padding-left: 232px; }
main { padding: 28px 32px 56px; max-width: 1200px; width: 100%; }
.topo { display: none; }
.abas { display: none; }

@media (max-width: 860px) {
  .app { padding-left: 0; }
  .side { display: none; }
  .topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px;
    background: var(--grafite); color: #fff; position: sticky; top: 0; z-index: 20; }
  @media (prefers-color-scheme: dark) { .topo { border-bottom: 1px solid var(--line); } }
  .topo .marca { padding: 0; font-size: .98rem; }
  .topo details { position: relative; }
  .topo summary { list-style: none; cursor: pointer; padding: 10px 12px; border-radius: var(--radius-sm); color: #fff; }
  .topo summary::-webkit-details-marker { display: none; }
  .topo .menu { position: absolute; right: 0; top: 40px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); min-width: 210px; padding: 6px; }
  .topo .menu a { display: block; padding: 10px 12px; color: var(--ink); border-radius: 6px; }
  main { padding: 16px 16px 96px; }
  html { scroll-padding-top: 72px; scroll-padding-bottom: 96px; }
  .grade-2 { display: flex; flex-direction: column; gap: 0; }
  .grade-2 > * { display: contents; }
  .grade-2 .no-topo { order: -1; }
  .grade-2 .no-fim { order: 1; }
  .cab > .acoes { width: 100%; }
  .cab > .acoes > .btn, .cab > .acoes > form { flex: 1 1 140px; }
  .cab > .acoes > form .btn { width: 100%; }
  .abas { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--surface); border-top: 1px solid var(--line); z-index: 20;
    padding-bottom: env(safe-area-inset-bottom); }
  .abas a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px;
    font-size: .72rem; color: var(--ink-2); }
  .abas a.ativo { color: var(--primary-text, var(--primary)); font-weight: 600; }
  .abas a:hover { text-decoration: none; }
}

/* ---------- Componentes ---------- */
.cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cab .sub { color: var(--ink-3); margin-top: -4px; }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow); margin-bottom: 16px; min-width: 0; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.grade { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.grade-2 { display: grid; gap: 16px; grid-template-columns: 2fr 1fr; align-items: start; }
@media (max-width: 960px) { .grade-2 { grid-template-columns: 1fr; } }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi .rot { font-size: .78rem; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.kpi .val { font-family: var(--font-titulo); font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; margin-top: 4px; }
.kpi.destaque { background: var(--primary-soft); border-color: transparent; }
.kpi.alerta .val { color: var(--err); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-forte);
  background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 10px 16px; font: inherit; font-weight: 600;
  cursor: pointer; min-height: 44px; line-height: 1.2; text-align: center; transition: background .15s, filter .15s; }
.btn:hover { text-decoration: none; background: var(--surface-2); }
.btn.primario { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primario:hover { filter: brightness(1.08); }
.btn.destaque { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, #1d1500); }
.btn.perigo { color: var(--err); border-color: var(--err-soft); }
.btn.peq { min-height: 36px; padding: 6px 12px; font-size: .88rem; border-radius: var(--radius-sm); }
.btn.bloco { width: 100%; }
form.inline { display: inline; }

.selo { display: inline-block; font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.selo-neutro { background: var(--mute-soft); color: var(--ink-2); }
.selo-info { background: var(--info-soft); color: var(--info); }
.selo-alerta { background: var(--warn-soft); color: var(--warn); }
.selo-ok { background: var(--ok-soft); color: var(--ok); }
.selo-erro { background: var(--err-soft); color: var(--err); }
.selo-mudo { background: var(--mute-soft); color: var(--mute); text-decoration: line-through; }

.aviso { border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; border: 1px solid; font-size: .93rem; }
.aviso strong { display: block; margin-bottom: 2px; }
.aviso.info { background: var(--info-soft); border-color: transparent; color: var(--ink); }
.aviso.alerta { background: var(--warn-soft); border-color: transparent; color: var(--ink); }
.aviso.erro { background: var(--err-soft); border-color: transparent; color: var(--ink); }
.aviso.ok { background: var(--ok-soft); border-color: transparent; color: var(--ink); }
.aviso.interno { background: repeating-linear-gradient(-45deg, var(--accent-soft), var(--accent-soft) 10px,
  transparent 10px, transparent 20px), var(--surface); border-color: var(--accent); }
.msgs { margin-bottom: 12px; }

/* Tabelas viram cartões no celular */
.tabela { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tabela th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3);
  font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tabela td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela .dir { text-align: right; }
.tabela tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
.tabela-wrap { overflow-x: auto; }
@media (max-width: 640px) {
  .tabela.responsiva thead { display: none; }
  .tabela.responsiva, .tabela.responsiva tbody, .tabela.responsiva tr, .tabela.responsiva td { display: block; width: 100%; }
  .tabela.responsiva tr { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; padding: 6px 4px; background: var(--surface); }
  .tabela.responsiva td { border: 0; padding: 4px 10px; display: flex; justify-content: space-between; gap: 10px; text-align: right; }
  .tabela.responsiva td::before { content: attr(data-l); color: var(--ink-3); font-size: .82rem; text-align: left; }
  .tabela.responsiva td[data-l=""]::before { content: none; }
  .tabela.responsiva td.principal { font-weight: 600; text-align: left; display: block; }
  .tabela.responsiva td.principal::before { content: none; }
  .tabela.responsiva tfoot { display: block; }
}

.lista { list-style: none; margin: 0; padding: 0; }
.lista li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.lista li:last-child { border-bottom: 0; }
.vazio { color: var(--ink-3); padding: 14px 0; text-align: center; font-size: .93rem; }

dl.dados { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.dados dt { color: var(--ink-3); font-size: .88rem; }
dl.dados dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ---------- Formulários ---------- */
.campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
.campo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.campo.largo { grid-column: 1 / -1; }
.campo label { font-size: .87rem; font-weight: 600; color: var(--ink-2); }
.campo .ajuda { font-size: .8rem; color: var(--ink-3); }
.campo .erro, .erros { color: var(--err); font-size: .85rem; }
.campo.check { flex-direction: row; align-items: center; gap: 8px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-forte);
  border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; min-height: 44px; }
textarea { min-height: 70px; resize: vertical; }
input[type=checkbox] { width: 22px; height: 22px; min-height: 0; accent-color: var(--primary); }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.form-acoes { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: end; }
.filtros input, .filtros select { width: auto; min-width: 150px; flex: 1 1 160px; }
.filtros .btn { flex: none; }

/* Itens do orçamento */
.itens { width: 100%; border-collapse: collapse; }
.itens td, .itens th { padding: 6px 4px; vertical-align: top; }
.itens th { font-size: .78rem; text-align: left; color: var(--ink-3); text-transform: uppercase; }
.itens .c-tipo { width: 150px; } .itens .c-qtd { width: 90px; } .itens .c-val { width: 130px; } .itens .c-tot { width: 120px; text-align: right; padding-top: 16px; }
.itens .c-del { width: 40px; text-align: center; padding-top: 14px; }
@media (max-width: 720px) {
  .itens thead { display: none; }
  .itens tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 10px; }
  .itens td { padding: 0; width: auto !important; }
  .itens .c-desc { grid-column: 1 / -1; }
  .itens .c-tot { text-align: left; padding-top: 6px; }
}
.totais { margin-left: auto; max-width: 320px; }
.totais div { display: flex; justify-content: space-between; padding: 4px 0; }
.totais .total { font-family: var(--font-titulo); font-size: 1.3rem; font-weight: 800; border-top: 2px solid var(--line); padding-top: 8px; margin-top: 4px; }

/* Checklist */
.checklist li { justify-content: flex-start; }
.checklist .feito span { text-decoration: line-through; color: var(--ink-3); }
.check-btn { width: 26px; height: 26px; border-radius: 6px; border: 2px solid var(--line); background: var(--surface);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: #fff; padding: 0; flex: none; }
.feito .check-btn { background: var(--ok); border-color: var(--ok); }

/* Linha do tempo */
.tempo { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.tempo li { position: relative; padding: 0 0 14px 16px; }
.tempo li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); }
.tempo .quando { font-size: .8rem; color: var(--ink-3); }

/* Anexos */
.anexos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.anexos figure { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.anexos img { width: 100%; height: 100px; object-fit: cover; display: block; }
.anexos figcaption { font-size: .78rem; padding: 4px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anexos .doc { height: 100px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ink-3); }

/* Agenda */
.agenda { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.agenda.dia { grid-template-columns: 1fr; }
.agenda .dia-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-height: 160px; padding: 8px; }
.agenda .dia-col.hoje { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.agenda .dia-cab { font-size: .82rem; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; display: flex; justify-content: space-between; }
.evento { display: block; border-radius: 7px; padding: 6px 8px; margin-bottom: 6px; background: var(--primary-soft);
  color: var(--ink); font-size: .84rem; border-left: 3px solid var(--primary); }
.evento:hover { text-decoration: none; filter: brightness(.97); }
.evento .h { font-weight: 700; font-variant-numeric: tabular-nums; }
.evento.execucao, .evento.aguardando { background: var(--warn-soft); border-color: var(--accent); }
.evento.concluido { background: var(--ok-soft); border-color: var(--ok); }
@media (max-width: 860px) {
  .agenda { grid-template-columns: 1fr; }
  .agenda .dia-col { min-height: 0; }
}

/* Copiar */
.copiavel { position: relative; background: var(--surface-2); border: 1px dashed var(--line); border-radius: 8px;
  padding: 12px; font-family: var(--mono); font-size: .86rem; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 10px; }

/* Login */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login .card { width: 100%; max-width: 400px; padding: 32px; border-radius: 22px; }
.login .marca { color: var(--ink); padding: 0 0 20px; font-size: 1.2rem; }

.progresso { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progresso span { display: block; height: 100%; background: var(--ok); }

/* Impressão */
@media print {
  .side, .topo, .abas, .nao-imprimir, .msgs { display: none !important; }
  .app { display: block; }
  main { padding: 0; max-width: none; }
  body { background: #fff; color: #000; font-size: 12px; }
  .card { box-shadow: none; border: 0; padding: 0; }
}

/* Medidor do limite do MEI */
.medidor { position: relative; height: 14px; background: var(--surface-2); border-radius: 99px; overflow: visible; margin-top: 6px; }
.medidor > span { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.medidor > span.nivel-alerta { background: var(--accent); }
.medidor > span.nivel-erro { background: var(--err); }
.medidor .proj { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink-2); }
.medidor-legenda { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .88rem; margin-top: 6px; color: var(--ink-2); }

/* Assinatura */
.assinatura-pad { width: 100%; height: 180px; border: 2px dashed var(--line); border-radius: 10px; background: #fff; touch-action: none; display: block; }
.assinatura-img { max-width: 320px; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* Gráfico */
.grafico { width: 100%; height: auto; display: block; }
.grafico text { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.grafico .ent { fill: var(--primary); }
.grafico .sai { fill: var(--accent); }
.grafico .grade-linha { stroke: var(--line); }
.legenda { display: flex; gap: 16px; font-size: .85rem; color: var(--ink-2); margin-bottom: 6px; flex-wrap: wrap; }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.grafico a, .grafico a:hover { text-decoration: none; }
.filtros .campo input, .filtros .campo select { flex: none; width: 100%; min-width: 0; }

/* Cobrança online (Mercado Pago) */
.pix-online { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.pix-online > div { flex: 1 1 220px; min-width: 0; }
.pix-qr { width: 200px; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* NFS-e pela API */
label.check { display: flex; gap: 8px; align-items: flex-start; font-size: .93rem; }
label.check input { margin-top: 3px; flex: none; }
.quebra { overflow-wrap: anywhere; }

/* Páginas públicas para o cliente (portal) */
.pub { max-width: 720px; margin: 0 auto; padding: 20px 16px 48px; }
.pub-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pub-rodape { text-align: center; margin-top: 24px; }
/* Relatório do serviço (etapa 3): fotos e avaliação */
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.fotos figure { margin: 0; }
.fotos img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.fotos figcaption { font-size: .8rem; color: var(--ink-2); padding-top: 3px; overflow-wrap: anywhere; }
.estrelas { display: flex; gap: 6px; flex-wrap: wrap; }
.estrelas button { font-size: 1.4rem; line-height: 1; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; min-width: 52px; }
.estrelas button:hover, .estrelas button:focus { background: var(--accent-soft, var(--surface-2)); }
.whats-acoes { display: flex; flex-direction: column; gap: 8px; }
.selo-interno { font-size: .72rem; color: var(--ink-3); }
@media print { .pub .btn { display: none !important; } .fotos img { height: 120px; } }
.filtros label.check input { min-width: 0; width: auto; flex: none; }
/* Equipamentos (etapa 4): QR na ficha */
.qr-box svg { width: 160px; height: 160px; display: block; margin: 0 auto 10px; background: #fff; padding: 6px; border-radius: 8px; }
.lista-checks { display: flex; flex-direction: column; gap: 8px; }
/* Orçamento (etapa 5): itens opcionais e kits */
.itens .c-opc { width: 64px; text-align: center; padding-top: 14px; }
.itens .opc-rot span { display: none; }
.itens tr.opcional .c-desc input { border-style: dashed; }
@media (max-width: 720px) { .itens .c-opc { text-align: left; padding-top: 6px; } .itens .opc-rot span { display: inline; } }
.opc-tag { font-size: .72rem; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; white-space: nowrap; }
tr.fora td { color: var(--ink-3); text-decoration: line-through; }
tr.fora td .opc-tag { text-decoration: none; }
.opc-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.opc-item input { margin-top: 4px; flex: none; width: 20px; height: 20px; }
.opc-item .opc-txt { flex: 1; }
.opc-item .num { white-space: nowrap; font-weight: 600; }
.inserir-kit { display: inline-flex; gap: 6px; margin-top: 8px; vertical-align: top; flex-wrap: wrap; }
.inserir-kit select { width: auto; min-width: 160px; }
.kit-itens select { min-width: 0; }
/* Pedido online (etapa 6): campo-isca contra robôs */
.isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Identidade visual (white label): prévia nas configurações */
.previa-marca { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.pv-barra { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #1e2321; color: #fff; box-shadow: inset 3px 0 0 var(--pv-p); }
.pv-barra strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-logo { flex: none; display: inline-flex; background: #fff; border-radius: 8px; padding: 3px 5px; }
.pv-logo img { display: block; max-height: 26px; max-width: 110px; }
.pv-corpo { padding: 12px; }
.pv-titulo { font-weight: 700; color: var(--pv-p); margin-bottom: 8px; }
.pv-linha, .pv-total { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: .9rem; }
.pv-total { margin-top: 6px; padding: 6px 8px; border-radius: 6px; background: var(--pv-d); color: var(--pv-d-ink, #1d1500); font-weight: 700; }
.pv-botao { display: inline-block; margin-top: 10px; padding: 6px 12px; border-radius: 8px; background: var(--pv-p); color: var(--pv-p-ink, #fff); font-weight: 600; font-size: .9rem; }
.pub-cab .logo-pub { display: block; max-height: 56px; max-width: 200px; }
.logo-campo { display: flex; flex-direction: column; gap: 8px; }
.logo-atual { display: inline-flex; align-self: flex-start; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.logo-atual img { display: block; max-height: 56px; max-width: 220px; }
/* Site da plataforma (gestora): início, cadastro e termos */
.site { max-width: 1040px; margin: 0 auto; padding: 0 16px 48px; }
.site-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.site-topo nav { display: flex; gap: 8px; }
.site-marca { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--ink); }
.site-marca:hover { text-decoration: none; }
.site-hero { padding: 48px 0 32px; max-width: 820px; }
.site-hero h1 { font-size: clamp(2.3rem, 7vw, 4rem); line-height: 1.02; margin: 12px 0 16px; letter-spacing: -.035em; }
.site-hero h1 span { color: var(--primary-text); }
.site-selo { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--ink); background: var(--accent); padding: 4px 10px; border-radius: 6px; margin: 0; }
.site-sub { font-size: 1.12rem; color: var(--ink-2); max-width: 660px; }
.site-faixa { background: var(--grafite); color: #f3efe8; border-radius: 22px; padding: 32px; margin: 8px 0 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-faixa h2 { font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.1; margin: 0; color: #fff; letter-spacing: -.02em; }
.site-faixa p { margin: 6px 0 0; color: #b9bfba; }
.site-faixa .btn.primario { background: #fb7b2e; border-color: #fb7b2e; color: #141716; }
.site-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 12px 0 18px; }
.site-grade h3 { margin: 0 0 6px; color: var(--primary-text); font-size: .82rem; }
.site-grade p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.site-passos ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.site-rodape { text-align: center; margin-top: 28px; }
.site-estreito { max-width: 720px; margin: 8px auto 0; }
.site-estreito h1 { margin: 8px 0 4px; }
.termos h2 { font-size: 1.05rem; margin-top: 20px; }
@media (max-width: 520px) { .site-topo .btn { padding: 4px 10px; } .site-marca span { font-size: 1rem; } }
.inline-motivo { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.inline-motivo input { min-width: 140px; width: auto; flex: 1 1 140px; min-height: 32px; padding: 4px 8px; }
