#list_chats{min-width:fit-content;min-height:500px;display:flex;justify-content:center;align-items:center}.wrapper_spark{display:flex;justify-content:center;align-items:center}.loader_spark{width:30px;height:30px;border:3px solid #7ed957;border-top-color:#2ecc71;border-radius:50%;animation:spin .7s linear infinite;box-sizing:border-box}@keyframes spin{to{transform:rotate(360deg)}}.chat-item{display:flex;gap:12px;padding:10px;border-radius:14px;cursor:pointer;transition:background .15s ease,transform .1s ease;align-items:center}.chat-item-new-message{background:#f3f1fe}.chat-item:hover{background:#f2f4fb;transform:translateY(-1px)}.chat-item.active{background:var(--accent-soft)}.chat-avatar{width:40px;height:40px;border-radius:999px;background:linear-gradient(135deg,#c4d4ff,#9fb5ff);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;font-size:18px;flex-shrink:0}#app_shell{position:fixed;z-index:5;top:var(--header-h);left:var(--nav-w);right:0;bottom:0;display:flex;background:var(--bg)}#chat_list_col{width:30%;min-width:300px;max-width:420px;flex:none;display:flex;flex-direction:column;min-height:0;background:var(--panel);border-right:1px solid var(--line)}.chat_list_head{flex:none;display:flex;align-items:center;justify-content:space-between;padding:16px 16px 8px}.chat_list_title{font-size:20px;font-weight:700;color:var(--ink)}.btn_create_chat{width:38px;height:38px;padding:0;border:0;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}.btn_create_chat:hover{background:var(--accent-dark)}.chat_list_btns{display:flex;align-items:center;gap:8px}.btn_theme{width:38px;height:38px;padding:0;border:0;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center;cursor:pointer}.btn_theme:hover{background:var(--accent-line)}.btn_theme .icon_sun,[data-theme=dark] .btn_theme .icon_moon{display:none}[data-theme=dark] .btn_theme .icon_sun{display:block}.contact_search{flex:none;padding:4px 16px 8px}.contact_search input{height:42px;padding:0 16px;border:1px solid var(--line);border-radius:21px;background:var(--bg)}.contact_search input:focus{border-color:var(--accent);background:#fff;box-shadow:0 0 0 3px var(--accent-soft)}#chat-list,#list_contacts{flex:1;min-height:0;overflow-y:auto;padding:8px 10px}#chat-list .loader_spark,#list_contacts .loader_spark{margin:40px auto}label.chat-item{margin:0}.contact_check{flex:none;width:20px;height:20px;margin:0;align-self:center}.contact_add_btn,.contact_in_chat{flex:none;align-self:center;padding:6px 14px;border:0;border-radius:12px;font-size:13px;font-weight:600}.contact_add_btn{background:var(--accent-soft);color:var(--accent)}.contact_add_btn:hover{background:var(--accent-line)}.contact_in_chat{color:var(--muted)}#chat_col{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--bg)}#chat_empty{margin:auto;padding:24px;text-align:center;color:var(--muted)}#chat_empty b{display:block;margin-bottom:4px;font-size:18px;color:var(--ink)}#chat_panel{display:none;flex:1;min-height:0;flex-direction:column}body.chat-open #chat_panel{display:flex}body.chat-open #chat_empty{display:none}.chat-info{flex:1;min-width:0}.chat-top{display:flex;justify-content:space-between;margin-bottom:2px;align-items:center}.chat-name{font-size:clamp(.875rem,.653rem + .46vw,1rem);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-time{padding-top:5px;font-size:.7rem;color:#9d9d9d}.chat-bottom{font-size:clamp(.8125rem,.7411rem + .15vw,.875rem);display:flex;align-items:center;gap:4px}.chat-bottom img{width:15px;height:15px}.chat-last{color:#9d9d9d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.chat-last img{width:15px;height:15px;margin-bottom:2px}.chat-firstname{color:#000}.chat-badge{min-width:20px;height:20px;border-radius:10px;background:var(--accent);color:#fff;font-size:11px;display:flex;align-items:center;justify-content:center;padding:0 5px;font-weight:700}.chat-badge-hidden{display:none}.msg-profile img{width:40px;height:40px;border-radius:50%;object-fit:cover}
