 :root{color-scheme:dark}
.chats-workspace{width:100%;max-width:860px;margin:0 auto;min-height:calc(100dvh - 56px);padding:0;box-sizing:border-box;color:#f5f7f9;font-family:Geist,system-ui,sans-serif}.chats-workspace[hidden]{display:none!important}
.chats-layout{display:block;width:100%}.chats-layout.is-thread-open .dialogs-panel{display:none}.chats-layout:not(.is-thread-open) .dialog-thread{display:none!important}
.dialogs-panel{width:100%;min-height:calc(100dvh - 84px);display:flex;flex-direction:column;background:transparent;border:0;box-shadow:none;border-radius:0;overflow:visible;color:#f5f7f9}
.dialogs-head{display:flex;align-items:flex-end;justify-content:space-between;padding:24px 0 15px}.dialogs-head h1{margin:0;font-size:28px;letter-spacing:-.04em}.dialogs-head span{display:block;margin-top:3px;color:#727a85;font-size:12px}
.new-chat-btn{width:34px;height:34px;border:0;border-radius:14px;background:rgba(255,255,255,.07);color:#eef2f5;font-size:24px;cursor:pointer;transition:background .16s ease,transform .16s ease}.new-chat-btn:hover{background:rgba(255,255,255,.11);transform:translateY(-1px)}
.dialogs-search-wrap{height:42px;margin:0 0 12px;padding:0 13px;display:flex;align-items:center;gap:9px;border:1px solid rgba(255,255,255,.07);border-radius:18px;background:#111419}.dialogs-search-wrap svg{width:17px;height:17px;fill:none;stroke:#69717b;stroke-width:1.8}.dialogs-search-wrap input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#eef2f5;font:inherit;font-size:13px}.dialogs-search-wrap input::placeholder{color:#69717b}
.dialog-tabs{display:flex;gap:6px;padding:0 0 12px;overflow:auto}.dialog-tabs button{height:31px;padding:0 12px;border:0;border-radius:14px;background:transparent;color:#7e8792;font:inherit;font-size:12px;font-weight:650;white-space:nowrap;cursor:pointer;transition:background .16s ease,color .16s ease}.dialog-tabs button.is-active{background:#181c21;color:#f4f6f8}.dialog-tabs span{margin-left:4px;color:#55b8ff}
.dialog-list{min-height:0;overflow:visible;padding:0 0 18px}.dialog-row{position:relative;width:100%;min-height:78px;display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:14px;padding:11px 14px;border:0;border-radius:20px;background:transparent;color:inherit;text-align:left;cursor:pointer;transition:background .16s ease,transform .16s ease}.dialog-row:hover,.dialog-row.is-selected{background:rgba(255,255,255,.045)}.dialog-row[hidden]{display:none!important}
.dialog-avatar{position:relative;width:52px;height:52px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#161a20;color:#fff;font-weight:800;flex:0 0 auto}.dialog-avatar img{width:100%;height:100%;object-fit:cover}.dialog-avatar i{position:absolute;right:1px;bottom:2px;width:10px;height:10px;border-radius:50%;background:#4cd17c;border:2px solid #000}.dialog-avatar--brand{background:linear-gradient(145deg,#21252c,#101216);font-size:21px}.dialog-avatar--dispute{background:#241719;color:#ff7474;font-size:20px}
.dialog-body{min-width:0}.dialog-line{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-line strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:720}.dialog-line time{flex:0 0 auto;margin-left:auto;color:#666e78;font-size:11px}.is-unread .dialog-line time{color:#58baff}.dialog-preview{margin-top:5px;color:#7f8791;font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(720px,72vw)}.dialog-preview b{color:#a3aab3;font-weight:600}.is-unread .dialog-preview{color:#aeb5be}
.dialog-badge{min-width:20px;height:20px;margin-left:12px;padding:0 6px;display:grid;place-items:center;border-radius:999px;background:#50aef5;color:#081017;font-size:10px;font-weight:800}.dialog-badge--dispute{background:#ff6868;color:#1a0505}
.dialog-thread{width:100%;min-height:calc(100dvh - 84px);display:flex;flex-direction:column;gap:0;background:transparent;color:#f5f7f9}.dialog-thread[hidden]{display:none!important}
.thread-head{position:sticky;top:0;z-index:4;display:flex;align-items:center;gap:12px;padding:16px 0 14px;background:#000}.thread-head-avatar .dialog-avatar{width:46px;height:46px}.thread-head-meta{min-width:0;display:flex;flex-direction:column;gap:2px}.thread-head-meta strong{font-size:16px;font-weight:760;letter-spacing:-.02em}.thread-head-meta span{font-size:12px;color:#727a85}.thread-head-actions{margin-left:auto;display:flex;align-items:center;gap:8px}.thread-head-btn,.thread-back-btn{width:34px;height:34px;border:0;border-radius:14px;background:rgba(255,255,255,.05);color:#e9edf0;display:grid;place-items:center;cursor:pointer;transition:background .16s ease,transform .16s ease}.thread-head-btn:hover,.thread-back-btn:hover{background:rgba(255,255,255,.1);transform:translateY(-1px)}.thread-head-btn svg,.thread-back-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.thread-messages{min-height:0;flex:1;display:flex;flex-direction:column;gap:10px;padding:10px 0 16px;overflow:auto;scrollbar-width:none}.thread-messages::-webkit-scrollbar{display:none}.thread-day{align-self:center;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.05);color:#7f8791;font-size:11px;font-weight:650}
.msg{max-width:min(78%,440px);padding:10px 12px 8px;border-radius:18px;display:flex;flex-direction:column;gap:6px}.msg--in{align-self:flex-start;background:#12161b;border:1px solid rgba(255,255,255,.05)}.msg--out{align-self:flex-end;background:linear-gradient(180deg,rgba(32,75,120,.42) 0%,rgba(26,56,88,.3) 100%);border:1px solid rgba(96,169,255,.16)}.msg__text{font-size:13px;line-height:1.42;color:#eef2f5;white-space:pre-wrap}.msg__time{align-self:flex-end;font-size:10px;color:#7f8791}.msg__media{display:flex;flex-direction:column;gap:8px}.msg__media img{display:block;width:100%;max-width:260px;aspect-ratio:4/3;object-fit:cover;border-radius:14px;border:1px solid rgba(255,255,255,.06);background:#0d1014}
.thread-composer{position:sticky;bottom:0;z-index:4;display:grid;grid-template-columns:36px minmax(0,1fr) 38px;gap:10px;align-items:end;padding:12px 0 2px;background:#000}.thread-compose-plus,.thread-compose-send{width:36px;height:36px;border:0;border-radius:14px;background:rgba(255,255,255,.07);color:#eef2f5;display:grid;place-items:center;cursor:pointer;transition:background .16s ease,transform .16s ease}.thread-compose-plus:hover,.thread-compose-send:hover{background:rgba(255,255,255,.11);transform:translateY(-1px)}.thread-compose-send svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.thread-compose-field{min-height:36px;max-height:120px;padding:10px 12px;border:1px solid rgba(255,255,255,.07);border-radius:16px;background:#111419;color:#eef2f5;font:inherit;font-size:13px;line-height:1.35;resize:none;outline:0}.thread-compose-field::placeholder{color:#69717b}
body.chats-view-active .content-brand{display:none!important}body.chats-view-active .ksan-main{overflow-y:auto!important}
@media(max-width:760px){.chats-workspace{max-width:none;padding-bottom:74px}.dialogs-head{padding:20px 0 12px}.dialogs-head h1{font-size:25px}.dialog-row{grid-template-columns:50px minmax(0,1fr) auto;gap:10px;padding:9px 10px;border-radius:17px}.dialog-avatar{width:48px;height:48px}.dialog-preview{max-width:62vw}.dialog-thread{min-height:calc(100dvh - 110px)}.thread-head{padding-top:6px}.msg{max-width:88%}.thread-composer{padding-bottom:8px}}


/* v435 — left navigation temporarily removed */
.ksan-shell{width:100%;max-width:none;margin:0 auto;padding:24px 22px 48px;box-sizing:border-box;display:block!important}
.ksan-main{width:min(1040px,100%);margin:0 auto!important;min-width:0}
@media(max-width:760px){.ksan-shell{padding:0!important}.ksan-main{width:100%;margin:0!important}}


