.avm-overlay{
      display:none;
      position:fixed;
      inset:0;
      z-index:9000;
      align-items:center;
      justify-content:center;
      padding:12px;
      box-sizing:border-box;
      background: radial-gradient(1200px 800px at 50% -10%, rgba(20,9,40,.92), rgba(5,6,10,.98));
      backdrop-filter: blur(12px);
    }
    .avm-shell{
      position:relative;
      width:min(620px, 95vw);
      min-width:0;
      max-width:95vw;
      max-height:calc(100dvh - 24px - env(safe-area-inset-bottom, 0px));
      overflow:auto;
      box-sizing:border-box;
      padding:18px;
      border-radius:24px;
      border:1px solid rgba(255,255,255,.16);
      background:
        radial-gradient(circle at top left, rgba(254,58,130,0.24), transparent 55%),
        linear-gradient(150deg, rgba(31,17,48,0.96), rgba(9,7,18,0.98));
      box-shadow:
        0 20px 60px rgba(0,0,0,0.85),
        0 0 0 1px rgba(255,255,255,0.05),
        0 0 24px rgba(254,58,130,0.5);
    }
    .avm-close{
      position:absolute;
      right:12px;
      top:10px;
      width:32px;
      height:32px;
      border-radius:999px;
      border:none;
      background:rgba(10,7,20,.8);
      color:#ffffffdd;
      cursor:pointer;
      font-size:18px;
      display:flex;
      align-items:center;
      justify-content:center;
      box-shadow:0 0 0 1px rgba(255,255,255,.12);
    }
    .avm-close:hover{ background: rgba(255,255,255,.08); }
    .avm-inner{
      display:grid;
      grid-template-columns:auto 1fr;
      gap:18px;
      align-items:center;
    }
    .avm-avatar-col{
      display:flex;
      flex-direction:column;
      align-items:center;
      gap:10px;
      padding-inline:4px;
      flex:0 0 auto;
    }
    .avm-avatar-ring{
      width:108px;
      height:108px;
      border-radius:999px;
      background: conic-gradient(from 210deg, var(--uu-color-accent, #fe3a82), #ffb86b, #4cc9f0, var(--uu-color-accent, #fe3a82));
      padding:3px;
      display:flex;
      align-items:center;
      justify-content:center;
      box-shadow:0 0 22px rgba(254,58,130,.5), 0 0 14px rgba(76,201,240,.35);
    }
    .avm-avatar-inner{
      width:100%;
      height:100%;
      border-radius:999px;
      background:radial-gradient(circle at 30% 0%, #3f275a, #120917);
      display:grid;
      place-items:center;
      color:var(--uu-color-white, #fff);
    }
    .avm-avatar-img{
      width:100%;
      height:100%;
      display:block;
      border-radius:999px;
      object-fit:cover;
      object-position:center;
    }
    .avm-avatar-badge{
      display:inline-flex;
      align-items:center;
      gap:6px;
      padding:4px 10px;
      border-radius:999px;
      font-size:.8rem;
      background:rgba(7,5,15,.88);
      border:1px solid rgba(255,255,255,.22);
      color:#ffe5ff;
      text-transform:uppercase;
      letter-spacing:.06em;
      white-space:nowrap;
    }
    .avm-avatar-badge .material-icons{ font-size:16px; }
    .avm-bubble-col{ display:flex; min-width:0; }
    .avm-bubble{
      position:relative;
      width:100%;
      max-width:100%;
      min-width:0;
      padding:14px 16px;
      border-radius:18px;
      background:radial-gradient(circle at top, rgba(32,19,55,.95), rgba(19,12,33,.96));
      border:1px solid rgba(255,255,255,.16);
      box-shadow:0 18px 38px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.35) inset;
      box-sizing:border-box;
    }
    .avm-bubble::before{
      content:"";
      position:absolute;
      left:-12px;
      bottom:26px;
      width:20px;
      height:20px;
      background:radial-gradient(circle at 10% 80%, rgba(32,19,55,.98), rgba(19,12,33,.98));
      border-left:1px solid rgba(255,255,255,.18);
      border-bottom:1px solid rgba(255,255,255,.18);
      transform:rotate(45deg);
      box-shadow:-8px 8px 18px rgba(0,0,0,.5);
    }
    .avm-kicker{
      font-size:.8rem;
      text-transform:uppercase;
      letter-spacing:.15em;
      color:#ffb4e9;
      margin-bottom:6px;
    }
    .avm-title{
      margin:0 0 10px 0;
      font-size:1.2rem;
      line-height:1.25;
      color:var(--uu-color-white, #fff);
      font-weight:900;
    }
    .avm-upload{
      border-radius:999px;
      border:1px solid rgba(255,255,255,.2);
      padding:9px 14px;
      font-size:.9rem;
      font-weight:700;
      cursor:pointer;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:7px;
      background: rgba(9,7,18,.85);
      color:var(--uu-color-white, #fff);
      max-width:100%;
      box-sizing:border-box;
      margin-bottom:12px;
      white-space:nowrap;
    }
    .avm-upload:hover{ background: rgba(29,19,51,.95); }
    .avm-crop-wrap{
      width:min(220px, 62vw);
      height:min(220px, 62vw);
      max-width:100%;
      margin:0 auto 14px;
      border-radius:50%;
      overflow:hidden;
      position:relative;
    }
    .avm-crop-img{
      display:none;
      min-width:100%;
      min-height:100%;
    }
    .avm-actions{
      width:100%;
      display:flex;
      gap:8px;
      flex-wrap:wrap;
      align-items:stretch;
      min-width:0;
    }
    .avm-btn{
      border-radius:999px;
      border:1px solid rgba(255,255,255,.2);
      padding:9px 14px;
      font-size:.9rem;
      font-weight:700;
      cursor:pointer;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-height:40px;
      box-sizing:border-box;
      flex:1 1 180px;
      min-width:0;
      max-width:100%;
      background:rgba(9,7,18,.85);
      color:var(--uu-color-white, #fff);
    }
    .avm-btn.primary{
      background:linear-gradient(135deg, var(--uu-color-accent, #fe3a82), #ff8a63);
      border-color:transparent;
      box-shadow:0 10px 24px rgba(254,58,130,.5), 0 0 18px rgba(254,58,130,.6);
    }
    .avm-btn.primary:hover{ filter:brightness(1.05); }
    .avm-btn.ghost:hover{ background:rgba(29,19,51,.95); }
    @media (max-width: 640px){
      .avm-overlay{ padding:8px; }
      .avm-shell{
        width:100%;
        max-width:100%;
        border-radius:18px;
        padding:12px;
        max-height:calc(100dvh - (env(safe-area-inset-bottom, 0px) + 16px));
      }
      .avm-inner{
        grid-template-columns:1fr;
        row-gap:10px;
      }
      .avm-avatar-col{
        flex-direction:row;
        justify-content:flex-start;
        gap:12px;
        padding-inline:0;
      }
      .avm-avatar-ring{ width:80px; height:80px; }
      .avm-bubble{
        padding:12px;
        border-radius:14px;
      }
      .avm-bubble::before{
        left:24px;
        bottom:auto;
        top:-10px;
        transform:rotate(225deg);
      }
      .avm-title{ font-size:1.04rem; line-height:1.25; }
      .avm-actions{ gap:6px; }
      .avm-btn{
        min-height:40px;
        padding:8px 12px;
        font-size:.84rem;
        flex:1 1 calc(50% - 3px);
      }
      .avm-close{
        width:30px;
        height:30px;
        right:10px;
        top:8px;
      }
    }
    @media (max-width: 420px){
      .avm-shell{
        width:min(98vw, 620px);
        max-width:min(98vw, 620px);
        border-radius:14px;
        padding:10px;
      }
      .avm-avatar-ring{ width:64px; height:64px; }
      .avm-avatar-badge{ display:none; }
      .avm-title{ font-size:1rem; }
      .avm-upload{
        width:100%;
        justify-content:center;
      }
      .avm-btn{
        flex:1 1 100%;
        font-size:.82rem;
        min-height:38px;
      }
    }
