:root{--green:#168638;--muted:#626b65;--line:#e2e6e2;color:#202420;background:#f4f6f4}
body,input,select,textarea,button{font-weight:400;color:#202420}body{background:#f5f7f5}.muted,.hint{color:#626b65}.brand strong{font-size:23px;color:#229d43;font-weight:700}.brand-mark,.brand-mark.small{background:#24a546;border-color:#24a546;color:#fff}.version{color:#738075;font-size:12px;font-weight:400}.topbar{background:#fff;box-shadow:0 1px 3px #253a2410}.top-actions #who{font-size:13px;color:#697169;font-weight:400}.top-actions .ghost{color:#4d5e53;font-weight:500}.sync{color:#249b44;font-size:13px;font-weight:500}.sync.offline{color:#a35f1c}.ghost{color:#59675d}.primary{background:#168638;border:1px solid #168638;color:#fff;font-weight:600}.primary:hover{background:#11752e;border-color:#11752e}.primary:disabled,button:disabled{background:#e5e9e5;color:#68746a;border-color:#d5ded5;cursor:not-allowed}.accounts-panel{background:#f4f7f4}.section-heading,.tiny{color:#6b786e;font-weight:500}.section-heading{font-size:12px}.account-item{color:#2b4132}.account-item b{font-size:15px;font-weight:600;color:#273c2c}.account-item small{color:#758075;font-weight:400}.account-item.active{background:#e1f1e4}.account-item.active b{color:#168638}.account-icon{color:#1d9540}.account-actions button{color:#438251;font-weight:400;background:#edf4ed}.sidebar-footer,.sidebar-footer p{color:#6f7a70;font-weight:400}.chat-list-title h2{font-size:24px;font-weight:700;color:#1d211e}.chat-list-title button{color:#4c6452;font-weight:500}.search{border-color:transparent;background:#f2f3f2}.search input{font-size:15px;color:#323e35;font-weight:400}.search input::placeholder,.composer textarea::placeholder{color:#788178}.list-caption{color:#69786b;font-weight:400}.chat-row{border-left-width:4px;border-bottom:1px solid #f0f2ef;padding-top:16px;padding-bottom:16px}.chat-row.selected{background:#edf6ee;border-left-color:#27a348}.chat-summary b{font-size:17px;font-weight:650;color:#171d18}.chat-summary p{font-size:14px;font-weight:400;color:#626c64;line-height:1.6}.chat-summary time{font-size:12px;font-weight:400;color:#738175}.account-badge{color:#4f6854;font-weight:400;background:#edf3eb;font-size:11px}.customer-region{color:#57727c;font-size:13px;font-weight:500}.customer-list-meta span{font-weight:500;color:#42714b;background:#eef7ec;border-color:#d5e8d1}.customer-list-meta span:first-child{background:#e0f3df;color:#247335}.conversation{background:#f5f1e9}.conversation-header{background:#fff;border-bottom-color:#e1e6df}.conversation-header h2{font-size:19px;color:#171e19;font-weight:650}.conversation-header .muted{color:#6a746c;font-weight:400}.original-tag{color:#4f8258;font-weight:500;border-color:#d4e4d3;background:#f8fbf6}.translation-bar{background:#f7faf6;border-color:#e2e9df}.translation-bar label,.translation-bar .auto-translation{color:#647367;font-weight:400}.translation-bar #customer-language{color:#268541;font-weight:500}.translation-bar select{font-weight:500;background:#fff}.messages{background:radial-gradient(circle at 10px 10px,transparent 7px,#c6bea70b 8px,transparent 9px) 0 0/36px 36px}.bubble{background:#fff;border-color:#e6e5db;color:#1d241e;font-size:16px;font-weight:400;line-height:1.8;box-shadow:0 2px 3px #333b2210}.mine .bubble{background:#def7d4;border-color:#d3ebc8}.message-meta{color:#7c8377;font-size:12px;font-weight:400}.incoming-translation,.incoming-translation div{color:#24a546;font-size:16px;font-weight:500}.incoming-translation small{color:#65a16d;font-weight:400}.sent-original small,.sent-translation small{color:#647e5c;font-weight:500}.sent-original div{color:#42733f;font-size:15px}.sent-translation div{color:#182719;font-size:16px}.composer{background:white;border-color:#e0e5da;border-radius:15px;box-shadow:0 4px 15px #364b2b08}.composer textarea{font-size:16px;color:#1f2a21;font-weight:400}.sending-as{font-weight:400;color:#7c8776}.sending-as strong{color:#4d7046;font-weight:600}.sending-as #sending-state{color:#248d38}.attach,#quick-composer-toggle{font-weight:500;color:#268640}.composer-hint{color:#8a9483;font-weight:400}.composer-bottom .primary{margin-left:auto}.translation-tools button{background:#eef6eb;color:#378444;font-weight:500}.translation-tools span{color:#788a70;font-weight:400}.translation-preview label{color:#558147;font-weight:500}.translation-preview textarea{color:#29472b;font-weight:400}.translation-preview p{color:#7b8c72;font-weight:400}.send-warnings{color:#935720;background:#fff1d8;font-weight:500}.error{color:#ad4837}.avatar{background:#e9f3e3;color:#5d8257;font-weight:600}.customer-heading h2{color:#1b261d;font-weight:650}.customer-heading p{color:#758170;font-weight:400}.customer-panel label{font-weight:600;font-size:13px;color:#3b4b3d}.customer-panel input,.customer-panel textarea,.customer-panel select{font-weight:400;color:#273829;background:#fff}.customer-panel .hint{font-weight:400;color:#72816b}.customer-tag{font-weight:500;color:#4f7c47;background:#edf6e7}.customer-panel #customer-edit-state{color:#8a622f;font-weight:500}.customer-filters select{color:#49634b;background:#fff}.customer-panel #customer-archive{color:#3d7950;background:#edf5ec;font-weight:500}.customer-panel .primary{font-weight:600;color:#fff}.tools-heading,.tools-heading button,.quick-tabs button.active{color:#fff}.quick-card-heading strong{font-weight:650}.quick-card-text{font-weight:400;color:#616a64}.quick-card .primary{font-weight:500;color:white}.quick-toolbar button{font-weight:500}.quick-content>.hint{color:#7e8a7d}#toast{background:#e9f7e7;color:#2b723b;border-color:#9bc69b;font-weight:500}#translation-configured{color:#428643}#translation-test-result{color:#347742}.dialog-heading h2{font-weight:650;color:#202a21}dialog label{color:#526454;font-weight:500}.download-link{color:#fff;font-weight:600}.backup-card strong{color:#344b39;font-weight:600}.backup-warning{color:#8e571b}.empty-list,.empty-conversation p{color:#7d8a77;font-weight:400}.empty-conversation h2{color:#3b593e;font-weight:500}.feature-chips span{color:#78906f;font-weight:400}.load-more{color:#548a55;font-weight:500}

.chat-video{display:block;width:440px;max-width:100%;max-height:360px;border-radius:12px;background:#111}.media-download{display:block;margin:10px 0;font-weight:600;overflow-wrap:anywhere}.composer-bottom{flex-wrap:wrap}#file-preview{display:flex;align-items:center;flex-wrap:wrap;gap:12px}#file-preview[hidden]{display:none}

#file-preview{padding:10px 12px;margin:8px 0 12px;border:1px solid #d5e3d5;border-radius:12px;background:#f5faf4;align-items:center}#file-preview .attachment-thumbnail{display:block;flex:0 0 auto;width:112px;height:84px;object-fit:contain;border-radius:8px;background:#e6eae4;border:1px solid #d3ded1}#file-preview .attachment-details{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}#file-preview .attachment-details strong{color:#233626;overflow-wrap:anywhere}#file-preview .attachment-details .hint{font-size:13px;color:#526653}#file-preview button{flex:0 0 auto}

#file-preview{display:block;max-height:260px;overflow:auto}.attachment-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.attachment-summary{font-size:13px;color:#345437}.attachment-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:8px}.attachment-card{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid #d9e5d6;border-radius:9px;background:white;min-width:0}.attachment-card[data-state=sent]{background:#e8f6e5}.attachment-card[data-state=uncertain],.attachment-card[data-state=failed]{border-color:#c68d34;background:#fff6e7}#file-preview .attachment-card .attachment-thumbnail{width:80px;height:64px}.attachment-card button{padding:5px 8px;font-size:12px}

.quick-form-error{padding:10px 12px;background:#fff2e5;border:1px solid #d99955;border-radius:8px;color:#923f12;font-size:14px;line-height:1.6}.quick-form-error[hidden]{display:none}#quick-form .hint{font-size:13px;line-height:1.6}

.composer.attachment-drop-target{outline:3px dashed #23a247;outline-offset:-6px;background:#f1fbee}

.account-item .account-sync{font-size:12px;line-height:1.5;white-space:normal;color:#49664c;max-width:220px}.account-actions{flex-wrap:wrap;gap:6px}.history-sync-status{margin:0;padding:8px 20px;background:#eef7ec;color:#38633a;border-bottom:1px solid #dbe8d5;font-size:13px}.history-sync-status[hidden]{display:none}

.image-zoomable{cursor:zoom-in}.media-expand{margin:8px 0;padding:7px 12px;font-size:13px;font-weight:600}.media-viewer{width:min(1180px,96vw);max-width:96vw;max-height:94vh;padding:0;border:0;border-radius:12px;overflow:hidden}.media-viewer::backdrop{background:#000c}.media-viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:white}.media-viewer-controls{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.media-viewer-controls button,.media-viewer-download{font-size:13px;padding:7px 10px}.media-viewer-download{color:#176b42;text-decoration:underline}.media-viewer-stage{height:74vh;overflow:auto;background:#151815;padding:12px;display:flex;align-items:flex-start;justify-content:flex-start}.media-viewer-content{display:block;max-width:100%;max-height:calc(74vh - 24px);object-fit:contain;margin:auto;transform-origin:top left}.media-viewer-stage video{width:100%;height:100%}.media-viewer-hint{margin:0;padding:8px 16px;color:#546358;font-size:13px;background:#f5f8f3}@media(max-width:700px){.media-viewer-toolbar{align-items:flex-start;flex-direction:column}.media-viewer-controls{gap:4px}}
.members-dialog{width:min(800px,94vw);max-height:90vh}.members-tabs{display:flex;gap:10px;margin-bottom:16px}.members-body{display:grid;gap:12px}.member-card{padding:16px;border:1px solid #d8e1db;border-radius:12px;background:#f8faf8}.member-card h3{margin:0 0 6px}.member-card button{margin-top:8px}.member-choices{display:flex;flex-wrap:wrap;gap:12px;padding:12px 0}.member-choice{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0}.member-choice input{width:auto;min-width:18px;accent-color:#16873c}.member-edit{display:grid;gap:16px}.member-edit fieldset{padding:12px;border:1px solid #d8e1db;border-radius:8px}.member-edit label{margin:0}
.top-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px}.topbar{height:auto;min-height:72px;padding-top:10px;padding-bottom:10px}.top-actions>button{white-space:nowrap}
#workspace{height:100vh;display:flex;flex-direction:column}#workspace>.work-grid{height:auto;flex:1;min-height:0}.topbar{flex-shrink:0}.brand{flex-shrink:0}
.members-tabs>button{flex:1;width:auto;white-space:nowrap;justify-content:center;margin:0!important;min-height:46px}
.statistics-dialog{width:min(1200px,96vw);max-height:92vh}.statistics-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.statistics-filters label{flex:1;min-width:140px;margin:0}.statistics-filters>button{margin:0!important;width:auto!important;white-space:nowrap;min-height:44px}.statistics-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.statistics-card{padding:16px;background:#f1f8f2;border:1px solid #dbe8dc;border-radius:12px}.statistics-card>span{display:block;font-size:14px}.statistics-number{display:block;font-size:20px;font-weight:700;background:transparent;color:#111;text-decoration:underline;text-underline-offset:4px}.statistics-card>.statistics-number{font-size:30px}.statistics-table-wrap{overflow:auto}.statistics-table-wrap table{border-collapse:collapse;width:100%;white-space:nowrap}.statistics-table-wrap th,.statistics-table-wrap td{padding:12px;border-bottom:1px solid #dfe6df;text-align:left}.statistics-table-wrap th{background:#e9f3e9;color:#111}.statistics-table-wrap small,.statistics-customer small{display:block;margin-top:6px}.statistics-details{margin:16px 0;padding:16px;background:#f7faf7;border:1px solid #dce6dc;border-radius:12px}.statistics-customer{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #e0e8e0}.statistics-customer button{white-space:nowrap}.statistics-daily{margin-top:20px}.statistics-daily>summary{cursor:pointer;font-weight:600;padding:12px 0}@media(max-width:750px){.statistics-cards{grid-template-columns:repeat(2,1fr)}}
.account-item,.chat-row{transition:background-color .12s ease,box-shadow .12s ease}.account-item:hover{background:#dfedcb}.account-item.active{background:#cde4b9;box-shadow:inset 3px 0 #679642}.account-item.active:hover{background:#c3dda9}.chat-row:hover{background:#edf1ce}.chat-row.selected{background:#e1e9b6;border-left-color:#6d963f}.chat-row.selected:hover{background:#d7e3a5}.account-item:focus-visible,.chat-row:focus-visible{outline:2px solid #6d963f;outline-offset:-2px}@media(prefers-reduced-motion:reduce){.account-item,.chat-row{transition:none}}
.member-delete{color:#9a382e;background:#faeeeb;border:1px solid #e9c7c1;margin-top:12px}.member-delete:hover{background:#f2ddd8}
.account-icon{overflow:hidden;flex-shrink:0}.account-photo{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.member-card .member-inactive{color:#ad463f!important;font-weight:700!important}
.avatar{overflow:hidden}.customer-avatar-photo{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
