/* Pinggr chat workspace: quiet reading surfaces, precise purple/lemon accents. */
.sidebar .side-head2{min-height:90px;background:#301254;padding:24px 24px 18px;border-bottom:0}
.sidebar .side-head2 .sh2-title{font-size:28px;letter-spacing:-1px;font-weight:700}
.sidebar .side-head2 .sh2-new{width:42px;height:42px;border:1px solid #aa8cc566;border-radius:14px}
.sidebar .search{margin:20px 20px 12px;border:1px solid #e4ddec;border-radius:12px;background:#f7f5fa;min-height:46px}
.sidebar .search input{font-size:13px;color:#301b47}
.sidebar .search input::placeholder{color:#74677f}
.chat-filters{display:flex;gap:6px;padding:0 20px 20px}
.chat-filters button{border:1px solid transparent;border-radius:9px;min-height:36px;padding:7px 12px;font-family:inherit;font-size:12px;font-weight:600;color:#6b587c;background:transparent;cursor:pointer;white-space:nowrap}
.chat-filters button:hover{background:#f0eaf7}
.chat-filters button[aria-pressed=true]{background:#eee5ff;border-color:#d8c4ff;color:#5216bd}
.chat-list-label{display:flex;justify-content:space-between;padding:0 24px 12px;font-size:11px;font-weight:600;color:#796b86;letter-spacing:.04em}
.chat-list-label #chat-list-count{font-variant-numeric:tabular-nums}
.sidebar .conv-list{padding:0 10px 12px}
.sidebar .conv{border:1px solid transparent;border-radius:12px;margin:2px 0;padding:15px 12px;gap:12px;background:transparent;box-shadow:none;min-height:80px}
.sidebar .conv:hover{background:#f7f3fc}
.sidebar .conv.active{background:#eee6fb;border-color:#dfd0f4;box-shadow:none}
.sidebar .conv.active:before,.sidebar .conv.active:after{display:none}
.sidebar .conv .avatar{width:46px;height:46px;border-radius:16px;background:#eee7f7;color:#5c3386;border:1px solid #dfd1ef;box-shadow:none;font-size:17px}
.sidebar .conv.active .avatar{background:#5e17eb;color:#fff;border-color:transparent}
.sidebar .conv .name{font-size:13px;font-weight:600;color:#2d183e}
.sidebar .conv .last{font-size:12px;color:#786887;margin-top:5px}
.sidebar .conv .conv-time{font-size:10px;color:#786887;font-variant-numeric:tabular-nums}
.sidebar .conv .badge{background:#5e17eb;color:#fff;min-width:19px;height:19px;font-size:10px;box-shadow:none}
.shell:not(.content-mode) .panel{background:#faf8fd}
.panel .chat-head{background:#fff;color:#301b47;border-bottom:1px solid #e9e2f0;min-height:90px;padding:18px 30px;gap:12px}
.panel .chat-head .name{color:#301b47;font-size:16px;font-weight:600;letter-spacing:-.25px}
.panel .chat-head .status{color:#70617d;font-size:11px;min-height:18px;margin-top:4px}
.panel .chat-head .icon-btn{color:#654b7e;border:1px solid #e8e0f0;border-radius:12px;background:#fff}
.panel .chat-head .icon-btn:hover{background:#eee5ff;color:#5e17eb;border-color:#d8c4ff}
.panel .chat-head .avatar{box-shadow:none}
.panel .chat-head .status-grp{color:#70617d}
.panel .messages{background:#faf8fd;background-image:none;padding:28px max(24px,calc((100% - 850px)/2));gap:12px;scrollbar-color:#d6c7e5 transparent;scrollbar-width:thin}
.messages .bubble{padding:12px 16px;max-width:min(76%,560px);font-size:14px;line-height:1.65;border-radius:16px;box-shadow:none}
.messages .row.other .bubble{background:#fff;border:1px solid #e9e1f0;border-bottom-left-radius:5px;color:#382345;box-shadow:0 2px 5px #32104404}
.messages .row.mine .bubble{background:#ede3ff;border:1px solid #dfcff6;border-bottom-right-radius:5px;color:#38204e;box-shadow:none}
.messages .bubble .time{font-size:10px;line-height:1.4;margin-top:7px;opacity:1;color:#796788;font-variant-numeric:tabular-nums}
.messages .row.mine .bubble .time{color:#71578b}
.messages .quote{border-left-width:1px;color:#604276;background:#5e17eb08}
.forwarded-label{font-size:10px;color:#796788;display:flex;gap:6px;align-items:center;margin-bottom:6px}
.panel .chat-composer-tools{display:flex;align-items:center;gap:8px;flex-shrink:0;background:#faf6ff;padding:13px 28px 6px;border-top:0;position:relative}
.panel .chat-composer-tools::before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,rgba(94,23,235,0),#e3d4f8 30%,#e3d4f8 70%,rgba(94,23,235,0))}
.chat-composer-tools button{display:inline-flex;gap:7px;align-items:center;min-height:36px;padding:7px 14px;border:1px solid #ece2fa;border-radius:12px;background:#fff;color:#5b3e85;font-family:inherit;font-size:11.5px;font-weight:600;cursor:pointer;box-shadow:0 1px 3px #3a166b0a;transition:transform .14s,box-shadow .14s,border-color .14s,color .14s}
.chat-composer-tools button svg{width:16px;height:16px;color:#7a44cf}
.chat-composer-tools button:hover{transform:translateY(-1px);border-color:#c9adf2;color:#5e17eb;box-shadow:0 5px 12px #5e17eb1f}
.chat-composer-tools button:hover svg{color:#5e17eb}
.chat-composer-hint{margin-left:auto;font-size:11px;color:#a08fae;padding-left:10px;font-style:italic;transition:opacity .32s ease,transform .32s ease;will-change:opacity,transform}
.chat-composer-hint.is-fading{opacity:0;transform:translateY(-4px)}
.panel .composer{background:#faf6ff;border-top:0;padding:10px 28px max(22px,env(safe-area-inset-bottom));gap:12px;align-items:center}
.panel .composer-main{flex:1;min-width:0;display:flex;align-items:center;gap:6px;border-radius:28px;border:1px solid #e4d6f6;background:#fff;box-shadow:0 6px 20px #3a166b12;min-height:58px;padding:7px 8px 7px 7px;transition:border-color .16s,box-shadow .16s}
.panel .composer-main:focus-within{border-color:#8b55db;box-shadow:0 0 0 4px #5e17eb14,0 8px 24px #5e17eb1c}
.panel .composer-main .attach-btn{flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:#efe6fc;color:#5e17eb;display:grid;place-items:center;transition:background .14s,transform .14s}
.panel .composer-main .attach-btn:hover{background:#e2d2fa;transform:scale(1.06)}
.panel .composer-main .attach-btn svg{width:20px;height:20px}
.panel .composer-main .burn-btn{flex:0 0 32px;width:32px;height:40px;color:#8a6fb0;border-radius:11px}
.panel .composer-main .burn-btn:hover{background:#f3ebfd;color:#5e17eb}
.panel .composer #msg-input{flex:1;background:transparent;font-size:14px;caret-color:#5e17eb;min-width:0;color:#2c1548;padding:10px 6px}
.panel .composer #msg-input::placeholder{color:#8a7a97}
.panel .composer-main .mic-btn{flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:#efe6fc;color:#5e17eb;display:grid;place-items:center;transition:background .14s,transform .14s}
.panel .composer-main .mic-btn:hover{background:#e2d2fa;transform:scale(1.06)}
.panel .composer .send-btn{height:56px;width:56px;flex:0 0 56px;border-radius:50%;background:linear-gradient(135deg,#7a2bff,#5e17eb 55%,#4a0fc0);color:#c1ff72;display:grid;place-items:center;box-shadow:0 7px 20px #5e17eb40,0 0 0 4px #5e17eb12;transition:transform .14s,box-shadow .14s,filter .14s}
.panel .composer .send-btn:hover{filter:brightness(1.08);transform:translateY(-1px) scale(1.04);box-shadow:0 11px 26px #5e17eb4d,0 0 0 4px #5e17eb1a}
.panel .composer .send-btn:active{transform:translateY(0) scale(.97)}
.nav-rail #btn-chats .nav-badge{background:#ff3b30;color:#fff;border:1px solid #fff;box-shadow:0 2px 8px #ff3b3055;font-weight:800}
.messages .msg-actions{display:none;grid-template-columns:1fr;min-width:158px;padding:6px;border-radius:12px;background:#fff;border:1px solid #dfd5e9;box-shadow:0 8px 30px #3210441c}
.messages .msg-actions .ma{display:flex;align-items:center;gap:12px;justify-content:flex-start;width:100%;height:38px;border-radius:7px;padding:0 12px;color:#513567}
.messages .msg-actions .ma:hover{background:#f1e9ff;color:#5e17eb}
.messages .msg-actions .ma[data-del]{color:#aa344d}
.messages .msg-actions .ma span{font-size:12px;display:inline}
.panel .chat-welcome{background:#faf8fd}
.chat-welcome .chat-welcome-copy h1{font-size:42px;line-height:1.2;letter-spacing:-1.5px;color:#38204e}
.chat-welcome .chat-welcome-copy p{color:#786887;font-size:13px;line-height:1.8}
.chat-welcome .cw-watermark{opacity:.025}
.chat-route-state{margin:auto;padding:30px;text-align:center;max-width:480px;color:#38204e}
.chat-route-state p{color:#786887;font-size:13px;line-height:1.7}
.chat-primary{border:0;border-radius:11px;min-height:44px;padding:10px 20px;background:#5e17eb;color:#fff;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer}
.chat-primary:hover{background:#4d0fce}
.chat-primary:disabled{opacity:.55;cursor:wait}
.chat-dialog{margin:auto;inset:0;width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 40px);box-sizing:border-box;overflow:auto;border:1px solid #e0d4ed;border-radius:20px;padding:24px;background:#fff;color:#38204e;box-shadow:0 24px 80px #200d4133;font-family:inherit}
.chat-dialog::backdrop{background:#21103466}
.chat-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.chat-dialog h2{font-size:20px;font-weight:600;letter-spacing:-.5px;margin:0}
.chat-dialog-head button{background:#f5f0fa;border:0;border-radius:10px;width:36px;height:36px;cursor:pointer;color:#715184;flex-shrink:0}
.chat-dialog-description{font-size:12px;color:#7c6989;margin:12px 0 24px;line-height:1.7}
.chat-dialog input:not([type=checkbox]){box-sizing:border-box;width:100%;min-height:46px;padding:12px;border:1px solid #dfd3e9;border-radius:10px;color:#38204e;background:#fcfaff;font-family:inherit;font-size:13px;font-weight:400;outline-offset:2px}
.chat-dialog input::placeholder{color:#7c6989}
.chat-poll-form>label{display:grid;gap:8px;font-size:12px;font-weight:600}
.chat-poll-form fieldset{border:0;padding:0;margin:24px 0 20px;min-width:0}
.chat-poll-form legend{font-size:12px;font-weight:600;margin-bottom:10px}
.chat-poll-options{display:grid;gap:8px}
.chat-poll-option{display:flex;align-items:center;gap:10px}
.chat-poll-option>span{font-size:11px;color:#9a84aa;width:16px;flex-shrink:0;font-variant-numeric:tabular-nums}
.chat-add-option{display:flex;align-items:center;gap:7px;border:0;background:transparent;color:#5e17eb;font-family:inherit;font-size:12px;font-weight:600;min-height:42px;padding:8px 0;cursor:pointer;margin-left:26px}
.chat-add-option svg{width:16px;height:16px}
.chat-add-option:disabled{opacity:.4;cursor:default}
.chat-poll-form .chat-check{display:flex;align-items:center;gap:9px;font-weight:400}
.chat-check input{accent-color:#5e17eb;width:17px;height:17px}
.chat-dialog-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px;padding-top:20px;border-top:1px solid #eee7f4}
.chat-dialog-foot>span{font-size:11px;color:#7c6989;max-width:150px}
.chat-form-error{font-size:12px;line-height:1.6;color:#a72e4b;margin:12px 0 0}
.chat-forward-list{display:grid;gap:4px;margin-top:14px;max-height:45dvh;overflow:auto}
.chat-forward-row{display:flex;align-items:center;gap:12px;padding:12px 8px;border:0;border-radius:10px;text-align:left;background:transparent;color:#38204e;cursor:pointer;font-family:inherit;font-size:13px;font-weight:500;min-width:0}
.chat-forward-row:hover{background:#f2ebfc}
.chat-forward-row>span:nth-child(2){flex:1;overflow-wrap:anywhere;min-width:0}
.chat-forward-row small{display:block;font-size:10px;color:#7c6989;margin-top:4px}
.chat-forward-row .avatar{width:40px;height:40px;border-radius:12px;background:#eee5fa;color:#6a3d94;flex-shrink:0}
.chat-forward-row:disabled{opacity:.5;cursor:wait}
:is(.chat-filters,.chat-composer-tools,.chat-dialog,.chat-route-state) button:focus-visible,.chat-dialog input:focus-visible{outline:2px solid #7a39e6;outline-offset:3px}
.panel ::selection,.sidebar ::selection,.chat-dialog ::selection{background:#dec8ff;color:#301254}
@media(min-width:1100px){.shell:not(.content-mode) .sidebar{width:340px;flex:0 0 340px}}
@media(max-width:900px){.chat-composer-hint{display:none}.panel .chat-head{padding:16px 20px}.panel .messages{padding:24px 20px}.panel .composer{padding-left:20px;padding-right:20px}.panel .chat-composer-tools{padding-left:16px;padding-right:16px}}
@media(max-width:700px){.sidebar .side-head2{min-height:76px;padding:18px 20px}.panel .chat-head{min-height:76px;padding:12px;gap:8px}.panel .chat-head .name{font-size:14px}.panel .chat-head .icon-btn{width:36px;height:40px;flex-basis:36px;border:0}.panel .chat-head .avatar{width:36px!important;height:36px!important}.panel .messages{padding:18px 12px;gap:10px}.messages .bubble{max-width:80%;padding:10px 13px;font-size:13px}.panel .chat-composer-tools{padding:8px 10px 0}.panel .composer{padding:6px 10px max(12px,env(safe-area-inset-bottom));gap:7px}.panel .composer-main{padding:3px;gap:0;min-height:48px}.panel .composer .send-btn{height:48px;width:46px;flex-basis:46px;border-radius:13px}.panel .composer .burn-btn{display:none}.chat-dialog{padding:20px;border-radius:18px}.chat-welcome .chat-welcome-copy h1{font-size:32px}}
@media(prefers-reduced-motion:reduce){.messages,.messages .row,.chat-dialog,.chat-filters button{animation:none!important;transition:none!important}}

.sidebar .conv.active .name{color:#321b47}.sidebar .conv.active .last,.sidebar .conv.active .conv-time{color:#725a84}
.panel .chat-head:after{display:none}.panel .chat-head .status-pill{color:#537749}.panel .chat-head .status-pill .dot{background:#43873c}

.messages .bubble:has(.poll-card){box-sizing:border-box;min-width:0;width:min(320px,calc(100% - 44px));max-width:calc(100% - 44px)}
.messages .poll-card{box-sizing:border-box;min-width:0;width:100%;max-width:100%}.messages .poll-q,.messages .poll-otxt{overflow-wrap:anywhere;min-width:0}.messages .poll-opts{min-width:0}.messages .poll-opt{min-width:0;width:100%}

@media(max-width:700px){.shell.has-active:not(.content-mode)>.nav-rail{display:none}.chat-composer-tools button{padding:7px 8px;gap:6px;font-size:11px}.chat-composer-tools button svg{width:15px;height:15px}}

.poll-error{font-size:11px;color:#a72e4b;line-height:1.5}.poll-opt:disabled{cursor:wait;opacity:.65}

/* Calls live above the app and native forms. The call stage always owns its controls. */
#gcall-ui,#call-ui{box-sizing:border-box;margin:0;padding:0;border:0;max-width:none;max-height:none;width:100vw;height:100dvh;inset:0;overflow:hidden;z-index:2147482000}
#gcall-ui{background:#180d29;color:#fff;font-family:inherit}
#gcall-ui::backdrop,#call-ui::backdrop{background:#180d29dd}
#gcall-ui .gc-box{inset:20px;margin:auto;width:min(1040px,calc(100% - 40px));height:calc(100% - 40px);max-height:900px;border:1px solid #71518a66;border-radius:24px;background:#201230;overflow:hidden;box-sizing:border-box}
.gc-head{padding:28px 24px 18px;flex-shrink:0;background:#28173a;border-bottom:1px solid #70558633}
.gc-title{font-size:22px;line-height:1.35;font-weight:600;letter-spacing:-.4px;overflow-wrap:anywhere}
.gc-status{font-size:12px;color:#cbb9dc;line-height:1.7;margin:8px auto 0;max-width:580px;overflow-wrap:anywhere}
.gc-roster{justify-content:flex-start;padding:18px 24px;min-height:0;scrollbar-width:thin;scrollbar-color:#705586 transparent}
.gc-rt{width:78px}.gc-rt-name{font-size:11px;color:#f1e7fb}.gc-rt-st{font-size:10px}.gc-rt-av{border-width:1px;background:#3c2552;border-radius:18px}
.gc-grid{min-height:0;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));padding:20px 24px;gap:14px;align-content:center;align-items:stretch;scrollbar-width:thin;scrollbar-color:#705586 transparent}
.gc-tile{aspect-ratio:auto;min-height:min(220px,35dvh);max-height:360px;border:1px solid #684a7b66;background:#2a1a3b;border-radius:20px}
.gc-tile:only-child{width:min(420px,100%);justify-self:center}
.gc-tile-ph{background:#54317a;color:#e4ffc9;border:1px solid #8c6baa55;font-size:26px;border-radius:24px}
.gc-tile-name{left:14px;bottom:14px;background:#1c102acc;border:1px solid #684a7b66;padding:5px 10px;font-size:11px}
.gc-waiting{grid-column:1/-1;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;gap:14px}
.gc-waiting-avatar{width:88px;height:88px;display:grid;place-items:center;border-radius:28px;background:#5e17eb;border:1px solid #9065da;color:#d9ffb6;font-size:32px;font-weight:600}
.gc-waiting h2{font-size:18px;font-weight:500;line-height:1.4;margin:7px 0 0;color:#f3ebfa}.gc-waiting p{font-size:12px;color:#c3afd5;line-height:1.7;margin:0}
.gc-controls{gap:14px;padding:18px 20px max(22px,env(safe-area-inset-bottom));border-top:1px solid #70558633;background:#28173a}
.gc-cbtn{box-sizing:border-box;width:76px;height:66px;border:1px solid #80608f66;border-radius:16px;display:flex;flex-direction:column;justify-content:center;gap:7px;background:#382348;color:#f5eefd;font-family:inherit;font-size:18px}
.gc-cbtn span{font-size:10px;font-weight:500}.gc-cbtn:hover{background:#523567}.gc-cbtn.off{background:#eee5fa;color:#30174b}.gc-cbtn.gc-end{background:#c43755;border-color:#e17085;color:#fff}.gc-cbtn.gc-end:hover{background:#ab2e49}.gc-cbtn:disabled{opacity:.45;cursor:wait}
.gc-cbtn:focus-visible,.direct-call-cancel:focus-visible{outline:2px solid #c1ff72;outline-offset:4px}
.gc-error .gc-status{color:#ffc1ce}.gc-error .gc-waiting-avatar{background:#643048;border-color:#bf6980;color:#ffd9e2}
.direct-call-cancel{border:1px solid #a78abe;border-radius:12px;padding:12px 22px;margin:24px auto 0;min-height:44px;display:block;background:#422559;color:#fff;cursor:pointer;font:inherit;font-size:13px}
.incoming-call-notice{box-sizing:border-box;position:fixed;inset:20px 20px auto auto;margin:0;width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;z-index:2147483100;display:grid;grid-template-columns:48px minmax(0,1fr);gap:14px;padding:22px;border:1px solid #ad8ecc;border-radius:20px;background:#2b1642;color:#fff;box-shadow:0 16px 50px #170a3540;font-family:inherit}
.incoming-call-notice[popover]:not(:popover-open){display:none}
.incoming-call-icon{width:48px;height:48px;display:grid;place-items:center;border:1px solid #9f7cbd66;border-radius:16px;background:#4b286a;color:#c1ff72}.incoming-call-icon svg{width:24px;height:24px}
.incoming-call-kind{margin:0 0 6px;font-size:11px;color:#d1bbdf;line-height:1.5}
.incoming-call-notice h2{font-size:18px;line-height:1.35;font-weight:600;letter-spacing:-.3px;margin:0;overflow-wrap:anywhere;color:#fff}
.incoming-call-copy>p:last-child{font-size:12px;line-height:1.65;color:#dccde8;margin:7px 0 0;overflow-wrap:anywhere}
.incoming-call-actions{grid-column:1/-1;display:flex;gap:10px;margin-top:4px}
.incoming-call-actions button{min-height:46px;flex:1;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:11px;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.incoming-call-decline{background:#472038;border:1px solid #b8657c;color:#ffdce5}.incoming-call-answer{background:#c1ff72;border:1px solid #d4ff9d;color:#2b1642}.incoming-call-answer svg{width:18px;height:18px}
.incoming-call-answer:hover{background:#d5ff9e}.incoming-call-decline:hover{background:#633049}.incoming-call-actions button:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(max-width:700px){#gcall-ui .gc-box{inset:0;width:100%;height:100%;max-height:none;border:0;border-radius:0}.gc-head{padding:22px 16px 14px}.gc-title{font-size:20px}.gc-roster{padding:14px 16px}.gc-grid{padding:16px;grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr));gap:10px}.gc-tile{min-height:min(200px,28dvh)}.gc-controls{padding-top:14px}.incoming-call-notice{inset:max(12px,env(safe-area-inset-top)) 12px auto 12px;width:calc(100vw - 24px);padding:18px;gap:12px;border-radius:17px}}
@media(max-height:500px){.gc-head{padding:12px 16px}.gc-roster{padding:8px 16px}.gc-rt-av{width:36px;height:36px;border-radius:12px}.gc-grid{padding:8px 16px}.gc-controls{padding:8px 16px}.gc-cbtn{height:54px}.gc-waiting{min-height:0;padding:10px}.gc-waiting-avatar{width:48px;height:48px;border-radius:16px;font-size:22px}.gc-waiting h2{font-size:14px}.gc-waiting p{display:none}}
@media(prefers-reduced-motion:reduce){.gc-rt.ringing .gc-rt-av{animation:none}}
/* Compact chat chrome and message action strip. */
.sidebar .side-head2,.panel .chat-head{box-sizing:border-box;min-height:66px;height:66px;padding:10px 20px;background:linear-gradient(115deg,#6415ef,#4613b0);border-bottom:1px solid #c7a6ff45;box-shadow:0 3px 10px #2e0b6414;position:relative;isolation:isolate;overflow:hidden}
.sidebar .side-head2:after,.panel .chat-head:after{content:"";display:block;position:absolute;inset:-100px 12% -150px 38%;border:1px solid #d5bfff22;border-radius:45%;transform:rotate(-23deg);z-index:-1;pointer-events:none}
.sidebar .side-head2 .sh2-title{font-size:23px;letter-spacing:-.6px;color:#fff}.sidebar .side-head2 .sh2-new{width:36px;height:36px;border-radius:11px;color:#c1ff72;background:#ffffff0b;border-color:#ceb0ff55}
.panel .chat-head .name{color:#fff;font-size:15px;font-weight:700}.panel .chat-head .status,.panel .chat-head .status-grp,.panel .chat-head .status-pill{color:#e2d5fa;font-size:10px;margin-top:2px;min-height:14px}.panel .chat-head .status-pill .dot{background:#c1ff72}.panel .chat-head .avatar{width:36px!important;height:36px!important;font-size:14px!important;border-radius:12px;box-shadow:0 2px 4px #21064c25;border:1px solid #d6bbff99}.panel .chat-head .icon-btn{width:36px;height:36px;flex:0 0 36px;border-radius:11px;border:1px solid #caa9ff4d;color:#c1ff72;background:#ffffff08;box-shadow:0 2px 0 #2b075a20}.panel .chat-head .icon-btn:hover,.panel .chat-head .icon-btn:focus-visible{background:#c1ff72;color:#3c127f;border-color:#d9ffae}.panel .chat-head .status .dot{background:#c1ff72}
.messages .message-tools{flex-basis:24px}.messages .message-more{width:24px;height:28px;font-size:11px;color:#694593}.messages .msg-actions{grid-template-columns:repeat(5,34px);min-width:0;width:max-content;max-width:calc(100vw - 16px);gap:3px;padding:5px;border-radius:13px;background:#321162;border:1px solid #976ac8;box-shadow:0 5px 16px #28104430}
.messages .msg-actions .ma{width:34px;min-height:34px;height:34px;padding:0;justify-content:center;gap:0;border-radius:8px;color:#c1ff72;background:transparent}.messages .msg-actions .ma i{color:inherit;font-size:14px;width:auto}.messages .msg-actions .ma span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.messages .msg-actions .ma:hover,.messages .msg-actions .ma:focus-visible{background:#c1ff72;color:#3d107e;outline:none}.messages .msg-actions .ma[data-del]{color:#ffb9cb}.messages .msg-actions .ma[data-del]:hover{background:#ffc4d2;color:#761d3c}
.messages .voice-bubble{border-color:#d5c1f0;background:#efe7ff}.messages .voice-bubble .voice-heading{color:#442366}.messages .voice-bubble .voice-status{color:#654777}
/* Persistent recorder state, then a deliberate preview/send step. */
.voice-recorder[hidden]{display:none!important}.voice-recorder{flex:none;margin:8px 20px 16px;padding:14px 16px;display:flex;align-items:center;gap:14px;flex-wrap:wrap;border:1px solid #af8ddd;border-radius:18px;background:linear-gradient(120deg,#35116a,#4c1c8c);box-shadow:0 5px 14px #29114a1c;color:#fff}.voice-capturing>.composer,.voice-capturing>.chat-composer-tools{display:none}.vr-copy{display:flex;align-items:center;gap:10px;flex:1;min-width:160px}.vr-copy strong{display:block;font-size:13px;font-weight:700}.vr-help{display:block;color:#dfcef5;font-size:11px;line-height:1.5;margin-top:3px}.vr-dot{width:10px;height:10px;border-radius:50%;background:#c1ff72;flex:none}.vr-dot.is-recording{background:#ff809c;animation:vr-pulse 1s ease-in-out infinite}.vr-time{font-size:22px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.5px;color:#c1ff72}.vr-actions{display:flex;gap:8px}.vr-actions button{display:flex;align-items:center;gap:7px;border:1px solid #bc99eb77;border-radius:11px;padding:10px 12px;font:inherit;font-size:12px;font-weight:700;background:#ffffff0b;color:#fff;min-height:40px}.vr-actions .vr-stop,.vr-actions .vr-send{background:#c1ff72;border-color:#d6ffaa;color:#37116b;box-shadow:0 3px 0 #210b3e33}.vr-actions button:hover{filter:brightness(1.08)}.vr-actions button:focus-visible{outline:2px solid #fff;outline-offset:3px}.voice-recorder audio{height:40px;max-width:100%;width:220px;accent-color:#6120b6}
@keyframes vr-pulse{50%{opacity:.45}}
@media(max-width:700px){.sidebar .side-head2,.panel .chat-head{height:62px;min-height:62px;padding:9px 12px}.panel .chat-head{gap:7px}.panel .chat-head .name{font-size:13px}.panel .chat-head .icon-btn{height:34px;width:32px;flex-basis:32px}.panel .chat-head .avatar{width:32px!important;height:32px!important}.voice-recorder{margin:8px 10px 12px;padding:12px;gap:12px}.vr-help{font-size:10px}.vr-actions{margin-left:auto}.voice-recorder audio{flex:1;width:100%;min-width:160px}.messages .msg-actions .ma{min-height:36px}.messages .msg-actions{grid-template-columns:repeat(5,36px)}}
@media(hover:none),(pointer:coarse){.messages .message-more{opacity:1;pointer-events:auto;width:36px;height:40px}.messages .message-tools{flex-basis:36px}}
@media(prefers-reduced-motion:reduce){.vr-dot.is-recording{animation:none}}
.messages .row.mine .voice-bubble{background:#fff;border-color:#e4d7f3}.messages .row.mine .voice-bubble .voice-play{background:transparent;box-shadow:none}.messages .row.mine .voice-heading{color:#442366}.messages .row.mine .voice-status{color:#654777}.messages .row.mine .voice-speed{background:#f6f1fd;color:#4f2778;border-color:#cdb5e5}.messages .row.mine .voice-bubble .time{color:#755d82}
.media-permission-dialog{max-width:440px;background:linear-gradient(130deg,#3c1479,#271050);border:1px solid #aa7ed5;color:#fff;box-shadow:0 14px 48px #18052d66}.media-permission-dialog .chat-dialog-head h2{color:#fff;font-size:20px}.media-permission-dialog .chat-dialog-head button{color:#c1ff72;background:#ffffff0c;border-color:#b38add66}.media-permission-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:#c1ff72;color:#421184;font-size:23px;box-shadow:0 4px 0 #1c073d44;margin:8px 0 20px}.media-permission-copy p{font-size:13px;line-height:1.65;color:#eee3ff}.media-permission-copy .media-permission-status{color:#dbcaef;font-size:12px}.media-permission-steps{padding-left:19px;color:#eee3ff;font-size:12px;line-height:1.75}.media-permission-steps[hidden]{display:none}.media-permission-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.media-permission-actions button{border:1px solid #a781cf77;border-radius:12px;padding:12px 16px;min-height:44px;background:#ffffff09;color:#fff;font:inherit;font-size:13px;font-weight:700}.media-permission-actions .media-permission-allow{background:#c1ff72;color:#39116c;border-color:#d3ffa8;box-shadow:0 3px 0 #1c073d44}.media-permission-actions button:disabled{opacity:.6;cursor:wait}.media-permission-actions button:focus-visible{outline:2px solid #fff;outline-offset:3px}@media(max-width:380px){.media-permission-dialog{padding:20px}.media-permission-actions button{padding:11px 12px}}

/* Incoming typing belongs to this conversation, below the latest message. */
.chat-typing-bubble{display:flex;align-items:center;justify-content:center;flex-shrink:0;
  align-self:flex-start;width:62px;min-height:40px;margin:8px 0 4px;padding:10px 15px;
  box-sizing:border-box;border:1px solid #e5ddf3;border-radius:18px 18px 18px 5px;
  background:#fff;box-shadow:0 2px 5px rgba(45,20,98,.05)}
.chat-typing-bubble .typing-dots{gap:4px}
.chat-typing-bubble .typing-dots i{width:5px;height:5px;background:#655880}

/* Private shares are compact and never expose a poster or source title. */
.msg-share.sc-private{display:flex;align-items:center;gap:12px;width:280px;max-width:100%;
  min-height:92px;aspect-ratio:auto;padding:14px;border:1px solid #a88bd14d;border-radius:16px;
  background:linear-gradient(125deg,#391673,#21113e);color:#fff;text-align:left;font:inherit;
  box-sizing:border-box;cursor:pointer;box-shadow:0 4px 10px #26104414;transition:border-color .15s ease}
.sc-private-lock{display:grid;place-items:center;flex:none;width:42px;height:48px;
  border-radius:12px;background:#c1ff7215;color:#c1ff72;border:1px solid #c1ff7233}
.sc-private-lock .pgi{width:22px;height:22px}
.sc-private-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.sc-private-copy strong{font-size:13px;line-height:1.2;font-weight:700;color:#fff}
.sc-private-copy small{font-size:10px;line-height:1.4;color:#dfd1f2}
.sc-private-copy>span{font-size:11px;line-height:1.3;color:#c1ff72;font-weight:600}
.sc-private-arrow{color:#c1ff72;font-size:24px;flex:none}
.msg-share.sc-private:hover{border-color:#c1ff72}
.msg-share.sc-private:focus-visible{outline:2px solid #c1ff72;outline-offset:3px}

/* Chat contact profile: a quiet identity panel and a clear social/action area. */
.up-card.up-contact{width:660px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 32px);
  border-radius:24px;background:#fff;isolation:isolate;border:1px solid #d9c9ed;
  box-shadow:0 8px 0 #35136a,0 24px 70px #1d0b3e55;scrollbar-width:thin;scrollbar-color:#b294d8 transparent}
.up-contact .up-hero{height:auto;min-height:224px;padding:26px 30px 30px;box-sizing:border-box;
  border-radius:0;overflow:hidden;background:linear-gradient(115deg,#6819f5,#42119f)}
.up-contact .up-hero::after{content:'';position:absolute;width:450px;height:190px;right:-210px;bottom:-30px;
  border:35px solid #ffffff0a;border-radius:50%;transform:rotate(-35deg);pointer-events:none}
.up-contact .up-blob{width:310px;height:310px;right:-45px;top:-235px;background:transparent;border:1px solid #c1ff7240}
.up-kicker{color:#e4d5ff;font-size:10px;font-weight:700;letter-spacing:1.7px;margin-bottom:28px}
.up-identity{display:flex;align-items:center;gap:24px;position:relative;z-index:1}
.up-contact .up-av{position:relative;left:auto;top:auto;transform:none;flex:none;width:100px;height:100px;
  padding:4px;border-radius:26px;background:#c1ff72;box-shadow:0 6px 16px #21074955;box-sizing:border-box}
.up-contact .up-av img,.up-contact .up-av span{width:92px;height:92px;border-radius:22px}
.up-contact .up-av.on::after{right:-3px;bottom:0;border-color:#5616ce;width:15px;height:15px}
.up-identity-copy{min-width:0;flex:1}.up-contact .up-name{color:#fff;justify-content:flex-start;gap:10px;
  font-size:28px;line-height:1.2;letter-spacing:-.7px;margin:0;overflow-wrap:anywhere}
.up-contact .up-seal{flex:none;width:23px;height:23px;margin:0}
.up-contact .up-pres{justify-content:flex-start;color:#ede4ff;margin-top:10px;font-size:12px;line-height:1.4}
.up-verified-label{display:inline-flex;margin-top:12px;color:#c1ff72;font-size:10px;letter-spacing:.4px;font-weight:600}
.up-contact .up-x,.up-contact .up-menu{top:16px;background:transparent;color:#c1ff72;border:0;border-radius:10px;
  width:36px;height:36px;backdrop-filter:none;font-size:26px;display:grid;place-items:center;line-height:1}
.up-contact .up-menu{font-size:15px;right:58px}.up-contact .up-x:hover,.up-contact .up-menu:hover{background:#c1ff72;color:#351363}
.up-contact .up-body{padding:24px 30px 28px;text-align:left}
.up-section-label{font-size:10px;letter-spacing:1.4px;font-weight:700;color:#765a9b}
.up-contact .up-about{margin:8px 0 0;color:#3e2c54;font-size:14px;line-height:1.65;overflow-wrap:anywhere}
.up-contact .up-stats{margin:22px 0 0;padding:16px 8px;background:#f7f3fc;border:1px solid #eee5f7;border-radius:16px;text-align:center}
.up-contact .up-stat{background:transparent;border:0;font:inherit;color:#351363;padding:4px;border-radius:8px}
.up-contact .up-stat b{font-size:22px;line-height:1.2}.up-contact .up-stat small{font-size:11px;color:#755f91}
.up-contact .up-fl:hover{background:#ede2fb}.up-contact .up-actions{gap:12px;margin-top:22px}
.up-contact .up-btn{height:46px;font-size:13px;border-radius:12px;font-weight:700;box-shadow:0 3px 0 #35136320}
.up-contact .up-btn:hover:not(:disabled){filter:brightness(.97)}
.up-contact :focus-visible{outline:2px solid #8a49f7;outline-offset:3px}
.up-contact .up-hero :focus-visible,.up-contact>.up-x:focus-visible,.up-contact>.up-menu:focus-visible{outline-color:#c1ff72}
.up-contact .up-reels{margin-top:26px}.up-contact .up-grid{gap:8px}.up-contact .up-cell{border-radius:12px}
.up-contact .up-pop{top:56px;right:20px}.up-contact .up-gami{background:#f7f3fc;border-color:#e3d5f1}
@media(max-width:480px){.up-contact .up-hero{padding:24px 20px;min-height:210px}.up-kicker{margin-bottom:26px}
  .up-identity{gap:16px}.up-contact .up-av{width:80px;height:80px;border-radius:23px}
  .up-contact .up-av img,.up-contact .up-av span{width:72px;height:72px;border-radius:19px}
  .up-contact .up-name{font-size:23px;gap:7px}.up-contact .up-seal{width:20px;height:20px}
  .up-contact .up-body{padding:22px 20px}.up-contact .up-btn{font-size:12px;gap:6px}}

/* Rebuilt split profile: identity stays distinct from contact controls. */
.up-card.up-contact{width:820px;display:grid;grid-template-columns:280px minmax(0,1fr);min-height:460px}
.up-contact .up-hero{padding:32px 26px;display:flex;flex-direction:column;min-height:100%;overflow:hidden}
.up-contact .up-kicker{margin:0 0 42px;font-size:9px}
.up-contact .up-identity{flex-direction:column;align-items:flex-start;gap:24px}
.up-contact .up-av{width:112px;height:112px;border-radius:30px}
.up-contact .up-av img,.up-contact .up-av span{width:104px;height:104px;border-radius:26px}
.up-contact .up-name{font-size:28px;flex-wrap:wrap;line-height:1.18}
.up-contact .up-signature{margin-top:auto;padding-top:45px;color:#ffffff38;font-size:44px;font-weight:800;letter-spacing:-2px}
.up-signature span{color:#c1ff7280}
.up-contact .up-body{display:flex;flex-direction:column;padding:56px 30px 28px;min-width:0}
.up-contact .up-bio{order:0}.up-contact .up-actions{order:1}.up-contact .up-call-actions{order:2}
.up-contact .up-stats{order:3}.up-contact .up-gami{order:4}.up-contact .up-blocked{order:4}.up-contact .up-reels{order:5}
.up-contact .up-x,.up-contact .up-menu{color:#5721a0;top:12px}
.up-contact .up-x:focus-visible,.up-contact .up-menu:focus-visible{outline-color:#8a49f7}
.up-contact .up-call-actions{display:flex;gap:10px;margin-top:12px}
.up-call-actions button{font:inherit;font-size:12px;font-weight:600;flex:1;display:flex;align-items:center;justify-content:center;
  gap:8px;background:#f5f0fc;color:#55268a;border:1px solid #e8ddf4;border-radius:11px;padding:11px 8px;cursor:pointer}
.up-call-actions .pgi{width:17px;height:17px}.up-call-actions button:hover{background:#ece2fa}
.up-call-actions button:disabled{opacity:.45;cursor:not-allowed}
.up-empty-reels{padding:20px 14px;border:1px dashed #e1d5ee;border-radius:12px;font-size:12px;text-align:center;color:#79658f;background:#fcfaff}
@media(max-width:640px){.up-card.up-contact{display:block;min-height:0;width:440px}
 .up-contact .up-hero{padding:26px 22px;min-height:0}.up-contact .up-kicker{margin-bottom:24px}
 .up-contact .up-identity{flex-direction:row;gap:18px;align-items:center}.up-contact .up-name{font-size:24px}
 .up-contact .up-av{width:84px;height:84px;border-radius:24px}
 .up-contact .up-av img,.up-contact .up-av span{width:76px;height:76px;border-radius:20px}
 .up-contact .up-signature{display:none}.up-contact .up-body{padding:24px 22px}
 .up-contact .up-x,.up-contact .up-menu{color:#c1ff72;top:10px}
 .up-contact .up-name{overflow-wrap:anywhere}.up-contact .up-identity-copy{min-width:0}
}

/* A quieter contextual toolbar and a single surface for private messages. */
.messages .msg-actions{background:#fff;border:1px solid #ded0ec;box-shadow:0 5px 18px #30144e1c}
.messages .msg-actions .ma{color:#6127a0}
.messages .msg-actions .ma[data-del]{color:#b74864}
.messages .msg-actions .ma:hover,.messages .msg-actions .ma:focus-visible{background:#c1ff72;color:#351363}
.messages .msg-actions .ma[data-del]:hover{background:#ffe7ee;color:#9a294b}
.messages .bubble.private-bubble{border:1px solid #d8c7ed;background:#efe7fc;padding:14px 16px 9px;box-shadow:0 2px 6px #33125608}
.messages .row.other .bubble.private-bubble{background:#f7f2fd}
.private-bubble .msg-share.sc-private{background:transparent;border:0;box-shadow:none;border-radius:0;padding:0;min-height:74px}
.private-bubble .sc-private-lock{background:#ffffffb3;border-color:#ddcdef;color:#6425a6}
.private-bubble .sc-private-copy strong{color:#371957}.private-bubble .sc-private-copy small{color:#755d91}
.private-bubble .sc-private-copy>span,.private-bubble .sc-private-arrow{color:#6425a6}
.private-bubble .msg-share.sc-private:focus-visible{outline-color:#6c2cad}
.pv-copyright-notice{font-size:13px;line-height:1.6}.pv-copyright-reference{padding:12px;background:#ffffff0a;border:1px solid #ffffff26;border-radius:12px}
.pv-copyright-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px;align-items:center}
.pv-copyright-actions a{color:#d5c0f1}.pv-copyright-actions .pv-copyright-send{padding:10px 14px;background:#c1ff72;color:#351363;border-radius:11px;font-weight:700;text-decoration:none}
.messages .msg-actions .ma[data-del] i{color:inherit}

/* ===== Compact, creative chat list (2026-11-27) ===== */
.sidebar .search{margin:14px 14px 10px}
.sidebar .chat-list-label{padding:0 16px 8px}
.sidebar .conv-list{padding:0 8px 12px}
/* Tighter rows: no forced min-height, less padding, rounded hit area. */
.sidebar .conv{min-height:0;padding:9px 11px;margin:3px 0;gap:11px;border:1px solid transparent;border-radius:14px;position:relative;overflow:hidden;transition:background .16s ease,transform .14s ease,border-color .16s ease}
/* Creative: an accent bar grows from the left edge on hover / active. */
.sidebar .conv::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:0;border-radius:0 4px 4px 0;background:linear-gradient(180deg,#8b4dff,#c1ff72);transition:height .18s cubic-bezier(.16,1,.3,1)}
.sidebar .conv:hover{background:#f4eefc;transform:translateX(2px)}
.sidebar .conv:hover::before{height:48%}
.sidebar .conv.active{background:#efe7fc;border-color:#e0d1f6}
.sidebar .conv.active::before{height:64%}
/* Squircle avatar with a soft hover pop; active = filled violet. */
.sidebar .conv .avatar{width:42px;height:42px;border-radius:13px;font-size:16px;transition:transform .16s cubic-bezier(.16,1,.3,1),box-shadow .16s ease}
.sidebar .conv:hover .avatar{transform:scale(1.06) rotate(-2deg);box-shadow:0 6px 14px rgba(94,23,235,.18)}
.sidebar .conv.active .avatar{transform:none}
.sidebar .conv .name{font-size:13px}
.sidebar .conv .last{margin-top:2px;font-size:11.5px}
.sidebar .conv-side{gap:6px}
.sidebar .conv .conv-time{font-size:10px}
/* Unread badge: gradient pill with a soft glow. */
.sidebar .conv .badge{background:linear-gradient(135deg,#7a27f0,#5e17eb);box-shadow:0 2px 7px rgba(94,23,235,.38);min-width:19px;height:19px;display:grid;place-items:center;padding:0 6px}
/* A chat with unread messages reads bolder so it stands out in a dense list. */
.sidebar .conv:has(.badge) .name{font-weight:700;color:#1f1030}
.sidebar .conv:has(.badge) .last{color:#5c4a70;font-weight:600}
@media(prefers-reduced-motion:reduce){.sidebar .conv,.sidebar .conv::before,.sidebar .conv .avatar{transition:none}.sidebar .conv:hover{transform:none}.sidebar .conv:hover .avatar{transform:none}}

/* ===== Lively chat panel polish (2026-11-27) — CSS only ===== */
/* Springy message entrance. */
@keyframes pgMsgPop{0%{opacity:0;transform:translateY(12px) scale(.96)}60%{opacity:1;transform:translateY(-2px) scale(1.012)}100%{transform:none}}
.panel .messages .row.msg-in{animation:pgMsgPop .36s cubic-bezier(.34,1.56,.64,1)}
/* Bubbles lift a touch on hover; mine gets a soft violet glow. */
.panel .messages .bubble{transition:transform .16s cubic-bezier(.16,1,.3,1),box-shadow .18s ease}
.panel .messages .row:hover .bubble{transform:translateY(-1px)}
.panel .messages .row.mine .bubble{background:linear-gradient(135deg,#f0e6ff,#e7dcff)}
.panel .messages .row.mine:hover .bubble{box-shadow:0 8px 22px #5e17eb24}
.panel .messages .row.other:hover .bubble{box-shadow:0 8px 20px #32104414}
/* Read ticks in brand lemon-green when seen reads livelier than teal. */
.panel .messages .row.mine .bubble .msg-tick{filter:saturate(1.1)}

/* Date chip: gradient pill with a tiny lemon spark. */
.panel .messages .date-chip{position:relative;background:linear-gradient(135deg,#efe6fb,#e7dbf6);color:#6a4b86;border:1px solid #e1d3ef;font-weight:700;letter-spacing:.03em;box-shadow:0 2px 8px #3a166b0f;padding:5px 14px 5px 22px}
.panel .messages .date-chip::before{content:"";position:absolute;left:10px;top:50%;transform:translateY(-50%);width:6px;height:6px;border-radius:50%;background:#c1ff72;box-shadow:0 0 0 2px #c1ff7240}

/* Call cards: rounder, lift + icon bounce on hover; missed icon gently nudges. */
.panel .messages .call-card{border-radius:18px;transition:transform .16s cubic-bezier(.16,1,.3,1),box-shadow .18s ease;position:relative}
.panel .messages .call-card.missed{background:linear-gradient(135deg,#ffe7ec,#ffdbe3)}
.panel .messages .call-card.picked{background:linear-gradient(135deg,#ecfadb,#e3f6cf)}
.panel .messages .call-card:hover{transform:translateY(-2px) translateX(1px);box-shadow:0 10px 24px #aa334522}
.panel .messages .call-card.picked:hover{box-shadow:0 10px 24px #4f9a2222}
.panel .messages .call-card .cc-ic{transition:transform .18s cubic-bezier(.34,1.56,.64,1)}
.panel .messages .call-card:hover .cc-ic{transform:scale(1.1) rotate(-6deg)}
.panel .messages .call-card.missed .cc-ic{animation:pgRing 3.2s ease-in-out infinite}
@keyframes pgRing{0%,86%,100%{transform:rotate(0)}88%{transform:rotate(-11deg)}92%{transform:rotate(9deg)}96%{transform:rotate(-5deg)}}

/* Private-video card: breathing lock + arrow that leans in on hover. */
.panel .messages .private-bubble .sc-private-lock{animation:pgLock 3s ease-in-out infinite}
@keyframes pgLock{0%,100%{box-shadow:0 0 0 0 #6425a600}50%{box-shadow:0 0 0 5px #6425a610}}
.panel .messages .private-bubble:hover .sc-private-arrow{transform:translateX(3px)}
.panel .messages .private-bubble .sc-private-arrow{transition:transform .16s ease}

/* Hover action toolbar: pop in, buttons bounce. */
.messages .message-tools.is-open .msg-actions{animation:pgActs .18s cubic-bezier(.34,1.56,.64,1)}
@keyframes pgActs{from{opacity:0;transform:translateY(5px) scale(.9)}to{opacity:1;transform:none}}
.messages .msg-actions .ma{transition:background .14s ease,color .14s ease,transform .14s cubic-bezier(.34,1.56,.64,1)}
.messages .msg-actions .ma:hover{transform:scale(1.14)}

/* Composer: idle breathing send button, bouncier mic/attach, livelier tools. */
.panel .composer .send-btn{animation:pgSend 3.4s ease-in-out infinite}
@keyframes pgSend{0%,100%{box-shadow:0 7px 20px #5e17eb40,0 0 0 4px #5e17eb12}50%{box-shadow:0 9px 26px #5e17eb55,0 0 0 7px #5e17eb0d}}
.panel .composer .send-btn:hover{animation:none}
.panel .composer-main .attach-btn:hover,.panel .composer-main .mic-btn:hover{transform:scale(1.12) rotate(-4deg)}
.panel .chat-composer-tools button:active{transform:translateY(1px) scale(.97)}
.panel .chat-composer-tools button:hover svg{transform:scale(1.12)}
.panel .chat-composer-tools button svg{transition:transform .14s cubic-bezier(.34,1.56,.64,1)}

/* Header: call/video buttons glow on hover; presence dot pulses. */
.panel .chat-head .icon-btn{transition:background .16s ease,transform .14s ease,box-shadow .16s ease}
.panel .chat-head .icon-btn:hover{transform:translateY(-1px) scale(1.05);box-shadow:0 6px 16px #1707370f}
.panel .chat-head .avatar .dot{animation:pgPresence 2.4s ease-in-out infinite}
@keyframes pgPresence{0%,100%{box-shadow:0 0 0 0 #22c55e55}50%{box-shadow:0 0 0 5px #22c55e00}}

@media(prefers-reduced-motion:reduce){
  .panel .messages .row.msg-in,.panel .messages .call-card.missed .cc-ic,.panel .messages .private-bubble .sc-private-lock,.panel .composer .send-btn,.panel .chat-head .avatar .dot,.messages .message-tools.is-open .msg-actions{animation:none}
  .panel .messages .bubble,.panel .messages .call-card,.panel .composer-main .attach-btn,.panel .composer-main .mic-btn{transition:none}
}

/* ===== Creative chat search + filter pills (2026-11-27) ===== */
.sidebar .search{margin:14px 14px 12px;min-height:0;padding:4px;display:flex;align-items:center;gap:8px;border:1px solid rgba(94,23,235,.14);border-radius:16px;background:linear-gradient(180deg,#ffffff,#faf7ff);box-shadow:0 6px 18px rgba(58,22,107,.08),inset 0 1px 0 #fff;transition:border-color .16s ease,box-shadow .16s ease}
.sidebar .search:focus-within{border-color:#8b55db;box-shadow:0 0 0 4px rgba(94,23,235,.10),0 8px 22px rgba(94,23,235,.14)}
.sidebar .search .search-ic{position:static;transform:none;left:auto;top:auto;pointer-events:auto;flex:0 0 36px;width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,#efe6fc,#e7dcff);color:#5e17eb}
.sidebar .search .search-ic svg{width:17px;height:17px}
.sidebar .search input{flex:1;width:auto;min-width:0;border:0;background:transparent;font-size:13.5px;color:#301b47;caret-color:#5e17eb;padding:10px 8px 10px 2px;outline:none!important}
/* Segmented filter control: translucent track, gradient active pill. */
.sidebar .chat-filters{gap:4px;padding:3px;margin:0 14px 14px;border-radius:14px;background:linear-gradient(180deg,rgba(94,23,235,.07),rgba(94,23,235,.03));border:1px solid rgba(94,23,235,.10)}
.sidebar .chat-filters button{flex:1;min-height:34px;padding:7px 6px;border:0;border-radius:11px;font-size:12px;font-weight:700;color:#6b587c;background:transparent;transition:color .16s ease,background .16s ease,transform .12s ease,box-shadow .16s ease}
.sidebar .chat-filters button:hover{background:rgba(94,23,235,.07);color:#5216bd}
.sidebar .chat-filters button:active{transform:scale(.95)}
.sidebar .chat-filters button[aria-pressed="true"]{color:#fff;background:linear-gradient(135deg,#7a2bff,#5e17eb 60%,#4a0fc0);box-shadow:0 5px 14px rgba(94,23,235,.34)}
@media(prefers-reduced-motion:reduce){.sidebar .search,.sidebar .chat-filters button{transition:none}}

/* ===== Icon filter pills + animations (2026-11-27 v2) ===== */
.sidebar .chat-filters button{display:flex;align-items:center;justify-content:center;gap:6px}
.sidebar .chat-filters button i{font-size:12px;opacity:.9;transition:transform .2s cubic-bezier(.34,1.56,.64,1),color .16s ease}
.sidebar .chat-filters button:hover i{transform:translateY(-1px) scale(1.08)}
.sidebar .chat-filters button[aria-pressed="true"]{animation:pgChipPop .24s cubic-bezier(.34,1.56,.64,1)}
.sidebar .chat-filters button[aria-pressed="true"] i{color:#c1ff72;transform:scale(1.12)}
@keyframes pgChipPop{0%{transform:scale(.93)}60%{transform:scale(1.035)}100%{transform:scale(1)}}
/* Search: gentle focus pop + icon nudge */
.sidebar .search:focus-within{transform:translateY(-1px)}
.sidebar .search .search-ic{transition:transform .2s cubic-bezier(.34,1.56,.64,1)}
.sidebar .search:focus-within .search-ic{transform:scale(1.06) rotate(-4deg)}
/* On a tight sidebar, keep icons and shrink labels gracefully. */
@media(max-width:360px){.sidebar .chat-filters button span{font-size:11px}.sidebar .chat-filters button{gap:4px;padding:7px 4px}}
@media(prefers-reduced-motion:reduce){.sidebar .chat-filters button,.sidebar .chat-filters button i,.sidebar .search,.sidebar .search .search-ic{animation:none;transition:none}}

/* ===== Search: single clean field (2026-11-27 v3) ===== */
.sidebar .search{margin:12px 14px 10px;padding:0 12px;min-height:0;height:44px;display:flex;align-items:center;gap:9px;border:1px solid #e3d9f3;border-radius:12px;background:#fff;box-shadow:0 1px 2px rgba(58,22,107,.04);transition:border-color .15s ease,box-shadow .15s ease}
.sidebar .search:focus-within{transform:none;border-color:#8b55db;box-shadow:0 0 0 3px rgba(94,23,235,.12)}
.sidebar .search .search-ic{position:static;transform:none;left:auto;top:auto;flex:0 0 20px;width:20px;height:20px;background:none;border-radius:0;color:#9385ad;display:grid;place-items:center;transition:color .15s ease}
.sidebar .search:focus-within .search-ic{color:#5e17eb;transform:none}
.sidebar .search .search-ic svg,.sidebar .search .search-ic .pgi{width:17px;height:17px}
.sidebar .search input{flex:1;width:auto;min-width:0;height:100%;border:0;background:transparent;box-shadow:none;font-size:13.5px;color:#301b47;caret-color:#5e17eb;padding:0 2px;outline:none!important}
.sidebar .search input::placeholder{color:#8a7a97}

/* Search focus: no extra ring/border — just a soft border tint. */
.sidebar .search:focus-within{box-shadow:0 1px 2px rgba(58,22,107,.04)!important;border-color:#cdbcec!important;transform:none!important}
.sidebar .search input,.sidebar .search input:focus,.sidebar .search input:focus-visible{outline:none!important;box-shadow:none!important;border:0!important;background:transparent!important}
