.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.chat-loading{padding:65px 20px;text-align:center;color:var(--muted)}
.chat-demo{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px;color:var(--muted);font-size:12px}
.chat-demo label{display:flex;align-items:center;gap:9px;margin:0;font-size:12px;font-weight:400;white-space:nowrap}
.chat-demo select{width:auto;max-width:240px;font-size:12px;padding:5px 25px 5px 10px;min-height:34px;background-color:#fff}
.chat-workspace{display:grid;grid-template-columns:230px minmax(0,1fr);border:1px solid var(--line);border-radius:13px;background:#fff;height:calc(100dvh - 238px);min-height:490px;max-height:950px;overflow:hidden;box-shadow:0 2px 10px #02181605}
.chat-rail{display:flex;flex-direction:column;background:#f1f3f0;border-right:1px solid var(--line);padding:17px 10px 0;overflow:auto;min-width:0}
.chat-rail-label{display:flex;align-items:center;justify-content:space-between;padding:0 10px;color:#596362;font-size:12px;font-weight:700;letter-spacing:.04em;min-height:33px}
.chat-rail-label .icon-btn{width:28px;height:28px}.chat-rail-label svg{width:15px;height:15px}
.chat-rail-section{margin:12px 0 4px}.chat-rail-section:first-child{margin-top:0}
.chat-room{display:flex;align-items:center;width:100%;gap:9px;border:0;background:transparent;border-radius:6px;text-align:left;padding:9px 10px;color:#596362;font-size:14px;min-height:38px}
.chat-room.selected{background:#d9e2de;color:var(--ink)}.chat-room:hover{background:#e4e9e5;color:var(--ink)}.chat-room.unread{font-weight:700;color:var(--ink)}
.chat-room-symbol{width:20px;flex:none;font-size:18px;font-weight:400;text-align:center}.chat-room:has(.chat-room-symbol:first-child):not(:has(.chat-room-name:only-child)) .chat-room-symbol{line-height:20px}
.chat-rail-section:last-of-type .chat-room-symbol{font-size:10px;background:#d7ded9;border-radius:5px}.chat-room-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.chat-unread{display:inline-flex;justify-content:center;align-items:center;min-width:19px;height:19px;border-radius:5px;background:#344d49;color:#fff;font-size:10px;font-weight:700;padding:0 5px}
.chat-needs-dot{width:6px;height:6px;border-radius:50%;background:#65887d;flex:none}
.chat-rail-empty{padding:0 10px;font-size:12px;color:var(--muted);line-height:1.5}
.chat-rail-self{display:flex;align-items:center;gap:10px;margin:25px -10px 0;padding:16px;border-top:1px solid var(--line);margin-top:auto;font-size:12px}.chat-rail-self b,.chat-rail-self small{display:block}.chat-rail-self small{font-size:11px;margin-top:3px;color:var(--muted)}
.chat-avatar{width:34px;height:34px;border-radius:8px;background:#e4e8dd;color:#334c43;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;flex:none}.chat-avatar.staff{background:#374f4b;color:white}
.chat-main{display:flex;flex-direction:column;min-height:0;min-width:0;position:relative}
.chat-room-heading{min-height:79px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;padding:16px 25px}.chat-room-heading>div{min-width:0;flex:1}.chat-room-heading h2{font-size:18px;letter-spacing:-.02em;margin:0 0 5px;overflow-wrap:anywhere}.chat-room-heading p{font-size:12px;color:var(--muted);margin:0;line-height:1.4;display:flex;align-items:center;gap:5px}.chat-room-heading p svg{width:12px;height:12px}
.chat-needs-reply{font-size:11px;white-space:nowrap;border:1px solid #bdcfc4;background:#ecf3ed;padding:5px 7px;border-radius:5px;color:#3a5f4a}
.chat-connection{font-size:12px;padding:0 20px;background:#f2eee1;line-height:1.5}.chat-connection:not(:empty){padding-top:8px;padding-bottom:8px}
.chat-message-list{flex:1;overflow:auto;overscroll-behavior:contain;min-height:0;padding:14px 0 20px;scrollbar-gutter:stable}
.chat-day{position:relative;text-align:center;margin:12px 24px 23px;border-top:1px solid #e9ebe6}.chat-day span{position:relative;top:-8px;font-size:11px;color:#718079;background:#fff;border:1px solid #e9ebe6;border-radius:20px;padding:5px 12px}
.chat-message{display:flex;gap:11px;padding:10px 25px;position:relative;align-items:flex-start;min-width:0}.chat-message:hover{background:#fafbf8}.chat-message-content{min-width:0;flex:1}.chat-message-by{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;line-height:1.2;margin:2px 0 7px}.chat-message-by strong{font-size:14px;font-weight:700}.chat-message-by time,.chat-message-by small{font-size:10px;color:#7d8580}.chat-message-body{font-size:14px;line-height:1.6;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:#263b35}.chat-message.removed .chat-message-body{font-style:italic;color:#8a918c;font-size:12px}
.chat-message blockquote{border-left:3px solid #b7c6bc;background:#f1f4ef;padding:8px 10px;margin:0 0 8px;font-size:12px;line-height:1.4;color:#617067;overflow-wrap:anywhere}.chat-message blockquote b{display:block;color:#3b4e43;margin-bottom:3px}
.chat-message-menu{position:relative;flex:none}.chat-message-menu summary{list-style:none;cursor:pointer;font-size:21px;line-height:24px;min-width:27px;text-align:center;border-radius:5px;color:#75837a}.chat-message-menu summary::-webkit-details-marker{display:none}.chat-message-menu[open] summary{background:#e6ece5}.chat-message-menu>div{position:absolute;right:0;top:28px;z-index:6;padding:5px;background:#fff;border:1px solid var(--line);border-radius:7px;box-shadow:0 5px 18px #0001;min-width:120px}.chat-message-menu button{display:block;width:100%;border:0;background:none;text-align:left;padding:8px 10px;border-radius:4px;color:var(--ink);font-size:12px}.chat-message-menu button:hover{background:#edf1eb}
.chat-earlier{text-align:center;margin-bottom:20px}.chat-empty{text-align:center;padding:45px 20px;color:var(--muted);font-size:14px}.chat-empty b{color:var(--ink)}.chat-empty p{margin-top:10px}
.chat-compose{margin:0 20px 16px;border:1px solid #bdc9c1;border-radius:10px;overflow:hidden;flex:none}.chat-compose:focus-within{border-color:#6c8a79;box-shadow:0 0 0 2px #acbebd22}.chat-compose textarea{border:0;box-shadow:none;outline:none;border-radius:0;min-height:58px;height:66px;max-height:190px;padding:13px 14px;font-size:14px;resize:vertical;background:#fff}.chat-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px 10px}.chat-compose-footer>span{color:#8a928b;font-size:10px}.chat-compose-footer button{min-width:83px;min-height:32px;padding:7px 12px;font-size:12px}.chat-compose-footer svg{width:14px;height:14px}.chat-send-state:not(:empty){padding:0 14px 12px;color:#685c36;font-size:12px;line-height:1.5}.chat-compose-context>div{display:flex;align-items:center;justify-content:space-between;background:#f0f4ee;padding:5px 12px;font-size:11px;color:#54715c}.chat-compose-context .icon-btn{width:26px;height:26px}.chat-compose-context svg{width:13px;height:13px}
.chat-new-row{height:0;position:relative;z-index:2;text-align:center}.chat-new{position:relative;bottom:39px;border:1px solid #9caf9c;background:#eff5ed;border-radius:20px;padding:7px 15px;box-shadow:0 2px 8px #0001;font-size:12px;color:#36593e}.hidden{display:none!important}
.chat-client-list{border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:5px}.chat-client{display:flex;flex-wrap:wrap;align-items:center;gap:6px;width:100%;border:0;background:none;text-align:left;padding:10px;border-radius:6px;color:var(--ink);font-size:12px}.chat-client.selected{background:#e0e7df}.chat-client>span{flex:1}.chat-client small{width:100%;color:#608269;font-size:10px}
.chat-rail-toggle{display:none}
.chat-mobile-rail-heading{display:none}
.chat-dialog{width:min(440px,calc(100% - 32px));padding:25px;border:1px solid var(--line);border-radius:13px;box-shadow:0 12px 50px #0002;color:var(--ink);max-height:90dvh;overflow:auto}.chat-dialog::backdrop{background:#02181670}.chat-dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.chat-dialog header h2{font-size:21px;margin:0}.chat-dialog .field{margin-bottom:18px}.chat-dialog label{font-size:13px}.chat-dialog .btn{font-size:13px}.chat-dialog-error{font-size:12px;color:#80542a;margin:15px 0 0}.chat-dialog-error:empty{display:none}.chat-prototype-note{font-size:12px;color:var(--muted);line-height:1.65;max-width:780px;margin-top:18px}
.people-panel{max-width:1000px}.people-panel .panel-heading{align-items:center}.people-panel h2{font-size:20px}.people-row{display:flex;align-items:center;gap:13px;border-top:1px solid var(--line);padding:18px 0}.people-person{flex:1;min-width:0}.people-person strong{font-size:14px;display:block;overflow-wrap:anywhere}.people-person small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.people-actions{display:flex;align-items:center;gap:12px}.people-actions .btn{font-size:11px}.chat-text-button{border:0;background:none;font-size:11px;color:#53665a;padding:7px 0}.chat-you{font-weight:400;color:var(--muted)}
@media(max-width:1100px){.chat-workspace{grid-template-columns:190px minmax(0,1fr)}.chat-room-heading{padding:15px 17px}.chat-message{padding:10px 17px}.chat-compose{margin-left:13px;margin-right:13px}.chat-room-heading p{font-size:11px}}
@media(max-width:650px){.chat-demo{align-items:flex-start;gap:8px;flex-direction:column}.chat-demo select{max-width:230px}.chat-workspace{grid-template-columns:minmax(0,1fr);height:calc(100dvh - 230px);min-height:480px;border-radius:10px;position:relative}.chat-rail{display:none}.chat-workspace.rail-open .chat-rail{display:flex;position:absolute;inset:0 45px 0 0;z-index:8;box-shadow:10px 0 25px #0002}.chat-rail-toggle{display:grid;flex:none}.chat-room-heading{min-height:72px;padding:13px 12px;gap:7px}.chat-room-heading h2{font-size:16px}.chat-room-heading p{font-size:10px}.chat-room-heading .chat-needs-reply{display:none}.chat-message{padding:10px 13px;gap:9px}.chat-message .chat-avatar{width:29px;height:29px;font-size:10px}.chat-message-by strong{font-size:13px}.chat-message-body{font-size:14px}.chat-compose{margin:0 10px 11px}.chat-compose-footer>span{font-size:9px;max-width:140px}.chat-compose textarea{font-size:16px}.people-row{flex-wrap:wrap}.people-actions{margin-left:47px;flex-wrap:wrap}.people-panel{padding:16px}.chat-dialog{padding:20px}.chat-prototype-note{font-size:11px}}
@media(max-width:650px){.chat-workspace{height:calc(100dvh - 290px);min-height:420px}.chat-mobile-rail-heading{display:flex;align-items:center;justify-content:space-between;padding:0 8px 12px;font-size:13px;font-weight:700}.chat-mobile-rail-heading .icon-btn{width:28px;height:28px}.chat-mobile-rail-heading svg{width:15px;height:15px}}

.chat-tabs{display:flex;align-items:center;gap:6px;margin:0 0 12px;border-bottom:1px solid var(--line);padding-bottom:10px}
.chat-tabs button{display:flex;align-items:center;gap:8px;padding:9px 14px;border:0;border-radius:7px;background:transparent;color:var(--gray);font:inherit;font-size:14px;cursor:pointer}
.chat-tabs button[aria-selected=true]{background:var(--brand-wash);color:var(--brand-text);font-weight:700}
.chat-workspace{height:calc(100dvh - 294px)}
.chat-compose{position:relative;overflow:visible}
.chat-compose textarea{border-radius:10px 10px 0 0}
.chat-mention{border-radius:4px;background:var(--brand-wash);color:var(--brand-text);padding:1px 3px;font-weight:600;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.chat-mention.is-you{background:var(--positive-bg);color:var(--positive-ink);box-shadow:inset 0 -1px var(--brand-edge)}
.chat-mention-picker{position:absolute;z-index:15;bottom:calc(100% + 8px);left:0;right:0;max-width:390px;max-height:280px;overflow-y:auto;padding:6px;background:var(--panel);border:1px solid var(--field-line);border-radius:10px;box-shadow:0 12px 35px #0002}
.chat-picker-label{font-size:13px;color:var(--muted);font-weight:600;padding:8px 10px}
.chat-mention-picker button{display:flex;align-items:center;gap:11px;width:100%;padding:8px 10px;border:0;background:transparent;text-align:left;border-radius:6px;color:var(--ink);cursor:pointer}
.chat-mention-picker button[aria-selected=true],.chat-mention-picker button:hover{background:var(--brand-wash)}
.chat-mention-picker b,.chat-mention-picker small{display:block}.chat-mention-picker b{font-size:14px}.chat-mention-picker small{color:var(--muted);margin-top:3px;font-size:12px}
.chat-thread-link{display:flex;align-items:center;gap:6px;border:0;background:transparent;color:var(--brand-text);padding:9px 0 0;font:inherit;font-size:14px;cursor:pointer}
.chat-thread-link .chat-avatar{height:22px;width:22px;font-size:9px;border-radius:5px}.chat-thread-link.unread{font-weight:700}
.chat-thread-link:hover>span:last-child{text-decoration:underline}
.chat-workspace.thread-open{grid-template-columns:190px minmax(240px,1fr) minmax(310px,.95fr)}
.chat-thread{min-height:0;min-width:0;display:flex;flex-direction:column;border-left:1px solid var(--line);background:var(--panel);z-index:9}
.chat-thread-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 18px;min-height:79px;border-bottom:1px solid var(--line)}
.chat-thread-heading h2{font-size:18px;margin:0 0 5px}.chat-thread-heading span{font-size:13px;color:var(--muted)}.chat-thread-heading svg{width:18px;height:18px}
.chat-thread-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding-bottom:20px}
.chat-thread .chat-message{padding:12px 16px}.chat-thread-parent .chat-day{display:none}.chat-thread-parent{padding-top:5px}
.chat-thread-divider{font-size:13px;color:var(--muted);border-bottom:1px solid var(--line);padding:8px 16px 12px;margin-bottom:6px}
.chat-thread .chat-compose{margin-left:12px;margin-right:12px}.chat-thread .chat-compose-footer>span{font-size:11px}
.chat-highlight{background:var(--pending-bg)!important;box-shadow:inset 3px 0 var(--brand-edge)}
.chat-mentions-list{padding:0 14px}.chat-mention-card{display:flex;align-items:flex-start;gap:13px;width:100%;padding:18px 14px;border:1px solid var(--line);border-radius:9px;margin-bottom:10px;background:var(--panel);color:var(--ink);text-align:left;cursor:pointer;font:inherit}
.chat-mention-card.unread{background:var(--subtle);border-color:var(--brand-edge)}.chat-mention-card:hover{background:var(--hover)}
.chat-mention-copy{min-width:0;flex:1}.chat-mention-location{display:block;font-size:13px;color:var(--muted);margin-bottom:7px;overflow-wrap:anywhere}
.chat-mention-author{display:block;font-size:14px;font-weight:700;margin-bottom:7px}.chat-mention-author time{font-size:12px;color:var(--muted);font-weight:400;margin-left:8px}
.chat-mention-excerpt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-mention-dot{width:8px;height:8px;background:var(--brand-text);border-radius:50%;flex:none;margin-top:5px}
@media(max-width:1200px){.chat-workspace.thread-open{grid-template-columns:180px minmax(0,1fr);position:relative}.chat-workspace.thread-open .chat-main{visibility:hidden}.chat-workspace.thread-open .chat-thread{position:absolute;right:0;top:0;bottom:0;width:calc(100% - 180px);box-shadow:-12px 0 25px #0001}}
@media(max-width:650px){.chat-workspace,.chat-workspace.thread-open{grid-template-columns:minmax(0,1fr);height:calc(100dvh - 338px);min-height:440px}.chat-workspace.thread-open .chat-thread{position:absolute;inset:0;width:100%;border-left:0;box-shadow:none}.chat-workspace.thread-open .chat-main{visibility:hidden}.chat-thread-heading{padding:12px 14px;min-height:68px}.chat-tabs button{font-size:14px}.chat-demo{font-size:11px}.chat-mentions-list{padding:0 8px}.chat-mention-card{gap:9px;padding:14px 10px}.chat-room-heading .btn{font-size:12px;padding:7px 9px}.chat-compose-footer>span{font-size:11px;max-width:none}.chat-message-by time{font-size:11px}.chat-mention-picker{max-height:220px}.chat-thread .chat-compose textarea{font-size:16px}}
