/* Workspace scale: readable 14/22 text and the shared polish control scale.
   Conversation surfaces keep their separately scoped reading scale. */
body.portal-page.dashboard-page{--workspace-header-height:52px;--workspace-control-height:var(--ui-size-control);--control-height:var(--ui-size-control);--control-radius:8px;--font-body:14px;--font-small:13px;--font-caption:12px;font-size:14px;line-height:22px;--font-family:"Inter","PingFang SC","Hiragino Sans GB","Noto Sans CJK SC","Noto Sans SC","Microsoft YaHei",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-family:var(--font-family);background:#fff}
/* Default controls share a scale beyond list toolbars: forms, drawers and dialogs.
   Named icon/composer variants retain their own geometry; textareas grow naturally. */
body.portal-page.dashboard-page .portal-button,
body.portal-page.dashboard-page .select-menu-trigger,
body.dashboard-page .select-menu.is-field .select-menu-trigger{box-sizing:border-box;min-height:var(--control-height);padding-block:7px;font-size:14px;line-height:20px;border-radius:8px}
body.portal-page.dashboard-page :is(.portal-input,.portal-select),
body.dashboard-page .team-name-field input{box-sizing:border-box;height:var(--ui-size-field);min-height:var(--ui-size-field);padding-block:calc((var(--ui-size-field) - var(--ui-control-line) - 2px)/2);font-size:var(--ui-field-font);line-height:var(--ui-control-line);border-radius:var(--radius-control)}
body.portal-page.dashboard-page .portal-textarea{box-sizing:border-box;padding-block:10px;font-size:14px;line-height:22px;border-radius:8px}
body.dashboard-page .select-menu-option{min-height:var(--control-height);padding-block:7px;font-size:14px;line-height:20px}
body.dashboard-page .portal-dialog :is(.portal-label,.team-name-field,.team-lead-field,legend){font-size:13px;line-height:20px}
body.dashboard-page .portal-dialog .dialog-heading h2{font-size:17px;line-height:26px;font-weight:600}
body.portal-page.dashboard-page:not(.agent-header-merged):not(.team-header-merged) .app-topbar{height:52px;min-height:52px;padding-block:0;background:#fff}
body.portal-page.dashboard-page .app-main{padding-top:12px}
body.portal-page.dashboard-page .app-topbar-right{gap:12px}
.dashboard-page .app-topbar .workspace-user .app-avatar{border:0;background:transparent;box-shadow:none;overflow:visible}
.dashboard-page [data-account-portrait] .agent-avatar-art{width:30px;height:30px;max-width:none}
body.dashboard-page .app-view:not(#view-agents):not(#view-home):not(#view-teams){font-size:14px;line-height:22px}
body.dashboard-page :is(.work-list-toolbar,.studio-library-toolbar,.studio-editor-actions,.studio-preview-footer) :is(.portal-button,.select-menu-trigger,.action-menu>summary),
body.dashboard-page .work-list-toolbar :is(.portal-input,input[type=search]),
body.dashboard-page .studio-library-toolbar input{box-sizing:border-box;min-height:36px;height:36px;padding:7px 11px;font:inherit;font-size:13px;line-height:20px;font-weight:500;border-radius:8px;white-space:nowrap}
body.dashboard-page :is(.work-list-toolbar,.studio-library-toolbar) .select-menu-trigger{gap:8px;background:#fff}
body.dashboard-page :is(.work-list-toolbar,.studio-library-toolbar) .select-menu{flex:none;min-width:0}
body.dashboard-page .work-list-toolbar{min-height:48px;padding:0 0 11px;gap:8px;margin:0;border-bottom:1px solid #e9e9eb;background:#fff;top:52px}
body.dashboard-page .work-list-toolbar>.work-toolbar-search{flex:1;min-width:150px}
body.dashboard-page .work-list-toolbar .field-search input{padding-left:34px;font-weight:400}
body.dashboard-page .work-list-toolbar .customer-search-field input{padding-left:36px;padding-right:34px;font-weight:400}
body.dashboard-page .studio-customer-trigger{min-height:var(--control-height);padding:7px 12px;border-radius:8px;font-size:14px;line-height:20px}
body.dashboard-page .studio-customer-trigger strong{line-height:20px}
body.dashboard-page .work-list-toolbar .customer-select-all{font-size:12px;white-space:nowrap}
body.dashboard-page .action-menu-panel{max-width:calc(100vw - 24px);box-sizing:border-box}
body.dashboard-page .work-toolbar-more>.action-menu-panel{width:224px;min-width:224px;padding:5px}
body.dashboard-page .work-toolbar-more .action-menu-panel :is(button,a){width:100%;min-height:36px;box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;padding:7px 10px;white-space:normal;text-align:left;font-size:13px;line-height:20px;border-radius:5px}
body.dashboard-page .customer-selection-bar{display:grid;gap:2px;padding:0 0 5px;margin:0 0 5px;border-bottom:1px solid #e9e9eb}
body.dashboard-page .customer-selection-bar[hidden]{display:none}
body.dashboard-page .customer-row{padding:24px 0;gap:15px;line-height:22px}
body.dashboard-page .customer-row h3{font-size:16px;line-height:24px;font-weight:600}
body.dashboard-page .customer-row-meta{margin-top:6px;font-size:12px;line-height:20px;gap:6px 10px}
body.dashboard-page .customer-info-row{margin-top:8px;font-size:13px;line-height:21px}
body.dashboard-page .customer-info-row p{font-size:13px;line-height:21px;-webkit-line-clamp:2}
body.dashboard-page .customer-row .customer-info-label{font-size:12px;line-height:21px}
body.dashboard-page .customer-row .tag{line-height:18px;padding:2px 7px;font-size:12px}

/* A task is a compact record: title and scope, a comparison strip, then its state. */
.dashboard-page [data-tasks-list],.dashboard-page [data-activity-list]{border:0;display:grid;gap:8px;margin-top:10px}
.dashboard-page .task-row{padding:0;position:relative;display:block;border:1px solid var(--border-default);border-radius:var(--radius-panel);background:#fff;min-width:0;box-shadow:none;transition:border-color 140ms,background 140ms}
.dashboard-page .task-row:hover,.dashboard-page .activity-row:hover{background:#fcfcfc;border-color:#cfd0d4}
.dashboard-page .task-row-open{display:grid;grid-template-columns:minmax(200px,1fr) minmax(270px,.85fr) 148px;grid-template-areas:'identity metrics state' 'identity metrics time';align-items:center;gap:6px 20px;width:100%;min-width:0;border:0;background:transparent;padding:20px 44px 20px 20px;text-align:left;color:var(--text-primary);}
.task-card-heading,.activity-card-heading{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:9px;min-width:0}
.task-card-mark,.activity-card-mark{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;flex:none;border:1px solid #e2e7ed;border-radius:7px;background:#f3f6f9;color:#688099}
.task-card-mark svg,.activity-card-mark svg{width:15px;height:15px}
.dashboard-page .task-row-identity{grid-area:identity;min-width:0;display:flex;flex-direction:column;gap:8px}
.dashboard-page .task-row-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-width:0;font-size:14px;line-height:22px;font-weight:600;white-space:normal;overflow-wrap:anywhere}
.task-card-tags{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
.task-market-tag,.task-role-tag,.activity-strategy-tag,.activity-round-count{display:inline-flex;align-items:center;max-width:100%;padding:1px 6px;border-radius:5px;font-size:12px;line-height:18px;font-weight:400;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.task-market-tag{background:#edf3f8;border:1px solid #dae5ef;color:#456781}
.task-role-tag{background:#f5f0e9;border:1px solid #e9dfd1;color:#7c684c}
.dashboard-page .task-row-schedule{font-size:12px;line-height:18px;color:#6a6b72;padding-left:37px}
.task-card-metrics{grid-area:metrics;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:center;min-width:0;padding:4px 0 4px 18px;border-left:1px solid #ececee}
.dashboard-page .task-row-progress,.dashboard-page .task-row-stats{display:contents}
.dashboard-page .task-card-metric{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;font-variant-numeric:tabular-nums}
.dashboard-page .task-card-metric strong{font-size:20px;font-weight:550;line-height:24px;letter-spacing:-.02em;color:var(--text-primary);}
.dashboard-page .task-card-metric small{font-size:12px;font-weight:400;line-height:18px;color:#71727a;white-space:normal}
.dashboard-page .task-card-metric.is-result strong{color:#467358}
.dashboard-page .task-row-state{grid-area:state;display:flex;justify-content:flex-end;align-self:end;min-width:0;padding:0;max-width:100%}
.dashboard-page .task-row-state .task-status{max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:18px;font-weight:500;padding:3px 7px;border-radius:5px}
.dashboard-page .task-row-time{grid-area:time;display:flex;align-items:flex-end;flex-direction:column;gap:2px;align-self:start;font-size:12px;line-height:18px;color:#777880;white-space:nowrap}
.dashboard-page .task-source-tag{font-size:11px;font-weight:400;background:none;padding:0;color:#81828a}
.dashboard-page .task-row-actions{position:absolute;top:11px;right:6px;margin:0;align-self:start}
.dashboard-page .task-row-actions .action-menu>summary{color:#707078;min-width:32px;min-height:32px}
.dashboard-page .activity-row{display:flex;align-items:flex-start;gap:6px;position:relative;min-width:0;padding:20px 8px 20px 20px;border:1px solid var(--border-default);border-radius:var(--radius-panel);background:#fff;box-shadow:none;transition:border-color 140ms,background 140ms}
.dashboard-page .activity-card-info{display:grid;grid-template-columns:minmax(200px,1fr) minmax(250px,.85fr) 120px;gap:20px;align-items:center;flex:1;min-width:0}
.dashboard-page .activity-name{min-width:0}
.dashboard-page .activity-card-heading>.marketing-task-title{flex:1;font-size:14px;font-weight:600;line-height:22px;text-align:left;white-space:normal;min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.activity-card-mark{color:#7b6a95;background:#f3eff7;border-color:#e7e0ee}
.dashboard-page .activity-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:6px;padding-left:37px}
.activity-strategy-tag{max-width:230px;background:#f2f0f5;color:#766587;border:1px solid #e7e2ed}
.dashboard-page .activity-round-count{color:#7c684c;background:#f5f0e9;border:1px solid #e9dfd1;font-size:12px;padding:1px 6px;white-space:nowrap}
.dashboard-page .activity-name>time{display:block;font-size:12px;line-height:18px;color:#777880;margin-top:4px;padding-left:37px;font-variant-numeric:tabular-nums}
.dashboard-page .activity-card-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;border-left:1px solid #ececee;padding:4px 0 4px 18px;margin:0;min-width:0}
.dashboard-page .activity-card-metrics .activity-count{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.dashboard-page .activity-count>strong{font-size:20px;line-height:24px;font-weight:550;letter-spacing:-.02em;color:var(--text-primary);font-variant-numeric:tabular-nums}
.dashboard-page .activity-count>span{font-size:12px;line-height:18px;font-weight:400;color:#71727a}
.activity-card-state{display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:0}
.activity-card-state .marketing-task-state{font-size:12px;padding:3px 7px;border-radius:5px;white-space:nowrap}
.activity-card-state .activity-warning{font-size:12px;color:#8c7045;line-height:18px}
.dashboard-page .activity-row>.action-menu{align-self:flex-start;margin-top:-4px}

/* Strategy library and editor share the same typographic scale and section rhythm. */
.studio-library-toolbar{display:flex;align-items:center;gap:8px;min-width:0;margin:0 0 12px;padding:0 0 11px;border-bottom:1px solid #e9e9eb}
.studio-library-toolbar>.work-toolbar-search{flex:1;min-width:0}
.studio-library-toolbar input{width:100%;border:1px solid #e4e4e8;border-radius:8px;background:#fafafa;font:inherit;outline:0}
.studio-library-toolbar input:focus{background:#fff;border-color:#999ca5}
.dashboard-page .studio-strategy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.dashboard-page .studio-strategy-card{display:flex;flex-direction:column;min-width:0;min-height:210px;padding:20px;border:1px solid var(--border-default);border-radius:var(--radius-panel);background:#fff;box-shadow:none}
.dashboard-page .studio-strategy-card:hover{border-color:#cfd0d4}
.dashboard-page .studio-strategy-card-head{display:flex;align-items:center;gap:7px;margin-bottom:12px;font-size:12px;color:#74757d}
.studio-scenario-icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:6px;background:#eef3f8;color:#607c97;flex:none}
.studio-scenario-icon svg{width:15px;height:15px}.studio-scenario-icon.is-exhibition{background:#f4eff7;color:#8c709e}.studio-scenario-icon.is-custom{background:#f6f2e9;color:#8d7a53}
.dashboard-page .studio-scenario-label{font-size:12px;font-weight:500;color:#526f8a;line-height:18px;padding:1px 6px;border-radius:4px;background:#eef3f8}
.studio-scenario-label.is-exhibition{color:#7e608f;background:#f4eff7}.studio-scenario-label.is-custom{color:#806a43;background:#f6f2e9}.studio-language-tag{margin-left:auto;font-size:12px;color:#74757d}
.dashboard-page .studio-strategy-name{font-size:16px;line-height:24px;font-weight:600;color:var(--text-primary);margin:0 0 6px;text-align:left;white-space:normal}
.dashboard-page .studio-strategy-goal{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:21px;color:#66676f;margin:0 0 12px;min-height:0}
.studio-round-plan{display:flex;flex-direction:column;gap:6px;list-style:none;margin:0 0 12px;padding:0}
.studio-round-plan li{display:flex;align-items:center;gap:8px;min-width:0;font-size:12px;line-height:18px;color:#66676f}
.studio-round-plan b{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;flex:none;font-size:11px;line-height:1;border:1px solid #e2e2e6;border-radius:50%;color:#6f7078;background:#fafafa;font-weight:500}
.studio-round-plan li>span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.studio-round-plan small{font-size:12px;color:#7b7c85;font-variant-numeric:tabular-nums}.studio-plan-more{padding-left:25px;color:#7b7c85}
.dashboard-page .studio-strategy-actions{display:flex;align-items:center;gap:8px;margin-top:auto;padding:10px 0 0;border-top:1px solid #ededf0}
.studio-strategy-actions>.studio-use{font-size:13px;min-height:32px;padding:5px 8px}.studio-use svg{width:14px;height:14px}.studio-round-count{margin-left:auto;font-size:12px;line-height:18px;color:#71727a}.studio-strategy-actions>.action-menu{margin-right:-6px}
.studio-library-empty{padding:40px 20px;grid-column:1/-1;text-align:center;color:#707078}.studio-library-empty h2{font-size:16px;font-weight:500;margin:0}
body.dashboard-page .studio-editor-bar{min-height:52px;padding:0 0 12px;margin-bottom:18px;gap:10px}
body.dashboard-page .studio-name{font-size:18px;line-height:26px;font-weight:600}
body.dashboard-page .studio-editor-layout{grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:24px;align-items:start}
body.dashboard-page .studio-canvas{min-width:0;padding:0}
body.dashboard-page .studio-section{padding:0 0 20px;margin:0 0 20px;border:0;border-bottom:1px solid #e9e9eb}
body.dashboard-page .studio-section-heading{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px}
.studio-section-heading>span{display:grid;place-items:center;width:26px;height:26px;flex:none;background:#f2f2f3;border-radius:7px;color:#717179;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}
body.dashboard-page .studio-section-heading h2{font-size:15px;line-height:22px;font-weight:600;margin:0;color:#242426}
body.dashboard-page .studio-section-heading p{margin:2px 0 0;font-size:12px;line-height:18px;color:#71727a}
body.dashboard-page .studio-brief .portal-field{display:grid;gap:6px;margin-top:12px}
body.dashboard-page .studio-canvas .portal-label{font-size:13px;line-height:20px;font-weight:500;color:#52525b}
body.dashboard-page .studio-canvas :is(.portal-input,.portal-textarea){font-size:14px;line-height:22px;padding:8px 11px;border-radius:8px}
body.dashboard-page .studio-scenario{gap:4px;display:flex;flex-wrap:wrap;margin:0;padding:3px;background:#f3f3f4;border-radius:8px;width:fit-content}
body.dashboard-page .studio-scenario button{padding:6px 12px;min-height:32px;border-radius:6px;font-size:13px;line-height:20px}
body.dashboard-page .studio-scenario button[aria-pressed=true]{background:#fff;box-shadow:0 1px 3px #0000000a;color:#242426}
body.dashboard-page .studio-round-heading{margin:0 0 8px;align-items:center}
body.dashboard-page .studio-round-heading h3{font-size:13px;font-weight:500;margin:0;color:#52525b}
body.dashboard-page .studio-rounds{margin-bottom:10px}
body.dashboard-page .studio-round-meta{margin:0 0 10px}
body.dashboard-page .studio-writing-sheet{border-radius:10px;overflow:hidden}
body.dashboard-page .studio-writing-block{padding:14px}
body.dashboard-page .studio-attachment-heading{margin-bottom:10px}
body.dashboard-page .studio-attachment-heading h2{font-size:14px;line-height:22px;font-weight:600}
body.dashboard-page .studio-preview{padding:16px;border:1px solid #e6e6e8;border-radius:10px;background:#fafafa;top:68px;min-width:0}
body.dashboard-page .studio-preview-heading{margin-bottom:12px}
body.dashboard-page .studio-preview-heading h2{font-size:15px;line-height:22px;font-weight:600}
body.dashboard-page .studio-email-preview{min-height:230px;margin-top:12px;background:#fff;border-radius:8px}
body.dashboard-page .studio-preview-placeholder{min-height:220px;padding:24px;font-size:13px;line-height:21px;color:#777880}
body.dashboard-page .studio-preview-footer{margin-top:12px;align-items:center;gap:10px}
body.dashboard-page .studio-preview-safety{font-size:12px;line-height:18px;margin-top:8px;color:#71727a}

/* Inbox: compact identity, readable records, and quiet directional contrast. */
body.dashboard-page .message-window-heading{height:52px;min-height:52px;padding:8px 18px;box-sizing:border-box}
body.dashboard-page .message-window-heading h2{font-size:16px;line-height:24px;font-weight:600}
body.dashboard-page .message-window :is(.portal-icon-button,.message-menu-refresh){transition:background 140ms,color 140ms,transform 140ms}
body.dashboard-page .message-window .portal-icon-button{width:32px;height:32px;min-height:32px;padding:7px;border-radius:8px;color:#60616a}
body.dashboard-page .message-window .portal-icon-button:hover{background:#eeeeef;color:#252528}
body.dashboard-page .message-window :is([data-unified-refresh],.message-menu-refresh)[aria-busy=true] svg{animation:inbox-spin .8s linear infinite}
@keyframes inbox-spin{to{transform:rotate(360deg)}}
.message-window .unified-messages{grid-template-columns:300px minmax(0,1fr)}
.message-window .unified-directory{background:#fafafa;border-color:#e8e8eb}
.message-window .unified-filters{min-height:44px;padding:0 12px;gap:18px}
.message-window .unified-filters button{font-size:13px;line-height:20px;padding-block:10px}
.message-window .unified-tools{padding:10px 12px;gap:7px}
.message-window .unified-search input{height:36px;min-height:36px;font-size:13px;line-height:20px;border-radius:8px}
.message-window .unified-rfq-filter{height:32px;min-height:32px;padding:5px 7px;font-size:12px;border-radius:6px}
.message-window .unified-list{padding:0 6px 8px}
.message-window .unified-open{gap:9px;min-height:0;padding:11px 8px;border:1px solid transparent;border-radius:8px;background:transparent}
.message-window .unified-open:hover{background:#f1f1f2}
.message-window .unified-row.is-selected .unified-open{background:#eeeef0;border-color:#e2e2e6;box-shadow:none}
.message-window .unified-symbol{width:30px;height:30px;font-size:11px;font-weight:600;letter-spacing:-.02em;border-radius:8px;background:#fff;border:1px solid #e2e2e7;color:#676a73}
.message-window .unified-row[data-conversation-kind=guest] .unified-symbol,.message-window .unified-row[data-conversation-kind=partner] .unified-symbol{background:#f2eef6;border-color:#e4ddeb;color:#7a668f}
.message-window .unified-row-copy{gap:3px}.message-window .unified-row-top{align-items:center;gap:6px}
.message-window .unified-row-top strong{font-size:13px;line-height:20px;font-weight:500;color:#34353b}
.message-window .unified-row.is-unread .unified-row-top strong{font-weight:600;color:#202023}
.message-window .unified-row-top time{font-size:11px;line-height:18px;color:#7e7f87}
.message-window .unified-row-preview{white-space:normal;font-size:12px;line-height:19px;color:#74757e;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.message-window .unified-row-meta{gap:6px;font-size:11px;line-height:16px;color:#777781}
.message-window .unified-row-meta>span:first-child{background:none;border:0;color:#777781;padding:0;font-size:11px}
.message-window .unified-row-unread{font-size:10px;min-width:16px;height:16px;background:#5f7169}
.message-window .unified-welcome{padding:28px;overflow:auto;align-items:center;justify-content:center}
.unified-welcome-content{width:min(100%,480px);text-align:left;margin-top:-24px}
.unified-welcome-symbol{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#f1f2f1;color:#67776d;margin-bottom:16px}
.message-window .unified-welcome-symbol svg{width:24px;height:24px;margin:0;color:inherit}
.message-window .unified-welcome h2{font-size:20px;line-height:28px;font-weight:600;color:#242426;margin:0 0 5px}
.message-window .unified-welcome p{font-size:13px;line-height:22px;color:#74757c;margin:0}

.unified-recent{border-top:1px solid #e9e9ec}
.unified-recent-item{display:flex;align-items:center;gap:12px;width:100%;padding:12px 0;border:0;border-bottom:1px solid #e9e9ec;background:none;text-align:left;cursor:pointer;font:inherit;color:#303037;transition:background 140ms}
.unified-recent-item:hover{background:#fafafa}.unified-recent-item>span:first-child{display:grid;gap:3px;flex:1;min-width:0}
.unified-recent-item strong{font-size:13px;line-height:20px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.unified-recent-item small{font-size:12px;line-height:19px;color:#75757e;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.unified-recent-meta{font-size:11px;line-height:18px;color:#777781;white-space:nowrap}.unified-recent-arrow{font-size:16px;color:#777781}

.message-window .unified-detail-heading{min-height:60px;padding:10px 18px;gap:10px;border-bottom:1px solid #e9e9ec}
.message-window .unified-detail-identity h2{font-size:14px;line-height:22px;font-weight:600;color:#29292d}
.message-window .unified-detail-identity p{margin:1px 0 0;font-size:12px;line-height:18px;color:#74747c}
.message-window .unified-detail-meta{min-height:0;padding:0;border:0;gap:8px;font-size:12px;line-height:18px;flex-wrap:wrap;justify-content:flex-end;max-width:45%}
.message-window .unified-detail-meta [data-unified-kind]{font-size:11px;line-height:18px;padding:2px 6px;border:1px solid #e5dfeb;border-radius:5px;background:#f4f0f7;color:#78628a}
.message-window .unified-detail-meta [data-unified-rfq-count]{color:#8c7245;font-size:11px}
.message-window .unified-detail-meta button{margin:0;font-size:12px;line-height:20px;min-height:28px;padding:4px 6px}
.message-window .unified-history{background:#fff;padding:22px clamp(16px,3vw,40px);scroll-padding-block:20px}
.message-window .unified-transcript-item{max-width:min(92%,780px);gap:8px;margin-bottom:20px}
.message-window .unified-transcript-bubble{border-color:#e6e6e9;border-radius:11px;padding:12px 14px;background:#fff;box-shadow:none}
.message-window .unified-transcript-item.is-outgoing .unified-transcript-bubble{background:#f6f6f7;border-color:#ededf0}
.message-window .unified-transcript-meta{font-size:11px;line-height:18px;color:#82828b;gap:4px 8px;margin-bottom:9px}
.message-window .unified-transcript-meta strong{font-size:12px;font-weight:600;color:#53535c}
.message-window .unified-transcript-meta time{font-size:11px}.message-window .unified-transcript-side{font-size:11px;color:#777781}
.message-window .unified-transcript-text{font-size:14px;line-height:24px;color:#303037;margin:0}
.message-window .unified-transcript-text.agent-reply{white-space:normal;font-size:14px;line-height:24px;font-weight:400}
.message-window .unified-transcript-text.agent-reply p{margin:0 0 12px}
.message-window .unified-transcript-text.agent-reply>:last-child{margin-bottom:0}
.message-window .unified-transcript-text.agent-reply strong{font-size:inherit;font-weight:600;color:#242426}
.message-window .unified-transcript-text.agent-reply :is(h2,h3,h4){font-size:15px;line-height:24px;font-weight:600;margin:18px 0 8px}
.message-window .unified-transcript-text.agent-reply :is(ul,ol){margin:8px 0 14px;padding-left:22px}
.message-window .unified-transcript-text.agent-reply li{margin:4px 0}
.message-window .unified-transcript-text.agent-reply li p{margin:0}
.message-window .unified-transcript-avatar{width:28px;height:28px;font-size:11px;border-radius:8px;background:#f4f4f5;border:1px solid #e7e7eb;color:#777781}
.message-window .unified-transcript-item.is-outgoing .unified-transcript-avatar{background:#eef3f0;border-color:#dce7e0;color:#53735f}
.message-window .unified-rfq{margin:22px 0 4px;padding:16px;border-color:#e5dfd3;background:#fdfbf7;border-radius:10px}
.message-window .unified-rfq header{margin-bottom:12px}.message-window .unified-rfq header strong{font-size:14px}.message-window .unified-rfq header span{font-size:12px;color:#8c7245}
.message-window .unified-rfq dl{gap:8px 12px;font-size:13px;line-height:22px}
.message-window .unified-stage .message-contact-heading{min-height:60px;border-bottom:1px solid #e9e9ec;padding:10px 18px}
.message-window .unified-stage .message-contact-heading h2{font-size:14px;line-height:22px;font-weight:600}
.message-window .unified-stage .message-contact-role,.message-window .unified-stage .message-contact-identity p{font-size:12px;color:#74747c}
.message-window .unified-stage .message-history{background:#fff;padding:20px 24px}
.message-window .unified-stage .message-bubble,.message-window .unified-stage .message-bubble.is-outgoing{max-width:min(96%,760px);width:100%;padding:16px;border:1px solid #e6e6e9;border-radius:10px;background:#fff;margin:0 auto 18px 0;box-shadow:none}
.message-window .unified-stage .message-bubble.is-outgoing{background:#f6f6f7;margin-left:auto;margin-right:0}
.message-window .message-bubble-heading{align-items:flex-start;gap:10px}.message-author{display:flex;flex-direction:column;gap:3px;min-width:0}
.message-window .message-bubble-who{font-size:12px;font-weight:600;color:#53535c}.message-window .message-bubble-heading time{font-size:11px;color:#7e7e88}
.message-window .message-bubble-meta{margin-top:0;gap:6px;font-size:11px}.message-window .message-mail-state{font-size:11px;padding:1px 5px;border-radius:4px;background:#eeeef1;color:#71717b}
.message-window .message-subject{font-size:15px;line-height:24px;margin:14px 0 6px;font-weight:600;color:#29292d}
.message-window .message-addresses{font-size:12px;line-height:20px;color:#777781;margin:0 0 12px;overflow-wrap:anywhere}
.message-window .message-body{font-size:14px;line-height:24px;color:#303037;white-space:pre-wrap;max-width:72ch}
.message-window .message-expand{font-size:12px;margin:8px -6px 0;padding:5px 6px;border-radius:5px;color:#6d6d78}
.message-window .message-bubble-actions{border-top:1px solid #e7e7eb;padding-top:10px;margin-top:14px;gap:8px}.message-window .message-bubble-actions .portal-button{font-size:13px;min-height:32px;padding:5px 10px}
.message-window .message-contact-actions .action-menu-panel{padding:5px}
.message-window .message-contact-actions .action-menu-panel>[data-menu-action]{display:flex;align-items:center;justify-content:flex-start;gap:7px;width:100%;max-width:none;min-height:36px;margin:0;padding:7px 10px;box-sizing:border-box;font-size:13px;line-height:20px;white-space:normal}
.message-window .message-contact-actions .action-menu-panel>[data-menu-action]>svg{width:15px;height:15px;flex:none}
.message-window [data-message-reply-unavailable-copy]:empty{display:none}.message-window .message-menu-refresh[aria-busy=true]::before{display:none}

@media(max-width:1250px){
 .dashboard-page .task-row-open{grid-template-columns:minmax(180px,1fr) minmax(240px,.9fr);grid-template-areas:'identity state' 'identity metrics' 'time time';gap:7px 16px}
 .dashboard-page .task-row-state{align-self:center}.dashboard-page .task-row-time{flex-direction:row;align-items:center;gap:8px}
 .task-card-metrics{gap:10px;padding-left:16px}.dashboard-page .task-card-metric strong{font-size:18px}
 .dashboard-page .activity-card-info{grid-template-columns:minmax(180px,1fr) minmax(220px,.9fr);gap:8px 16px}
 .activity-card-state{grid-column:2;grid-row:1;align-items:flex-end}.dashboard-page .activity-name{grid-column:1;grid-row:1/3}.dashboard-page .activity-card-metrics{grid-column:2;grid-row:2}
 .dashboard-page .studio-strategy-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .message-window .unified-messages{grid-template-columns:280px minmax(0,1fr)}
 .message-window .unified-detail-meta [data-unified-rfq-count]{max-width:100%;white-space:normal}
}
@media(max-width:980px){
 body.dashboard-page .studio-editor-layout{grid-template-columns:minmax(0,1fr);gap:18px}
 body.dashboard-page .studio-preview{position:static}
 .message-window .unified-detail-heading{flex-wrap:wrap;gap:4px 8px}.message-window .unified-detail-identity{flex:1}
 .message-window .unified-detail-meta{max-width:100%;order:3;width:100%;justify-content:flex-start;padding-left:0}
 .message-window .unified-detail-meta button{margin-left:auto}
}
@media(max-width:760px){
 body.portal-page.dashboard-page{--workspace-control-height:40px;--control-height:40px}
 body.portal-page.dashboard-page .portal-button,body.portal-page.dashboard-page .select-menu-trigger,body.dashboard-page .select-menu.is-field .select-menu-trigger,body.dashboard-page .select-menu-option{min-height:40px;padding-block:9px}
 body.portal-page.dashboard-page :is(.portal-input,.portal-select),body.dashboard-page .team-name-field input{height:40px;min-height:40px;font-size:16px;padding-block:9px}
 body.portal-page.dashboard-page .portal-textarea{font-size:16px}
 body.portal-page.dashboard-page .app-main{padding-top:10px}
 body.dashboard-page :is(.work-list-toolbar,.studio-library-toolbar,.studio-editor-actions,.studio-preview-footer) :is(.portal-button,.select-menu-trigger,.action-menu>summary),body.dashboard-page .work-list-toolbar :is(.portal-input,input[type=search]),body.dashboard-page .studio-library-toolbar input{height:40px;min-height:40px;font-size:13px;padding-block:9px}
 body.dashboard-page :is(.work-list-toolbar,.studio-library-toolbar) input[type=search]{font-size:16px}
 body.dashboard-page .work-list-toolbar{padding-bottom:10px;gap:8px}
 body.dashboard-page .customer-row{padding:14px 0;gap:9px}.dashboard-page .customer-row h3{font-size:14px}
 .dashboard-page .task-row-open{grid-template-columns:minmax(0,1fr);grid-template-areas:'identity' 'metrics' 'state' 'time';gap:9px;padding:13px}
 .dashboard-page .task-card-heading{padding-right:24px;gap:8px}.task-card-tags{gap:4px}
 .task-card-metrics{grid-template-columns:repeat(5,minmax(0,1fr));border:0;border-top:1px solid #ededf0;padding:10px 0 0;gap:6px}
 .dashboard-page .task-card-metric strong{font-size:18px;line-height:22px}.dashboard-page .task-card-metric small{font-size:11px;line-height:17px}
 .dashboard-page .task-row-state{justify-content:flex-start}.dashboard-page .task-row-time{gap:8px;flex-wrap:wrap;font-size:11px}
 .dashboard-page .task-row-actions{top:8px;right:5px}.dashboard-page .task-row-actions .action-menu>summary{min-width:36px;min-height:36px}
 .dashboard-page .activity-row{padding:13px 8px 13px 13px}.dashboard-page .activity-card-info{grid-template-columns:minmax(0,1fr);gap:10px}
 .dashboard-page .activity-name{grid-area:auto}.dashboard-page .activity-card-meta{padding-left:0}.dashboard-page .activity-name>time{padding-left:0;font-size:11px}
 .dashboard-page .activity-card-metrics{grid-column:auto;grid-row:auto;grid-template-columns:repeat(4,minmax(0,1fr));padding:10px 0 0;border:0;border-top:1px solid #ededf0;gap:8px}
 .dashboard-page .activity-count>strong{font-size:18px;line-height:22px}.dashboard-page .activity-count>span{font-size:11px;line-height:17px}
 .activity-card-state{grid-column:auto;grid-row:auto;flex-direction:row;align-items:center;gap:8px}
 .dashboard-page .studio-strategy-grid{grid-template-columns:1fr;gap:10px}.studio-library-toolbar{flex-wrap:wrap;gap:8px;margin-bottom:12px}
 .studio-library-toolbar>.work-toolbar-search{flex-basis:100%}.studio-library-toolbar>.select-menu{flex:1}.studio-library-toolbar .select-menu-trigger{width:100%}
 .dashboard-page .studio-strategy-card{min-height:0;padding:15px}
 body.dashboard-page .studio-name{font-size:16px;line-height:24px}.studio-section-heading>span{width:24px;height:24px}
 body.dashboard-page .studio-canvas :is(.portal-input,.portal-textarea){font-size:16px}
 body.dashboard-page .studio-section{margin-bottom:18px;padding-bottom:18px}
 .message-window .unified-messages{grid-template-columns:1fr}.message-window .unified-open{padding:12px 9px}
 .message-window .unified-search input{font-size:16px;height:40px;min-height:40px}
 .message-window .unified-detail-heading{min-height:64px;padding:8px 12px}.message-window .unified-detail-meta{padding-left:40px}
 .message-window .unified-detail-identity h2{font-size:14px}.message-window .unified-detail-identity p{font-size:11px}
 .message-window .unified-history{padding:18px 12px}.message-window .unified-transcript-item{max-width:100%;gap:6px;margin-bottom:16px}
 .message-window .unified-transcript-avatar{width:24px;height:24px;font-size:10px}.message-window .unified-transcript-bubble{padding:10px 12px}
 .message-window .unified-stage .message-contact-heading{padding:9px 12px}.message-window .unified-stage .message-history{padding:16px 12px}
 .message-window .unified-stage .message-bubble,.message-window .unified-stage .message-bubble.is-outgoing{padding:13px;max-width:100%}
 .message-window .message-contact-actions .action-menu>summary{min-width:100px}
 .message-window .unified-rfq{padding:12px}.message-window .unified-rfq dl{grid-template-columns:56px minmax(0,1fr);gap:8px}
}
@media(prefers-reduced-motion:reduce){body.dashboard-page .message-window :is([data-unified-refresh],.message-menu-refresh)[aria-busy=true] svg{animation:none}}

/* One full-width customer record; overview is explicitly on the next grid row. */
body.dashboard-page .customer-row{grid-template-columns:22px minmax(0,1fr);grid-template-areas:none;gap:12px 14px;padding:20px 4px;align-items:start}
body.dashboard-page .customer-row-select{grid-column:1;grid-row:1;padding-top:1px}
body.dashboard-page .customer-card-main{grid-column:2;grid-row:1;min-width:0}
body.dashboard-page .customer-row-expanded{grid-column:2/-1;grid-row:2;grid-template-columns:minmax(0,1fr);gap:18px;margin:0;min-width:0;padding-top:16px}
body.dashboard-page .customer-row-expanded>div{min-width:0;max-width:100%;overflow-wrap:anywhere}
body.dashboard-page .customer-row-expanded p{max-width:none;font-size:13px;line-height:22px}
body.dashboard-page .customer-expanded-matching{padding-top:16px;border-top:1px solid #ededf0}
body.dashboard-page .customer-card-heading{gap:8px 12px;min-height:32px}
body.dashboard-page .customer-card-heading h3{font-size:15px;line-height:24px;font-weight:600;letter-spacing:-.01em}
body.dashboard-page .customer-heading-status{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-left:auto;min-width:0}
body.dashboard-page .customer-row-progress{margin:0}
body.dashboard-page .customer-card-meta{margin-top:7px;gap:6px 14px;font-size:12px;line-height:20px}
body.dashboard-page .customer-company-intro,body.dashboard-page .customer-company-products{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;margin-top:10px;align-items:baseline}
body.dashboard-page .customer-info-label{font-size:12px;line-height:22px;color:#85858e;padding:0}
body.dashboard-page .customer-row-description{font-size:13px;line-height:22px;-webkit-line-clamp:2;color:#62646b}
body.dashboard-page .customer-card-heading>.customer-row-expand{margin-left:2px;flex:none}
body.dashboard-page .customer-row-expand{display:inline-flex;align-items:center;justify-content:flex-start;gap:5px;padding:0;border:0;background:none;font-size:12px;line-height:22px;min-height:24px;color:#777980;cursor:pointer}
body.dashboard-page .customer-row-expand:hover{color:#292b30}
body.dashboard-page .customer-row-expand svg{width:14px;height:14px}
body.dashboard-page .customer-card-tags,body.dashboard-page .customer-card-products{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
body.dashboard-page #view-buyers :is(.customer-role-tag,.customer-product-tag,.customer-role-more){max-width:100%;box-sizing:border-box;font-size:12px;line-height:19px;padding:2px 7px;border-radius:5px;font-weight:400;white-space:normal;overflow-wrap:anywhere}
body.dashboard-page .customer-row-fit .customer-fit-badge{gap:4px;font-size:12px;line-height:20px;padding:2px 7px;white-space:normal}
body.dashboard-page .customer-row-fit .customer-fit-badge strong{font-size:14px;line-height:20px;font-variant-numeric:tabular-nums}
body.dashboard-page .customer-fit-prefix{font-size:12px}
body.dashboard-page #view-buyers .customer-review-state{font-size:12px;line-height:20px;padding:2px 7px;border-radius:5px;white-space:nowrap}
body.dashboard-page .customer-row-contact{font-size:12px;line-height:20px;gap:5px;flex-wrap:wrap}
body.dashboard-page .customer-contact-kinds:before{display:none}
body.dashboard-page .customer-last-touch{font-size:12px;line-height:20px;color:#85858e;white-space:normal;font-variant-numeric:tabular-nums}
@media(max-width:760px){
 body.dashboard-page .work-list-toolbar{grid-template-columns:22px minmax(0,1fr) minmax(90px,auto) 56px}
 body.dashboard-page .customer-toolbar .work-toolbar-more{flex:0 0 56px}
 body.portal-page.dashboard-page .work-list-toolbar .work-toolbar-more>summary{display:inline-flex;align-items:center;justify-content:center;width:56px;min-width:56px;max-width:56px;padding:0;font-size:0}
 body.dashboard-page .work-list-toolbar .work-toolbar-more>summary:before{content:'操作';font-size:12px;line-height:20px}
 body.dashboard-page .customer-toolbar .customer-sort .select-menu-trigger{justify-content:center}
 body.dashboard-page .customer-row{grid-template-columns:22px minmax(0,1fr);padding:16px 0;gap:12px 10px}
 body.dashboard-page .customer-card-main{grid-column:2/-1}
 body.dashboard-page .customer-card-heading{min-height:40px;gap:8px}
 body.dashboard-page .customer-card-heading h3{flex:1 1 100%;max-width:100%;font-size:14px;line-height:23px;min-height:40px;display:flex;align-items:center}
 body.dashboard-page .customer-card-tags{flex-basis:100%}
 body.dashboard-page .customer-heading-status{margin-left:0;flex-basis:100%}
 body.dashboard-page .customer-card-meta{gap:6px 10px}
 body.dashboard-page .customer-card-heading>.customer-row-expand{margin-left:0;min-height:32px}
 body.dashboard-page .customer-company-intro,body.dashboard-page .customer-company-products{grid-template-columns:minmax(0,1fr);gap:4px}
 body.dashboard-page .customer-row-expanded{gap:14px}
}
/* The group menu is a named control, with a single icon family and clear feedback. */
body.dashboard-page.team-header-merged .team-chat-menu.action-menu>summary{display:inline-flex;align-items:center;justify-content:center;gap:6px!important;width:auto!important;min-width:86px!important;height:32px;min-height:32px;padding:5px 9px!important;border:1px solid #e5e5e8;background:#fff;color:#62646b;font-size:12px;line-height:20px;border-radius:7px}
body.dashboard-page.team-header-merged .team-chat-menu.action-menu>summary svg{width:15px;height:15px;flex:none}
body.dashboard-page.team-header-merged .team-chat-menu.action-menu>summary:hover,body.dashboard-page.team-header-merged .team-chat-menu.action-menu[open]>summary{background:#f4f4f5;border-color:#d1d2d6;color:#24262b}
@media(max-width:760px){body.dashboard-page.team-header-merged .team-chat-menu.action-menu>summary{min-width:40px!important;width:40px!important;height:40px;min-height:40px;padding:0!important}body.dashboard-page.team-header-merged .team-chat-menu.action-menu>summary>span{display:none}body.dashboard-page.team-header-merged .team-chat-menu.action-menu>summary svg{width:18px;height:18px}}
/* Icon menus render one SVG from Disclosure.menu; no generated duplicate glyph. */
body.dashboard-page .action-menu.is-icon>summary::before{content:none;display:none}
body.dashboard-page .action-menu.is-icon>summary>svg{width:18px;height:18px;flex:none}

/* 0818: a shared trade correspondence workspace, with evidence-backed queues. */
.message-window.mailbox-workbench{--mail-ink:#292b2e;--mail-muted:#737780;--mail-line:#e7e8eb;--mail-sage:#4e7566;--mail-ease:cubic-bezier(.2,.8,.2,1);width:min(1440px,96vw);height:min(920px,94dvh)}
.message-window.mailbox-workbench .unified-messages{grid-template-columns:318px minmax(0,1fr)}
.message-window.mailbox-workbench .unified-directory{background:#fafafa}
.mailbox-label{display:flex;align-items:center;justify-content:space-between;padding:14px 15px 6px;flex:none}
.mailbox-label strong{font-size:13px;font-weight:600;color:var(--mail-ink)}
.mailbox-label svg{width:17px;height:17px}
.message-window.mailbox-workbench .unified-filters{gap:0;padding:4px 9px;border:0;min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.message-window.mailbox-workbench .unified-filters>button{justify-content:center;gap:4px;font-size:12px;min-height:32px;padding:6px 3px;border-radius:6px;line-height:20px}
.message-window.mailbox-workbench .unified-filters>button[aria-pressed=true]{background:#eaecee;color:#292d30;font-weight:600}
.message-window.mailbox-workbench .unified-filters>button[aria-pressed=true]::after{display:none}
.message-window.mailbox-workbench .unified-tools{padding:8px 12px 7px}
.message-window.mailbox-workbench .unified-search input{background:#fff;border:1px solid #e0e2e6}
.mailbox-channel{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:4px 14px 9px;font-size:11px;color:var(--mail-muted);flex:none;border-bottom:1px solid var(--mail-line)}
.mailbox-channel>div{display:flex;gap:3px}
.mailbox-channel button{border:0;background:none;border-radius:5px;min-height:26px;padding:4px 8px;font:inherit;color:#777b83;cursor:pointer;transition:background 140ms,color 140ms}
.mailbox-channel button:hover,.mailbox-channel button[aria-pressed=true]{background:#eeeef1;color:#363b41}
.message-window.mailbox-workbench .unified-list{padding:5px 7px 8px}
.message-window.mailbox-workbench .unified-open{padding:12px 9px;gap:9px;border-radius:8px}
.message-window.mailbox-workbench .unified-row{margin:0 0 3px;border-bottom:1px solid #eeeeef}
.message-window.mailbox-workbench .unified-row.is-selected .unified-open{background:#edf1ee;border-color:#dbe5df;box-shadow:inset 2px 0 #6e8e7b}
.message-window.mailbox-workbench .unified-row-top time{font-size:10px;letter-spacing:-.01em}
.message-window.mailbox-workbench .unified-row-subtitle{font-size:11px;color:#686d75}
.message-window.mailbox-workbench .unified-row-preview{color:#7b7e86;font-size:12px;line-height:19px}
.message-window.mailbox-workbench .unified-row-meta{margin-top:3px;font-size:10px;gap:7px}
.message-window.mailbox-workbench .unified-row-rfq{color:#93723e}
.mailbox-draft-badge{color:#7a6592}
.mailbox-list-count{flex:none;margin:0;padding:9px 15px;border-top:1px solid var(--mail-line);font-size:11px;line-height:18px;color:#82868c}
.message-window.mailbox-workbench .unified-welcome{padding:clamp(22px,3.4vw,46px);align-items:stretch;justify-content:flex-start;overflow-y:auto}
.message-window.mailbox-workbench .unified-welcome-content{width:min(100%,850px);margin:0 auto;text-align:left}
.mailbox-overview-heading{margin-bottom:18px}
.message-window.mailbox-workbench .mailbox-overview-status{margin:12px 0 0;color:#93743f}
.message-window.mailbox-workbench [data-unified-welcome-state]{margin:20px 0 0;color:var(--mail-muted)}

.message-window.mailbox-workbench .unified-welcome h2{font-size:22px;line-height:32px;font-weight:600;letter-spacing:-.025em;margin:0 0 8px}
.message-window.mailbox-workbench .unified-welcome p{font-size:12px;line-height:21px}
.mailbox-queues{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.mailbox-queues>button{display:flex;align-items:flex-start;gap:9px;border:1px solid var(--mail-line);border-radius:10px;background:#fff;padding:16px 12px;text-align:left;font:inherit;font-size:12px;color:#5d626a;cursor:pointer;transition:background 150ms,border-color 150ms,box-shadow 150ms,transform 150ms}
.mailbox-queues>button:hover{background:#fafbf9;border-color:#c5d2c9;box-shadow:0 3px 12px #344a3a08}
.mailbox-queues>button:active{transform:translateY(1px)}
.mailbox-queues>button>span:nth-child(2){min-width:0;flex:1}
.mailbox-queues strong{display:block;font-size:28px;line-height:38px;font-weight:600;color:#2c3430;font-variant-numeric:tabular-nums;margin:6px 0 2px}

.mailbox-queue-icon{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:7px;font-size:17px}
.mailbox-queue-icon.is-sage{background:#edf3ee;color:#66826e}.mailbox-queue-icon.is-amber{background:#faf3e6;color:#a48856}.mailbox-queue-icon.is-lilac{background:#f1edf5;color:#877499}



.message-window.mailbox-workbench 
.message-window.mailbox-workbench .unified-recent{margin-top:20px;border-top:1px solid var(--mail-line)}.message-window.mailbox-workbench .unified-recent-item{padding:13px 2px;gap:10px}
.message-window.mailbox-workbench .unified-recent-item strong{font-size:13px;font-weight:600}
.message-window.mailbox-workbench .unified-recent-item small{font-size:11px;line-height:19px}
.message-window.mailbox-workbench .unified-recent-meta{font-size:10px}
.message-window.mailbox-workbench .unified-detail-heading{min-height:58px;padding:10px 18px}
.mailbox-context-bar,.mailbox-mail-status{display:flex;align-items:center;gap:10px;padding:10px 18px;min-height:43px;box-sizing:border-box;border-bottom:1px solid var(--mail-line);background:#fdfdfc;flex:none}
.mailbox-context-bar p,.mailbox-mail-status p{flex:1;min-width:0;font-size:12px;color:#777b82;line-height:20px;margin:0}
.mailbox-context-bar button,.mailbox-mail-status button{flex:none;font-size:12px;white-space:nowrap}
.mailbox-stage{display:inline-flex;align-items:center;gap:6px;font-size:11px;line-height:18px;padding:3px 7px;border-radius:5px;background:#eff0f1;color:#6e7279;white-space:nowrap;flex:none}
.mailbox-stage::before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}
.mailbox-stage[data-tone=sage]{background:#edf4ee;color:#5b7b64}.mailbox-stage[data-tone=amber]{background:#faf3e4;color:#93743f}.mailbox-stage[data-tone=lilac]{background:#f2eef7;color:#826a94}.mailbox-stage[data-tone=rose]{background:#f9eeeb;color:#9b665e}
.message-window.mailbox-workbench .unified-history{padding:22px clamp(16px,3vw,38px)}
.message-window.mailbox-workbench .unified-transcript-item{max-width:min(100%,840px)}
.message-window.mailbox-workbench .unified-transcript-bubble{border-color:#e9e9eb;background:#fff}
.message-window.mailbox-workbench .unified-transcript-item.is-outgoing .unified-transcript-bubble{background:#f8f8f8;border-color:#eeeeef}
.message-window.mailbox-workbench .unified-rfq{padding:18px;background:#fdfbf6;border-color:#ebe2d2}
.mailbox-rfq-note{font-size:11px;line-height:18px;color:#958369;margin:0 0 12px}.unified-rfq .is-missing{color:#9a8464;font-size:12px}
.mailbox-mail-context{flex:none;max-height:210px;overflow:auto;padding:13px 20px;background:#fafbf9;border-bottom:1px solid #e5e8e4}
.mailbox-mail-context dl{display:grid;grid-template-columns:64px minmax(0,1fr);gap:7px 12px;font-size:12px;line-height:20px;margin:0 0 9px}
.mailbox-mail-context dt{color:#8a8e93}.mailbox-mail-context dd{margin:0;overflow-wrap:anywhere;color:#525962}.mailbox-mail-context>div{display:flex;gap:10px}
.message-window.mailbox-workbench .message-contact-heading{min-height:56px!important;gap:10px;padding:10px 18px!important}
.message-window.mailbox-workbench .message-contact-identity{display:flex;flex:1;align-items:baseline;flex-wrap:wrap;gap:2px 8px}
.message-window.mailbox-workbench .message-contact-identity h2{width:100%}
.message-window.mailbox-workbench .message-contact-identity p,.message-window.mailbox-workbench .message-contact-identity button{font-size:11px;margin:0;padding:0;line-height:18px}
.message-window.mailbox-workbench .message-channel-bar{padding:7px 18px;border-bottom:1px solid #f0f0f1;gap:8px;font-size:11px}
.message-window.mailbox-workbench .message-history{padding:20px 24px}
.message-window.mailbox-workbench .message-bubble,.message-window.mailbox-workbench .message-bubble.is-outgoing{max-width:100%;width:100%;margin:0 0 16px;padding:16px 18px;border:1px solid #e7e8eb;border-radius:9px;background:#fff}
.message-window.mailbox-workbench .message-bubble.is-outgoing:has(.is-draft){border-color:#e4deed;background:#fcfaff}
.message-window.mailbox-workbench .message-bubble.is-outgoing:has(.is-unknown),.message-window.mailbox-workbench .message-bubble.is-outgoing:has(.is-failed){border-color:#e8dacf;background:#fffdfa}
.message-window.mailbox-workbench .message-body{font-size:14px;line-height:24px;max-width:82ch}
.message-window.mailbox-workbench .message-mail-state.is-draft{background:#f0eaf7;color:#816592}.message-window.mailbox-workbench .message-mail-state.is-sent{background:#edf4ee;color:#5b7c62}.message-window.mailbox-workbench .message-mail-state.is-received{background:#edf2f6;color:#65809b}
.message-window.mailbox-workbench .message-author{flex-direction:row;align-items:center;gap:10px;flex-wrap:wrap}
.mailbox-reply-launch{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 18px 16px;padding:13px 16px;border:1px solid #dedfe3;border-radius:10px;background:#fff;color:#858993;font:inherit;font-size:13px;cursor:text;box-shadow:0 2px 6px #00000004;flex:none;min-height:48px;transition:border-color 160ms,box-shadow 160ms}
.mailbox-reply-launch:hover{border-color:#b5c3b9;box-shadow:0 2px 9px #48614d0a}.mailbox-reply-launch span:last-child{font-size:12px;color:#64756a}
.message-window.mailbox-workbench .message-reply{margin:0 18px 14px;padding:10px 14px;border:1px solid #dfe2e0;border-radius:10px;max-height:42%;overflow:auto;box-shadow:0 2px 8px #00000005}
.message-window.mailbox-workbench .message-reply-heading{margin:0;gap:6px}.message-window.mailbox-workbench .message-reply-heading strong{flex:1;font-size:12px;color:#717781}
.message-window.mailbox-workbench .message-reply-subject{height:32px;min-height:32px;border:0;border-bottom:1px solid #eeeeef;border-radius:0;padding:5px 0;font-size:12px}
.message-window.mailbox-workbench .message-reply .portal-textarea{width:100%;min-height:70px;max-height:150px;border:0;padding:9px 0;box-shadow:none;resize:vertical;font-size:14px;line-height:23px}
.message-window.mailbox-workbench .message-reply-actions{gap:8px;margin-top:5px}.message-window.mailbox-workbench .message-reply-actions>div{gap:7px;flex-wrap:wrap;justify-content:flex-end}
.message-window.mailbox-workbench .message-reply-unavailable{font-size:12px;padding:10px 18px}
.message-window.mailbox-workbench :is(.mailbox-queues button,.mailbox-channel button,.mailbox-reply-launch):focus-visible{outline:2px solid #859c8c;outline-offset:2px}
.message-window.mailbox-workbench :is(.mailbox-mail-context,.message-reply):not([hidden]){animation:mailbox-reveal 180ms var(--mail-ease)}
@keyframes mailbox-reveal{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:1100px){.message-window.mailbox-workbench .unified-messages{grid-template-columns:292px minmax(0,1fr)}.mailbox-queues{gap:8px}.mailbox-queues>button{padding:13px 10px}.mailbox-queue-icon{display:none}.message-window.mailbox-workbench .unified-welcome{padding:26px}.mailbox-context-bar p,.mailbox-mail-status p{font-size:11px}}
@media(max-width:760px){.message-window.mailbox-workbench{width:100vw;height:100dvh;border-radius:0}.message-window.mailbox-workbench .unified-messages{grid-template-columns:1fr}.mailbox-label{padding:10px 15px 4px}.message-window.mailbox-workbench .unified-filters>button{min-height:38px;font-size:13px}.message-window.mailbox-workbench .unified-search input{font-size:16px;min-height:40px}.mailbox-channel{padding:4px 14px 7px}.mailbox-channel button{min-height:32px}.mailbox-context-bar,.mailbox-mail-status{padding:8px 12px;gap:7px;flex-wrap:wrap;min-height:40px}.mailbox-context-bar p,.mailbox-mail-status p{display:none}.mailbox-context-bar button,.mailbox-mail-status button{margin-left:auto}.message-window.mailbox-workbench .unified-detail-heading{padding:8px 12px;min-height:58px}.message-window.mailbox-workbench .unified-detail-meta{padding-left:0;width:auto;max-width:100%;margin-left:auto;order:0}.message-window.mailbox-workbench .unified-detail-meta [data-unified-rfq-count]{display:none}.message-window.mailbox-workbench .unified-detail-meta [data-unified-kind]{display:none}.message-window.mailbox-workbench .unified-detail-meta button{font-size:11px}.message-window.mailbox-workbench .unified-detail-identity p{font-size:11px}.message-window.mailbox-workbench .unified-detail-identity{flex-basis:90px}.message-window.mailbox-workbench .message-history{padding:14px 12px}.message-window.mailbox-workbench .message-bubble,.message-window.mailbox-workbench .message-bubble.is-outgoing{padding:12px}.message-window.mailbox-workbench .message-contact-heading{padding:8px 12px!important}.message-window.mailbox-workbench .message-contact-identity button{font-size:11px}.mailbox-reply-launch{margin:0 12px 12px;padding:12px;min-height:46px}.message-window.mailbox-workbench .message-reply{margin:0 10px 10px;padding:8px 10px;max-height:48%}.message-window.mailbox-workbench .message-reply-subject,.message-window.mailbox-workbench .message-reply .portal-textarea{font-size:16px}.message-window.mailbox-workbench .message-reply-actions{align-items:center;flex-wrap:wrap}.message-window.mailbox-workbench .message-reply-actions>div{flex:1}.message-window.mailbox-workbench .message-reply-actions .portal-button{font-size:12px;padding-inline:8px}.mailbox-mail-context{max-height:170px;padding:11px 14px}.message-window.mailbox-workbench .message-reply-unavailable{padding:9px 12px;gap:6px}.mailbox-mail-context>div{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.message-window.mailbox-workbench *{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Polish page rhythm. Conversation, Home and Settings retain their current layout. */
body.dashboard-page:is([data-workspace-view="company"],[data-workspace-view="buyers"],[data-workspace-view="market"],[data-workspace-view="records"],[data-workspace-view="marketing"],[data-workspace-view="marketing-strategies"],[data-workspace-view="business"],[data-workspace-view="plugins"],[data-workspace-view="channels"],[data-workspace-view="site"]):not(.marketing-messages-open) .dashboard-main{padding:24px 32px 32px}
.dashboard-main>:is(#view-buyers,#view-market,#view-records,#view-marketing,#view-marketing-strategies){max-width:1240px;width:100%;margin-inline:auto}
@media(max-width:760px){
 body.dashboard-page:is([data-workspace-view="company"],[data-workspace-view="buyers"],[data-workspace-view="market"],[data-workspace-view="records"],[data-workspace-view="marketing"],[data-workspace-view="marketing-strategies"],[data-workspace-view="business"],[data-workspace-view="plugins"],[data-workspace-view="channels"],[data-workspace-view="site"]):not(.marketing-messages-open) .dashboard-main{padding:16px 16px 24px}
}
