/* ═══════════════════════════════════════════════════════════════
   TEAM VISION v9.0 — Command Center
   Layout: Header + (Membres | Centre[tabs] | Sidebar)
   ═══════════════════════════════════════════════════════════════ */

#view-team-vision {
    display: none;
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #080810;
    padding: 0;
    max-width: none;
    margin: 0;
}
#view-team-vision.active {
    display: flex;
    flex-direction: column;
}

/* ── ROOT GRID ── */
.tv-root {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: #080810;
    color: #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
    position: relative;
}

/* Fond cosmos */
.tv-root::before {
    content: '';
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(ellipse 70% 50% at 15% 0%,   rgba(99,54,255,.12) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 85% 100%,  rgba(6,182,212,.08) 0%, transparent 55%),
        radial-gradient(1px 1px at  8% 14%, rgba(255,255,255,.3)  0%, transparent 100%),
        radial-gradient(1px 1px at 23% 47%, rgba(99,54,255,.4)    0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 43% 8%,  rgba(255,255,255,.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 63% 72%, rgba(6,182,212,.35)   0%, transparent 100%),
        radial-gradient(1px 1px at 79% 31%, rgba(255,255,255,.2)  0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 16% 83%, rgba(6,182,212,.25) 0%, transparent 100%);
}
.tv-root > * { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.tv-header {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 56px;
    background: rgba(255,255,255,.022);
    border-bottom: 1px solid rgba(255,255,255,.06);
    gap: 16px;
    flex-shrink: 0;
    z-index: 10;
}
.tv-header-left, .tv-header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tv-header-center { flex: 1; display: flex; justify-content: center; }

.tv-brand-orb {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #6336ff, #06b6d4);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(99,54,255,.5), 0 0 28px rgba(99,54,255,.18);
    animation: tv-orb-pulse 4s ease-in-out infinite;
}
@keyframes tv-orb-pulse {
    0%,100% { box-shadow: 0 0 14px rgba(99,54,255,.5),  0 0 28px rgba(99,54,255,.18); }
    50%      { box-shadow: 0 0 22px rgba(99,54,255,.85), 0 0 44px rgba(6,182,212,.28); }
}

.tv-brand-text { display: flex; flex-direction: column; }
.tv-brand-name {
    font-size: 14px; font-weight: 800; letter-spacing: -.3px; line-height: 1.2;
    background: linear-gradient(135deg, #a78bfa, #67e8f9);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.tv-brand-ws { font-size: 10.5px; color: rgba(255,255,255,.32); }

/* Tab bar */
.tv-tab-bar {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    padding: 3px;
}
.tv-tab {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,.45);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, color .18s;
    white-space: nowrap;
}
.tv-tab svg { opacity: .7; }
.tv-tab:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); }
.tv-tab--active {
    background: rgba(99,54,255,.2);
    color: #c4b5fd;
    box-shadow: 0 1px 4px rgba(99,54,255,.25);
}
.tv-tab--active svg { opacity: 1; }

.tv-online-pill {
    display: flex; align-items: center; gap: 6px;
    padding: 5px 11px 5px 8px;
    background: rgba(16,185,129,.07);
    border: 1px solid rgba(16,185,129,.2);
    border-radius: 20px;
    font-size: 11.5px; font-weight: 600; color: #34d399;
}
.tv-pulse-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #10b981; box-shadow: 0 0 5px #10b981;
    animation: tv-pulse 2s ease-in-out infinite;
}
@keyframes tv-pulse { 0%,100% { opacity:1;transform:scale(1);} 50% { opacity:.5;transform:scale(1.5);} }

.tv-join-btn {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 16px;
    background: linear-gradient(135deg, #6336ff, #06b6d4);
    border: none; border-radius: 9px;
    color: #fff; font-size: 12.5px; font-weight: 700;
    cursor: pointer; letter-spacing: .2px;
    box-shadow: 0 3px 14px rgba(99,54,255,.4);
    transition: transform .2s, box-shadow .2s;
}
.tv-join-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 22px rgba(99,54,255,.6); }
.tv-join-btn:active { transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════════
   BODY — flex row
   ═══════════════════════════════════════════════════════════════ */
.tv-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   COLONNE GAUCHE — Membres
   ═══════════════════════════════════════════════════════════════ */
.tv-members-panel {
    width: 210px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,.016);
    border-right: 1px solid rgba(255,255,255,.055);
    overflow: hidden;
}

.tv-panel-hdr {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 14px 10px;
    font-size: 9px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
    color: rgba(255,255,255,.24);
    border-bottom: 1px solid rgba(255,255,255,.04);
    flex-shrink: 0;
}
.tv-panel-hdr svg { opacity: .35; flex-shrink: 0; }
.tv-panel-count {
    margin-left: auto;
    font-size: 10px; font-weight: 800;
    padding: 1px 6px;
    background: rgba(99,54,255,.16);
    border-radius: 20px; color: #a78bfa;
}

.tv-members-scroll {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    padding: 8px 7px 12px;
    scrollbar-width: none;
}
.tv-members-scroll::-webkit-scrollbar { display: none; }

/* ── Carte membre verticale ── */
.tv-member-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 13px 8px 10px;
    margin-bottom: 5px;
    background: rgba(255,255,255,.028);
    border: 1px solid rgba(255,255,255,.052);
    border-radius: 13px;
    cursor: pointer; position: relative; overflow: hidden;
    transition: transform .2s cubic-bezier(.34,1.2,.6,1), background .2s, border-color .2s, box-shadow .2s;
    text-align: center; gap: 7px;
}
.tv-member-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--mc, #6336ff), transparent);
    opacity: 0; transition: opacity .3s;
}
.tv-member-card:hover::before { opacity: 1; }
.tv-member-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.055);
    border-color: color-mix(in srgb, var(--mc,#6336ff) 32%, transparent);
    box-shadow: 0 5px 18px rgba(0,0,0,.3);
}
.tv-member-card:active { transform: translateY(0); }
.tv-member-card--on { background: rgba(16,185,129,.04); border-color: rgba(16,185,129,.12); }
.tv-member-card--on::before { opacity: 1; background: linear-gradient(90deg, transparent, #10b981, transparent); }

/* Avatar */
.tv-member-avatar-wrap { position: relative; flex-shrink: 0; }
.tv-member-avatar,
#view-team-vision .tv-member-avatar {
    width: 52px !important; height: 52px !important;
    border-radius: 50% !important;
    background: var(--mc, #6336ff) !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    overflow: hidden !important;
    border: 2px solid color-mix(in srgb, var(--mc,#6336ff) 38%, transparent) !important;
    transition: box-shadow .3s !important;
    position: relative;
}
.tv-member-card--on .tv-member-avatar { box-shadow: 0 0 0 3px rgba(16,185,129,.3), 0 0 12px rgba(16,185,129,.2) !important; }
.tv-member-card:hover .tv-member-avatar { box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc,#6336ff) 38%, transparent), 0 0 14px color-mix(in srgb, var(--mc,#6336ff) 22%, transparent) !important; }
.tv-member-img,
#view-team-vision .tv-member-img {
    width: 100% !important; height: 100% !important;
    object-fit: cover !important; object-position: center top !important;
    display: block !important;
    position: absolute !important; inset: 0 !important; border-radius: 50% !important;
}
#view-team-vision .tv-member-avatar:has(.tv-member-img) { background: transparent !important; }
.tv-member-initials { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -.5px; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.tv-member-status {
    position: absolute; bottom: 1px; right: 1px;
    width: 13px; height: 13px; border-radius: 50%;
    border: 2.5px solid #080810; z-index: 2;
}
.tv-status-on  { background: #10b981; box-shadow: 0 0 5px rgba(16,185,129,.7); }
.tv-status-off { background: #2d3748; }

.tv-member-info { width: 100%; display: flex; flex-direction: column; gap: 1px; align-items: center; }
.tv-member-name { font-size: 11.5px; font-weight: 700; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; letter-spacing: -.2px; }
.tv-member-role { font-size: 9.5px; color: rgba(255,255,255,.28); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; text-transform: capitalize; }

.tv-member-task-badge {
    width: 100%; display: flex; align-items: flex-start; gap: 4px;
    padding: 4px 5px; background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.05); border-radius: 6px;
}
.tv-member-task-dot {
    width: 5px; height: 5px; border-radius: 50%; background: #06b6d4;
    flex-shrink: 0; margin-top: 2px;
    animation: tv-task-pulse 2.5s ease-in-out infinite;
}
@keyframes tv-task-pulse { 0%,100%{opacity:1;transform:scale(1);}50%{opacity:.3;transform:scale(1.9);} }
.tv-member-task-dot--urgent { background: #ef4444; }
.tv-member-task-dot--high   { background: #f97316; }
.tv-member-task-dot--idle   { background: #2d3748; animation: none; }
.tv-member-task-text {
    font-size: 9px; color: rgba(255,255,255,.3); line-height: 1.35;
    overflow: hidden; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-align: left; flex: 1;
}
.tv-member-task-text strong {
    color: color-mix(in srgb, var(--mc,#6336ff) 90%, white);
    font-weight: 700; display: block; font-size: 7.5px; text-transform: uppercase;
    letter-spacing: .7px; margin-bottom: 1px;
}

/* Mini KPIs sur carte */
.tv-member-kpi {
    width: 100%; display: flex; align-items: center; gap: 4px;
    padding: 2px 5px; justify-content: center;
}
.tv-member-kpi-n { font-size: 10px; font-weight: 800; color: rgba(255,255,255,.5); }
.tv-member-kpi-l { font-size: 8.5px; color: rgba(255,255,255,.25); }
.tv-member-kpi-urgent { font-size: 9px; margin-left: auto; }

.tv-no-members { color: rgba(255,255,255,.22); font-size: 12px; padding: 20px 8px; text-align: center; }

.tv-member-actions {
    display: none;
    gap: 4px;
    padding: 0 8px 6px;
    width: 100%;
}
.tv-member-card:hover .tv-member-actions { display: flex; }

.tv-member-assign-btn, .tv-member-msg-btn {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 4px;
    padding: 5px 0;
    border-radius: 6px;
    font-size: 9.5px; font-weight: 700; letter-spacing: .2px;
    cursor: pointer; transition: all .2s;
    border: 1px solid;
}
.tv-member-assign-btn {
    background: color-mix(in srgb, var(--mc,#6336ff) 15%, transparent);
    border-color: color-mix(in srgb, var(--mc,#6336ff) 35%, transparent);
    color: color-mix(in srgb, var(--mc,#6336ff) 95%, white);
}
.tv-member-assign-btn:hover {
    background: color-mix(in srgb, var(--mc,#6336ff) 28%, transparent);
}
.tv-member-msg-btn {
    background: rgba(6,182,212,.1);
    border-color: rgba(6,182,212,.28);
    color: #06b6d4;
}
.tv-member-msg-btn:hover { background: rgba(6,182,212,.2); }

/* ── MODAL ASSIGN TASK ── */
.tv-assign-modal-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
}
.tv-assign-modal {
    background: #0f1117;
    border: 1px solid rgba(99,54,255,.3);
    border-radius: 14px;
    width: 380px; max-width: 94vw;
    box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
    overflow: hidden;
}
.tv-assign-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 13px; color: #e2e8f0;
}
.tv-assign-modal-header strong { color: #a78bfa; }
.tv-assign-close {
    background: none; border: none; color: rgba(255,255,255,.3);
    cursor: pointer; font-size: 16px; padding: 0; line-height: 1;
}
.tv-assign-close:hover { color: #fff; }
.tv-assign-modal-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.tv-assign-input, .tv-assign-textarea, .tv-assign-select {
    width: 100%; background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1); border-radius: 8px;
    color: #e2e8f0; font-size: 13px; padding: 10px 12px;
    outline: none; transition: border-color .2s;
    font-family: inherit;
}
.tv-assign-input:focus, .tv-assign-textarea:focus { border-color: rgba(99,54,255,.5); }
.tv-assign-textarea { resize: none; }
.tv-assign-select { cursor: pointer; }
.tv-assign-row { display: flex; gap: 8px; }
.tv-assign-submit {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px; background: #6336ff;
    border: none; border-radius: 8px;
    color: #fff; font-size: 13px; font-weight: 700;
    cursor: pointer; transition: background .2s;
}
.tv-assign-submit:hover { background: #7c4dff; }
.tv-assign-submit:disabled { opacity: .5; cursor: not-allowed; }
.tv-assign-feedback { font-size: 12px; min-height: 16px; text-align: center; }

/* ═══════════════════════════════════════════════════════════════
   COLONNE CENTRE
   ═══════════════════════════════════════════════════════════════ */
.tv-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: radial-gradient(ellipse 55% 35% at 50% 20%, rgba(99,54,255,.04) 0%, transparent 70%);
}

/* ── CHAT ── */
.tv-chat { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.tv-chat-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; height: 46px;
    background: rgba(255,255,255,.02);
    border-bottom: 1px solid rgba(255,255,255,.052);
    flex-shrink: 0;
}
.tv-chat-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.65); }
.tv-chat-title svg { opacity: .4; }
.tv-live-badge {
    display: flex; align-items: center; gap: 5px;
    padding: 3px 9px;
    background: rgba(239,68,68,.09); border: 1px solid rgba(239,68,68,.22);
    border-radius: 20px; font-size: 9px; font-weight: 800; color: #f87171; letter-spacing: 1px;
}
.tv-live-dot { width: 5px; height: 5px; border-radius: 50%; background: #ef4444; animation: tv-pulse 1.5s ease-in-out infinite; }

.tv-msgs-wrap { flex: 1; overflow-y: auto; padding: 14px 18px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.06) transparent; }
.tv-msgs-wrap::-webkit-scrollbar { width: 4px; }
.tv-msgs-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,.06); border-radius: 4px; }
.tv-msgs { display: flex; flex-direction: column; gap: 1px; }

.tv-msgs-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; height: 100%; min-height: 200px;
    color: rgba(255,255,255,.22); font-size: 13px; font-weight: 500; text-align: center;
}
.tv-msgs-empty svg { filter: drop-shadow(0 0 10px rgba(99,54,255,.3)); }

.tv-msg {
    display: flex; gap: 10px; padding: 6px 8px;
    border-radius: 10px; transition: background .14s;
}
.tv-msg:hover { background: rgba(255,255,255,.02); }
.tv-msg-av {
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; color: #fff; flex-shrink: 0; margin-top: 1px;
}
.tv-msg-body { flex: 1; min-width: 0; }
.tv-msg-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.tv-msg-sender { font-size: 12.5px; font-weight: 700; }
.tv-msg-time { font-size: 10px; color: rgba(255,255,255,.2); }
.tv-msg-text { font-size: 13.5px; color: rgba(255,255,255,.75); line-height: 1.55; word-break: break-word; margin: 0; }
.tv-msg-text a { color: #67e8f9; text-decoration: none; }
.tv-msg-text a:hover { text-decoration: underline; }

.tv-fcard {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07); border-radius: 10px;
    margin-top: 4px; max-width: 320px;
}
.tv-fcard-ico { font-size: 20px; flex-shrink: 0; }
.tv-fcard-name { font-size: 12px; font-weight: 600; color: #e2e8f0; }
.tv-fcard-meta { font-size: 10px; color: rgba(255,255,255,.3); }
.tv-fcard-link { font-size: 11px; color: #67e8f9; text-decoration: none; display: inline-block; margin-top: 2px; }
.tv-fcard--img { flex-direction: column; align-items: flex-start; padding: 6px; }
.tv-fcard-img { width: 100%; max-width: 260px; border-radius: 7px; display: block; }
.tv-fcard-caption { display: flex; justify-content: space-between; width: 100%; font-size: 10px; color: rgba(255,255,255,.3); padding: 3px 0 0; }
.tv-fcard-caption a { color: #67e8f9; text-decoration: none; }
.tv-fcard--video { background: rgba(99,54,255,.06); border-color: rgba(99,54,255,.14); }

.tv-composer {
    display: flex; align-items: center; gap: 7px;
    padding: 10px 14px;
    background: rgba(255,255,255,.02);
    border-top: 1px solid rgba(255,255,255,.05);
    flex-shrink: 0;
}
.tv-composer-icon {
    width: 36px; height: 36px; border-radius: 9px;
    background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.4); display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; transition: background .2s, color .2s;
}
.tv-composer-icon:hover { background: rgba(255,255,255,.1); color: #fff; }
.tv-input {
    flex: 1; height: 38px;
    background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px; color: #e2e8f0; font-size: 13.5px; padding: 0 14px;
    outline: none; font-family: inherit;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.tv-input::placeholder { color: rgba(255,255,255,.2); }
.tv-input:focus { border-color: rgba(99,54,255,.55); background: rgba(255,255,255,.08); box-shadow: 0 0 0 3px rgba(99,54,255,.1); }
.tv-send-btn {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, #6336ff, #06b6d4);
    border: none; color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(99,54,255,.4);
    transition: transform .2s, box-shadow .2s;
}
.tv-send-btn:hover { transform: scale(1.06); box-shadow: 0 5px 18px rgba(99,54,255,.6); }
.tv-send-btn:active { transform: scale(.96); }

/* ── TÂCHES PANEL ── */
.tv-tasks-panel { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.tv-tasks-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; height: 46px;
    background: rgba(255,255,255,.02); border-bottom: 1px solid rgba(255,255,255,.052);
    flex-shrink: 0;
}
.tv-tasks-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.65); }
.tv-tasks-title svg { opacity: .4; }
.tv-tasks-meta { display: flex; align-items: center; gap: 6px; }
.tv-tasks-chip {
    font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.38);
    padding: 3px 8px; background: rgba(255,255,255,.06); border-radius: 20px;
}
.tv-tasks-chip--active { background: rgba(6,182,212,.12); color: #67e8f9; }
.tv-tasks-chip--idle { background: rgba(16,185,129,.09); color: #34d399; }

.tv-tasks-body { flex: 1; overflow-y: auto; padding: 12px 16px 16px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.06) transparent; }
.tv-tasks-body::-webkit-scrollbar { width: 4px; }
.tv-tasks-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.06); border-radius: 4px; }

.tv-tasks-section { margin-bottom: 20px; }
.tv-tasks-section-title {
    display: flex; align-items: center; gap: 7px;
    font-size: 9.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: rgba(255,255,255,.3); margin-bottom: 10px;
}
.tv-tsec-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #2d3748; flex-shrink: 0;
}
.tv-tsec-dot--active { background: #06b6d4; box-shadow: 0 0 5px #06b6d4; animation: tv-pulse 2s ease-in-out infinite; }
.tv-tsec-dot--idle { background: #10b981; }
.tv-tsec-count {
    margin-left: auto; font-size: 10px; padding: 1px 6px;
    background: rgba(255,255,255,.07); border-radius: 20px; color: rgba(255,255,255,.35);
}

/* Ligne membre+tâche */
.tv-mtask-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05);
    border-radius: 12px; margin-bottom: 6px; cursor: pointer;
    transition: background .15s, border-color .15s, transform .15s;
}
.tv-mtask-row:hover { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.1); transform: translateX(2px); }

.tv-mtask-av {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800; color: #fff; overflow: hidden; position: relative;
}
.tv-mtask-av img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tv-mtask-online {
    position: absolute; bottom: 0; right: 0;
    width: 10px; height: 10px; border-radius: 50%;
    background: #2d3748; border: 2px solid #080810;
}
.tv-mtask-online--on { background: #10b981; box-shadow: 0 0 4px rgba(16,185,129,.6); }

.tv-mtask-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tv-mtask-who { font-size: 12px; font-weight: 700; color: #f1f5f9; }
.tv-mtask-what { font-size: 12.5px; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-mtask-project { font-size: 10px; color: rgba(255,255,255,.3); }

.tv-mtask-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.tv-mtask-status { font-size: 10.5px; font-weight: 700; }
.tv-mtask-due { font-size: 10px; color: rgba(255,255,255,.35); }
.tv-mtask-due--late { color: #f87171; font-weight: 700; }
.tv-mtask-urgent { font-size: 9.5px; color: #f97316; font-weight: 700; }

/* Chips membres libres */
.tv-idle-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tv-idle-chip {
    display: flex; align-items: center; gap: 7px;
    padding: 6px 12px 6px 8px;
    background: rgba(16,185,129,.05); border: 1px solid rgba(16,185,129,.12);
    border-radius: 20px; cursor: pointer; transition: background .15s;
}
.tv-idle-chip:hover { background: rgba(16,185,129,.1); }
.tv-idle-av {
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.tv-idle-av-img { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid transparent; }
.tv-idle-name { font-size: 11.5px; font-weight: 600; color: #e2e8f0; }
.tv-idle-status { font-size: 10px; color: #34d399; }

/* Empty state */
.tv-empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; min-height: 200px; color: rgba(255,255,255,.25); font-size: 13px; text-align: center;
}

/* ── FICHIERS PANEL ── */
.tv-files-panel { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.tv-files-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; height: 46px;
    background: rgba(255,255,255,.02); border-bottom: 1px solid rgba(255,255,255,.052);
    flex-shrink: 0;
}
.tv-files-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.65); }
.tv-files-title svg { opacity: .4; }
.tv-files-share-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: rgba(99,54,255,.14); border: 1px solid rgba(99,54,255,.28);
    border-radius: 8px; color: #a78bfa; font-size: 11.5px; font-weight: 600;
    cursor: pointer; transition: background .2s;
}
.tv-files-share-btn:hover { background: rgba(99,54,255,.22); }
.tv-files-tabs {
    display: flex; gap: 4px; padding: 8px 16px 6px;
    border-bottom: 1px solid rgba(255,255,255,.04); flex-shrink: 0;
}
.tv-files-list { flex: 1; overflow-y: auto; padding: 8px 14px 14px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.06) transparent; }

.tv-file-row {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 10px;
    transition: background .14s; margin-bottom: 3px;
}
.tv-file-row:hover { background: rgba(255,255,255,.04); }
.tv-file-ico { font-size: 20px; flex-shrink: 0; }
.tv-file-info { flex: 1; min-width: 0; }
.tv-file-name { font-size: 12.5px; font-weight: 600; color: #e2e8f0; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-file-meta { font-size: 10px; color: rgba(255,255,255,.3); display: block; margin-top: 1px; }
.tv-file-link {
    font-size: 11.5px; font-weight: 600; color: #a78bfa;
    padding: 4px 10px; border: 1px solid rgba(99,54,255,.25); border-radius: 6px;
    text-decoration: none; white-space: nowrap; flex-shrink: 0;
    transition: background .15s;
}
.tv-file-link:hover { background: rgba(99,54,255,.12); }

/* ═══════════════════════════════════════════════════════════════
   COLONNE DROITE — Sidebar
   ═══════════════════════════════════════════════════════════════ */
.tv-sidebar {
    width: 230px; flex-shrink: 0;
    display: flex; flex-direction: column; gap: 7px;
    overflow-y: auto; padding: 10px 10px 14px;
    background: rgba(255,255,255,.016);
    border-left: 1px solid rgba(255,255,255,.055);
    scrollbar-width: none;
}
.tv-sidebar::-webkit-scrollbar { display: none; }

/* KPIs rapides en haut */
.tv-sidebar-kpis {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-bottom: 2px;
}
.tv-skpi {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 4px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
}
.tv-skpi--alert { background: rgba(239,68,68,.06); border-color: rgba(239,68,68,.18); }
.tv-skpi-val {
    font-size: 20px; font-weight: 900; line-height: 1; color: rgba(255,255,255,.7);
}
.tv-skpi-val--active { color: #67e8f9; }
.tv-skpi-val--alert  { color: #f87171; }
.tv-skpi-lbl { font-size: 8.5px; text-transform: uppercase; letter-spacing: .5px; color: rgba(255,255,255,.28); text-align: center; }

.tv-stat-card {
    padding: 11px 13px;
    background: rgba(255,255,255,.028); border: 1px solid rgba(255,255,255,.052);
    border-radius: 11px; flex-shrink: 0;
}
.tv-stat-card--online { background: rgba(16,185,129,.03); border-color: rgba(16,185,129,.1); }
.tv-stat-card--cta { background: linear-gradient(135deg, rgba(99,54,255,.09), rgba(6,182,212,.06)); border-color: rgba(99,54,255,.18); }

.tv-stat-card-header { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.tv-stat-dot { width: 7px; height: 7px; border-radius: 50%; background: #2d3748; flex-shrink: 0; }
.tv-stat-dot--on { background: #10b981; box-shadow: 0 0 5px #10b981; animation: tv-pulse 2s ease-in-out infinite; }
.tv-stat-card-title { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.45); flex: 1; }
.tv-stat-badge { font-size: 11px; font-weight: 800; padding: 1px 7px; background: rgba(99,54,255,.16); border-radius: 20px; color: #a78bfa; }
.tv-stat-badge--muted { background: rgba(255,255,255,.07); color: rgba(255,255,255,.35); }

.tv-miniavs { display: flex; align-items: center; margin-bottom: 9px; height: 26px; }
.tv-miniav {
    width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid #080810; display: flex; align-items: center; justify-content: center;
    font-size: 9.5px; font-weight: 800; color: #fff; flex-shrink: 0;
    transition: transform .2s; cursor: pointer; position: relative;
}
.tv-miniav:hover { transform: translateY(-3px) scale(1.12); z-index: 10; }
.tv-miniav--img { background: transparent; overflow: hidden; }
.tv-miniav--img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.tv-miniav--more { background: rgba(255,255,255,.08); color: rgba(255,255,255,.5); font-size: 8.5px; }

.tv-stat-names { display: flex; flex-wrap: wrap; gap: 5px; }
.tv-stat-name-chip {
    font-size: 10.5px; padding: 3px 8px;
    border: 1px solid rgba(255,255,255,.09); border-radius: 20px;
    cursor: pointer; transition: background .14s; white-space: nowrap;
}
.tv-stat-name-chip:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.tv-stat-name-chip--off { color: rgba(255,255,255,.3); }
.tv-stat-name-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.tv-stat-empty { font-size: 11px; color: rgba(255,255,255,.2); font-style: italic; margin: 0; }

.tv-vision-launch-btn {
    width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 13px 10px;
    background: linear-gradient(135deg, #6336ff, #06b6d4);
    border: none; border-radius: 10px; color: #fff; font-size: 13px; font-weight: 700;
    cursor: pointer; transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 18px rgba(99,54,255,.4);
}
.tv-vision-launch-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 26px rgba(99,54,255,.6); }
.tv-vision-launch-hint { font-size: 9.5px; font-weight: 400; opacity: .62; }

.tv-drive-btn {
    display: flex; align-items: center; gap: 7px; width: 100%;
    padding: 8px 11px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
    border-radius: 8px; color: rgba(255,255,255,.6); font-size: 12px; font-weight: 600;
    cursor: pointer; transition: background .2s, color .2s;
}
.tv-drive-btn:hover { background: rgba(255,255,255,.09); color: #fff; }

/* ── ptab (partagé fichiers/picker) ── */
.tv-ptab {
    padding: 5px 11px; border-radius: 7px;
    background: transparent; border: 1px solid transparent;
    color: rgba(255,255,255,.35); font-size: 11.5px; font-weight: 600;
    cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.tv-ptab:hover { background: rgba(255,255,255,.05); color: rgba(255,255,255,.6); }
.tv-ptab--active { background: rgba(99,54,255,.13); border-color: rgba(99,54,255,.25); color: #a78bfa; }

/* ═══════════════════════════════════════════════════════════════
   DRAWER
   ═══════════════════════════════════════════════════════════════ */
.tv-drawer-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px); z-index: 100;
    opacity: 0; pointer-events: none; transition: opacity .3s;
}
.tv-drawer-overlay--open { opacity: 1; pointer-events: all; }
.tv-drawer {
    position: absolute; right: 0; top: 0; bottom: 0; width: 360px;
    background: #0c0c1a; border-left: 1px solid rgba(255,255,255,.07);
    z-index: 101; transform: translateX(100%);
    transition: transform .3s cubic-bezier(.32,1.25,.6,1);
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: -12px 0 40px rgba(0,0,0,.5);
}
.tv-drawer--open { transform: translateX(0); }
.tv-drawer-content { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.07) transparent; }
.tv-drawer-content::-webkit-scrollbar { width: 4px; }
.tv-drawer-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,.07); border-radius: 4px; }

.tv-drawer-header {
    padding: 18px 18px 14px;
    background: linear-gradient(180deg, rgba(99,54,255,.08) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255,255,255,.052);
    position: relative;
}
.tv-drawer-close {
    position: absolute; top: 13px; right: 13px;
    width: 28px; height: 28px; border-radius: 7px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09);
    color: rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .2s, color .2s;
}
.tv-drawer-close:hover { background: rgba(255,255,255,.13); color: #fff; }

.tv-drawer-hero { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; padding-right: 36px; }
.tv-drawer-avatar {
    width: 58px; height: 58px; border-radius: 15px;
    background: var(--mc, #6336ff); display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800; color: #fff; position: relative; flex-shrink: 0; overflow: hidden;
    border: 2px solid color-mix(in srgb, var(--mc,#6336ff) 42%, transparent);
    box-shadow: 0 0 18px color-mix(in srgb, var(--mc,#6336ff) 25%, transparent);
}
.tv-drawer-avatar-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tv-drawer-status { position: absolute; bottom: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: #2d3748; border: 2.5px solid #0c0c1a; }
.tv-drawer-status--on { background: #10b981; box-shadow: 0 0 5px rgba(16,185,129,.6); }

.tv-drawer-hero-info { flex: 1; min-width: 0; }
.tv-drawer-name { font-size: 17px; font-weight: 800; color: #f1f5f9; margin: 0 0 2px; letter-spacing: -.3px; }
.tv-drawer-role { font-size: 11.5px; color: rgba(255,255,255,.38); margin: 0 0 3px; }
.tv-drawer-online { font-size: 11px; color: #64748b; margin: 0; }
.tv-drawer-online--on { color: #34d399; }
.tv-drawer-email { font-size: 10.5px; color: rgba(255,255,255,.25); margin: 2px 0 0; }

.tv-drawer-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.tv-kpi { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.052); border-radius: 9px; }
.tv-kpi--alert { background: rgba(239,68,68,.06); border-color: rgba(239,68,68,.18); }
.tv-kpi--active { background: rgba(6,182,212,.06); border-color: rgba(6,182,212,.16); }
.tv-kpi--done   { background: rgba(16,185,129,.04); border-color: rgba(16,185,129,.13); }
.tv-kpi-val { font-size: 18px; font-weight: 900; line-height: 1; color: #f1f5f9; }
.tv-kpi--alert .tv-kpi-val { color: #f87171; }
.tv-kpi--active .tv-kpi-val { color: #67e8f9; }
.tv-kpi--done .tv-kpi-val { color: #34d399; }
.tv-kpi-label { font-size: 8px; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .5px; text-align: center; }

.tv-drawer-body { padding: 14px 18px 22px; }
.tv-drawer-section { margin-bottom: 14px; }
.tv-drawer-section--alert .tv-drawer-section-title { color: #f87171; }
.tv-drawer-section--done { opacity: .6; }
.tv-drawer-section-title { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; color: rgba(255,255,255,.4); letter-spacing: .6px; text-transform: uppercase; margin-bottom: 7px; }
.tv-drawer-section-count { margin-left: auto; font-size: 10px; padding: 1px 6px; background: rgba(255,255,255,.07); border-radius: 20px; color: rgba(255,255,255,.32); }

.tv-task-row {
    display: flex; align-items: flex-start; gap: 7px;
    padding: 7px 9px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.045);
    border-radius: 8px; margin-bottom: 4px; transition: background .14s;
}
.tv-task-row:hover { background: rgba(255,255,255,.05); }
.tv-task-priority { font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.tv-task-info { flex: 1; min-width: 0; }
.tv-task-title { font-size: 12px; color: #e2e8f0; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-task-project { font-size: 10px; color: rgba(255,255,255,.27); display: block; margin-top: 1px; }
.tv-task-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.tv-task-due { font-size: 10px; color: rgba(255,255,255,.35); }
.tv-task-due--late { color: #f87171; font-weight: 700; }
.tv-task-status { font-size: 10px; font-weight: 600; }
.tv-drawer-empty { font-size: 11px; color: rgba(255,255,255,.2); font-style: italic; margin: 0; }
.tv-drawer-no-tasks { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 0; color: rgba(255,255,255,.2); font-size: 13px; text-align: center; }
.tv-drawer-skeleton { padding: 14px 18px; }
.tv-skeleton-bar { height: 11px; background: rgba(255,255,255,.06); border-radius: 5px; margin-bottom: 9px; animation: tv-skeleton 1.6s ease-in-out infinite; }
@keyframes tv-skeleton { 0%,100%{opacity:1}50%{opacity:.35} }

/* ═══════════════════════════════════════════════════════════════
   FILE PICKER
   ═══════════════════════════════════════════════════════════════ */
.tv-picker {
    position: absolute; bottom: 64px; left: 230px; right: 250px;
    max-height: 370px; background: #10101e;
    border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
    z-index: 200; display: flex; flex-direction: column;
    box-shadow: 0 18px 55px rgba(0,0,0,.6), 0 0 0 1px rgba(99,54,255,.1);
}
.tv-picker-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px 10px; border-bottom: 1px solid rgba(255,255,255,.052); font-size: 13px; font-weight: 700; color: rgba(255,255,255,.6); flex-shrink: 0; }
.tv-picker-header button { width: 24px; height: 24px; border-radius: 6px; background: rgba(255,255,255,.07); border: none; color: rgba(255,255,255,.45); cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.tv-picker-header button:hover { background: rgba(255,255,255,.13); color: #fff; }
.tv-picker-tabs { display: flex; gap: 4px; padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,.042); flex-shrink: 0; }
.tv-picker-list { flex: 1; overflow-y: auto; padding: 5px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.06) transparent; }
.tv-fitem { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 8px; cursor: pointer; transition: background .14s; }
.tv-fitem:hover { background: rgba(255,255,255,.045); }
.tv-fitem-ico { font-size: 18px; flex-shrink: 0; }
.tv-fitem-info { flex: 1; min-width: 0; }
.tv-fitem-name { font-size: 12px; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-fitem-meta { font-size: 10px; color: rgba(255,255,255,.27); }
.tv-fitem-share { font-size: 11px; font-weight: 600; color: #a78bfa; padding: 3px 8px; border: 1px solid rgba(99,54,255,.25); border-radius: 5px; white-space: nowrap; flex-shrink: 0; }
.tv-picker-loading, .tv-picker-empty { color: rgba(255,255,255,.27); font-size: 12px; text-align: center; padding: 18px; }

/* ═══════════════════════════════════════════════════════════════
   SPLASH / ERROR
   ═══════════════════════════════════════════════════════════════ */
.tv-splash { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; height: 100%; min-height: 300px; color: rgba(255,255,255,.32); font-size: 14px; }
.tv-splash-ring { width: 38px; height: 38px; border: 3px solid rgba(99,54,255,.18); border-top-color: #6336ff; border-radius: 50%; animation: tv-spin 1s linear infinite; }
@keyframes tv-spin { to { transform: rotate(360deg); } }
.tv-error { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; min-height: 300px; text-align: center; padding: 30px; }
.tv-error-ico { font-size: 40px; }
.tv-error-title { font-size: 17px; font-weight: 700; color: #f1f5f9; margin: 0; }
.tv-error-msg { font-size: 13px; color: rgba(255,255,255,.42); margin: 0; }
.tv-error-actions { display: flex; gap: 10px; }
.tv-btn-retry { padding: 8px 18px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; background: linear-gradient(135deg, #6336ff, #06b6d4); border: none; color: #fff; box-shadow: 0 4px 14px rgba(99,54,255,.4); transition: transform .2s; }
.tv-btn-retry:hover { transform: translateY(-1px); }
.tv-btn-ghost { padding: 8px 18px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; background: transparent; border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.52); transition: background .2s; }
.tv-btn-ghost:hover { background: rgba(255,255,255,.055); }

/* ═══════════════════════════════════════════════════════════════
   MODE APPEL VIDÉO
   ═══════════════════════════════════════════════════════════════ */
.tv-root--call { display: flex; flex-direction: column; }
.tv-call-header { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 50px; background: rgba(239,68,68,.055); border-bottom: 1px solid rgba(239,68,68,.14); flex-shrink: 0; }
.tv-call-status { display: flex; align-items: center; gap: 10px; }
.tv-call-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 7px #ef4444; animation: tv-pulse 1.2s ease-in-out infinite; }
.tv-call-label { font-size: 14px; font-weight: 700; color: #f1f5f9; }
.tv-call-timer { font-size: 13px; color: #f87171; font-variant-numeric: tabular-nums; font-weight: 700; }
.tv-hangup-btn { display: flex; align-items: center; gap: 7px; padding: 7px 15px; background: #ef4444; border: none; border-radius: 8px; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 3px 13px rgba(239,68,68,.4); transition: transform .2s, box-shadow .2s; }
.tv-hangup-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(239,68,68,.6); }
.tv-call-body { display: flex; flex: 1; min-height: 0; }
.tv-video-mount { flex: 1; min-width: 0; background: #000; }
.tv-jitsi-err { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 12px; color: rgba(255,255,255,.42); font-size: 14px; }
.tv-call-chat { width: 290px; flex-shrink: 0; border-left: 1px solid rgba(255,255,255,.052); display: flex; flex-direction: column; }
.tv-call-chat-header { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,.042); font-size: 12px; font-weight: 700; color: rgba(255,255,255,.52); flex-shrink: 0; }
.tv-call-attach-btn { width: 26px; height: 26px; border-radius: 7px; background: rgba(255,255,255,.055); border: none; color: rgba(255,255,255,.42); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.tv-call-attach-btn:hover { background: rgba(255,255,255,.11); color: #fff; }
.tv-call-msgs-wrap { flex: 1; overflow-y: auto; }
.tv-msgs--compact .tv-msg { padding: 4px 8px; }
.tv-call-composer { display: flex; align-items: center; gap: 6px; padding: 9px 11px; border-top: 1px solid rgba(255,255,255,.042); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1150px) {
    .tv-members-panel { width: 180px; }
    .tv-sidebar { width: 200px; }
}
@media (max-width: 920px) {
    .tv-members-panel { width: 72px; }
    .tv-member-info, .tv-member-task-badge, .tv-member-kpi { display: none; }
    .tv-member-card { padding: 10px 6px; }
    .tv-sidebar { width: 170px; }
}
@media (max-width: 680px) {
    .tv-header { padding: 0 12px; gap: 10px; }
    .tv-tab-bar { display: none; }
    .tv-members-panel { display: none; }
    .tv-sidebar { display: none; }
}
