* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--cream); font-size: 14px; line-height: 1.45; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.disp { font-family: var(--display); }
[hidden] { display: none !important; }

/* ---------- moldura ---------- */
.topo { height: 56px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; gap: 16px; position: relative; z-index: 30; }
.topo-cliente, .topo-usuaria { display: flex; align-items: center; gap: 12px; font-size: 13px; min-width: 0; }
.topo-cliente b { font-family: var(--display); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo-ciclo { opacity: .6; white-space: nowrap; }
.logo-ci { height: 28px; }
.logo-agm { height: 34px; }
.topo .sep { width: 1px; height: 26px; background: #ffffff40; flex: none; }
.papel { background: #ffffff1a; border-radius: var(--r-pill); padding: 4px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.topo-nome { font-weight: 600; white-space: nowrap; }
.trocar { background: transparent; border: 1px solid #ffffff40; color: #fff; border-radius: var(--r-pill); padding: 5px 12px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.trocar:hover { background: #ffffff14; }
.salvo { font-size: 12px; font-weight: 700; border-radius: var(--r-pill); padding: 4px 11px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: opacity .3s; }
.salvo.salvando { background: #ffffff1a; color: #fff; }
.salvo.ok { background: #1f9d5530; color: #b9f3cf; }
.salvo.some { opacity: 0; }
.salvo .giro { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #ffffff55; border-top-color: #fff; animation: giro .8s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }

.corpo { display: grid; grid-template-columns: 84px 1fr; height: calc(100vh - 56px); }
.trilho { background: var(--navy); display: flex; flex-direction: column; gap: 6px; padding: 12px 8px; }
.trilho a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; color: #ffffffb0; font-size: 11px; font-weight: 600; transition: .15s; text-align: center; }
.trilho a b { font-size: 20px; line-height: 1; }
.trilho .rot-curto { display: none; }
.trilho a:hover { background: #ffffff14; color: #fff; }
.trilho a.on { background: var(--red); color: #fff; }
.trilho .badge { position: absolute; top: 4px; right: 6px; background: var(--gold); color: var(--navy); border-radius: var(--r-pill); font-size: 10px; font-weight: 800; padding: 0 6px; }
.tela { overflow: auto; position: relative; }

/* ---------- componentes ---------- */
.btn { border: 0; border-radius: var(--r-pill); padding: 8px 16px; font-weight: 700; cursor: pointer; background: var(--navy); color: #fff; transition: .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.15); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn-red { background: var(--red); }
.btn-ok { background: var(--ok); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: #fff; filter: none; border-color: var(--navy); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 11px 20px; font-size: 15px; }
.link { border: 0; background: transparent; color: var(--red); font-weight: 700; font-size: 12px; cursor: pointer; padding: 0; }
.link:hover { text-decoration: underline; }
.chip { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; white-space: nowrap; }
.chip-azul { background: var(--navy-l); color: var(--navy); }
.chip-amarelo { background: var(--warn-l); color: #8a6700; }
.chip-verde { background: var(--ok-l); color: var(--ok); }
.chip-vermelho { background: var(--red-l); color: var(--red-deep); }
.chip-cinza { background: #eee; color: #666; }
.chip-lilas { background: var(--lilac); color: #5b3fb8; }
.tag { display: inline-block; padding: 1px 8px; border-radius: var(--r-pill); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.tag-navy { background: var(--navy-l); color: var(--navy); }
.tag-orange { background: var(--orange-l); color: var(--orange); }
.tag-gold { background: var(--gold-l); color: #7a6300; }
.tag-red { background: var(--red-l); color: var(--red); }
.tag-verde { background: var(--ok-l); color: var(--ok); }
.tag-lilas { background: var(--lilac); color: #5b3fb8; }
.tag-cinza { background: #eee; color: #666; }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--gray); font-weight: 700; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.vazio { color: var(--gray); text-align: center; padding: 26px 20px; }
.campo { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--gray); }
.campo input, .campo select, .campo textarea { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 400; width: 100%; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--navy); }
.campo input[readonly] { background: var(--chat-bg); color: var(--gray); }
.campo textarea { resize: vertical; }
.segmento { display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.segmento button { border: 0; background: transparent; border-radius: var(--r-pill); padding: 6px 14px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--gray); white-space: nowrap; }
.segmento button.on { background: var(--navy); color: #fff; }
.segmento button:not(.on):hover { color: var(--navy); }
.av { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-family: var(--display); }
.av-navy { background: var(--navy); } .av-orange { background: var(--orange); } .av-gold { background: #c9a400; } .av-red { background: var(--red); }
.av-verde { background: var(--ok); } .av-lilas { background: #6b4fc8; } .av-cinza { background: #9a9aa8; }
.av.av-sm { width: 28px; height: 28px; font-size: 12px; box-shadow: 0 0 0 2px #fff; }
.av.av-lg { width: 96px; height: 96px; font-size: 40px; box-shadow: 0 0 0 3px var(--gold); }
.copiar { border: 0; background: var(--chat-bg); border-radius: var(--r-pill); padding: 2px 9px; font-size: 11px; font-weight: 700; cursor: pointer; color: var(--navy); }
.copiar:hover { background: var(--navy-l); }

/* ---------- modal ---------- */
.modal-fundo { position: fixed; inset: 0; background: #1b234080; display: grid; place-items: center; z-index: 70; animation: aparece .15s; padding: 16px; }
.modal-caixa { background: var(--paper); border-radius: 22px; width: min(580px, 100%); max-height: 90vh; overflow: auto; padding: 22px 24px; box-shadow: 0 20px 60px #0004; }
.modal-caixa.larga { width: min(760px, 100%); }
.modal-caixa h3 { font-family: var(--display); font-size: 22px; margin: 0 0 4px; }
.modal-caixa .sub { color: var(--gray); margin: 0; }
.modal-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.modal-grade.tres { grid-template-columns: repeat(3, 1fr); }
.modal-grade .inteiro { grid-column: 1 / -1; }
.modal-grade .dois { grid-column: span 2; }
.modal-secao { grid-column: 1 / -1; margin: 6px 0 -4px; }
.modal-acoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; align-items: center; }
.modal-acoes .esq { margin-right: auto; }
.opcoes { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.opcoes button { border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-pill); padding: 7px 14px; cursor: pointer; font-weight: 600; }
.opcoes button:hover { border-color: var(--navy); }
.opcoes button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.aviso { border-radius: 12px; padding: 10px 12px; font-size: 13px; margin: 10px 0; }
.aviso-vermelho { background: var(--red-l); color: var(--red-deep); font-weight: 600; }
.aviso-amarelo { background: var(--warn-l); color: #7a5a00; }
.aviso-azul { background: var(--navy-l); color: var(--navy); }
.aviso-verde { background: var(--ok-l); color: var(--ok); font-weight: 600; }
.check-linha { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.check-linha input { width: 16px; height: 16px; accent-color: var(--navy); }
.erro-campo { color: var(--red-deep); font-size: 12px; font-weight: 600; min-height: 16px; }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }

/* ---------- toast e erro de gravação ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; z-index: 90; box-shadow: 0 10px 30px #0004; transition: opacity .4s, transform .4s; max-width: min(560px, 92vw); text-align: center; }
.toast.sai { opacity: 0; transform: translate(-50%, 10px); }
.falha { position: fixed; left: 50%; top: 68px; transform: translateX(-50%); z-index: 85; background: #fff; border: 2px solid var(--red); border-radius: 16px; box-shadow: 0 14px 40px #e3061330; padding: 12px 14px 12px 16px; display: flex; gap: 14px; align-items: center; max-width: min(640px, 94vw); animation: desce .25s ease-out; }
.falha-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; font-family: var(--display); }
.falha b { display: block; color: var(--red-deep); }
.falha small { color: var(--gray); }
.falha-botoes { display: flex; gap: 6px; flex: none; }
.falha-aviso { border-color: var(--warn, #e0a800); box-shadow: 0 14px 40px #e0a80030; background: var(--warn-l, #fff6d6); }
.falha-aviso .falha-ic { background: var(--warn, #e0a800); color: #3a2a00; }
.falha-aviso b { color: #7a5a00; }
.falha-aviso small { color: #5c4500; }
@keyframes desce { from { transform: translate(-50%, -12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ---------- entrada (login e PIN) ---------- */
.login-tela { position: fixed; inset: 0; z-index: 100; background: var(--cream); display: grid; place-items: center; padding: 20px; overflow: auto; }
.login-tela .blob { position: fixed; border-radius: 50%; filter: blur(80px); opacity: .32; pointer-events: none; }
.login-tela .b1 { width: 380px; height: 380px; background: #ff287a; right: -120px; top: -140px; }
.login-tela .b2 { width: 300px; height: 300px; background: var(--gold); left: -120px; bottom: -120px; }
.login-caixa { position: relative; background: var(--paper); border-radius: 24px; overflow: hidden; max-width: 440px; width: 100%; box-shadow: 0 24px 60px #0003; }
/* Capa da entrada: pitada da paleta AGM (produto da A Garota do Marketing, não da Cultura Inglesa). */
.login-palco { --agm-rosa: #ff287a; --agm-amarelo: #f8d210; --agm-verde: #037682; --agm-roxo: #520d8f; --agm-laranja: #ff7f31;
   position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 64px; align-items: center; max-width: 1080px; width: 100%; }
.login-capa { color: var(--navy); text-align: left; }
.capa-unidade { display: inline-block; background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 18px; }
.capa-marca { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); margin: 0 0 24px; font-weight: normal; }
.capa-logo { width: clamp(120px, 14vw, 190px); height: auto; flex: none; margin: -14px -10px -14px -16px; }
.capa-sep { width: 2px; align-self: stretch; background: var(--navy); border-radius: 2px; margin: 8px 0; }
.capa-nome { display: flex; flex-direction: column; font-family: 'Inter', sans-serif; /* fonte padrão AGM (Inter Black), só nesta assinatura */ color: var(--navy); text-transform: uppercase; line-height: .9; }
.capa-nome .fino { font-weight: 300; font-size: clamp(36px, 4.8vw, 64px); letter-spacing: -.01em; }
.capa-nome .forte { font-weight: 900; font-size: clamp(42px, 5.7vw, 77px); letter-spacing: -.04em; }
.capa-frase { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.2; margin: 0 0 22px; }
.capa-lista { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; font-size: 15px; color: var(--ink); }
.capa-lista li { position: relative; padding-left: 26px; }
.capa-lista li::before { content: ''; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--agm-rosa); }
.capa-lista li:nth-child(2)::before { background: var(--agm-amarelo); }
.capa-lista li:nth-child(3)::before { background: var(--agm-verde); }
.capa-lista li:nth-child(4)::before { background: var(--agm-roxo); }
.capa-lema { display: inline-block; background: var(--agm-amarelo); color: var(--navy); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 12px; margin: 0 0 18px; }
.capa-assina { display: block; color: var(--gray); font-size: 12px; }
@media (max-width: 900px) {
  .login-palco { grid-template-columns: 1fr; gap: 20px; max-width: 440px; }
  .login-capa { text-align: center; }
  .capa-marca { justify-content: center; margin-bottom: 8px; }
  .capa-logo { width: 104px; }
  .capa-nome .fino { font-size: 27px; }
  .capa-nome .forte { font-size: 32px; }
  .capa-frase { font-size: 18px; margin-bottom: 0; }
  .capa-unidade { margin-bottom: 12px; }
  .capa-lista, .capa-lema, .capa-assina { display: none; }
}
.login-topo { background: var(--navy); padding: 20px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.login-topo .sep { width: 1px; height: 26px; background: #ffffff40; }
.login-corpo { padding: 24px 30px 28px; text-align: center; }
.login-corpo h1 { font-family: var(--display); font-size: 27px; margin: 6px 0 4px; letter-spacing: -.01em; }
.login-corpo .sub { color: var(--gray); margin: 0 0 18px; }
.login-lista { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; text-align: left; }
.login-btn { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 14px; cursor: pointer; transition: .15s; width: 100%; text-align: left; }
.login-btn:hover, .login-btn:focus-visible { border-color: var(--red); background: var(--red-l); outline: none; }
.login-btn .av { width: 36px; height: 36px; font-size: 15px; }
.login-btn b { display: block; font-size: 15px; }
.login-btn small { color: var(--gray); }
.login-btn .primeiro { margin-left: auto; }
.login-nota { color: var(--gray); font-size: 12px; }
.pin-quem { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 4px; }
.pin-quem .av { width: 58px; height: 58px; font-size: 24px; }
.pin-caixas { display: flex; justify-content: center; gap: 12px; margin: 18px 0 8px; }
.pin-caixas span { width: 46px; height: 54px; border-radius: 14px; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; transition: .15s; }
.pin-caixas span.cheia { border-color: var(--navy); }
.pin-caixas span.cheia::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--navy); }
.pin-caixas span.atual { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-l); }
.pin-caixas.erro span { border-color: var(--red); animation: treme .35s; }
@keyframes treme { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.pin-msg { min-height: 20px; font-size: 13px; font-weight: 600; color: var(--red-deep); margin-bottom: 6px; }
.pin-msg.dica { color: var(--gray); font-weight: 500; }
.teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 270px; margin: 6px auto 14px; }
.teclado button { height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-family: var(--display); font-size: 22px; font-weight: 700; cursor: pointer; transition: .1s; }
.teclado button:hover { border-color: var(--navy); }
.teclado button:active { transform: scale(.96); background: var(--navy-l); }
.teclado button.tecla-acao { font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--gray); }
.teclado button.tecla-ok { background: var(--red); border-color: var(--red); color: #fff; font-family: var(--font); font-size: 15px; }
.teclado button:disabled { opacity: .45; cursor: not-allowed; }
.carregando { display: grid; place-items: center; gap: 12px; color: var(--gray); padding: 30px; }
.carregando .giro-g { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--red); animation: giro .8s linear infinite; }
.carregando-nota { max-width: 300px; text-align: center; font-size: 12px; opacity: .75; line-height: 1.4; }
body.fora .topo, body.fora .corpo { display: none; }

/* ---------- gestão que vende ---------- */
.tag-gestao { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--navy-l); color: var(--navy); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.saudacao-linha .segmento.visao { margin-left: auto; align-self: center; }
@media (max-width: 700px) { .saudacao-linha { flex-wrap: wrap; } .saudacao-linha .segmento.visao { margin-left: 0; } }
.dica-campo { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; color: var(--gray); }
.tabela-ofertas td.acoes-celula { white-space: nowrap; text-align: right; }
.erro-oferta { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--red-deep); }
.liberar { margin-top: 4px; padding: 12px; border: 1.5px dashed var(--red); border-radius: 12px; background: var(--red-l); display: grid; gap: 8px; }
.liberar .lbl { margin: 0; }
.liberar-linha { display: grid; grid-template-columns: 1fr 140px; gap: 10px; }
@media (max-width: 600px) { .liberar-linha { grid-template-columns: 1fr; } }
.sim-nao { margin-top: 6px; align-self: start; }
.sim-nao label { border-radius: var(--r-pill); padding: 6px 16px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--gray); }
.sim-nao label.on { background: var(--navy); color: #fff; }
.sim-nao input { position: absolute; opacity: 0; pointer-events: none; }
.festa { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; display: flex; gap: 12px; align-items: center; background: #fff; border: 2px solid var(--ok); border-radius: 18px; padding: 14px 20px; box-shadow: 0 14px 40px #0f8a5f33; max-width: min(520px, 92vw); animation: sobe .3s ease-out; transition: opacity .5s, transform .5s; }
.festa-ic { font-size: 30px; }
.festa b { display: block; font-size: 16px; color: var(--ink, #1b2340); }
.festa small { color: var(--gray); }
.festa.sai { opacity: 0; transform: translate(-50%, 10px); }
@keyframes sobe { from { transform: translate(-50%, 14px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.aviso-linha { margin: 2px 0 10px; font-size: 12px; font-weight: 700; color: var(--red-deep); }
.pendencias-modal { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--red-deep); }
.falta-cs { cursor: help; }
.bandeira { margin-left: 3px; font-size: 11px; cursor: help; }
.modal-caixa.extra-larga { width: min(900px, 100%); }
/* Grade do Novo mailing (estilo planilha, sem fundo colorido nas células) */
.grade-barra { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 14px 0 6px; flex-wrap: wrap; }
.grade-acoes { display: flex; align-items: center; gap: 10px; }
.grade-caixa { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.grade { width: 100%; border-collapse: collapse; font-size: 13px; }
.grade th { position: sticky; top: 0; z-index: 1; background: #fff; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--gray); padding: 8px 6px; border-bottom: 1px solid var(--line); }
.grade td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0; position: relative; }
.grade td input { width: 100%; box-sizing: border-box; border: 0; padding: 7px 8px; font: inherit; background: transparent; outline: none; }
.grade td input:focus { box-shadow: inset 0 0 0 2px var(--navy); }
.grade .g-n { width: 34px; text-align: center; color: var(--gray); font-size: 11px; }
.grade .g-x { width: 30px; text-align: center; border-right: 0; }
.grade td.g-erro input { color: var(--red-deep); font-weight: 700; }
.grade .g-aviso { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 11px; pointer-events: none; }
.grade-rodape { display: flex; gap: 14px; align-items: center; margin-top: 6px; }
.mapa-caixa { border: 1.5px solid var(--navy-l); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; display: grid; gap: 8px; }
.mapa-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.mapa-acoes { display: flex; justify-content: flex-end; gap: 8px; }

/* Menu da gestão em dois grupos (Gestão / Planilhas da equipe) */
.trilho-grupo { color: #ffffff80; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; text-align: center; line-height: 1.2; padding: 2px 0 0; }
.trilho-divisor { display: block; height: 1px; background: #ffffff33; margin: 6px 6px 2px; }
.trilho a.planilha-equipe { padding: 8px 4px; font-size: 10.5px; }
.trilho a.planilha-equipe b { font-size: 17px; }
.trilho a.planilha-equipe.consulta { opacity: .55; }
.trilho a.planilha-equipe.consulta:hover, .trilho a.planilha-equipe.consulta.on { opacity: 1; }
.nota-planilha-equipe { margin: 0 0 10px; font-size: 12.5px; color: var(--gray); }
@media (max-width: 760px) {
  .trilho-grupo { display: none; }
  .trilho-divisor { flex: none; width: 2px; height: auto; margin: 4px 3px; align-self: stretch; background: #ffffff66; }
  .trilho { overflow-x: auto; }
  .trilho a, .trilho a.planilha-equipe { min-width: 0; padding: 6px 1px; font-size: 10px; }
  .trilho .rot-longo { display: none; }
  .trilho .rot-curto { display: inline; white-space: nowrap; }
  .trilho a b, .trilho a.planilha-equipe b { font-size: 17px; }
}

/* Fotos da equipe: a foto cobre o círculo; sem foto (ou se falhar), fica a inicial */
.av { position: relative; overflow: hidden; }
.av-com-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.av-com-foto { color: transparent; }
.av.av-xs { width: 22px; height: 22px; font-size: 10px; }
.av.av-xl { width: 180px; height: 180px; font-size: 72px; }
.av-botao { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; display: inline-grid; }
.av-botao:hover .av, .av-botao:focus-visible .av { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn-navy { background: var(--navy); color: #fff; }

/* Sem setas nos campos de número (só digitar) */
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* ---------- Ficha de matrícula para imprimir ---------- */
.fm-form h4 { margin: 18px 0 8px; font-size: 14px; color: var(--navy); }
.fm-form h4:first-child { margin-top: 6px; }
.fm-grade-form { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px 12px; margin-bottom: 8px; }
.fm-form .segmento { margin-bottom: 10px; }
.fm-form .check-linha { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; }
#impressao { display: none; }
@media print {
  @page { size: A4; margin: 9mm 12mm; }
  body.imprimindo > *:not(#impressao) { display: none !important; }
  body.imprimindo, html:has(body.imprimindo) { background: #fff !important; overflow: visible !important; height: auto !important; }
  body.imprimindo #impressao { display: block; }
}
.fm-folha { font-family: var(--font); color: #1c2541; font-size: 10.5pt; line-height: 1.25; }
.fm-topo { display: flex; align-items: center; gap: 18px; border-bottom: 3px solid #1c2541; padding-bottom: 6px; margin-bottom: 4px; }
.fm-logo { height: 52px; }
.fm-tit h1 { margin: 0; font-size: 18pt; font-weight: 800; }
.fm-tit p { margin: 2px 0 0; font-size: 9pt; color: #555; }
.fm-sec { font-size: 10.5pt; font-weight: 800; margin: 12px 0 2px; padding: 3px 8px; background: #1c2541; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fm-sec small { font-weight: 400; font-size: 8.5pt; }
.fm-grade { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 10px; }
.fm-c { display: flex; flex-direction: column; padding-top: 4px; }
.fm-r { font-size: 7.5pt; text-transform: uppercase; letter-spacing: .04em; color: #555; }
.fm-v { border-bottom: 1px solid #1c2541; min-height: 25px; padding: 3px 2px 1px; font-weight: 600; }
.fm-c small { font-size: 7pt; color: #777; }
.fm-ident .fm-v { font-size: 12pt; }
.fm-nota { margin: 6px 2px; font-style: italic; }
.fm-decl { font-size: 8pt; line-height: 1.35; margin: 12px 0 26px; text-align: justify; }
.fm-assina { display: flex; gap: 30px; align-items: flex-end; }
.fm-linha { flex: 1; display: flex; flex-direction: column; font-size: 8.5pt; color: #555; }
.fm-linha span { border-bottom: 1px solid #1c2541; height: 34px; margin-bottom: 3px; }
.fm-data { display: flex; flex-direction: column; font-size: 8.5pt; color: #555; }
.fm-data span { font-size: 11pt; color: #1c2541; margin-bottom: 3px; }
.fm-pe { margin-top: 8px; font-size: 7pt; color: #999; text-align: right; }
