.fx-open{display:flex;align-items:center;gap:10px}
.fx-open-label{flex:1;text-align:left}
.fx-badge{min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--accent);color:var(--on-accent);font-size:.66rem;font-weight:800;display:inline-flex;align-items:center;justify-content:center}
.fx-overlay{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(6,6,8,.66);backdrop-filter:blur(4px);animation:fx-fade .14s ease}
.fx-overlay[hidden]{display:none}
@keyframes fx-fade{from{opacity:0}to{opacity:1}}
.fx-panel{width:min(470px,100%);max-height:min(660px,calc(100vh - 40px));display:flex;flex-direction:column;border-radius:16px;border:1px solid var(--line-strong);background:var(--surface-1);box-shadow:var(--shadow-pop);overflow:hidden;animation:fx-pop .16s var(--ease)}
@keyframes fx-pop{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:none}}
.fx-head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line)}
.fx-title{margin:0;font-size:1rem;font-weight:750;letter-spacing:-.01em;flex:1}
.fx-head-actions{display:flex;gap:4px}
.fx-icon-btn{width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:9px;background:0 0;color:var(--text-muted);font-family:inherit;font-size:.86rem;cursor:pointer;transition:background .12s var(--ease),color .12s var(--ease)}
.fx-icon-btn:hover{background:var(--surface-3);color:var(--text)}
.fx-icon-btn.fx-danger:hover{background:#3a1620;color:#ff8d8d}
.fx-tabs{display:flex;gap:6px;padding:10px 16px 0}
.fx-tab{padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface-1);color:var(--text-muted);font-family:inherit;font-size:.76rem;font-weight:650;cursor:pointer;transition:all .14s var(--ease)}
.fx-tab:hover{color:var(--text);border-color:var(--line-strong)}
.fx-tab.is-active{background:var(--accent-soft);border-color:var(--accent-ring);color:var(--accent)}
.fx-body{flex:1;min-height:190px;overflow-y:auto;padding:14px 16px 18px;display:flex;flex-direction:column;gap:10px}
.fx-body::-webkit-scrollbar{width:8px}
.fx-body::-webkit-scrollbar-thumb{background:var(--surface-3);border-radius:999px}
.fx-list{display:flex;flex-direction:column;gap:6px}
.fx-row{display:flex;align-items:center;gap:11px;padding:8px;border-radius:11px;border:1px solid transparent;transition:background .12s var(--ease),border-color .12s var(--ease)}
.fx-row:hover{background:var(--surface-2);border-color:var(--line)}
.fx-row.is-muted{opacity:.72}
.fx-avatar{position:relative;width:38px;height:38px;flex:none;border-radius:50%;overflow:hidden;background:var(--surface-3);display:grid;place-items:center;font-size:.86rem;font-weight:750;color:var(--text-faint)}
.fx-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.fx-avatar.is-online::after{content:"";position:absolute;right:0;bottom:0;width:10px;height:10px;border-radius:50%;background:#3ecf7a;border:2px solid var(--surface-1)}
.fx-info{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.fx-name{font-size:.86rem;font-weight:650;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fx-sub{font-size:.72rem;color:var(--text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fx-row-actions{display:flex;align-items:center;gap:6px;flex:none}
.fx-btn{padding:7px 13px;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface-2);color:var(--text);font-family:inherit;font-size:.76rem;font-weight:700;cursor:pointer;transition:background .13s var(--ease),color .13s var(--ease),border-color .13s var(--ease)}
.fx-btn:hover{background:var(--surface-3)}
.fx-btn:disabled{opacity:.5;cursor:default}
.fx-btn-primary{background:var(--accent);border-color:transparent;color:var(--on-accent)}
.fx-btn-primary:hover{background:var(--accent-hover);color:var(--on-accent)}
.fx-empty{margin:16px 0;font-size:.82rem;color:var(--text-faint);text-align:center}
.fx-section{margin:8px 0 2px;font-size:.68rem;font-weight:750;letter-spacing:.12em;text-transform:uppercase;color:var(--text-faint)}
.fx-add{display:flex;gap:8px}
.fx-input{flex:1;min-width:0;padding:9px 13px;border-radius:10px;border:1px solid var(--line);background:var(--surface-2);color:var(--text);font-family:inherit;font-size:.85rem;outline:none;transition:border-color .14s var(--ease)}
.fx-input:focus{border-color:var(--accent-ring)}
.fx-result{margin:0;font-size:.78rem;color:var(--text-muted);min-height:1em}
.fx-hint{margin:0;font-size:.72rem;line-height:1.45;color:var(--text-faint)}
.fx-settings{padding:12px 16px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:6px}
.fx-settings[hidden]{display:none}
.fx-toggle{display:flex;align-items:center;gap:8px;font-size:.82rem;color:var(--text);cursor:pointer}
.fx-toggle input{width:16px;height:16px;accent-color:var(--accent);cursor:pointer}
.fx-note{position:fixed;left:50%;bottom:96px;transform:translateX(-50%) translateY(6px);z-index:90;padding:9px 16px;border-radius:999px;background:var(--surface-3);border:1px solid var(--line-strong);color:var(--text);font-size:.82rem;font-weight:600;box-shadow:var(--shadow-lift);opacity:0;pointer-events:none;transition:opacity .16s var(--ease),transform .16s var(--ease)}
.fx-note.is-on{opacity:1;transform:translateX(-50%)}
.fx-profile{display:flex;align-items:center;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.fx-profile-count{font-size:.78rem;color:var(--text-faint);flex:1}
.fx-profile-tag{padding:3px 9px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:.66rem;font-weight:750;letter-spacing:.06em;text-transform:uppercase}
@media (max-width:520px){
  .fx-overlay{padding:10px;align-items:flex-end}
  .fx-panel{max-height:calc(100vh - 24px)}
  .fx-row-actions .fx-btn{padding:6px 10px;font-size:.72rem}
}
