:root{color:#172033;background:#eef1f5;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{color:#fff;cursor:pointer;background:#195fd7;border:0;border-radius:6px;min-height:40px;padding:0 14px}button:disabled{cursor:not-allowed;background:#aab2c0}input,textarea,select{color:#172033;background:#fff;border:1px solid #cdd5df;border-radius:6px;width:100%;min-height:40px;padding:8px 10px}textarea{resize:vertical}label{gap:8px;font-size:14px;font-weight:600;display:grid}h1,h2,p{margin:0}h1{font-size:28px;line-height:1.2}h2{font-size:15px}.login-shell{place-items:center;min-height:100vh;padding:24px;display:grid}.login-panel{background:#fff;border:1px solid #dfe5ed;border-radius:8px;gap:18px;width:min(420px,100%);padding:28px;display:grid;box-shadow:0 18px 50px #27364f1f}.eyebrow{color:#667085;letter-spacing:.08em;text-transform:uppercase;margin-bottom:6px;font-size:12px;font-weight:700}.form-error{color:#a11919;background:#fff1f1;border:1px solid #ffc9c9;border-radius:6px;padding:10px 12px}.muted{color:#697586}.app-shell{min-height:100vh}.topbar{background:#fff;border-bottom:1px solid #d9e0ea;justify-content:space-between;align-items:center;gap:16px;min-height:58px;padding:0 24px;display:flex}.topbar div{align-items:center;gap:12px;display:flex}.nav-tabs{align-items:center;gap:6px;display:flex}.nav-button{color:#253347;background:0 0;border:1px solid #0000;min-height:34px}.nav-button.active{color:#195fd7;background:#eef4ff;border-color:#cdd5df}.workspace{width:min(1180px,100%);margin:0 auto;padding:28px 24px 48px}.chat-workspace{width:min(1600px,100%);padding:20px 20px 32px}.section-heading{justify-content:space-between;align-items:end;gap:16px;margin-bottom:20px;display:flex}.chat-heading{margin-bottom:14px}.toolbar-form{background:#fff;border:1px solid #dfe5ed;border-radius:8px;grid-template-columns:minmax(180px,1.1fr) minmax(180px,1fr) auto;gap:10px;margin-bottom:14px;padding:14px;display:grid}.employee-list{gap:12px;display:grid}.employee-list-head,.employee-list-row{grid-template-columns:minmax(180px,1.4fr) minmax(180px,1.1fr) minmax(100px,.7fr) 96px 86px;align-items:center;gap:12px;display:grid}.employee-list-head{color:#697586;padding:0 14px;font-size:13px;font-weight:700}.employee-list-row{color:#172033;text-align:left;background:#fff;border:1px solid #dfe5ed;border-radius:8px;min-height:58px;padding:10px 14px}.employee-list-row:hover,.employee-list-row:focus-visible{background:#f8fbff;border-color:#9db8e8}.employee-row{background:#fff;border:1px solid #dfe5ed;border-radius:8px;gap:14px;padding:16px;display:grid}.employee-main{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;display:grid}.employee-fields{grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) 96px;align-items:center;gap:10px;display:grid}.row-actions{gap:8px;display:flex}.secondary-button{color:#253347;background:#fff;border:1px solid #cdd5df}.link-button{color:#195fd7;background:0 0;border:0;min-height:auto;padding:0}.icon-button{color:#253347;background:#fff;border:1px solid #d7dee8;border-radius:999px;place-items:center;width:38px;height:38px;min-height:38px;padding:0;line-height:1;display:inline-grid}.status{border-radius:999px;justify-content:center;align-items:center;min-height:32px;font-size:13px;font-weight:700;display:inline-flex}.status.active{color:#146b3a;background:#e6f7ee}.status.inactive{color:#697586;background:#f1f3f6}.accounts-block{border-top:1px solid #edf0f5;gap:10px;padding-top:14px;display:grid}.account-list{gap:8px;display:grid}.account-row{background:#f7f9fc;border-radius:6px;grid-template-columns:90px minmax(120px,1fr) minmax(120px,1fr) auto;align-items:center;gap:10px;min-height:36px;padding:8px 10px;display:grid}.account-form{grid-template-columns:120px minmax(160px,1fr) minmax(140px,1fr) minmax(180px,1fr) auto;gap:10px;display:grid}.modal-backdrop{z-index:20;background:#0f172a61;place-items:start center;padding:32px 24px;display:grid;position:fixed;inset:0;overflow:auto}.employee-dialog{background:#fff;border:1px solid #dfe5ed;border-radius:8px;gap:18px;width:min(1080px,100%);padding:20px;display:grid;box-shadow:0 24px 70px #17203333}.dialog-heading{justify-content:space-between;align-items:start;gap:16px;display:flex}.dialog-heading h2{font-size:22px;line-height:1.2}.employee-edit-form{background:#fbfcfe;border:1px solid #edf0f5;border-radius:8px;grid-template-columns:minmax(160px,1.1fr) minmax(180px,1fr) 130px 120px auto;align-items:end;gap:10px;padding:14px;display:grid}.checkbox-row{align-items:center;gap:8px;min-height:40px;padding-bottom:1px;display:flex}.checkbox-row input{width:18px;min-height:18px}.account-edit-list{gap:8px;display:grid}.account-edit-row{background:#f7f9fc;border-radius:6px;grid-template-columns:110px minmax(130px,1fr) minmax(120px,.9fr) minmax(160px,1fr) auto auto;align-items:center;gap:8px;padding:10px;display:grid}.external-chat-form{grid-template-columns:120px minmax(160px,1fr) minmax(180px,1fr) auto;gap:10px;display:grid}.chat-layout{grid-template-columns:280px minmax(0,1fr);gap:18px;min-height:calc(100vh - 158px);display:grid}.chat-space-list{align-content:start;gap:8px;min-width:0;display:grid}.chat-space-button{color:#172033;text-align:left;background:#fff;border:1px solid #dfe5ed;justify-items:start;gap:3px;min-height:76px;padding:11px 12px;display:grid}.chat-space-button.active{color:#174ea6;background:#eef4ff;border-color:#195fd7}.chat-space-button small{color:#697586}.chat-space-title,.chat-space-count,.chat-space-preview{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.chat-space-title{color:#174ea6;font-weight:800}.chat-space-preview{color:#526072;font-size:13px}.chat-panel{grid-template-rows:auto minmax(0,1fr) auto;gap:12px;min-width:0;min-height:0;display:grid}.chat-toolbar{z-index:8;background:#eef1f5;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding-bottom:6px;display:flex;position:sticky;top:58px}.segmented-control{background:#fff;border:1px solid #d0d7e2;border-radius:8px;display:inline-flex;overflow:hidden}.segmented-control button{color:#39465a;background:0 0;border:0;border-radius:0;min-height:38px;padding:8px 14px}.segmented-control button.active{color:#fff;background:#195fd7}.message-list{background:linear-gradient(#ffffffe0,#ffffffe0),#e8edf5;border:1px solid #dfe5ed;border-radius:8px;flex-direction:column;gap:8px;min-height:0;padding:12px 16px;display:flex;overflow-y:auto}.message-row{background:#fff;border:1px solid #d0d7e2d9;border-radius:8px;place-self:flex-start start;gap:6px;width:min(620px,78%);padding:8px 10px 6px;display:grid;position:relative;box-shadow:0 2px 10px #1720330d}.message-row.own{background:#eef6ff;border-color:#b8d2ff;align-self:flex-end}.message-row.deleted{opacity:.72;background:#f7f8fa}.message-date-divider{z-index:3;justify-content:center;padding:4px 0;display:flex;position:sticky;top:0}.message-date-divider span{color:#526072;background:#ffffffeb;border:1px solid #d0d7e2d1;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700}.message-topline{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;display:grid}.message-meta,.delivery-list,.message-footer{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.delivery-list{justify-content:flex-end}.message-footer{justify-content:space-between;gap:12px}.message-author{color:#182230;font-weight:800}.message-source-icon{color:#253347;background:#f1f5f9;border-radius:999px;justify-content:center;align-items:center;min-width:28px;min-height:28px;font-size:16px;line-height:1;display:inline-flex}.message-footer time{color:#697586;margin-right:auto;font-size:12px}.message-deleted-mark{color:#b42318;font-size:13px}.message-delete-button{color:#b42318;opacity:0;pointer-events:none;background:#fff1f0;border-radius:999px;flex:none;place-items:center;width:28px;height:28px;min-height:28px;padding:0;transition:opacity .15s,background .15s;display:inline-grid}.message-row:hover .message-delete-button,.message-delete-button:focus-visible{opacity:1;pointer-events:auto}.message-delete-button:hover{background:#ffe4e0}.message-delete-button svg{fill:currentColor;width:16px;height:16px}.message-text{color:#172033;white-space:pre-wrap;line-height:1.42}.message-attachments{gap:8px;display:grid}.attachment-card{color:#172033;text-align:left;background:#fbfcfe;border:1px solid #dfe5ed;border-radius:8px;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:10px;max-width:520px;min-height:64px;padding:8px;display:grid}.attachment-card:hover{background:#f6f9fd;border-color:#b8c7dc}.attachment-card.disabled{opacity:.76}.attachment-card.image{grid-template-columns:1fr;gap:7px;width:min(380px,100%);padding:7px}.attachment-preview,.attachment-icon{border-radius:6px;width:48px;height:48px}.attachment-preview{object-fit:cover;background:#eef2f7}.attachment-card.image .attachment-preview{aspect-ratio:4/3;object-fit:cover;width:100%;height:auto;max-height:280px}.attachment-card.image .attachment-icon{width:100%;height:180px}.attachment-icon{background:#eef4ff;justify-content:center;align-items:center;font-size:22px;display:inline-flex}.attachment-details{gap:3px;min-width:0;display:grid}.attachment-details span,.attachment-details small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.attachment-details small{color:#697586;font-size:12px}.attachment-error{color:#b42318}.attachment-action{color:#174ea6;background:#eef4ff;border-radius:6px;align-items:center;min-height:36px;padding:6px 10px;display:inline-flex}.delivery-pill,.delivery-indicator{color:#253347;background:#f1f5f9;border-radius:6px;align-items:center;gap:4px;min-height:24px;padding:3px 6px;font-size:12px;display:inline-flex}.delivery-provider-icon{color:#526072;background:#fff;border-radius:999px;place-items:center;width:17px;height:17px;font-size:11px;font-weight:800;display:inline-grid}.delivery-checks{color:#697586;letter-spacing:0;min-width:18px;font-weight:800}.delivery-indicator.sent .delivery-checks{color:#12805c}.delivery-indicator.failed .delivery-checks{color:#b42318}.delivery-indicator.cancelled .delivery-checks,.delivery-indicator.unknown .delivery-checks{color:#697586}.attachment-viewer-backdrop{align-items:center}.attachment-viewer{background:#fff;border:1px solid #dfe5ed;border-radius:8px;grid-template-rows:auto minmax(0,1fr);width:min(920px,100%);max-height:min(760px,100vh - 64px);display:grid;box-shadow:0 24px 70px #17203347}.attachment-viewer-heading{border-bottom:1px solid #edf0f5;justify-content:space-between;align-items:start;gap:16px;padding:14px 16px;display:flex}.attachment-viewer-heading div{gap:4px;min-width:0;display:grid}.attachment-viewer-heading strong,.attachment-viewer-heading small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.attachment-viewer-heading small{color:#697586}.attachment-viewer-body{background:#111827;place-items:center;min-height:280px;padding:16px;display:grid;overflow:auto}.attachment-viewer-image{object-fit:contain;border-radius:6px;max-width:100%;max-height:calc(100vh - 190px)}.attachment-file-preview{color:#172033;text-align:center;background:#fff;border-radius:8px;justify-items:center;gap:12px;width:min(420px,100%);padding:24px;display:grid}.attachment-file-icon{background:#eef4ff;border-radius:999px;place-items:center;width:58px;height:58px;font-size:28px;display:inline-grid}.attachment-file-preview a{color:#fff;background:#195fd7;border-radius:6px;align-items:center;min-height:38px;padding:0 14px;text-decoration:none;display:inline-flex}.message-form{z-index:7;background:#fff;border:1px solid #dfe5ed;border-radius:8px;grid-template-columns:minmax(0,1fr) minmax(180px,.28fr) auto;align-items:end;gap:10px;padding:14px;display:grid;position:sticky;bottom:12px;box-shadow:0 10px 30px #17203314}.message-form textarea{max-height:160px}.selected-file-name{color:#39465a;grid-column:1/-1;font-size:13px}@media (width<=860px){.topbar,.section-heading,.dialog-heading,.employee-main{flex-direction:column;align-items:stretch}.topbar,.topbar div,.section-heading{display:grid}.toolbar-form,.chat-layout,.employee-list-head,.employee-list-row,.employee-fields,.employee-edit-form,.account-row,.account-edit-row,.account-form,.external-chat-form,.message-form{grid-template-columns:1fr}.attachment-card{grid-template-columns:48px minmax(0,1fr);width:100%}.message-row{width:100%}.attachment-action{grid-column:1/-1}.row-actions{flex-wrap:wrap}}
