/* Menu akun (drawer) dan Edit profil */
body.lock { overflow: hidden; }
.head-av { display: block; border-radius: 50%; }
.avatar.huge { width: 120px; font-size: 60px; }

#drawer-root { position: fixed; inset: 0; z-index: 75; pointer-events: none; }
#drawer-root.open { pointer-events: auto; }
.dr-back { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); opacity: 0; transition: opacity 0.28s; }
.dr {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(84%, 380px); overflow-y: auto; background: #0a0a0a;
  transform: translateX(-102%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); padding-bottom: env(safe-area-inset-bottom);
}
#drawer-root.open .dr-back { opacity: 1; }
#drawer-root.open .dr { transform: none; }
.dr-accs {
  display: flex; gap: 14px; padding: calc(28px + env(safe-area-inset-top)) 14px 16px; background: #232323; border-bottom: 1px solid #353535;
  overflow-x: auto; scrollbar-width: none;
}
.dr-accs::-webkit-scrollbar { display: none; }
.dr-acc { display: grid; justify-items: center; align-content: start; gap: 9px; width: 88px; flex: none; font-size: 12.5px; color: #fff; }
.dr-acc .avatar { width: 52px; font-size: 24px; }
.dr-acc.cur .avatar { box-shadow: 0 0 0 2px #232323, 0 0 0 4px #fff; }
.dr-acc > span:last-child { max-width: 88px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-acc .plus { width: 52px; aspect-ratio: 1; border-radius: 50%; background: #343434; color: #ddd; display: grid; place-items: center; }
.dr-menu { display: grid; padding: 8px 4px; }
.dr-menu button { display: flex; align-items: center; gap: 22px; width: 100%; padding: 16px 16px; text-align: left; font-size: 19px; color: #fff; border-radius: 12px; }
.dr-menu button:active { background: rgba(255, 255, 255, 0.06); }
.dr-menu svg { color: #b3b3b3; flex: none; }

#edit-root { position: fixed; inset: 0; z-index: 76; pointer-events: none; }
#edit-root.open { pointer-events: auto; }
.ep { position: absolute; inset: 0; background: #121212; overflow-y: auto; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
#edit-root.open .ep { transform: none; }
.ep-in { max-width: 520px; margin: 0 auto; padding-bottom: 40px; }
.ep-head { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; padding: calc(12px + env(safe-area-inset-top)) 12px 0; height: calc(64px + env(safe-area-inset-top)); }
.ep-head .icon { width: 44px; height: 44px; color: #fff; }
.ep-head b { text-align: center; font-size: 17px; font-weight: 800; }
.ep-save { padding: 10px 8px; font-size: 17px; font-weight: 700; color: #fff; }
.ep-save:disabled { color: #7a7a7a; }
.ep-av { position: relative; width: 120px; margin: 44px auto 34px; }
.ep-pen { position: absolute; right: -4px; bottom: -4px; width: 30px; height: 30px; border-radius: 6px; background: #fff; color: #000; display: grid; place-items: center; }
.ep-row { display: flex; align-items: center; margin: 0 16px; padding: 14px 0 12px; border-bottom: 1px solid #333; }
.ep-row:focus-within { border-color: #fff; }
.ep-row b { width: 30%; flex: none; font-size: 17px; font-weight: 800; }
.ep-row input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 19px; }
.ep-err { margin: 10px 16px 0; min-height: 20px; font-size: 14px; color: var(--danger); }
@media (prefers-reduced-motion: reduce) { .dr, .ep { transition: none; } }
