:root{--bg:#f5f6f3;--paper:#fff;--ink:#253c34;--muted:#77807a;--border:#e3e7e1;--green:#315e4e;--green-hover:#244c3e;--soft:#eef3ee;--amber:#946120;--amber-bg:#fbf4e7;--new:#345c7a;--new-bg:#edf3f7;--red:#a4483f;--shadow:0 16px 60px #1c32291a}
*{box-sizing:border-box}html{font-size:14px}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;line-height:1.45}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button{color:inherit}button,a,input,select,textarea,summary{outline-offset:4px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #44775f}svg{height:18px;width:18px;display:block;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}h1,h2,h3,p{margin:0}input,select,textarea{width:100%;min-width:0;padding:11px 12px;border:1px solid #d7dfd6;border-radius:8px;background:#fff;color:var(--ink);transition:border-color .12s}textarea{resize:vertical;min-height:96px;line-height:1.65}input::placeholder,textarea::placeholder{color:#8d948f}select{padding-right:25px}label{font-weight:600;font-size:13px;display:block;margin:16px 0 7px}input:disabled,textarea:disabled{background:#f7f8f5;color:#536258}button{transition:background .13s,border-color .13s}.app-shell{display:flex;min-height:100vh}.sidebar{width:218px;flex-shrink:0;position:fixed;top:0;left:0;bottom:0;border-right:1px solid var(--border);background:#fcfdfb;padding:33px 20px 24px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;margin-bottom:54px}.brand-mark{height:40px;width:40px;background:var(--green);border-radius:11px;color:white;display:grid;place-items:center;flex-shrink:0}.brand-mark svg{width:33px;height:33px;stroke-width:1.65}.brand strong{font-size:16px;display:block;letter-spacing:-.4px;white-space:nowrap}.brand span:not(.brand-mark){display:block;font-size:10px;color:var(--muted);margin-top:2px}.nav-kicker{font-size:9px;letter-spacing:1.4px;font-weight:700;color:#8b958c;margin-bottom:12px}.nav-item{background:none;border:0;display:flex;gap:10px;align-items:center;text-align:left;padding:12px 13px;border-radius:8px;width:100%;font-size:13px;font-weight:600}.nav-item.active{background:#eaf0e9;color:var(--green)}.nav-dot{height:6px;width:6px;background:var(--green);border-radius:50%;margin-left:auto}.shortcuts{margin-top:41px}.shortcuts button{background:none;border:0;display:flex;width:100%;align-items:center;gap:10px;padding:12px 5px;font-size:12px;color:#5c6b62}.shortcuts button:hover{background:#f0f3ed;border-radius:6px}.shortcuts button>[data-icon]:last-child{margin-left:auto;opacity:.45}.shortcuts button>[data-icon]:last-child svg{width:13px;height:13px}.shortcuts p{color:#8b948e;font-size:10px;line-height:1.6;margin:12px 4px}.link-letter{width:18px;display:grid;place-items:center;font-weight:750}.sidebar-bottom{margin-top:auto;padding-top:40px}.test-badge{font-size:10px;font-weight:700;letter-spacing:.8px;border-radius:5px;background:#f3ead9;color:#8a6128;padding:5px 8px;display:inline-block;white-space:nowrap}.test-badge.small{font-size:8px;padding:2px 5px;vertical-align:middle;letter-spacing:.4px}.sidebar-bottom p{font-size:11px;color:#8a938c;line-height:1.8;margin:13px 0}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;padding:3px 0;background:none;font-size:12px;color:var(--green);text-align:left}.text-button:hover{color:#152d22;text-decoration:underline;text-underline-offset:3px}.sidebar-bottom .text-button{font-size:11px}.workspace{width:calc(100% - 218px);max-width:1800px;margin-left:218px;padding:27px 34px 24px}.page-header{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:18px}.eyebrow{font-size:9px;letter-spacing:1.5px;color:#7c877e;font-weight:650;margin-bottom:9px}.heading h1{font-size:30px;line-height:1.2;font-weight:650;letter-spacing:-1.2px;margin-bottom:8px}.heading p{font-size:12px;color:var(--muted)}.identity{min-width:164px;flex-shrink:0}.identity-label{font-size:10px;color:var(--muted);margin-bottom:7px;display:flex;align-items:center;justify-content:space-between;gap:8px}.identity-control{background:white;border:1px solid var(--border);border-radius:9px;padding:5px 9px;display:flex;gap:8px;align-items:center}.identity-control select{border:0;background:none;padding:7px 24px 7px 0;font-size:13px;font-weight:600;outline-offset:0}.avatar{width:29px;height:29px;border-radius:50%;background:#e7eee7;color:#41654d;display:grid;place-items:center;font-size:11px;font-weight:700;flex-shrink:0}.mode-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 14px;font-size:10px;color:#838b84}.mode-bar>div{display:flex;align-items:center;gap:7px}.connection-dot{width:6px;height:6px;border-radius:50%;background:#739279;flex-shrink:0}.connection-dot.error{background:#b25f4c}.mode-bar .text-button{font-size:11px}.mode-bar svg{width:15px;height:15px}.connection-error{border:1px solid #eed8c9;background:#fcf3e9;padding:12px 15px;border-radius:8px;margin-bottom:16px;color:#9a5430;font-size:12px;overflow-wrap:anywhere}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--border);border-radius:11px;background:white;overflow:hidden;margin-bottom:24px}.metric{position:relative;background:transparent;padding:15px 20px 13px;border:0;border-right:1px solid var(--border);text-align:left}.metric:last-child{border-right:0}.metric:hover{background:#f8faf6}.metric[aria-pressed=true]{background:#edf3ed;box-shadow:inset 0 -3px 0 var(--green)}.metric.attention-metric[aria-pressed=true]{background:var(--amber-bg);box-shadow:inset 0 -3px 0 #bd8c44}.metric-label{font-size:12px;font-weight:550;display:block;padding-right:18px;min-height:20px;white-space:normal}.metric-value{font-size:32px;font-weight:600;line-height:1;letter-spacing:-1px;display:block;margin:8px 0 6px}.metric-foot{font-size:10px;color:#8a938c;display:block}.metric-icon{position:absolute;right:18px;top:16px;color:#9caaa0}.metric-icon svg{height:16px;width:16px}.attention-metric .metric-value,.attention-metric .metric-icon{color:var(--amber)}.queue-section{border:1px solid var(--border);background:white;border-radius:11px;overflow:hidden;min-width:0}.queue-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 22px 14px}.queue-heading h2{font-weight:650;font-size:16px;letter-spacing:-.3px;display:flex;align-items:center;gap:8px}.queue-heading h2 span{font-size:10px;background:#eff2ec;color:#778379;padding:2px 7px;border-radius:5px;letter-spacing:0}.queue-heading p{font-size:10px;color:#8b948c;margin-top:5px}.button{border:1px solid transparent;display:inline-flex;justify-content:center;align-items:center;gap:7px;border-radius:7px;padding:10px 14px;font-size:12px;font-weight:550;line-height:1.3;white-space:normal;text-decoration:none}.button.primary{background:var(--green);color:white;border-color:var(--green)}.button.primary:hover{background:var(--green-hover)}.button.secondary{background:white;border-color:#dbe2d8;color:#41604c}.button.secondary:hover{background:#f3f6ef}.button.subtle{background:#f9faf7;border-color:var(--border);color:#758275;padding:8px 11px}.button.danger{border-color:#ead6d1;color:#a35243;background:#fff}.button.danger:hover{background:#fcf3ef}.button.wide{width:100%;margin-top:17px}.button.compact{padding:8px 11px;font-size:11px;min-height:35px}.button svg{width:15px;height:15px}.queue-tools{padding:0 22px 14px}.status-filters{display:flex;gap:18px;border-bottom:1px solid var(--border);margin-bottom:12px;flex-wrap:wrap}.status-filters button{border:0;border-bottom:2px solid transparent;background:none;font-size:11px;color:#879087;padding:7px 0 9px;white-space:nowrap;margin-bottom:-1px}.status-filters button.selected{border-color:var(--green);color:var(--green);font-weight:650}.status-filters button:hover{color:var(--ink)}.search-row{display:flex;gap:9px;align-items:stretch}.search-box{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:7px;padding-left:10px;flex:1;min-width:0;color:#91a095;background:#fcfdfb}.search-box input{border:0;background:none;font-size:11px;padding:8px 10px 8px 0;outline-offset:0}.search-box svg{width:16px;height:16px}.channel-filter{width:159px;flex-shrink:0}.channel-filter select{font-size:11px;height:100%;padding:9px 22px 9px 11px;border-color:var(--border);border-radius:7px}.table-labels,.event-row{display:grid;grid-template-columns:122px minmax(150px,1fr) 142px 88px 138px;column-gap:12px;align-items:center}.table-labels{padding:8px 22px;background:#fafbf8;border-top:1px solid var(--border);border-bottom:1px solid var(--border);font-size:9px;color:#98a196;font-weight:500}.event-row{padding:13px 22px;min-height:78px;border-bottom:1px solid #eef0eb;position:relative}.event-row:last-child{border-bottom:0}.event-row:hover{background:#fafcf8}.event-row.attention{background:#fffdf8}.event-row.attention:before{content:"";position:absolute;left:0;top:17px;bottom:17px;width:3px;border-radius:0 3px 3px 0;background:#d3a464}.channel-cell{display:flex;gap:9px;align-items:center;min-width:0}.channel-mark{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;font-size:10px;font-weight:750;flex-shrink:0;background:#eef2ec;color:#637d63}.channel-mark svg{width:15px;height:15px}.channel-mark.phone{background:#eef3ea;color:#5c7d4e}.channel-mark.max{background:#f0edf8;color:#7463a2}.channel-mark.vk{background:#edf2fb;color:#6187b7}.channel-mark.telegram{background:#edf6f9;color:#5195ad}.channel-mark.site{background:#f6efe5;color:#a38a5f}.channel-mark.whatsapp{background:#edf5ee;color:#5e946c}.channel-mark.instagram{background:#f7eef3;color:#ac7391}.channel-name{font-size:10px;font-weight:600;white-space:nowrap}.event-time{font-size:10px;color:#95a094;margin-top:3px}.content-cell{min-width:0}.sender-button{background:none;border:0;padding:0;text-align:left;font-size:12px;font-weight:600;color:#314e3d;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.sender-button:hover{text-decoration:underline;text-underline-offset:3px}.event-preview{font-size:10px;color:#8b958c;line-height:1.55;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;margin-top:5px}.event-preview.no-result{color:#a78656}.status-badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:4px 6px;font-size:9px;line-height:1.2;font-weight:600;white-space:nowrap}.status-badge:before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}.status-new{background:var(--new-bg);color:var(--new)}.status-in_progress{background:#f2efe5;color:#897843}.status-processed{background:#edf3eb;color:#69855f}.attention-label{display:flex;gap:4px;align-items:center;color:#a07535;font-size:9px;line-height:1.3;margin-top:6px}.attention-label svg{width:11px;height:11px}.owner-cell{font-size:10px;color:#5e705f;white-space:nowrap;display:flex;gap:5px;align-items:center}.owner-cell .mini-avatar{height:19px;width:19px;font-size:8px;border-radius:50%;display:grid;place-items:center;background:#edf1e9;color:#7b8c77}.owner-empty{font-size:9px;color:#b39b71}.compact-owner{display:none}.action-cell{text-align:right}.action-cell .button{width:100%;max-width:138px}.filter-note{font-size:11px;padding:10px 22px;border-top:1px solid var(--border);background:#f6f8f2;color:#6d7c66}.empty-state{text-align:center;padding:64px 16px 58px}.empty-icon{background:#f1f5ed;border:1px solid #e7ede1;border-radius:16px;width:60px;height:60px;color:#77916c;margin-bottom:20px}.empty-icon svg{height:27px;width:27px}.empty-state h3{font-size:18px;font-weight:600;margin-bottom:9px}.empty-state p{font-size:12px;color:#8a9488;line-height:1.7;margin-bottom:24px}.empty-small{font-size:10px;color:#9ca498;display:block;margin-top:12px}.queue-footer{border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:12px;padding:13px 22px;font-size:9px;color:#95a090}.workspace-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:10px;color:#9aa395;padding-top:17px}.workspace-footer .text-button{font-size:10px}.workspace-footer svg{height:13px;width:13px}.mode-explanation{font-size:10px;color:#919b8d;line-height:1.7;margin:16px 0 0}.mobile-shortcuts{display:none}.icon-button{height:34px;width:34px;display:grid;place-items:center;background:white;border:1px solid var(--border);border-radius:7px;flex-shrink:0}.icon-button:hover{background:#f4f7f0}dialog{color:var(--ink);padding:0;border:0;box-shadow:var(--shadow);background:#fff}dialog::backdrop{background:#1f382f55;backdrop-filter:blur(2px)}.drawer{margin:0 0 0 auto;width:490px;height:100dvh;max-height:100dvh;max-width:100vw;border-left:1px solid var(--border);border-radius:16px 0 0 16px;overflow-y:auto}.drawer[open]{display:flex;flex-direction:column}.form-dialog{width:450px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:14px;overflow-y:auto}.dialog-header{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:26px;border-bottom:1px solid var(--border);flex-shrink:0}.dialog-header h2{font-size:22px;font-weight:600;letter-spacing:-.5px;overflow-wrap:anywhere;line-height:1.3}.dialog-header .eyebrow{font-size:9px}.dialog-body{padding:23px 26px;flex:1}.dialog-body h3{font-size:13px;margin-bottom:12px;font-weight:650}.dialog-footer{border-top:1px solid var(--border);padding:20px 26px;background:#fcfdf9;flex-shrink:0}.event-detail-meta{display:flex;gap:12px;align-items:center;margin-bottom:17px;flex-wrap:wrap}.event-detail-meta .status-badge{font-size:11px;padding:6px 8px}.detail-date{font-size:11px;color:#8b9787;line-height:1.5;margin-left:auto}.detail-owner{font-size:12px;color:#687b62;display:flex;align-items:center;gap:8px;margin-top:12px}.detail-attention{font-size:11px;padding:9px 12px;background:var(--amber-bg);color:var(--amber);border-radius:7px;display:flex;align-items:center;gap:7px;line-height:1.6}.incoming-text{font-size:14px;line-height:1.8;padding:16px 18px;border:1px solid #e6eadd;border-radius:9px;background:#f9fbf5;white-space:pre-wrap;overflow-wrap:anywhere;margin:21px 0 12px}.incoming-text.phone-empty{font-size:12px;color:#88977f;background:#fcfdf9}.channel-open{margin-bottom:12px}.comment-section{margin-top:23px;border-top:1px solid var(--border);padding-top:7px}.comment-section label{font-size:14px}.comment-section label span{font-size:11px;font-weight:400;color:#8b9981}.field-hint{font-size:10px;color:#91a088;line-height:1.7;margin-top:8px}.inline-error{font-size:12px;color:#a24e40;background:#fff1ec;border:1px solid #efd5cb;border-radius:7px;padding:10px 12px;margin-top:12px}.inline-warning{font-size:11px;color:#94712f;background:#fbf5e7;border:1px solid #eedfbc;border-radius:8px;padding:12px;line-height:1.7;margin-top:18px}.inline-warning button{margin-top:9px}.save-state{color:#8d9b83;font-size:10px;min-height:15px;margin-top:8px}.ownership-note{font-size:11px;color:#8b9981;margin-top:18px;line-height:1.75}.primary-actions{display:flex;gap:10px}.primary-actions .button{flex:1}.secondary-actions{display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--border);margin-top:16px;padding-top:16px}.secondary-actions>.button{width:100%}.transfer-controls{display:flex;gap:9px}.transfer-controls select{font-size:12px;padding:9px 10px}.transfer-controls .button{flex-shrink:0}.simulator-drawer .dialog-header h2{margin-top:9px}.sim-intro{color:#7f8f76;font-size:12px;line-height:1.8;margin-bottom:24px}.scenario-button{display:flex;align-items:center;gap:12px;padding:13px 12px;border:1px solid #e3e9da;border-radius:9px;width:100%;text-align:left;background:#fbfdf8;margin-bottom:9px}.scenario-button:hover{background:#f2f7eb;border-color:#cedcc2}.scenario-button>span:nth-child(2){flex:1;min-width:0}.scenario-icon{height:34px;width:34px;background:#eff4e8;border-radius:8px;display:grid;place-items:center;color:#74915f}.scenario-button strong{font-size:12px;font-weight:600;display:block}.scenario-button small{display:block;font-size:10px;color:#92a084;margin-top:4px;line-height:1.5}.sim-form,.test-settings,.clear-test{border-top:1px solid var(--border);padding-top:22px;margin-top:25px}.sim-form label,.test-settings label{font-size:12px}.setting-row{display:flex;gap:10px}.setting-row input{max-width:115px}.clear-test p{font-size:11px;color:#89987e;line-height:1.7;margin:0 0 15px}.toast-stack{position:fixed;bottom:22px;right:24px;z-index:10000;display:flex;flex-direction:column;gap:8px;pointer-events:none;max-width:390px}.toast{background:#284c3b;color:#fff;box-shadow:0 5px 25px #17302626;border:1px solid #45674c;border-radius:9px;font-size:12px;line-height:1.7;padding:12px 16px;pointer-events:auto;overflow-wrap:anywhere}.toast.error{background:#825d34;border-color:#9b7549}.toast.removing{opacity:0;transition:opacity .2s}
@media(min-width:1600px){.workspace{padding-left:50px;padding-right:50px}.table-labels,.event-row{grid-template-columns:155px minmax(260px,1fr) 164px 125px 156px}.event-row{padding-top:18px;padding-bottom:18px}.event-preview{font-size:12px}.sender-button{font-size:13px}.channel-name{font-size:12px}.owner-cell{font-size:12px}.status-badge{font-size:11px}.metric-label{font-size:14px}}
@media(max-width:1250px) and (min-width:981px){.sidebar{width:192px;padding:30px 15px}.workspace{margin-left:192px;width:calc(100% - 192px);padding:29px 25px}.brand strong{font-size:14px}.brand{gap:8px}.brand-mark{width:34px;height:34px}.table-labels,.event-row{grid-template-columns:108px minmax(120px,1fr) 127px 118px}.owner-cell,.owner-label{display:none}.compact-owner{display:block;font-size:9px;color:#8b9787;margin-top:5px}.metric{padding:19px 14px}.metric-icon{right:12px}.metric-label{font-size:11px}.queue-tools,.queue-heading,.event-row,.table-labels{padding-left:18px;padding-right:18px}.heading h1{font-size:28px}}
@media(max-width:980px){.sidebar{display:none}.workspace{margin-left:0;width:100%;padding:28px 24px;max-width:none}.table-labels,.event-row{grid-template-columns:120px minmax(150px,1fr) 134px 132px}.owner-cell,.owner-label{display:none}.compact-owner{display:block;font-size:10px;color:#8b9787;margin-top:5px}.mobile-shortcuts{display:block;margin-top:23px;padding:14px 17px;border:1px solid var(--border);border-radius:8px;background:#fbfdf9;font-size:11px}.mobile-shortcuts summary{cursor:pointer;color:#6e8063;list-style:none;display:flex;align-items:center;gap:8px}.mobile-shortcuts summary:before{content:'+';font-size:16px;line-height:1}.mobile-shortcuts[open] summary:before{content:'−'}.mobile-shortcuts>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.mobile-shortcuts button{font-size:11px;color:#627753;background:none;border:1px solid #e0e7d7;border-radius:7px;padding:8px 10px}.mobile-shortcuts p{font-size:10px;color:#91a085;margin-top:11px}.mode-explanation{margin-top:15px}}
@media(max-width:700px){.workspace{padding:23px 17px}.page-header{gap:16px;align-items:flex-start}.heading h1{font-size:25px}.heading .eyebrow{font-size:8px;letter-spacing:1px;max-width:270px}.heading p{font-size:11px}.identity{min-width:132px}.identity-label{font-size:9px}.identity-control{padding:4px 7px}.metrics{margin-bottom:23px}.metric{padding:17px 12px}.metric-label{font-size:10px;padding-right:0}.metric-value{font-size:29px}.metric-foot{font-size:9px}.metric-icon{display:none}.queue-heading{padding:20px 17px 16px}.queue-heading h2{font-size:14px}.queue-heading .button{font-size:11px;padding:10px 11px;max-width:151px}.queue-tools{padding-left:17px;padding-right:17px}.status-filters{gap:15px}.status-filters button{font-size:10px}.table-labels,.event-row{grid-template-columns:103px minmax(120px,1fr) 118px 112px;column-gap:9px;padding-left:17px;padding-right:17px}.action-cell .button{font-size:10px;padding:8px 5px}.channel-mark{width:26px;height:26px}.channel-cell{gap:7px}.status-badge{font-size:8px}.attention-label{font-size:8px}.event-preview{font-size:10px}.sender-button{font-size:11px}}
@media(max-width:600px){.workspace{padding:21px 15px}.page-header{display:block;margin-bottom:17px}.heading h1{font-size:27px;margin-bottom:6px}.heading .eyebrow{font-size:8px;letter-spacing:1.15px;max-width:none;margin-bottom:9px}.identity{display:flex;align-items:center;justify-content:space-between;margin-top:20px;gap:12px}.identity-label{font-size:10px;margin:0;gap:8px}.identity-control{min-width:140px;max-width:168px;flex:1;gap:7px}.identity-control select{padding-top:5px;padding-bottom:5px;font-size:12px}.avatar{width:26px;height:26px}.mode-bar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:15px;font-size:9px}.mode-bar .text-button{font-size:10px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:23px}.metric{padding:15px 16px 13px}.metric:nth-child(2){border-right:0}.metric:nth-child(-n+2){border-bottom:1px solid var(--border)}.metric-label{font-size:11px;min-height:17px;padding-right:10px}.metric-value{font-size:29px;margin:10px 0 8px}.metric-foot{font-size:9px}.metric-icon{display:none}.queue-heading{padding:18px 15px 15px;align-items:flex-start;gap:12px}.queue-heading h2{font-size:14px;align-items:center;line-height:1.4;max-width:165px}.queue-heading h2 span{font-size:9px}.queue-heading p{font-size:9px;max-width:155px;line-height:1.6}.queue-heading .button{width:111px;font-size:10px;padding:9px 8px;gap:5px;flex-shrink:0;min-height:39px}.queue-heading .button svg{width:13px;height:13px}.queue-tools{padding:0 15px 14px}.status-filters{gap:0;flex-wrap:wrap;align-items:flex-start;border:0;margin:0 0 14px;background:#f5f8f0;border-radius:7px;padding:4px}.status-filters button{flex:1 1 auto;border:0;margin:0;padding:8px 7px;line-height:1.2;font-size:10px;border-radius:5px}.status-filters button.selected{background:white;box-shadow:0 1px 4px #38502414}.search-row{display:grid;grid-template-columns:1fr 37px;gap:8px}.search-box{grid-column:1/-1}.channel-filter{width:auto}.channel-filter select{font-size:10px;padding:9px 10px}.search-box input{font-size:10px}.table-labels{display:none}.event-row{grid-template-columns:minmax(0,1fr) 117px;gap:11px 8px;padding:15px;border-top:1px solid var(--border);border-bottom:0;align-items:start}.event-row.attention:before{top:14px;bottom:14px}.channel-cell{grid-column:1/-1;gap:7px}.channel-cell>div:last-child{display:flex;align-items:center;gap:8px;flex:1}.channel-mark{width:22px;height:22px;border-radius:6px;font-size:9px}.channel-mark svg{width:12px;height:12px}.channel-name{font-size:10px}.event-time{font-size:9px;margin:0 0 0 auto}.content-cell{grid-column:1/-1}.sender-button{font-size:13px;white-space:normal;overflow-wrap:anywhere}.event-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;font-size:11px;line-height:1.65;margin-top:5px;overflow-wrap:anywhere}.state-cell{grid-column:1}.status-badge{font-size:9px;padding:5px 7px}.attention-label{font-size:9px;margin-top:6px}.compact-owner{font-size:9px;margin-top:5px}.action-cell{grid-column:2;align-self:center}.action-cell .button{font-size:10px;min-height:35px;padding:8px 8px;max-width:none}.queue-footer{font-size:8px;padding:12px 15px;flex-wrap:wrap;gap:6px}.workspace-footer{font-size:9px;line-height:1.6;gap:13px;align-items:flex-start}.workspace-footer>span{max-width:160px}.workspace-footer .text-button{font-size:9px;white-space:normal;max-width:130px;line-height:1.6}.empty-state{padding:43px 15px}.empty-state h3{font-size:17px}.empty-state p{font-size:11px}.empty-state .button{font-size:11px}.empty-small{font-size:9px}.drawer{width:100%;max-width:100%;border-radius:0;border-left:0}.dialog-header{padding:22px 19px}.dialog-header h2{font-size:21px}.dialog-body{padding:20px 19px}.dialog-footer{padding:17px 19px}.dialog-header .eyebrow{font-size:8px;letter-spacing:1.1px}.detail-date{font-size:10px}.incoming-text{font-size:13px;padding:13px 14px}.comment-section label{font-size:13px}.primary-actions{gap:8px}.primary-actions .button{font-size:11px;padding:10px 9px}.form-dialog .dialog-header h2{font-size:19px}.toast-stack{bottom:14px;left:14px;right:14px;max-width:none}.toast{font-size:11px}.simulator-drawer .dialog-header h2{font-size:22px}.scenario-button{padding:12px 10px;gap:9px}.scenario-button strong{font-size:11px}.scenario-button small{font-size:9px}.mode-explanation{font-size:9px}.filter-note{font-size:10px;padding:9px 15px}.setting-row .button{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Working-text readability: secondary text must remain legible, not decorative. */
.event-preview{font-size:12px;color:#647361}.event-preview.no-result{color:#86622e}.sender-button{font-size:13px}.channel-name{font-size:12px}.event-time{font-size:11px;color:#6f7d68}.status-badge{font-size:10px}.attention-label{font-size:10px;color:#875c24}.owner-cell{font-size:12px;color:#56684e}.owner-empty{font-size:10px;color:#846d42}.table-labels{font-size:10px;color:#717e68}.compact-owner{font-size:10px;color:#6a7961}.status-filters button{font-size:12px;color:#697860}.search-box input,.channel-filter select{font-size:12px}.metric-foot{font-size:11px;color:#737f6a}.metric-label{font-size:13px}.queue-heading p{font-size:11px;color:#738168}.queue-footer{font-size:10px;color:#738069}.field-hint,.ownership-note{color:#6d7e61}.detail-date{color:#6e7d65}.save-state{color:#6b7d5e}.scenario-button small,.clear-test p{color:#708264}.mode-bar,.mode-explanation{color:#6f7f65}.button.compact{font-size:12px}.detail-owner{color:#5d7152}.brand span:not(.brand-mark){color:#697963}
@media(max-width:1250px){.metric-label{font-size:12px}.metric-foot{font-size:10px}.button.compact{font-size:11px}.channel-name{font-size:11px}.event-preview{font-size:11px}.sender-button{font-size:12px}.status-badge{font-size:9px}.attention-label{font-size:9px}}
@media(max-width:700px){.status-filters button{font-size:11px}.event-time{font-size:10px}.search-box input,.channel-filter select{font-size:11px}.metric-label{font-size:11px}.metric-foot{font-size:10px}}
@media(max-width:600px){.sender-button{font-size:13px}.event-preview{font-size:12px}.channel-name{font-size:11px}.status-badge{font-size:10px}.attention-label{font-size:10px}.compact-owner{font-size:10px}.action-cell .button{font-size:11px}.queue-heading p{font-size:10px}.queue-footer{font-size:9px}.metric-label{font-size:12px}.status-filters button{font-size:11px}.mode-explanation{font-size:10px}.field-hint{font-size:11px}}

/* v0.1 refinement: retain the accepted shell, queue and right-hand drawer. */
.status-waiting_guest{background:#f0edf6;color:#665a7b}.status-filters{flex-wrap:wrap}.new-guest-label{display:block;color:#345c7a;font-size:10px;margin-top:5px;line-height:1.4}.new-guest-label:before{content:'●';font-size:7px;vertical-align:middle;margin-right:5px}.test-clock-info{font-size:11px;color:var(--amber);background:var(--amber-bg);border-radius:7px;padding:8px 12px;margin-bottom:12px}.conversation-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:24px 0 12px}.conversation-heading h3{margin:0}.dialog-messages{display:flex;flex-direction:column;gap:12px;max-height:340px;overflow:auto;overscroll-behavior:contain;padding:2px 4px 8px 0;scrollbar-gutter:stable}.chat-message{max-width:92%;border:1px solid var(--border);border-radius:10px;padding:11px 13px;align-self:flex-start;background:#f8faf6;min-width:110px;overflow-wrap:anywhere}.chat-message.outgoing{align-self:flex-end;background:#edf3ee;border-color:#dce7dc}.chat-meta{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;font-size:10px;color:#69786c;margin-bottom:5px}.chat-meta strong{font-size:11px;color:var(--ink)}.chat-text{font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.guest-test-link{margin:9px 0 6px;font-size:11px}.reply-actions{display:flex;gap:14px;justify-content:space-between;align-items:center;margin-top:10px}.reply-actions .field-hint{margin:0;max-width:250px}.reply-actions .button{flex-shrink:0}.note-toggle{margin-top:21px;font-size:12px}.dialog-conversation #reply-text{min-height:84px}.handoff-details{border-top:1px solid var(--border);margin-top:14px;padding-top:12px}.handoff-details summary{font-size:12px;color:#61735c;cursor:pointer}.handoff-details .secondary-actions{border:0;margin-top:10px;padding-top:0}.time-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.time-buttons .button{padding:9px 12px;font-size:12px}.waiting-note{font-size:11px;color:#665a7b;margin-top:12px;line-height:1.6}.drawer .dialog-body{min-width:0}.simulator-drawer select{max-width:100%;text-overflow:ellipsis}.detail-readonly-note{font-size:11px;color:var(--muted)}
@media(max-width:600px){.chat-text{font-size:12px}.chat-message{max-width:96%;padding:10px 11px}.dialog-messages{max-height:300px}.reply-actions{gap:10px;align-items:flex-start}.reply-actions .button{font-size:11px;padding:10px}.reply-actions .field-hint{font-size:10px}.conversation-heading{flex-wrap:wrap}.new-guest-label{font-size:10px}.time-buttons .button{font-size:11px}.workspace-footer>span{max-width:180px}.handoff-details summary{font-size:11px}}

/* Keep primary actions visible; scroll only the body of the existing drawer. */
#event-dialog{overflow:hidden}#event-dialog .dialog-body{overflow-y:auto;min-height:0;overscroll-behavior:contain}.toast{pointer-events:none}

/* v0.1 refinement: append-only internal notes and explicitly manual channels.
   Existing workspace, counters, filters, grid and drawer geometry preserved. */
.manual-badge{display:inline-flex;align-items:center;font-size:9px;font-weight:700;letter-spacing:.045em;color:#5e6854;background:#edf0e8;border:1px solid #dbe2d4;border-radius:4px;padding:3px 5px;line-height:1.3;white-space:nowrap}
.row-manual-badge{margin:3px 0;font-size:8px;padding:2px 3px;letter-spacing:0}
.manual-channel-note,.manual-mode-note{padding:14px 16px;border:1px solid #dbe2d4;border-radius:8px;background:#f6f8f3;margin:12px 0}
.manual-channel-note p,.manual-mode-note p{margin:8px 0 0;line-height:1.55;font-size:13px}
.manual-channel-note .field-hint{font-size:12px}
.manual-shortcut{font-size:11px;gap:4px;margin-top:5px;padding:0;line-height:1.5}
.manual-shortcut svg{width:13px;height:13px;flex:none}
.channel-mark.other{background:#edf0e8;color:#5e6854}
.comments-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.comments-heading h3{font-size:14px;margin:0}
.internal-label{color:var(--muted,#6f7e70);font-size:11px}
.comments-intro{margin:8px 0 12px}
.comments-list{margin:0 0 16px}
.internal-comment{padding:12px 0;border-bottom:1px solid #e6eae4}
.internal-comment:first-child{padding-top:0}
.comment-meta{font-size:12px;font-weight:600;line-height:1.6;color:#506352}
.internal-comment p{margin:5px 0 0;font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.comments-empty{font-size:12px;color:#758171;margin:0}
.legacy-note{display:block;font-size:10px;line-height:1.5;color:#758171;margin-top:5px}
.comment-compose-actions{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;margin-top:8px}
.comment-compose-actions .field-hint{flex:1;margin:0}
.comment-compose-actions button{flex-shrink:0;white-space:normal}
#event-kicker{overflow-wrap:anywhere;line-height:1.5}
@media(max-width:540px){.comment-compose-actions{flex-direction:column;gap:9px}.comment-compose-actions button{align-self:flex-start}.manual-channel-note{padding:12px}.manual-shortcut{font-size:11px}.row-manual-badge{font-size:8px}.comments-heading h3{font-size:14px}}

/* Final v0.1 acceptance: informational notes, dial links and TEST attachments. */
.phone-link{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;cursor:pointer;user-select:text;-webkit-user-select:text}
.phone-link:hover{color:var(--green,#3e6851)}
.sender-line{font-size:inherit;min-width:0}.sender-line .sender-button{display:block;text-align:left}
.queue-comment{display:flex;align-items:baseline;gap:8px;min-width:0;margin-top:5px;font-size:11px;line-height:1.65;color:#647361}
.comment-count{flex:0 0 auto;font-weight:500;color:#526553}
.comment-snippet{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;color:#68756b}
.comment-snippet .phone-link{color:inherit}
.comment-compose-actions{flex-direction:column;gap:8px}
#save-comment{background:transparent;border-color:transparent;text-decoration:underline;text-underline-offset:3px;color:#61705f;padding:5px 0;font-weight:400;box-shadow:none;align-self:flex-start;text-align:left;font-size:12px}
#save-comment:hover{color:#365442}#save-state:empty{display:none}
.attachment-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;margin:8px 0}.attachment-toolbar .field-hint{margin:0;font-size:10px}
.attach-button{font-size:12px;min-height:34px}
.file-drafts{display:flex;flex-direction:column;gap:6px}
.file-draft{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:7px;padding:7px 9px;background:#f8faf5;min-width:0}
.file-draft-text{flex:1;min-width:0}.file-draft-text strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px;font-weight:500}
.file-draft-text small{font-size:10px;color:var(--muted)}.file-draft .icon-button{width:32px;height:32px;flex:none}
.message-attachments{display:flex;flex-direction:column;gap:8px;margin-top:7px}
.message-attachment{border:1px solid #d5ddd2;border-radius:7px;overflow:hidden;background:#fff;min-width:0}
.attachment-card{width:100%;border:0;background:none;display:flex;gap:9px;text-align:left;align-items:center;padding:8px;min-width:0;color:inherit}
.attachment-thumb{width:64px;height:54px;flex:none;object-fit:cover;border-radius:4px;background:#edf1e9}
.attachment-type{width:46px;min-height:46px;border-radius:5px;background:#edf1e9;display:grid;place-items:center;font-size:11px;flex:none;color:#586954}
.attachment-meta{min-width:0;flex:1}.attachment-name{display:block;font-size:12px;font-weight:500;line-height:1.45;overflow-wrap:anywhere}.attachment-size{display:block;font-size:10px;color:#68776b;margin-top:3px}.attachment-open-hint{display:block;font-size:10px;margin-top:3px;color:#527458}
.attachment-viewer{width: min(820px,94vw);max-width:94vw;max-height:94dvh}.attachment-viewer[open]{display:flex;flex-direction:column}.attachment-viewer .dialog-body{overflow:auto;min-height:0}.attachment-viewer .dialog-header h2{font-size:18px}
.attachment-image{display:block;max-width:100%;max-height:60dvh;object-fit:contain;margin:12px auto}.attachment-pdf{display:block;width:100%;height:52dvh;min-height:200px;border:1px solid var(--border);margin:12px 0}.attachment-view-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.attachment-view-actions .button{text-decoration:none;font-size:12px}
.chat-text:empty{display:none}.file-unavailable{font-size:11px;color:#697663;display:block;margin:5px}
@media(max-width:600px){
 .queue-comment{font-size:11px;gap:7px;line-height:1.6}.comment-count{font-size:11px}.comment-snippet{white-space:nowrap;display:block}
 #save-comment{font-size:12px;line-height:1.5;min-height:36px;max-width:100%}
 .drawer{height:var(--td-visual-height,100dvh);max-height:var(--td-visual-height,100dvh);top:var(--td-visual-top,0px);bottom:auto}
 .drawer .dialog-header{padding-top:max(15px,env(safe-area-inset-top));padding-bottom:15px}
 #event-dialog .dialog-footer{padding-bottom:max(12px,env(safe-area-inset-bottom));max-height:46%;overflow-y:auto}
 .drawer textarea,.drawer input:not([type=file]),.form-dialog textarea,.form-dialog input{font-size:16px}
 textarea{scroll-margin:12px} .attachment-thumb{width:56px;height:48px}.attachment-name{font-size:11px}
 .attachment-viewer{max-width:100vw;width:100vw;max-height:var(--td-visual-height,100dvh);border-radius:0}
}

/* v0.2: only the technically necessary shared-TEST access dialog is new. */
.access-dialog{width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}
.access-dialog .dialog-body{display:grid;gap:12px}.access-dialog input,.access-dialog select{width:100%;min-width:0}.access-dialog .field-hint{margin:0}
