/* =========================================================
   COMPONENTES — peças reutilizáveis. Cada classe aqui é usada
   pelas funções de js/components/ui.js.
   ========================================================= */

/* Cabeçalho de página */
.page-head { display: grid; gap: var(--s1); }
.page-head h1 { font-size: var(--t-h1); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.eyebrow { font-size: var(--t-sm); color: var(--ink-2); }

/* Navegador de semana */
.week-nav { display: flex; align-items: center; gap: var(--s2); }
.week-nav .label { flex: 1; text-align: center; font-weight: 600; }
.week-nav h1 { font-size: var(--t-md); }
.page-head h1.mes { font-size: clamp(26px, 7vw, 32px); line-height: 1.1; }
.week-nav .semana { font-size: var(--t-md); font-weight: 700; }

/* Cartão */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: var(--s5);
  display: grid; gap: var(--s4);
}
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.card-head h2 { font-size: var(--t-md); font-weight: 700; }
.card-head .total { font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.hint { font-size: var(--t-xs); color: var(--ink-2); }

/* Número grande */
.big { font-size: var(--t-xl); font-weight: 650; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

/* Campos */
/* Campos: em .fields duas colunas, entradas alinhadas pela base (sem subgrid: estável no Safari). */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s3); row-gap: 0; align-items: start; }
.field { display: grid; grid-template-rows: auto auto auto; row-gap: var(--s1); font-size: var(--t-sm); color: var(--ink-2); margin-bottom: var(--s3); }
.fields .field { align-content: start; }
.field .lbl { align-self: end; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field .note:empty { display: none; }
.field input, .field select {
  display: block; width: 100%; min-width: 0; height: 48px;
  -webkit-appearance: none; appearance: none; text-align: left;
  padding: 0 var(--s3);
  font-size: 16px; color: var(--ink);
  background: var(--surface-2);
  border: 1px solid transparent; border-radius: var(--r-md);
  font-variant-numeric: tabular-nums;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input::-webkit-date-and-time-value { text-align: left; }
.field input::-webkit-inner-spin-button, .field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type=number] { -moz-appearance: textfield; }
.field input:focus, .field select:focus { border-color: var(--lilac); outline: none; }

/* =========================================================
   BOTÕES — um padrão só para o app inteiro
   .btn            secundário (fundo neutro)
   .btn.primary    ação principal (verde)
   .btn.light      sobre fundo escuro
   .btn.danger     remover / sair
   .btn.icon       redondo, só ícone
   .btn.block / .add-btn   largura total
   .link / .link.danger    ação pequena em texto
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; min-width: 48px; padding: 0 var(--s5, 24px);
  border: 0; border-radius: var(--r-full);
  background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: var(--t-sm); font-weight: 700; line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--line); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: #33785a; }
.btn.light { background: #fff; color: var(--green-ink); }
.btn.danger { background: var(--coral-soft); color: var(--terra-ink); }
.btn.icon { padding: 0; width: 44px; min-width: 44px; min-height: 44px; }
.btn.block, .add-btn { display: flex; width: 100%; margin: var(--s3) 0 var(--s2); }
.inline-btns { display: flex; gap: var(--s2); flex-wrap: wrap; }
.inline-btns > .btn { flex: 1; }
.link, .danger-link { background: none; border: 0; padding: 4px 0; min-height: 32px; color: var(--lilac); font: inherit; font-size: var(--t-xs); font-weight: 600; cursor: pointer; text-decoration: underline; }
.link.danger, .danger-link { color: var(--coral); }

/* Barra de níveis (piso / meta / turbo) */
.levels { display: grid; gap: var(--s2); }
.track { position: relative; height: 14px; background: var(--surface-2); border-radius: var(--r-full); overflow: hidden; }
.fill { position: absolute; inset: 0 auto 0 0; background: var(--green); border-radius: var(--r-full); }
.fill.low { background: var(--amber); }
.level-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.level {
  background: var(--surface-2); border-radius: var(--r-md);
  padding: var(--s2) var(--s3);
  font-size: var(--t-xs); color: var(--ink-2);
  display: grid;
}
.level b { font-size: var(--t-sm); color: var(--ink); font-variant-numeric: tabular-nums; }
.level.ok { background: var(--green-soft); color: var(--green-ink); }
.level.ok b { color: var(--green-ink); }
.status { font-weight: 600; }
.status.ok { color: var(--green); }
.status.warn { color: var(--amber); }

/* Aviso */
.banner {
  background: var(--coral-soft); color: var(--terra-ink);
  border-radius: var(--r-md); padding: var(--s3) var(--s4);
  font-size: var(--t-sm);
}
.banner b { font-weight: 700; }

/* Lista de missões */
.missions { list-style: none; margin: 0; padding: 0; display: grid; }
.mission {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: var(--s3);
  padding: var(--s3) 0;
  border-top: 1px solid var(--line);
}
.mission:first-child { border-top: 0; padding-top: 0; }
/* Caixa de marcar (pago, opções): círculo com contorno visível; marcada = verde cheio com ✓ branco
   centralizado (desenhado como imagem, não depende de display/alinhamento do pai) */
.check {
  width: 28px; height: 28px; margin: 0; flex: none;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  border: 2px solid var(--ink-3); border-radius: 50%;
  background: var(--surface) center / 62% no-repeat;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.check:hover { border-color: var(--green); }
.check:active { transform: scale(.92); }
.check:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }
.check:checked {
  background-color: var(--green); border-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.check::after { content: none; }
.mission .name { font-weight: 600; line-height: 1.3; }
.mission.done .name { color: var(--ink-3); text-decoration: line-through; }
.mission .meta { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); margin-top: 2px; }
.mission .value { font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Etiquetas */
.chip { font-size: var(--t-xs); padding: 1px var(--s2); border-radius: var(--r-full); background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.chip.ok { background: var(--green-soft); color: var(--green-ink); }
.chip.part { background: var(--amber-soft); color: var(--amber-ink); }
.chip.miss { background: var(--coral-soft); color: var(--terra-ink); }
.chip.plan { background: var(--lilac-soft); color: var(--lilac-ink); }

/* Cartão de destaque (ataque à dívida) */
.card.attack { background: var(--green); color: #fff; }
.card.attack .hint { color: var(--green-soft); }

/* Linhas de dívida */
.debts { list-style: none; margin: 0; padding: 0; display: grid; }
.debt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.debt:first-child { border-top: 0; padding-top: 0; }
.debt-main { display: grid; gap: 6px; grid-column: -2 / -1; }
.debt-top { display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline; }
.debt-top .name { font-weight: 600; }
.debt-top .value { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.debt .meta { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); }
.rank {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lilac-soft); color: var(--lilac-ink);
  font-size: var(--t-xs); font-weight: 700;
}
.debt:first-child .rank { background: var(--green); color: #fff; }
.track.thin { height: 6px; }

/* Escolha única */
.seg { border: 0; margin: 0 0 var(--s3); padding: 0; min-width: 0; }
.seg-opts { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: var(--s2); }
.seg legend { font-size: var(--t-sm); color: var(--ink-2); margin-bottom: var(--s1); padding: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span {
  display: grid; place-items: center; min-height: 44px; padding: var(--s1) var(--s2); text-align: center; line-height: 1.2;
  border-radius: var(--r-md); background: var(--surface-2);
  font-weight: 600; font-size: var(--t-sm); cursor: pointer;
}
.seg input:checked + span { background: var(--lilac-soft); color: var(--lilac-ink); box-shadow: inset 0 0 0 2px var(--lilac); }
.seg input:focus-visible + span { outline: 3px solid var(--lilac); outline-offset: 2px; }

/* Prévia, botão principal e link */
.preview { font-size: var(--t-sm); color: var(--ink-2); }
.big-sm { font-size: var(--t-lg); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.field a, .hint a { color: var(--lilac); font-weight: 600; }
.field input[readonly] { background: var(--green-soft); color: var(--green-ink); }
.banner.calm { background: var(--lilac-soft); color: var(--lilac-ink); display: flex; align-items: center; gap: var(--s3); }

/* Opção de pedido */
.option { display: grid; gap: var(--s2); padding: var(--s4) 0; border-top: 1px solid var(--line); }
.option:first-child { border-top: 0; padding-top: 0; }
.option .name { font-weight: 700; }
.fields .field:has(input[type=text]) { grid-column: 1 / -1; }

/* Divisão eu / ela */
.split { display: flex; height: 14px; border-radius: var(--r-full); overflow: hidden; background: var(--surface-2); }
.split-eu { background: var(--green); }
.split-ela { background: var(--lilac); }
[hidden] { display: none !important; }

/* Formulário em linha (ex.: pagamento extra) */
.inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); align-items: end; }
.inline .field { margin: 0; }
.card.attack .field { color: var(--green-soft); }
.card.attack .field input { background: rgba(255,255,255,.16); color: #fff; }

/* Edição de itens (Ajustes) */
.rows { display: grid; }
.row-edit { border-top: 1px solid var(--line); }
.row-edit:first-child { border-top: 0; }
.row-edit summary {
  min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  cursor: pointer; list-style: none;
}
.row-edit summary::-webkit-details-marker { display: none; }
.row-edit summary .name { font-weight: 600; flex: 1; min-width: 0; line-height: 1.3; }
.row-edit summary .value { font-size: var(--t-sm); }
.row-edit summary .value { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; max-width: 55%; }
.row-edit summary::after { content: "›"; color: var(--ink-3); font-size: 20px; transition: transform .2s; }
.row-edit[open] summary::after { transform: rotate(90deg); }
.row-edit[open] { padding-bottom: var(--s3); }
.check-field { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-sm); color: var(--ink-2); grid-column: 1 / -1; margin-bottom: var(--s3); min-height: 44px; cursor: pointer; }
.fields + .inline-btns, .fields + .btn, .fields + .preview { margin-top: var(--s3); }

/* Formulário empilhado: um campo por linha, sem subgrid (estável no Safari) */
.fields.stack { display: flex; flex-direction: column; align-items: stretch; gap: var(--s3); }
.fields.stack .field { display: grid; grid-template-rows: auto auto; gap: var(--s1); margin-bottom: 0; }
.field[hidden], .check-field[hidden] { display: none !important; }

/* Home — jornada */
.home-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s3); }
.brand { display: flex; align-items: center; gap: var(--s3); }
.brand-logo { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 2px 8px rgba(31, 163, 146, .25); }
.home-head h1 { font-size: clamp(26px, 7vw, 34px); letter-spacing: -.01em; }
.scene-card { padding: 0; overflow: hidden; gap: 0; }
.scene { display: block; width: 100%; height: auto; aspect-ratio: 400 / 240; }
.scene-foot { padding: var(--s4) var(--s5) var(--s5); display: grid; gap: var(--s2); }
.scene-msg { font-weight: 600; }
.card.next { background: var(--lilac-soft); box-shadow: none; }
.card.next .name { color: var(--lilac-ink); }
.trilha { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.fase { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s3); padding: var(--s2) 0; position: relative; }
.fase:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 40px; bottom: -8px; width: 2px; background: var(--line); }
.fase.ok:not(:last-child)::before { background: var(--green); }
.fase-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: var(--t-xs); font-weight: 700; background: var(--surface-2); color: var(--ink-3); position: relative; z-index: 1; }
.fase.ok .fase-n { background: var(--green); color: #fff; }
.fase.atual .fase-n { background: var(--lilac); color: #fff; box-shadow: 0 0 0 4px var(--lilac-soft); }
.fase .name { font-weight: 600; }
.fase.trancada .name { color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .dog { animation: bob .9s ease-in-out infinite alternate; transform-box: fill-box; }
  @keyframes bob { from { transform: translateY(0); } to { transform: translateY(-2px); } }
}

/* Botão de alerta (atrasados) */
.eyebrow-row { display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.alert-btn {
  position: relative; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--coral); color: #fff; font-weight: 800; font-size: 18px; line-height: 1;
  display: grid; place-items: center;
}
.alert-btn[aria-expanded="true"] { box-shadow: 0 0 0 4px var(--coral-soft); }
.alert-btn .badge {
  position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--surface); color: var(--coral); font-size: 11px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

/* A receber */
.debt.receber { grid-template-columns: minmax(0, 1fr); }
.debt.receber .debt-main { grid-column: 1 / -1; }
.debt.receber .fill { background: var(--lilac); }
.row-actions { display: flex; gap: var(--s4); }
.mini { list-style: none; margin: 0; padding: 0; font-size: var(--t-xs); color: var(--ink-2); display: grid; gap: 2px; }
.rec-form { margin-top: var(--s2); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
@media (max-width: 420px) { .rec-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .rec-form .btn { grid-column: 1 / -1; } }

/* Folha de confirmação (pagamento) */
.sheet-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(42, 38, 32, .35); display: grid; align-items: end; justify-items: center; }
.sheet {
  width: 100%; max-width: var(--app-w);
  background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: var(--s3) var(--s5) calc(var(--s5) + env(safe-area-inset-bottom));
  display: grid; gap: var(--s3); box-shadow: 0 -8px 30px rgba(0,0,0,.12);
}
.sheet h2 { font-size: var(--t-lg); }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); justify-self: center; }
.sheet-total { display: flex; justify-content: space-between; align-items: baseline; padding: var(--s3) var(--s4); background: var(--green-soft); border-radius: var(--r-md); color: var(--green-ink); }
.sheet-total b { font-size: var(--t-lg); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) { .sheet { animation: up .22s ease-out; } @keyframes up { from { transform: translateY(30px); opacity: .6; } } }

/* Campo com símbolo ($, h, mi) */
.input-wrap { position: relative; display: block; }
.input-wrap .affix { position: absolute; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 16px; font-weight: 600; pointer-events: none; }
.input-wrap .affix.pre { left: 14px; }
.input-wrap .affix.suf { right: 14px; }
.input-wrap.has-prefix input { padding-left: calc(20px + var(--pre, 1) * 0.68em); } /* "$" ou "USD" */
.input-wrap.has-suffix input { padding-right: 40px; }
.field input::placeholder { color: var(--ink-3); }

/* Grupos de formulário */
.form-group { display: grid; gap: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--line); }
.card-head + .form-group { border-top: 0; padding-top: 0; }
.group-title { font-size: var(--t-xs); font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.form-group .fields .field { margin-bottom: var(--s2); }
.preview-box { background: var(--green-soft); color: var(--green-ink); border-radius: var(--r-md); padding: var(--s3) var(--s4); font-size: var(--t-sm); }
.preview-box .big-sm { color: var(--green-ink); }

/* Lista de atrasados */
.banner.late { display: grid; gap: var(--s2); }
.late-head { display: flex; justify-content: space-between; font-size: var(--t-md); }
.banner.late ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.banner.late li { display: flex; justify-content: space-between; gap: var(--s3); padding-left: 14px; position: relative; }
.banner.late li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.banner.late li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.banner.late p { font-size: var(--t-xs); opacity: .85; }

/* Campo de data: texto centralizado verticalmente, em português */
.date-wrap {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  height: 48px; padding: 0 var(--s3) 0 14px;
  background: var(--surface-2); border: 1px solid transparent; border-radius: var(--r-md);
  color: var(--ink); cursor: pointer;
}
.date-wrap:focus-within { border-color: var(--lilac); }
.date-display { font-size: 16px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.date-icon { color: var(--ink-3); flex: none; }
.field .date-wrap input[type=date] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; border: 0; padding: 0; margin: 0;
}

/* Todos os campos: conteúdo centralizado na altura */
.field input { line-height: normal; padding-top: 0; padding-bottom: 0; }

/* Gráfico de barras (Lyft) */
.chart-lead { font-size: var(--t-sm); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.bars li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); }
.bar-label { font-size: var(--t-xs); color: var(--ink-2); white-space: nowrap; }
.bar-track { display: flex; height: 22px; width: var(--w); min-width: 6px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.bar-track .seg { height: 100%; }
.seg.ok, .legend i.ok { background: var(--green); }
.seg.gas, .legend i.gas { background: var(--amber); }
.seg.ped, .legend i.ped { background: var(--ink-3); }
.bar-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.1; }
.bar-val small { display: block; font-size: var(--t-xs); font-weight: 500; color: var(--ink-2); }
.legend { display: flex; gap: var(--s4); font-size: var(--t-xs); color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Registros compactos */
.regs { list-style: none; margin: 0; padding: 0; display: grid; }
.reg { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.reg:first-child { border-top: 0; }
.reg-dia { font-weight: 600; white-space: nowrap; }
.reg-info { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reg-val { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reg-val.ok { color: var(--green); }
.reg-val.gas { color: var(--amber); }

/* Compartilhado */
.shares { list-style: none; margin: 0; padding: 0; display: grid; }
.share { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.share:first-child { border-top: 0; padding-top: 0; }
.share .name { font-weight: 600; }
.share .meta { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); margin-top: 4px; }
.toggle { min-height: 40px; padding: 0 var(--s4); border-radius: var(--r-full); border: 0; cursor: pointer; font-weight: 600; font-size: var(--t-sm); background: var(--green-soft); color: var(--green-ink); white-space: nowrap; }
.toggle.on { background: var(--amber-soft); color: var(--amber-ink); box-shadow: inset 0 0 0 2px var(--amber); }

/* Categorias recolhíveis (Ajustes) */
.card.sec { padding: 0; gap: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: 64px; padding: 0 var(--s5); cursor: pointer; list-style: none; }
.sec-head::-webkit-details-marker { display: none; }
.sec-head h2 { font-size: var(--t-md); font-weight: 700; flex: 1; }
.sec-head .total { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.sec-head::after { content: "›"; color: var(--ink-3); font-size: 22px; transition: transform .2s; }
.card.sec[open] > .sec-head::after { transform: rotate(90deg); }
.sec-body { display: grid; gap: var(--s4); padding: 0 var(--s5) var(--s5); }

/* Extra Money */
.back { display: inline-flex; align-items: center; min-height: 36px; color: var(--lilac); font-weight: 600; font-size: var(--t-sm); text-decoration: none; }
.fontes { display: grid; gap: var(--s2); }
.fonte { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); min-height: 64px; border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); text-decoration: none; }
.fonte b, .fonte small, .fonte-val small { display: block; }
.fonte small { font-size: var(--t-xs); color: var(--ink-2); font-weight: 500; }
.fonte-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.modelos { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.modelos legend { font-size: var(--t-sm); color: var(--ink-2); margin-bottom: var(--s1); padding: 0; }
.modelo { position: relative; display: block; cursor: pointer; }
.modelo input { position: absolute; opacity: 0; }
.modelo span { display: block; padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--surface-2); }
.modelo b, .modelo small { display: block; }
.modelo small { font-size: var(--t-xs); color: var(--ink-2); }
.modelo input:checked + span { background: var(--lilac-soft); box-shadow: inset 0 0 0 2px var(--lilac); }
.modelo input:focus-visible + span { outline: 3px solid var(--lilac); outline-offset: 2px; }

/* Gastos */
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.cat-list li { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.reg-info small { color: var(--ink-2); }

/* Contas bancárias */
.big.neg { color: var(--coral); }
.acc-row { display: flex; align-items: center; gap: var(--s2); min-height: 44px; border-top: 1px solid var(--line, rgba(0,0,0,.06)); }
.acc-lbl { color: var(--ink-2); font-size: var(--t-sm); width: 64px; }
.acc-num { flex: 1; font-variant-numeric: tabular-nums; letter-spacing: .02em; font-weight: 600; }
.acc .btn.icon.copiado { color: var(--green); }
.saldo-form { display: flex; align-items: flex-end; gap: var(--s2); }
.saldo-form .field { flex: 1; }

/* Detalhe recolhível */
.more summary {
  min-height: 44px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-weight: 600; color: var(--lilac);
  border-radius: var(--r-md);
}
.more-body { display: grid; gap: var(--s4); margin-top: var(--s3); }
.check:disabled { opacity: .35; cursor: default; }

/* Placeholder */
.soon { text-align: center; padding: var(--s7) var(--s5); color: var(--ink-2); }
.soon h1 { color: var(--ink); font-size: var(--t-lg); margin-bottom: var(--s2); }

.foot { font-size: var(--t-xs); color: var(--ink-3); text-align: center; }

@media (max-width: 380px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.preview:empty { margin: 0; }

/* Barra de salvar (Ajustes) */
.save-bar { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2) var(--s3); margin-top: var(--s3); }
.save-bar .danger-link { margin-left: auto; }
.save-msg { font-size: var(--t-sm); font-weight: 600; }
.save-msg.ok { color: var(--green); }
.save-msg.warn { color: var(--amber); }
/* Aviso rápido no topo */
.toast { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 12px); transform: translateX(-50%); z-index: 50;
  background: var(--green); color: #fff; font-weight: 700; font-size: var(--t-sm); padding: var(--s2) var(--s4); border-radius: var(--r-full);
  box-shadow: 0 6px 20px rgba(0,0,0,.15); white-space: nowrap; animation: toast 2.2s ease forwards; pointer-events: none; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 8px); } 12%, 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -16px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }
.mini-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s2); font-weight: 600; }

/* Ajustes em passos */
.sec-head h2 { display: flex; align-items: center; gap: var(--s2); }
.passo { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lilac-soft); color: var(--lilac-ink); font-size: var(--t-xs); font-weight: 800; flex: none; }
.sub { padding-top: var(--s3); margin-top: var(--s3); border-top: 1px solid var(--line, rgba(0,0,0,.06)); }
.sec-body > .sub:first-child, .sec-body > form:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.sub-head { display: flex; justify-content: space-between; align-items: baseline; }
.sub-head h3 { margin: 0; font-size: var(--t-md, 1.05rem); }
.cat-grupo { margin: var(--s3) 0; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; color: var(--ink-2); }
.cat-head h4 { margin: 0; font-size: var(--t-sm); text-transform: uppercase; letter-spacing: .04em; }
.nova-cat { display: flex; align-items: flex-end; gap: var(--s2); }
.nova-cat .field { flex: 1; }
.fields.metas { margin-top: var(--s3); }

/* Listas de Ajustes: mais respiro e leitura fácil */
.row-edit summary { min-height: 60px; padding: var(--s2) 0; gap: var(--s3); }
.row-edit summary .name { display: flex; flex-direction: column; gap: 2px; font-size: var(--t-md, 1rem); }
.row-edit summary .name small { font-weight: 500; font-size: var(--t-xs); color: var(--ink-2); }
.row-edit summary .value { max-width: none; white-space: nowrap; font-size: var(--t-md, 1rem); color: var(--ink); }
.cat-grupo { margin: var(--s4) 0 var(--s2); }
.cat-grupo + .cat-grupo { margin-top: var(--s5, 28px); }
.cat-head { padding-bottom: var(--s2); border-bottom: 2px solid var(--line, rgba(0,0,0,.08)); margin-bottom: var(--s1); }
.cat-head span { font-weight: 700; color: var(--ink); }
.sub { padding-top: var(--s4); margin-top: var(--s4); }
details.cats > summary { list-style: none; cursor: pointer; }
details.cats > summary::-webkit-details-marker { display: none; }
details.cats > summary::after { content: "›"; color: var(--ink-3); font-size: 20px; margin-left: var(--s2); transition: transform .2s; }
details.cats[open] > summary::after { transform: rotate(90deg); }
details.cats .sub-head .total { margin-left: auto; }
.chips-list { list-style: none; padding: 0; margin: var(--s3) 0 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips-list li { padding: 6px var(--s3); border-radius: var(--r-full); background: var(--surface-2); font-size: var(--t-sm); font-weight: 600; }
.nova-cat { display: flex; align-items: flex-end; gap: var(--s2); margin-top: var(--s3); }
.nova-cat .field { flex: 1; margin: 0; }

/* Login */
.login { display: grid; justify-items: center; gap: var(--s2); padding-top: var(--s6); }
.login h1 { margin: var(--s2) 0 0; }
.login .card { width: 100%; margin-top: var(--s3); }
.login-logo { border-radius: 20px; }
.conta-user { display: grid; justify-items: center; gap: var(--s2); margin: var(--s5) 0; }
.field textarea { width: 100%; min-height: 96px; padding: var(--s3); font: inherit; font-size: 14px; color: var(--ink); background: var(--surface-2); border: 1px solid transparent; border-radius: var(--r-md); resize: vertical; }
.field textarea:focus { border-color: var(--lilac); outline: none; }
.login-trocar { margin: var(--s4) 0 0; color: var(--ink-2); font-size: var(--t-sm); }
.login > .btn.block { max-width: 100%; }
.login > .link { margin-top: var(--s2); }

/* Conexões (Ajustes) */
.cx-lista { list-style: none; margin: 0 0 var(--s3, 12px); padding: 0; display: grid; gap: 8px; }
.cx { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line, #e6e6e6); }
.cx:last-child { border-bottom: 0; }
.cx .name { font-weight: 600; }
.cx-acoes { display: flex; align-items: center; gap: 12px; }
.cx-acoes .btn { padding: 6px 14px; }

/* Dividir — cartão por pessoa */
.pessoa > .shares { margin-bottom: var(--s3); }
.pessoa > .add-btn { margin-top: var(--s2); }
.pessoa details.sub > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; min-height: 44px; }
.pessoa details.sub > summary::-webkit-details-marker { display: none; }
.pessoa details.sub > summary::after { content: "›"; color: var(--ink-3); font-size: 20px; transition: transform .2s; }
.pessoa details.sub[open] > summary::after { transform: rotate(90deg); }
.pessoa details.sub > .regs, .pessoa details.sub > .shares { margin-bottom: var(--s3); }
.pessoa .inline-btns { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pessoa .inline-btns .add-btn { flex: 1; }
.dv-form { display: grid; gap: var(--s3); margin-top: var(--s3); }
.dv-link { display: flex; align-items: flex-end; gap: var(--s2); margin-top: var(--s3); }
.dv-link .field { flex: 1; }
.pessoa .danger-link, .pessoa > details .link.danger:last-child { display: inline-block; margin-top: var(--s3); }
.dv-contas, .dv-pessoas { list-style: none; margin: 0; padding: 0; display: grid; }
.dv-conta, .dv-pessoa { display: grid; gap: var(--s2); padding: var(--s4) 0; border-top: 1px solid var(--line); }
.dv-conta:first-child, .dv-pessoa:first-child { border-top: 0; padding-top: 0; }
.dv-semana { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.dv-conta .row-actions { justify-content: flex-end; }
.dv-pessoa .value.neg { color: var(--red, var(--terra-ink)); }
.dv-pessoa details.sub > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; min-height: 44px; }
.dv-pessoa details.sub > summary::-webkit-details-marker { display: none; }
.dv-pessoa details.sub > summary::after { content: "›"; color: var(--ink-3); font-size: 20px; transition: transform .2s; }
.dv-pessoa details.sub[open] > summary::after { transform: rotate(90deg); }
.dv-pessoa details.sub > * + * { margin-top: var(--s3); }
#dv-primeira { flex-wrap: wrap; margin-bottom: var(--s4); }
.dv-conta .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.dv-conta .meta .chip { margin: 0; }
.disp { margin-bottom: var(--s4); }
.disp .level:last-child { background: var(--green-soft); }
.disp .level:last-child b { color: var(--green); }

/* Hoje — disponível por conta */
.cx-lista-hoje { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: var(--s2); }
.cx-linha { display: grid; gap: 4px; padding: var(--s2) 0; border-top: 1px solid var(--line); }
.cx-linha:first-child { border-top: 0; }
.cx-top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.cx-top .neg { color: var(--red, var(--terra-ink)); }
.ajuste-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s2); }
.ajuste-form .field { flex: 1 1 100%; }
.fechada { display: flex; justify-content: center; align-items: center; gap: var(--s3); margin: var(--s4) 0; }

/* Organizar contas */
.ordem-acoes { display: flex; gap: var(--s4); justify-content: flex-end; margin: var(--s1) 0 var(--s2); }
.ordem-row { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.ordem-info { flex: 1; display: grid; min-width: 0; }
.ordem-info .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ordem-row .btn.icon:disabled { opacity: .3; }

/* Resumo da semana fechada */
.resumo-lista { list-style: none; margin: 0; padding: 0; }
.resumo-lista li { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.resumo-lista li:first-child { border-top: 0; padding-top: 0; }
.resumo-lista .rs-nome { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.resumo-lista .rs-nome span:first-child { overflow-wrap: anywhere; line-height: 1.3; }
.resumo-lista b { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Entradas (Hoje e Ajustes) */
.ent-lista { list-style: none; margin: var(--s3) 0; padding: 0; }
.ent { display: grid; gap: 6px; padding: var(--s3) 0; border-top: 1px solid var(--line); }
.ent:first-child { border-top: 0; }
.ent.pend { background: var(--amber-soft, var(--amber-soft)); margin: 0 calc(-1 * var(--s3)); padding: var(--s3); border-radius: 14px; border-top: 0; }
.ent-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); }
.ent-top .rs-nome { display: grid; gap: 2px; min-width: 0; }
.ent-top b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ent .row-actions { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.ent-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s2); }
.ent-form .field { flex: 1 1 100%; }
.ent-cad { display: grid; gap: var(--s3); margin-top: var(--s3); }
.ent-dir { display: grid; justify-items: end; gap: 4px; text-align: right; }
.ent-dir b { white-space: nowrap; }
.hint.neg { color: var(--red, var(--terra-ink)); }
.ent .row-actions .chip { margin-right: auto; }
.movs { margin-top: var(--s2); }
.movs > summary { font-weight: 600; cursor: pointer; min-height: 40px; display: flex; align-items: center; }
.movs .resumo-lista li { flex-wrap: wrap; }
.movs b.pos { color: var(--green); }

/* Meu menu — módulos */
.mods { list-style: none; margin: var(--s3) 0; padding: 0; display: grid; }
.mod { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.mod:first-child { border-top: 0; }
.mod.off { opacity: .5; }
.mod .link.on { color: var(--green); text-decoration: none; font-weight: 700; }
.mod-sw { display: flex; align-items: center; gap: var(--s3); cursor: pointer; min-width: 0; }
.mod-sw input { position: absolute; opacity: 0; pointer-events: none; }
.mod-sw .sw { flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; transition: background .2s; }
.mod-sw .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.mod-sw input:checked + .sw { background: var(--green); }
.mod-sw input:checked + .sw::after { transform: translateX(18px); }
.mod-sw input:focus-visible + .sw { outline: 2px solid var(--green); outline-offset: 2px; }
.mod-txt { display: grid; min-width: 0; }
.mod-txt small { color: var(--ink-3); }
.sub-h { margin: var(--s4) 0 var(--s2); font-size: 14px; color: var(--ink-2); }

/* Importar extrato */
.imp-lista { list-style: none; margin: var(--s3) 0; padding: 0; }
.imp-lista li { display: grid; gap: 4px; padding: var(--s3) 0; border-top: 1px solid var(--line); }
.imp-lista li:first-child { border-top: 0; }
.imp-lista li.off { opacity: .5; }
.imp-lista b.pos { color: var(--green); }
.imp-lista .field { margin: 0; }
.imp-lista .field .lbl:empty, .imp-lista .field .note:empty { display: none; }
label.check { display: flex; gap: var(--s2); align-items: flex-start; margin: var(--s3) 0; } /* só rótulo; a caixa de marcar é input.check */

/* Começar — modelos prontos */
.modelos { display: grid; gap: var(--s2); }
.modelo { display: grid; gap: 2px; text-align: left; padding: var(--s3) var(--s4); border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface, #fff); font: inherit; color: var(--ink); cursor: pointer; }
.modelo small { color: var(--ink-3); }
.modelo.on { border-color: var(--green); background: var(--green-soft); }
.link.pular { display: block; margin: var(--s3) auto var(--s6, 32px); }

/* Ajustes em grupos (como os ajustes do celular) */
.grupo { display: grid; gap: var(--s2); }
.grupo-t { margin: var(--s2) var(--s2) 0; font-size: var(--t-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.grupo-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.grupo-card > .card.sec { background: transparent; box-shadow: none; border-radius: 0; margin: 0; border-top: 1px solid var(--line); }
.grupo-card > .card.sec:first-child { border-top: 0; }
.grupo-card > .card.sec > .sec-head { min-height: 56px; }
.grupo-card > .card.sec[open] { background: var(--bg-soft, rgba(0,0,0,.015)); }
.grupo-card .sec-head h2 { font-size: var(--t-md); }
.grupo-card .passo { width: 24px; height: 24px; }

/* Editando um item: some o "+ Adicionar" (e o de categorias) até salvar ou cancelar */
.sec-body:has(details.row-edit[open]) .add-btn,
.sec-body:has(details.row-edit[open]) #add-cat { display: none; }
.ent-lista + .ent-lista { margin-top: calc(-1 * var(--s3)); border-top: 1px solid var(--line); }

/* Plano de pagamento: número da ordem */
.plano .name .num { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-right: 8px; border-radius: 11px; background: var(--bg-2, var(--surface-2)); color: var(--ink-2); font-size: 12px; font-weight: 700; vertical-align: 2px; font-variant-numeric: tabular-nums; }
.plano .mission.done .name .num { background: var(--green-soft); color: var(--green); }

/* Menu "⋯" com ações secundárias */
.mais { position: relative; margin-left: auto; }
.mais > summary { list-style: none; cursor: pointer; width: 36px; height: 32px; display: grid; place-items: center; border-radius: 10px; font-size: 22px; line-height: 1; color: var(--ink-2); }
.mais > summary::-webkit-details-marker { display: none; }
.mais[open] > summary, .mais > summary:hover { background: var(--bg-2, var(--surface-2)); }
.mais-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 210px; display: grid; padding: 6px; border-radius: 14px; background: var(--surface); box-shadow: 0 10px 30px rgba(0,0,0,.16); }
.mais-pop button { all: unset; cursor: pointer; padding: 10px 12px; border-radius: 10px; font-weight: 600; color: var(--ink); }
.mais-pop button:hover, .mais-pop button:focus-visible { background: var(--bg-2, var(--surface-2)); }
.mais-pop button.danger { color: var(--red, var(--terra-ink)); }
.ent .row-actions { justify-content: flex-start; }

/* Pagamentos futuros (Ajustes) */
.sub-sec { margin-top: var(--s5, 24px); padding-top: var(--s3); border-top: 1px solid var(--line); }
.fut-partes { display: grid; gap: var(--s2); }
.fut-parte { display: grid; grid-template-columns: 1fr 120px auto; gap: var(--s2); align-items: center; }
.fut-parte .field { margin: 0; }
.fut-parte .lbl:empty { display: none; }
.piso { display: grid; gap: var(--s2); margin-top: var(--s3); }

/* Abas (Minhas contas) */
.abas { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 var(--s3); padding-bottom: 2px; scrollbar-width: none; }
.abas::-webkit-scrollbar { display: none; }
.aba { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-full); border: 0; background: var(--surface-2); color: var(--ink-2); font: inherit; font-weight: 600; cursor: pointer; }
.aba span { font-size: 12px; color: var(--ink-3); }
.aba.on { background: var(--green); color: #fff; }
.aba.on span { color: rgba(255,255,255,.8); }
.aba-corpo .sub-sec { margin-top: 0; padding-top: 0; border-top: 0; }
.cats .chips-list { margin-top: 0; }
.regra { display: grid; gap: var(--s3); }
.regra + .regra { margin-top: var(--s2); padding-top: var(--s3); border-top: 1px dashed var(--line); }
.abas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; overflow: visible; padding: 4px; border-radius: var(--r-full); background: var(--surface-2); }
.aba { justify-content: center; gap: 4px; padding: 8px 4px; font-size: 13px; background: transparent; min-width: 0; }
.aba.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.aba.on span { color: var(--ink-3); }
@media (max-width: 360px) { .aba span { display: none; } }
.aba { white-space: nowrap; }
.aba span { display: none; }

/* Caixas de marcar nos formulários: pequenas e alinhadas com o texto */
.check-field { align-items: flex-start; margin: 0; min-height: 0; padding: 6px 0; line-height: 1.35; }
.check-field .check { flex: none; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px; }

.add-data { display: flex; align-items: flex-end; gap: var(--s2); }
.add-data .field { flex: 1; }
.atraso-st { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: 0 0 var(--s3); border-bottom: 1px solid var(--line); }
.atraso-linha .row-edit { border-bottom: 0; }
.pagas { margin-top: var(--s4); }
.pagas > summary { list-style: none; cursor: pointer; }
.pagas > summary::-webkit-details-marker { display: none; }
.obj-l { margin: var(--s2) 0 0; line-height: 1.4; }

/* Minhas contas por categoria: cabeçalho editável e + Adicionar em cada uma */
.cat-head { align-items: center; gap: var(--s2); }
.cat-head h4 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-head .cat-tot { font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cat-head .rc-menu { margin-right: -8px; }
.cat-grupo .txt-acao { margin-top: 2px; }
.cat-edit { display: grid; gap: var(--s2); padding: var(--s3); border-radius: var(--r-md); background: var(--surface-2); }
.cat-edit-ord { display: flex; gap: var(--s2); }
.nova-cat .save-bar { margin-top: var(--s2); }
.aba-corpo > .sub { border-top: 0; padding-top: 0; margin-top: 0; }
.aba-corpo > .sub > .cat-grupo:first-child { margin-top: 0; }

/* Meu objetivo: o caminho em etapas */
.caminho { display: grid; gap: var(--s3); }
.cam-lista { list-style: none; margin: 0; padding: 0; display: grid; }
.cam-etapa { display: grid; grid-template-columns: 28px 1fr; gap: var(--s2); align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.cam-lista > .cam-etapa:first-child { border-top: 0; }
.cam-n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--ink-3); font-size: 12px; font-weight: 700; }
.cam-etapa.ok .cam-n { background: var(--green-soft); color: var(--green); }
.cam-etapa.atual .cam-n { background: var(--green); color: #fff; }
.cam-txt { display: grid; min-width: 0; line-height: 1.25; }
.cam-txt b { font-size: var(--t-sm); }
.cam-txt small { font-size: var(--t-xs); color: var(--ink-3); }
.cam-etapa.ok .cam-txt b { color: var(--ink-3); text-decoration: line-through; }
.cam-juntar { display: grid; gap: var(--s3); padding-top: var(--s2); border-top: 2px solid var(--line); }
.cam-juntar > .cam-etapa { border-top: 0; padding-top: 0; }
.cam-mais > summary { list-style: none; padding: 8px 0; cursor: pointer; }
.cam-mais > summary::-webkit-details-marker { display: none; }
.cam-acoes { display: flex; gap: var(--s4); }
.txt-acao.perigo { color: var(--terra); }
.cx-perfil { display: grid; gap: var(--s2); margin-top: var(--s2); }
.cx-perfil .cx-busca { display: flex; gap: var(--s2); }
.cx-perfil input { flex: 1; min-width: 0; }

/* Telas de acesso: links de e-mail, convite, configurar conta */
.login h1 { text-align: center; text-wrap: balance; }
.login > .banner { width: 100%; margin-top: var(--s3); }
.login .card.stack p { margin: 0; }
.login > .btn.block { width: 100%; margin-top: var(--s2); }
.sub-titulo { font-size: var(--t-sm); font-weight: 600; margin: 0 0 var(--s2); color: var(--ink-2); }
#form-email { border-top: 1px solid var(--line, #e6e6e6); padding-top: var(--s4); }
