/* ==========================================================================
   ProSolar — interface do app (mobile first)
   Paleta tirada do próprio módulo fotovoltaico: célula azul, moldura de
   alumínio, sol âmbar. Tema claro por padrão (legível sob sol forte).
   ========================================================================== */
:root {
  --paper: #EEF1F5;        /* alumínio claro — fundo */
  --surface: #FFFFFF;
  --surface-2: #F6F8FB;
  --ink: #0E1A2B;          /* texto principal */
  --ink-2: #4A5B70;        /* texto secundário */
  --ink-3: #7B8A9E;
  --line: #D9E0E9;
  --cell: #1C3F77;         /* azul de célula — ação principal */
  --cell-deep: #0F2A55;
  --cell-soft: #E3EAF5;
  --sun: #F2A413;          /* destaque de geração */
  --sun-soft: #FDF1D8;
  --leaf: #1F9D6B;         /* economia */
  --leaf-soft: #E1F4EC;
  --alert: #C8423B;
  --alert-soft: #FBE7E5;
  --shadow: 0 1px 2px rgba(14,26,43,.06), 0 6px 20px rgba(14,26,43,.06);
  --radius: 14px;
  --f-display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --f-body: 'DM Sans', system-ui, sans-serif;
  --f-data: 'JetBrains Mono', ui-monospace, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A1220; --surface: #121D2F; --surface-2: #17243A; --ink: #E6EDF6; --ink-2: #A3B2C6; --ink-3: #6F8099;
    --line: #22324B; --cell: #6F9BE6; --cell-deep: #A9C3F0; --cell-soft: #1A2B48; --sun: #F6B63C; --sun-soft: #33280F;
    --leaf: #3CC48E; --leaf-soft: #10322A; --alert: #EF6B63; --alert-soft: #3A1614;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0A1220; --surface: #121D2F; --surface-2: #17243A; --ink: #E6EDF6; --ink-2: #A3B2C6; --ink-3: #6F8099;
  --line: #22324B; --cell: #6F9BE6; --cell-deep: #A9C3F0; --cell-soft: #1A2B48; --sun: #F6B63C; --sun-soft: #33280F;
  --leaf: #3CC48E; --leaf-soft: #10322A; --alert: #EF6B63; --alert-soft: #3A1614;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.45;
  min-height: 100vh; min-height: 100dvh; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
.app { min-height: 100dvh; }
:where(.app) button { font: inherit; color: inherit; cursor: pointer; }
:where(.app) a { color: var(--cell); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--cell) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Tipografia ---------- */
.t-display { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.t-data { font-family: var(--f-data); font-feature-settings: 'tnum' 1; letter-spacing: -0.01em; }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Telas ---------- */
.tela { display: none; min-height: 100dvh; }
.tela.visivel { display: flex; flex-direction: column; }

/* ---------- Campos ---------- */
.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.campo:last-child { margin-bottom: 0; }
.app .campo > label, .app .rotulo { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0; display: flex; justify-content: space-between; gap: 8px; }
.rotulo small, .campo > label small { font-weight: 500; color: var(--ink-3); }
.app input[type=text], .app input[type=tel], .app input[type=email], .app input[type=number], .app input[type=date],
.app input[type=password], .app input[type=search], .app input[type=url], .app textarea, .app select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font: 500 16px/1.3 var(--f-body); outline: none;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.app select {
  padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat;
}
.app select option { background: var(--surface); color: var(--ink); }
.app textarea { min-height: 88px; resize: vertical; }
.app input:focus, .app textarea:focus, .app select:focus { border-color: var(--cell); box-shadow: 0 0 0 4px var(--cell-soft); background-color: var(--surface); }
.app input[readonly] { background: var(--surface-2); color: var(--ink-2); }
.dica { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grade-2 > .campo { margin-bottom: 0; }
.grade-2 + .campo, .grade-2 + .grade-2 { margin-top: 14px; }
.com-unidade { position: relative; }
.com-unidade input { padding-right: 58px; }
/* sem as setinhas do campo numérico: elas cobriam a unidade (ex.: "% a.m.") */
.com-unidade input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.com-unidade input[type=number]::-webkit-inner-spin-button, .com-unidade input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.com-unidade .unidade { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 500 13px var(--f-data); color: var(--ink-3); pointer-events: none; }

/* seletor segmentado */
.segmentos { display: flex; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.segmentos button { flex: 1; min-height: 42px; border: 0; background: transparent; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.segmentos button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- Botões ---------- */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px;
  border-radius: 14px; border: 0; font-weight: 700; font-size: 15.5px; text-decoration: none; transition: transform .1s, background .15s; }
.botao:active { transform: scale(.98); }
.botao-primario { background: var(--cell); color: #fff; }
:root[data-theme="dark"] .botao-primario { color: #07111F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .botao-primario { color: #07111F; } }
.botao-primario:hover { background: var(--cell-deep); }
.botao-sol { background: var(--sun); color: #1D1403; }
.botao-claro { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.botao-texto { background: transparent; color: var(--cell); min-height: 44px; padding: 0 10px; }
.botao-perigo { background: var(--alert-soft); color: var(--alert); }
.botao-largo { width: 100%; }
.botao[disabled] { opacity: .55; pointer-events: none; }
.botao-icone { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; display: inline-grid; place-items: center; color: var(--ink); }
.botao-icone:hover { background: var(--surface-2); }
.botao-icone svg, .botao svg { width: 22px; height: 22px; flex: none; }

/* ---------- Cartões ---------- */
.cartao { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.cartao + .cartao { margin-top: 14px; }
/* cartão seguido de um bloco que começa com cartão (ex.: financiamento depois de "Pagamento à vista") */
.cartao + div:not(.cartao) > .cartao:first-child, .cartao + div:not(.cartao) > div:first-child > .cartao:first-child { margin-top: 14px; }
.cartao-titulo { font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; margin-bottom: 4px; }
.cartao-sub { font-size: 13.5px; color: var(--ink-2); margin-bottom: 16px; }
.divisor { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

/* ==========================================================================
   ARRANJO — assinatura visual: cada placa do sistema desenhada como uma célula
   ========================================================================== */
.arranjo { display: flex; flex-wrap: wrap; gap: 3px; align-content: flex-start; }
.arranjo i {
  width: 12px; height: 18px; border-radius: 2px; display: block;
  background: linear-gradient(160deg, color-mix(in srgb, var(--cell) 80%, #fff) 0 18%, var(--cell) 19% 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cell-deep) 60%, transparent);
  animation: celula-acende .35s both;
}
.arranjo i.inv-1 { --cell: #2E6BC6; }
.arranjo i.inv-2 { --cell: #1C3F77; }
.arranjo i.inv-3 { --cell: #4F86D6; }
.arranjo i.inv-4 { --cell: #16325F; }
.arranjo .mais { font: 600 12px var(--f-data); color: var(--ink-2); align-self: center; margin-left: 4px; }
@keyframes celula-acende { from { opacity: 0; transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .arranjo i { animation: none; } }

/* painel do sistema (topo do editor) */
.sistema {
  background: var(--cell-deep); color: #fff; border-radius: 0 0 22px 22px; padding: 14px 18px 16px;
  position: relative; overflow: hidden;
}
:root[data-theme="dark"] .sistema { background: #0E1E38; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sistema { background: #0E1E38; } }
.sistema::after { /* reflexo de sol no vidro */
  content: ''; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,164,19,.45), rgba(242,164,19,0) 65%); pointer-events: none;
}
.sistema .arranjo { position: relative; z-index: 1; min-height: 18px; max-height: 60px; overflow: hidden; }
.sistema .arranjo i { --cell: #5B8FE0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.sistema .arranjo i.inv-2 { --cell: #F2A413; }
.sistema .arranjo i.inv-3 { --cell: #7FB0F2; }
.sistema .arranjo i.inv-4 { --cell: #F7C766; }
.sistema .arranjo .mais { color: rgba(255,255,255,.75); }
.sistema .vazio { font-size: 13px; color: rgba(255,255,255,.7); position: relative; z-index: 1; }
.leituras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; margin-top: 12px; position: relative; z-index: 1; }
.leituras::-webkit-scrollbar { display: none; }
.leitura { min-width: 0; }
.leitura b { display: block; font: 600 16px/1.15 var(--f-data); letter-spacing: -0.03em; white-space: nowrap; }
.leitura span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.leitura.eco b { color: #7DE3B5; }

/* ---------- Barra superior ---------- */
.topo {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 6px;
  padding: calc(8px + var(--safe-t)) 10px 8px; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.topo.escuro { background: var(--cell-deep); color: #fff; }
.topo.escuro .botao-icone { color: #fff; }
.topo.escuro .botao-icone:hover { background: rgba(255,255,255,.1); }
:root[data-theme="dark"] .topo.escuro { background: #0E1E38; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topo.escuro { background: #0E1E38; } }
.topo-titulo { flex: 1; min-width: 0; }
.topo-titulo strong { display: block; font: 700 17px/1.15 var(--f-display); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo-titulo span { font-size: 12px; opacity: .7; }
.selo-salvo { font-size: 12px; opacity: .75; white-space: nowrap; padding-right: 4px; }

.conteudo { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 8px 16px calc(110px + var(--safe-b)); }

/* ---------- Navegação inferior ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-around; align-items: flex-end;
  padding: 6px 8px calc(6px + var(--safe-b)); background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
}
.nav a { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0;
  font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-decoration: none; border-radius: 12px; }
.nav a svg { width: 24px; height: 24px; }
.nav a[aria-current="page"] { color: var(--cell); }
.nav .nav-nova { flex: none; width: 58px; height: 58px; margin-top: -26px; border-radius: 18px; background: var(--sun); color: #1D1403;
  display: grid; place-items: center; box-shadow: 0 8px 20px rgba(242,164,19,.35); text-decoration: none; }
.nav .nav-nova svg { width: 28px; height: 28px; }

/* ---------- Lista de propostas ---------- */
.cabecalho-lista { padding: 12px 2px 18px; }
.cabecalho-lista h1 { font-family: var(--f-display); font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.cabecalho-lista p { color: var(--ink-2); margin-top: 6px; font-size: 14px; }
.totais { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow); }
.totais div { background: var(--surface); padding: 12px 12px 11px; }
.totais b { display: block; font: 600 18px/1.1 var(--f-data); letter-spacing: -0.03em; white-space: nowrap; }
.totais span { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.busca { position: relative; margin-bottom: 14px; }
.busca svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-3); }
.app .busca input { padding-left: 44px; background: var(--surface); }
.grupo-mes { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; margin: 18px 4px 8px; }
.item-proposta { display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 10px; cursor: pointer; text-align: left; width: 100%; border: 0; }
.item-proposta:hover { box-shadow: 0 0 0 2px var(--cell-soft), var(--shadow); }
.item-proposta .mini { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--cell-soft); display: grid; place-items: center; }
.item-proposta .mini .arranjo { width: 30px; gap: 2px; justify-content: center; }
.item-proposta .mini .arranjo i { width: 6px; height: 9px; border-radius: 1px; animation: none; }
.item-proposta .info { flex: 1; min-width: 0; }
.item-proposta .nome { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-proposta .meta { font: 500 12.5px var(--f-data); color: var(--ink-2); margin-top: 2px; }
.item-proposta .valor { text-align: right; flex: none; }
.item-proposta .valor b { display: block; font: 600 15px var(--f-data); letter-spacing: -0.02em; }
.item-proposta .valor span { font-size: 12px; color: var(--ink-3); }
.vazio-lista { text-align: center; padding: 36px 18px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.vazio-lista .arranjo { width: 132px; margin: 0 auto 16px; justify-content: center; }
.vazio-lista h2 { font: 700 20px var(--f-display); margin-bottom: 6px; }
.vazio-lista p { color: var(--ink-2); margin-bottom: 18px; font-size: 14px; }

/* ---------- Editor: etapas ---------- */
.etapas { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; max-width: 720px; margin: 0 auto; width: 100%; }
.etapas::-webkit-scrollbar { display: none; }
.etapas button { flex: none; scroll-snap-align: start; display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px 0 6px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.etapas button .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font: 600 12px var(--f-data); color: var(--ink-3); }
.etapas button[aria-current="step"] { border-color: var(--cell); color: var(--ink); }
.etapas button[aria-current="step"] .n { background: var(--cell); color: #fff; }
.etapas button.feita .n { background: var(--leaf-soft); color: var(--leaf); }
.etapa { display: none; animation: etapa-entra .22s ease-out; }
.etapa.visivel { display: block; }
@keyframes etapa-entra { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .etapa { animation: none; } }
.etapa-cabeca { padding: 14px 2px 14px; }
.etapa-cabeca h2 { font: 800 26px/1.05 var(--f-display); letter-spacing: -0.03em; }
.etapa-cabeca p { color: var(--ink-2); margin-top: 6px; font-size: 14px; }

.rodape-editor {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px;
  padding: 10px 16px calc(10px + var(--safe-b)); background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
}
.rodape-editor .botao { flex: 1; }
.rodape-editor .botao-claro { flex: 0 0 auto; }
@media (min-width: 760px) { .rodape-editor { padding-left: calc(50vw - 344px); padding-right: calc(50vw - 344px); } }

/* resultado destacado dentro de uma etapa */
.resultado { background: var(--cell-soft); border-radius: var(--radius); padding: 16px; margin-top: 14px; }
.resultado .linhas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.resultado .linhas div b { display: block; font: 600 20px/1.1 var(--f-data); letter-spacing: -0.03em; color: var(--ink); }
.resultado .linhas div span { font-size: 12px; color: var(--ink-2); }
.resultado.eco { background: var(--leaf-soft); }
.resultado.eco .destaque b { color: var(--leaf); }
.resultado .nota { font-size: 12.5px; color: var(--ink-2); margin-top: 12px; line-height: 1.45; }
.cronograma { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; }
.cronograma div { text-align: center; padding: 6px 0; border-radius: 8px; background: var(--surface); font-size: 11px; color: var(--ink-3); }
.cronograma div b { display: block; font: 600 12.5px var(--f-data); color: var(--ink-2); }
.cronograma div.atual { background: var(--sun); color: #1D1403; }
.cronograma div.atual b { color: #1D1403; }

/* opções de inversor */
.opcoes-inv { display: grid; gap: 10px; }
.opcao-inv { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; width: 100%; }
.opcao-inv:hover { border-color: color-mix(in srgb, var(--cell) 45%, var(--line)); }
.opcao-inv[aria-checked="true"] { border-color: var(--cell); box-shadow: 0 0 0 4px var(--cell-soft); }
.opcao-inv .caixas { flex: none; display: flex; gap: 3px; }
.opcao-inv .caixas i { width: 16px; height: 22px; border-radius: 4px; background: var(--ink-3); position: relative; }
.opcao-inv .caixas i::after { content: ''; position: absolute; left: 4px; right: 4px; top: 5px; height: 4px; border-radius: 1px; background: var(--sun); }
.opcao-inv[aria-checked="true"] .caixas i { background: var(--cell); }
.opcao-inv .txt { flex: 1; min-width: 0; }
.opcao-inv .txt b { display: block; font: 600 16px var(--f-data); letter-spacing: -0.02em; }
.opcao-inv .txt span { font-size: 13px; color: var(--ink-2); }
.opcao-inv .ov { flex: none; text-align: right; }
.opcao-inv .ov b { display: block; font: 600 15px var(--f-data); }
.opcao-inv .ov span { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.etiqueta { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--sun-soft); color: color-mix(in srgb, var(--sun) 70%, var(--ink)); margin-left: 6px; vertical-align: 2px; font-family: var(--f-body); }
.aviso { display: block; padding: 12px 14px; border-radius: 12px; background: var(--sun-soft); color: var(--ink); font-size: 13.5px; line-height: 1.45; margin-top: 12px; }
.aviso.erro { background: var(--alert-soft); color: var(--alert); }
.aviso.ok { background: var(--leaf-soft); }

/* materiais */
.lista-mat { display: grid; gap: 8px; }
.linha-mat { display: grid; grid-template-columns: 1fr 76px 40px; gap: 8px; align-items: start; }
.app .linha-mat textarea { min-height: 48px; height: 48px; padding: 12px; font-size: 14.5px; resize: none; overflow: hidden; }
.app .linha-mat input { text-align: center; padding: 12px 6px; font-family: var(--f-data); }
.linha-mat .botao-icone { height: 48px; color: var(--ink-3); }
.cab-mat { display: grid; grid-template-columns: 1fr 76px 40px; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.total-inv { display: flex; justify-content: space-between; align-items: baseline; padding: 16px; border-radius: var(--radius); background: var(--cell-deep); color: #fff; margin-top: 14px; }
.total-inv span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.total-inv b { font: 600 24px var(--f-data); letter-spacing: -0.03em; }

/* planos de parcelamento (markup gerado pelo motor original) */
.app .add-plano-row { display: flex; gap: 8px; }
.app .add-plano-row select { flex: 1; }
.app .btn-add-plano { flex: none; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--cell-soft); color: var(--cell); font-weight: 700; }
.app .plano-manual-row { display: grid; grid-template-columns: 56px 1fr 44px; gap: 8px; align-items: center; margin-top: 8px; }
.app .pmr-label { font: 600 15px var(--f-data); color: var(--ink); text-align: center; }
.app .btn-remove-item { height: 44px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--ink-3); font-size: 20px; }
.app .manual-planos-empty { font-size: 13px; color: var(--ink-3); padding: 10px 0 0; }
.app .gen-manual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.app .gm-cell { display: flex; flex-direction: column; gap: 4px; }
.app .gm-lbl { font-size: 12px; font-weight: 600; color: var(--ink-3); }

/* interruptor */
.interruptor { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; cursor: pointer; }
.interruptor span { font-weight: 600; font-size: 14.5px; }
.interruptor small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.interruptor input { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 30px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; cursor: pointer; margin: 0; }
.interruptor input::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.interruptor input:checked { background: var(--cell); }
.interruptor input:checked::after { transform: translateX(20px); }

details.mais-opcoes { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 4px; }
details.mais-opcoes summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 46px; font-weight: 600; color: var(--cell); font-size: 14.5px; }
details.mais-opcoes summary::-webkit-details-marker { display: none; }
details.mais-opcoes summary::after { content: '+'; font: 500 22px var(--f-data); }
details.mais-opcoes[open] summary::after { content: '–'; }

/* ---------- Pré-visualização ---------- */
#previewPanel { background: #C9D2DE; }
#previewPanel.fora-da-tela { position: fixed; left: -12000px; top: 0; width: 820px; visibility: hidden; pointer-events: none; }
body[data-rota="preview"] #previewPanel {
  position: fixed; left: 0; right: 0; top: calc(60px + var(--safe-t)); bottom: calc(74px + var(--safe-b)); z-index: 20;
  overflow-y: auto; overflow-x: hidden; padding: 16px 12px 24px; display: block; visibility: visible;
}
:root[data-theme="dark"] #previewPanel { background: #1B2638; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #previewPanel { background: #1B2638; } }
#previewPanel .preview-label { display: none; }
@media (min-width: 1100px) {
  body[data-rota="editor"] .tela-editor { width: 560px; }
  body[data-rota="editor"] .tela-editor .conteudo, body[data-rota="editor"] .etapas { margin-left: 0; max-width: 560px; }
  body[data-rota="editor"] .rodape-editor { right: auto; width: 560px; padding-left: 16px; padding-right: 16px; }
  body[data-rota="editor"] #previewPanel {
    position: fixed; left: 560px; right: 0; top: 0; bottom: 0; width: auto; visibility: visible; pointer-events: auto;
    overflow-y: auto; overflow-x: hidden; padding: 20px 16px 40px; z-index: 10; border-left: 1px solid var(--line);
  }
  body[data-rota="editor"] .botao-ver-proposta { display: none; }
}

.barra-preview { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line); display: flex; gap: 10px; }
.barra-preview .botao { flex: 1; }
@media (min-width: 760px) { .barra-preview { padding-left: calc(50vw - 344px); padding-right: calc(50vw - 344px); } }

/* ---------- Autenticação ---------- */
.tela-acesso { background: var(--cell-deep); color: #fff; }
:root[data-theme="dark"] .tela-acesso { background: #07101E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tela-acesso { background: #07101E; } }
.acesso-heroi { position: relative; padding: calc(40px + var(--safe-t)) 24px 30px; overflow: hidden; }
.acesso-heroi .campo-solar { position: absolute; inset: auto -30px -10px -30px; height: 150px; display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; transform: perspective(420px) rotateX(52deg); transform-origin: bottom; opacity: .9; }
.acesso-heroi .campo-solar i { border-radius: 2px; background: linear-gradient(160deg, #3A6FC2 0 18%, #1F4B93 19%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); animation: varredura 5.5s ease-in-out infinite; }
@keyframes varredura { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.55) saturate(1.2); } }
@media (prefers-reduced-motion: reduce) { .acesso-heroi .campo-solar i { animation: none; } }
.acesso-heroi .sol { position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, #F7C766 0 22%, rgba(242,164,19,.55) 23%, rgba(242,164,19,0) 68%); }
.marca { position: relative; display: flex; align-items: center; gap: 12px; font: 800 20px var(--f-display); letter-spacing: -0.02em; }
.marca img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.14); }
.marca b { color: var(--sun); font-weight: inherit; }
.acesso-heroi h1 { position: relative; font: 800 40px/0.98 var(--f-display); letter-spacing: -0.035em; margin: 26px 0 10px; max-width: 12ch; }
.acesso-heroi p { position: relative; color: rgba(255,255,255,.75); font-size: 15px; max-width: 34ch; margin-bottom: 150px; }
.acesso-corpo { flex: 1; background: var(--paper); color: var(--ink); border-radius: 26px 26px 0 0; margin-top: -24px; position: relative; padding: 26px 20px calc(30px + var(--safe-b)); }
.acesso-corpo .dentro { max-width: 420px; margin: 0 auto; }
.acesso-corpo h2 { font: 800 26px var(--f-display); letter-spacing: -0.02em; margin-bottom: 4px; }
.acesso-corpo .sub { color: var(--ink-2); margin-bottom: 20px; font-size: 14.5px; }
.acesso-rodape { text-align: center; margin-top: 18px; font-size: 14.5px; color: var(--ink-2); }
.estado-acesso { text-align: center; padding-top: 12px; }
.estado-acesso .icone-estado { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--sun-soft); color: color-mix(in srgb, var(--sun) 75%, var(--ink)); }
.estado-acesso .icone-estado svg { width: 36px; height: 36px; }
.estado-acesso p { color: var(--ink-2); margin-bottom: 18px; }
.mostrar-senha { position: relative; }
.mostrar-senha input { padding-right: 56px; }
.mostrar-senha button { position: absolute; right: 4px; top: 4px; height: 40px; border: 0; background: transparent; color: var(--cell); font-weight: 700; font-size: 13px; padding: 0 12px; border-radius: 10px; }

/* ---------- Empresa / Conta ---------- */
.logo-caixa { display: flex; align-items: center; gap: 14px; }
.logo-caixa .previa { width: 84px; height: 84px; border-radius: 16px; border: 1.5px dashed var(--line); display: grid; place-items: center; background: var(--surface-2); overflow: hidden; flex: none; }
.logo-caixa .previa img { max-width: 100%; max-height: 100%; object-fit: contain; }
.paletas { display: flex; gap: 10px; flex-wrap: wrap; }
.paletas button { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line); }
.paletas button.active { box-shadow: 0 0 0 3px var(--ink); }
.linha-conta { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; }
.linha-conta:last-child { border-bottom: 0; }
.app label.linha-conta { font-size: 15px; font-weight: 400; color: var(--ink); margin: 0; }
.linha-conta .txt b { font-size: 15.5px; }
.linha-conta svg { width: 22px; height: 22px; color: var(--ink-2); flex: none; }
.linha-conta .txt { flex: 1; }
.linha-conta .txt b { display: block; font-weight: 600; }
.linha-conta .txt span { font-size: 13px; color: var(--ink-3); }
.contador { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: var(--sun); color: #1D1403; font: 700 12px/24px var(--f-data); text-align: center; }
.avatar { width: 56px; height: 56px; border-radius: 18px; background: var(--cell); color: #fff; display: grid; place-items: center; font: 800 22px var(--f-display); flex: none; }
.medidor { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.medidor i { display: block; height: 100%; background: var(--cell); border-radius: 99px; }

/* ---------- Aviso flutuante e folha inferior ---------- */
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%) translateY(20px); z-index: 90;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); display: flex; gap: 12px; align-items: center; }
.toast.visivel { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast button { background: none; border: 0; color: var(--sun); font-weight: 800; padding: 4px; }
.folha-fundo { position: fixed; inset: 0; z-index: 80; background: rgba(8,15,28,.5); display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.folha-fundo.aberta { opacity: 1; pointer-events: auto; }
.folha { width: 100%; max-width: 520px; background: var(--surface); border-radius: 24px 24px 0 0; padding: 10px 20px calc(20px + var(--safe-b)); transform: translateY(40px); transition: transform .22s; max-height: 88dvh; overflow-y: auto; }
.folha-fundo.aberta .folha { transform: none; }
.folha::before { content: ''; display: block; width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 14px; }
.folha h3 { font: 800 21px var(--f-display); letter-spacing: -0.02em; margin-bottom: 6px; }
.folha p { color: var(--ink-2); margin-bottom: 16px; font-size: 14.5px; }
.folha .acoes { display: grid; gap: 10px; }
.senha-gerada { font: 600 24px var(--f-data); letter-spacing: .04em; text-align: center; padding: 16px; border-radius: 14px; background: var(--surface-2); margin-bottom: 14px; user-select: all; }
@media (min-width: 640px) { .folha-fundo { align-items: center; } .folha { border-radius: 24px; } }

/* ---------- Painel admin ---------- */
.abas { display: flex; gap: 6px; overflow-x: auto; margin: 4px 0 14px; scrollbar-width: none; }
.abas button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.abas button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.usuario-cartao { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 10px; }
.usuario-cartao .cab { display: flex; gap: 12px; align-items: flex-start; }
.usuario-cartao .avatar { width: 44px; height: 44px; font-size: 17px; border-radius: 14px; }
.usuario-cartao .quem { flex: 1; min-width: 0; }
.usuario-cartao .quem b { display: block; font-size: 16px; }
.usuario-cartao .quem > span { display: block; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.usuario-cartao .quem .pilula { vertical-align: 2px; margin-left: 4px; }
.usuario-cartao .quando { font: 500 12px var(--f-data); color: var(--ink-3); margin-top: 6px; }
.usuario-cartao .acoes { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.usuario-cartao .acoes .botao { min-height: 42px; font-size: 14px; padding: 0 14px; flex: 1; }
.pilula { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.pilula.pendente { background: var(--sun-soft); color: color-mix(in srgb, var(--sun) 70%, var(--ink)); }
.pilula.ativo { background: var(--leaf-soft); color: var(--leaf); }
.pilula.bloqueado, .pilula.recusado { background: var(--alert-soft); color: var(--alert); }
/* painel: números das publicações, perfil do integrador e estatísticas */
.numeros-pub { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.numeros-pub div { background: var(--surface-2); border-radius: 10px; padding: 8px 6px; text-align: center; }
.numeros-pub b { display: block; font: 700 17px var(--f-data); color: var(--ink); }
.numeros-pub span { font-size: 11.5px; color: var(--ink-3); }
.perfil-linhas { margin-top: 10px; font-size: 13px; color: var(--ink-2); display: grid; gap: 2px; }
.perfil-linhas b { color: var(--ink); font-weight: 600; }
.est-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.est-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.est-card span { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.est-card b { display: block; font: 700 24px var(--f-data); color: var(--ink); margin-top: 2px; }
.est-card small { font-size: 12px; color: var(--ink-2); }
.est-bloco { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.est-bloco h3 { font-size: 15px; margin: 0 0 10px; }
.est-tabela { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.est-tabela th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 700; padding: 0 6px 6px 0; }
.est-tabela td { padding: 7px 6px 7px 0; border-top: 1px solid var(--line); }
.est-tabela td.n, .est-tabela th.n { text-align: right; font-family: var(--f-data); white-space: nowrap; }
.est-barra { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.est-barra i { display: block; height: 100%; background: var(--cell); border-radius: 4px; }
@media (min-width: 700px) { .est-cards { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Impressão: só as páginas da proposta ---------- */
@media print {
  body > *:not(#previewPanel):not(#print-only-resumo) { display: none !important; }
  #previewPanel { position: static !important; left: auto !important; width: auto !important; height: auto !important; overflow: visible !important;
    visibility: visible !important; display: block !important; background: #fff !important; padding: 0 !important; border: 0 !important; }
}
.app input[type=range] { width: 100%; accent-color: var(--cell); height: 32px; }

/* ---------- Acesso em telas largas: arte à esquerda, formulário à direita ---------- */
@media (min-width: 900px) {
  .tela-acesso.visivel { flex-direction: row; height: 100dvh; overflow: hidden; }
  .acesso-heroi { flex: 1.15; display: flex; flex-direction: column; padding: 48px 56px; }
  .acesso-heroi h1 { font-size: clamp(44px, 4.6vw, 68px); max-width: 11ch; margin: auto 0 16px; }
  .acesso-heroi p { font-size: 17px; max-width: 38ch; margin-bottom: 0; }
  .acesso-heroi .campo-solar { position: relative; inset: auto; margin: 48px -56px -48px; height: 38vh; min-height: 200px; }
  .acesso-heroi .sol { width: 320px; height: 320px; right: -70px; top: -70px; }
  .acesso-corpo { flex: 1; margin: 0; border-radius: 0; display: flex; align-items: center; justify-content: center; overflow-y: auto; padding: 40px; }
  .acesso-corpo .dentro { width: 100%; max-width: 400px; }
  .acesso-corpo h2 { font-size: 32px; }
}

/* ---------- Novidades ---------- */
.atalhos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.atalhos .botao { min-height: 48px; font-size: 14.5px; padding: 0 12px; }
.novidade { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px; position: relative; }
.novidade::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cell); z-index: 1; }
.novidade.et-importante::before { background: var(--alert); }
.novidade.et-oferta::before { background: var(--sun); }
.novidade-img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; background: var(--surface-2); }
.novidade-corpo { padding: 16px 18px 18px 20px; }
.novidade-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: 12px; }
.chip-et { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; padding: 3px 8px; border-radius: 6px; background: var(--cell-soft); color: var(--cell); }
.et-importante .chip-et { background: var(--alert-soft); color: var(--alert); }
.et-oferta .chip-et { background: var(--sun-soft); color: color-mix(in srgb, var(--sun) 65%, var(--ink)); }
.novidade.et-patrocinado::before { background: var(--sun); }
.et-patrocinado .chip-et { background: var(--ink); color: var(--paper); }
/* perfil da empresa (cadastro e Conta) */
.perfil-titulo { margin: 22px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.segmentos button[role=radio] { padding: 0 6px; font-size: 13.5px; }
.novidade-meta .fixado { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-2); font-weight: 600; }
.novidade-meta .fixado svg { width: 14px; height: 14px; }
.novidade-meta .nova { font-weight: 800; color: #fff; background: var(--leaf); padding: 2px 7px; border-radius: 99px; font-size: 11px; }
.novidade-meta .quando { margin-left: auto; color: var(--ink-3); font-family: var(--f-data); }
.novidade h2 { font: 800 21px/1.15 var(--f-display); letter-spacing: -0.02em; margin-bottom: 6px; }
.novidade p { color: var(--ink-2); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.novidade p strong { color: var(--ink); }
.novidade .botao { margin-top: 14px; width: 100%; }
@media (min-width: 640px) { .novidade .botao { width: auto; } }

/* painel admin: publicações */
.admin-secoes { margin: 2px 0 14px; }
.pub-admin { display: flex; gap: 12px; align-items: flex-start; }
.pub-admin .miniatura { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--surface-2); flex: none; }
.pub-admin .miniatura.vazia { display: grid; place-items: center; color: var(--ink-3); }
.pub-admin .miniatura.vazia svg { width: 26px; height: 26px; }
.previa-img { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
.caixa-check { display: flex; gap: 10px; align-items: center; font-size: 14.5px; font-weight: 600; min-height: 44px; cursor: pointer; }
.caixa-check input { width: 22px; height: 22px; accent-color: var(--cell); }
.caixa-termos { align-items: flex-start; font-weight: 500; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); margin-top: 16px; }
.caixa-termos input { flex: none; margin-top: 1px; }
.caixa-termos a { color: var(--cell); font-weight: 600; }
.item-proposta .numero { font: 600 11.5px var(--f-data); color: var(--cell); letter-spacing: .02em; margin-bottom: 1px; }
.app label.interruptor { font-size: 15px; font-weight: 400; color: var(--ink); margin: 0; }
.app label.interruptor small { font-size: 12.5px; }

/* ---------- Kits Edeltec ---------- */
.cartao-kit { border: 2px solid color-mix(in srgb, var(--sun) 45%, transparent); }
.kit-cabeca { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.selo-edeltec { flex: none; font: 700 11px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: 4px 8px; border-radius: 8px; }
.kit { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; margin-top: 10px; background: var(--surface); }
.kit.escolhido { border-color: var(--leaf); box-shadow: 0 0 0 4px var(--leaf-soft); }
.kit-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tag-disp { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.tag-disp.estoque { background: var(--leaf-soft); color: var(--leaf); }
.tag-disp.previsto { background: var(--sun-soft); color: color-mix(in srgb, var(--sun) 65%, var(--ink)); }
.tag-disp.encomenda { background: var(--cell-soft); color: var(--cell); }
.tag-disp.neutro { background: var(--surface-2); color: var(--ink-2); }
.kit-linha { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.kit-kwp { font: 600 20px var(--f-data); letter-spacing: -0.03em; }
.kit-desc { font-size: 13.5px; color: var(--ink); margin-top: 2px; }
.kit-extra { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.kit-preco { text-align: right; flex: none; }
.kit-preco b { display: block; font: 600 16px var(--f-data); letter-spacing: -0.02em; }
.kit-preco span { font-size: 11px; color: var(--ink-3); }
.kit .botao { width: 100%; margin-top: 12px; min-height: 44px; font-size: 14.5px; }
.tag-disp.combo { background: var(--ink); color: var(--paper); }
.kit-conta { font: 500 12.5px var(--f-data); color: var(--cell); margin-top: 2px; }
.kits-grupo { margin: 18px 2px 4px; }
.kits-grupo b { display: block; font: 700 15px var(--f-display); }
.kits-grupo span { font-size: 12.5px; color: var(--ink-2); }
.ov-alto { color: var(--alert); font-weight: 600; }

/* ---------- Kit gerador: escolha do modo ---------- */
.escolha-modo { display: grid; gap: 12px; margin-bottom: 14px; }
@media (min-width: 640px) { .escolha-modo { grid-template-columns: 1fr 1fr; } }
.opcao-modo { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 18px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; }
.opcao-modo:hover { border-color: color-mix(in srgb, var(--cell) 45%, var(--line)); }
.opcao-modo[aria-checked="true"] { border-color: var(--cell); box-shadow: 0 0 0 4px var(--cell-soft); }
.opcao-modo .om-titulo { font: 700 18px var(--f-display); letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.opcao-modo .om-texto { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.opcao-modo[aria-checked="true"] .om-titulo::before { content: '✓'; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--cell); color: #fff; font-size: 13px; }

/* ---------- Parte CA: lista com preço ---------- */

/* ---------- Valores ---------- */
.linha-valor { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.linha-valor b { font: 600 16px var(--f-data); letter-spacing: -0.02em; white-space: nowrap; }
.linha-valor small { color: var(--ink-3); }
.linha-valor.forte b { font-size: 18px; color: var(--cell); }
.grade-margem { display: grid; grid-template-columns: 86px 1fr; gap: 8px; }
.tabela-ro { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela-ro th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 6px 4px; border-bottom: 1px solid var(--line); }
.tabela-ro td { padding: 9px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabela-ro th:last-child, .tabela-ro td:last-child { text-align: right; width: 56px; font-family: var(--f-data); }
.linha-valor b#va-ca { font: 500 13.5px var(--f-body); color: var(--ink-2); letter-spacing: 0; }

.segmentos-formato { width: 270px; }
.segmentos-formato button { font-size: 13px; padding: 0 4px; }
@media (max-width: 420px) { #tela-preview .topo-titulo { display: none; } .segmentos-formato { width: auto; flex: 1; } }
.cel-wrap { overflow: hidden; flex: none; border-radius: 6px; }

/* ---------- Tipos de sistema (on-grid, híbrido, off-grid) ---------- */
/* elementos com data-tipos só aparecem no tipo escolhido */
body[data-tipo="ongrid"] .app [data-tipos]:not([data-tipos~="ongrid"]),
body[data-tipo="hibrido"] .app [data-tipos]:not([data-tipos~="hibrido"]),
body[data-tipo="offgrid"] .app [data-tipos]:not([data-tipos~="offgrid"]) { display: none !important; }
.escolha-tipo { grid-template-columns: 1fr; }
@media (min-width: 900px) { .escolha-tipo { grid-template-columns: repeat(3, 1fr); } }
.opcao-modo .om-icone { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--cell-soft); color: var(--cell); margin-bottom: 4px; }
.opcao-modo .om-icone svg { width: 26px; height: 26px; }
.opcao-modo[aria-checked="true"] .om-icone { background: var(--cell); color: #fff; }

/* listas de cargas (off-grid e backup do híbrido) */
.lista-cargas { display: grid; gap: 10px; margin: 12px 0; }
.linha-carga { display: grid; grid-template-columns: 1fr 40px; gap: 8px; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); }
.linha-carga .nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; grid-column: 1 / -1; }
.lista-cargas[data-lista="hib"] .linha-carga .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.linha-carga .nums label { display: grid; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.app .linha-carga input[type=text] { font-weight: 600; }
.app .linha-carga .nums input { text-align: center; font-family: var(--f-data); padding: 10px 4px; }
.linha-carga .rodape-carga { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.linha-carga .motor { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; }
.linha-carga .motor input { width: 20px; height: 20px; accent-color: var(--cell); }
.linha-carga .botao-icone { height: 44px; color: var(--ink-3); }
.atalhos-carga { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.atalhos-carga button { border: 1.5px dashed var(--line); background: transparent; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.atalhos-carga button:hover { border-color: var(--cell); color: var(--cell); }
.meses-off { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 90px; margin: 12px 0 4px; }
.meses-off div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 2px; font-size: 10px; color: var(--ink-3); }
.meses-off i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--cell); min-height: 2px; }
.meses-off .falta i { background: var(--alert); }
.meses-off .critico span { color: var(--ink); font-weight: 700; }
/* cartões de bateria do kit Edeltec */
.bat-opcoes { display: grid; gap: 10px; margin-top: 12px; }
.bat-opcao { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; text-align: left; padding: 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.bat-opcao[aria-checked="true"] { border-color: var(--cell); box-shadow: 0 0 0 4px var(--cell-soft); }
.bat-opcao b { font-size: 15px; }
.bat-opcao .preco { font: 700 16px var(--f-data); text-align: right; }
.bat-opcao .sub { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); }
.contador-qtd { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.contador-qtd button { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-size: 22px; font-weight: 700; cursor: pointer; }
.app .contador-qtd input { width: 80px; text-align: center; font: 700 18px var(--f-data); }
.leituras .leitura[hidden] { display: none; }
.tipo-lista { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--cell); background: var(--cell-soft); padding: 1px 6px; border-radius: 5px; margin-right: 6px; vertical-align: 1px; }
