/* O meu perfil (complementa app.css) */
.pf { max-width: 1120px; }
.pf-cab { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start; padding: 4px 0 30px; border-bottom: 1px solid var(--linha); margin-bottom: 30px; }
.pf-av { display: grid; justify-items: center; gap: 8px; }
.pf-foto, .pf-ini { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; }
.pf-foto.grande, .pf-ini.grande { width: 112px; height: 112px; }
.pf-ini { border: 1px solid var(--vinho); color: var(--vinho); font-family: var(--serif); font-size: 18px; letter-spacing: .06em; background: #fff; }
.pf-ini.grande { font-size: 38px; }
.pf-mudar-foto { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--tinta-2); cursor: pointer; border-bottom: 1px solid var(--linha); padding-bottom: 2px; }
.pf-mudar-foto:hover { color: var(--vinho); border-color: var(--vinho); }
.pf-mudar-foto .ico, .pf .b-link .ico { width: 14px; height: 14px; }
.pf-cab-t h1 { font-size: 38px; text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; margin: 4px 0 10px; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 18px; color: var(--tinta-2); font-size: 13.5px; }
.pf-meta span { display: inline-flex; align-items: center; gap: 7px; }
.pf-meta .ico { width: 15px; height: 15px; color: var(--tinta-3); }
.pf-wa-linha { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--alerta); border-bottom: 1px solid var(--linha); color: var(--tinta); text-decoration: none; max-width: 640px; }
.pf-wa-linha > .ico:first-child { width: 22px; height: 22px; color: var(--alerta); flex: none; }
.pf-wa-linha > .ico:last-child { width: 16px; height: 16px; margin-left: auto; color: var(--alerta); flex: none; }
.pf-wa-linha b { color: var(--alerta); font-weight: 600; }
.pf-wa-linha:hover span { text-decoration: underline; text-underline-offset: 3px; }
.pf-corpo { display: grid; grid-template-columns: 210px 1fr; gap: 44px; align-items: start; }
.pf-nav { position: sticky; top: 18px; display: grid; border-top: 1px solid var(--linha); }
.pf-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--linha-2); color: var(--tinta-2); text-decoration: none; font-size: 13.5px; }
.pf-nav a .ico { width: 16px; height: 16px; color: var(--tinta-3); }
.pf-nav a:hover, .pf-nav a.ativo { color: var(--vinho); }
.pf-nav a.ativo { font-weight: 600; box-shadow: inset 2px 0 0 var(--alerta); padding-left: 10px; }
.pf-nav a[data-sec="whatsapp"] { color: var(--alerta); }
.pf-nav a[data-sec="whatsapp"] .ico { color: var(--alerta); }
.pf-secoes { display: grid; gap: 0; min-width: 0; }
.pf-sec { padding: 0 0 34px; margin: 0 0 34px; border-bottom: 1px solid var(--linha); scroll-margin-top: 16px; }
.pf-sec:last-child { border-bottom: 0; }
.pf-sec h2 { font-size: 22px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 18px; }
.pf-sec h3 { font-family: var(--serif); font-size: 16px; text-transform: uppercase; letter-spacing: .05em; margin: 22px 0 10px; }
.pf-grelha { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; max-width: 720px; }
.pf-grelha .pf-acoes, .pf-grelha .mut, .pf-grelha .erro { grid-column: 1 / -1; }
.pf-acoes { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pf-acoes .b { margin-left: auto; }
.pf-acoes .b + .b { margin-left: 0; }
.pf-prev { display: block; margin-top: 4px; font-size: 12.5px; min-height: 18px; }
.pf-prev a { display: inline-flex; align-items: center; gap: 5px; color: var(--vinho); }
.pf-prev .ico { width: 13px; height: 13px; }
.pf-atual { display: flex; align-items: center; gap: 9px; margin: 0 0 6px; font-size: 15px; }
.pf-atual .ico { width: 17px; height: 17px; color: var(--tinta-3); }
.pf-pendente, .pf-wa-ligado { display: grid; grid-template-columns: auto 1fr auto; gap: 12px 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); margin-top: 14px; }
.pf-pendente > .ico, .pf-wa-ligado > .ico { width: 20px; height: 20px; color: var(--vinho); }
.pf-wa-ligado > .ico { color: var(--verde); }
.pf-pendente > div:not(.pf-pend-acoes), .pf-wa-ligado > div:not(.pf-pend-acoes) { display: grid; gap: 2px; }
.pf-pend-acoes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pf-pass { display: grid; gap: 12px; max-width: 460px; }
.pf-forca { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 4px; align-items: center; font-size: 12px; color: var(--tinta-3); }
.pf-forca i { height: 3px; background: var(--linha); }
.pf-forca span { margin-left: 8px; min-width: 88px; }
.pf-forca[data-n="1"] i:nth-child(-n+1) { background: var(--alerta); }
.pf-forca[data-n="2"] i:nth-child(-n+2) { background: var(--ouro); }
.pf-forca[data-n="3"] i:nth-child(-n+3) { background: var(--vinho); }
.pf-forca[data-n="4"] i { background: var(--verde); }
.pf-regras { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--tinta-3); }
.pf-regras li { display: flex; align-items: center; gap: 8px; }
.pf-regras .ico { width: 14px; height: 14px; opacity: .35; }
.pf-regras li.ok { color: var(--verde); }
.pf-regras li.ok .ico { opacity: 1; }
.pf-caps { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--alerta); font-size: 13px; }
.pf-caps .ico { width: 15px; height: 15px; }
.pf-switch, .pf-switch-l { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.pf-switch-l { padding: 12px 0; border-bottom: 1px solid var(--linha-2); }
.pf-switch-l > span { display: grid; gap: 2px; }
.pf-switch-l b { font-weight: 600; }
.pf-switch input, .pf-switch-l input { appearance: none; -webkit-appearance: none; flex: none; width: 34px; height: 18px; border: 1px solid var(--tinta-3); border-radius: 10px; position: relative; margin: 2px 0 0; cursor: pointer; background: #fff; transition: background .15s, border-color .15s; }
.pf-switch input::after, .pf-switch-l input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--tinta-3); transition: transform .15s, background .15s; }
.pf-switch input:checked, .pf-switch-l input:checked { background: var(--vinho); border-color: var(--vinho); }
.pf-switch input:checked::after, .pf-switch-l input:checked::after { transform: translateX(16px); background: #fff; }
.pf-switch input:focus-visible, .pf-switch-l input:focus-visible { outline: 2px solid var(--alerta); outline-offset: 2px; }
.pf-notif { max-width: 640px; }
.pf-notif > .mut { margin-top: 12px; }
.pf-contas .ico, .pf-sec .lista .ico { color: var(--tinta-3); }
.pf-seg-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pf-seg-cab h3 { margin: 0; }
.pf-prog { display: flex; align-items: center; gap: 14px; max-width: 420px; margin: 0 0 16px; }
.pf-prog .medidor { flex: 1; }
.pf-prog b { font-family: var(--serif); font-size: 24px; font-weight: 400; }
/* WhatsApp */
.pf-wa { border-top: 2px solid var(--alerta); padding-top: 24px; }
.pf-wa-cab { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.pf-wa-cab .pf-wa-ico, .pf-wa-cab > .ico { width: 34px; height: 34px; color: var(--alerta); flex: none; stroke-width: 1.3; }
.pf-wa-cab h2 { color: var(--alerta); margin-bottom: 6px; }
.pf-wa-cab p { margin: 0; color: var(--tinta-2); font-size: 15px; max-width: 560px; }
.pf-wa-passos { list-style: none; counter-reset: p; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.pf-wa-passos li { counter-increment: p; display: grid; gap: 3px; padding: 14px 18px 14px 0; font-size: 13.5px; color: var(--tinta-2); }
.pf-wa-passos li + li { padding-left: 18px; border-left: 1px solid var(--linha-2); }
.pf-wa-passos li::before { content: counter(p); font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--alerta); }
.pf-wa-passos b { color: var(--tinta); font-weight: 600; }
.pf-wa-form { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; max-width: 620px; }
.pf-wa-form .rot { flex: 1 1 240px; }
.pf-wa-codigo { display: grid; justify-items: start; gap: 10px; margin: 20px 0 6px; padding: 18px 0; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.pf-wa-codigo > b { font-family: var(--serif); font-size: 44px; font-weight: 400; letter-spacing: .18em; color: var(--vinho); line-height: 1; }
.pf-wa-abrir { font-size: 16px; padding: 12px 22px; }
.pf-wa-nota { display: flex; align-items: center; gap: 9px; color: var(--tinta-3); font-size: 14px; margin: 6px 0 4px; }
.pf-wa-nota .ico { width: 16px; height: 16px; }
.pf-wa-cmd { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.pf-wa-cmd li { display: grid; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--linha-2); font-size: 13px; color: var(--tinta-2); }
.pf-wa-cmd code { font-family: var(--sans); font-size: 13.5px; color: var(--vinho); font-weight: 600; }
/* Confirmação de e-mail */
.pf-conf { max-width: 520px; margin: 40px auto; text-align: center; display: grid; justify-items: center; gap: 10px; }
.pf-conf h1 { font-size: 30px; text-transform: uppercase; letter-spacing: .05em; }
.pf-conf p { color: var(--tinta-2); margin: 0 0 8px; }
.pf-conf-ico { width: 42px !important; height: 42px !important; color: var(--verde); stroke-width: 1.2; }
.pf-conf-ico.erro { color: var(--alerta); }
.pf-conf-pagina { min-height: 100vh; display: grid; align-content: center; justify-items: center; padding: 24px; }
/* Olho nas passwords (todas as caixas) */
.pw-caixa { position: relative; display: block; }
.pw-caixa > input { width: 100%; padding-right: 42px; box-sizing: border-box; }
.pw-olho { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; background: none; border: 0; color: var(--tinta-3); cursor: pointer; padding: 0; }
.pw-olho:hover, .pw-olho[aria-pressed="true"] { color: var(--vinho); }
.pw-olho .ico { width: 18px; height: 18px; }
.quem-perfil { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.quem-perfil:hover b { text-decoration: underline; text-underline-offset: 3px; }
.quem-perfil img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
@media (max-width: 900px) {
  .pf-corpo { grid-template-columns: 1fr; gap: 18px; }
  .pf-nav { position: static; display: flex; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--linha); gap: 4px; }
  .pf-nav a { white-space: nowrap; border-bottom: 0; padding: 10px 8px; }
  .pf-nav a.ativo { box-shadow: inset 0 -2px 0 var(--alerta); padding-left: 8px; }
}
@media (max-width: 640px) {
  .pf-cab { grid-template-columns: 1fr; gap: 16px; justify-items: start; }
  .pf-av { grid-auto-flow: column; align-items: center; }
  .pf-foto.grande, .pf-ini.grande { width: 72px; height: 72px; font-size: 26px; }
  .pf-cab-t h1 { font-size: 28px; }
  .pf-grelha, .pf-wa-cmd, .pf-wa-passos { grid-template-columns: 1fr; }
  .pf-wa-passos li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--linha-2); }
  .pf-pendente, .pf-wa-ligado { grid-template-columns: auto 1fr; }
  .pf-pend-acoes { grid-column: 1 / -1; justify-content: flex-start; }
  .pf-wa-codigo > b { font-size: 36px; }
}

/* ---------- Avatares desenhados (public/js/avatares.js) ---------- */
.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; flex: none; vertical-align: middle; }
.av .av-svg, .com-av .av-svg { width: 100%; height: 100%; display: block; }
.av-sem-fundo, .com-av.av-sem-fundo { box-shadow: inset 0 0 0 1px rgba(53, 56, 46, .22); }
.av-ini { border: 1px solid var(--vinho, #702F2F); color: var(--vinho, #702F2F); font-family: var(--serif, Georgia, serif); background: #fff; letter-spacing: .04em; }
.av-foto { object-fit: cover; }
.com-av { overflow: hidden !important; padding: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; border-color: transparent !important; font-size: 0 !important; }
.com-av img { display: none; }
.pf-av-des.grande { width: 112px !important; height: 112px !important; }

/* Escolha: fotografia, avatar ou iniciais */
.pf-modo { display: inline-flex; gap: 2px; border-bottom: 1px solid var(--linha, #E6E6E6); }
.pf-modo-b { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 6px 8px; font: 12.5px var(--sans, Arimo, sans-serif); color: var(--tinta-2, #55554F); cursor: pointer; }
.pf-modo-b .ico { width: 14px; height: 14px; }
.pf-modo-b:hover { color: var(--tinta, #1A1A1A); }
.pf-modo-b.ativo { color: var(--vinho, #702F2F); border-bottom-color: var(--vinho, #702F2F); font-weight: 700; }
.pf-modo-b:focus-visible { outline: 2px solid var(--oliva, #35382E); outline-offset: 2px; }
.pf-av-acoes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; min-height: 22px; }

/* Seletor de avatar */
.avp { display: grid; gap: 16px; }
.avp-topo { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--linha, #E6E6E6); padding-bottom: 10px; }
.avp-grupos { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.avp-g { background: none; border: 0; padding: 4px 0; font: 13px var(--sans, Arimo, sans-serif); color: var(--tinta-2, #55554F); cursor: pointer; border-bottom: 1px solid transparent; }
.avp-g:hover { color: var(--tinta, #1A1A1A); }
.avp-g.ativo { color: var(--vinho, #702F2F); border-bottom-color: var(--vinho, #702F2F); font-weight: 700; }
.avp-procura { display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--linha-2, #CFCFC8); padding: 4px 2px; min-width: 220px; }
.avp-procura .ico { width: 15px; height: 15px; color: var(--tinta-3, #8A8A84); }
.avp-procura input { border: 0; outline: 0; font: 14px var(--sans, Arimo, sans-serif); background: transparent; width: 100%; }
.avp-corpo { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: start; }
.avp-grelha { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px 4px; max-height: 52vh; overflow: auto; padding: 4px; }
.avp-item { display: grid; justify-items: center; gap: 6px; background: none; border: 0; padding: 8px 2px; cursor: pointer; font: 11.5px/1.25 var(--sans, Arimo, sans-serif); color: var(--tinta-2, #55554F); text-align: center; }
.avp-item .av { transition: box-shadow .15s ease, transform .15s ease; }
.avp-item:hover .av { box-shadow: 0 0 0 1px var(--linha-2, #CFCFC8), 0 0 0 4px #fff, 0 0 0 5px var(--linha-2, #CFCFC8); }
.avp-item.ativo .av { box-shadow: 0 0 0 4px #fff, 0 0 0 5.5px var(--vinho, #702F2F); }
.avp-item.ativo span { color: var(--vinho, #702F2F); font-weight: 700; }
.avp-item:focus-visible { outline: 2px solid var(--oliva, #35382E); outline-offset: 2px; border-radius: 4px; }
.avp-vazio { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; padding: 20px 4px; }
.avp-lado { display: grid; gap: 14px; border-left: 1px solid var(--linha, #E6E6E6); padding-left: 20px; position: sticky; top: 0; }
.avp-previa { display: flex; align-items: flex-end; gap: 14px; min-height: 100px; }
.avp-nome { margin: 0; font-size: 13px; color: var(--tinta-2, #55554F); }
.avp-op { display: grid; gap: 8px; }
.rot-peq { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-3, #8A8A84); }
.avp-fundos, .avp-cores { display: flex; gap: 10px; }
.avp-tom { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--linha-2, #CFCFC8); cursor: pointer; padding: 0; }
.avp-tom[data-fundo="nenhum"] { background: linear-gradient(135deg, #fff 46%, var(--linha-2, #CFCFC8) 47%, var(--linha-2, #CFCFC8) 53%, #fff 54%) !important; }
.avp-tom.traco { background: #fff; position: relative; }
.avp-tom.traco::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2px solid var(--t); }
.avp-tom.ativo { box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--vinho, #702F2F); }
@media (max-width: 720px) {
  .avp-corpo { grid-template-columns: 1fr; }
  .avp-lado { border-left: 0; padding-left: 0; padding-top: 2px; position: static; grid-template-columns: auto 1fr; align-items: center; order: -1; }
  .avp-previa { min-height: 0; grid-row: span 3; }
  .avp-grelha { max-height: 46vh; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
  .avp-procura { min-width: 0; width: 100%; }
  .pf-modo-b span { font-size: 12px; }
}
@media (max-width: 640px) {
  .pf-av { grid-auto-flow: row !important; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 10px; align-items: center; justify-items: start; }
  .pf-av > .av, .pf-av > .pf-foto, .pf-av > .pf-ini { grid-row: span 2; }
  .pf-av-des.grande { width: 76px !important; height: 76px !important; }
  .pf-modo { max-width: 100%; }
  .pf-modo-b { padding: 6px 6px; }
  .pf-av-acoes { justify-content: flex-start; }
}
