/* Telas antigas no design novo (13/11): as classes de antes desenhadas com os tokens de tokens-e-componentes.css.
   Ordem nas páginas: tokens-e-componentes.css → casca.css → estilo.css → (modulos/conta/relatorios/funcoes).css */
:root { --fundo: var(--bg); --painel: var(--surface); --borda: var(--border); --texto: var(--text); --suave: var(--text-2);
  --laranja: var(--brand-ink); --verde: var(--ok); --amarelo: var(--warn); --vermelho: var(--bad); }
h1, h2, h3, .marca, .num { font-family: var(--font-display); }
.marca { font-family: var(--font-display); font-weight: 750; font-size: 22px; letter-spacing: -.03em; color: var(--text); }
.marca span { color: var(--brand-ink); }
strong, b { font-weight: 650; }

/* entrar */
.tela-entrar { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.cartao-entrar { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-2); padding: 28px 22px; }
@media (min-width: 720px) { .cartao-entrar { padding: 40px 40px 32px; } }
.cartao-entrar .logo { font-size: 24px; margin-bottom: 18px; }
.cartao-entrar .logo .mark { width: 36px; height: 36px; font-size: 18px; }
.cartao-entrar h1 { font-size: 30px; margin-bottom: 6px; }
.cartao-entrar .sub { color: var(--text-2); margin-bottom: 24px; }
.abas { display: flex; gap: 4px; background: var(--surface-2); border-radius: var(--r-md); padding: 4px; margin-bottom: 20px; }
.abas button { flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: none; color: var(--text-2); font: 600 15px var(--font-text); cursor: pointer; }
.abas button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }

/* formulários (todas as telas antigas) */
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--text); }
input, select, textarea { min-height: 48px; padding: 0 14px; border-radius: var(--r-md); border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: 400 16px var(--font-text); width: 100%; min-width: 0; transition: border-color .15s, box-shadow .15s; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--brand); }
input[type="file"] { padding: 10px; }
select { padding-right: 8px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: var(--focus); outline: none; }
input:disabled, select:disabled { background: var(--surface-2); color: var(--text-3); }
:root[data-theme="dark"] input[type="date"] { color-scheme: dark; }
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--r-md);
  background: var(--brand); color: var(--on-brand); font: 600 16px var(--font-text); cursor: pointer; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 2px 8px -2px rgba(255,106,0,.45); }
.botao:hover { background: var(--brand-hover); }
.botao[disabled] { opacity: .6; cursor: wait; }
.botao-linha { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); background: var(--surface); color: var(--text); font: 600 15px var(--font-text); cursor: pointer; text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-1); }
.botao-linha:hover { background: var(--surface-2); }
.botao-linha[disabled] { opacity: .5; cursor: not-allowed; }
.erro { color: var(--bad); min-height: 1.5em; font-weight: 600; font-size: 14px; }
.rodape { color: var(--text-3); font-size: 13px; margin-top: 24px; text-align: center; }
.link-esqueci { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-ink); font-weight: 600; font-size: 15px; }   /* relatório 41 */
.cartao-entrar .alert { margin-top: 4px; }

/* página */
.conteudo { max-width: 1120px; margin: 0 auto; padding: 20px 16px 56px; width: 100%; }
@media (min-width: 720px) { .conteudo { padding: 28px 28px 72px; } }
@media (min-width: 1024px) { .conteudo { padding: 32px 40px 64px; } }
.topo { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--top-h); padding: 8px 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.topo .logo .mark { font-size: 16px; }
.ola h1 { font-size: 28px; line-height: 1.15; }
@media (min-width: 1024px) { .ola h1, .titulo { font-size: 34px; } }
.ola p { color: var(--text-2); margin-top: 6px; }
.selo { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; background: var(--brand-soft); color: var(--brand-ink); }
.aviso-demo { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--r-md); background: var(--info-soft); color: var(--text); font-size: 14px; }
.numeros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.numero { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 16px 18px; min-width: 0; }
.numero .num { font-size: 34px; font-weight: 650; line-height: 1.05; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.numero .rot { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.bloco { margin-top: 28px; }
.bloco h2 { font-size: 21px; margin-bottom: 12px; }
.lista { display: grid; gap: 10px; }
.item { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-1); padding: 14px 16px; }
.item .t { font-weight: 600; }
.item .d { color: var(--text-2); font-size: 14px; }
.estado { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--text-2); }
.estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.estado.verde { background: var(--ok-soft); color: var(--ok); } .estado.amarelo { background: var(--warn-soft); color: var(--warn); } .estado.vermelho { background: var(--bad-soft); color: var(--bad); }
.vazio { color: var(--text-2); }
@media (min-width: 720px) {
  .numeros { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .colunas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; }
}

.acoes-topo { display: flex; gap: 8px; align-items: center; }
.cabeca-bloco { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.cabeca-bloco h2 { margin-bottom: 0; }
.direita { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.acao { font-weight: 600; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.item > div:first-child { min-width: 0; }
.item .d { overflow-wrap: anywhere; }
.estreito { max-width: 760px; }
.titulo { font-size: 28px; line-height: 1.15; margin-bottom: 6px; }
.sub-titulo { color: var(--text-2); max-width: 70ch; }
.passos ol, .resultado ol { padding-left: 20px; display: grid; gap: 8px; }
.bloco.passos, .bloco.resultado { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 20px; }
.nota { color: var(--text-2); font-size: 14px; margin-top: 12px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 14px; background: var(--surface-2); border-radius: 6px; padding: 1px 6px; }
.resultado h3 { font-size: 18px; margin: 18px 0 8px; }
.resultado .botao { margin-top: 20px; width: 100%; }
.copiar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; background: var(--surface-2); border-radius: var(--r-md); padding: 10px 12px; margin-top: 10px; }
.copiar .rot-copiar { grid-column: 1 / -1; color: var(--text-2); font-size: 13px; font-weight: 600; }
.copiar code { background: none; padding: 0; overflow-wrap: anywhere; }
.alerta-interno { margin-top: 14px; padding: 12px 16px; border-radius: var(--r-md); background: var(--bad-soft); color: var(--bad); font-weight: 600; }

/* relatório 26: "Mudar de plano" junto do erro de limite (telas de conectar) */
.link-plano { color: var(--brand-ink); font-weight: 700; margin-left: 4px; text-decoration: underline; }
.direita select { min-height: 44px; padding: 0 10px; font-size: 14px; font-weight: 600; width: auto; }
@media (max-width: 600px) { #contas .item { flex-direction: column; align-items: stretch; } #contas .direita { flex-direction: row; flex-wrap: wrap; align-items: center; } }
@media (max-width: 560px) { .item { flex-wrap: wrap; } .item .direita { align-items: flex-start; flex-direction: row; flex-wrap: wrap; } }

/* Início (design novo): saudação, resumo em frase, o que fazer hoje */
.hello { font-size: 15px; color: var(--text-2); margin-bottom: 4px; }
.resumo-dia { position: relative; overflow: hidden; margin-top: 24px; display: grid; gap: 14px; }
.resumo-dia::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--brand), #FFB27A); }
.resumo-rot { font-weight: 650; color: var(--brand-ink); }
.resumo-dia .big { font-size: 18px; line-height: 1.55; }
@media (min-width: 1024px) { .resumo-dia .big { font-size: 20px; } }
.fazer { display: grid; gap: 10px; }
@media (min-width: 900px) { .fazer { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.todo { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-1); }
.todo .t { font-weight: 650; line-height: 1.3; } .todo .d { font-size: 14px; color: var(--text-2); margin: 4px 0 12px; overflow-wrap: anywhere; }
.todo .n { width: 26px; height: 26px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 700; display: grid; place-items: center; flex: none; margin-top: 1px; }
.nota.sem-topo { margin-top: 2px; margin-bottom: 12px; }
.consolidado .rx .kpis { margin-bottom: 16px; }
