/* Settings drawer */
.hdr-btn {
  width: 44px; height: 44px; border: none; border-radius: 12px; background: rgba(255, 255, 255, 0.16);
  color: #fff; font-size: 24px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  position: relative; flex: 0 0 auto; cursor: pointer;
}
.menu-dot { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--pink); }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: #fff; z-index: 310;
  transform: translateX(-105%); transition: transform 0.22s ease; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(12px + var(--safe-top)) 0 calc(16px + var(--safe-bottom)); box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
}
.drawer.open { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-backdrop { transition: none; } }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 8px 16px 14px; border-bottom: 1px solid var(--border); }
.drawer-head strong { font-size: 16px; }
.drawer-sub { font-size: 12px; color: var(--muted); }
.drawer-logo { border-radius: 10px; }
.drawer-close { margin-left: auto; width: 44px; height: 44px; border: none; background: #f3f3f3; border-radius: 50%; font-size: 22px; }
.drawer-list { display: flex; flex-direction: column; padding: 6px 0; }
.drawer-item {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border: none; background: none;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; border-bottom: 1px solid #f5eef0;
}
.drawer-item .di-icon { width: 26px; text-align: center; font-size: 18px; }
.drawer-item .di-label { flex: 1; }
.drawer-item .di-chev { color: var(--muted); font-size: 20px; }
.unread-dot { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.drawer-foot { font-size: 11px; color: var(--muted); padding: 12px 16px; margin: 0; }
.drawer-head > div { min-width: 0; }
.drawer-head .drawer-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
