/* Conversations share the workspace palette, with their own compact layout. */
.chat-symbol{width:22px;height:22px;flex:none}
.chat-count{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;padding:0 6px;border-radius:12px;background:#16715e;color:white;font-size:11px;font-weight:700;margin-left:auto}
.chat-count[hidden]{display:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body:has(.chat-layout) #main{padding:18px 22px;min-height:0}
body:has(.chat-layout) .footer{display:none}
.chat-layout{display:grid;grid-template-columns:316px minmax(0,1fr);height:calc(100dvh - 104px);min-height:430px;max-width:1660px;margin:auto;background:white;border:1px solid #e1e8e3;border-radius:18px;overflow:hidden;box-shadow:0 8px 36px #193d2d04}
.chat-directory{min-width:0;display:flex;flex-direction:column;border-right:1px solid #e5ebe7;background:#fff;overflow:hidden}
.chat-directory-heading{padding:26px 22px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.chat-directory-heading h1,.chat-directory-heading h2{font-size:23px;line-height:1.2;letter-spacing:-.6px;font-weight:700}
.chat-directory-heading p{margin-top:6px;color:#8a9890;font-size:12px}
.chat-directory-mark{color:#347963}
.chat-project-search{position:relative;margin:0 18px 20px}
.chat-project-search input{width:100%;min-width:0;height:44px;border:0;border-radius:12px;background:#f1f5f2;padding:10px 44px 10px 14px;box-shadow:none;font-size:13px;color:#2b4437}
.chat-project-search input::placeholder{color:#829188}
.chat-project-search button{position:absolute;right:0;top:0;border:0;background:transparent;color:#7b8c81;width:44px;height:44px;display:grid;place-items:center}
.chat-project-search .chat-symbol{width:19px;height:19px}
.chat-thread-list{flex:1;overflow:auto;padding:0 10px 12px}
.chat-thread{display:flex;align-items:center;gap:12px;padding:17px 12px;border-radius:12px;min-width:0;color:#243c30;position:relative;transition:background .15s}
.chat-thread:hover{background:#f4f7f4}
.chat-thread.selected{background:#eaf3ed}
.chat-thread.selected:before{content:'';position:absolute;left:0;top:24px;bottom:24px;width:3px;border-radius:5px;background:#28735d}
.chat-group-avatar{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:15px;background:#edf3ee;color:#4a7863}
.chat-group-avatar .icon{width:23px;height:23px;stroke-width:1.7}
.sage{background:#e2eee5;color:#42775a}.sand{background:#f2eadb;color:#9b8051}.blue{background:#e6edf6;color:#607b9b}
.chat-thread-copy{flex:1;min-width:0}
.chat-thread-top{display:flex;gap:6px;align-items:flex-start}
.chat-thread-top strong{font-size:13px;font-weight:650;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;flex:1}
.chat-thread-top time{font-size:10px;flex:none;color:#94a096;margin-top:2px}
.chat-thread-preview{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;color:#839188;margin-top:5px;line-height:1.5}
.chat-thread-copy small{font-size:11px}.chat-thread>.chat-count{position:absolute;right:14px;bottom:15px}
.chat-thread:has(.chat-count) .chat-thread-preview{padding-right:24px}
.chat-all-rooms{font-size:12px;padding:18px 24px;border-top:1px solid #edf1ed;color:#6e8678}
.chat-list-empty{text-align:center;padding:35px 18px;color:#809087;font-size:13px}.chat-list-empty h2{font-size:15px;margin-bottom:7px}
.chat-directory .pagination{font-size:11px;padding:12px;gap:8px;flex-wrap:wrap}
.chat-directory .pagination>span{display:none}
.chat-welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:radial-gradient(ellipse at 50% 36%,#edf5ee 0%,#f7f9f6 58%);padding:36px}
.chat-welcome h2{font-size:29px;line-height:1.35;letter-spacing:-.8px;font-weight:650;color:#345644}
.chat-welcome p{margin-top:16px;color:#84968a;line-height:1.85;font-size:14px}
.chat-welcome-art{width:126px;height:104px;position:relative;margin-bottom:30px}
.chat-welcome-art>span{position:absolute;display:grid;place-items:center;border-radius:25px;width:83px;height:83px;background:#dceadf;color:#5d8a6c;left:0;top:0;transform:rotate(-9deg)}
.chat-welcome-art>span:nth-child(2){width:65px;height:65px;left:63px;top:41px;background:#fff;border:5px solid #f0f5ee;box-shadow:0 8px 20px #527b5d0a;transform:rotate(9deg);color:#7d9b75}
.chat-welcome-art .chat-symbol{width:36px;height:36px;stroke-width:1.5}
.chat-welcome-art>span:nth-child(2) .chat-symbol{width:25px;height:25px}
.chat-room{display:flex;flex-direction:column;position:relative;min-width:0;min-height:0;background:#f3f6f2;overflow:hidden}
.chat-room-header{display:flex;align-items:center;gap:13px;padding:18px 26px;background:white;border-bottom:1px solid #e8ede8;min-height:85px;flex:none}
.chat-room-title{flex:1;min-width:0}.chat-room-title h1{font-size:16px;line-height:1.4;letter-spacing:-.2px;font-weight:650;overflow-wrap:anywhere}
.chat-round-button{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;min-width:44px;width:44px;height:44px;padding:0;border-radius:50%;color:#799184;flex:none;text-decoration:none}
.chat-round-button:hover{background:#eff5ef;color:#285d45}.chat-round-button:focus-visible{outline:3px solid #9bc4ad;outline-offset:1px}
.chat-back{display:none}.chat-find .chat-symbol{width:21px;height:21px}
.chat-members summary{display:inline-flex;align-items:center;gap:5px;cursor:pointer;color:#829589;font-size:12px;line-height:1.7;min-height:25px;list-style:none}
.chat-members summary::-webkit-details-marker{display:none}
.chat-members-panel{position:absolute;z-index:10;top:78px;left:24px;right:24px;max-width:360px;padding:20px;background:white;border:1px solid #e0e9e3;border-radius:16px;box-shadow:0 14px 40px #203e2c1a;max-height:65vh;overflow:auto}
.chat-members-panel h2{font-size:16px;margin-bottom:12px}.chat-members-panel ul{list-style:none;margin:0;padding:0}.chat-members-panel li{display:flex;align-items:center;gap:12px;padding:10px 0}
.chat-members-panel li strong{display:block;font-size:14px;font-weight:600}.chat-members-panel small{display:block;font-size:11px;color:#89988e}
.chat-members-panel p{font-size:12px;color:#829086;border-top:1px solid #edf0ed;margin-top:12px;padding-top:14px;line-height:1.7}
.chat-person-avatar{width:32px;height:32px;border-radius:50%;background:#dfeadf;color:#69816a;display:grid;place-items:center;flex:none;font-size:12px;font-weight:600}
.chat-stream{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:28px 30px;scrollbar-width:thin;scrollbar-color:#cad8ce transparent;background:#f3f6f2}
.chat-message-list{display:flex;flex-direction:column;gap:18px;max-width:1050px;margin:auto}
.chat-message{display:flex;align-self:flex-start;align-items:flex-end;gap:9px;max-width:min(80%,650px);min-width:0;scroll-margin:22px}
.chat-message>.chat-person-avatar{margin-bottom:33px}.chat-message-content{min-width:0}
.chat-message.mine{align-self:flex-end}.chat-message-author{font-size:11px;color:#74877a;margin:0 3px 6px;font-weight:600}
.chat-bubble{padding:11px 15px 8px;border-radius:16px 16px 16px 4px;background:white;color:#294335;box-shadow:0 2px 5px #264b3010;min-width:100px}
.mine .chat-bubble{background:#236f59;color:#fff;border-radius:16px 16px 4px 16px;box-shadow:0 3px 8px #1d604519}
.chat-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:14px}
.chat-message-time{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:7px;font-size:10px;color:#91a094;line-height:1.3}
.mine .chat-message-time{color:#b7d4c6}.chat-message-time>span{font-size:13px}
.chat-message:target .chat-bubble,.chat-message.chat-focus .chat-bubble{outline:2px solid #c9a765;outline-offset:4px}
.chat-reply-button{border:0;background:transparent;font-size:11px;color:#839689;padding:5px 3px;min-height:29px}.chat-reply-button:hover{color:#2d7257}.mine .chat-reply-button{float:right}
.chat-reply-quote{display:block;border-left:3px solid #8fb79c;padding:8px 10px;background:#f0f5ef;border-radius:6px;margin-bottom:9px;overflow-wrap:anywhere;font-size:12px;color:#718574}
.chat-reply-quote strong{display:block;color:#53715a;font-weight:600;margin-bottom:3px}.chat-reply-quote span{display:block;font-size:12px}
.mine .chat-reply-quote{background:#ffffff12;border-color:#a7ccaf;color:#d0e2d4}.mine .chat-reply-quote strong{color:#eef8ef}
.chat-mentions{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.chat-mentions span{color:#367953;background:#e9f3e8;padding:2px 7px;border-radius:7px;font-size:12px}.mine .chat-mentions span{background:#ffffff1c;color:#e5f4e8}
.chat-files{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;margin-top:8px;min-width:0}
.chat-image{display:block;max-width:100%;flex:1 1 160px;min-width:0}.chat-image img{display:block;width:100%;max-width:300px;height:170px;object-fit:cover;border-radius:9px;background:#dce6db}
.chat-file,.chat-record{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:10px;background:#eef4ee;color:#42664f;max-width:100%;min-width:0;font-size:13px;text-decoration:none}
.chat-file{flex-basis:100%}.chat-file>span:last-child,.chat-record>span{min-width:0;overflow-wrap:anywhere}.chat-file strong{font-size:12px;font-weight:600}.chat-file small,.chat-record small{display:block;color:#8b9c8f;font-size:10px;margin-top:3px}
.chat-file-icon{width:34px;height:39px;display:grid;place-items:center;background:#dceadd;border-radius:8px;flex:none}.chat-file-icon .chat-symbol{width:20px;height:20px}
.chat-record{margin-top:9px}.chat-record .chat-symbol{width:19px;height:19px}.mine .chat-file,.mine .chat-record{background:#f0f6ef;color:#3d6047}
.chat-private-record{margin-top:9px;font-size:11px;color:#8e9d92}.mine .chat-private-record{color:#c8dfcf}
.chat-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:100%;padding:35px 10px;color:#92a291}
.chat-empty[hidden]{display:none}.chat-empty-art{display:grid;place-items:center;width:64px;height:64px;border-radius:22px;background:#e4ede2;color:#91ad87;margin-bottom:20px;transform:rotate(-7deg)}
.chat-empty-art .chat-symbol{width:31px;height:31px;stroke-width:1.35;transform:rotate(7deg)}
.chat-empty h2{font-size:16px;font-weight:550;color:#658364;margin-bottom:8px}.chat-empty p{font-size:13px;line-height:1.85;color:#9baa98}
.chat-history-button{display:block;margin:0 auto 23px;padding:8px 14px;border:1px solid #dfe8df;background:#ffffffb3;border-radius:18px;color:#81917f;font-size:11px}
.chat-history-button[hidden],.chat-new[hidden]{display:none}.chat-new{align-self:center;position:absolute;bottom:100px;z-index:4;border:1px solid #dae6db;background:white;color:#467754;padding:9px 16px;border-radius:24px;box-shadow:0 4px 15px #2c59341c;font-size:12px}
.chat-connection:empty,.chat-send-error:empty,.chat-send-status:empty{display:none}.chat-connection{padding:9px 20px;background:#fff8e9;color:#8e722d;font-size:12px}
.chat-composer{position:relative;border-top:1px solid #e5ece5;background:#fff;padding:16px 22px;flex:none;min-width:0}
.chat-compose-row{display:flex;align-items:flex-end;gap:10px;min-width:0}
.chat-add{color:#8b9b8c;background:#f0f4ee}.chat-add:hover{background:#e4ede1;color:#487653}.chat-add .chat-symbol{width:24px;height:24px}
.chat-input-wrap{flex:1;min-width:0;border-radius:24px;background:#f1f5f0;padding:0 4px;border:1px solid transparent;transition:border-color .15s}
.chat-input-wrap:focus-within{border-color:#c9ddc8;background:#f5f8f3}
.chat-compose-row textarea{display:block;width:100%;min-width:0;min-height:44px;height:44px;max-height:128px;border:0;border-radius:24px;background:transparent;padding:11px 14px;font-size:15px;line-height:22px;resize:none;box-shadow:none;color:#3b5540;outline:none}
.chat-compose-row textarea::placeholder{color:#758974}.chat-compose-row textarea:focus{outline:none;box-shadow:none}
.chat-send{display:grid;place-items:center;position:relative;flex:none;width:46px;height:46px;min-width:46px;padding:0;border:0;border-radius:50%;background:#216d55;color:#fff;box-shadow:0 3px 9px #27684220;transition:background .15s,transform .15s}
.chat-send:hover{background:#185b46;transform:translateY(-1px)}.chat-send .chat-symbol{width:24px;height:24px;margin-left:1px}.chat-send:focus-visible{outline:3px solid #a6cdb3;outline-offset:3px}
.chat-send.is-sending .chat-symbol{visibility:hidden}.chat-send.is-sending:after{content:'';position:absolute;width:19px;height:19px;border:2px solid #ffffff50;border-top-color:white;border-radius:50%;animation:chat-spin .8s linear infinite}
@keyframes chat-spin{to{transform:rotate(360deg)}}
.chat-file-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0;overflow:hidden;clip:rect(0,0,0,0);padding:0!important;pointer-events:none}
.chat-selected-files:empty,.chat-selected-extras:empty{display:none}.chat-selected-files,.chat-selected-extras{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.chat-selected-files>span,.chat-selected-extras>span{display:flex;align-items:center;gap:7px;padding:6px 7px 6px 10px;border:1px solid #e0e9dc;border-radius:11px;background:#f7faf5;max-width:100%;min-width:0;font-size:12px;color:#5a7657}
.chat-selected-files>span>span,.chat-selected-extras>span>span{min-width:0;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-selected-files img{width:42px;height:42px;border-radius:6px;object-fit:cover}
.chat-selected-files button,.chat-selected-extras button{border:0;background:none;color:#81927c;min-width:30px;min-height:30px;border-radius:50%;padding:4px;font-size:17px}
.chat-reply-target{display:flex;align-items:center;gap:12px;border-left:3px solid #86ac7c;background:#f0f6ec;padding:8px 10px 8px 12px;border-radius:8px;color:#567a51;margin-bottom:12px;font-size:12px;justify-content:space-between}
.chat-reply-target[hidden]{display:none}.chat-reply-target .chat-round-button{width:32px;min-width:32px;height:32px}.chat-reply-target .chat-symbol{width:17px;height:17px}
.chat-send-error{font-size:12px;color:#a04f42;padding:0 0 10px}.chat-send-error .errorlist{margin:0;padding-left:18px}.chat-send-status{font-size:11px;color:#849c7e;margin:6px 55px 0}
.chat-read-only{padding:20px;font-size:13px;color:#879884;background:#fff;border-top:1px solid #e5ece3}
.chat-dialog{border:0;border-radius:22px;background:#fff;color:#29412d;padding:0;width:min(430px,calc(100vw - 36px));max-height:min(650px,85dvh);box-shadow:0 24px 80px #15381d30}
.chat-dialog::backdrop{background:#1b342a55;backdrop-filter:blur(3px)}
.chat-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:17px 18px 12px 24px;gap:12px}.chat-dialog>header h2{font-size:18px;letter-spacing:-.25px;font-weight:650}.chat-dialog>header .chat-round-button{width:36px;min-width:36px;height:36px;background:#f1f5ee}.chat-dialog>header .chat-symbol{width:18px;height:18px}
.chat-dialog-content{padding:5px 24px 22px;max-height:55dvh;overflow:auto}.chat-dialog-content>label{font-size:13px;display:block;margin:8px 0}.chat-dialog-content select{width:100%;max-width:100%;font-size:14px;min-height:46px;border-radius:10px}
.chat-dialog-hint{color:#8b9c87;font-size:12px;line-height:1.6;margin-top:12px}
.chat-dialog>footer{padding:12px 24px 22px;display:flex;justify-content:flex-end;border-top:1px solid #edf2e9}.chat-dialog>footer .button{min-height:44px;min-width:85px;border-radius:11px}
.chat-mention-options label{display:flex;align-items:center;gap:12px;min-height:54px;padding:9px 0;cursor:pointer;font-size:14px;border-bottom:1px solid #f0f4ec;overflow-wrap:anywhere}
.chat-mention-options input{width:19px;height:19px;flex:none;accent-color:#307549}
.chat-tools-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:14px 22px 30px}
.chat-tools-grid>button{display:flex;flex-direction:column;align-items:center;gap:12px;padding:14px 5px 8px;background:transparent;border:0;color:#6b8063;font-size:13px;border-radius:14px}
.chat-tools-grid>button:hover{background:#f5f8f1}.chat-tool-icon{width:58px;height:58px;border-radius:19px;display:grid;place-items:center}.chat-tool-icon .chat-symbol{width:26px;height:26px;stroke-width:1.65}
.chat-record-shortcut{margin-bottom:14px;font-size:13px}
.chat-search-bar{max-width:740px;margin-bottom:24px}.chat-search-bar label{display:block;margin-bottom:9px;font-size:13px;color:#62785c}.chat-search-bar>div{display:flex;gap:10px}.chat-search-bar input{flex:1;min-width:0}
.chat-search-results>a{display:block;padding:20px 24px;border-bottom:1px solid #e6ece2}.chat-search-results>a:hover{background:#f6f9f2}.chat-search-results small{font-size:11px;margin-left:12px;color:#97a48f}.chat-search-results p{margin:9px 0;white-space:pre-wrap;overflow-wrap:anywhere}.chat-search-file{display:block;font-size:12px;overflow-wrap:anywhere}.chat-search-results .text-link{display:block;margin-top:8px;font-size:12px}
@media(max-width:1150px){.chat-conversation-layout{grid-template-columns:minmax(0,1fr)}.chat-room-directory{display:none}.chat-back{display:inline-flex}.chat-message{max-width:85%}}
@media(max-width:760px){
  body:has(.chat-layout) #main{padding:0}
  body:has(.chat-conversation-layout) .topbar{display:none}
  .chat-layout{height:calc(var(--chat-app-height,100dvh) - 56px);min-height:0;border:0;border-radius:0;box-shadow:none;display:flex;flex-direction:column}
  .chat-conversation-layout{height:var(--chat-app-height,100dvh)}
  .chat-room{flex:1;height:100%;min-height:0}
  .chat-room-directory,.chat-welcome{display:none}
  .chat-directory{flex:1;border:0;min-height:0}.chat-directory-heading{padding:22px 22px 18px}.chat-directory-heading h1{font-size:27px}.chat-directory-heading p{font-size:12px}
  .chat-project-search{margin:0 18px 13px}.chat-project-search input{font-size:15px;height:46px}.chat-project-search button{height:46px}
  .chat-thread-list{padding:0 9px 12px}.chat-thread{padding:18px 12px;gap:13px}.chat-thread-top strong{font-size:14px}.chat-thread-preview{font-size:12px;margin-top:6px}.chat-thread .chat-group-avatar{width:48px;height:48px;border-radius:17px}
  .chat-room-header{padding:12px 10px;gap:9px;min-height:78px;box-shadow:0 2px 5px #29432703;z-index:2}
  .chat-back{display:inline-flex;min-width:32px;width:32px;height:44px;color:#678267}.chat-back .chat-symbol{width:22px;height:22px}.chat-room-header>.chat-group-avatar{width:37px;height:37px;border-radius:12px}.chat-room-header>.chat-group-avatar .icon{width:21px;height:21px}
  .chat-room-title h1{font-size:14px;line-height:1.4;letter-spacing:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .chat-members summary{font-size:11px;min-height:22px}.chat-find{min-width:36px;width:36px;height:44px}.chat-find .chat-symbol{width:20px;height:20px}
  .chat-members-panel{top:73px;left:12px;right:12px;max-height:65dvh;padding:20px}.chat-members-panel strong{font-size:13px}
  .chat-stream{padding:22px 13px 16px}.chat-message-list{gap:15px}.chat-message{gap:6px;max-width:92%}.chat-message>.chat-person-avatar{width:27px;height:27px;font-size:10px;margin-bottom:46px}
  .chat-bubble{padding:10px 12px 8px;border-radius:15px 15px 15px 4px}.mine .chat-bubble{border-radius:15px 15px 4px 15px}.chat-body{font-size:15px;line-height:1.6}.chat-message-author{font-size:11px;margin-bottom:5px}
  .chat-message-time{font-size:10px}.chat-reply-button{font-size:11px;min-height:40px;padding:5px 2px}.chat-image{flex-basis:120px}.chat-image img{height:150px;max-width:250px}.chat-file{padding:9px;gap:9px}.chat-file strong{font-size:12px}
  .chat-empty{padding:20px 15px}.chat-empty-art{width:60px;height:60px;margin-bottom:18px}.chat-empty h2{font-size:16px}.chat-empty p{font-size:13px}
  .chat-composer{padding:11px 12px max(11px,env(safe-area-inset-bottom));border-top:1px solid #e6ece2}.chat-compose-row{gap:8px}.chat-add{width:40px;min-width:40px;height:44px;background:transparent}.chat-add .chat-symbol{width:25px;height:25px}
  .chat-compose-row textarea{font-size:16px;line-height:22px;min-height:44px;height:44px;padding:11px 10px}.chat-input-wrap{border-radius:23px}.chat-send{width:44px;height:44px;min-width:44px}.chat-send .chat-symbol{width:23px;height:23px}
  .chat-send-status{margin:5px 50px 0;font-size:10px}.chat-send-error{font-size:12px;line-height:1.5;padding-bottom:9px}.chat-selected-files,.chat-selected-extras{gap:6px;margin-bottom:9px;max-height:135px;overflow:auto}.chat-selected-files>span>span,.chat-selected-extras>span>span{max-width:150px}
  .chat-dialog{margin:auto 0 0;max-height:85dvh;width:100%;max-width:100%;border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom)}.chat-dialog>header{padding:19px 18px 12px 22px}.chat-dialog>header h2{font-size:18px}.chat-dialog-content{padding:5px 22px 20px;max-height:50dvh}.chat-dialog>footer{padding:14px 22px 22px}.chat-dialog>footer .button{width:100%;border-radius:12px}.chat-tools-grid{padding:10px 18px 27px;gap:6px}.chat-tools-grid>button{font-size:13px;gap:11px}.chat-tool-icon{width:59px;height:59px;border-radius:19px}
  .chat-new{bottom:87px;font-size:12px}.chat-search-results>a{padding:16px}.chat-search-bar{margin-bottom:18px}
}
@media(prefers-reduced-motion:reduce){.chat-send,.chat-thread{transition:none}.chat-send.is-sending:after{animation:none}}
