/* Compact workbench extension using the partner's V5 theme and spacing tokens. */
.wk-views{flex-shrink:0;min-height:48px;padding-top:0;padding-bottom:0}
.wk-views .tabs{gap:20px}.wk-views .tabs button{font-size:14px;padding:14px 0}
.wk-view-actions{display:flex;gap:12px;align-items:center}.wk-view-actions button{font-size:12px}
.wk-grid{grid-template-columns:300px minmax(340px,1fr) 290px;min-height:0}
.wk-grid.brief-closed{grid-template-columns:300px minmax(340px,1fr)}
.wk-grid .list-tools{padding:12px;gap:10px}.wk-grid .list-tools .searchbox{width:100%;min-width:0}
.wk-grid .list-tools input{min-width:0;width:100%;font-size:12px}
.wk-list-controls{display:flex;gap:6px;align-items:center}
.wk-list-controls select{min-width:0;max-width:150px;flex:1;font-size:11px;padding:7px 5px}
.wk-list-controls .icon-button{flex-shrink:0;height:30px;width:30px}.wk-list-controls .active{color:var(--accent)}
.wk-segment{display:flex;flex:1;gap:4px}.wk-segment button{padding:5px 9px;font-size:12px;border-radius:var(--ios-r-ctl,6px);border:1px solid transparent;color:var(--muted);white-space:nowrap}
.wk-segment button.active{background:var(--accent-soft);color:var(--accent-ink);border-color:var(--accent-line)}
.wk-segment span{font-size:10px;font-variant-numeric:tabular-nums;margin-left:3px}
.wk-advanced{display:grid;gap:8px;padding-top:8px;border-top:1px solid var(--line)}
.wk-advanced label{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}
.wk-advanced label select{flex:1;min-width:0;font-size:11px}.wk-advanced .text-button{justify-self:end;font-size:11px}
.wk-grid .list-caption{font-size:10px;padding:8px 12px}.wk-grid #task-items{flex:1;min-height:0;overflow-y:auto;scrollbar-gutter:stable}
.wk-row{display:block;width:100%;text-align:left;min-height:94px;padding:12px!important;animation:none!important}
.wk-row-head{display:flex;gap:8px;align-items:center;min-width:0;margin-bottom:7px}
.wk-row-head .avatar{width:30px;height:30px;font-size:12px;flex-shrink:0}
.wk-row-head strong{font-size:13px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
.wk-row-head time{font-size:10px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.wk-unread{font-size:10px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;line-height:18px;background:var(--accent);color:white;text-align:center;flex-shrink:0}
.wk-preview{font-size:12px;line-height:1.5;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wk-task-title{font-size:12px;font-weight:500;line-height:1.5;margin-bottom:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wk-row footer{font-size:10px;gap:8px;margin-top:9px;display:flex;justify-content:space-between;flex-wrap:wrap;color:var(--muted)}
.wk-row .wk-collaborator{display:block;margin-top:6px;font-size:10px;color:var(--muted);line-height:1.5}
.wk-status.reply{color:var(--accent-ink)}.wk-row.selected .wk-preview,.wk-row.selected footer{color:var(--ink-3)}
.wk-grid input[type=search]::-webkit-search-cancel-button{display:none}
.wk-search-clear{width:22px;height:22px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;color:var(--muted);background:var(--bg-hover)}
.wk-search-clear[hidden]{display:none}.wk-search-clear:hover{color:var(--ink-1);background:var(--accent-soft)}.wk-search-clear svg{width:13px;height:13px}
.wk-row-states{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.wk-reception{display:inline-flex;align-items:center;gap:4px;padding:2px 6px;border:1px solid;border-radius:5px;font-size:10px;font-weight:550;line-height:1.4;white-space:nowrap}
.wk-reception:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}
.wk-reception-ai{color:#315abc;background:#edf2ff;border-color:#cfdbff}
.wk-reception-human{color:#97600e;background:#fff5df;border-color:#f1da9e}
.wk-reception-silenced{color:#b04c68;background:#fff0f4;border-color:#f3c8d5}
[data-theme=dark] .wk-reception-ai{color:#a8c0ff;background:#22334e;border-color:#3b5380}
[data-theme=dark] .wk-reception-human{color:#f3ce83;background:#3d3220;border-color:#69522a}
[data-theme=dark] .wk-reception-silenced{color:#f1adc3;background:#432a35;border-color:#744155}
.dashboard-range{flex-shrink:0;flex-wrap:wrap;justify-content:flex-end}.dashboard-range button{white-space:nowrap;display:inline-flex;align-items:center;gap:5px}
.dashboard-range button svg{width:13px;height:13px}.dashboard-date-fields{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;margin:20px 0}
.dashboard-date-fields .form-field{display:grid;gap:8px;font-size:12px;color:var(--muted)}.dashboard-date-fields input{width:100%;min-width:0;font:inherit;min-height:40px;color:var(--ink-1);background:var(--bg-surface)}
.dashboard-date-divider{padding-top:22px;font-size:12px;color:var(--muted)}.dashboard-date-note{font-size:12px;line-height:1.7;color:var(--muted)}
@media(max-width:720px){.dashboard-range{justify-content:flex-start}.dashboard-date-fields{gap:8px}}
.wk-customer-work{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:5px 12px;font-size:11px;min-height:30px;background:var(--bg-surface);border-bottom:1px solid var(--line);flex-shrink:0;color:var(--muted)}
.wk-customer-work>div{display:flex;gap:8px}.wk-customer-work button{font-size:11px}
.wk-grid .project-context{padding:9px 12px;flex-shrink:0}.wk-grid .current-action strong{font-size:13px}.wk-grid .context-meta{font-size:11px}
.wk-grid .conversation-head{padding:10px 12px}.wk-grid .conversation-head strong{font-size:14px}
.wk-grid .chat-feed{flex:1;min-height:120px}.wk-grid #action-area{max-height:34%;overflow-y:auto;flex-shrink:0}
.wk-grid #composer{min-height:64px;height:78px;max-height:150px}.wk-grid .composer-head{font-size:11px}
.wk-dialog-tasks{display:grid;gap:0}.wk-dialog-tasks button{display:flex;width:100%;text-align:left;align-items:center;gap:15px;padding:14px 4px;border-bottom:1px solid var(--line)}
.wk-dialog-tasks button>div{flex:1}.wk-dialog-tasks strong{display:block;font-size:13px;font-weight:500}.wk-dialog-tasks small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.wk-dialog-tasks span{font-size:11px;white-space:nowrap}
.wk-help p{font-size:13px;line-height:1.7;color:var(--muted)}.wk-help h3{font-size:14px;font-weight:550}
@media(min-width:1600px){.wk-grid{grid-template-columns:320px minmax(440px,1fr) 320px}.wk-grid.brief-closed{grid-template-columns:320px minmax(440px,1fr)}}
@media(max-width:1240px){.wk-grid{grid-template-columns:270px minmax(300px,1fr) 245px}.wk-grid.brief-closed{grid-template-columns:280px minmax(300px,1fr)}}
@media(max-width:960px){.wk-grid{grid-template-columns:260px minmax(280px,1fr)}.wk-grid.brief-closed{grid-template-columns:260px minmax(280px,1fr)}.wk-grid:not(.brief-closed)>.task-list{display:none}.wk-grid:not(.brief-closed){grid-template-columns:minmax(280px,1fr) 230px}}
@media(max-width:720px){.wk-views .tabs{gap:18px}.wk-view-actions [data-work-help]{display:none}.wk-grid,.wk-grid.brief-closed,.wk-grid:not(.brief-closed){display:flex}.wk-grid>.task-list{display:none!important;width:100%}.wk-grid.show-list>.task-list{display:flex!important}.wk-grid.show-list>.conversation,.wk-grid.show-list>.handoff{display:none}.wk-grid>.conversation{width:100%;min-width:0}.wk-grid>.handoff{display:none}.wk-grid .conversation-head .record-name{min-width:0}.wk-dialog-tasks button{flex-wrap:wrap}.wk-grid .chat-feed{min-height:80px}}
/* Conversation-first layout: business detail stays accessible without occupying the feed. */
.wk-grid .conversation-head{min-height:58px;gap:8px;padding:8px 12px;flex-shrink:0}
.wk-grid .conversation-head .record-name{min-width:0;flex:1;justify-content:flex-start;padding:0}
.wk-grid .conversation-head .record-name>span{min-width:0}.wk-grid .record-name strong,.wk-grid .record-name small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.wk-grid .conversation-head .avatar{width:32px;height:32px;font-size:13px}
.wk-grid .conversation-head>div{display:flex;align-items:center;gap:6px;flex-shrink:0}
.wk-grid .conversation-head .text-button{font-size:11px}
.wk-grid .reception-picker{display:block;position:relative;margin:0;padding:0;border:0;background:none;font-size:11px}
.wk-grid .reception-picker summary{display:flex;align-items:center;gap:4px;cursor:pointer;padding:5px 7px;border:1px solid var(--line);border-radius:6px;white-space:nowrap;list-style:none}
.wk-grid .reception-picker summary::-webkit-details-marker{display:none}.wk-grid .reception-picker summary:hover{background:var(--bg-hover)}
.wk-grid .reception-picker .state{width:auto;margin:0;color:var(--ink-2)}.wk-grid .reception-picker summary svg{width:12px;height:12px;transform:rotate(90deg)}
.wk-grid .reception-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:30;display:grid;gap:4px;width:146px;padding:6px;background:var(--bg-surface);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow-pop)}
.wk-grid .reception-menu button{justify-content:flex-start;border:0;padding:8px;font-size:12px}
.wk-customer-work{gap:6px;min-height:38px;padding:5px 12px}.wk-customer-work>select{font-size:12px;flex:1;min-width:0;max-width:none;padding:4px 22px 4px 6px;border-color:transparent;white-space:nowrap;text-overflow:ellipsis;background:var(--bg-surface)}
.wk-customer-work>div{flex-shrink:0;gap:2px}.wk-customer-work button{padding:4px 6px}.wk-customer-work svg{width:12px;height:12px}
.wk-grid .project-context{display:none;padding:8px 12px;max-height:135px;overflow-y:auto;border-bottom:1px solid var(--line)}
.wk-grid .wk-context-open .project-context{display:block}.wk-grid .current-action{margin:0 0 6px}.wk-grid .current-action strong{max-width:none;font-size:12px}
.wk-grid .chat-feed{padding:12px 16px;min-height:120px;scrollbar-gutter:stable}.wk-grid .chat-time-note{display:none}
.wk-grid .message{font-size:13px;margin-bottom:11px;max-width:88%;line-height:1.5}.wk-grid .message-bubble{padding:8px 11px}
.wk-grid .message footer{margin-top:4px;font-size:10px;line-height:1.4}.wk-grid .translation{font-size:12px;line-height:1.5;margin-top:3px}
.wk-grid .translation:empty{display:none}.wk-grid .media-preview{max-height:170px;margin-top:5px}.wk-grid .media-label{display:none}
.wk-grid #action-area{padding:8px 12px;max-height:40%;overflow-y:auto;flex-shrink:0}
.wk-grid .composer-head{margin:0 0 6px;font-size:11px;gap:6px}.wk-grid .composer-head button{font-size:11px;padding:2px 4px}
.wk-grid .reply-notice{font-size:10px;margin:0 0 5px;line-height:1.4}
.wk-grid #composer{display:block;width:100%;height:52px;min-height:42px;max-height:90px;padding:8px 10px;font-size:13px;line-height:1.5}
.wk-grid .composer-footer{margin-top:7px;gap:6px;flex-wrap:wrap}.wk-grid .composer-footer>div:last-child{display:flex;align-items:center;gap:3px;margin-left:auto}
.wk-grid .composer-footer .primary{font-size:12px;padding:6px 10px}.wk-grid .composer-footer .primary svg{width:15px;height:15px}
.wk-grid .composer-delivery-note{display:none}.wk-grid .channel-tools{gap:4px;margin:0;flex-wrap:wrap}
.wk-grid .channel-tools button{padding:4px;font-size:11px}.wk-grid .channel-tools .icon{width:15px;height:15px}
.wk-grid .channel-tools select{font-size:11px;max-width:72px;padding:4px 2px}.wk-grid .channel-tools label{font-size:11px;white-space:nowrap}
.wk-grid .message-image-file{display:block;font-size:10px;line-height:1.4;margin-top:4px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wk-grid .message-image-file:empty{display:none}
@media(max-width:720px){.wk-grid .conversation-head{padding:8px 10px;gap:4px}.wk-grid .conversation-head>div{gap:3px}.wk-grid .conversation-head .record-name small{font-size:10px}.wk-grid .conversation-head .avatar{display:none}.wk-grid .conversation-head [data-report].text-button{font-size:0;gap:0;padding:4px}.wk-grid .conversation-head [data-report].text-button svg{width:16px;height:16px}.wk-customer-work{padding:4px 8px}.wk-customer-work>select{font-size:11px}.wk-customer-work button{font-size:10px;padding:4px}.wk-grid .chat-feed{padding:10px 12px}.wk-grid .message{max-width:94%}.wk-grid #action-area{padding:7px 10px}.wk-grid .channel-tools{gap:2px}.wk-grid .channel-tools [data-attach] span{display:none}.wk-grid .channel-tools select{max-width:56px}}
.dashboard-noise{margin:0 0 20px;padding:14px 18px;border:1px solid var(--line);border-radius:14px;background:var(--bg-surface);font-size:13px}.dashboard-noise summary{cursor:pointer;color:var(--muted)}.dashboard-noise>div{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px}.dashboard-noise .quality-row{min-width:150px;display:flex;gap:16px}.dashboard-noise p{font-size:12px;margin:10px 0 0}

/* Procurement scope stays visible while the salesperson works through the queue. */
.wk-stage-filter{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}
.wk-stage-filter>span{flex-shrink:0}.wk-stage-filter select{flex:1;min-width:0;width:100%;padding:6px 8px;font-size:12px;color:var(--ink)}
.wk-stage-project{display:flex;align-items:center;gap:6px;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:var(--muted)}
.wk-stage-project .stage-dot{flex-shrink:0;width:6px;height:6px}
#wk-current-conversation{flex-shrink:0;border-bottom:1px solid var(--line);padding:8px 12px;background:var(--accent-soft)}
.wk-current-entry{display:grid;gap:4px;width:100%;text-align:left;color:var(--accent-ink);padding:4px 0}
.wk-current-entry strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wk-current-entry span{font-size:10px;color:var(--muted)}
.wk-grid #task-items,.table-scroll[data-scroll-scope],.panel-content[data-scroll-scope]{overflow-anchor:none}
.records .owner-assign{max-width:100%;gap:5px;border:1px solid transparent;cursor:pointer;transition:background .12s,border-color .12s}
.records .owner-assign>.icon:first-child{width:13px;height:13px}.records .owner-assign>.icon:last-child{width:12px;height:12px;opacity:.6}
.records .owner-assign:hover{color:var(--accent-ink);background:var(--accent-soft);border-color:var(--accent-line)}
.records .owner-assign:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
