/* WhatsOleinik 0.9: readable, compact workspace with the established O&O identity. */
:root{--green:#165d4e;--ink:#203c36;--muted:#52645c;--border:#dce4e1;--mint:#e6f2eb;background:#f5f7fa;color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:14px}
body{background:#f5f7fa}button{font-size:13px;line-height:1.35;min-height:36px;padding:8px 12px;border-radius:8px;font-weight:600}button,input,select,textarea,summary{ -webkit-tap-highlight-color:transparent}button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid #165d4e;outline-offset:3px}input,select,textarea{font-size:14px;border-color:#a9b8b0;line-height:1.5}input::placeholder,textarea::placeholder{color:#63746c;opacity:1}small{font-size:12px;line-height:1.45}label{font-size:13px;color:var(--muted)}h1{font-size:24px;letter-spacing:-.65px}h2{font-size:19px}h3{font-size:15px}.icon{width:18px;height:18px}.shell{grid-template-columns:196px minmax(0,1fr);height:100dvh}.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}
.sidebar{padding:26px 14px 22px;background:#d6eadf}.brand{padding:0 4px 28px;gap:10px}.brand .monogram{font-size:24px;padding:10px 7px}.brand .brand-text{min-width:0}.brand strong{font-size:12px}.brand small{font-size:9px;letter-spacing:.8px;line-height:1.6}.nav-caption{font-size:10px;letter-spacing:1.4px;margin:10px 12px}.nav{font-size:14px;min-height:44px;margin:3px 0;padding:12px;gap:11px}.sidebar .nav.active{background:#b5d8c3;box-shadow:inset 3px 0 #165d4e}.side-bottom{padding:18px 4px 0}.side-bottom strong{font-size:13px}.side-bottom small{font-size:12px}.avatar{border-radius:12px;background:#edf2ef;color:#3b5d4d;font-size:13px;width:38px;height:38px}
.topbar{height:58px;padding:0 24px}.breadcrumb{font-size:13px}.top-actions{gap:10px}.top-actions>.ghost{min-width:36px;display:inline-flex;align-items:center;justify-content:center;padding:8px}.notification-button{gap:6px}#notification-count{font-size:12px;font-weight:700;background:#e6f2eb;color:var(--green);border-radius:12px;padding:2px 6px}.badge{font-size:12px;padding:4px 8px;color:#285743}.demo-strip{padding:6px 24px;font-size:12px;color:#715826;background:#fcf8ed;line-height:1.4;flex-shrink:0}.demo-strip span:last-child{white-space:nowrap}.page-heading{padding:22px 24px 18px;flex-shrink:0}.page-heading p{font-size:14px;color:var(--muted);line-height:1.5;margin-top:5px}.page-content{padding:0 24px 24px}.view-conversations .page-heading{padding:13px 24px;min-height:64px}.view-conversations .page-heading p{display:none}.view-conversations .page-heading h1{font-size:22px}.view-conversations #new-conversation{padding:9px 13px}.workspace{position:relative;grid-template-columns:304px minmax(0,1fr);margin:0 24px 20px;border-radius:14px;box-shadow:0 2px 7px #17372d04}.workspace>.inbox{min-width:0}.chat{display:flex;flex-direction:column;min-width:0;background:#f5f7fa;grid-template-rows:none}
.conversation-filters{gap:1px;padding:12px 10px 8px;border-bottom:1px solid var(--border);flex-shrink:0}.conversation-filters button{font-size:12px;color:var(--muted);padding:7px 8px;min-height:34px}.conversation-filters button.active{background:#e6f2eb;color:var(--green);font-weight:700}.inbox-controls{padding:12px;border-bottom:1px solid var(--border);flex-shrink:0}.search input{font-size:13px;background:#fff;min-height:38px;padding-top:8px;padding-bottom:8px}.search .icon{color:var(--muted)}.search-help{font-size:12px;line-height:1.45;color:var(--muted);margin:7px 0 0}.search-help:empty{display:none}.inbox-options{display:flex;align-items:center;gap:7px;margin-top:9px}.inbox-options select{font-size:12px;padding:8px 5px;min-width:0;flex:1;height:36px;border-color:var(--border)}.filter-toggle{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:7px 8px;font-size:12px;white-space:nowrap}.filter-toggle .icon{width:15px;height:15px}.filter-toggle[aria-expanded=true],.filter-toggle.has-filters{background:#e6f2eb;border-color:#91bba7;color:#165d4e}.filter-count{padding:1px 5px;background:#165d4e;color:white;border-radius:10px;font-size:11px}.advanced-filters{padding-top:2px}.extra-filters{gap:8px;margin-top:10px}.extra-filters select,.extra-filters input{padding:8px 6px;font-size:12px;min-height:36px}.advanced-filters .text-button{margin-top:5px;font-size:12px;color:#165d4e}.chat-list{min-height:0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b9c8c0 transparent}
.chat-card{border-top:0;border-bottom:1px solid #e9eeec;border-left:3px solid transparent}.chat-card.active{background:#edf5f0;border-left-color:#165d4e}.chat-card .chat-item{padding:14px 12px;gap:10px;font-weight:400}.chat-card .chat-item:hover{background:#f2f7f4}.chat-card.active .chat-item:hover{background:#e6f1e9}.chat-row strong{font-size:14px;font-weight:650;line-height:1.35}.chat-row time{font-size:12px;color:#52645c;white-space:nowrap;font-variant-numeric:tabular-nums}.chat-metadata{display:flex;align-items:center;gap:5px;margin-top:8px;min-width:0}.chat-metadata .badge{font-size:11px;line-height:1.35;padding:3px 5px;overflow:hidden;text-overflow:ellipsis;display:block;min-width:0;max-width:120px}.chat-metadata .unread{margin-left:auto;flex-shrink:0}.agent-badge{font-size:11px;line-height:1.35;gap:5px;padding:3px 7px;border-radius:6px;color:var(--agent-color);background:color-mix(in srgb,var(--agent-color) 9%,white);white-space:nowrap;max-width:130px;overflow:hidden;text-overflow:ellipsis;flex-shrink:0}.agent-badge::before{content:"";width:5px;height:5px;flex-shrink:0;border-radius:50%;background:var(--agent-color)}.chat-summary .last-message{font-size:13px;font-weight:400;color:var(--muted);margin:8px 0 0;line-height:1.5}.unread{min-width:19px;width:auto;height:19px;padding:0 5px;line-height:19px;border-radius:12px;font-size:11px}.search-snippet{font-size:13px;color:#3d564a;margin-top:8px}.match-caption{font-size:12px;color:var(--muted)}.pending-actions{padding:0 12px 12px 59px}.pending-actions button{font-size:12px;min-height:34px;padding:7px}.pending-actions .icon{width:15px;height:15px}
.chat-header{padding:12px 16px;min-height:72px;gap:10px;flex-shrink:0;flex-wrap:nowrap}.chat-header .person{gap:10px;flex:1;min-width:0}.chat-header .person>div:last-child{min-width:0}.chat-header h3{font-size:15px;font-weight:650;margin-bottom:3px}.chat-header small{font-size:12px;color:var(--muted)}.chat-header button{font-size:12px;min-height:34px;padding:7px 9px}.chat-header .icon-button{width:34px}.chat-header .actions{margin-left:auto;gap:5px}.presence-line{background:#fff;padding:0 16px 8px;font-size:12px;color:var(--muted)}.presence-line:has(span:empty){display:none}.messages{padding:18px 20px;gap:12px;min-height:0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b9c8c0 transparent}.day{font-size:12px;color:var(--muted);margin:0 0 6px}.bubble{position:relative;max-width:88%;padding:12px 38px 9px 14px;font-size:15px;line-height:1.55;background:#fff;border:1px solid #dce4e1;border-radius:2px 12px 12px 12px;box-shadow:0 1px 2px #17372d04;flex-shrink:0}.bubble.out{background:#e6f2eb;border-color:#cde1d5;border-radius:12px 2px 12px 12px}.bubble.note{background:#fff7df;border-color:#ead8a3}.bubble footer{font-size:12px;line-height:1.3;color:var(--muted);margin-top:6px;gap:6px}.bubble .author{font-size:12px;line-height:1.5;color:#385f4c;margin:0 0 4px}.system-message{font-size:12px;color:var(--muted);line-height:1.5;margin:2px 0}.bubble.transfer-observation{padding-right:14px}.observation-title{font-size:13px}.transfer-observation .author,.transfer-observation footer{color:#665078}.reactions{margin-top:5px}.reaction-chip{font-size:14px}.reply-context{font-size:13px;line-height:1.5;background:#edf4f0;border-left-color:#4b8c70;white-space:pre-wrap;border-radius:4px}.bubble.out .reply-context{background:#d9ebdf}
.action-menu{display:inline-block;white-space:normal;text-align:left}.action-menu>summary{display:flex;align-items:center;justify-content:center;cursor:pointer;list-style:none;border:1px solid var(--border);border-radius:8px;color:#52645c;width:34px;height:34px;background:#fff}.action-menu>summary::-webkit-details-marker{display:none}.action-menu>summary svg{width:20px;height:20px;fill:currentColor}.action-menu>summary:hover,.action-menu[open]>summary{background:#e6f2eb;color:#165d4e}.action-popover{position:fixed;z-index:30;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 28px #17372d25;padding:5px;min-width:190px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;display:flex;flex-direction:column;gap:2px;white-space:normal}.action-menu:not([open])>.action-popover{display:none}.action-popover button,.action-popover .forward-button{display:flex;align-items:center;gap:8px;min-height:36px;border:0;background:#fff;text-align:left;font-size:13px;color:var(--ink);font-weight:500;padding:8px 10px;width:100%;margin:0;text-decoration:none;white-space:nowrap;border-radius:6px}.action-popover button:hover{background:#edf5f0}.message-menu{position:absolute;right:5px;top:5px}.message-menu>summary{width:27px;height:26px;min-height:26px;border-color:transparent;background:transparent;color:#64786d}.message-menu>summary svg{width:18px;height:18px}.message-search{padding:10px 16px;background:#edf4f0}.message-search input{font-size:14px}.search-navigation span{font-size:12px;color:var(--muted)}.search-navigation button{min-height:30px;font-size:14px}
.composer{padding:10px 16px 12px;flex-shrink:0;background:white}.compose-tabs{gap:3px;align-items:center;margin:0 0 7px;flex-wrap:wrap}.compose-tabs button{font-size:12px;padding:6px 9px;min-height:30px;color:var(--muted);display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.compose-tabs button.active{background:#e6f2eb;color:#165d4e}.compose-tabs .icon{width:14px;height:14px}.compose-tabs #quick-reply{margin-left:auto}.composer textarea{font-size:15px;line-height:1.5;border:1px solid #a9b8b0;background:#fff;border-radius:9px;padding:9px 11px;min-height:44px;max-height:136px;resize:none;display:block}.composer-bottom{gap:7px;margin-top:7px;flex-wrap:wrap}.compose-tools{gap:2px;flex:1;min-width:0}.compose-tools .tool-button{width:34px;height:34px;min-height:34px;padding:8px;color:#52645c;border:0;flex-shrink:0}.signature-option{display:inline-flex;align-items:center;gap:5px;margin:0 0 0 6px;color:var(--muted);font-size:12px;font-weight:500;white-space:nowrap}.signature-option input{width:14px;height:14px;margin:0;accent-color:#165d4e}.composer-bottom>small{display:none}.composer-bottom>button{display:inline-flex;align-items:center;gap:6px;font-size:13px;min-height:36px;white-space:nowrap;padding:8px 12px}.composer-bottom>button .icon{width:16px;height:16px}.reply-draft{font-size:13px;border-radius:6px;margin-bottom:7px;gap:10px;line-height:1.4}.reply-draft span{overflow:hidden;max-height:55px}.reply-draft button{min-width:30px;min-height:30px;padding:4px}.emoji-panel input{font-size:13px}.emoji-categories button{font-size:12px}.media-title,.document-card strong,.contact-card-heading strong{font-size:14px}.media-tools,.document-card small,.contact-card-heading small,.deleted-label,.forwarded-label,.file-status,.contact-card-actions button,.open-document,.image-preview span{font-size:12px;color:var(--muted)}.contact-card-actions .primary{color:white}.bubble:has(.inline-media),.bubble:has(.image-preview){width:min(100%,370px);max-width:100%}.shared-contact{min-width:0}.bubble .document-card{padding:10px}.bubble .document-card>span{min-width:0}.inline-media audio{min-width:0;width:100%}.transcript small{font-size:12px}
.workspace>.details{display:block;position:absolute;top:0;bottom:0;right:0;z-index:15;width:300px;max-width:100%;padding:18px;background:#fff;border-left:1px solid var(--border);box-shadow:-8px 0 24px #17372d12}.details-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:18px}.details-heading h3{font-size:15px;margin:0}.details-heading button{width:32px;height:32px;min-height:32px;margin:0;padding:4px;font-size:20px}.details label{font-size:12px;color:var(--muted)}.details p,.details button{font-size:13px}.details .detail-hint{font-size:12px!important;color:var(--muted)}.details .agent-badge{font-size:12px}.no-selection{grid-column:2/-1;padding:24px}.no-selection p{font-size:14px}.no-selection h2{font-size:19px}.no-selection .icon{width:32px;height:32px}
.card{padding:22px;border-radius:12px}.card p,.steps,.progress-list,.plain-list p{font-size:14px;color:var(--muted)}.card small,.table-wrap td small{font-size:12px;color:var(--muted)}.card button{font-size:13px}.table-wrap{border-radius:12px}table{font-size:14px}th{font-size:12px;font-weight:600;letter-spacing:.3px;color:var(--muted);padding:13px 16px;background:#f8faf9}td{padding:14px 16px;line-height:1.5}td strong{margin:0;font-weight:600}td button{font-size:12px;white-space:nowrap;min-height:34px;padding:7px 10px}.contacts-page table{min-width:730px}.contacts-page td:first-child{min-width:160px}.contacts-page td:nth-child(2),.contacts-page td:nth-child(3),.contacts-page td:last-child{white-space:nowrap}.contacts-page td:nth-child(4){min-width:135px}.contacts-page td:last-child{width:130px}.contacts-title{font-size:17px;margin-bottom:15px}.saved-contact{padding:16px;gap:18px}.saved-contact strong{font-size:14px}.saved-contact small{font-size:12px;margin-top:5px}.saved-contact button{font-size:13px;white-space:nowrap}.dashboard-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.dashboard-card{padding:20px;min-height:146px;border-radius:12px;box-shadow:0 1px 3px #17372d04}.dashboard-card>span{font-size:13px;color:var(--muted);gap:8px}.dashboard-card .icon{width:24px;height:24px;padding:3px;border-radius:6px;background:#e6f2eb;color:#165d4e}.dashboard-card>strong{font-size:34px;line-height:1.2;margin:14px 0 9px;color:#203c36}.dashboard-card>small{font-size:12px;color:var(--muted)}.dashboard-pending .icon{background:#fff0ce;color:#8b5b0b}.dashboard-closed .icon{background:#edf1f5;color:#475569}.dashboard-agenda .icon{background:#f0eafa;color:#6d469a}.dashboard-caption{font-size:13px;color:var(--muted)}.notice{font-size:13px;color:#725a2c;line-height:1.6}.empty{font-size:14px;color:var(--muted)}.modal-head{padding:20px}.modal-body{padding:8px 20px 20px}.modal-head button{min-width:32px;min-height:32px}.transfer-intro,.transfer-privacy,.forward-preview p,.forward-destination{font-size:13px;color:var(--muted)}.preview-info p,.preview-footer button{font-size:13px}.preview-messages{background:#f5f7fa}.error{font-size:13px;color:#a33128}#toast{font-size:14px}
@media(min-width:1500px){.workspace{grid-template-columns:330px minmax(0,1fr)}.workspace.details-open{grid-template-columns:330px minmax(0,1fr) 280px}.workspace.details-open>.details{position:static;width:auto;max-width:none;box-shadow:none}.messages{padding:24px 34px}.bubble{max-width:78%}.composer{padding:12px 24px}.composer-bottom>small{display:block;font-size:12px;color:var(--muted);margin-right:auto}.view-conversations .page-heading{padding-top:16px;padding-bottom:16px}}
@media(max-width:1250px){.shell{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.brand{gap:8px}.brand .monogram{font-size:21px;padding:10px 6px}.brand strong{font-size:11px}.brand small{font-size:9px}.workspace{grid-template-columns:280px minmax(0,1fr);margin:0 16px 16px}.topbar,.page-heading,.view-conversations .page-heading{padding-left:20px;padding-right:20px}.page-content{padding-left:20px;padding-right:20px}.demo-strip{padding-left:20px;padding-right:20px}.demo-strip span:last-child{display:none}.chat-header{padding:11px 12px;flex-wrap:wrap}.chat-header .actions{gap:4px}.chat-header .person{flex-basis:155px}.chat-header .person .avatar{display:none}.messages{padding:16px}.composer{padding:9px 12px 10px}.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){.breadcrumb>.muted{display:none}.chat-header .person{flex-basis:135px}.chat-header{min-height:68px}.compose-tabs button{padding:6px;font-size:12px}.chat-header small{font-size:12px}.page-heading p{max-width:none}.bubble{max-width:94%}}
@media(max-width:850px){.shell{grid-template-columns:64px minmax(0,1fr)}.sidebar{padding:20px 7px}.brand{justify-content:center;padding:0 0 22px}.brand .monogram{font-size:17px;padding:9px 4px}.nav{padding:11px 8px;justify-content:center}.sidebar .nav.active{box-shadow:none}.side-bottom{padding:16px 0}.workspace{grid-template-columns:270px minmax(0,1fr);margin:0 12px 12px}.chat-header .actions{margin-left:auto}.top-actions>small{display:none}.topbar{height:54px}.demo-strip{font-size:12px}.view-conversations .page-heading{min-height:60px;padding-top:10px;padding-bottom:10px}.conversation-filters button{padding:7px 6px}.compose-tabs #quick-reply{margin-left:0}.details label{margin-top:18px}}
@media(max-width:700px){.workspace{grid-template-columns:245px minmax(0,1fr)}.chat-metadata .badge{max-width:85px}.inbox-controls{padding:10px}.filter-toggle{padding:7px}.filter-toggle .icon{display:none}.chat-card .chat-item{padding:12px 8px;gap:8px}.chat-item .avatar{width:32px;height:32px;font-size:12px}.chat-row strong{font-size:13px}.chat-row time{font-size:12px}.chat-header .person{flex-basis:150px}.conversation-filters{padding-left:5px;padding-right:5px}.conversation-filters button{font-size:12px;padding:7px 5px}.messages{padding:12px}.composer .tool-button{width:30px;padding:6px}.signature-option{margin-left:3px}}
@media(max-width:650px){.shell{grid-template-columns:minmax(0,1fr)}.sidebar{display:none}.workspace{grid-template-columns:minmax(0,1fr);margin:0 8px 8px;border-radius:12px}.workspace .inbox{display:none}.workspace.list-mode .inbox{display:flex}.workspace.list-mode .chat{display:none}.workspace .no-selection{grid-column:auto}.topbar{padding:0 12px;height:50px}.breadcrumb{display:none}.top-actions{width:100%;gap:8px}.top-actions .mobile-menu{margin-right:auto;font-size:13px;max-width:145px;padding:5px 8px}.demo-strip{padding:5px 12px;font-size:11px}.view-conversations .page-heading{padding:9px 12px;min-height:54px}.view-conversations .page-heading h1{font-size:20px}.page-heading{padding:18px 14px}.page-heading p{font-size:13px;display:block}.page-content{padding:0 14px 20px}.view-conversations #new-conversation{font-size:12px;padding:8px 10px}.conversation-filters{padding:10px 10px 6px}.conversation-filters button{padding:7px 10px;font-size:13px}.inbox-controls{padding:10px 12px}.inbox-options select{font-size:13px}.filter-toggle{font-size:13px}.filter-toggle .icon{display:inline-flex}.chat-card .chat-item{padding:13px 12px;gap:10px}.chat-item .avatar{width:38px;height:38px}.chat-row strong{font-size:14px}.chat-metadata .badge{max-width:145px}.chat-header{padding:10px;flex-wrap:wrap;gap:7px}.chat-header .person{flex-basis:145px;gap:7px}.chat-header h3{font-size:14px}.chat-header .actions button{font-size:12px;padding:7px}.chat-header .actions{gap:4px}.chat-header .icon-button{width:31px}.chat-header .action-menu>summary{width:31px}.chat-header #back-list{padding:6px;min-width:29px}.chat-header small{font-size:12px}.composer{padding:8px 10px}.compose-tabs{gap:2px}.compose-tabs button{font-size:12px;padding:6px}.compose-tabs #quick-reply{margin-left:auto}.compose-tabs .icon{display:none}.composer textarea{font-size:15px}.composer-bottom{gap:5px}.composer .tool-button{width:31px;height:34px;padding:7px}.composer-bottom>button{padding:8px 10px;font-size:13px}.signature-option{font-size:12px;margin-left:4px}.messages{padding:12px;gap:10px}.bubble{max-width:95%;font-size:15px;padding-left:12px;padding-right:35px}.shared-contact{padding:10px}.pending-actions{padding-left:62px}.dashboard-grid{gap:10px}.dashboard-card{padding:15px;min-height:132px}.dashboard-card>span{font-size:12px;gap:5px}.dashboard-card>strong{font-size:30px}.dashboard-card>small{font-size:12px}.cards{grid-template-columns:1fr}.preview-modal .messages{max-height:48dvh}}
@media(prefers-reduced-motion:no-preference){button,.nav,summary{transition:background-color .12s ease,border-color .12s ease}}
.contacts-page td:last-child,.contacts-page th:last-child{position:sticky;right:0;background:#fff;box-shadow:-3px 0 5px #203c3605}.contacts-page th:last-child{background:#f8faf9}.contact-connection{display:none}
@media(max-width:1100px){.contacts-page table{min-width:650px}.contacts-page th,.contacts-page td{padding:13px 12px}.contacts-page td:first-child{min-width:150px}.contacts-page td:nth-child(4){min-width:120px}.contacts-page th:nth-child(5),.contacts-page td:nth-child(5){display:none}.contacts-page .contact-connection{display:block;font-size:12px;color:var(--muted);margin-top:3px}.contacts-page td:last-child{width:120px}}

.setup{max-width:480px;margin:32px auto;padding:28px;}.setup h1{font-size:24px;line-height:1.25}.setup .monogram{margin-bottom:16px}.setup .badge{display:inline-block;margin-bottom:12px}.setup small,.setup-footnote{color:#52645c;font-size:12px;line-height:1.5}.setup button{width:100%;margin-top:8px}.setup input{font-size:15px}.connection-progress{background:#e6f2eb;padding:14px;border-radius:10px;color:#165d4e}.connection-hint{font-size:12px;color:#52645c}.qr-image{display:block;max-width:100%;width:320px;height:auto;margin:20px auto;image-rendering:pixelated}.connection-number{padding:12px;border:1px solid #c8dfd1;border-radius:8px}@media(max-width:600px){.setup{margin:16px;max-width:none;padding:20px}}
