.chat-layout{display:flex;gap:10px;height:calc(100vh - 130px);min-height:320px}.chat-list{flex:0 0 260px;overflow-y:auto;border:1px solid var(--chat-border);border-radius:6px}.chat-list-head{padding:8px;border-bottom:1px solid var(--chat-border);background:var(--chat-head-bg)}.chat-item{display:grid;grid-template-columns:1fr auto;gap:2px 6px;padding:8px;text-decoration:none;color:var(--bs-body-color);font-size:13px}.chat-item:hover{background:var(--bs-tertiary-bg)}.chat-item.active,.chat-item.active:hover{background:var(--chat-active-bg);font-weight:600}.chat-item-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-item-kind{grid-column:1 / -1;font-size:10px;color:var(--bs-secondary-color)}.chat-panel{flex:1 1 auto;display:flex;flex-direction:column;border:1px solid var(--chat-border);border-radius:6px;min-width:0}.chat-panel-head{padding:8px;border-bottom:1px solid var(--chat-border);background:var(--chat-head-bg)}.chat-messages{flex:1 1 auto;overflow-y:auto;padding:8px;display:flex;flex-direction:column;gap:6px;background:var(--chat-feed-bg)}.chat-message{align-self:flex-start;max-width:80%;padding:6px 8px;border-radius:6px;background:var(--bs-body-bg);border:1px solid var(--bs-border-color);font-size:13px}.chat-message.own{align-self:flex-end;background:var(--chat-own-bg);border-color:var(--chat-own-border)}.chat-message-head{font-size:10px;color:var(--bs-secondary-color);margin-bottom:2px}.chat-message-body{white-space:pre-wrap;word-break:break-word}.chat-form{padding:8px;border-top:1px solid var(--chat-border);align-items:stretch}.chat-form textarea{flex:1 1 auto}.chat-form button{flex:0 0 auto}.chat-send{background:var(--bs-body-bg);border:1px solid var(--chat-border);color:var(--bs-primary)}.chat-send:hover{background:var(--bs-body-bg);color:var(--bs-primary);border-color:var(--bs-primary)}@media(max-width:767.98px){.chat-layout{flex-direction:column;height:calc(100vh - 110px)}.chat-list{flex:0 0 120px}}.chat-panel-inline{border:1px solid var(--chat-border);border-radius:6px}.chat-panel-inline .chat-messages{height:240px}.task-detail-chat{padding:8px 12px 12px}.chat-members-list{min-height:120px;max-height:200px;overflow-y:auto}.chat-window{display:none;position:fixed;right:16px;bottom:16px;z-index:1050;resize:both;width:720px;min-width:320px;max-width:96vw;height:460px;min-height:240px;max-height:96vh;background:var(--bs-body-bg);border:1px solid var(--chat-border);border-radius:8px;box-shadow:0 6px 24px #0003;overflow:hidden}.chat-window.open{display:flex;flex-direction:column}.chat-window-title{display:flex;align-items:center;gap:8px;padding:6px 8px;border-bottom:1px solid var(--chat-border);background:var(--chat-head-bg);cursor:move;font-size:13px}.chat-window-body{display:flex;flex:1 1 auto;min-height:0}.chat-window-body .chat-list{flex:0 0 200px;border:0;border-right:1px solid var(--chat-border);border-radius:0}.chat-window-body .chat-panel{border:0;border-radius:0}@media(max-width:767.98px){.chat-window.open{inset:0;left:0!important;top:0!important;width:100%;max-width:100%;height:100%;max-height:100%;border:0;border-radius:0}.chat-window.open{resize:none}.chat-window-title{cursor:default}.chat-window-body{flex-direction:column}.chat-window-body .chat-list{flex:0 0 110px;border-right:0;border-bottom:1px solid var(--chat-border)}}:root{--chat-border: var(--app-line);--chat-head-bg: var(--app-chip);--chat-own-bg: var(--app-accent-soft);--chat-own-border: color-mix(in srgb, var(--app-accent) 25%, transparent);--chat-active-bg: var(--app-accent-soft);--chat-feed-bg: var(--app-bg)}
