@import url("./work-chat-space.css");
.work-chat{min-width:0}.work-chat-layout{display:grid;grid-template-columns:minmax(220px,29%) minmax(0,1fr);height:min(720px,calc(100dvh - 225px));min-height:420px;border:1px solid #d9e0e5;border-radius:14px;background:#fff;overflow:hidden}.work-chat button{font:inherit}.work-chat-sidebar{display:flex;flex-direction:column;min-width:0;background:#f8fafb;border-right:1px solid #d9e0e5;overflow:hidden}.work-chat-sidebar-head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:15px 14px 8px}.work-chat-sidebar-head strong{font-size:17px}.work-chat-sidebar-head button,.work-chat-footer button,.work-chat-back{padding:7px 10px;border:1px solid #d5dee4;border-radius:8px;background:#fff;color:#243c4b;white-space:nowrap}.work-chat-search{display:block;padding:0 12px}.work-chat-search input{box-sizing:border-box;width:100%;min-width:0;padding:10px 11px;border:1px solid #d5dee4;border-radius:8px;background:#fff;font:inherit}.work-chat-scope-note{font-size:12px;color:#586976;padding:6px 14px 10px;margin:0}.work-chat-conversations{min-height:0;overflow-y:auto;overscroll-behavior:contain}.work-chat-conversation{display:block;width:100%;border:0;border-top:1px solid #e5eaee;background:transparent;text-align:left;padding:13px 14px;min-width:0;color:#263744;border-radius:0;cursor:pointer}.work-chat-conversation:hover{background:#edf2f6}.work-chat-conversation.is-active{background:#e7eff7;box-shadow:inset 3px 0 #4778a2}.work-chat-conversation-title{display:flex;gap:8px;align-items:flex-start;justify-content:space-between}.work-chat-conversation-title strong{overflow-wrap:anywhere}.work-chat-unread{background:#a35d14;color:#fff;border-radius:12px;min-width:20px;flex:none;padding:1px 5px;font-size:12px;text-align:center;font-weight:700}.work-chat-conversation-meta{display:block;font-size:12px;color:#596b78;margin:4px 0}.work-chat-preview{display:block;font-size:14px;line-height:1.45;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}.work-chat-pending-label,.work-chat-draft-label{display:block;font-size:12px;margin-top:5px;color:#8c5719}.work-chat-thread{min-width:0;min-height:0;display:flex;flex-direction:column;background:#f4f6f8}.work-chat-thread-header{background:#fff;border-bottom:1px solid #dee5eb;padding:13px 18px 10px;flex:none}.work-chat-thread-heading{display:flex;align-items:center;gap:10px}.work-chat-thread-heading h2{font-size:19px;line-height:1.3;margin:0;overflow-wrap:anywhere}.work-chat-thread-heading p{font-size:12px;color:#5a6b78;margin:4px 0}.work-chat-back{display:none}.work-chat-members{font-size:13px;color:#415565;margin:3px 0}.work-chat-members summary{cursor:pointer;display:list-item}.work-chat-members>div{display:flex;flex-wrap:wrap;gap:6px 16px;padding:8px 0;max-height:110px;overflow:auto}.work-chat-members small{color:#596b78}.work-chat-record-note{font-size:12px;color:#61727e;margin:5px 0 0;line-height:1.5}.work-chat-history-wrap{position:relative;min-height:0;flex:1;display:flex;flex-direction:column}.work-chat-messages{overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:14px 18px;scrollbar-gutter:stable}.work-chat-older{display:block;margin:0 auto 14px;border:0;background:none;color:#315f82;padding:7px 12px;text-align:center}.work-chat-message{max-width:92%;margin:0 0 16px;min-width:0}.work-chat-message.is-mine{margin-left:auto}.work-chat-sender{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;font-size:12px;color:#576b7c;margin-bottom:5px}.work-chat-sender strong{font-size:14px;color:#334b5b}.work-chat-sender time{font-size:11px}.work-chat-message.is-mine .work-chat-sender{justify-content:flex-end}.work-chat-bubble{font-size:18px!important;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding:11px 14px;border:1px solid #e0e6eb;border-radius:3px 12px 12px;background:#fff;color:#1e303e}.work-chat-message.is-mine .work-chat-bubble{background:#e8f0f8;border-color:#d8e4ee;border-radius:12px 3px 12px 12px}.work-chat-new{position:absolute;bottom:9px;left:50%;transform:translateX(-50%);white-space:nowrap;border:1px solid #b6c9da;border-radius:20px;padding:8px 14px;background:#fff;box-shadow:0 3px 12px #243c4b20;color:#2a5577}.work-chat-empty{padding:20px;color:#586c7b;font-size:14px;line-height:1.6}.work-chat-start{margin:auto;text-align:center}.work-chat-start strong{font-size:19px;color:#334b5b}.work-chat-thread-error:empty{display:none}.work-chat-thread-error{background:#fff7ed;padding:8px 15px;font-size:13px;line-height:1.5;color:#86551b;border-top:1px solid #ecdec9}.work-chat-compose{background:#fff;border-top:1px solid #dce4eb;padding:10px 15px 12px;flex:none;display:block}.work-chat-compose>label{font-size:13px;font-weight:600;display:block;margin-bottom:5px;overflow-wrap:anywhere}.work-chat-required{color:#a14736}.work-chat-compose textarea{box-sizing:border-box;width:100%;min-width:0;max-height:160px;resize:vertical;font:inherit;font-size:17px;line-height:1.5;padding:9px 11px;border:1px solid #bfcdd8;border-radius:9px;display:block}.work-chat-compose-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}.work-chat-compose-actions>span{font-size:12px;color:#5b6e7d;line-height:1.4}.work-chat-compose-actions>span.is-pending{color:#8c5719}.work-chat-compose-actions>button{flex:none;min-width:76px;padding:10px 16px;border-radius:9px;border:0;background:#315f82;color:#fff;font-weight:700}.work-chat-compose-actions>button:disabled{opacity:.7}.work-chat-readonly{font-size:13px;color:#566b7b;padding:14px 18px;background:#fff;border-top:1px solid #dce4eb;line-height:1.5}.work-chat-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 2px;font-size:12px;color:#5a6d7c}.work-chat-footer .is-error{color:#9b4938}.work-chat [hidden]{display:none!important}.work-chat button:focus-visible,.work-chat input:focus-visible,.work-chat textarea:focus-visible,.work-chat-messages:focus-visible{outline:3px solid #7da1bf;outline-offset:2px}
@media(max-width:700px){.work-chat-layout{display:block;height:calc(100dvh - 225px);min-height:390px;border-radius:10px}.work-chat-sidebar{height:100%;border:0}.work-chat-thread{display:none;height:100%}.work-chat-has-thread .work-chat-sidebar{display:none}.work-chat-has-thread .work-chat-thread{display:flex}.work-chat-back{display:block;padding:7px 8px;font-size:13px;flex:none}.work-chat-thread-header{padding:10px 12px 8px}.work-chat-thread-heading h2{font-size:17px}.work-chat-record-note{font-size:11px}.work-chat-messages{padding:12px 10px}.work-chat-message{max-width:96%;margin-bottom:13px}.work-chat-bubble{padding:10px 12px;font-size:18px!important}.work-chat-sender{gap:3px 6px}.work-chat-sender time{font-size:10px}.work-chat-compose{padding:8px 10px 10px}.work-chat-compose textarea{font-size:17px;max-height:110px}.work-chat-compose-actions>button{padding:10px 13px}.work-chat-footer{font-size:11px;align-items:flex-start}.work-chat-footer button{padding:5px 8px}.work-chat-conversation{padding:14px}.work-chat-conversation-title strong{font-size:17px}.work-chat-preview{font-size:15px}.work-chat-empty{padding:16px}.work-chat-members>div{max-height:75px}}
@media(max-height:650px) and (max-width:700px){.work-chat-layout{height:calc(100dvh - 175px);min-height:300px}.work-chat-record-note{display:none}.work-chat-members{margin:0}.work-chat-compose textarea{max-height:80px}}
.work-chat-sidebar-head>div{display:flex;gap:5px}.work-chat-manage{margin-left:auto;flex:none;border:1px solid #d5dee4;border-radius:7px;background:#fff;padding:6px 8px;color:#345469;font-size:12px!important}.work-chat-group-editor{padding:18px;overflow:auto;min-height:0;display:flex;flex-direction:column;gap:13px}.work-chat-group-heading{display:flex;gap:12px;align-items:center}.work-chat-group-heading h2{margin:0;font-size:19px}.work-chat-group-heading button{background:#fff;border:1px solid #d5dee4;border-radius:7px;padding:7px 10px}.work-chat-group-title{display:grid;gap:6px;font-weight:600;font-size:14px}.work-chat-group-title input{box-sizing:border-box;width:100%;font:inherit;background:#fff;border:1px solid #c4d0db;border-radius:8px;padding:11px}.work-chat-group-editor fieldset{margin:0;padding:12px;border:1px solid #d4dfe7;border-radius:9px;min-width:0}.work-chat-group-editor legend{font-weight:600;font-size:14px}.work-chat-group-help{margin:0 0 12px;color:#69532e;font-size:13px;line-height:1.5}.work-chat-group-candidates{display:grid;gap:5px}.work-chat-group-candidates>label{display:flex;align-items:center;gap:12px;padding:9px;background:#fff;border-radius:6px;font-size:14px}.work-chat-group-candidates input{width:19px;height:19px;flex:none}.work-chat-group-candidates small{display:block;color:#607282;margin-top:3px;font-size:12px}.work-chat-group-error:empty{display:none}.work-chat-group-error{font-size:13px;color:#9b4938;margin:0}.work-chat-group-save{display:flex;align-items:center;gap:12px;justify-content:space-between}.work-chat-group-save>span{font-size:12px;color:#596b78;line-height:1.5}.work-chat-group-save>button{white-space:nowrap;flex:none;border:0;background:#315f82;color:#fff;border-radius:8px;padding:11px 15px}
@media(max-width:700px){.work-chat-group-editor{padding:12px}.work-chat-sidebar-head>div button{padding:7px 8px}.work-chat-thread-heading h2{word-break:break-word}.work-chat-manage{font-size:11px!important;padding:6px}}
/* Owner messages have one consistent visual emphasis; management stays in the small menu. */
.work-chat-boss-label{display:inline-block;color:#315f82;font-size:11px;font-weight:750;line-height:1.4;border:1px solid #adc2d3;border-radius:4px;padding:1px 5px;white-space:nowrap}.work-chat-message.is-boss:not(.is-deleted) .work-chat-bubble{font-size:21px!important;line-height:1.65;border-left:4px solid #416f92;background:#f2f6fa;font-weight:550}.work-chat-message.is-boss .work-chat-sender>strong{color:#254d6a;font-size:15px}.work-chat-message.is-deleted .work-chat-bubble{font-size:14px!important;color:#657482;font-style:normal;background:#eef1f4;border:1px dashed #c9d3db;padding:9px 12px}.work-chat-edited{margin:4px 2px 0;font-size:11px;color:#657482}.work-chat-message.is-mine .work-chat-edited{text-align:right}.work-chat-message-tools{position:relative;margin-left:auto}.work-chat-more{font-size:20px!important;line-height:1;border:0;background:transparent;color:#667b8b;padding:1px 7px;min-width:28px;border-radius:4px;cursor:pointer}.work-chat-more:hover,.work-chat-more[aria-expanded=true]{background:#e1e8ee;color:#2e4c62}.work-chat-message-menu{position:absolute;right:0;top:26px;z-index:4;min-width:112px;padding:4px;border:1px solid #d0dbe3;border-radius:8px;background:#fff;box-shadow:0 5px 20px #304a6020}.work-chat-message-menu button{display:block;width:100%;padding:9px 11px;border:0;border-radius:4px;background:#fff;text-align:left;color:#344e62;white-space:nowrap;font-size:13px}.work-chat-message-menu button:hover{background:#edf2f7}.work-chat-moderation-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 28px));max-width:560px;max-height:85dvh;padding:0;border:1px solid #bfcdd8;border-radius:13px;color:#263e50;background:#fff;box-shadow:0 16px 60px #15304440;overflow:auto}.work-chat-moderation-dialog::backdrop{background:#182f4350}.work-chat-moderation{padding:18px;display:block}.work-chat-moderation-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.work-chat-moderation-heading h2{margin:0;font-size:19px}.work-chat-moderation-heading button{border:0;background:transparent;font-size:25px;color:#607483;padding:3px 8px}.work-chat-moderation-author,.work-chat-history-owner{font-size:12px;color:#5c6f7f;line-height:1.6;margin:8px 0 12px}.work-chat-original{background:#f3f6f9;border:1px solid #dbe4eb;border-radius:8px;padding:10px 12px;max-height:230px;overflow:auto}.work-chat-original small{font-size:12px;color:#607483}.work-chat-original p,.work-chat-history-entry p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.7;margin:5px 0}.work-chat-edit-label{display:block;margin-top:13px;font-size:14px;font-weight:600}.work-chat-edit-label textarea{display:block;box-sizing:border-box;width:100%;max-height:280px;min-height:100px;resize:vertical;font:inherit;font-size:17px;line-height:1.6;border:1px solid #b6c7d4;border-radius:8px;padding:10px;margin-top:6px}.work-chat-moderation-help{font-size:14px;line-height:1.7;margin:12px 0}.work-chat-moderation-error:empty{display:none}.work-chat-moderation-error{font-size:13px;line-height:1.5;color:#8b571c;background:#fff7e9;border-radius:6px;padding:9px;margin:10px 0}.work-chat-moderation-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.work-chat-moderation-actions button{font:inherit;font-size:14px;border:1px solid #bdcdd9;border-radius:7px;padding:9px 13px;background:#fff;color:#34546b}.work-chat-moderation-actions button.primary{background:#315f82;border-color:#315f82;color:#fff}.work-chat-moderation-actions button:disabled{opacity:.6}.work-chat-history-entry{border-top:1px solid #dce5ec;padding:12px 0}.work-chat-history-entry>strong{font-size:14px}.work-chat-history-entry>span{display:block;font-size:11px;color:#607483;margin-top:4px}.work-chat-history-entry small{display:block;font-size:11px;color:#607483;margin-top:8px}.work-chat-history-entry div{padding-left:10px;border-left:2px solid #dae4ed;margin-top:8px}.work-chat-moderation-dialog [hidden]{display:none!important}
@media(max-width:700px){.work-chat-message.is-boss:not(.is-deleted) .work-chat-bubble{font-size:20px!important}.work-chat-moderation-dialog{width:calc(100vw - 20px);max-height:88dvh}.work-chat-moderation{padding:14px}.work-chat-more{padding:2px 6px}.work-chat-moderation-actions button{flex:1;white-space:nowrap}.work-chat-original{max-height:180px}}
.work-chat-media-tools{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:7px}.work-chat-media-tools>button{border:1px solid #c9d6e0;border-radius:7px;padding:7px 10px;background:#f8fafc;font-size:13px;color:#34566e}.work-chat-media-tools>.work-chat-voice{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;min-width:104px}.work-chat-media-tools>.work-chat-voice.is-recording{border-color:#8b5d1d;background:#fff4de;color:#81521b}.work-chat-media-tools>span{font-size:12px;color:#8b5d1d}.work-chat-media-tools>.work-chat-camera{display:none}.work-chat-compose.is-dragging{outline:3px dashed #557f9f;outline-offset:-4px;background:#eef5fa}.work-chat-media-draft{display:flex;gap:7px;overflow-x:auto;max-width:100%;padding-top:7px}.work-chat-media-draft:empty{display:none}.work-chat-draft-file{position:relative;flex:none;border:1px solid #cbd7e0;border-radius:8px;padding:5px;background:#f8fafc;min-width:68px;max-width:100%}.work-chat-draft-file>img{display:block;width:68px;height:64px;object-fit:contain}.work-chat-draft-file>span{display:block;font-size:13px;margin-right:24px}.work-chat-draft-file>audio{width:min(260px,calc(100vw - 80px));height:38px}.work-chat-draft-file>button{position:absolute;right:0;top:0;border:0;border-radius:50%;background:#fff;color:#6e4b43;width:24px;height:24px;padding:0;font-size:18px;line-height:1}.work-chat-attachment{margin:7px 0;max-width:100%}.work-chat-image-button{display:block;max-width:100%;min-width:100px;min-height:76px;border:1px solid #cdd9e3;border-radius:9px;background:#f4f7fa;padding:4px;color:#355b77;font-size:14px;cursor:zoom-in}.work-chat-image-button>img{display:block;max-width:min(280px,100%);max-height:220px;object-fit:contain;border-radius:6px}.work-chat-image-button>span{padding:16px;display:block}.work-chat-audio{min-height:43px;min-width:130px;padding:10px 16px;border:1px solid #b6cbdc;background:#eef5fa;color:#2e5674;border-radius:9px;text-align:left;font-size:16px}.work-chat-attachment>audio{max-width:100%;height:42px}.work-chat-expired{font-size:13px;color:#667a88;background:#edf1f4;padding:10px 12px;border-radius:7px;border:1px dashed #c3d0da}.work-chat-media-error{font-size:12px;color:#895125;display:block;line-height:1.5}.work-chat-picture-viewer{max-width:96vw;max-height:94dvh;padding:12px;border:1px solid #b7c8d6;border-radius:12px;background:#fff}.work-chat-picture-viewer::backdrop{background:#10263c99}.work-chat-picture-viewer>button{position:sticky;top:0;display:block;margin-left:auto;border:0;border-radius:50%;width:38px;height:38px;background:#eaf0f5;color:#32526c;font-size:26px}.work-chat-picture-viewer>img{max-width:100%;max-height:calc(90dvh - 65px);object-fit:contain;display:block}.work-chat-acknowledgements{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px;margin-top:7px;font-size:11px;color:#607482}.work-chat-acknowledgements>button{font-size:12px;border:1px solid #bacddb;background:#fff;color:#315f82;padding:5px 9px;border-radius:6px;min-height:29px}.work-chat-acknowledgements>button:disabled{background:#edf2f6;color:#607482}.work-chat-acknowledgements>span{line-height:29px}.work-chat-acknowledgements details{padding-top:5px}.work-chat-acknowledgements summary{cursor:pointer;line-height:1.6}.work-chat-acknowledgements details>span{display:block;line-height:1.8;padding-top:3px}.work-chat-message.is-mine .work-chat-acknowledgements{justify-content:flex-end}
@media(max-width:700px){.work-chat-media-tools>.work-chat-camera{display:block}.work-chat-media-tools>button{padding:7px 9px}.work-chat-compose textarea{max-height:85px}.work-chat-draft-file>img{width:58px;height:52px}.work-chat-image-button>img{max-width:min(250px,100%);max-height:190px}.work-chat-footer{flex-wrap:wrap}.work-chat-footer>[data-chat-status]{flex:1;min-width:150px}.work-chat-acknowledgements>button{min-height:32px;padding:6px 10px}}
.work-chat-message.is-boss .work-chat-audio{border-left:4px solid #416f92;font-size:18px;font-weight:600}.work-chat-history-attachments h3{font-size:14px;margin:12px 0 8px}.work-chat-history-receipts{padding:10px;background:#f1f5f8;border-radius:7px;font-size:12px}.work-chat-history-receipts p{font-size:12px;margin:5px 0;color:#526b7d}

.work-chat-media-tools>.work-chat-input-level{display:flex;align-items:center;gap:6px;flex-basis:100%;min-width:0;color:#607482}.work-chat-input-level[hidden]{display:none}.work-chat-input-level>meter{width:70px;flex:none;height:12px}.work-chat-input-level>span{overflow-wrap:anywhere;min-width:0}
