
  body.amigos #amigosPag { max-width: none; margin: 0; padding: 0; }
  body.amigos { background: #f0f2f5; }
  .amf { display: grid; grid-template-columns: 360px 1fr; min-height: calc(100vh - 56px); }
  .amf-lado { position: sticky; top: 56px; align-self: start; height: calc(100vh - 56px); overflow-y: auto; background: #fff; padding: 12px 8px; box-shadow: 1px 0 2px rgba(0,0,0,.08); }
  .amf-lado-topo { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 10px; }
  .amf-lado-topo h1 { font-size: 24px; font-weight: 800; }
  .amf-eng { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #e4e6eb; cursor: pointer; font-size: 20px; display: grid; place-items: center; transition: background .2s, transform .3s; }
  .amf-eng:hover { background: #d8dadf; transform: rotate(60deg); }
  .amf-item { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; border-radius: 8px; padding: 8px; cursor: pointer; text-align: left; font-size: 16px; font-weight: 600; color: #050505;
    transition: background .15s; }
  .amf-item:hover { background: #f2f2f2; }
  .amf-item.on { background: #f0f2f5; }
  .amf-ic { width: 36px; height: 36px; border-radius: 50%; background: #e4e6eb; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; transition: background .2s, color .2s, transform .25s cubic-bezier(.34,1.56,.64,1); }
  .amf-item.on .amf-ic { background: #0866ff; color: #fff; }
  .amf-item:hover .amf-ic { transform: scale(1.08); }
  .amf-txt { flex: 1; } .amf-txt small { display: block; font-size: 12px; font-weight: 600; color: #0866ff; }
  .amf-seta { font-size: 22px; color: #65676b; }
  .amf-alc { display: flex; gap: 10px; align-items: center; margin: 14px 8px 0; padding: 12px; border-top: 1px solid #e4e6eb; color: #65676b; font-size: 13px; }
  .amf-alc i { font-size: 22px; color: #050505; } .amf-alc b { color: #050505; display: block; font-size: 13px; }
  .amf-conteudo { padding: 32px 36px 40px; min-width: 0; }
  .amf-sec { animation: aparecer .35s ease; }
  .amf-sec-topo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
  .amf-sec-topo h2 { font-size: 20px; font-weight: 800; }
  .amf-sec-topo .amf-link, .amf-sec-topo .amf-cinza { margin-left: auto; }
  .amf-link { border: 0; background: none; color: #0866ff; font-size: 16px; cursor: pointer; padding: 6px 8px; border-radius: 6px; font-family: inherit; }
  .amf-link:hover { background: #e7f0ff; }
  .amf-cont { color: #65676b; font-size: 15px; font-weight: 600; }
  .amf-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; }
  .amf-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.18); display: flex; flex-direction: column; border: 1px solid #dddfe2;
    animation: amfEntra .4s cubic-bezier(.2,.8,.2,1) both; transition: box-shadow .25s, transform .25s, opacity .25s; }
  .amf-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.14); transform: translateY(-2px); }
  .amf-card.saindo { opacity: 0; transform: scale(.94); }
  .amf-grade .amf-card:nth-child(2) { animation-delay: .03s; } .amf-grade .amf-card:nth-child(3) { animation-delay: .06s; } .amf-grade .amf-card:nth-child(4) { animation-delay: .09s; }
  .amf-grade .amf-card:nth-child(5) { animation-delay: .12s; } .amf-grade .amf-card:nth-child(6) { animation-delay: .15s; } .amf-grade .amf-card:nth-child(7) { animation-delay: .18s; }
  .amf-grade .amf-card:nth-child(n+8) { animation-delay: .21s; }
  @keyframes amfEntra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .amf-foto { aspect-ratio: 1; width: 100%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; color: #fff; overflow: hidden; position: relative;
    background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 60%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000)); }
  .amf-foto span { font-size: 64px; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 4px 18px rgba(0,0,0,.25); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
  .amf-foto i { font-size: 72px; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
  .amf-foto:hover span, .amf-foto:hover i { transform: scale(1.08); }
  .amf-info { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
  .amf-nome { border: 0; background: none; padding: 0; text-align: left; font: 600 17px var(--nd-fonte); color: #050505; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .amf-nome:hover { text-decoration: underline; }
  .amf-comum, .amf-dist { display: flex; align-items: center; gap: 5px; color: #65676b; font-size: 14px; margin-top: 3px; min-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .amf-dist { font-size: 13px; margin-top: 0; }
  .amf-mini { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 1px #fff; }
  .amf-bts { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 10px; }
  .amf-azul, .amf-cinza { height: 36px; width: 100%; border: 0; border-radius: 6px; font: 700 15px var(--nd-fonte); cursor: pointer;
    transition: background .15s, transform .15s; display: flex; align-items: center; justify-content: center; gap: 6px; }
  .amf-azul { background: #0866ff; color: #fff; } .amf-azul:hover { background: #0759e0; }
  .amf-cinza { background: #e4e6eb; color: #050505; } .amf-cinza:hover { background: #d8dadf; }
  .amf-azul:active, .amf-cinza:active { transform: scale(.97); }
  .amf-cinza:disabled { opacity: .6; cursor: default; }
  .amf-hr { border: 0; border-top: 1px solid #ced0d4; margin: 26px 0; }
  .amf-vazio { color: #65676b; font-size: 15px; padding: 8px 0; }
  .amf-raio { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid #dddfe2; border-radius: 20px; padding: 3px; margin-left: 6px; }
  .amf-raio span { font-size: 13px; color: #65676b; font-weight: 700; padding: 0 6px 0 8px; }
  .amf-raio button { border: 0; background: none; border-radius: 16px; padding: 5px 12px; font: 700 13px var(--nd-fonte); cursor: pointer; color: #050505; transition: background .2s, color .2s; }
  .amf-raio button.on { background: #050505; color: #fff; }
  .amf-sec-topo .amf-raio + .amf-link { margin-left: auto; }
  .amf-aviso { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 8px; padding: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
  .amf-aviso > i { font-size: 30px; color: #65676b; } .amf-aviso > div { flex: 1; } .amf-aviso p { color: #65676b; font-size: 14px; margin-top: 4px; }
  .amf-aviso .amf-azul { width: auto; padding: 0 16px; flex-shrink: 0; }
  .amf-caixa { background: #fff; border-radius: 8px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.18); margin-bottom: 14px; }
  .amf-caixa h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; } .amf-caixa h3 small { color: #65676b; font-weight: 600; font-size: 13px; }
  .amf-aniv { display: flex; align-items: center; gap: 12px; padding: 8px 0; } .amf-aniv > div { flex: 1; } .amf-aniv small { display: block; color: #65676b; font-size: 13px; }
  .amf-aniv .amf-azul { width: auto; padding: 0 14px; }
  .amf-av { width: 44px; height: 44px; border-radius: 50%; border: 0; color: #fff; font-weight: 800; font-size: 18px; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
  .amf-av.mini { width: 22px; height: 22px; font-size: 11px; cursor: default; }
  .amf-lista-membros { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .amf-chip { display: inline-flex; align-items: center; gap: 6px; background: #f0f2f5; border-radius: 16px; padding: 4px 6px 4px 4px; font-size: 14px; font-weight: 600; }
  .amf-chip button { border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: #65676b; }
  .amf-lista-membros select { height: 32px; border: 1px solid #ccd0d5; border-radius: 16px; padding: 0 10px; font: 600 14px var(--nd-fonte); background: #fff; cursor: pointer; }
  .amf-cfg-linha { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #eee; font-size: 15px; }
  .amf-cfg-linha small { display: block; color: #65676b; font-size: 13px; }
  .amf-cfg-linha input[type=checkbox] { width: 20px; height: 20px; accent-color: #0866ff; }
  .amf-cfg-linha select { height: 34px; border: 1px solid #ccd0d5; border-radius: 6px; padding: 0 8px; font: 600 14px var(--nd-fonte); }
  @media (max-width: 900px) {
    .amf { grid-template-columns: 1fr; }
    .amf-lado { position: static; height: auto; display: flex; gap: 6px; overflow-x: auto; padding: 8px; }
    .amf-lado-topo h1, .amf-alc, .amf-seta, .amf-txt small { display: none; }
    .amf-lado-topo { padding: 0; }
    .amf-item { width: auto; white-space: nowrap; font-size: 14px; padding: 6px 10px 6px 6px; }
    .amf-ic { width: 28px; height: 28px; font-size: 16px; }
    .amf-conteudo { padding: 18px 12px 30px; }
    .amf-grade { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  }
