/* ===== 1. Tokens ===== */
/* Cores, sombras, raios, movimento e fontes vêm de tokens-agrocolheita.css (comum com o Conecta RH). */

/* ===== 2. Base ===== */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.45 var(--font-body);
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
a { color: var(--verde-dk); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; }
.logo-img { display: block; border-radius: 8px; }
/* Modo escuro: logo e símbolo monocromáticos claros (o marrom da marca some no fundo escuro), como o Conecta RH faz sobre fundo escuro.
   Provisório até existir a versão oficial da logo para fundo escuro. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-img, :root:not([data-theme="light"]) .mark-img { filter: brightness(0) invert(1); opacity: .92; }
}
:root[data-theme="dark"] .logo-img, :root[data-theme="dark"] .mark-img { filter: brightness(0) invert(1); opacity: .92; }

/* ===== 3. Botões e campos ===== */
.btn {
  min-height: 48px; padding: 0 20px; border-radius: var(--r); border: 1px solid transparent;
  font: 600 1rem var(--font-body); cursor: pointer;
}
.btn-pri { background: var(--verde); color: var(--on-verde); }
.btn-pri:hover { background: var(--verde-dk); }
.btn-sec { background: var(--surface); color: var(--text); border-color: var(--border-dk); }
.btn-bloco { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-icone { width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 0; color: var(--text); border-radius: var(--r); cursor: pointer; }
input[type=email], input[type=password], input[type=search], input[type=text] {
  width: 100%; min-height: 48px; padding: 0 14px; font: 400 1rem var(--font-body); color: var(--text);
  background: var(--surface); border: 1px solid var(--border-dk); border-radius: var(--r);
}
input:focus { outline: 3px solid var(--verde-mid); border-color: var(--verde); }
label { display: block; font-weight: 600; font-size: .9rem; color: var(--text-med); margin: 14px 0 6px; }

/* ===== 4. Login ===== */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px 16px; }
.login-cartao { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--sh-lg); }
.login-logo { width: 220px; max-width: 100%; margin: 0 auto 18px; }
.login-cartao h1 { text-align: center; font-size: 1.25rem; }
.login-form .btn { margin-top: 22px; }
.login-link { display: block; margin: 16px auto 0; padding: 6px 8px; background: none; border: 0; color: var(--verde-dk); font: 600 .9rem var(--font-body); text-decoration: underline; cursor: pointer; }
.login-texto { margin: 0 0 14px; color: var(--text-med); font-size: .92rem; text-align: center; }
.vazio-cartao { text-align: center; }
.vazio-cartao p { color: var(--text-med); margin: 8px 0 18px; }

/* ===== 5. Casca: menu lateral (computador) e barra inferior (celular) ===== */
.casca { min-height: 100dvh; }
.coluna { min-width: 0; }
.topo { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--sh-sm); }
/* Faixa verde→ouro na borda esquerda da barra do topo: a assinatura dos sistemas AgroColheita. */
.topo::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--verde) 0%, var(--ouro) 100%); }
.mark-img { height: 34px; width: auto; padding: 2px 4px; }
.topo-ctx { display: flex; flex-direction: column; min-width: 0; }
.topo-titulo { font: 700 1.05rem var(--font-display); line-height: 1.15; }
.topo-safra { font: 600 .66rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.topo-usuario { display: none; }
.conteudo { padding: 16px 16px 96px; outline: none; }
.lateral { display: none; }
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex;
  background: var(--surface); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom);
}
.aba {
  flex: 1; min-height: 60px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); font: 600 .72rem var(--font-body); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 6px 2px;
}
.aba .rot { white-space: nowrap; }
.aba .breve-mini { margin: 0; padding: 0 6px; font-size: .55rem; line-height: 1.4; }
.aba.ativo { color: var(--verde-dk); }
.aba.desab, .item.desab { opacity: .6; cursor: not-allowed; }

.item {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: var(--r);
  color: var(--text-med); font: 500 .95rem var(--font-body); text-decoration: none; background: none; border: 0; width: 100%; text-align: left; cursor: pointer;
}
a.item:hover, button.item:hover { background: var(--verde-lt); }
.item.ativo { background: var(--verde-lt); color: var(--verde-dk); font-weight: 700; }
.breve, .selo-breve {
  margin-left: auto; white-space: nowrap; font: 700 .68rem var(--font-body); text-transform: uppercase; letter-spacing: .04em;
  color: var(--ouro-dk); background: var(--ouro-lt); border-radius: 999px; padding: 2px 8px;
}
.secao { margin: 16px 14px 4px; font: 700 .66rem var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.lateral-itens > .secao:first-child { margin-top: 4px; }

/* Folha "Mais" (celular) e confirmação */
.modal-fundo { position: fixed; inset: 0; z-index: 20; background: rgba(8, 20, 10, .5); display: grid; place-items: center; padding: 16px; }
.modal { width: 100%; max-width: 420px; background: var(--surface); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-lg); }
.modal p { color: var(--text-med); margin: 8px 0 18px; }
.modal-acoes { display: flex; gap: 10px; justify-content: flex-end; }
.folha-fundo { place-items: end stretch; padding: 0; }
.folha { background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 8px 12px calc(16px + env(safe-area-inset-bottom)); max-height: 80dvh; overflow: auto; }
.folha-topo { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 4px 14px; font-family: var(--font-display); }

@media (min-width: 900px) {
  .casca { display: grid; grid-template-columns: 248px 1fr; }
  .lateral {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; overflow-y: auto;
    background: var(--surface); border-right: 1px solid var(--border); padding: 18px 12px;
  }
  .lateral-logo { padding: 4px 6px 14px; display: flex; flex-direction: column; gap: 8px; }
  .lateral-sistema { font: 600 .66rem var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--verde-dk); padding-left: 2px; }
  .lateral-logo img { width: 190px; max-width: 100%; }
  .lateral-itens { display: flex; flex-direction: column; gap: 2px; flex: 1; }
  .lateral-rodape { border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
  .barra, .mark-img { display: none; }
  .topo { height: 60px; padding: 0 40px; gap: 14px; }
  .topo-titulo { font-size: .95rem; color: var(--verde-dk); }
  .topo-usuario { display: flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); }
  .topo-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--verde); color: var(--on-verde); font: 700 .78rem var(--font-display); }
  .topo-nome { display: flex; flex-direction: column; line-height: 1.2; }
  .topo-nome strong { font-size: .82rem; color: var(--text-med); }
  .topo-nome span { font-size: .7rem; color: var(--muted); }
  .conteudo { padding: 32px 40px 48px; }
}

/* ===== 6. Páginas ===== */
/* Cabeçalho de página da família AgroColheita: rótulo em ouro, título grande e subtítulo (components/familia.js). */
.cab-familia { align-items: flex-end; margin-bottom: 16px; }
.cab-textos { min-width: 0; }
.ph-rotulo { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font: 600 .68rem var(--font-mono); text-transform: uppercase; letter-spacing: .18em; color: var(--ouro-dk); }
.ph-rotulo::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ouro); flex: none; }
.ph-titulo { font: 800 1.6rem/1.1 var(--font-display); letter-spacing: -.024em; color: var(--verde-dkk); }
.ph-sub { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
@media (min-width: 900px) { .ph-titulo { font-size: 1.9rem; } }

/* Cartão de indicador (components/familia.js): faixa no topo, ícone num quadradinho, número grande e legenda. */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 4px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
.kpi {
  --kpi-cor: var(--verde); --kpi-fundo: var(--verde-lt); --kpi-texto: var(--verde-dk);
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 14px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh-sm); color: var(--text); text-decoration: none;
}
.kpi::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--kpi-cor); }
.kpi-ouro { --kpi-cor: var(--ouro); --kpi-fundo: var(--ouro-lt); --kpi-texto: var(--ouro-dk); }
.kpi-red { --kpi-cor: var(--red); --kpi-fundo: var(--red-lt); --kpi-texto: var(--red); }
a.kpi { transition: box-shadow var(--dur-fast) var(--ease-out-quart), transform var(--dur-fast) var(--ease-out-quart); }
a.kpi:hover { box-shadow: var(--sh-md); transform: translateY(-1px); }
.kpi-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.kpi-rot { font: 700 .7rem var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kpi-ico { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--kpi-fundo); color: var(--kpi-texto); }
.kpi-ico .ico { width: 18px; height: 18px; }
.kpi-valor { font: 800 1.6rem/1.1 var(--font-display); letter-spacing: -.01em; color: var(--kpi-texto); overflow-wrap: anywhere; }
.kpi-legenda { font-size: .8rem; color: var(--text-med); }

.pagina { max-width: 860px; margin: 0 auto; }
.sub { color: var(--muted); margin: 4px 0 20px; }
.vazio { max-width: 460px; margin: 48px auto; text-align: center; }
.vazio p { color: var(--text-med); }
.vazio .selo-breve { margin: 0 0 12px; display: inline-block; }
.atalhos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.atalho {
  display: flex; flex-direction: column; gap: 6px; min-height: 96px; padding: 16px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; box-shadow: var(--sh-sm);
}
.atalho .ico { color: var(--verde); width: 26px; height: 26px; }
.atalho span { color: var(--muted); font-size: .85rem; }
.atalho.desab { opacity: .55; }
.atalho.desab .breve { margin-left: 0; align-self: flex-start; }
a.atalho:hover { border-color: var(--verde); }

/* ===== 7. Produtos ===== */
.busca-wrap { margin: 14px 0 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 6px; align-items: center; scrollbar-width: thin; }
.chips-linha { flex: none; font: 700 .7rem var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-left: 4px; }
.chips-linha:not(:first-child) { margin-left: 10px; padding-left: 14px; border-left: 1px solid var(--border-dk); }
.chip {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-dk);
  background: var(--surface); color: var(--text-med); font: 600 .9rem var(--font-body); cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--verde); border-color: var(--verde); color: var(--on-verde); }
.dica { color: var(--muted); margin: 18px 4px; }
.dica.erro { color: var(--red); }
.lista-produtos { display: flex; flex-direction: column; gap: 10px; }
.produto { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-sm); }
.produto-cab {
  width: 100%; min-height: 64px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 16px;
  background: none; border: 0; color: inherit; text-align: left; cursor: pointer; font-family: var(--font-body);
}
.produto-cab[aria-expanded="true"] { background: var(--verde-lt); }
.produto-desc { font-weight: 700; font-size: 1rem; }
.produto-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85rem; color: var(--muted); }
.tag { font: 600 .72rem var(--font-body); color: var(--verde-dk); background: var(--verde-lt); border-radius: 999px; padding: 2px 10px; }
.produto-cab[aria-expanded="true"] .tag { background: var(--surface); }
.estoque { padding: 12px 16px 16px; border-top: 1px solid var(--border); }
.faixa-ouro {
  display: flex; flex-wrap: wrap; gap: 2px 8px; background: var(--ouro-lt); color: var(--text);
  border-left: 4px solid var(--ouro); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; font-size: .9rem;
}
.faixa-ouro strong { color: var(--ouro-dk); }
.tabela-estoque { width: 100%; border-collapse: collapse; }
.tabela-estoque th, .tabela-estoque td { padding: 10px 6px; border-bottom: 1px solid var(--border); text-align: left; }
.tabela-estoque thead th { font: 700 .72rem var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tabela-estoque tbody th { font-weight: 600; }
.tabela-estoque .num { text-align: right; }
.tabela-estoque .forte { font-weight: 600; color: var(--verde-dk); }
.tabela-estoque tr:last-child th, .tabela-estoque tr:last-child td { border-bottom: 0; }

/* ===== 8. Toasts ===== */
.toasts { position: fixed; z-index: 30; left: 16px; right: 16px; top: 12px; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  pointer-events: auto; max-width: 440px; width: 100%; padding: 12px 16px; border-radius: var(--r); font-weight: 600;
  background: var(--surface); border: 1px solid var(--border-dk); border-left: 5px solid var(--verde); box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  animation: entra var(--dur-base) var(--ease-out-quart);
}
.toast-erro { border-left-color: var(--red); background: var(--red-lt); }
.toast-aviso { border-left-color: var(--ouro-dk); background: var(--ouro-lt); }
.toast.saindo { opacity: 0; transition: opacity var(--dur-slow) var(--ease-out-quart); }
@keyframes entra { from { transform: translateY(-8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* ===== 9. Administração ===== */
input[type=number], input[type=tel], input[type=date], input[type=time], input[type=text], select {
  width: 100%; min-height: 48px; padding: 0 14px; font: 400 1rem var(--font-body); color: var(--text);
  background: var(--surface); border: 1px solid var(--border-dk); border-radius: var(--r);
}
select:focus { outline: 3px solid var(--verde-mid); border-color: var(--verde); }
input:disabled, select:disabled { opacity: .65; cursor: not-allowed; }
.pagina-larga { max-width: 1040px; }
.cab-pagina { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.cab-pagina .btn { min-height: 44px; }
.btn-peq { min-height: 44px; padding: 0 14px; font-size: .9rem; }
.btn-perigo { color: var(--red); border-color: var(--red); }
.subsecao { margin-top: 32px; }
.subsecao > h2 { margin-bottom: 6px; }
.cartao { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; box-shadow: var(--sh-sm); margin-top: 16px; }

.tabela { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-sm); margin-top: 12px; }
.tabela th, .tabela td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.tabela thead th { font: 700 .72rem var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg); }
.tabela tbody th { font-weight: 600; }
.tabela tbody tr:last-child > * { border-bottom: 0; }
.tabela td.acoes { text-align: right; }
.tabela tr.linha-erro > * { background: var(--red-lt); }
.tabela .erro { color: var(--red); font-weight: 600; }
.tabela td.acoes .btn { margin: 2px 0 2px 8px; }
.tabela td select { min-width: 190px; }
.tabela tr.inativo { opacity: .65; }
.secundario { display: block; font: 400 .82rem var(--font-body); color: var(--muted); }
.texto-erro { color: var(--red); }
.tag-cinza { color: var(--muted); background: var(--bg); }
.tag-ouro { color: var(--text); background: var(--ouro-lt); box-shadow: inset 0 0 0 1px var(--ouro); margin-left: 6px; } /* texto escuro: o ouro sobre ouro claro não passa no contraste */
.tag-aviso { color: var(--ouro-dk); background: var(--ouro-lt); }
.tag-esp { margin-left: 8px; color: var(--ouro-dk); background: var(--ouro-lt); }
.selo-ouro { font: 700 .72rem var(--font-body); text-transform: uppercase; letter-spacing: .04em; color: var(--ouro-dk); background: var(--ouro-lt); border: 1px solid var(--ouro); border-radius: 999px; padding: 3px 10px; }

.formulario { margin-top: 12px; }
.campo-dica { display: block; margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.campo-dica.aviso-obrigatorio { color: var(--text); font-weight: 600; border-left: 3px solid var(--ouro); padding-left: 8px; }
.grade-2 { display: grid; grid-template-columns: 1fr; gap: 0 20px; }
.grade-3 { display: grid; grid-template-columns: 1fr; gap: 0 20px; }
@media (min-width: 700px) { .grade-2 { grid-template-columns: 1fr 1fr; } .grade-3 { grid-template-columns: 1fr 1fr 1fr; } }
.acoes-form { margin-top: 22px; display: flex; gap: 10px; }
.lista-ordem { list-style: none; margin: 0 0 14px; padding: 0; }
.lista-ordem li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; }
.lista-ordem li > span { min-width: 9em; }
.cartao-subtitulo { font-size: 1rem; margin: 18px 0 8px; }
.cartao-aninhado { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--ouro); }
.erro-form { margin: 16px 0 0; padding: 10px 14px; border-radius: var(--r); border-left: 5px solid var(--red); background: var(--red-lt); font-weight: 600; }

.bloco-perm { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); padding: 6px 16px 10px; margin: 18px 0 0; }
.bloco-perm legend { font: 700 .8rem var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--verde-dk); padding: 0 8px; }
.nota-ouro { margin: 8px 0; padding: 10px 12px; border-left: 4px solid var(--ouro); background: var(--ouro-lt); border-radius: 8px; font-weight: 600; font-size: .9rem; }

/* Interruptor: checkbox real, desenhado como chave */
.chave { position: relative; border-bottom: 1px solid var(--border); }
.chave:last-child { border-bottom: 0; }
.chave-input { position: absolute; opacity: 0; width: 52px; height: 44px; left: 0; top: 50%; transform: translateY(-50%); margin: 0; cursor: pointer; }
.chave-rot { display: flex; align-items: center; gap: 14px; min-height: 52px; margin: 0; padding: 4px 0; cursor: pointer; font-weight: 400; font-size: 1rem; color: var(--text); }
.trilho { flex: none; position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--border-dk); transition: background var(--dur-fast) var(--ease-out-quart); }
.trilho::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, .3); transition: transform var(--dur-fast) var(--ease-out-quart); }
.chave-input:checked + .chave-rot .trilho { background: var(--verde); }
.chave-input:checked + .chave-rot .trilho::after { transform: translateX(18px); }
.chave-input:focus-visible + .chave-rot .trilho { outline: 3px solid var(--ouro); outline-offset: 2px; }
.chave-input:disabled { cursor: not-allowed; }
.chave-input:disabled + .chave-rot { cursor: not-allowed; opacity: .7; }
.chave-txt { display: flex; flex-direction: column; min-width: 0; }
.chave-nome { font-weight: 600; }
.chave-det { font-size: .75rem; color: var(--muted); }
.chave-nota { margin: -2px 0 8px 58px; font-size: .82rem; color: var(--ouro-dk); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .trilho, .trilho::after { transition: none; } }

.cat-lista { list-style: none; margin: 12px 0 0; padding: 0; }
.cat-linha { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); }
.cat-linha .chave { border: 0; }
.cat-linha .chave-rot { min-height: 44px; }
.cat-nova { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px; }

/* Celular: tabelas viram cartões empilhados */
@media (max-width: 600px) {
  .tabela-cartoes, .tabela-cartoes tbody, .tabela-cartoes tr, .tabela-cartoes th, .tabela-cartoes td { display: block; }
  .tabela-cartoes { background: none; border: 0; box-shadow: none; }
  .tabela-cartoes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabela-cartoes tbody tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh-sm); padding: 8px 14px; margin-bottom: 12px; }
  .tabela-cartoes th, .tabela-cartoes td { border: 0 !important; padding: 6px 0; }
  .tabela-cartoes tbody th { font-size: 1.05rem; }
  .tabela-cartoes td[data-label]::before { content: attr(data-label); display: block; font: 700 .68rem var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .tabela-cartoes td.acoes { display: flex; flex-wrap: wrap; gap: 8px; text-align: left; padding-top: 10px; }
  .tabela-cartoes td.acoes .btn { margin: 0; }
  .tabela td select { width: 100%; min-width: 0; }
  .cat-linha { grid-template-columns: 1fr; }
}

/* ===== Pacote por hectare ===== */
.pacote-barra { margin-top: 16px; }
.pacote-cat h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 1.05rem; }
.pacote-lista { list-style: none; margin: 8px 0 0; padding: 0; }
.pacote-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pacote-item:last-child { border-bottom: 0; }
.pacote-desc { font-weight: 600; }
.pacote-dose { display: flex; align-items: center; gap: 8px; grid-column: 1; }
.dose-input { width: 120px; min-height: 48px; padding: 0 12px; text-align: right; font: 500 1rem var(--font-mono); color: var(--text); background: var(--surface); border: 1px solid var(--border-dk); border-radius: var(--r); }
.dose-input:focus { outline: 3px solid var(--verde-mid); border-color: var(--verde); }
.pacote-un { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.pacote-item > .btn { grid-column: 2; grid-row: 1 / span 2; }
.resultado-add { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 12px; }
.resultado-add .produto-cab { cursor: default; flex: 1; }
@media (min-width: 700px) {
  .pacote-item { grid-template-columns: 1fr auto auto; }
  .pacote-dose { grid-column: 2; }
  .pacote-item > .btn { grid-column: 3; grid-row: 1; }
}

/* Política comercial */
.politica-linha { display: grid; grid-template-columns: 1fr; gap: 0 12px; align-items: end; padding: 8px 0; border-bottom: 1px solid var(--border); }
.politica-linha .btn { margin-bottom: 14px; justify-self: start; }
.politica-sem-limite { margin: 0; min-height: 44px; display: flex; align-items: center; color: var(--text-2, inherit); }
@media (min-width: 700px) { .politica-linha { grid-template-columns: repeat(4, 1fr) auto; } }

.ret-chaves { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ret-chave { padding: 8px 0; border-bottom: 1px solid var(--border); }
.ret-nome { margin: 0 0 4px; font-size: 1rem; }
.ret-atual { margin: 2px 0; }
.ret-hist { margin: 6px 0 0; padding-left: 18px; }
@media (min-width: 700px) { .politica-linha.ret-form { grid-template-columns: repeat(5, 1fr); } .ret-chaves { grid-template-columns: repeat(2, 1fr); } }

/* ===== Ficha do cliente ===== */
.ficha-voltar { display: inline-flex; align-items: center; min-height: 44px; color: var(--verde-dk); font-weight: 600; text-decoration: none; }
.ficha-abas { display: flex; gap: 6px; overflow-x: auto; margin: 8px 0 4px; padding-bottom: 4px; border-bottom: 1px solid var(--border); scrollbar-width: thin; }
.ficha-aba {
  flex: none; min-height: 44px; padding: 0 16px; background: none; border: 0; border-bottom: 3px solid transparent;
  color: var(--text-med); font: 600 .95rem var(--font-body); cursor: pointer;
}
.ficha-aba[aria-selected="true"] { color: var(--verde-dk); border-bottom-color: var(--verde); }
.ficha-painel:focus-visible { outline: 3px solid var(--verde-mid); outline-offset: 2px; }
.ficha-grade { display: grid; grid-template-columns: 1fr; gap: 0 16px; align-items: start; }
.ficha-alertas { grid-column: 1 / -1; margin-top: 16px; display: grid; gap: 8px; }
.ficha-alertas .faixa-ouro { margin: 0; }
.cartao-titulo { margin: 0 0 8px; font-size: 1.05rem; }
.pares { margin: 0; display: grid; gap: 8px; }
.par { display: grid; grid-template-columns: 1fr; gap: 0; }
.par dt { font: 700 .72rem var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.par dd { margin: 0; overflow-wrap: anywhere; }
.ficha-porque { margin: 0; font-weight: 600; }
.ficha-plantio, .ficha-lista { color: var(--text-med); font-size: .9rem; }
.ficha-rolagem { overflow-x: auto; }
.tabela-ficha { margin-top: 8px; box-shadow: none; }
.tabela-ficha .num { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
.cliente-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; color: inherit; text-decoration: none; min-height: 64px; }
.cliente-item:hover { border-color: var(--verde); }
@media (min-width: 900px) {
  .ficha-grade { grid-template-columns: 1fr 1fr; }
  .par { grid-template-columns: 11rem 1fr; gap: 12px; }
}

/* ===== Simulador de vendas (receita de venda) ===== */
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
textarea {
  width: 100%; padding: 10px 14px; font: 400 1rem var(--font-body); color: var(--text); resize: vertical;
  background: var(--surface); border: 1px solid var(--border-dk); border-radius: var(--r);
}
textarea:focus { outline: 3px solid var(--verde-mid); border-color: var(--verde); }
.sim { max-width: 1120px; }
.sim-inicio h1, .sim-cab h1 { margin-bottom: 4px; }
.sim-cab-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sim-cab-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 8px; color: var(--text-med); }
.sim-linha { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.sim-editar { margin: 8px 0 12px; }
.sim-area-grupo { display: flex; gap: 8px; align-items: stretch; }
.sim-area-grupo .sim-area { text-align: right; font-family: var(--font-mono); }
.btn-icone-q { width: 48px; min-width: 48px; padding: 0; font-size: 1.3rem; }
.sim-encerrada { margin: 8px 0; padding: 10px 14px; border-left: 5px solid var(--ouro); background: var(--ouro-lt); border-radius: 8px; font-weight: 600; }
.sim-grade { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.sim-esq { min-width: 0; }
.sim-resultados { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.sim-res { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.sim-res-info { display: flex; flex-direction: column; gap: 4px; }
.sim-res-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sim-res-add .dose-input { width: 110px; }
.sim-res-add .btn { margin-left: auto; }
.un { color: var(--muted); font-size: .85rem; white-space: nowrap; }
button.produto, button.sim-fazenda { text-align: left; cursor: pointer; font-family: var(--font-body); color: inherit; background: var(--surface); width: 100%; }
button.produto:hover { border-color: var(--verde); }

/* Tabela da receita */
.sim-tabela { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border-dk); border-radius: var(--r); box-shadow: var(--sh-sm); }
.sim-tabela th, .sim-tabela td { padding: 6px 10px; border-bottom: 1px solid var(--border-dk); vertical-align: middle; text-align: left; }
.sim-tabela thead th {
  position: sticky; top: 56px; z-index: 2; background: var(--bg); font: 700 .72rem var(--font-body);
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 2px solid var(--border-dk);
}
.sim-tabela th + th, .sim-tabela td + td { border-left: 1px solid var(--border); }
.sim-tabela .num { text-align: right; }
.sim-tabela td.num, .sim-tabela td.valor { font-family: var(--font-mono); white-space: nowrap; }
.sim-tabela .sim-cat-cab th { background: var(--verde-lt); color: var(--verde-dkk); border-left: 0; padding: 10px 10px; font-family: var(--font-display); font-size: .95rem; }
.sim-tabela .cat-sub { float: right; font-size: .85rem; font-weight: 600; }
.sim-cat:last-of-type > tr:last-child > * { border-bottom: 0; }
.prod { min-width: 0; }
.prod-toggle { display: block; width: 100%; min-height: 44px; padding: 4px 0; text-align: left; background: none; border: 0; color: var(--text); font: 600 .95rem var(--font-body); cursor: pointer; }
.prod-toggle::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.prod-toggle[aria-expanded="true"]::after { margin-bottom: -2px; transform: rotate(225deg); }
.prod-aviso { display: block; font-size: .78rem; color: var(--ouro-dk); }
.dose .dose-input { width: 88px; min-height: 44px; padding: 0 8px; }
.dose .un { display: block; text-align: right; }
.prod-linha.aberta > td { background: var(--verde-lt); }
.prod-linha.removendo { opacity: .4; }
.prod-det > td { background: var(--bg); padding: 10px 12px 14px; }
.sim-det-painel { display: flex; flex-direction: column; gap: 10px; }
.sim-det-desc input { width: 120px; text-align: right; font-family: var(--font-mono); }
.sim-det-desc label { margin-top: 0; }
.par-qtd { display: none; }
.sim-vazio { text-align: center; padding: 18px 8px; }
@media (max-width: 599px) {
  .col-qtd { display: none; }
  .par-qtd { display: grid; }
  .dose .dose-input { width: 76px; }
}
@media (min-width: 900px) { .sim-tabela thead th { top: 0; } }

/* Colunas da direita: totais, pagamento e ações */
.sim-totais { background: var(--verde-lt); border: 1px solid var(--verde-mid); border-radius: var(--r); padding: 14px; }
.tot-estado { margin: 0 0 4px; min-height: 1.2em; font-size: .78rem; color: var(--muted); }
.tot-linha { display: grid; grid-template-columns: 1fr; gap: 6px; }
.tot-principal { display: flex; flex-direction: column; margin-bottom: 4px; }
.tot-rha { font: 700 1.9rem/1.1 var(--font-mono); color: var(--verde-dkk); overflow-wrap: anywhere; }
.tot-rot { font: 700 .7rem var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--text-med); }
.tot-par { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; border-top: 1px solid var(--verde-mid); padding-top: 6px; }
.tot-par .tot-valor { text-align: right; }
.tot-valor { font-weight: 600; font-size: 1rem; overflow-wrap: anywhere; }
.tot-forma, .tot-cambio { margin: 8px 0 0; font-size: .85rem; color: var(--text-med); }
.sim-pagamento { margin-top: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; box-shadow: var(--sh-sm); }
.sim-formas { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.sim-formas legend { font: 700 .72rem var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 0; margin-bottom: 6px; }
.segmentado { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border-dk); border-radius: var(--r); overflow: hidden; }
.seg { position: relative; display: flex; }
.seg + .seg { border-left: 1px solid var(--border-dk); }
.seg-input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg-rot { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; margin: 0; padding: 4px 6px; font: 600 .85rem var(--font-body); color: var(--text-med); background: var(--surface); cursor: pointer; }
.seg-input:checked + .seg-rot { background: var(--verde); color: var(--on-verde); }
.seg-input:focus-visible + .seg-rot { outline: 3px solid var(--ouro); outline-offset: -3px; }
.seg-input:disabled + .seg-rot { opacity: .6; cursor: not-allowed; }
.pag-painel .campo label { margin-top: 10px; }
.pag-linha { margin: 10px 0 0; font-size: .9rem; color: var(--text-med); }
.sim-sinal { margin-top: 12px; padding: 10px 12px; border-radius: 8px; display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.sim-sinal.passa { background: var(--verde-lt); border-left: 5px solid var(--verde); }
.sim-sinal.precisa { background: var(--ouro-lt); border-left: 5px solid var(--ouro); }
.sinal-titulo { font-family: var(--font-display); }
.sim-sinal.passa .sinal-titulo { color: var(--verde-dk); }
.sim-sinal.precisa .sinal-titulo { color: var(--ouro-dk); }
.sinal-lista { margin: 4px 0 0; padding-left: 18px; }
.sim-avisos .faixa-ouro { margin: 12px 0 0; }
.texto-aviso { color: var(--ouro-dk); font-weight: 600; }
.sim-pagamento > .btn { margin-top: 12px; }
.sim-comparar { margin-top: 8px; }
.sim-como { margin-top: 8px; }
.sim-como > summary { cursor: pointer; font-weight: 600; padding: 8px 0; min-height: 44px; display: flex; align-items: center; }
.sim-como-corpo { padding-bottom: 4px; }
.sim-analise { margin-top: 12px; }
.analise-resumo { margin: 0; font-weight: 600; }
.analise-custo { margin: 2px 0 0; }
.analise-calculo { margin-top: 0; }
.analise-porque { margin: 0 0 6px; padding-left: 18px; font-size: .9rem; }
.analise-indisponivel { margin: 0; }
.sim-acoes { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.sim-acoes .erro-form { margin: 0; }
.sim-acoes .campo-dica { margin: -4px 0 0; }
@media (min-width: 1000px) {
  .sim-grade { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
  .sim-dir { position: sticky; top: 16px; max-height: calc(100dvh - 32px); overflow-y: auto; }
}

/* Perda */
.modal-perda { max-width: 460px; max-height: 92dvh; overflow-y: auto; }
.perda-motivos { border: 0; padding: 0; margin: 12px 0 0; }
.perda-motivos legend { font-weight: 700; padding: 0; margin-bottom: 4px; }
.perda-opcao { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0; padding: 0 4px; font-weight: 500; font-size: 1rem; color: var(--text); cursor: pointer; }
.perda-opcao input { width: 22px; height: 22px; accent-color: var(--verde); flex: none; }
.modal-perda .erro-form { margin: 12px 0 0; }
.modal-perda .modal-acoes { margin-top: 16px; }

/* ===== Pedidos ===== */
.selo-status { display: inline-block; font: 700 .72rem var(--font-body); letter-spacing: .03em; border-radius: 999px; padding: 3px 10px; border: 1px solid transparent; white-space: nowrap; }
.st-verde { color: var(--verde-dk); background: var(--verde-lt); border-color: var(--verde-mid); }
.st-ouro { color: var(--ouro-dk); background: var(--ouro-lt); border-color: var(--ouro); }
.st-vermelho { color: var(--red); background: var(--red-lt); border-color: var(--red); }
.st-cinza { color: var(--muted); background: var(--bg); border-color: var(--border-dk); }
.link-alvo { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.ped-voltar { display: inline-flex; align-items: center; min-height: 44px; }
.ped-cab { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 4px; }
.ped-sub { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; }
.ped-sub a { display: inline-flex; align-items: center; min-height: 44px; }
.ped-pares { display: grid; grid-template-columns: 1fr; gap: 10px 20px; margin: 0; }
.ped-par { min-width: 0; }
.ped-pares dt { font: 700 .68rem var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ped-pares dd { margin: 2px 0 0; font-weight: 600; }
@media (min-width: 700px) { .ped-pares { grid-template-columns: repeat(3, 1fr); } }
.ped-rolagem { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.ped-itens th, .ped-itens td { padding: 10px 6px; }
.ped-itens td input { width: 100%; min-width: 72px; max-width: 120px; min-height: 44px; }
.ped-itens td input[type=date] { max-width: 150px; }
.ped-itens .dose-input { width: 96px; padding: 0 8px; }
.ped-itens td .num { white-space: nowrap; }
.ped-itens .tag-aviso { color: var(--ouro-dk); background: var(--ouro-lt); }
.ped-itens .tag-perigo { color: var(--red); background: var(--red-lt); }
.ped-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; font-size: 1.1rem; }
.ped-total strong { font-family: var(--font-mono); font-size: 1.35rem; }
.ped-add { margin-top: 14px; }
.ped-add .resultado-add { margin-top: 8px; }
.ped-tempo { list-style: none; margin: 8px 0 0; padding: 0; border-left: 3px solid var(--border-dk); }
.ped-tempo li { padding: 6px 0 10px 14px; position: relative; }
.ped-tempo li::before { content: ''; position: absolute; left: -8px; top: 12px; width: 13px; height: 13px; border-radius: 50%; background: var(--verde); border: 2px solid var(--surface); }
.ped-tempo .quando { display: block; color: var(--muted); font-size: .82rem; }
.ped-tempo .motivo { display: block; margin-top: 2px; color: var(--text-med); font-size: .9rem; }
.ped-acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ped-acoes .btn { flex: 1 1 180px; }
.ped-filtro { margin-top: 12px; }

/* Aprovações */
.aprov-voltar { margin-bottom: 4px; }
.aprov-cond { margin-top: 14px; }
.aprov-reprovar { border-color: var(--red); }
.aprov-reprovar textarea { width: 100%; min-height: 88px; }
.aprov-reprovar .btn { margin-top: 12px; min-height: 44px; }

/* Painel de envio ao ERP */
.lista-resumo { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.lista-resumo li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 10px 12px; }
.lista-resumo strong { font-size: 1.15rem; }

/* ===== Barter (contrato) ===== */
.bar-tabela { margin-top: 8px; }
.bar-tabela th, .bar-tabela td { padding: 10px 6px; }
.bar-tabela td { text-align: right; white-space: nowrap; }
.bar-tabela .bar-menos { color: var(--text-med); }
.bar-tabela .bar-total th, .bar-tabela .bar-total td { border-top: 2px solid var(--border-dk); font-size: 1.05rem; }
.bar-tabela .bar-total td { color: var(--verde-dk); font-weight: 700; }
.bar-spread { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: flex-end; padding: 12px 14px; margin-bottom: 12px; border-radius: var(--r); background: var(--verde-lt); border: 1px solid var(--verde-dk); }
.bar-spread > div { display: grid; }
.bar-spread strong { font-size: 1.5rem; color: var(--verde-dk); }
.bar-spread.negativo { background: #fdecea; border-color: #b3261e; }
.bar-spread.negativo strong { color: #b3261e; }
.bar-spread p { flex-basis: 100%; margin: 0; }
.bar-cobertura { margin: 4px 0 10px; }
.bar-pedidos { list-style: none; margin: 8px 0 0; padding: 0; }
.bar-pedidos li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.bar-pedidos li:last-child { border-bottom: 0; }
.bar-pedidos .btn { margin-left: auto; }
.bar-ligar { margin-top: 14px; display: grid; gap: 4px; }
@media (min-width: 700px) { .bar-ligar { grid-template-columns: 1fr auto; align-items: end; gap: 0 14px; } .bar-ligar .btn { min-height: 48px; } }
.btn-sec.ativo { background: var(--verde-lt); color: var(--verde-dk); border-color: var(--verde-dk); }

/* Volumes de barter */
.vol-filtros { display: grid; gap: 8px 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 8px; }
.vol-barra { display: flex; min-width: 140px; height: 12px; border-radius: 6px; overflow: hidden; background: var(--border); }
.vol-trecho { display: block; height: 100%; }
.vol-neg, .vol-chave.vol-neg { background: var(--verde-dk); }
.vol-emn, .vol-chave.vol-emn { background: var(--ouro); }
.vol-ane, .vol-chave.vol-ane { background: var(--border-dk); }
.vol-legenda { margin: 10px 0 6px; color: var(--text-med); font-size: .9rem; }
.vol-chave { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin: 0 6px 0 12px; vertical-align: -1px; }
.vol-chave:first-child { margin-left: 0; }
.vol-excesso { color: var(--red); font-weight: 600; }

/* Vendido sem estoque (compras) */
.lista-limpa { list-style: none; margin: 0; padding: 0; }
.lista-limpa > li:first-child { margin-top: 12px; }

/* ===== Agenda ===== */
.agenda-barra { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.agenda-barra .chips { margin: 0; padding: 0; }
.agenda-nav { display: flex; gap: 8px; }
.agenda-consultor { flex: 1 1 220px; max-width: 320px; }
.agenda-grade { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 8px; }
.agenda-dia { min-width: 0; }
.agenda-dia-tit { font: 700 .85rem var(--font-display); text-transform: capitalize; color: var(--text-med); margin: 14px 0 6px; }
.agenda-hoje .agenda-dia-tit { color: var(--verde-dk); }
.agenda-vazio { margin: 4px 0; font-size: .85rem; }
.agenda-item { display: grid; grid-template-columns: 5.5rem 1fr; gap: 4px 12px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--ouro); border-radius: var(--r); padding: 12px; margin-bottom: 8px; box-shadow: var(--sh-sm); }
.agenda-item.agenda-realizada { border-left-color: var(--verde); }
.agenda-item.agenda-cancelada { border-left-color: var(--border-dk); opacity: .7; }
.agenda-item.agenda-cancelada strong { text-decoration: line-through; }
.agenda-hora { font-size: .85rem; color: var(--text-med); }
.agenda-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.agenda-lado { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.agenda-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.agenda-semana .agenda-item { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .agenda-grade.agenda-semana { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: start; }
  .agenda-semana .agenda-item { padding: 8px; }
  .agenda-semana .agenda-dia { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 0 8px 4px; min-height: 8rem; }
  .agenda-semana .agenda-hoje { border-color: var(--verde); }
  .agenda-semana .agenda-acoes .btn { padding: 0 10px; }
}

/* ===== Visita e tarefas ===== */
.visita-texto { white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0 0; }
.resultado-botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 14px; }
.resultado-btn { min-height: 56px; padding: 10px 12px; font: 700 1rem var(--font-display); color: var(--text); background: var(--surface); border: 2px solid var(--border-dk); border-radius: var(--r); cursor: pointer; }
.resultado-btn:hover { border-color: var(--verde); }
.resultado-btn[aria-pressed="true"] { background: var(--verde); border-color: var(--verde); color: var(--on-verde); }
.resultado-btn:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; }
@media (min-width: 700px) { .resultado-botoes { grid-template-columns: repeat(4, 1fr); } }
.tarefas-novas { display: grid; gap: 10px; margin: 8px 0; }
.tarefa-linha { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 700px) { .tarefa-linha { grid-template-columns: 1fr 11rem auto; align-items: center; } }
.visita-tarefas li, .ficha-visitas li { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.visita-local { margin: 0 0 8px; }
.fotos-grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 12px; }
@media (min-width: 700px) { .fotos-grade { grid-template-columns: repeat(4, 1fr); } }
.foto { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.foto-link { display: block; aspect-ratio: 4 / 3; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.foto-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-espera { font-size: .85rem; color: var(--muted); }
/* Gravar visita (áudio) e selo "sugerido pela IA" */
.gravar { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.gravar .dica { margin: 0; }
.gravar-linha { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gravar-contador { font-family: var(--font-mono); font-size: 1.35rem; color: var(--text); }
.gravar-ponto { width: 12px; height: 12px; border-radius: 50%; background: var(--red); animation: gravar-piscar 1.2s ease-in-out infinite; }
@keyframes gravar-piscar { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .gravar-ponto { animation: none; } }
.selo-ia { display: inline-block; margin: 6px 0 0; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--ouro-dk); background: var(--ouro-lt); color: var(--text); font-size: .78rem; font-weight: 600; }
.tarefa-linha .selo-ia { grid-column: 1 / -1; justify-self: start; margin: 0; }
.tarefas-lista { margin-top: 8px; }
.tarefa { display: grid; grid-template-columns: 2.75rem 1fr; gap: 4px 12px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--ouro); border-radius: var(--r); padding: 12px; margin-bottom: 8px; box-shadow: var(--sh-sm); }
.tarefa .agenda-acoes { grid-column: 2; }
.tarefa-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.tarefa-check { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 2px solid var(--border-dk); background: var(--surface); cursor: pointer; }
.tarefa-check:hover, .tarefa-check:focus-visible { border-color: var(--verde); background: var(--verde-lt); }
.tarefa-check:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; }
.tarefa-marca { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; color: var(--verde-dk); font-weight: 700; }
.tarefa-atrasada { border-left-color: var(--red); }
.tarefa-atrasada .tarefa-texto > .secundario:first-of-type, li.tarefa-atrasada .secundario { color: var(--red); font-weight: 600; }
.tarefa-aviso { margin: 8px 0 0; color: var(--red); font-weight: 600; }

/* ===== Avisos e sino ===== */
.sino { position: relative; margin-left: auto; width: 44px; height: 44px; display: inline-grid; place-items: center; color: var(--text); border-radius: var(--r); text-decoration: none; }
.sino:hover, .sino:focus-visible { background: var(--verde-lt); }
.sino:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; }
.sino-num { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font: 700 .7rem/18px var(--font-body); text-align: center; }
.avisos-lista { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.aviso { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--border-dk); border-radius: var(--r); box-shadow: var(--sh-sm); }
.aviso-novo { border-left-color: var(--ouro); }
.aviso-corpo { display: flex; flex-direction: column; gap: 3px; width: 100%; min-height: 44px; padding: 12px; text-align: left; background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; overflow-wrap: anywhere; }
.aviso-corpo:focus-visible { outline: 3px solid var(--ouro); outline-offset: -3px; border-radius: var(--r); }
.aviso:not(.aviso-novo) strong { font-weight: 600; }
.aviso-texto { color: var(--text-med); white-space: pre-line; }

/* ===== Avisos: administração ===== */
.regras-grupo { margin: 28px 0 4px; font-size: 1.1rem; }
.regra-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.regra-cab .chave { flex: none; border-bottom: 0; }
.regra-off { opacity: .8; border-left: 4px solid var(--border-dk); }
.regra textarea { width: 100%; min-height: 96px; }
.regra-vars { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.var-chip { min-height: 44px; font-family: var(--font-mono); }
.regra-previa-caixa { margin: 12px 0 4px; padding: 10px 12px; background: var(--bg); border: 1px dashed var(--border-dk); border-radius: var(--r); }
.regra-previa { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; }

/* Revisor de pedido (Plano 05b) */
.revisor .revisor-destino { margin: 0 0 6px; }
.revisor .revisor-margem { margin: 10px 0 0; }
.revisor-ia { margin: 12px 0; padding: 10px 12px; border-left: 4px solid var(--border-dk); background: var(--bg); border-radius: 8px; }
.revisor-ia p { margin: 6px 0; }
.revisor-sugestoes h3 { margin: 14px 0 6px; font-size: 1rem; }
.revisor-sugestao { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.revisor-sugestao-texto { flex: 1; min-width: 0; }
.revisor-ia-motivo { margin-top: 4px; font-size: .85rem; }

/* ===== Painéis (Plano 06) ===== */
.painel-filtros { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
.painel-filtros > * { flex: 1 1 160px; max-width: 260px; }
.bloco-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.bloco-cab .cartao-titulo { margin: 0; }
.painel-abas { display: inline-flex; border: 1px solid var(--border-dk); border-radius: var(--r); overflow: hidden; }
.painel-aba { min-height: 44px; padding: 0 16px; border: 0; background: var(--surface); color: var(--text-med); font: 600 .9rem var(--font-body); cursor: pointer; }
.painel-aba + .painel-aba { border-left: 1px solid var(--border-dk); }
.painel-aba[aria-selected="true"] { background: var(--verde-lt); color: var(--verde-dk); }
.tabela-rolagem { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabela-painel { min-width: 560px; margin-top: 4px; }
.tabela-painel th[scope="row"] { min-width: 150px; }
.tabela-painel .num { text-align: right; white-space: nowrap; }
.tabela-painel .linha-total > * { font-weight: 700; background: var(--bg); }
.barra-progresso { position: relative; display: block; height: 10px; margin-top: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; overflow: visible; }
.barra-cheia { position: absolute; inset: 0 auto 0 0; background: var(--verde); border-radius: 999px; }
.barra-marca { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; border-radius: 2px; }
.barra-meta { background: var(--text); }
.barra-passada { background: var(--ouro-dk); }
.barras-legenda { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 4px 0; }
.leg { display: inline-block; width: 14px; height: 8px; border-radius: 3px; margin-left: 6px; }
.leg-cheia { background: var(--verde); }
.leg-meta { background: var(--text); width: 3px; height: 12px; }
.leg-passada { background: var(--ouro-dk); width: 3px; height: 12px; }
.bloco .porque { margin-top: 10px; }
.risco-tag { display: inline-block; margin: 0 4px 4px 0; }
.painel-numeros { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 4px 0 12px; }
.painel-numeros .kpi { background: var(--bg); box-shadow: none; }
.painel-numeros .kpi-valor { font-size: 1.3rem; }
.bloco-link { margin: 10px 0 0; font-weight: 600; }
.lista-simples { list-style: none; padding: 0; margin: 0 0 8px; }
.lista-simples li { padding: 6px 0; border-top: 1px solid var(--border); }
@media (max-width: 480px) { .painel-abas { width: 100%; } .painel-aba { flex: 1; padding: 0 8px; } }

/* Mapa de visitas e atividade da equipe */
.bloco-cab .campo { margin: 0; }
.bloco-subtitulo { margin: 16px 0 6px; font: 700 1rem var(--font-display); }
.mapa-visitas { height: 420px; border: 1px solid var(--border); border-radius: var(--r); z-index: 0; }
.mapa-visitas[hidden], .mapa-legenda[hidden] { display: none; }
.mapa-legenda { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; font-size: .85rem; color: var(--text-med); }
.mapa-leg { display: inline-flex; align-items: center; gap: 6px; }
.mapa-leg-cor { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.mapa-popup { font-size: .9rem; line-height: 1.4; }
@media (max-width: 480px) { .mapa-visitas { height: 320px; } }
/* Mapa no modo escuro: mosaico escurecido (sem trocar de servidor de mapas) e controles com as cores do tema. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mapa-visitas { background: var(--bg); }
  :root:not([data-theme="light"]) .mapa-visitas .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); }
  :root:not([data-theme="light"]) .mapa-visitas .leaflet-bar a { background: var(--surface); color: var(--text); border-color: var(--border); }
  :root:not([data-theme="light"]) .mapa-visitas .leaflet-control-attribution { background: var(--surface); color: var(--muted); }
  :root:not([data-theme="light"]) .mapa-visitas .leaflet-control-attribution a { color: var(--verde-dk); }
}
:root[data-theme="dark"] .mapa-visitas { background: var(--bg); }
:root[data-theme="dark"] .mapa-visitas .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); }
:root[data-theme="dark"] .mapa-visitas .leaflet-bar a { background: var(--surface); color: var(--text); border-color: var(--border); }
:root[data-theme="dark"] .mapa-visitas .leaflet-control-attribution { background: var(--surface); color: var(--muted); }
:root[data-theme="dark"] .mapa-visitas .leaflet-control-attribution a { color: var(--verde-dk); }

/* ===== Tela inicial (Plano 06, Task 6) ===== */
.ini-resumo { display: grid; grid-template-columns: 1fr; gap: 0 16px; margin-bottom: 8px; }
.ini-cartao { margin-top: 12px; }
.ini-lista { list-style: none; margin: 8px 0 0; padding: 0; }
.ini-lista li { padding: 8px 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.ini-lista li:first-child { border-top: 0; }
.ini-lista li > a { display: flex; flex-direction: column; gap: 2px; color: var(--text); text-decoration: none; min-height: 44px; justify-content: center; }
.ini-lista .ini-linha { flex-direction: row; justify-content: space-between; align-items: center; }
.ini-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 600; color: var(--verde-dk); }
.ini-atalhos { margin-top: 24px; }
.barra-trilho { position: relative; height: 10px; border-radius: 5px; background: var(--border); overflow: hidden; margin: 6px 0; }
.barra-trilho .barra-cheia { position: absolute; left: 0; top: 0; bottom: 0; background: var(--verde); }
@media (min-width: 720px) { .ini-resumo { grid-template-columns: 1fr 1fr; } }

/* ===== Funil (Plano 09) ===== */
.funil-filtros { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 12px 0; }
.funil-filtros .campo { min-width: 150px; margin: 0; }
.funil-abas-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.funil-abas { margin: 4px 0 8px; max-width: 100%; flex-wrap: wrap; }
/* Celular: uma coluna por vez, empilhadas (lista agrupada por etapa); a partir de 900px, as três lado a lado. */
.funil-quadro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .funil-quadro { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
.funil-coluna { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 12px; min-width: 0; }
.funil-coluna-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.funil-coluna-cab h2 { margin: 0; font-size: 1rem; }
.funil-coluna-tot { font-size: .85rem; color: var(--text-med); }
.funil-cartao { display: grid; gap: 4px; margin-top: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); min-width: 0; overflow-wrap: anywhere; }
.funil-cartao-nome { font-weight: 700; color: var(--text); text-decoration: none; }
.funil-cartao-nome:hover { color: var(--verde-dk); text-decoration: underline; }
.funil-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.funil-acoes-celula { display: flex; flex-wrap: wrap; gap: 8px; }
.funil-resumo { margin-top: 24px; }
.funil-periodo { display: flex; flex-wrap: wrap; gap: 12px; }
.funil-periodo .campo { margin: 0; }
.funil-numeros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
@media (min-width: 700px) { .funil-numeros { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.funil-numero { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 12px; }
.funil-numero-rot { display: block; font: 700 .72rem var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.funil-numero strong { display: block; font-size: 1.35rem; }
.funil-form-grade { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 16px; }
@media (min-width: 700px) { .funil-form-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.funil-culturas { max-height: 180px; overflow-y: auto; border: 1px solid var(--border-dk); border-radius: var(--r); padding: 6px 12px; margin: 8px 0 0; }
.funil-busca-lista { display: grid; gap: 8px; }
.funil-busca-item { display: grid; gap: 2px; text-align: left; min-height: 44px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); cursor: pointer; font: inherit; color: var(--text); }
.funil-busca-item:hover { border-color: var(--verde); }
.funil-historico > li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.funil-motivos > li { padding: 4px 0; }

/* ===== Campos demonstrativos (Plano 09, Task 4) ===== */
.campo-demo-titulo { margin: 12px 0 8px; font-size: 1.15rem; }
.campo-demo-abas { margin: 4px 0 12px; max-width: 100%; flex-wrap: wrap; }
.campo-demo-filtros { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 12px 0; }
.campo-demo-filtros .campo { min-width: 150px; margin: 0; }
.campo-demo-lista { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .campo-demo-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.campo-demo-cartao { display: grid; gap: 4px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); min-width: 0; overflow-wrap: anywhere; }
.campo-demo-nome { font-weight: 700; color: var(--text); text-decoration: none; }
.campo-demo-nome:hover { color: var(--verde-dk); text-decoration: underline; }
.campo-demo-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.campo-demo-mini { font: 700 .82rem var(--font-body); }
.campo-demo-dif { display: grid; gap: 2px; margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--border-dk); border-radius: var(--r); background: var(--bg); }
.campo-demo-dif strong { font-size: 1.6rem; }
.campo-demo-dif-rot { font: 700 .72rem var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.campo-demo-dif.campo-demo-dif-mais { background: var(--verde-lt); border-color: var(--verde-mid); }
.campo-demo-dif-mais { color: var(--verde-dk); }
.campo-demo-dif.campo-demo-dif-menos { background: var(--red-lt); border-color: var(--red); }
.campo-demo-dif-menos { color: var(--red); }
.campo-demo-produto { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.campo-demo-prod-linha { display: grid; grid-template-columns: minmax(0, 1fr) 90px 100px auto; gap: 8px; align-items: center; padding: 6px 0; }
.campo-demo-prod-nome { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 599px) { .campo-demo-prod-linha { grid-template-columns: 1fr 1fr; } .campo-demo-prod-nome { grid-column: 1 / -1; } }

/* Dias de campo (Plano 09, Task 5) */
.diacampo-convidados { display: grid; gap: 8px; margin: 0 0 12px; }
.diacampo-convidado { display: grid; gap: 6px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); min-width: 0; overflow-wrap: anywhere; }
.diacampo-convidado-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.diacampo-op-form { padding: 8px 0 0; }
.agenda-item.agenda-evento-campo { border-left-color: var(--verde-mid); }
.agenda-evento-nome { font-weight: 700; color: var(--text); text-decoration: none; }
.agenda-evento-nome:hover { color: var(--verde-dk); text-decoration: underline; }

/* ===== Relatório de visita para o produtor (relatorio.html, público, celular primeiro) ===== */
.rel { max-width: 720px; margin: 0 auto; padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); }
.rel-cab { padding: 8px 0 4px; }
.rel-logo { width: 200px; max-width: 70%; height: auto; }
.rel-topo h1 { font-size: 1.4rem; overflow-wrap: anywhere; }
.rel-rotulo { margin: 0 0 4px; color: var(--verde-dk); font: 700 .8rem var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.rel-fazenda { margin: 4px 0 0; color: var(--text-med); font-weight: 600; }
.rel-meta { margin: 6px 0 0; color: var(--muted); }
.rel-resumo p { margin: 0 0 12px; overflow-wrap: anywhere; }
.rel-resumo p:last-child { margin-bottom: 0; }
.rel-passos { margin: 0; padding-left: 20px; }
.rel-passos li { margin: 0 0 8px; overflow-wrap: anywhere; }
.rel-prazo { display: block; color: var(--muted); font-size: .9rem; }
.rel-fotos { display: grid; gap: 12px; }
.rel-fotos img { display: block; width: 100%; height: auto; border-radius: var(--r); background: var(--border); }
@media (min-width: 640px) { .rel-fotos { grid-template-columns: 1fr 1fr; } }
.rel-rodape { margin: 24px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
.rel-aviso h1 { font-size: 1.25rem; margin-bottom: 8px; }
.rel-grupo { border: 1px solid var(--border); border-radius: var(--r); margin: 12px 0 0; padding: 8px 12px 10px; }
.rel-grupo legend { font-weight: 600; padding: 0 4px; }
.rel-escolha { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.rel-escolha input { width: 20px; height: 20px; flex: none; }
.rel-estado { margin: 0 0 8px; color: var(--verde-dk); font-weight: 600; }
.rel-link input { width: 100%; }

/* ===== Assistente da diretoria (Plano 10) ===== */
.assist-aviso { margin: 8px 0 0; padding: 10px 12px; background: var(--ouro-lt); border: 1px solid var(--ouro-dk); border-radius: var(--r); font-size: .9rem; }
.assist-conversa { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; max-height: 60vh; overflow-y: auto; padding: 4px 2px; }
.assist-msg { max-width: 92%; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--border); overflow-wrap: anywhere; }
.assist-msg-eu { align-self: flex-end; background: var(--verde-lt); border-color: var(--verde-mid); }
.assist-msg-ia { align-self: flex-start; background: var(--surface); box-shadow: var(--sh-sm); }
.assist-texto { margin: 0; white-space: pre-wrap; }
.assist-pensando .assist-texto { color: var(--muted); font-style: italic; }
.assist-fontes { margin: 8px 0 0; font-size: .85rem; color: var(--muted); }
.assist-msg-ia > .btn { margin-top: 8px; }
.assist-tarefa { margin-top: 10px; }
.assist-ok { margin: 8px 0 0; color: var(--verde-dk); font-weight: 600; }
.assist-form { display: grid; gap: 8px; grid-template-columns: 1fr; }
.assist-form textarea { width: 100%; resize: vertical; min-height: 3.5rem; font: inherit; padding: 10px 12px; background: var(--surface); color: var(--text); border: 1px solid var(--border-dk); border-radius: var(--r); }
@media (min-width: 700px) { .assist-form { grid-template-columns: 1fr auto; align-items: end; } }

/* ===== Trocar senha ===== */
.form-senha { max-width: 440px; }
.faixa-senha { margin-top: 12px; }
.faixa-senha strong { color: var(--text); } /* o ouro escuro sobre ouro claro não passa no contraste */
