/* x-live · picker.css — выбор собеседника */
.picker { border: 0; padding: 0; background: transparent; color: var(--ink, #eee); width: min(460px, 100vw); max-width: 100vw; max-height: 100dvh; margin: auto; overflow: visible; }
.picker::backdrop { background: rgba(6, 6, 8, .6); backdrop-filter: blur(6px); }
.pk-box { display: flex; flex-direction: column; gap: 10px; background: var(--bg, #111); border: 1px solid var(--line, #333); border-radius: 22px; padding: 16px 14px 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); max-height: min(640px, 86dvh); }
.pk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 0 2px; }
.pk-head b { display: block; font-size: 18px; }
.pk-head small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted, #999); }
.pk-x { border: 0; background: var(--bg2, #222); color: var(--ink, #eee); width: 34px; height: 34px; border-radius: 50%; font-size: 14px; cursor: pointer; flex: none; }
.pk-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line, #333); background: var(--bg2, #1b1b1f); border-radius: 14px; padding: 0 12px; }
.pk-search:focus-within { border-color: var(--accent, #fff); }
.pk-search svg { width: 18px; height: 18px; flex: none; color: var(--muted, #999); }
.pk-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; font-size: 16px; padding: 12px 0; }
.pk-chips { display: flex; gap: 8px; }
.pk-chip { border: 1px solid var(--line, #333); background: transparent; color: var(--muted, #999); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12px; cursor: pointer; }
.pk-chip.active { background: var(--accent, #fff); color: var(--accent-ink, #000); border-color: var(--accent, #fff); }
.pk-list { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; min-height: 120px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
.pk-sec { font: 10px "DM Mono","JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #999); padding: 12px 6px 6px; }
.pk-row { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-radius: 14px; cursor: pointer; min-height: 56px; -webkit-tap-highlight-color: transparent; }
.pk-row:hover, .pk-row:focus-visible { background: var(--bg2, #1b1b1f); outline: 0; }
.pk-row:active { transform: scale(.99); }
.pk-ava { position: relative; width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--bg2, #222); border: 1px solid var(--line, #333); font-weight: 800; font-size: 14px; }
.pk-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pk-dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #666; border: 2px solid var(--bg, #111); }
.pk-dot.on { background: #2ecc71; }
.pk-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pk-who b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-who small { font-size: 12px; color: var(--muted, #999); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-on { color: #2ecc71; font-style: normal; }
.pk-acts { display: flex; gap: 6px; flex: none; }
.pk-act { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line, #333); background: var(--bg2, #1b1b1f); color: var(--ink, #eee); font-size: 16px; cursor: pointer; display: grid; place-items: center; }
.pk-act:hover { border-color: var(--accent, #fff); }
.pk-empty { text-align: center; color: var(--muted, #999); font-size: 13px; padding: 28px 12px; margin: 0; }

@media (max-width: 640px) {
  .picker { width: 100vw; margin: auto 0 0; }
  .pk-box { border-radius: 22px 22px 0 0; max-height: 88dvh; }
}

/* Кнопки в шапке списка чатов и скрытое поле логина для менеджера паролей. */
.dm-head-btns { float: right; display: inline-flex; gap: 8px; }
.dm-head-btns .iconbtn { float: none; width: 34px; height: 34px; font-size: 16px; display: grid; place-items: center; cursor: pointer; background: var(--bg2, #222); color: var(--ink, #eee); }
.pw-ghost { position: absolute !important; opacity: 0; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; pointer-events: none; }
.live-room.mine { box-shadow: 0 0 0 1.5px var(--accent, #fff) inset; }
