:root{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#152c42;background:#f1f5f9;font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0;border-radius:10px;padding:11px 16px;background:#008fe2;color:white;font-weight:600}button:hover{filter:brightness(.95)}button:disabled{opacity:.5;cursor:wait}.secondary{background:#edf3f8;color:#215778}h1{font-size:27px;letter-spacing:-1px}h2{margin:6px 0;font-size:25px}small,.fine{color:#64778a}.fine{font-size:12px;line-height:1.6}.login{max-width:440px;margin:12vh auto;background:white;padding:35px;border-radius:24px;box-shadow:0 15px 50px #1232}.login h1{color:#008fe2;font-size:38px}.login small{display:block;margin-top:20px}label{display:block;margin:14px 0}input,textarea,select{display:block;width:100%;padding:12px;border:1px solid #cdd9e4;border-radius:9px;margin-top:7px;background:#fff;color:#152c42}input[type=checkbox]{display:inline;width:auto;margin:0 8px 0 0}textarea{min-height:80px;resize:vertical}#app{display:grid;grid-template-columns:270px 1fr;min-height:100vh}#app[hidden]{display:none}aside{background:white;border-right:1px solid #dde5eb;padding:24px;position:sticky;top:0;height:100vh}#identity{margin:24px 0;line-height:1.7}nav{margin:24px 0}nav button{display:block;width:100%;text-align:left;margin:6px 0;background:transparent;color:#304a60}nav button.active{background:#e1f3fe;color:#0079bf}aside>button{display:block;width:100%;margin-top:10px}main{max-width:1250px;width:100%;padding:28px 38px}header{display:flex;justify-content:space-between;align-items:center}#connection{font-size:12px;color:#207449}#tabs{display:flex;gap:8px;margin:22px 0}#tabs button{background:white;color:#486176}#tabs .active{background:#008fe2;color:white}.card{background:white;border:1px solid #e0e8ef;border-radius:15px;padding:19px;margin:12px 0;line-height:1.6}.card h3{margin:4px 0 10px}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}.badge{display:inline-block;padding:3px 10px;border-radius:7px;background:#e7f3ff;font-size:12px;font-weight:600;color:#006fb3}.high{background:#ffeded;color:#b62d34}.done{background:#e6f7e9;color:#237439}.message{max-width:80%;background:white;border-radius:14px;padding:13px 17px;margin:12px 0;border:1px solid #e1e8ee;white-space:pre-wrap;overflow-wrap:anywhere}.message.mine{margin-left:auto;background:#ddf2fe}.meta{font-size:12px;color:#64778a;margin-bottom:7px}.chatlog{height:calc(100vh - 350px);min-height:240px;overflow:auto;padding:5px 10px}.composer{background:white;border-radius:15px;padding:14px}.composer textarea{margin:0 0 10px;min-height:65px}.composer input[type=file]{font-size:12px;max-width:270px;border:0;padding:0}#notice{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#142e46;color:white;border-radius:12px;padding:14px 22px;z-index:10;display:none;max-width:90%}dialog{border:0;border-radius:20px;max-width:650px;width:94%;max-height:90vh;padding:25px;box-shadow:0 20px 90px #0003}dialog::backdrop{background:#122b4666}dialog h2{font-size:24px}.empty{text-align:center;color:#718599;padding:70px 20px}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin:15px 0}.calendar button{background:white;color:#29435b;min-height:54px;padding:8px}.calendar .selected{background:#008fe2;color:white}.calendar .dow{text-align:center;color:#718599;padding:8px}.dot{display:block;font-size:10px}.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.toolbar input,.toolbar select{width:auto;max-width:220px}.file{color:#0076b8;background:#e9f4fd;margin:7px 0}.history{border-left:3px solid #c7e6fa;padding:8px 15px;margin:7px 0;font-size:13px}@media(max-width:750px){#app{grid-template-columns:1fr}aside{height:auto;position:static;padding:15px}aside h1{margin:0}nav{display:flex;overflow:auto;margin:10px 0}nav button{white-space:nowrap;width:auto}#identity{margin:5px 0}aside>button{display:inline-block;width:auto}aside .fine{display:none}main{padding:18px}.chatlog{height:45vh}header{align-items:flex-start}}

.password-field{display:flex;gap:8px;align-items:center;margin-bottom:18px}.password-field input{margin:0;min-width:0;flex:1}.password-field button{flex-shrink:0}

.warehouse-group{margin:12px 0}.group-heading{font-weight:700;padding:10px 16px;color:#304a60}.group-sections{margin-left:16px;padding-left:8px;border-left:2px solid #dceaf4}nav .new-group{color:#0079bf;border-top:1px solid #e0e8ef;border-radius:0;margin-top:16px;padding-top:16px}.member-list{border:1px solid #dce5ed;border-radius:12px;padding:8px 16px;max-height:280px;overflow:auto}aside{overflow-y:auto}@media(max-width:750px){#rooms{display:block;max-height:260px;overflow:auto}#rooms button{width:100%;white-space:normal}.warehouse-group{margin:4px 0}}

.group-row{display:flex;align-items:center;gap:2px}.group-row>button[data-room]{flex:1;min-width:0;overflow-wrap:anywhere}.group-row .collapse{flex:0 0 30px;width:30px;padding:10px 4px}.group-sections[hidden]{display:none}#groupSettings,#newSubgroup{margin:12px 8px 0 0}nav button{overflow-wrap:anywhere}

nav button[data-room]{display:flex;align-items:center;justify-content:space-between;gap:8px}.unread{display:inline-block;flex-shrink:0;min-width:23px;padding:3px 7px;border-radius:20px;background:#008fe2;color:white;font-size:12px;text-align:center}.danger{background:#b8323a;color:white}#deleteGroup{margin:18px 0}#modal ul{max-height:180px;overflow:auto}

#roomSound,#enableSound{margin:12px 8px 0 0}

#content.file-drag{outline:3px dashed #008fe2;outline-offset:5px;background:#e1f3fe;border-radius:14px}#attachmentPreview:not(:empty){padding:10px 0;overflow-wrap:anywhere}

.avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;flex-shrink:0}.initials{display:inline-flex;align-items:center;justify-content:center;background:#def1fc;color:#0079bf;font-size:13px}.profile-link{display:inline-flex;gap:9px;align-items:center;background:transparent;color:inherit;text-align:left;padding:0;font-weight:600}.profile-link small{display:block;font-weight:400}.meta{display:flex;align-items:center;gap:8px;white-space:normal;flex-wrap:wrap}.later-link{background:transparent;color:#577389;font-size:11px;padding:8px 0 0;font-weight:400}.person-choice{display:flex;align-items:center;gap:10px;width:100%;margin:8px 0}.profile-photo .avatar{width:80px;height:80px;margin:15px 0}.highlight-message{outline:2px solid #008fe2}#personal{width:100%}

#photoCrop{margin:18px 0;padding:15px;background:#f4f8fc;border-radius:14px}#photoCanvas{display:block;width:260px;max-width:100%;height:auto;aspect-ratio:1;border-radius:50%;margin:10px auto;cursor:grab;touch-action:none;box-shadow:0 0 0 3px #008fe2}#photoCanvas:active{cursor:grabbing}#photoZoom{padding:0;accent-color:#008fe2}#adjustPhoto{margin-top:12px}#photoZoomValue{float:right}

.message-actions{display:flex;gap:15px}.quote{display:block;text-align:left;width:100%;border-left:3px solid #008fe2;border-radius:5px;background:#eaf3f8;color:#3d5b70;padding:8px 12px;margin:8px 0;font-size:12px;font-weight:400;white-space:normal}.reply-draft{display:flex;gap:10px;align-items:center;justify-content:space-between;background:#edf6fb;border-left:3px solid #008fe2;padding:10px;margin-bottom:10px;font-size:12px}.mention-link{display:inline;padding:0 3px;color:#0079bf;background:#e2f3fd;font-size:inherit}#globalSearch{margin:12px 0}

.attachment-input[hidden]{display:none}
.composer-actions{--control-size:44px;--control-gap:8px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}
.composer-tools{display:flex;gap:var(--control-gap)}
.composer-icon{display:inline-flex;align-items:center;justify-content:center;width:var(--control-size);height:var(--control-size);padding:0;flex-shrink:0;font-size:23px;line-height:1}
.composer-send{width:calc(2 * var(--control-size) + var(--control-gap));height:var(--control-size);padding:0 8px;flex-shrink:0}
.composer-icon svg,.attachment-picker svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.attachment-picker{display:inline-flex;align-items:center;gap:8px}
.request-attachment{margin:18px 0}.request-attachment>small{display:block;margin:8px 0}
#requestAttachmentPreview:not(:empty){padding:10px 0;overflow-wrap:anywhere}.file{max-width:100%;overflow-wrap:anywhere}
.pdf-viewer{width:94vw;max-width:1200px;height:90vh;height:90dvh;max-height:94vh;padding:0;overflow:hidden;border-radius:16px}
.pdf-viewer[open]{display:flex;flex-direction:column}
.pdf-toolbar{padding:12px 16px;border-bottom:1px solid #dde5eb;gap:16px;flex-shrink:0}
.pdf-toolbar h2{font-size:17px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pdf-actions{display:flex;gap:8px;flex-shrink:0}#pdfClose{font-size:24px;padding:6px 14px}
#pdfFrame{display:block;width:100%;flex:1;min-height:0;border:0;background:#e5e9ed}
@media(max-width:500px){.pdf-viewer{width:98vw;height:94vh;height:94dvh}.pdf-toolbar{padding:8px;gap:8px}.pdf-toolbar h2{font-size:14px}.pdf-actions button{padding:8px 10px}}

#personal{display:flex;align-items:center;justify-content:space-between;gap:10px}
#personal .personal-count{background:#008fe2;color:white}
#personal.has-items{box-shadow:inset 0 0 0 1px #ccecff}

.brand{display:flex;align-items:center;gap:9px;white-space:nowrap}.brand img{width:43px;height:43px;object-fit:contain}
.pdf-navigation{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;padding:8px;border-bottom:1px solid #d7e0e8;flex-shrink:0}.pdf-navigation button{padding:6px 12px;min-height:34px}.pdf-navigation output{min-width:65px;text-align:center;font-size:14px}
#pdfPages{flex:1;min-height:0;overflow:auto;background:#e5e9ed;padding:16px;overscroll-behavior:contain}
#pdfCanvas{display:block;margin:0 auto;background:white;box-shadow:0 2px 12px #182b4430}#pdfCanvas[hidden]{display:none}
#pdfStatus{margin:12px 0;text-align:center;color:#435b70}#pdfStatus:empty{display:none}

.chat-photo{display:block;padding:0;margin:10px 0 4px;border-radius:12px;overflow:hidden;background:#e5edf4;max-width:min(420px,100%);min-width:180px;min-height:140px;text-align:center;color:#46647a;white-space:normal;position:relative}
.chat-photo img{display:block;max-width:100%;max-height:320px;object-fit:contain;margin:auto;min-height:100px}.chat-photo:not(.photo-ready) img{display:none}.photo-loading{display:block;padding:30px 12px;font-size:13px}
.photo-viewer{width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:0;border-radius:0;background:#122033;color:#f4f8fc}
.photo-viewer[open],.sheet-viewer[open]{display:flex;flex-direction:column}
.gallery-toolbar{padding:14px 20px;gap:16px;border-bottom:1px solid #ffffff20;flex-shrink:0;flex-wrap:wrap}.gallery-toolbar>div:first-child{min-width:0;flex:1 1 180px}.gallery-toolbar .pdf-actions{flex-wrap:wrap;max-width:100%;margin-left:auto}.gallery-toolbar h2{font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gallery-toolbar small{color:#becddd}
.gallery-controls{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px;flex-shrink:0}.gallery-controls output{min-width:65px;text-align:center}.gallery-controls button{min-width:42px}.gallery-divider{width:1px;height:24px;margin:0 8px;background:#ffffff30}
.photo-viewer .secondary{background:#273a50;color:#fff}.photo-viewer .secondary:disabled{cursor:default}.photo-viewer #galleryStatus{margin:8px 16px;text-align:center}.photo-viewer #galleryStatus:empty{display:none}
#photoStage{flex:1;min-height:0;overflow:auto;touch-action:none;overscroll-behavior:contain;cursor:grab;display:flex;padding:16px}#photoStage:active{cursor:grabbing}#galleryImage{display:block;flex:none;max-width:none;max-height:none;object-fit:contain;margin:auto;user-select:none}#galleryImage[hidden]{display:none}
.sheet-viewer{width:96vw;max-width:1500px;height:92vh;height:92dvh;max-height:96vh;padding:0;overflow:hidden}.sheet-controls{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:8px 16px;flex-wrap:wrap;border-bottom:1px solid #dce6ed}.sheet-controls label{display:flex;align-items:center;gap:10px;margin:0}.sheet-controls select{min-width:160px;width:auto;max-width:300px;margin:0}.sheet-controls button{padding:6px 14px}#sheetStatus{margin:10px 16px;color:#64778a}#sheetStatus:empty{display:none}
#sheetTable{flex:1;min-height:0;overflow:auto;background:white;overscroll-behavior:contain}.spreadsheet-table{border-collapse:separate;border-spacing:0;font-size:13px;min-width:100%;table-layout:auto}.spreadsheet-table th,.spreadsheet-table td{padding:8px 12px;border-right:1px solid #dfe7ef;border-bottom:1px solid #dfe7ef;white-space:pre-wrap;min-width:100px;max-width:450px;overflow-wrap:anywhere;vertical-align:top}.spreadsheet-table th{background:#edf4f9;color:#486176;min-width:48px;font-weight:600}.spreadsheet-table thead th{position:sticky;top:0;z-index:2}.spreadsheet-table tbody th{position:sticky;left:0;z-index:1}.spreadsheet-table tbody tr:nth-child(even) td{background:#f9fbfd}
.file-sections{display:flex;gap:8px;margin:12px 0 22px;flex-wrap:wrap}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}.photo-card{background:white;border:1px solid #dde6ee;border-radius:14px;overflow:hidden;min-width:0}.photo-card .chat-photo{border-radius:0;width:100%;max-width:none;height:190px;margin:0}.photo-card .chat-photo img{width:100%;height:100%;max-height:none;object-fit:cover}.photo-card-caption{padding:12px;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere;font-size:13px}.photo-card-caption .later-link{text-align:left}.document-card{display:flex;align-items:center;justify-content:space-between;gap:16px}.document-card>div{min-width:0}.document-card h3{margin:8px 0;overflow-wrap:anywhere}
.completed-card{opacity:.52}.completed-card:focus-within,.completed-card:hover{opacity:.85}.completed-label{color:#237439;font-weight:600}.task-actions{margin:18px 0}.admin-chat-tree{list-style:none;padding-left:0}.admin-chat-tree .admin-chat-tree{padding-left:20px;border-left:2px solid #dceaf4}.admin-chat-row{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid #e4ebf1}.admin-chat-row>span{min-width:0;overflow-wrap:anywhere}.admin-chat-row .row{flex-shrink:0;gap:8px}.admin-chat-row button{padding:8px 12px}.delete-warning{background:#fff0f0;border-radius:12px;padding:14px;color:#8a2930}.confirm-error{color:#b62d34;min-height:1.5em}.admin-settings{max-width:850px}
@media(max-width:600px){.gallery-toolbar{padding:10px;gap:8px}.gallery-toolbar h2{font-size:14px}.gallery-toolbar small{font-size:11px}.gallery-toolbar button{padding:8px 10px}.gallery-controls{gap:4px}.gallery-controls button{padding:8px 10px;min-width:36px}.gallery-divider{margin:0 4px}.document-card{align-items:stretch;flex-direction:column}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.photo-card .chat-photo{min-width:0;height:150px}.admin-chat-row{align-items:flex-start;flex-direction:column}.sheet-controls{gap:10px}.sheet-controls select{max-width:220px}}

.deleted-label{background:#f0e7e8;color:#99505a;margin-right:8px}#deleteTask{margin:8px 0 16px}

#attachmentPreview{display:flex;gap:10px;flex-wrap:wrap;max-height:220px;overflow:auto}#attachmentPreview:not(:empty){padding:0 0 12px}.draft-attachment{display:flex;align-items:center;position:relative;gap:8px;border:1px solid #d9e6ef;border-radius:12px;padding:8px;max-width:260px;background:#f4f9fc}.draft-photo{display:block;width:110px;padding:6px}.draft-photo img{display:block;width:96px;height:76px;object-fit:cover;border-radius:7px}.draft-photo img[hidden]{display:none}.draft-file-caption{min-width:0;font-size:11px}.draft-file-caption span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:170px}.draft-file-caption small{font-size:10px}.draft-photo .draft-file-caption{padding-top:4px}.draft-photo button{position:absolute;top:2px;right:2px;width:24px;height:24px;padding:0;border-radius:50%;background:#183047e6;color:white;font-size:18px}.draft-file-icon{font-size:28px}.draft-fallback{display:block;height:76px;padding:24px 8px;text-align:center;color:#6a7d8f}.draft-fallback[hidden]{display:none}.message-attachments{display:flex;flex-direction:column;gap:6px;margin-top:8px;white-space:normal}.message-attachments.multiple-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:520px}.message-attachments.multiple-photos .chat-photo{min-width:0;width:100%;margin:0}.message-attachments.multiple-photos .chat-photo img{height:180px;width:100%;object-fit:cover}.message-attachments .file{text-align:left;grid-column:1/-1}.message-attachments .chat-photo{margin:0}

[hidden]{display:none!important}

.document-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px}.document-actions{display:flex;flex-direction:column;align-items:stretch;justify-self:end;gap:8px}.document-actions button{text-align:left;min-width:155px}
@media(max-width:480px){.document-card{grid-template-columns:minmax(0,1fr)}.document-actions{justify-self:end}}

#modal .admin-chat-tree{max-height:none;overflow:visible}

.admin-chat-row>.row{justify-content:flex-end;flex-wrap:wrap;max-width:75%}.member-list label{display:flex;align-items:flex-start;gap:8px}.member-list input[type=checkbox]{margin-top:3px;flex-shrink:0}.member-requirement{display:block;font-size:11px;margin-top:3px}@media(max-width:600px){.admin-chat-row>.row{max-width:100%;justify-content:flex-start}}

dialog:has(.admin-settings),dialog:has(.admin-employee-form),dialog:has(.admin-credentials){max-width:860px;padding:32px}
.admin-settings h2,.admin-employee-form h2{margin:0 0 24px}.admin-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}.admin-tabs button[aria-pressed=true]{background:#008fe2;color:white}
.admin-toolbar{display:flex;align-items:center;gap:16px;margin-bottom:20px}.admin-toolbar input{margin:0;min-width:0;flex:1}.admin-toolbar>button{flex-shrink:0}.admin-list{max-height:50vh;overflow:auto;padding-right:8px;margin-bottom:24px}
.admin-list .admin-chat-tree{margin:0}.admin-list .admin-chat-tree .admin-chat-tree{margin:0 0 8px 12px;padding-left:20px}.admin-list .admin-chat-row{padding:18px 4px;gap:24px;flex-direction:row;align-items:center}.admin-chat-row small{display:block;margin-top:5px;font-size:11px}.admin-list .admin-chat-row>.row{max-width:none;flex-wrap:nowrap;gap:8px}.admin-list .admin-chat-row>span{flex:1}
.admin-chat-row button.admin-icon{width:36px;height:36px;padding:8px;display:inline-flex;align-items:center;justify-content:center}.admin-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.admin-delete{background:transparent;color:#9a5360}.admin-delete:hover{background:#fff0f0}
.admin-employee-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 4px;border-bottom:1px solid #e4ebf1}.admin-employee-row>div{min-width:0;overflow-wrap:anywhere}.admin-employee-row small{display:block;margin-top:7px}.admin-role{font-size:12px;color:#64778a;flex-shrink:0}.employee-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 24px}.employee-form-grid label{min-width:0}
.employee-password{display:flex;align-items:center;gap:10px;margin-top:7px}.employee-password input{margin:0;min-width:0;flex:1}.employee-chat-picker{border-top:1px solid #e4ebf1;border-bottom:1px solid #e4ebf1;padding:18px 0;margin-top:24px}.employee-chat-picker summary{cursor:pointer;font-weight:600}.employee-chat-picker summary span{font-size:12px;color:#64778a;font-weight:400}.employee-chat-children{padding-left:24px;border-left:2px solid #e4ebf1;margin-left:5px}.employee-form-actions{margin:24px 0 16px}.admin-credentials h2{margin-top:18px}.admin-credentials{max-width:640px}.admin-credentials input[readonly]{background:#f6f9fc}
@media(max-width:600px){dialog:has(.admin-settings),dialog:has(.admin-employee-form),dialog:has(.admin-credentials){padding:22px}.admin-toolbar{align-items:stretch;flex-direction:column;gap:12px}.admin-list .admin-chat-row{gap:12px;align-items:flex-start;flex-direction:column}.admin-list .admin-chat-row>.row{align-self:flex-end}.admin-employee-row{align-items:flex-start;gap:10px;flex-direction:column}.employee-form-grid{grid-template-columns:1fr;gap:0}.admin-list{padding-right:0}.admin-tabs{gap:8px}.admin-tabs button{padding:10px 12px}.employee-form-actions>button{width:100%}}

.admin-chat-name{display:flex;align-items:center;gap:10px}.admin-chat-row button.admin-tree-toggle{background:transparent;color:#64778a;padding:4px;flex-shrink:0;width:24px;height:32px}.admin-chat-name>span{min-width:0}

.admin-chat-row .admin-protected{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;color:#8397a6;flex-shrink:0}
/* Daily workflow */
.chat-list-controls{display:flex;gap:5px;margin:12px 0 6px}.chat-list-controls button{font-size:11px;padding:7px 5px;flex:1}.chat-nav-item{display:flex;align-items:center;gap:2px}.chat-nav-item[hidden],.group-branch[hidden]{display:none}.chat-nav-item>[data-room]{flex:1;min-width:0}.chat-nav-item>.chat-favorite{padding:5px;background:transparent;color:#64819a;width:28px;flex:0}.favorite-chats{border-bottom:1px solid #d5e4ed;padding-bottom:10px;margin-bottom:10px}.favorite-chats small{display:block;padding:7px}.favorite-chats button{width:100%;text-align:left;background:#e5f2fa;color:#215b7e}.unread-divider{text-align:center;color:#007cc3;font-size:12px;padding:12px 0;display:flex;align-items:center;gap:10px}.unread-divider:before,.unread-divider:after{content:'';height:1px;flex:1;background:#c5e6fa}.message-reactions{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin-top:9px}.reaction{padding:4px 9px;background:#f0f5f9;color:#38566a;border:1px solid transparent;font-size:13px}.reaction.selected{border-color:#0097e6;background:#e3f4ff}.reaction-picker,.message-menu{position:relative}.reaction-picker summary,.message-menu summary{cursor:pointer;list-style:none;color:#54788e;padding:4px 9px;border-radius:8px;background:#edf4f8}.reaction-picker>div,.message-menu>div{position:absolute;background:white;border:1px solid #d3e0e9;box-shadow:0 8px 25px #17395122;border-radius:12px;padding:8px;z-index:8;min-width:190px;display:flex;gap:3px}.reaction-picker>div button{padding:7px;background:#f2f7fa;font-size:18px}.message-menu>div{flex-direction:column}.message-menu>div button{background:white;color:#245a78;text-align:left;padding:9px;font-size:13px}.message-menu>div button:hover{background:#edf6fb}.edited-label{font-size:10px;color:#708494}.chat-pins{margin-bottom:12px;border:1px solid #d5e3ee;border-radius:12px;padding:10px 14px;background:#fff}.chat-pins summary{cursor:pointer;color:#326781}.chat-pins>div{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:8px}.chat-pins>div>button:first-child{white-space:normal;text-align:left}.outbox-item{display:flex;justify-content:space-between;gap:12px;padding:12px;background:#fff4de;border-radius:12px;margin-bottom:10px}.outbox-item small{display:block;overflow-wrap:anywhere}.outbox-item button{align-self:center}.composer-tools{flex-wrap:wrap}.composer-actions{align-items:center}#voiceControls:empty{display:none}#voiceControls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}#voiceControls button{padding:9px;font-size:13px}.notification-list{display:grid;gap:8px}.notification-item{display:grid;gap:5px;text-align:left;background:#eaf5ff;color:#1c415a}.notification-item.seen{background:#f5f8fa}.notification-item span,.notification-item small{font-weight:400}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}.field-grid label{margin:0}.field-grid input,.field-grid select{width:100%}.field-grid input[type=checkbox]{width:auto}.filter-panel{margin:18px 0;background:#fff;border:1px solid #d8e6f0;border-radius:14px;padding:14px 18px}.filter-panel summary{cursor:pointer;font-weight:600;color:#2e6382}.filter-panel form{margin-top:14px}.filter-panel button{font-size:13px;padding:10px 14px}.task-workflow{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0}.task-workflow>button{padding:10px 14px;font-size:13px}.task-hold{width:100%;border-left:3px solid #d69a24;background:#fff6df;padding:12px 16px;border-radius:8px}.task-hold.blocked{border-color:#d06161;background:#fff0ed}.task-hold p{margin:7px 0}.driver-row{display:flex;align-items:end;gap:12px;margin:16px 0;flex-wrap:wrap}.driver-row label{min-width:220px;flex:1;margin:0}.driver-row select{width:100%}.request-actions{gap:10px}.employee-actions{position:relative;min-width:90px;font-size:13px}.employee-actions summary{cursor:pointer;color:#28617f}.employee-actions>div{display:flex;gap:8px;flex-wrap:wrap;padding-top:8px}.employee-actions button{padding:9px;font-size:12px}.employee-disabled{opacity:.65}.admin-employee-row{flex-wrap:wrap;gap:12px}.backup-row,.version-row{display:flex;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #e2eaf0;flex-wrap:wrap}.backup-row>span,.version-row>span{flex:1;min-width:180px}.backup-row small,.version-row small{display:block}#newFileVersion{margin-top:24px}audio{display:block;width:100%;margin:16px 0}.document-card>div:first-child{min-width:0}.document-card h3{overflow-wrap:anywhere}.document-actions .later-link{font-size:12px;padding:5px 0}.message-menu summary::-webkit-details-marker,.reaction-picker summary::-webkit-details-marker{display:none}
@media(max-width:650px){.field-grid{grid-template-columns:1fr}.composer-tools{gap:5px}.composer-tools .composer-icon{width:38px;height:38px}.composer-send{min-width:100px!important;width:auto!important}.driver-row{display:block}.driver-row>button{margin-top:8px}.document-card{gap:12px}.chat-pins>div{align-items:start}.admin-tabs{flex-wrap:wrap}.employee-actions{width:100%}}
.direct-chats{border-top:1px solid #dce8ef;margin-top:14px;padding-top:12px}.direct-heading{padding:4px 8px 8px;display:flex;flex-direction:column;gap:5px;color:#355b72}.direct-heading .later-link{padding:4px 0;font-size:12px;text-align:left}.direct-chats [data-room] small{display:block;font-size:10px;font-weight:400}.person-choice[hidden]{display:none}.person-choice>span{display:flex;flex-direction:column;text-align:left}.person-choice small{font-size:12px;font-weight:400}.file-version-label{color:#637e8f;font-size:11px}.message-attachments .file-version-label{grid-column:1/-1}

.message-input-wrap{position:relative;margin-bottom:10px}.composer .message-input-wrap textarea{resize:none;margin:0;display:block;padding-right:38px;min-height:66px}.message-resize-handle{position:absolute;right:4px;top:4px;width:28px;height:28px;padding:5px;background:transparent;color:#7b91a2;border-radius:6px;cursor:ns-resize;touch-action:none}.message-resize-handle:hover,.message-resize-handle:focus-visible{background:#e4f2fb;color:#007cc3}.message-resize-handle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.message-input-wrap.resizing{user-select:none}

/* Message controls: actions at the top right, reactions at the bottom left. */
.message{position:relative;touch-action:manipulation}
.message>.meta{padding-right:40px;min-height:32px}
.message>.message-menu{position:absolute;top:10px;right:12px}
.message-menu>summary{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;font-size:20px;line-height:1;background:transparent}
.message-menu>summary:hover,.message-menu[open]>summary{background:#edf4f8}
.message-menu>div{top:calc(100% + 4px);right:0;left:auto;white-space:normal}
.message-actions{align-items:center;flex-wrap:wrap;gap:8px 15px;margin-top:10px;white-space:normal}
.message-actions>.message-reactions{margin-top:0;margin-right:auto}
.message-actions>.later-link{padding:5px 0}
.reaction-picker>summary{display:flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;padding:4px 8px}
.reaction-picker>div{bottom:calc(100% + 6px);left:0;min-width:0;width:max-content;white-space:normal}
.reaction-picker>div button{min-width:34px}
.reaction-picker>summary:focus-visible,.message-menu>summary:focus-visible{outline:2px solid #008fe2;outline-offset:2px}

.delete-direct{font-size:12px;padding:9px 12px;margin-left:12px;flex-shrink:0}
.delete-direct[hidden]{display:none}
@media(hover:hover) and (pointer:fine){
 .chat-nav-item>.chat-favorite{opacity:0;pointer-events:none;transition:opacity .15s}
 .chat-nav-item:hover>.chat-favorite,.chat-nav-item:focus-within>.chat-favorite{opacity:1;pointer-events:auto}
}
