
  /* ====================================================== */
  /* BRAND COLOR — change these two to match your logo       */
  :root{ --accent:#2f6df0; --accent-2:#4f86f5; }
  /* ====================================================== */

  /* ---------- LIGHT THEME (default) ---------- */
  :root{
    --bg-0:#eef1f7;
    --panel:#ffffff;--panel-2:#f6f8fc;--panel-3:#eef1f7;
    --brd:#e7eaf2;--brd-2:#dde1ec;
    --text:#1a1d28;--mut:#697084;--dim:#9aa1b3;
    --accent-soft:#ecf2ff;--accent-brd:#cfe0ff;
    --ok:#1bbf6f;--away:#e6a51d;--off:#aab0c2;
    --head-bg:#ffffff;--bubble-in:#ffffff;--stream-bg:#f6f8fc;
    --dot:rgba(20,23,40,.03);--chip-bg:#ffffff;--pop-bg:#ffffff;--scroll:#d6dae6;
    --au1:var(--accent);--au1-o:.08;--au2:#8ea2c8;--au2-o:.14;--grid-o:.5;
    --sh-sm:0 1px 2px rgba(20,23,40,.05);--sh-md:0 8px 28px rgba(20,23,40,.08);--sh-lg:0 18px 48px rgba(20,23,40,.12);
    --grad:linear-gradient(135deg,var(--accent),var(--accent-2));
    --glow:0 6px 22px rgba(47,109,240,.28);
    --r-md:14px;--r-lg:18px;--r-xl:22px;
  }
  /* ---------- DARK THEME (night mode) ---------- */
  [data-theme="dark"]{
    --bg-0:#090b11;
    --panel:#12151d;--panel-2:#0f121a;--panel-3:#1b1f2a;
    --brd:rgba(255,255,255,.07);--brd-2:rgba(255,255,255,.12);
    --text:#e7eaf1;--mut:#8b93a7;--dim:#576075;
    --accent-soft:rgba(79,125,255,.14);--accent-brd:rgba(79,125,255,.30);
    --ok:#2bd07a;--away:#efb24a;--off:#525b73;
    --head-bg:#141821;--bubble-in:#1b1f2a;--stream-bg:#0d1017;
    --dot:rgba(255,255,255,.03);--chip-bg:#1b1f2a;--pop-bg:#1b1f2a;--scroll:rgba(255,255,255,.13);
    --au1:#21407f;--au1-o:.42;--au2:#2a3358;--au2-o:.4;--grid-o:.35;
    --sh-sm:0 1px 2px rgba(0,0,0,.4);--sh-md:0 12px 36px rgba(0,0,0,.5);--sh-lg:0 20px 60px rgba(0,0,0,.6);
  }

  *{box-sizing:border-box;margin:0;padding:0}
  html,body{height:100%}
  body{font-family:"Inter",system-ui,sans-serif;color:var(--text);background:var(--bg-0);overflow:hidden;-webkit-font-smoothing:antialiased;transition:background .3s}
  button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
  ::selection{background:var(--accent-soft);color:var(--accent)}

  .aurora{position:fixed;inset:0;z-index:0;overflow:hidden;background:radial-gradient(120% 90% at 50% -10%, color-mix(in srgb,var(--panel) 60%,transparent) 0%, var(--bg-0) 60%)}
  .aurora::before{content:"";position:absolute;width:50vw;height:50vw;left:-12vw;top:-20vh;border-radius:50%;filter:blur(120px);background:radial-gradient(circle,var(--au1) 0%,transparent 70%);opacity:var(--au1-o);animation:drift1 32s ease-in-out infinite}
  .aurora::after{content:"";position:absolute;width:44vw;height:44vw;right:-8vw;bottom:-22vh;border-radius:50%;filter:blur(120px);background:radial-gradient(circle,var(--au2) 0%,transparent 70%);opacity:var(--au2-o);animation:drift2 38s ease-in-out infinite}
  @keyframes drift1{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(6vw,8vh) scale(1.1)}}
  @keyframes drift2{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(-6vw,-6vh) scale(1.08)}}
  .grid-ov{position:fixed;inset:0;z-index:1;pointer-events:none;opacity:var(--grid-o);
    background-image:linear-gradient(var(--dot) 1px,transparent 1px),linear-gradient(90deg,var(--dot) 1px,transparent 1px);
    background-size:46px 46px;mask:radial-gradient(ellipse at 50% 35%,#000 25%,transparent 80%);-webkit-mask:radial-gradient(ellipse at 50% 35%,#000 25%,transparent 80%)}

  .app{position:relative;z-index:2;height:100vh;padding:16px;display:grid;grid-template-columns:78px 340px 1fr;gap:16px}
  .panel{background:var(--panel);border:1px solid var(--brd);border-radius:var(--r-xl);box-shadow:var(--sh-md);transition:background .3s,border-color .3s}

  /* RAIL */
  .rail{display:flex;flex-direction:column;align-items:center;padding:18px 0;gap:8px}
  .brand{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:var(--grad);box-shadow:var(--glow);margin-bottom:14px;cursor:pointer;overflow:hidden;padding:0}
  .brand svg{width:24px;height:24px}
  .brand .brand-logo{width:100%;height:100%;object-fit:cover;border-radius:15px;display:block}
  .rail-btn{width:48px;height:48px;border-radius:15px;color:var(--dim);display:grid;place-items:center;position:relative;transition:.2s}
  .rail-btn svg{width:23px;height:23px}
  .rail-btn:hover{color:var(--text);background:var(--panel-3)}
  .rail-btn.active{color:var(--accent);background:var(--accent-soft);border:1px solid var(--accent-brd)}
  .rail-btn.active::before{content:"";position:absolute;left:-18px;top:50%;transform:translateY(-50%);width:3px;height:22px;border-radius:3px;background:var(--accent)}
  .rail-btn .ping{position:absolute;top:8px;right:8px;width:9px;height:9px;border-radius:50%;background:var(--accent);border:2px solid var(--panel)}
  .rail-sp{flex:1}
  .theme-btn{color:var(--dim)}
  .theme-btn:hover{color:var(--accent);background:var(--accent-soft)}
  .rail-me{width:44px;height:44px;border-radius:50%;background:linear-gradient(140deg,#5b8def,#7a6cf0);display:grid;place-items:center;color:#fff;font-weight:600;font-size:15px;position:relative;box-shadow:0 0 0 2px var(--panel-3)}

  /* LIST */
  .list{display:flex;flex-direction:column;min-width:0;overflow:hidden}
  .list-head{padding:22px 20px 12px}
  .list-title{font-family:"Space Grotesk";font-size:12px;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:var(--dim);display:flex;align-items:center;justify-content:space-between}
  .list-title b{font-size:23px;letter-spacing:-.02em;text-transform:none;font-weight:700;color:var(--text);display:block;margin-top:3px}
  .new-btn{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;color:var(--accent);background:var(--accent-soft);border:1px solid var(--accent-brd);transition:.2s}
  .new-btn:hover{background:var(--accent);color:#fff}
  .new-btn svg{width:18px;height:18px}

  .search{margin-top:16px;position:relative}
  .search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:var(--dim)}
  .search input{width:100%;background:var(--panel-2);border:1px solid var(--brd);color:var(--text);font-size:13.5px;padding:12px 14px 12px 40px;border-radius:13px;outline:none;transition:.2s}
  .search input::placeholder{color:var(--dim)}
  .search input:focus{border-color:var(--accent-brd);background:var(--panel);box-shadow:0 0 0 3px var(--accent-soft)}

  .seg{display:flex;gap:5px;padding:14px 20px 10px}
  .seg button{font-size:12.5px;font-weight:500;color:var(--mut);padding:7px 13px;border-radius:10px;transition:.16s}
  .seg button:hover{color:var(--text);background:var(--panel-2)}
  .seg button.on{background:var(--accent-soft);color:var(--accent);border:1px solid var(--accent-brd)}
  .seg .count{font-size:10px;background:var(--accent);color:#fff;padding:1px 6px;border-radius:20px;margin-left:6px;font-weight:600}

  .threads{flex:1;overflow-y:auto;padding:0 12px 16px}
  .threads::-webkit-scrollbar{width:7px}
  .threads::-webkit-scrollbar-thumb{background:var(--scroll);border-radius:8px}

  .thread{display:flex;gap:12px;padding:12px;border-radius:16px;cursor:pointer;transition:.16s;position:relative;align-items:center;border:1px solid transparent}
  .thread:hover{background:var(--panel-2)}
  .thread.active{background:var(--accent-soft);border-color:var(--accent-brd)}
  .avatar{width:48px;height:48px;border-radius:15px;flex-shrink:0;display:grid;place-items:center;color:#fff;font-weight:600;font-size:15px;position:relative;font-family:"Space Grotesk"}
  .presence{width:13px;height:13px;border-radius:50%;border:2.5px solid var(--panel)}
  .avatar .presence{position:absolute;bottom:-2px;right:-2px}
  .presence.online{background:var(--ok)}
  .presence.online::after{content:"";position:absolute;inset:-4px;border-radius:50%;border:1.5px solid var(--ok);opacity:.5;animation:pulse 2.4s infinite}
  @keyframes pulse{0%{transform:scale(.8);opacity:.5}100%{transform:scale(1.5);opacity:0}}
  .presence.away{background:var(--away)}
  .presence.offline{background:var(--off)}

  .t-body{flex:1;min-width:0}
  .t-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
  .t-name{font-size:14.5px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.01em}
  .t-time{font-family:"JetBrains Mono";color:var(--dim);font-size:11px;flex-shrink:0}
  .t-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:3px}
  .t-preview{color:var(--mut);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .t-preview .you{color:var(--dim)}
  .thread.unread .t-name{color:var(--text)}
  .thread.unread .t-preview{color:var(--text);font-weight:500}
  .badge{background:var(--accent);color:#fff;font-weight:600;font-size:11px;min-width:21px;height:21px;border-radius:20px;padding:0 6px;display:grid;place-items:center;box-shadow:var(--glow)}
  .muted-i{color:var(--dim)} .muted-i svg{width:15px;height:15px;display:block}

  /* CHAT */
  .chat{display:flex;flex-direction:column;min-width:0;overflow:hidden;position:relative}
  .chat-head{height:78px;flex-shrink:0;display:flex;align-items:center;gap:14px;padding:0 24px;border-bottom:1px solid var(--brd);background:var(--head-bg);border-radius:var(--r-xl) var(--r-xl) 0 0}
  .back-btn{display:none}
  .ch-av{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;color:#fff;font-weight:600;position:relative;flex-shrink:0;font-family:"Space Grotesk"}
  .ch-av .presence{position:absolute;bottom:-2px;right:-2px;border-color:var(--head-bg)}
  .ch-meta{flex:1;min-width:0}
  .ch-name{font-family:"Space Grotesk";font-size:17px;font-weight:600;letter-spacing:-.01em;display:flex;align-items:center;gap:7px}
  .ch-name .vf{color:var(--accent)} .ch-name .vf svg{width:16px;height:16px;display:block}
  .ch-status{font-size:12px;color:var(--mut);margin-top:2px;display:flex;align-items:center;gap:6px;font-family:"JetBrains Mono"}
  .ch-status .live{width:7px;height:7px;border-radius:50%;background:var(--ok);display:inline-block}
  .ch-actions{display:flex;gap:5px}
  .ch-act{width:42px;height:42px;border-radius:13px;color:var(--mut);display:grid;place-items:center;transition:.18s;border:1px solid transparent}
  .ch-act:hover{background:var(--panel-2);color:var(--text);border-color:var(--brd)}
  .ch-act.on{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-brd)}
  .ch-act svg{width:20px;height:20px}

  .stream{flex:1;overflow-y:auto;padding:26px 30px 10px;display:flex;flex-direction:column;gap:3px;background:var(--stream-bg);
    background-image:radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 0);background-size:22px 22px}
  .stream::-webkit-scrollbar{width:8px}
  .stream::-webkit-scrollbar-thumb{background:var(--scroll);border-radius:8px}

  .daydiv{display:flex;align-items:center;gap:14px;margin:20px 0 14px;color:var(--dim)}
  .daydiv::before,.daydiv::after{content:"";flex:1;height:1px;background:var(--brd)}
  .daydiv span{font-family:"JetBrains Mono";font-size:10.5px;font-weight:500;text-transform:uppercase;letter-spacing:.12em;padding:3px 12px;border:1px solid var(--brd);border-radius:20px;background:var(--chip-bg)}

  .msg-row{display:flex;gap:11px;max-width:72%;animation:rise .36s cubic-bezier(.2,.8,.2,1) both;position:relative}
  @keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
  .msg-row.in{align-self:flex-start}
  .msg-row.out{align-self:flex-end;flex-direction:row-reverse}
  .m-av{width:34px;height:34px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;color:#fff;font-weight:600;font-size:12px;align-self:flex-end;font-family:"Space Grotesk"}
  .m-av.ghost{visibility:hidden}
  .m-stack{display:flex;flex-direction:column;gap:3px;min-width:0;position:relative}
  .out .m-stack{align-items:flex-end}
  .m-sender{font-family:"Space Grotesk";font-size:12px;font-weight:600;margin:0 4px 2px;color:var(--accent)}

  .bubble{padding:11px 15px;font-size:14.5px;line-height:1.5;border-radius:18px;position:relative;word-wrap:break-word;max-width:100%;white-space:pre-wrap}
  .in .bubble{background:var(--bubble-in);border:1px solid var(--brd-2);color:var(--text);border-bottom-left-radius:6px;box-shadow:var(--sh-sm)}
  .out .bubble{background:var(--grad);color:#fff;border-bottom-right-radius:6px;box-shadow:var(--glow)}

  .m-foot{display:flex;align-items:center;gap:6px;margin:2px 6px 0;font-size:10.5px;color:var(--dim);font-family:"JetBrains Mono"}
  .m-tick svg{width:15px;height:15px;display:block}
  .m-tick.read{color:var(--accent)}

  .att{display:flex;align-items:center;gap:12px;padding:12px 15px;background:var(--bubble-in);border:1px solid var(--brd-2);border-radius:16px;border-bottom-left-radius:6px;min-width:240px;box-shadow:var(--sh-sm);text-decoration:none;cursor:pointer;transition:transform .12s,box-shadow .12s}
  .img-att{display:inline-block;line-height:0;border-radius:16px;overflow:hidden;box-shadow:var(--sh-sm);cursor:pointer;max-width:280px}
  .chat-img{max-width:280px;max-height:320px;width:auto;height:auto;display:block;object-fit:cover;transition:transform .12s}
  .img-att:hover .chat-img{transform:scale(1.02)}
  .att:hover{transform:translateY(-1px);box-shadow:var(--sh-md)}
  .att-info{flex:1;min-width:0}
  .att-dl{flex-shrink:0;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;opacity:.65}
  .att-dl svg{width:18px;height:18px}
  .out .att{background:var(--grad);border-color:transparent;box-shadow:var(--glow)}
  .att-caption{margin-top:6px}
  .att-ic{width:42px;height:42px;border-radius:11px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;flex-shrink:0}
  .att-ic svg{width:21px;height:21px}
  .att-name{font-size:13.5px;font-weight:600;word-break:break-all} .att-size{font-size:11px;color:var(--mut);margin-top:1px;font-family:"JetBrains Mono"}
  .out .att-name{color:#fff} .out .att-size{color:rgba(255,255,255,.85)}
  .out .att-ic{background:rgba(255,255,255,.22);color:#fff}
  .out .att-dl{color:#fff;opacity:.9}
  .att-name{font-size:13.5px;font-weight:600;word-break:break-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  /* reactions */
  .react-bar{position:absolute;top:-20px;display:flex;gap:2px;padding:4px;border-radius:20px;background:var(--pop-bg);border:1px solid var(--brd-2);box-shadow:var(--sh-md);opacity:0;transform:translateY(4px) scale(.92);transition:.16s;pointer-events:none;z-index:5}
  .in .react-bar{left:8px} .out .react-bar{right:8px}
  .msg-row:hover .react-bar{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}
  /* while a text selection is in progress, never let the bar swallow the drag */
  body.selecting .react-bar{pointer-events:none!important}
  .react-bar button{width:28px;height:28px;border-radius:50%;font-size:15px;display:grid;place-items:center;transition:.12s}
  .react-bar button:hover{background:var(--panel-2);transform:scale(1.22)}
  /* message text must stay selectable/copyable */
  .bubble{-webkit-user-select:text;user-select:text}
  .reactions{display:flex;gap:5px;margin:5px 5px 0;flex-wrap:wrap}
  .out .reactions{justify-content:flex-end}
  .rchip{display:flex;align-items:center;gap:4px;padding:2px 9px;border-radius:20px;font-size:12px;background:var(--bubble-in);border:1px solid var(--brd-2);color:var(--text);font-family:"JetBrains Mono";box-shadow:var(--sh-sm);animation:rise .25s both;cursor:pointer}
  .rchip b{font-weight:500;font-size:11px;color:var(--accent)}

  /* typing */
  .typing{display:flex;gap:11px;align-self:flex-start;max-width:72%;animation:rise .3s both}
  .typing .bubble{display:flex;gap:5px;align-items:center;padding:15px 17px;background:var(--bubble-in);border:1px solid var(--brd-2);border-radius:18px;border-bottom-left-radius:6px;box-shadow:var(--sh-sm)}
  .typing i{width:7px;height:7px;border-radius:50%;background:var(--dim);animation:bb 1.3s infinite}
  .typing i:nth-child(2){animation-delay:.18s}.typing i:nth-child(3){animation-delay:.36s}
  @keyframes bb{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-6px);opacity:1}}

  /* COMPOSER */
  .composer{flex-shrink:0;padding:14px 24px 22px;border-top:1px solid var(--brd);background:var(--head-bg);border-radius:0 0 var(--r-xl) var(--r-xl);position:relative}
  .comp-tools{display:flex;gap:8px;margin-bottom:10px}
  .ai-pill{display:flex;align-items:center;gap:7px;padding:6px 13px;border-radius:20px;font-size:12px;font-weight:500;background:var(--accent-soft);border:1px solid var(--accent-brd);color:var(--accent);transition:.18s}
  .ai-pill:hover{background:var(--accent);color:#fff}
  .ai-pill:hover svg,.ai-pill:hover kbd{color:#fff;border-color:rgba(255,255,255,.4)}
  .ai-pill svg{width:15px;height:15px}
  .ai-pill kbd{font-family:"JetBrains Mono";font-size:10px;background:var(--chip-bg);padding:1px 6px;border-radius:5px;border:1px solid var(--accent-brd);color:var(--accent)}
  .chip-tool{display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:20px;font-size:12px;color:var(--mut);background:var(--panel-2);border:1px solid var(--brd);transition:.16s}
  .chip-tool:hover{color:var(--text);border-color:var(--brd-2)}
  .chip-tool svg{width:14px;height:14px}

  .comp-box{display:flex;align-items:flex-end;gap:8px;background:var(--panel-2);border:1.5px solid var(--brd);border-radius:var(--r-lg);padding:8px 8px 8px 12px;transition:.2s}
  .comp-box:focus-within{border-color:var(--accent-brd);background:var(--panel);box-shadow:0 0 0 4px var(--accent-soft)}
  .comp-btn{width:38px;height:38px;border-radius:12px;color:var(--mut);display:grid;place-items:center;flex-shrink:0;transition:.16s}
  .comp-btn:hover{color:var(--accent);background:var(--panel);box-shadow:var(--sh-sm)}
  .comp-btn.on{color:var(--accent);background:var(--accent-soft)}
  .comp-btn svg{width:21px;height:21px}
  .comp-input{flex:1;border:none;outline:none;background:none;resize:none;font-family:inherit;font-size:14.5px;line-height:1.5;color:var(--text);padding:9px 4px;max-height:140px}
  .comp-input::placeholder{color:var(--dim)}
  .send{width:42px;height:42px;border-radius:13px;flex-shrink:0;background:var(--grad);color:#fff;display:grid;place-items:center;transition:.2s;transform:scale(.88);opacity:.5}
  .send svg{width:20px;height:20px}
  .send.ready{transform:scale(1);opacity:1;box-shadow:var(--glow)}
  .send.ready:hover{filter:brightness(1.06)}
  .send:active{transform:scale(.92)}

  /* emoji popover */
  .emoji-pop{position:absolute;bottom:74px;right:60px;width:268px;background:var(--pop-bg);border:1px solid var(--brd-2);border-radius:16px;box-shadow:var(--sh-lg);padding:10px;display:none;grid-template-columns:repeat(6,1fr);gap:3px;z-index:30}
  .emoji-pop.open{display:grid;animation:rise .18s both}
  .emoji-pop button{width:100%;aspect-ratio:1;border-radius:10px;font-size:20px;display:grid;place-items:center;transition:.12s}
  .emoji-pop button:hover{background:var(--panel-2);transform:scale(1.15)}

  /* details drawer */
  .details{position:absolute;top:0;right:0;bottom:0;width:300px;background:var(--panel);border-left:1px solid var(--brd);transform:translateX(100%);transition:transform .28s cubic-bezier(.2,.8,.2,1);z-index:20;display:flex;flex-direction:column;box-shadow:var(--sh-lg)}
  .details.open{transform:translateX(0)}
  .det-head{height:78px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid var(--brd)}
  .det-head h4{font-family:"Space Grotesk";font-size:14px;font-weight:600}
  .det-close{width:34px;height:34px;border-radius:10px;color:var(--mut);display:grid;place-items:center}
  .det-close:hover{background:var(--panel-2);color:var(--text)}
  .det-close svg{width:18px;height:18px}
  .det-body{flex:1;overflow-y:auto;padding:24px 18px;text-align:center}
  .det-av{width:88px;height:88px;border-radius:26px;margin:0 auto 14px;display:grid;place-items:center;color:#fff;font-weight:700;font-size:30px;font-family:"Space Grotesk"}
  .det-name{font-family:"Space Grotesk";font-size:18px;font-weight:700}
  .det-status{font-size:12.5px;color:var(--mut);margin-top:4px;font-family:"JetBrains Mono"}
  .det-actions{display:flex;gap:8px;margin:20px 0}
  .det-act{flex:1;padding:11px;border-radius:12px;background:var(--panel-2);border:1px solid var(--brd);color:var(--text);font-size:12px;font-weight:500;display:flex;flex-direction:column;align-items:center;gap:6px;transition:.15s}
  .det-act:hover{border-color:var(--accent-brd);color:var(--accent)}
  .det-act svg{width:19px;height:19px}
  .det-sec{text-align:left;margin-top:18px}
  .det-sec h5{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:var(--dim);margin-bottom:10px;font-family:"JetBrains Mono"}
  .det-file{display:flex;align-items:center;gap:10px;padding:9px;border-radius:11px;transition:.14s}
  .det-file:hover{background:var(--panel-2)}
  .det-file .fi{width:34px;height:34px;border-radius:9px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;flex-shrink:0}
  .det-file .fi svg{width:17px;height:17px}
  .det-file .fn{font-size:12.5px;font-weight:500;text-align:left;word-break:break-all} .det-file .fs{font-size:10.5px;color:var(--mut);font-family:"JetBrains Mono"}
  .det-empty{font-size:12px;color:var(--dim);padding:8px 0}

  .empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:var(--mut);text-align:center;padding:40px;background:var(--stream-bg)}
  .empty .ic{width:80px;height:80px;border-radius:24px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center}
  .empty .ic svg{width:38px;height:38px}
  .empty h3{font-family:"Space Grotesk";font-size:20px;color:var(--text);font-weight:700}
  .empty p{font-size:13.5px;max-width:280px}

  /* modal */
  .overlay{position:fixed;inset:0;z-index:60;background:rgba(10,12,20,.5);backdrop-filter:blur(4px);display:none;align-items:center;justify-content:center;padding:20px}
  .overlay.open{display:flex;animation:fade .2s both}
  @keyframes fade{from{opacity:0}to{opacity:1}}
  .modal{width:100%;max-width:380px;background:var(--panel);border:1px solid var(--brd);border-radius:20px;box-shadow:var(--sh-lg);padding:24px;animation:rise .25s both}
  .modal h3{font-family:"Space Grotesk";font-size:18px;font-weight:700;margin-bottom:4px}
  .modal p{font-size:13px;color:var(--mut);margin-bottom:16px}
  .modal input{width:100%;background:var(--panel-2);border:1px solid var(--brd);color:var(--text);font-size:14px;padding:12px 14px;border-radius:12px;outline:none;transition:.2s}
  .modal input:focus{border-color:var(--accent-brd);box-shadow:0 0 0 3px var(--accent-soft)}
  .modal-actions{display:flex;gap:10px;margin-top:18px}
  .modal-actions button{flex:1;padding:11px;border-radius:12px;font-size:13.5px;font-weight:600;transition:.16s}
  .btn-ghost{background:var(--panel-2);border:1px solid var(--brd);color:var(--text)}
  .btn-ghost:hover{border-color:var(--brd-2)}
  .btn-primary{background:var(--grad);color:#fff;box-shadow:var(--glow)}
  .btn-primary:hover{filter:brightness(1.05)}

  /* toasts */
  #toasts{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:80;display:flex;flex-direction:column;gap:8px;align-items:center}
  .toast{background:var(--text);color:var(--panel);font-size:13px;font-weight:500;padding:11px 18px;border-radius:12px;box-shadow:var(--sh-lg);opacity:0;transform:translateY(10px);transition:.3s;max-width:320px}
  .toast.show{opacity:1;transform:none}

  /* ---------- CALL SCREEN ---------- */
  .call{position:fixed;inset:0;z-index:90;display:none;flex-direction:column;color:#fff;overflow:hidden}
  .call.open{display:flex;animation:fade .25s both}
  .call-bg{position:absolute;inset:0;z-index:0}
  .call.voice .call-bg{background:radial-gradient(120% 90% at 50% 18%,#1d3a6e 0%,#0a1226 68%)}
  .call.video .call-bg{background:#0a0d16}
  .call-bg::after{content:"";position:absolute;inset:0;background:radial-gradient(60% 50% at 50% 30%,rgba(79,125,255,.28),transparent 70%);animation:pulseBg 4s ease-in-out infinite}
  @keyframes pulseBg{0%,100%{opacity:.5}50%{opacity:1}}

  .call-top{position:relative;z-index:2;padding:54px 24px 0;text-align:center}
  .call-name{font-family:"Space Grotesk";font-size:27px;font-weight:700;letter-spacing:-.01em}
  .call-sub{font-size:14px;color:rgba(255,255,255,.72);margin-top:7px;font-family:"JetBrains Mono"}

  .call-stage{position:relative;z-index:2;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
  .call-av{width:148px;height:148px;border-radius:46px;display:grid;place-items:center;color:#fff;font-weight:700;font-size:50px;font-family:"Space Grotesk";position:relative;box-shadow:0 24px 70px rgba(0,0,0,.5)}
  .call-av .ring{position:absolute;inset:0;border-radius:46px;border:2px solid rgba(255,255,255,.45);animation:callring 2.2s ease-out infinite;pointer-events:none}
  .call-av .ring:nth-child(2){animation-delay:1.1s}
  @keyframes callring{0%{transform:scale(1);opacity:.6}100%{transform:scale(1.55);opacity:0}}

  .audio-bars{display:flex;gap:5px;justify-content:center;align-items:center;height:34px;margin-top:30px;z-index:2;position:relative}
  .audio-bars i{width:4px;height:8px;background:rgba(255,255,255,.85);border-radius:4px;animation:bars 1s ease-in-out infinite}
  @keyframes bars{0%,100%{height:7px}50%{height:30px}}

  .video-remote{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:linear-gradient(160deg,#16233f,#0a0d16)}
  .video-self{position:absolute;z-index:5;right:20px;top:20px;width:124px;height:172px;border-radius:18px;overflow:hidden;background:#1a2030;border:1.5px solid rgba(255,255,255,.18);box-shadow:0 12px 34px rgba(0,0,0,.5);display:grid;place-items:center}
  .video-self video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1);display:none}
  .video-self .ph{font-size:11.5px;color:rgba(255,255,255,.6);font-family:"JetBrains Mono";text-align:center;padding:8px}

  .call-controls{position:relative;z-index:4;display:flex;gap:18px;justify-content:center;align-items:center;padding:0 24px 56px}
  .call-btn{width:62px;height:62px;border-radius:50%;background:rgba(255,255,255,.14);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:grid;place-items:center;color:#fff;transition:.18s;border:1px solid rgba(255,255,255,.12)}
  .call-btn:hover{background:rgba(255,255,255,.24)}
  .call-btn.off{background:#fff;color:#11203f;border-color:#fff}
  .call-btn svg{width:25px;height:25px}
  .call-btn.end{background:#f2425b;width:68px;height:68px;border-color:transparent}
  .call-btn.end:hover{background:#e0334b}

  .screen-video{position:absolute;top:0;left:0;right:0;bottom:128px;z-index:3;object-fit:contain;background:#000;display:none}
  .screen-video.live{display:block}
  .share-badge{position:absolute;top:18px;left:50%;transform:translateX(-50%);z-index:6;background:rgba(242,66,91,.92);color:#fff;font-size:12px;font-weight:600;padding:7px 15px;border-radius:20px;font-family:"JetBrains Mono";display:none;align-items:center;gap:8px}
  .share-badge.show{display:flex}
  .share-badge i{width:8px;height:8px;border-radius:50%;background:#fff;animation:pulseBg 1.4s infinite}

  @media(prefers-reduced-motion:reduce){.aurora::before,.aurora::after{animation:none}}
  @media(max-width:1100px){.app{grid-template-columns:78px 300px 1fr}}
  @media(max-width:880px){
    .app{display:flex;flex-direction:column;grid-template-columns:none;height:100vh;height:100dvh;padding:0;gap:0}
    .list{order:1;flex:1;min-height:0;border-radius:0}
    .chat{order:2;display:none;border-radius:0}
    .rail{order:3;flex-direction:row;align-items:center;justify-content:space-around;height:62px;padding:6px 10px;border-radius:0;border-top:1px solid var(--brd);gap:2px;flex-shrink:0}
    .rail .brand{display:none}
    .rail .rail-sp{display:none}
    .rail-btn{width:46px;height:42px}
    .rail-me{margin:0}
    .app.show-chat .list{display:none}
    .app.show-chat .rail{display:none}
    .app.show-chat .chat{display:flex;flex:1;min-height:0}
    .back-btn{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;color:var(--mut);margin-left:-8px}
    .back-btn:hover{background:var(--panel-2)}
    .back-btn svg{width:22px;height:22px}
    .msg-row,.typing{max-width:88%}
    .details{width:100%}
    .emoji-pop{right:20px}
    .auth-card{margin:0 14px;width:auto;max-width:440px}
    .modal,.modal.lg{max-width:none;width:calc(100% - 28px)}
    .compose-menu{left:14px!important;right:14px;width:auto;min-width:0}
    .umenu{left:14px!important;right:14px;width:auto;min-width:0}
    .cmp-list,.ppl-list,.inv-list{max-height:48vh}
  }

/* ===== Real call additions ===== */
.remote-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:linear-gradient(160deg,#16233f,#0a0d16);z-index:1;display:none}
.remote-video.live{display:block}
.video-remote{transition:opacity .3s}
.call-btn.accept{background:#16b364;border-color:transparent;width:68px;height:68px}
.call-btn.accept:hover{background:#12a058}
.call.incoming .call-controls{gap:60px}
/* call history list */
.thread.call-missed .t-name{color:#f2425b}
.t-preview.call-meta{display:inline-flex;align-items:center;gap:5px}
.t-preview.call-meta svg{opacity:.7}
.call-right{font-size:12px;color:var(--dim);font-family:"JetBrains Mono",monospace;margin-left:auto;white-space:nowrap}
.thread.call-missed .call-right{color:#f2425b}
.presence.offline{background:#9aa3b2}

/* ===== Status dots (Teams-style) ===== */
.presence.available,.presence.online{background:#16b364}
.presence.busy{background:#f2425b}
.presence.away{background:#e0a93c}
.presence.dnd{background:#c0344b;position:relative}
.presence.dnd::after{content:"";position:absolute;left:50%;top:50%;width:55%;height:2px;background:#fff;transform:translate(-50%,-50%);border-radius:2px}
.presence.offline{background:#9aa3b2}

/* ===== Status menu ===== */
.status-menu{position:fixed;left:78px;bottom:18px;z-index:120;background:var(--panel);border:1px solid var(--brd);
  border-radius:14px;box-shadow:0 18px 50px rgba(10,15,30,.28);padding:7px;min-width:204px;animation:fadeUp .14s ease}
.status-menu-title{font-size:11px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--dim);padding:7px 10px 5px}
.status-menu button{display:flex;align-items:center;gap:10px;width:100%;background:none;border:0;cursor:pointer;
  padding:9px 10px;border-radius:9px;font-size:14px;color:var(--text);text-align:left;font-family:inherit}
.status-menu button:hover{background:var(--panel-3)}
.status-menu button.on{background:var(--panel-3);font-weight:600}
.status-menu button .presence{position:static;width:11px;height:11px;border:0;flex:0 0 11px}
@keyframes fadeUp{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ===== Staged attachment in composer (Teams-style) ===== */
.staged{display:none;padding:10px 12px 0}
.staged.show{display:block}
.staged-chip{display:flex;align-items:center;gap:11px;background:var(--panel-3);border:1px solid var(--brd);
  border-radius:13px;padding:9px 11px;max-width:340px;position:relative}
.staged-ic{width:38px;height:38px;border-radius:10px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;flex-shrink:0}
.staged-ic svg{width:19px;height:19px}
.staged-meta{flex:1;min-width:0}
.staged-name{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.staged-size{font-size:11px;color:var(--mut);font-family:"JetBrains Mono",monospace;margin-top:1px}
.staged-x{flex-shrink:0;width:26px;height:26px;border-radius:8px;border:0;background:none;color:var(--dim);cursor:pointer;display:grid;place-items:center}
.staged-x:hover{background:var(--brd);color:var(--text)}
.staged-x svg{width:15px;height:15px}

/* ===== Multi-tenant auth, onboarding, invite, people, user menu ===== */
  .auth-root{position:fixed;inset:0;z-index:50;display:none;align-items:center;justify-content:center;padding:24px;overflow-y:auto}
  .auth-root.open{display:flex}
  body.authing .app{display:none!important}
  .auth-card{position:relative;z-index:2;width:100%;max-width:440px;background:var(--panel);border:1px solid var(--brd);border-radius:var(--r-xl);box-shadow:var(--sh-lg);padding:34px 32px;animation:rise .3s both}
  .auth-card.wide{max-width:560px}
  .auth-brand{display:flex;align-items:center;gap:11px;margin-bottom:24px}
  .auth-brand .mark{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:var(--grad);box-shadow:var(--glow)}
  .auth-brand .mark svg{width:22px;height:22px}
  .auth-brand .wm{font-family:"Space Grotesk";font-weight:700;font-size:19px;letter-spacing:-.01em}
  .auth-brand .wm span{color:var(--mut);font-weight:500;font-size:12px;letter-spacing:.18em;text-transform:uppercase;display:block;margin-top:1px}
  .auth-h{font-family:"Space Grotesk";font-size:24px;font-weight:700;letter-spacing:-.02em;margin-bottom:6px}
  .auth-sub{font-size:13.5px;color:var(--mut);margin-bottom:22px;line-height:1.5}

  .fld{margin-bottom:14px}
  .fld label{display:block;font-size:12px;font-weight:600;color:var(--mut);margin-bottom:6px;letter-spacing:.01em}
  .fld .opt{color:var(--dim);font-weight:500;text-transform:none;letter-spacing:0}
  .fld input,.fld select{width:100%;background:var(--panel-2);border:1px solid var(--brd);color:var(--text);font-family:inherit;font-size:14px;padding:12px 14px;border-radius:12px;outline:none;transition:.18s}
  .fld input::placeholder{color:var(--dim)}
  .fld input:focus,.fld select:focus{border-color:var(--accent-brd);background:var(--panel);box-shadow:0 0 0 3px var(--accent-soft)}
  .fld.err input{border-color:#f2425b;box-shadow:0 0 0 3px rgba(242,66,91,.14)}
  .fld .hint{font-size:11.5px;color:var(--dim);margin-top:5px}
  .fld .emsg{font-size:11.5px;color:#f2425b;margin-top:5px;display:none}
  .fld.err .emsg{display:block}
  .row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  @media(max-width:480px){.row2{grid-template-columns:1fr}}

  .auth-btn{width:100%;padding:13px;border-radius:13px;font-size:14px;font-weight:600;background:var(--grad);color:#fff;box-shadow:var(--glow);transition:.16s;margin-top:6px;display:flex;align-items:center;justify-content:center;gap:8px}
  .auth-btn:hover{filter:brightness(1.05)}
  .auth-btn.ghost{background:var(--panel-2);border:1px solid var(--brd);color:var(--text);box-shadow:none}
  .auth-btn.ghost:hover{border-color:var(--brd-2);filter:none}
  .auth-foot{margin-top:20px;font-size:13px;color:var(--mut);text-align:center}
  .auth-foot a{color:var(--accent);font-weight:600;cursor:pointer}
  .auth-or{display:flex;align-items:center;gap:12px;margin:18px 0;color:var(--dim);font-size:11.5px;letter-spacing:.1em;text-transform:uppercase}
  .auth-or::before,.auth-or::after{content:"";flex:1;height:1px;background:var(--brd)}

  /* stepper */
  .steps{display:flex;align-items:center;gap:8px;margin-bottom:22px}
  .step{flex:1;display:flex;align-items:center;gap:9px;font-size:12px;font-weight:600;color:var(--dim)}
  .step .dot{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:var(--panel-3);border:1px solid var(--brd);font-size:12px;flex-shrink:0;transition:.2s}
  .step.on{color:var(--text)}
  .step.on .dot{background:var(--accent-soft);border-color:var(--accent-brd);color:var(--accent)}
  .step.done .dot{background:var(--grad);border-color:transparent;color:#fff}
  .step .ln{flex:1;height:2px;background:var(--brd);border-radius:2px}
  .step.done .ln{background:var(--accent)}
  .pane{display:none}.pane.on{display:block;animation:fade .25s both}

  /* invite rows */
  .inv-list{display:flex;flex-direction:column;gap:9px;margin:4px 0 8px}
  .inv-row{display:flex;gap:9px;align-items:center}
  .inv-row input,.inv-row select{height:46px;background:var(--panel-2);border:1px solid var(--brd);color:var(--text);font-family:inherit;font-size:14px;padding:0 14px;border-radius:12px;outline:none;transition:.18s}
  .inv-row input{flex:1;min-width:0}
  .inv-row input::placeholder{color:var(--dim)}
  .inv-row input:focus,.inv-row select:focus{border-color:var(--accent-brd);background:var(--panel);box-shadow:0 0 0 3px var(--accent-soft)}
  .inv-row select{width:124px;flex:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%239aa1b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
  .inv-x{width:46px;height:46px;flex:none;border-radius:12px;background:var(--panel-2);border:1px solid var(--brd);color:var(--dim);display:grid;place-items:center;transition:.16s}
  .inv-x:hover{color:#f2425b;border-color:var(--brd-2);background:var(--panel)}
  .inv-x svg{width:17px;height:17px}
  .inv-add{font-size:13px;font-weight:600;color:var(--accent);display:inline-flex;align-items:center;gap:6px;padding:7px 0;cursor:pointer}
  .inv-add svg{width:16px;height:16px}

  /* invite link card (post-create) */
  .link-card{background:var(--panel-2);border:1px solid var(--brd);border-radius:13px;padding:13px 14px;display:flex;align-items:center;gap:10px;margin-bottom:9px}
  .link-card .em{flex:1;min-width:0}
  .link-card .em b{font-size:13px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .link-card .em small{font-size:11px;color:var(--dim);font-family:"JetBrains Mono";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
  .link-card .cp{font-size:12px;font-weight:600;color:var(--accent);background:var(--accent-soft);border:1px solid var(--accent-brd);padding:7px 11px;border-radius:9px;flex:none;transition:.16s}
  .link-card .cp:hover{background:var(--accent);color:#fff}

  /* people / directory modal */
  .ppl-list{display:flex;flex-direction:column;gap:4px;max-height:340px;overflow-y:auto;margin:6px -6px 0;padding:0 6px}
  .ppl{display:flex;align-items:center;gap:12px;padding:10px 11px;border-radius:13px;cursor:pointer;transition:.14s}
  .ppl:hover{background:var(--panel-2)}
  .ppl .pa{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:600;font-size:14px;flex:none;position:relative}
  .ppl .pi{flex:1;min-width:0}
  .ppl .pi b{font-size:14px;display:block}
  .ppl .pi small{font-size:12px;color:var(--mut);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ppl .tag{font-size:10.5px;font-weight:600;padding:3px 9px;border-radius:20px;flex:none}
  .tag.owner{background:var(--accent-soft);color:var(--accent);border:1px solid var(--accent-brd)}
  .tag.pend{background:var(--panel-3);color:var(--mut);border:1px solid var(--brd)}
  .ppl-sec{font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--dim);margin:14px 6px 4px}

  /* user menu popover */
  .umenu{position:fixed;z-index:70;background:var(--pop-bg);border:1px solid var(--brd-2);border-radius:16px;box-shadow:var(--sh-lg);padding:8px;min-width:226px;display:none;animation:rise .16s both}
  .umenu.open{display:block}
  .umenu .uhead{padding:11px 12px 12px;border-bottom:1px solid var(--brd);margin-bottom:6px;display:flex;gap:11px;align-items:center}
  .umenu .uav{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:600;font-size:14px;flex:none}
  .umenu .un b{font-size:14px;display:block}
  .umenu .un small{font-size:12px;color:var(--mut);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
  .umenu .wsname{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);padding:4px 12px 8px}
  .umi{display:flex;align-items:center;gap:11px;width:100%;padding:10px 12px;border-radius:11px;font-size:13.5px;font-weight:500;color:var(--text);text-align:left;transition:.14s}
  .umi:hover{background:var(--panel-2)}
  .umi svg{width:18px;height:18px;color:var(--mut)}
  .umi.danger{color:#f2425b}.umi.danger svg{color:#f2425b}
  .modal.lg{max-width:440px}

/* ===== Compose: new chat / new group ===== */
.compose-menu{position:fixed;z-index:300;background:var(--pop-bg);border:1px solid var(--brd);border-radius:14px;box-shadow:var(--sh-lg);padding:6px;min-width:248px;opacity:0;transform:translateY(-6px);pointer-events:none;transition:.16s}
.compose-menu.open{opacity:1;transform:none;pointer-events:auto}
.cm-item{display:flex;align-items:center;gap:12px;width:100%;background:transparent;border:0;padding:10px 12px;border-radius:10px;cursor:pointer;text-align:left;color:var(--text)}
.cm-item:hover{background:var(--panel-2)}
.cm-item svg{width:20px;height:20px;color:var(--accent);flex:0 0 20px}
.cm-item b{display:block;font-size:14px;line-height:1.2}
.cm-item small{display:block;font-size:12px;color:var(--mut);margin-top:2px}
.cmp-name,.cmp-search{width:100%;padding:11px 14px;border:1px solid var(--brd);border-radius:12px;background:var(--panel-2);color:var(--text);font-size:14px;margin-bottom:10px;outline:none;box-sizing:border-box}
.cmp-name:focus,.cmp-search:focus{border-color:var(--accent)}
.cmp-list{max-height:320px;overflow-y:auto;margin:2px 0 8px;display:flex;flex-direction:column;gap:2px}
.cmp-empty{padding:24px;text-align:center;color:var(--mut);font-size:13px}
.cmp-row{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:12px;cursor:pointer}
.cmp-row:hover{background:var(--panel-2)}
.cmp-row.sel{background:var(--accent-soft)}
.cmp-row .pa{position:relative;width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;font-size:13px;flex:0 0 40px}
.cmp-row .pi{flex:1;min-width:0}
.cmp-row .pi b{display:block;font-size:14px;color:var(--text)}
.cmp-row .pi small{display:block;font-size:12px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cmp-check{width:24px;height:24px;border-radius:50%;border:2px solid var(--brd);display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px;font-weight:700;flex:0 0 24px}
.cmp-row.sel .cmp-check{background:var(--accent);border-color:var(--accent)}
.cmp-go{font-size:12px;color:var(--accent);font-weight:600;padding:5px 12px;border:1px solid var(--accent-brd);border-radius:999px}

/* ===== Inline call log entry (WhatsApp/Teams style) ===== */
.call-log{display:flex;justify-content:center;margin:10px 0}
.call-log-card{display:inline-flex;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--brd);border-radius:999px;padding:7px 16px;font-size:13px;color:var(--mut);box-shadow:0 2px 8px rgba(15,23,42,.06)}
.call-log-card .cl-ic{display:flex}
.call-log-card .cl-ic svg{width:16px;height:16px;color:var(--accent)}
.call-log-card .cl-txt{font-weight:500;color:var(--text)}
.call-log-card .cl-time{color:var(--mut);font-size:12px}
.call-log-card.missed .cl-ic svg,.call-log-card.missed .cl-txt{color:#e0414f}

  /* ===== Reply + Forward (v19.0.16.0.0) ===== */
  .quote{display:block;border-left:3px solid var(--accent);background:var(--panel-3);border-radius:8px;padding:5px 9px;margin-bottom:6px;cursor:pointer;max-width:100%;overflow:hidden}
  .out .quote{background:rgba(255,255,255,.16);border-left-color:rgba(255,255,255,.75)}
  .quote .q-author{display:block;font-size:11px;font-weight:600;color:var(--accent);line-height:1.4}
  .out .quote .q-author{color:#fff}
  .quote .q-text{display:block;font-size:12.5px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .out .quote .q-text{color:rgba(255,255,255,.88)}
  .fwd-tag{display:flex;align-items:center;gap:4px;font-size:11px;font-style:italic;color:var(--dim);margin-bottom:4px}
  .out .fwd-tag{color:rgba(255,255,255,.82)}
  .fwd-tag svg{width:13px;height:13px}
  .react-bar .rb-act{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:var(--mut);background:none;border:0;cursor:pointer;transition:.12s}
  .react-bar .rb-act svg{width:16px;height:16px}
  .react-bar .rb-act:hover{background:var(--panel-2);color:var(--accent);transform:scale(1.12)}
  .reply-bar{display:none;align-items:center;gap:10px;padding:9px 12px;margin-bottom:8px;background:var(--panel-2);border:1px solid var(--brd);border-left:3px solid var(--accent);border-radius:10px}
  .reply-bar.show{display:flex}
  .reply-bar .rb-quote{flex:1;min-width:0}
  .reply-bar .rb-q-author{display:block;font-size:11px;font-weight:600;color:var(--accent)}
  .reply-bar .rb-q-text{display:block;font-size:12.5px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .reply-bar .rb-x{flex-shrink:0;width:26px;height:26px;border-radius:8px;border:0;background:none;color:var(--dim);cursor:pointer;font-size:13px}
  .reply-bar .rb-x:hover{background:var(--panel-3);color:var(--text)}
  .msg-menu{position:fixed;z-index:80;display:none;flex-direction:column;min-width:190px;background:var(--pop-bg);border:1px solid var(--brd-2);border-radius:14px;box-shadow:var(--sh-lg);padding:6px;animation:rise .16s both}
  .msg-menu.open{display:flex}
  .msg-menu>button{display:flex;align-items:center;gap:10px;padding:10px 12px;border:0;background:none;color:var(--text);font-size:14px;border-radius:9px;cursor:pointer;text-align:left}
  .msg-menu>button:hover{background:var(--panel-2)}
  .msg-menu>button svg{width:18px;height:18px;color:var(--mut)}
  .msg-menu .mm-emojis{display:flex;gap:2px;padding:6px 6px 2px;border-top:1px solid var(--brd);margin-top:4px}
  .msg-menu .mm-e{font-size:19px;padding:3px 5px;border-radius:8px;cursor:pointer;transition:.12s}
  .msg-menu .mm-e:hover{background:var(--panel-3);transform:scale(1.18)}
  .msg-row.flash .bubble,.msg-row.flash .att{animation:flashHi 1.2s ease}
  @keyframes flashHi{0%,100%{box-shadow:var(--sh-sm)}30%{box-shadow:0 0 0 3px var(--accent-brd)}}

  /* ===== Account settings + remove member (v19.0.19.0.0) ===== */
  .acct-sec{display:flex;flex-direction:column;gap:8px}
  .acct-lb{font-size:12px;font-weight:600;color:var(--mut);text-transform:uppercase;letter-spacing:.04em}
  .acct-sec input{width:100%;background:var(--panel-2);border:1px solid var(--brd);color:var(--text);font-size:14px;padding:11px 13px;border-radius:11px;outline:none;transition:.18s}
  .acct-sec input:focus{border-color:var(--accent-brd);box-shadow:0 0 0 3px var(--accent-soft)}
  .acct-btn{align-self:flex-start;padding:9px 16px;border-radius:11px;font-size:13px;font-weight:600;margin-top:2px}
  .acct-div{height:1px;background:var(--brd);margin:18px 0}
  .ppl-remove{flex:0 0 32px;width:32px;height:32px;border:0;background:none;color:var(--dim);border-radius:9px;cursor:pointer;display:grid;place-items:center;transition:.14s}
  .ppl-remove svg{width:18px;height:18px}
  .ppl-remove:hover{background:rgba(220,53,69,.12);color:#dc3545}

  /* ===== Call: minimize (PiP) + Meet-style screen share (v19.0.20.0.0) ===== */
  .call-min{position:absolute;top:18px;left:18px;z-index:7;width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.14);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;display:grid;place-items:center;border:1px solid rgba(255,255,255,.12);cursor:pointer;transition:.16s}
  .call-min:hover{background:rgba(255,255,255,.26)}
  .call-min svg{width:22px;height:22px}

  /* Screen share, Google-Meet style: the SHARER never sees a full-screen echo of
     their own screen (that caused the hall-of-mirrors). Their own share shows only
     as a small thumbnail; the other person stays the main view. The RECEIVER still
     sees the shared screen big and letterboxed via the base .screen-video rule. */
  #shareVideo.screen-video{top:auto;left:auto;right:20px;bottom:150px;width:230px;height:144px;border-radius:14px;border:1.5px solid rgba(255,255,255,.22);box-shadow:0 12px 34px rgba(0,0,0,.5);object-fit:cover;background:#11151f;z-index:6}
  .call.minimized #shareVideo.screen-video{display:none}

  /* Mini control bar (only visible when minimized) */
  .mini-ctl{display:none}
  .call.minimized .mini-ctl{display:flex;position:absolute;inset:auto 0 0 0;z-index:9;align-items:center;gap:8px;padding:8px 10px;background:linear-gradient(transparent,rgba(0,0,0,.65))}
  .mini-ctl .mini-name{flex:1;min-width:0;font-size:12.5px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:"Space Grotesk"}
  .mini-ctl .mini-end{flex:0 0 auto;width:34px;height:34px;border-radius:50%;background:#f2425b;color:#fff;border:0;display:grid;place-items:center;cursor:pointer}
  .mini-ctl .mini-end:hover{background:#e0334b}
  .mini-ctl .mini-end svg{width:18px;height:18px}

  /* Minimized = floating PiP window; chat behind it stays usable */
  .call.minimized{inset:auto;right:18px;bottom:18px;width:300px;height:190px;border-radius:18px;overflow:hidden;cursor:pointer;border:1px solid rgba(255,255,255,.16);box-shadow:0 22px 60px rgba(0,0,0,.55);animation:none}
  .call.minimized .call-top,.call.minimized .call-controls,.call.minimized .call-min,.call.minimized .audio-bars,.call.minimized .share-badge{display:none!important}
  .call.minimized .call-stage{padding:0;gap:6px}
  .call.minimized .call-av{width:62px;height:62px;border-radius:20px;font-size:23px;box-shadow:none}
  .call.minimized .call-av .ring{display:none}
  .call.minimized .video-remote{gap:6px;opacity:1}
  .call.minimized .video-remote .call-name{font-size:13px}
  .call.minimized .video-remote .call-sub{font-size:11px}
  .call.minimized .video-self{width:62px;height:88px;right:8px;top:8px;bottom:auto;border-radius:10px}
  .call.minimized .remote-video{inset:0}
  .call.minimized .screen-video{top:0;left:0;right:0;bottom:0;border-radius:0;box-shadow:none}

  /* ===== Drag & drop file sharing (v19.0.22.0.0) ===== */
  .chat.drag-over::after{content:"Drop files to share";position:absolute;inset:14px;z-index:40;display:flex;align-items:center;justify-content:center;border:2.5px dashed var(--accent);border-radius:18px;background:rgba(47,109,240,.10);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);color:var(--accent);font-family:"Space Grotesk";font-weight:700;font-size:16px;letter-spacing:-.01em;pointer-events:none}

/* ---- group members panel (19.0.26) ---- */
.det-act.wide{width:100%;justify-content:center}
.grp-list{display:flex;flex-direction:column;gap:2px;max-height:46vh;overflow:auto;margin:4px 0 2px}
.grp-acts{display:flex;gap:6px;margin-left:auto;flex:0 0 auto}
.grp-mini{border:1px solid var(--brd);background:var(--panel-2);color:var(--text);
  border-radius:7px;padding:5px 9px;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}
.grp-mini:hover{background:var(--panel-3)}
.grp-mini.danger{color:#e5484d;border-color:rgba(229,72,77,.35)}
.grp-mini.danger:hover{background:rgba(229,72,77,.12)}
.grp-add-wrap{border-top:1px solid var(--brd);margin-top:8px;padding-top:10px}
.grp-add-head{font-size:12px;font-weight:700;color:var(--mut);text-transform:uppercase;
  letter-spacing:.04em;margin-bottom:6px}
.grp-add-list{display:flex;flex-direction:column;gap:2px;max-height:34vh;overflow:auto}
.grp-add-list .add-row{cursor:pointer;border-radius:9px}
.grp-add-list .add-row:hover{background:var(--panel-2)}
.grp-add-plus{margin-left:auto;font-size:20px;font-weight:600;color:var(--accent);
  width:26px;height:26px;display:flex;align-items:center;justify-content:center;
  border-radius:50%;background:var(--panel-3)}
.grp-foot{display:flex;align-items:center;gap:8px}
.btn-ghost.danger{color:#e5484d;border-color:rgba(229,72,77,.35)}
.btn-ghost.danger:hover{background:rgba(229,72,77,.12)}

/* ---- typing indicator + read receipts (19.0.28) ---- */
.typing-row{min-height:0;height:0;overflow:hidden;display:flex;align-items:center;gap:8px;
  padding:0 18px;color:var(--mut);font-size:12.5px;transition:height .12s ease}
.typing-row.on{height:24px}
.typing-txt{opacity:.85}
.typing-dots{display:inline-flex;gap:3px;align-items:flex-end}
.typing-dots i{width:5px;height:5px;border-radius:50%;background:var(--accent);
  display:inline-block;animation:inomTyping 1.2s infinite ease-in-out}
.typing-dots i:nth-child(2){animation-delay:.18s}
.typing-dots i:nth-child(3){animation-delay:.36s}
@keyframes inomTyping{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-4px);opacity:1}}
.seen-by{color:var(--accent);cursor:pointer;font-weight:600;margin:0 2px}
.seen-by:hover{text-decoration:underline}

/* ---- call recording (19.0.29) ---- */
.call-rec{position:absolute;top:16px;left:50%;transform:translateX(-50%);z-index:6;
  display:none;align-items:center;gap:7px;padding:6px 14px;border-radius:999px;
  font-size:13px;font-weight:700;color:#fff;background:rgba(0,0,0,.55);backdrop-filter:blur(6px)}
.call-rec i{width:9px;height:9px;border-radius:50%;background:#ff5a5a;display:inline-block}
.call-rec.on i{animation:inomRecBlink 1s infinite}
.call-rec.paused{color:#ffd479}.call-rec.paused i{background:#ffd479;animation:none}
.call-rec.remote i{background:#ff5a5a;animation:inomRecBlink 1s infinite}
@keyframes inomRecBlink{0%,100%{opacity:1}50%{opacity:.25}}
.call-btn#recBtn.on{background:#ff5a5a;color:#fff}
.call-btn#recBtn.locked{opacity:.55}
.rec-list{display:flex;flex-direction:column;gap:6px}
.rec-empty{color:var(--mut);font-size:13px;padding:4px 0}
.rec-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--brd);
  border-radius:10px;background:var(--panel-2)}
.rec-info{display:flex;flex-direction:column;min-width:0;flex:1}
.rec-info b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rec-info small{color:var(--mut);font-size:11.5px}
.rec-acts{display:flex;gap:6px;flex:0 0 auto}
.rec-link,.rec-mom{font-size:12px;font-weight:600;border-radius:7px;padding:5px 9px;cursor:pointer;
  border:1px solid var(--brd);background:var(--panel-3);color:var(--text);text-decoration:none;white-space:nowrap}
.rec-link:hover,.rec-mom:hover{background:var(--panel-2)}
.mom-body{max-height:60vh;overflow:auto;font-size:14px;line-height:1.5;padding:4px 2px}

/* ---- LiveKit group call (19.0.31) ---- */
.lk-call{position:fixed;inset:0;z-index:60;background:#0e0a1e;display:flex;flex-direction:column}
.lk-top{display:flex;align-items:center;gap:10px;padding:14px 18px;color:#fff}
.lk-title{font-weight:700;font-size:16px}
.lk-rec{margin-left:auto;font-weight:700;font-size:13px;color:#fff;background:rgba(255,90,90,.92);
  padding:5px 12px;border-radius:999px}
.lk-rec.paused{background:rgba(255,212,121,.92);color:#221}
.lk-tiles{flex:1;display:grid;gap:12px;padding:0 16px 8px;min-height:0;align-content:center}
.lk-tile{position:relative;background:#221a3f;border-radius:14px;overflow:hidden;min-height:120px;
  border:2px solid transparent}
.lk-tile.speaking{border-color:#3aa0ff}
.lk-tile video{width:100%;height:100%;object-fit:cover;display:none}
.lk-tile .av{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:700;font-size:30px}
.lk-tile .nm{position:absolute;left:10px;bottom:8px;color:#fff;font-size:13px;font-weight:600;
  background:rgba(0,0,0,.5);padding:3px 9px;border-radius:8px}
.lk-tile .handflag{position:absolute;top:8px;right:10px;font-size:22px;display:none}
.lk-tile.hand .handflag{display:block;animation:inomHand .6s ease-in-out infinite alternate}
@keyframes inomHand{from{transform:rotate(-12deg)}to{transform:rotate(12deg)}}
.lk-notice{margin:0 auto 6px;color:#fff;background:rgba(0,0,0,.55);padding:7px 16px;border-radius:999px;
  font-size:13px;font-weight:600}
.lk-controls{display:flex;gap:12px;justify-content:center;padding:14px 0 22px}
.lk-controls .call-btn.on{background:#2E8BE6;color:#fff}
.lk-controls #lkRecBtn.on{background:#ff5a5a}

/* ---- attachment upload progress (19.0.34) ---- */
.staged-chip.uploading { align-items: center; }
.staged-prog { height: 6px; border-radius: 999px; background: var(--panel-3, #e6e6ef);
  overflow: hidden; margin-top: 6px; }
.staged-prog-bar { height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #6C5CE7, #2E8BE6); transition: width .15s ease; }
.staged-pct { margin-left: 10px; font-size: 12px; font-weight: 700; color: #6C5CE7;
  min-width: 38px; text-align: right; }
.comp-btn.disabled, #send.disabled { opacity: .45; pointer-events: none; cursor: default; }

/* cancel button on an uploading attachment */
.staged-chip.uploading .staged-x { flex: 0 0 auto; margin-left: 6px; color: var(--mut, #8a8aa0); }
.staged-chip.uploading .staged-x:hover { color: #e5484d; }

/* ---- @-mentions (19.0.36) ---- */
.mention { color: #2E8BE6; font-weight: 600; }
.mention.me { background: rgba(108,92,231,.16); color: #6C5CE7; border-radius: 5px; padding: 0 3px; }
/* sent (blue) bubble: light text so the mention is readable on the blue background */
.msg-row.out .mention { color: #d8e8ff; }
.msg-row.out .mention.me { background: rgba(255,255,255,.22); color: #fff; }
.mention-pop {
  position: fixed; z-index: 70; background: var(--pop-bg, #fff);
  border: 1px solid var(--brd, #e6e6ef); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.16); padding: 6px; max-height: 260px;
  overflow-y: auto; display: none;
}
.mention-pop.open { display: block; }
.mention-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  border-radius: 9px; cursor: pointer; font-size: 14px;
}
.mention-item.sel, .mention-item:hover { background: var(--panel-3, #f1f1f7); }
.mention-av {
  width: 28px; height: 28px; border-radius: 50%; flex: 0 0 28px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 11px;
}
.mention-nm { font-weight: 500; }

/* ---- who-reacted list (19.0.37) ---- */
.rchip { cursor: pointer; }
.reactors-body { max-height: 320px; overflow-y: auto; margin: 4px 0 12px; }
.reactor-row { display: flex; align-items: center; gap: 11px; padding: 8px 6px; border-radius: 9px; }
.reactor-row.mine { cursor: pointer; }
.reactor-row.mine:hover { background: var(--panel-3, #f1f1f7); }
.reactor-av { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 32px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12px; }
.reactor-nm { flex: 1; font-size: 14px; font-weight: 500; }
.reactor-nm small { color: var(--mut, #8a8aa0); font-weight: 400; }
.reactor-emoji { font-size: 20px; }

/* ---- sidebar right-click context menu (19.0.38) ---- */
.ctx-menu {
  position: fixed; z-index: 80; min-width: 220px;
  background: var(--pop-bg, #fff); border: 1px solid var(--brd, #e6e6ef);
  border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.18);
  padding: 6px; display: none;
}
.ctx-menu.open { display: block; }
.ctx-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px;
  border-radius: 9px; cursor: pointer; font-size: 14px; color: var(--text);
  user-select: none;
}
.ctx-item:hover { background: var(--panel-3, #f1f1f7); }
.ctx-item.danger { color: #e0395e; }
.ctx-item .ctx-ic { width: 18px; height: 18px; flex: 0 0 18px; display: flex; opacity: .8; }
.ctx-item .ctx-ic svg { width: 18px; height: 18px; }
.thread .pin-i { width: 14px; height: 14px; margin-left: 4px; opacity: .55; flex: 0 0 14px; }
.thread .pin-i svg { width: 14px; height: 14px; }
.thread.pinned { background: rgba(0,0,0,.012); }

/* ---- Teams-style group call + join banner (19.0.39) ---- */
.lk-call{background:#15151f}
.lk-top{padding:16px 22px;border-bottom:1px solid rgba(255,255,255,.06)}
.lk-title{font-size:17px}
.lk-tiles{max-width:1180px;width:100%;margin:0 auto;align-content:center;justify-content:center;padding:18px 18px 10px}
.lk-tile{background:#1e1e2b;border-radius:16px;min-height:0;aspect-ratio:16/10;max-height:64vh;
  border:2.5px solid transparent;box-shadow:0 4px 18px rgba(0,0,0,.25)}
.lk-tile.speaking{border-color:#37d67a;box-shadow:0 0 0 2px rgba(55,214,122,.35),0 4px 18px rgba(0,0,0,.3)}
.lk-tile .av{position:absolute;top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);
  width:104px;height:104px;border-radius:50%;font-size:38px;letter-spacing:.5px;
  box-shadow:0 6px 20px rgba(0,0,0,.35)}
.lk-tile .nm{left:12px;bottom:12px;background:rgba(0,0,0,.6);font-size:13.5px;border-radius:9px;padding:4px 11px;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.lk-tile .handflag{top:12px;right:14px;font-size:24px}
.lk-controls{gap:14px;padding:16px 0 26px;background:linear-gradient(to top,rgba(0,0,0,.35),transparent)}
.lk-controls .call-btn{width:54px;height:54px;background:rgba(255,255,255,.1)}
.lk-controls .call-btn:hover{background:rgba(255,255,255,.2)}
.lk-controls .call-btn.end{width:60px;height:60px;background:#f2425b}
.lk-controls .call-btn.end:hover{background:#e0334b}

/* join banner shown in chat while a group call is live */
.call-banner{display:flex;align-items:center;gap:11px;margin:8px 14px 0;padding:9px 14px;
  background:rgba(46,139,230,.1);border:1px solid rgba(46,139,230,.3);border-radius:12px;
  color:var(--text);font-size:13.5px}
.call-banner .cb-dot{width:9px;height:9px;border-radius:50%;background:#16b364;flex:0 0 9px;
  animation:cbPulse 1.6s infinite}
@keyframes cbPulse{0%{box-shadow:0 0 0 0 rgba(22,179,100,.5)}70%{box-shadow:0 0 0 7px rgba(22,179,100,0)}100%{box-shadow:0 0 0 0 rgba(22,179,100,0)}}
.call-banner .cb-txt{flex:1}
.call-banner .cb-txt b{font-weight:700}
.call-banner .cb-join{background:#16b364;color:#fff;font-weight:700;font-size:13px;
  padding:7px 18px;border-radius:9px;cursor:pointer;border:none}
.call-banner .cb-join:hover{background:#12a058}

/* ---- Teams-style labeled call controls (19.0.39.2) ---- */
.lk-controls{gap:10px;padding:16px 0 26px;align-items:flex-start}
.lk-ctrl{display:flex;flex-direction:column;align-items:center;gap:6px;background:none;border:none;
  cursor:pointer;color:#cfd2e6;min-width:62px;padding:0}
.lk-ctrl .lk-ic{width:52px;height:52px;border-radius:16px;display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.1);transition:.15s}
.lk-ctrl .lk-ic svg{width:24px;height:24px}
.lk-ctrl .lk-lb{font-size:11.5px;font-weight:600;color:#aab0cc;letter-spacing:.2px}
.lk-ctrl:hover .lk-ic{background:rgba(255,255,255,.18)}
.lk-ctrl.active .lk-ic{background:#2E8BE6;color:#fff}
.lk-ctrl.active .lk-lb{color:#fff}
.lk-ctrl.muted .lk-ic{background:#f2425b;color:#fff}
.lk-ctrl.muted .lk-lb{color:#ff9aa8}
.lk-ctrl.rec-on .lk-ic{background:#ff5a5a;color:#fff}
.lk-ctrl.rec-on .lk-lb{color:#ffb3b3}
.lk-ctrl.danger .lk-ic{background:#f2425b;color:#fff}
.lk-ctrl.danger:hover .lk-ic{background:#e0334b}
.lk-ctrl.danger .lk-lb{color:#ff9aa8}

/* ---- call initiator subtitle (19.0.40) ---- */
.lk-top .lk-head{display:flex;flex-direction:column;gap:2px}
.lk-sub{font-size:12.5px;color:#aab0cc;font-weight:500}

/* ---- recording download/minutes buttons (19.0.41) ---- */
.rec-actions{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.rec-btn{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;
  padding:6px 12px;border-radius:9px;cursor:pointer;border:none;text-decoration:none;
  background:rgba(255,255,255,.22);color:#fff}
.rec-btn:hover{background:rgba(255,255,255,.34)}
.rec-btn svg{width:15px;height:15px}
/* on received (light) bubbles use a tinted style instead of translucent-white */
.msg-row.in .rec-btn{background:var(--panel-3,#ececf4);color:var(--text)}
.msg-row.in .rec-btn:hover{background:var(--brd,#e0e0ea)}

/* ---- screen-share presentation layout (19.0.42) ---- */
.lk-tiles.presenting{display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:10px;max-width:1500px}
.lk-tiles.presenting .lk-tile{flex:0 0 150px;aspect-ratio:16/10;max-height:104px;min-height:0}
/* Shared screen stage (SFU): a stable 16:9 box that grows with the viewport
   instead of a hard 64vh, so the same share looks the same on every monitor.
   object-fit:contain on the inner <video> keeps the whole frame visible. */
.lk-tiles.presenting .lk-tile.screen{flex:1 1 100%;order:-1;aspect-ratio:16/9;
  height:auto;width:min(100%,calc((100vh - 250px) * 16 / 9));
  max-height:calc(100vh - 250px);margin:0 auto}
.lk-tile.screen video{object-fit:contain;background:#000}

/* ---- call moderation: mute badge, host controls, minimize (19.0.43) ---- */
.lk-min{margin-left:auto;width:36px;height:36px;border:none;border-radius:9px;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.lk-min:hover{background:rgba(255,255,255,.22)}
.lk-min svg{width:18px;height:18px}
.lk-tile .micflag{position:absolute;top:8px;left:8px;width:26px;height:26px;border-radius:50%;background:#e23b3b;color:#fff;display:none;align-items:center;justify-content:center;z-index:3}
.lk-tile .micflag svg{width:15px;height:15px}
.lk-tile.muted .micflag{display:flex}
.lk-tile .tmod{position:absolute;top:8px;right:8px;display:none;gap:6px;z-index:4}
.lk-tiles.host .lk-tile:not(.me):not(.screen):hover .tmod{display:flex}
.lk-tile .tmod button{width:30px;height:30px;border:none;border-radius:8px;background:rgba(0,0,0,.62);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.lk-tile .tmod button:hover{background:rgba(0,0,0,.85)}
.lk-tile .tmod .tmod-kick:hover{background:#e23b3b}
.lk-tile .tmod button svg{width:16px;height:16px}
/* minimized picture-in-picture */
.lk-call.min{inset:auto 18px 18px auto;width:320px;height:210px;border-radius:16px;overflow:hidden;box-shadow:0 14px 44px rgba(0,0,0,.55);cursor:pointer}
.lk-call.min .lk-top{padding:8px 12px}
.lk-call.min .lk-top .lk-title{font-size:12px}
.lk-call.min .lk-sub,.lk-call.min .lk-notice,.lk-call.min .lk-min{display:none}
.lk-call.min .lk-tiles{max-width:none;padding:6px;gap:4px}
.lk-call.min .lk-tile .nm,.lk-call.min .lk-tile .tmod,.lk-call.min .lk-tile .micflag{display:none}
.lk-call.min .lk-controls{padding:6px 0 10px;gap:8px;transform:scale(.82)}
.lk-call.min.presenting .lk-tile.screen{height:120px}

/* ---- mesh remote-muted indicator (19.0.43) ---- */
.call-mutedflag{position:absolute;top:64px;left:50%;transform:translateX(-50%);display:none;align-items:center;gap:6px;background:rgba(226,59,59,.92);color:#fff;font-size:12px;font-weight:600;padding:5px 11px;border-radius:14px;z-index:6}
.call-mutedflag svg{width:15px;height:15px}
.call.remote-muted .call-mutedflag{display:flex}

/* ---- call log: show initiator name (19.0.43.2) ---- */
.call-log-card .cl-body{display:flex;flex-direction:column;line-height:1.25}
.call-log-card .cl-by{font-size:11px;color:var(--mut);font-weight:500}

/* ---- profile avatars: image + preset + editor (19.0.44) ---- */
.av-img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
.av-preset{width:100%;height:100%;display:flex;align-items:center;justify-content:center;border-radius:inherit;font-size:1.1em;line-height:1}
.av-edit{display:flex;align-items:center;gap:14px;margin:4px 0 12px}
.av-edit-cur{width:72px;height:72px;flex:0 0 72px;border-radius:50%;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:24px}
.av-edit-actions{display:flex;flex-direction:column;gap:8px}
.av-edit-actions .acct-btn{margin:0}
.av-presets-lb{font-size:12px;color:var(--mut);margin:8px 0 6px}
.av-presets{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.av-preset-btn{aspect-ratio:1;border:2px solid transparent;border-radius:50%;cursor:pointer;font-size:20px;color:#fff;display:flex;align-items:center;justify-content:center;padding:0}
.av-preset-btn:hover{transform:scale(1.07)}
.av-preset-btn.sel{border-color:#fff;box-shadow:0 0 0 2px var(--accent)}

/* ---- portrait (mobile) video: fit instead of crop/zoom (19.0.45) ---- */
.remote-video.portrait{object-fit:contain}
.lk-tile.portrait video{object-fit:contain;background:#000}

/* ===== meeting workflow cards (19.0.47) ===== */
.mtag{font:700 9px/1 "Inter",sans-serif;letter-spacing:.04em;text-transform:uppercase;color:#fff;background:var(--grad);padding:3px 6px;border-radius:6px;vertical-align:middle;margin-left:5px}
.sys-line{display:flex;justify-content:center;margin:14px 0}
.sys-line span{max-width:82%;text-align:center;background:var(--panel-2);border:1px solid var(--brd);color:var(--mut);font-size:12.5px;font-weight:500;line-height:1.55;padding:8px 16px;border-radius:14px}
.join-card{align-self:flex-start;max-width:400px;margin:8px 0;background:var(--panel);border:1px solid var(--brd);border-radius:var(--r-xl,16px);padding:16px;box-shadow:var(--sh-md)}
.join-card .jc-top{display:flex;align-items:center;gap:11px}
.join-card .jc-ic{width:42px;height:42px;border-radius:12px;background:var(--grad);display:flex;align-items:center;justify-content:center;color:#fff;flex:0 0 42px}
.join-card .jc-ic svg{width:22px;height:22px}
.join-card .jc-title{font-weight:700;color:var(--text);font-size:15px}
.join-card .jc-when{font-size:12.5px;color:var(--mut);margin-top:2px}
.jc-link{margin-top:12px;font-size:12px;color:var(--accent);background:var(--chip-bg);border:1px solid var(--brd);border-radius:10px;padding:9px 12px;font-family:ui-monospace,"SF Mono",monospace;display:flex;justify-content:space-between;align-items:center;gap:10px;word-break:break-all}
.jc-copy{color:var(--mut);font-family:"Inter",sans-serif;font-weight:600;cursor:pointer;flex:0 0 auto}
.join-card .jc-actions{margin-top:13px;display:flex;gap:9px}
.bot-msg{display:flex;gap:9px;align-items:flex-start;margin:7px 0;max-width:600px;align-self:flex-start}
.bot-msg .bot-av{width:32px;height:32px;border-radius:50%;background:var(--grad);display:flex;align-items:center;justify-content:center;font-size:15px;flex:0 0 32px;box-shadow:var(--glow)}
.bot-msg .bot-bubble{background:var(--panel);border:1px solid var(--brd);border-radius:5px 16px 16px 16px;padding:11px 14px;font-size:14px;color:var(--text);line-height:1.5}
.doc-card{align-self:flex-start;max-width:600px;width:100%;margin:10px 0 10px 6px;background:var(--panel);border:1px solid var(--brd);border-radius:18px;box-shadow:var(--sh-md)}
.doc-head{display:flex;align-items:center;gap:11px;padding:14px 16px;border-bottom:1px solid var(--brd)}
.doc-head .dh-ic{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;flex:0 0 36px}
.doc-head .dh-ic svg{width:19px;height:19px}
.doc-head .dh-title{font-weight:700;color:var(--text);font-size:14.5px}
.doc-head .dh-sub{font-size:11.5px;color:var(--mut);margin-top:1px}
.doc-body{padding:15px 17px;font-size:13.5px;color:var(--text);line-height:1.6;white-space:normal;word-break:break-word}
.doc-body .t-line{margin-bottom:9px;white-space:pre-wrap;word-break:break-word}
.doc-body .t-line b{color:var(--accent);font-weight:700}
.doc-empty{color:var(--mut);font-style:italic;font-size:13px;padding:2px 0}
.doc-body.mom-html h1,.doc-body.mom-html h2,.doc-body.mom-html h3{font:700 12px/1.3 "Inter";letter-spacing:.03em;text-transform:uppercase;color:var(--mut);margin:13px 0 6px}
.doc-body.mom-html h1:first-child,.doc-body.mom-html h2:first-child,.doc-body.mom-html h3:first-child{margin-top:0}
.doc-body.mom-html ul,.doc-body.mom-html ol{margin:0 0 6px;padding-left:18px}
.doc-body.mom-html li{margin-bottom:3px}
.doc-body.mom-html p{margin:0 0 6px}
.doc-actions{padding:12px 16px;border-top:1px solid var(--brd);display:flex;gap:9px;flex-wrap:wrap}
.doc-actions .acct-btn svg,.join-card .acct-btn svg{width:16px;height:16px;vertical-align:-3px;margin-right:4px}
.mt-when-opt{flex:1;padding:11px;border:1px solid var(--brd);border-radius:11px;font:600 13px/1 "Inter";color:var(--mut);background:transparent;cursor:pointer}
.mt-when-opt.on{border-color:transparent;background:var(--grad);color:#fff;box-shadow:var(--glow)}
/* Workspace modal (company logo) */
.ws-row{display:flex;align-items:center;gap:14px;margin:6px 0 4px}
.ws-logo-prev{width:60px;height:60px;border-radius:16px;object-fit:cover;display:block;flex:0 0 60px;box-shadow:var(--sh-md)}
.ws-logo-prev.empty{display:grid;place-items:center;background:var(--grad);color:#fff;font-weight:800;font-size:24px}
.ws-row .ws-name{font-weight:700;font-size:15px;color:var(--text)}
.ws-row .ws-role{font-size:12px;color:var(--mut);margin-top:2px}
.ws-hint{font-size:12.5px;color:var(--mut);margin:12px 0 4px;line-height:1.5}
/* Clickable links inside chat messages */
.chat-link{color:var(--accent);text-decoration:underline;text-underline-offset:2px;word-break:break-all;overflow-wrap:anywhere}
.chat-link:hover{text-decoration:none}
.bubble .chat-link{color:var(--accent)}
.out .bubble .chat-link{color:#fff;text-decoration:underline}
.out .bubble .chat-link:hover{text-decoration:none}
/* Button loading state */
.btn-spin{display:inline-block;width:15px;height:15px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:btnspin .6s linear infinite;vertical-align:middle;flex:0 0 auto}
@keyframes btnspin{to{transform:rotate(360deg)}}
button.is-loading{display:inline-flex;align-items:center;justify-content:center;gap:9px;opacity:.9;cursor:progress}
button:disabled{cursor:not-allowed}
.auth-btn.is-loading,.btn-primary.is-loading{opacity:.92}
/* Scroll-up "load older messages" spinner */
.load-older{display:flex;align-items:center;justify-content:center;padding:10px 0 4px}
.lo-spin{display:inline-block;width:22px;height:22px;border:2.5px solid var(--brd-2);border-top-color:var(--accent);border-radius:50%;animation:btnspin .65s linear infinite}
/* Instant-open: brief spinner while the first page loads */
.stream-loading{display:flex;align-items:center;justify-content:center;min-height:220px;height:100%;flex:1}
.stream-loading .lo-spin{width:26px;height:26px}
/* Optimistic send states */
.m-tick.pending{opacity:.7}
.m-tick.pending svg{animation:btnspin 1.4s linear infinite}
.m-tick.failed{color:#e74c3c;opacity:1}
.out .bubble .m-tick.failed,.msg-row.out .m-tick.failed{color:#ffd2cc}
/* Edit / delete message */
.msg-deleted{font-style:italic;opacity:.65;display:inline-flex;align-items:center;gap:6px}
.msg-deleted svg{width:15px;height:15px;flex:0 0 auto}
.m-edited{font-size:11px;opacity:.55;margin-left:7px;font-style:italic;white-space:nowrap}
.out .bubble .m-edited{opacity:.85}
.msg-menu .mm-danger{color:#e74c3c}
.rb-edit .rb-q-author svg{width:14px;height:14px;vertical-align:middle;margin-right:3px}
/* Edit/delete buttons in the hover action bar */
.rb-act.rb-del:hover{color:#e74c3c}
.rb-act.rb-edit:hover{color:var(--accent)}

/* Disappearing-messages picker extras */
.ctx-head { padding: 9px 14px 5px; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--dim, #8a93a6); }
.ctx-item .ctx-chk { margin-left: auto; color: var(--accent, #25d366); font-weight: 700; }

/* ===== Polls ===== */
.poll-bubble { min-width: 240px; max-width: 340px; }
.poll-q { font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.poll-rows { display: flex; flex-direction: column; gap: 6px; }
.poll-row { position: relative; padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.06); cursor: pointer; overflow: hidden; border: 1px solid transparent; }
.poll-row:hover { border-color: rgba(255,255,255,.18); }
.poll-row.mine { border-color: var(--accent, #25d366); }
.poll-row.closed { cursor: default; }
.poll-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(37,211,102,.16); transition: width .35s ease; z-index: 0; }
.poll-row-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; }
.poll-opt-text { flex: 1; }
.poll-pct { font-variant-numeric: tabular-nums; opacity: .8; font-size: 12px; }
.poll-mark { color: var(--accent, #25d366); }
.poll-voters { position: relative; z-index: 1; font-size: 11px; opacity: .6; margin-top: 3px; }
.poll-foot { margin-top: 8px; font-size: 12px; opacity: .7; }
.poll-close { color: var(--accent, #25d366); cursor: pointer; text-decoration: underline; }
/* composer modal */
.poll-form { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.poll-form-h { font-size: 16px; font-weight: 600; }
.poll-in { width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: inherit; font-size: 14px; box-sizing: border-box; }
.poll-optrow { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.poll-optdel { background: none; border: none; color: var(--dim, #8a93a6); font-size: 20px; cursor: pointer; line-height: 1; padding: 0 6px; }
.poll-add { align-self: flex-start; background: none; border: none; color: var(--accent, #25d366); cursor: pointer; font-size: 13px; padding: 2px 0; }
.poll-chk { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: .9; }
.poll-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.poll-btn { padding: 9px 16px; border-radius: 9px; border: none; cursor: pointer; font-size: 14px; font-weight: 500; }
.poll-btn.ghost { background: rgba(255,255,255,.08); color: inherit; }
.poll-btn.primary { background: var(--accent, #25d366); color: #fff; }

/* ===== Voice messages ===== */
.voice-bubble { display: flex; align-items: center; gap: 9px; min-width: 200px; max-width: 300px; }
.voice-play { flex: none; width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer; background: var(--accent, #25d366); color: #fff; display: flex; align-items: center; justify-content: center; }
.voice-wave { position: relative; flex: 1; height: 28px; display: flex; align-items: center; gap: 2px; overflow: hidden; }
.voice-wave > span { flex: 1; min-width: 2px; background: currentColor; opacity: .35; border-radius: 2px; align-self: center; }
.msg-row.out .voice-wave > span { background: rgba(255,255,255,.7); opacity: .5; }
.voice-prog { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent, #25d366); opacity: .25; pointer-events: none; border-radius: 3px; }
.voice-dur { flex: none; font-size: 12px; font-variant-numeric: tabular-nums; opacity: .8; min-width: 30px; text-align: right; }
/* recording bar */
.voice-rec-bar { display: none; align-items: center; gap: 10px; padding: 8px 12px; background: var(--panel, #1b2330); border-radius: 12px; margin: 6px 8px; }
.voice-rec-bar.show { display: flex; }
.vr-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: vrpulse 1s infinite; flex: none; }
@keyframes vrpulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.vr-time { font-variant-numeric: tabular-nums; font-size: 13px; min-width: 38px; }
.vr-wave { flex: 1; height: 24px; display: flex; align-items: center; gap: 2px; overflow: hidden; }
.vr-wave > span { flex: 1; min-width: 2px; background: var(--accent, #25d366); border-radius: 2px; align-self: center; }
.vr-cancel, .vr-send { flex: none; width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer; font-size: 16px; }
.vr-cancel { background: rgba(255,255,255,.08); color: inherit; }
.vr-send { background: var(--accent, #25d366); color: #fff; font-weight: 700; }

/* ---- attachment preview overlay (WhatsApp/Teams-style) ---- */
.pv-ov{position:fixed;inset:0;z-index:4000;background:rgba(17,27,33,.92);
  display:flex;flex-direction:column;animation:pvIn .12s ease-out}
@keyframes pvIn{from{opacity:0}to{opacity:1}}
.pv-head{flex:0 0 auto;display:flex;align-items:center;gap:12px;
  padding:12px 18px;color:#fff}
.pv-name{flex:1;min-width:0;font-size:14.5px;font-weight:600;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pv-btn{border:none;border-radius:8px;padding:8px 14px;font-size:13.5px;
  cursor:pointer;text-decoration:none;display:inline-flex;align-items:center}
.pv-dl{background:#00a884;color:#fff}
.pv-dl:hover{background:#008f72;color:#fff;text-decoration:none}
.pv-x{background:rgba(255,255,255,.14);color:#fff;font-size:15px;
  width:36px;height:36px;justify-content:center;padding:0;border-radius:50%}
.pv-x:hover{background:rgba(255,255,255,.26)}
.pv-body{flex:1;min-height:0;display:flex;align-items:center;
  justify-content:center;padding:0 18px 18px}
.pv-img{max-width:100%;max-height:100%;border-radius:8px;
  box-shadow:0 10px 40px rgba(0,0,0,.5);object-fit:contain}
.pv-frame{width:min(980px,100%);height:100%;border:none;border-radius:8px;
  background:#fff}
.img-att,.att[data-pv]{cursor:pointer}

/* ---- password reset (auth) ---- */
.auth-forgot { text-align: right; margin: -6px 0 12px; }
.auth-forgot a { font-size: 12.5px; color: var(--accent); cursor: pointer; text-decoration: none; font-weight: 600; }
.auth-forgot a:hover { text-decoration: underline; }
.otp-input { text-align: center; font-size: 22px !important; letter-spacing: .5em; font-family: Consolas, Menlo, monospace; }

/* ---- service request modal ---- */
.svc-modal { max-width: 460px; }
.svc-sub { font-size: 12.5px; color: var(--mut, #697084); margin: 4px 0 12px; line-height: 1.5; }
.svc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--brd, #e7eaf2); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.svc-info b { display: block; font-size: 13.5px; }
.svc-info small { display: block; font-size: 11.5px; color: var(--mut, #697084); margin-top: 2px; line-height: 1.4; }
.svc-chip { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.svc-chip.on { background: #e5f8ee; color: #16b364; }
.svc-chip.pend { background: #fff4e0; color: #e6a51d; }
.svc-row .btn-primary { white-space: nowrap; padding: 9px 16px; border-radius: 10px; font-size: 12.5px; font-weight: 700; border: none; cursor: pointer; transition: .16s; }
.svc-row .btn-primary:disabled { opacity: .7; cursor: default; }
#svcNote { width: 100%; resize: vertical; }
.fld textarea{width:100%;background:var(--panel-2);border:1px solid var(--brd);color:var(--text);font-family:inherit;font-size:13.5px;padding:10px 12px;border-radius:12px;outline:none;transition:.18s}
.fld textarea:focus{border-color:var(--accent-brd);background:var(--panel);box-shadow:0 0 0 3px var(--accent-soft)}

/* ======================================================================
   PATCH 19.0.58.0.0 — screen share sizing + add-people-to-call
   ====================================================================== */

/* --- 1. Shared screen must never be cropped -------------------------- */
/* .remote-video is object-fit:cover so a camera fills the frame. When the
   far end is sharing a SCREEN the same element receives the track, and
   cover silently crops the edges. While .presenting is set, letterbox it
   into a fixed 16:9 stage instead. */
.call.presenting .remote-video,
.call.presenting #remoteVideo{
  position:absolute;top:50%;left:50%;right:auto;bottom:auto;
  transform:translate(-50%,-50%);
  width:min(calc(100% - 24px),calc((100vh - 200px) * 16 / 9));
  height:min(calc(100vh - 200px),calc((100vw - 24px) * 9 / 16));
  object-fit:contain;background:#000;border-radius:10px;
  box-shadow:0 18px 60px rgba(0,0,0,.55);
}
/* Minimised call: fill the small window, still uncropped. */
.call.minimized.presenting .remote-video,
.call.minimized.presenting #remoteVideo{
  position:absolute;top:0;left:0;transform:none;
  width:100%;height:100%;border-radius:0;box-shadow:none;
}
/* Zoom toggle: "actual size" lets you scroll a dense screen at 1:1. */
.call.presenting.zoomed .remote-video,
.call.presenting.zoomed #remoteVideo{
  object-fit:none;object-position:center;cursor:grab;
}

/* --- 2. Add-people picker (must sit ABOVE .call, which is z-index 90) --
   Styled self-contained and DARK rather than from the theme variables: this
   only ever appears over the call screen, which is dark in both themes. The
   first version used var(--panel) with a light-text fallback, which rendered
   near-white text on a white panel in light mode - unreadable. */
.callpick{position:fixed;inset:0;z-index:120;display:none;
  align-items:center;justify-content:center;padding:20px;
  background:rgba(8,10,18,.66);backdrop-filter:blur(5px)}
.callpick.open{display:flex}
.callpick-box{width:100%;max-width:420px;max-height:78vh;display:flex;
  flex-direction:column;background:#1b2030;color:#eef1f7;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;padding:20px;box-shadow:0 24px 70px rgba(0,0,0,.6)}
.callpick-box h3{margin:0 0 5px;font-size:17px;font-weight:650;color:#fff}
.callpick-box p{margin:0 0 14px;font-size:12.5px;line-height:1.5;color:#a7b0c4}
.callpick-search{width:100%;padding:10px 12px;border-radius:10px;
  border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);
  color:#eef1f7;font-size:14px;outline:none;margin-bottom:10px;font-family:inherit}
.callpick-search::placeholder{color:#8b93a7}
.callpick-search:focus{border-color:#3aa0ff;background:rgba(255,255,255,.09)}
.callpick-list{flex:1;overflow-y:auto;min-height:90px;margin:0 -6px}
.callpick-row{display:flex;align-items:center;gap:11px;padding:9px 10px;
  border-radius:11px;cursor:pointer}
.callpick-row:hover{background:rgba(255,255,255,.08)}
.callpick-row .av{width:34px;height:34px;border-radius:50%;flex:0 0 34px;
  display:flex;align-items:center;justify-content:center;font-size:12.5px;
  font-weight:700;color:#fff}
.callpick-row .nm{flex:1;font-size:14px;color:#eef1f7;min-width:0}
.callpick-row .st{font-size:11px;color:#8b93a7;margin-top:1px}
.callpick-row .ck{width:19px;height:19px;border-radius:5px;flex:0 0 19px;
  border:1.6px solid rgba(255,255,255,.34);position:relative}
.callpick-row.sel .ck{background:#3aa0ff;border-color:#3aa0ff}
.callpick-row.sel .ck::after{content:"";position:absolute;left:6px;top:2px;
  width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;
  transform:rotate(45deg)}
.callpick-row.off{opacity:.5}
.callpick-empty{padding:26px 10px;text-align:center;font-size:13px;color:#a7b0c4}
.callpick-foot{display:flex;justify-content:flex-end;gap:9px;margin-top:16px}
.callpick-foot button{padding:9px 16px;border-radius:10px;border:none;
  font-size:13.5px;font-weight:600;cursor:pointer;font-family:inherit}
.callpick-cancel{background:rgba(255,255,255,.10);color:#eef1f7}
.callpick-cancel:hover{background:rgba(255,255,255,.16)}
.callpick-go{background:#3aa0ff;color:#fff}
.callpick-go:hover{background:#5cb0ff}
.callpick-go[disabled]{opacity:.4;cursor:default}

/* Handover splash while a 1:1 is promoted to a group room. Body-level, not
   inside #callRoot - teardownCall() blanks that node mid-handover. */
.call-handover{position:fixed;inset:0;z-index:110;display:none;
  flex-direction:column;align-items:center;justify-content:center;gap:14px;
  background:rgba(8,10,18,.92);color:#fff;font-size:14.5px}
.call-handover.open{display:flex}
.call-handover .sp{width:34px;height:34px;border-radius:50%;
  border:3px solid rgba(255,255,255,.2);border-top-color:#3aa0ff;
  animation:inomSpin .8s linear infinite}
@keyframes inomSpin{to{transform:rotate(360deg)}}

/* Add-people is shown even when the SFU is off, dimmed, and explains itself
   on click. Hiding it left no way to discover why the call could not grow. */
.call-btn.off#addPeopleBtn{opacity:.45}
.callpick-box p{font-size:12.5px;color:var(--mut);line-height:1.55;margin:0 0 12px}

/* Call status while the connection is being rebuilt. Amber, not red: the call
   is not over — a handover or a blip usually recovers within seconds. */
.call-sub.reconnecting{color:#e6a51d;font-weight:600}
