/* ===========================================================
   VIP Secure — Private Channel
   Three-column Slack-style layout built on the site's
   existing CSS custom properties so dark / light themes
   work automatically.
   =========================================================== */

/* ─── Layout shell ──────────────────────────────────────── */

.vip-main {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: calc(var(--navbar-height) + var(--spacing-lg)) var(--spacing-lg) var(--spacing-xl);
}

.vip-hero {
    position: relative;
    padding: var(--spacing-xl) var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(ellipse at top left, rgba(var(--accent-primary-rgb), 0.18), transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(var(--accent-secondary-rgb), 0.14), transparent 60%),
        var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}
.vip-hero-content { max-width: 720px; }
.vip-title {
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 800;
    margin: 0 0 var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--text-primary);
}
.vip-title .title-icon { font-size: 1.2em; }
.vip-title .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.vip-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
}

.vip-auth-notice {
    padding: var(--spacing-lg);
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    text-align: center;
    color: var(--text-secondary);
}
.vip-auth-notice a {
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
}
.vip-auth-notice a:hover { text-decoration: underline; }

/* ─── Workspace grid ───────────────────────────────────── */

.vip-workspace {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 300px;
    gap: var(--spacing-md);
    min-height: calc(100vh - var(--navbar-height) - 260px);
    height: 70vh;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ─── Sidebar (left) ───────────────────────────────────── */

.vip-sidebar {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.vip-sidebar-head {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    background: var(--bg-tertiary);
}

.vip-sidebar-search {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
}
.vip-sidebar-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    outline: none;
}

.vip-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--text-tertiary);
}
.vip-section-count {
    background: var(--accent-primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.vip-invites-section { border-bottom: 1px solid var(--glass-border); padding-bottom: var(--spacing-sm); }
.vip-invites-list { padding: 0 var(--spacing-sm); display: flex; flex-direction: column; gap: var(--spacing-xs); }
.vip-invite-item {
    padding: var(--spacing-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}
.vip-invite-title { font-weight: 600; color: var(--text-primary); }
.vip-invite-meta { color: var(--text-secondary); font-size: 0.8rem; }
.vip-invite-actions { display: flex; gap: var(--spacing-xs); }

.vip-conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 var(--spacing-xs) var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.vip-list-empty {
    padding: var(--spacing-md);
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.vip-convo-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    transition: background var(--transition-fast);
    user-select: none;
}
.vip-convo-item:hover { background: var(--glass-bg); }
.vip-convo-item.active {
    background: rgba(var(--accent-primary-rgb), 0.18);
    box-shadow: inset 3px 0 0 var(--accent-primary);
}
.vip-convo-item.dragging { opacity: 0.5; }

.vip-convo-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-tertiary);
}
.vip-group-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    font-family: var(--font-mono);
}

.vip-convo-body { flex: 1; min-width: 0; }
.vip-convo-top {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-sm);
    align-items: baseline;
}
.vip-convo-name {
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vip-convo-time { font-size: 0.7rem; color: var(--text-tertiary); flex-shrink: 0; }
.vip-convo-preview {
    color: var(--text-secondary);
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vip-convo-item.has-unread .vip-convo-name,
.vip-convo-item.has-unread .vip-convo-preview { color: var(--text-primary); font-weight: 600; }
.vip-convo-unread {
    background: var(--accent-primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ─── Main panel (center) ──────────────────────────────── */

.vip-main-panel {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-width: 0;
}

.vip-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-secondary);
}
.vip-empty-icon { font-size: 3.5rem; margin-bottom: var(--spacing-md); }
.vip-empty-state h2 {
    font-size: 1.25rem;
    margin: 0 0 var(--spacing-xs);
    color: var(--text-primary);
}

.vip-conv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--glass-border);
    background: var(--bg-tertiary);
    position: relative;
}
.vip-conv-header-info { display: flex; align-items: center; gap: var(--spacing-sm); min-width: 0; }
.vip-conv-header-avatar {
    width: 36px; height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}
.vip-conv-header-name { font-weight: 600; color: var(--text-primary); }
.vip-conv-header-meta { font-size: 0.78rem; color: var(--text-secondary); }
.vip-conv-header-actions { display: flex; gap: var(--spacing-xs); position: relative; }

.vip-icon-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    width: 34px; height: 34px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.vip-icon-btn:hover { background: var(--glass-bg); color: var(--text-primary); }

.vip-conv-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 180px;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xs);
    z-index: 30;
}
.vip-menu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
    padding: var(--spacing-sm);
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
}
.vip-menu-item:hover { background: var(--glass-bg); }
.vip-menu-item-danger { color: var(--accent-danger); }

/* ─── Messages ────────────────────────────────────────── */

.vip-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}
.vip-messages-empty {
    margin: auto;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    text-align: center;
    padding: var(--spacing-xl);
}
.vip-load-older { text-align: center; padding: var(--spacing-sm); }

.vip-date-divider {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: var(--spacing-sm) 0;
    position: relative;
}
.vip-date-divider::before,
.vip-date-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 60px);
    height: 1px;
    background: var(--glass-border);
}
.vip-date-divider::before { left: 0; }
.vip-date-divider::after { right: 0; }

.vip-msg {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 70%;
    align-items: flex-end;
}
.vip-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.vip-msg-avatar {
    width: 28px; height: 28px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
    margin-bottom: 2px;
}
.vip-msg-bubble {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    word-break: break-word;
    /* Needed so the hover action bar (.msg-action-bar) positions
       itself relative to THIS bubble, not the .vip-msg container
       (which includes the avatar column and would offset oddly). */
    position: relative;
}
.vip-msg.mine .vip-msg-bubble {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
}

/* Tombstone bubble — overrides the regular bubble surface so a
   deleted message looks visually distinct without needing each
   surface to opt in. Applies to both incoming and outgoing deletes,
   since the "record preserved" semantics are the same for both. */
.vip-msg-bubble-tombstone,
.vip-msg.mine .vip-msg-bubble-tombstone {
    background: rgba(148, 163, 184, 0.08) !important;
    border: 1px dashed rgba(148, 163, 184, 0.32) !important;
    color: var(--text-tertiary) !important;
    box-shadow: none !important;
}
.vip-msg-bubble-tombstone .msg-tombstone {
    color: var(--text-tertiary);
}
.vip-msg-bubble-tombstone .msg-tombstone-admin { color: var(--accent-danger, #ef4444); }

/* Mine-side bubbles are right-aligned in the VIP layout, so anchor
   the action bar to the bubble's RIGHT and let it extend LEFT into
   the open chat space. Anchoring left would push a wider-than-the-
   bubble bar (icon + "Unsend" + countdown ≈ 140px) past the chat
   right wall — clipping the Unsend button for short messages. The
   default theirs-side anchor (left: 8px in composer-media.css)
   stays as-is for incoming bubbles, which sit flush to the left. */
.vip-msg.mine .msg-action-bar { right: 8px; left: auto; }
.vip-msg-sender {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 2px;
}
.vip-msg-text { white-space: pre-wrap; line-height: 1.45; }
.vip-msg-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
}
.vip-msg-images { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.vip-msg-images img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform var(--transition-fast);
}
.vip-msg-images img:hover { transform: scale(1.04); }

/* ─── Composer ───────────────────────────────────────── */

.vip-composer {
    padding: var(--spacing-md);
    border-top: 1px solid var(--glass-border);
    background: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vip-composer-row {
    display: flex;
    /* Use center alignment so a single-line textarea is visually centered
       with the send / emoji / attach buttons. When the textarea grows
       multi-line it will naturally expand the row. */
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs) var(--spacing-sm);
}
.vip-composer-row:focus-within { border-color: var(--accent-primary); }
/* Positioning wrapper for the overlay-mirror technique. Lets us stack
   a styled div behind the transparent-text textarea so @mentions
   render as chips while the user is typing. Flex: 1 moves from the
   textarea to this wrapper so the send button layout is unchanged. */
.vip-composer .composer-inputwrap {
    flex: 1;
    position: relative;
    min-width: 0;
}

/* The mirror MUST match the textarea pixel-for-pixel: same font,
   line-height, padding, box-sizing, etc. Any divergence causes the
   caret (visible in the textarea) to drift away from the rendered
   text (visible in the mirror). Chip styling below is chosen to NOT
   add/remove width — color + background only. */
.vip-composer .composer-mirror {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 7px 0;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.vip-composer .composer-mirror:empty::before {
    content: '';
}
.vip-composer .composer-mirror .composer-mention-chip {
    /* Color + background only — no padding/margin/font-weight so the
       chip doesn't change character width and the mirror stays
       aligned with the transparent textarea text. */
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-primary);
    border-radius: 3px;
}

.vip-composer textarea {
    position: relative;
    z-index: 1;
    width: 100%;
    display: block;
    min-height: 36px;
    max-height: 160px;
    background: transparent;
    border: none;
    /* Text itself is transparent so only the mirror below shows through.
       The caret stays visible via caret-color. */
    color: transparent;
    -webkit-text-fill-color: transparent;
    caret-color: var(--text-primary);
    resize: none;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    line-height: 1.45;
    outline: none;
    padding: 7px 0;
    margin: 0;
}
/* Preserve the native text selection highlight — without this, selecting
   transparent text would look invisible. */
.vip-composer textarea::selection {
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: var(--accent-primary);
}
.vip-composer textarea::-moz-selection {
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: var(--accent-primary);
}
.vip-composer textarea::placeholder {
    color: var(--text-tertiary);
    -webkit-text-fill-color: var(--text-tertiary);
}
/* Toolbar row sits BELOW the textarea so the input field gets the
   full width of the composer. Buttons are compact so they don't eat
   vertical space. */
.vip-composer-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 2px;
    min-height: 28px;
}
.vip-composer-tool {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition-fast), color var(--transition-fast);
    padding: 0;
    line-height: 1;
}
.vip-composer-tool:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.vip-send-btn {
    width: 36px; height: 36px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    flex-shrink: 0;
}
.vip-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.vip-send-btn:not(:disabled):hover { transform: scale(1.06); }

.vip-composer-meta {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-align: right;
    min-height: 0.85rem;
    margin-left: auto;
}
.vip-composer-meta.near-limit { color: var(--accent-warning); }
.vip-composer-meta.at-limit { color: var(--accent-danger); }

/* ─── Details panel (right) ──────────────────────────── */

.vip-details-panel {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.vip-details-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--glass-border);
    font-weight: 600;
    color: var(--text-primary);
}
.vip-members-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.vip-member-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
}
.vip-member-row:hover { background: var(--glass-bg); }
.vip-member-avatar {
    width: 30px; height: 30px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}
.vip-member-info { flex: 1; display: flex; align-items: center; gap: var(--spacing-xs); min-width: 0; }
.vip-member-name { color: var(--text-primary); font-weight: 500; }
.vip-member-badge {
    background: rgba(var(--accent-secondary-rgb), 0.18);
    color: var(--accent-secondary);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}
.vip-member-you { color: var(--text-tertiary); font-size: 0.75rem; }

.vip-drop-zone {
    margin: var(--spacing-sm);
    padding: var(--spacing-lg);
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}
.vip-drop-zone.drag-over {
    border-color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.12);
    color: var(--text-primary);
}
.vip-drop-zone-icon { font-size: 1.5rem; margin-bottom: 4px; }

.vip-details-actions { padding: var(--spacing-md); border-top: 1px solid var(--glass-border); }

/* ─── Buttons ──────────────────────────────────────── */

.vip-btn-primary, .vip-btn-ghost, .vip-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.vip-btn-primary {
    background: var(--gradient-primary);
    color: #fff;
}
.vip-btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.vip-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.vip-btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--glass-border);
}
.vip-btn-ghost:hover { background: var(--glass-bg); }
.vip-btn-danger {
    background: rgba(var(--accent-danger), 0.12);
    color: var(--accent-danger);
    border-color: var(--accent-danger);
}
.vip-btn-danger:hover { background: var(--accent-danger); color: #fff; }
.vip-btn-sm { padding: 4px 10px; font-size: 0.8rem; }

.vip-new-group-btn { width: 100%; }

/* ─── Modals ──────────────────────────────────────── */

.vip-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: var(--spacing-md);
    animation: vipFade 200ms ease-out;
}
@keyframes vipFade { from { opacity: 0; } to { opacity: 1; } }

.vip-modal {
    width: min(520px, 100%);
    max-height: 85vh;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.vip-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--glass-border);
}
.vip-modal-head h3 { margin: 0; font-size: 1.1rem; color: var(--text-primary); }
.vip-modal-body {
    padding: var(--spacing-md);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}
.vip-modal-actions {
    padding: var(--spacing-md);
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
}

.vip-form-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
}
.vip-form-input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    outline: none;
}
.vip-form-input:focus { border-color: var(--accent-primary); }
.vip-modal-search { margin-bottom: var(--spacing-xs); }
.vip-form-hint { font-size: 0.8rem; color: var(--text-tertiary); }
.vip-form-check {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
}

.vip-user-picker {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs);
    background: var(--bg-primary);
}
.vip-picker-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    user-select: none;
}
.vip-picker-row:hover { background: var(--glass-bg); }
.vip-picker-row img {
    width: 28px; height: 28px;
    border-radius: var(--radius-full);
    object-fit: cover;
}
.vip-picker-row span { color: var(--text-primary); flex: 1; }
.vip-picker-row .vip-picker-check {
    display: none;
    flex: 0;
    color: var(--accent-success);
    font-weight: 700;
}
.vip-picker-row.selected { background: rgba(var(--accent-primary-rgb), 0.18); }
.vip-picker-row.selected .vip-picker-check { display: inline; }

/* ─── Lightbox ─────────────────────────────────────── */

.vip-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    cursor: zoom-out;
}
.vip-lightbox.hidden { display: none; }
.vip-lightbox img { max-width: 92vw; max-height: 92vh; border-radius: var(--radius-md); }

/* ─── Responsive ───────────────────────────────────── */

@media (max-width: 960px) {
    .vip-workspace {
        grid-template-columns: 260px minmax(0, 1fr);
        height: 75vh;
    }
    .vip-details-panel {
        position: fixed;
        top: var(--navbar-height);
        right: 0;
        bottom: 0;
        width: min(320px, 90vw);
        z-index: 80;
        border-radius: 0;
    }
}

@media (max-width: 700px) {
    .vip-workspace {
        grid-template-columns: 1fr;
        height: 78vh;
    }
    .vip-sidebar {
        max-height: 240px;
    }
    .vip-msg { max-width: 85%; }
}

.hidden { display: none !important; }
