/* ---------- Sua conta: opções de foto ---------- */
.cfg-foto-opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cfg-foto-op {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-align: left; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); color: var(--text);
  font: inherit; transition: border-color .15s, background .15s;
}
.cfg-foto-op:hover { border-color: var(--accent); }
.cfg-foto-op:focus-within, .cfg-foto-op:focus-visible { outline: none; box-shadow: var(--ring); }
.cfg-foto-op b { display: block; font-size: 13px; font-weight: 600; }
.cfg-foto-op small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.cfg-foto-ic { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
@media (max-width: 480px) { .cfg-foto-opcoes { grid-template-columns: 1fr; } }

/* ---------- criador de avatar ---------- */
.av-modal .modal-head h3 { display: flex; align-items: center; gap: 8px; }
.av-corpo { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.av-lado { position: sticky; top: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.av-preview { width: 220px; height: 220px; border-radius: 50%; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45), 0 0 0 4px var(--surface), 0 0 0 5px var(--border); overflow: hidden; }
.av-preview svg { display: block; width: 100%; height: 100%; }
.av-tipo { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.av-tipo button { padding: 6px 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.av-tipo button.ativo { background: var(--accent); color: var(--on-brand, #fff); }
.av-sorte { width: 100%; justify-content: center; }

.av-abas { display: flex; gap: 4px; flex-wrap: wrap; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.av-abas button { padding: 7px 13px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.av-abas button:hover { color: var(--text); background: var(--surface-2); }
.av-abas button.ativo { background: var(--accent-soft); color: var(--accent); }
.av-painel { max-height: 430px; overflow-y: auto; padding-right: 4px; }
.av-grupo { margin-bottom: 16px; }
.av-grupo h5 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.av-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.av-op {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 4px 6px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); cursor: pointer;
  color: var(--muted); font: inherit; font-size: 11.5px; line-height: 1.2; text-align: center;
  transition: border-color .12s, transform .1s, background .12s;
}
.av-op svg { width: 56px; height: 56px; border-radius: 50%; }
.av-op:hover { border-color: var(--accent); color: var(--text); }
.av-op:active { transform: scale(.97); }
.av-op.ativo { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; box-shadow: 0 0 0 1px var(--accent) inset; }
.av-op:focus-visible, .av-cor:focus-visible, .av-abas button:focus-visible, .av-tipo button:focus-visible { outline: none; box-shadow: var(--ring); }
.av-cores { display: flex; flex-wrap: wrap; gap: 8px; }
.av-cor {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; background: var(--c);
  border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); transition: transform .1s, box-shadow .12s;
}
.av-cor:hover { transform: scale(1.08); }
.av-cor.ativo { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.av-nota { font-size: 12.5px; color: var(--muted); }

@media (max-width: 720px) {
  .av-corpo { grid-template-columns: 1fr; }
  .av-lado { position: static; }
  .av-preview { width: 160px; height: 160px; }
  .av-painel { max-height: none; }
}
