/* Editorial Swiss workspace skin. Presentation only: retain every mount,
   handler, layout mode, resizer, overlay and independently scrolling pane. */
body.workspace-shell-active #spec-alignment-view:has(.project-workspace-active) {
    --font-main: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-display: Georgia, "Times New Roman", "Songti SC", SimSun, serif;
    --swiss-ink: #191a19;
    --swiss-muted: #686b70;
    --swiss-line: #dedfdf;
    --swiss-paper: #fafaf9;
    --bridge-ui-line: #dedfdf;
    --bridge-ui-text: #191a19;
    --bridge-ui-muted: #686b70;
    --supplier-state-blue: #262826;
    --supplier-state-line: #dedfdf;
    --supplier-state-muted: #686b70;
    background: var(--swiss-paper) !important;
    color: var(--swiss-ink);
}
body.workspace-shell-active .spec-three-pane-layout.project-workspace-active {
    background: var(--swiss-paper) !important;
    color: var(--swiss-ink);
}
/* Calm flat panes, with a single hairline defining each working region. */
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(
    .doc-pane, .chat-pane, .pane-header, .spec-supplier-sidebar-shell,
    .spec-supplier-sidebar-header, .spec-supplier-sidebar-body, .spec-supplier-sidebar-list,
    .project-workspace-ai-header, .project-workspace-ai-requirements,
    .project-workspace-ai-inspector, .supplier-state-workspace,
    .supplier-state-inspector, .supplier-state-main, .supplier-state-project-header,
    .supplier-state-requirements, .supplier-state-summary-card,
    .supplier-state-inspector-head, .supplier-state-inspector-body,
    .project-workspace-ai-inspector-head, .project-workspace-ai-inspector-scroll,
    .spec-files-sidebar-header, .project-files-main-groups, .file-group-card,
    .messages-area, .input-container
) {
    background: var(--swiss-paper) !important;
    background-image: none !important;
    border-color: var(--swiss-line) !important;
    box-shadow: none !important;
    color: var(--swiss-ink);
}
/* Serif is reserved for editorial titles, never form fields or table data. */
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(
    .project-workspace-contact-header h2, .project-workspace-ai-project-title h2,
    .supplier-state-title-line h1, .spec-chat-header-name,
    .project-workspace-ai-inspector-head h3, .supplier-state-inspector-head h2,
    .spec-files-sidebar-header h3, .supplier-state-summary-card > header h3,
    .reference-stage-card > h3, .project-workspace-contact-row.is-ai .project-workspace-contact-name
) {
    font-family: var(--font-display) !important;
    font-weight: 400 !important;
    letter-spacing: -.035em !important;
    color: var(--swiss-ink) !important;
    line-height: 1.2;
    font-size: 21px !important;
}
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-project-title h2,.supplier-state-title-line h1) {
    font-size: clamp(24px,1.85vw,32px) !important;
}
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .project-workspace-contact-row.is-ai .project-workspace-contact-name { font-size:19px !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-project-meta,.project-workspace-ai-chat-subtitle,.project-workspace-contact-meta,.project-workspace-contact-preview,.supplier-state-project-identity p) { color:#73777e !important; font-weight:400 !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .project-workspace-ai-chat-subtitle { font-size:13px; margin-top:6px; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-metadata-field > span,.project-workspace-metadata-readonly > span) { color:#6b7078; font-size:10px; font-weight:400; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-metadata-field input,.project-workspace-title-trigger) { font-size:13px !important; font-weight:500 !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .project-workspace-contact-empty { color:#73777e; font-size:14px; line-height:1.65; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-contact-row,.project-workspace-contact-row.is-ai,.project-workspace-contact-row.is-supplier) { border-color:transparent !important; background:transparent !important; box-shadow:none !important; border-radius:6px !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .project-workspace-contact-row.active { background:#eff1ef !important; border-color:transparent !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .project-workspace-contact-row:hover { background:#f0f0ee !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-contact-avatar.is-ai,.project-workspace-contact-avatar.is-supplier) { background:#d4ecdc !important; color:#295b38 !important; box-shadow:none !important; border-radius:6px; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-contact-kind,.project-workspace-ai-mode-badge) { background:#f0f1ef !important; color:#454945 !important; border:0 !important; font-size:9px !important; font-weight:500 !important; }
/* Controls retain their original sizes and disabled/read-only semantics. */
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(
    button, input, textarea, select,
    .sourcing-chat-input-shell, .project-workspace-ai-search
) { box-shadow:none !important; border-color:var(--swiss-line) !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(
    .project-quick-action-btn, .sourcing-questionnaire-pdf-btn, .project-workspace-ai-add,
    .project-workspace-ai-files-add, .rfq-file-upload, .sourcing-chat-icon-btn,
    .sourcing-chat-image-toggle, .supplier-state-header-actions button,
    .supplier-state-inspector-nav button, .project-workspace-ai-inspector-actions button,
    .supplier-state-action-card button, .sourcing-action-pill, .sourcing-focus-choice-btn,
    .project-workspace-ai-save-btn, .project-workspace-ai-response-evidence-btn
) { background:#fafaf9 !important; color:#242624 !important; border-radius:6px !important; font-weight:500 !important; background-image:none !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(
    .project-workspace-ai-save-btn, .sourcing-action-pill.primary,
    .supplier-state-header-actions button.is-primary, .supplier-state-action-card button.is-primary,
    .project-workspace-ai-inspector-actions button.is-primary, .sourcing-focus-choice-btn--yes,
    .sourcing-chat-send-btn
) { background:#242624 !important; color:#fff !important; border-color:#242624 !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-quick-action-btn,.rfq-file-upload,.sourcing-questionnaire-pdf-btn):hover:not(:disabled) { background:#ededeb !important; color:#111 !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-save-btn,.sourcing-action-pill.primary,.sourcing-chat-send-btn):hover:not(:disabled) { background:#3d413d !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(button,input,textarea,select,a):focus-visible { outline:2px solid #557660 !important; outline-offset:2px; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.sourcing-chat-input-shell,.project-workspace-ai-search):focus-within { border-color:#557660 !important; box-shadow:none !important; }
/* Neutral tabs and data rows. Active state is a thin black baseline. */
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-requirements-toolbar,.supplier-state-toolbar,.supplier-state-filter-tabs,.project-workspace-ai-filters) { background:#f1f1ef !important; border-color:var(--swiss-line); }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-filter,.supplier-state-filter-tabs button,.supplier-state-inspector-tabs button) { background:transparent !important; border-color:transparent !important; color:#62666c !important; border-radius:3px !important; box-shadow:none !important; font-weight:400 !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-filter.is-active,.supplier-state-filter-tabs button.active,.supplier-state-inspector-tabs button.active) { color:#191a19 !important; box-shadow:inset 0 -1px #202420 !important; background:transparent !important; font-weight:500 !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-table,.supplier-state-requirements-table) { color:#565a60; font-size:12px !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-table,.supplier-state-requirements-table) :is(th,td) { background:transparent; border-color:#e3e4e4 !important; padding-top:13px; padding-bottom:13px; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-table,.supplier-state-requirements-table) thead th { background:#f6f6f4 !important; color:#262826 !important; font-weight:500 !important; font-size:11px !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-table,.supplier-state-requirements-table) tbody th { color:#191a19 !important; font-weight:500 !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-table,.supplier-state-requirements-table) tr:is(.is-selected,.active) :is(th,td) { background:#efefec !important; box-shadow:none !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-table,.supplier-state-requirements-table) tbody tr:hover :is(th,td) { background:#f0f1ee !important; }

/* Supplier checklist: one-line defaults; wrapped answers still grow naturally. */
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .supplier-state-requirements-table :is(th, td) {
    box-sizing: border-box;
    height: 36px;
    padding-top: 5px;
    padding-bottom: 5px;
    vertical-align: middle;
}
body.workspace-shell-active #spec-alignment-view .supplier-state-requirements-table .workspace-checklist-inline-input {
    --checklist-editor-min-height: 24px;
    min-height: 24px;
}
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.workspace-checklist-section-row,.workspace-checklist-subsection-row) th { background:#efefec !important; color:#414541 !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-status,.supplier-state-status) { font-weight:400 !important; font-size:10px !important; background:#eeefef; color:#63666b; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .project-workspace-ai-status.is-under_review { background:#eeefef !important; color:#63666b !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-status.is-need_input,.supplier-state-status.is-need_response) { background:#e5f1e8 !important; color:#285c35 !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-status.is-completed,.supplier-state-status.is-agreed,.supplier-state-status.is-resolved) { background:#deeee1 !important; color:#285c35 !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .supplier-state-status.is-disputed { background:#f4e9e5 !important; color:#8a4234 !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .sourcing-questionnaire-priority { background:#eeece7 !important; color:#494741 !important; border:0 !important; font-weight:400 !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-progress-track,.supplier-state-progress-track) { background:#e5e6e4; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-progress-track i,.supplier-state-progress-track i) { background:#8eb59a; }
/* Evidence and assistant guidance are outlined groups, not colored panels. */
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.reference-stage-card,.rfq-file-group,.rfq-evidence,.project-workspace-ai-related-files,.project-workspace-ai-response-workspace,.supplier-state-response-workspace,.supplier-state-action-card) { border-color:var(--swiss-line) !important; background:transparent !important; border-radius:7px !important; box-shadow:none !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .reference-stage-card { padding:18px 16px; margin:0 0 12px; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .reference-stage-card :is(p,li) { color:#686b70; font-size:13px; line-height:1.55; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .reference-stage-card > ul:has(.rfq-file-upload) { padding:0; list-style:none; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .reference-stage-card > ul:has(.rfq-file-upload) > li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; margin:0; border:1px solid #e4e5e3; color:#262826; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .rfq-file-upload { flex-shrink:0; min-width:34px; min-height:34px; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .reference-stage-card .sourcing-action-pill { min-height:40px; padding:10px 16px; font-size:12px; margin-top:4px; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-response-head,.project-workspace-ai-item-number,.supplier-state-item-number) { background:#f0f0ee !important; color:#353935 !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-response-input,.supplier-state-response-workspace input,.supplier-state-response-workspace textarea) { background:#f5f5f3 !important; color:#53585d !important; font-size:12px !important; line-height:1.55; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-overview dd,.supplier-state-detail-list dd) { color:#63686e !important; font-weight:400; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-prefill-note,.reference-notice,.rfq-progress-notice,.sourcing-focus-composer-prompt,.supplier-chat-composer-guidance) { background:#f0f2ee !important; color:#505b51 !important; border-color:#dfe5dc !important; border-radius:6px !important; box-shadow:none !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .reference-progress { color:#73777e; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .reference-progress [aria-current="step"] { background:#e7f0e7; color:#355940; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .sourcing-chat-input-shell { background:#fafaf9 !important; border-radius:7px !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .sourcing-chat-input { background:transparent !important; color:#303530 !important; font-size:13px !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.sourcing-chat-bubble.buyer,.telegram-message.sent .telegram-message-bubble) { background:#eaf0e9 !important; color:#292e29 !important; border-color:#dce5da !important; box-shadow:none !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.sourcing-chat-bubble.assistant,.telegram-message.received .telegram-message-bubble) { background:#f1f1ee !important; color:#292e29 !important; box-shadow:none !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-ai-active #spec-chat-region > .pane-header.spec-chat-header::before { background:#f0f4ef !important; color:#356441 !important; border:1px solid #e1e6df; }
/* Desktop composition follows the reference; leave collapse/overlay geometry intact. */
@media(min-width:1261px) {
    body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-ai-active > .project-workspace-ai-header { padding:22px 26px; border-bottom:0; gap:18px; grid-template-columns:minmax(0,1fr) minmax(135px,180px) auto; }
    body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-ai-active .project-workspace-ai-project-thumb { display:none; }
    body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-ai-active .project-workspace-ai-mode-badge { display:none; }
    body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-ai-active #spec-left-sidebar.doc-pane { padding:10px 24px; }
    body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-ai-active #spec-files-sidebar.doc-pane { margin:0 6px 20px 18px; border:1px solid var(--swiss-line); border-radius:8px; }
    body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-ai-active > .project-workspace-ai-inspector { margin:0 18px 20px 6px; border:1px solid var(--swiss-line); border-radius:8px; }
    body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-ai-active #spec-chat-region > .pane-header.spec-chat-header { min-height:96px; flex-basis:96px; border-bottom:0; }
    body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-ai-active #supplier-messages-area.messages-area.telegram-messages { padding:6px 20px 16px !important; }
}
/* Shared workspace navigation lives in 15_topbar_utilities.css. */

body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .supplier-state-shell { --supplier-state-blue:#262826; --supplier-state-border:#dedfdf; --supplier-state-muted:#686b70; background:var(--swiss-paper); }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.supplier-state-phase,.supplier-state-translation-button.is-active) { background:#edf1eb !important; color:#3a5740 !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .supplier-state-translation-code { background:#3a5740; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .project-workspace-ai-save-response { background:#242624 !important; color:white !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .telegram-message-bubble { border-radius:7px !important; background-image:none !important; box-shadow:none !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .supplier-chat-thread-content { color:#303430; }

body.workspace-shell-active #spec-alignment-view .project-workspace-active #spec-partner-name { font-family:var(--font-display) !important; font-size:23px !important; font-weight:400 !important; letter-spacing:-.035em !important; color:var(--swiss-ink) !important; }
body.workspace-shell-active #spec-alignment-view .project-workspace-active .project-workspace-contact-empty { font-weight:400 !important; background:transparent !important; border:0 !important; }
body.workspace-shell-active #spec-alignment-view .project-workspace-ai-active #spec-left-sidebar :is(.sidebar-content,#panel-checklist,#checklist-container,.project-workspace-ai-requirements,.project-workspace-ai-table-scroll) { border:0 !important; border-radius:0 !important; box-shadow:none !important; background:transparent !important; }
body.workspace-shell-active #spec-alignment-view .project-workspace-active .project-workspace-ai-requirements-toolbar { border:0 !important; border-radius:5px; }
body.workspace-shell-active #spec-alignment-view .project-workspace-active .project-workspace-ai-header { border-bottom:0 !important; }

/* Resolve legacy specificity without changing the controls or their handlers. */
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-project-title h2,.supplier-state-title-line h1) { font-size:clamp(24px,1.85vw,32px) !important; }
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-filter.is-active,.supplier-state-filter-tabs button.active,.supplier-state-inspector-tabs button.active) { border-color:transparent !important; box-shadow:inset 0 -1px #202420 !important; }
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-filter,.supplier-state-filter-tabs button) { border:0 !important; }
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-ai-active #spec-left-sidebar { border-left:0 !important; border-top:0 !important; border-bottom:0 !important; border-radius:0 !important; }
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-active :is(.project-workspace-ai-inspector-head,.spec-files-sidebar-header) { padding:14px 16px; }
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-active .project-workspace-ai-inspector-actions button { min-height:36px; padding:7px 12px; }
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-active .sourcing-chat-input-shell textarea { border:0 !important; background:transparent !important; }
/* Item-reply dialogs are mounted on body; scope them to an open sourcing workspace. */
body.workspace-shell-active:has(#spec-alignment-view:not(.hidden) .project-workspace-active) #supplier-chat-thread-dialog { --font-main:Inter,"Helvetica Neue",Helvetica,Arial,sans-serif; }
body.workspace-shell-active:has(#spec-alignment-view:not(.hidden) .project-workspace-active) #supplier-chat-thread-dialog :is(.supplier-chat-thread-dialog,.supplier-chat-thread-header,.supplier-chat-thread-composer,.supplier-chat-thread-messages,.supplier-chat-thread-pinned-files) { background:#fafaf9 !important; border-color:#dedfdf !important; box-shadow:none !important; }
body.workspace-shell-active:has(#spec-alignment-view:not(.hidden) .project-workspace-active) #supplier-chat-thread-dialog .supplier-chat-thread-dialog { border-radius:8px; }
body.workspace-shell-active:has(#spec-alignment-view:not(.hidden) .project-workspace-active) #supplier-chat-thread-title { font-family:Georgia,"Times New Roman",serif !important; font-size:24px; font-weight:400; color:#191a19; letter-spacing:-.035em !important; }
body.workspace-shell-active:has(#spec-alignment-view:not(.hidden) .project-workspace-active) #supplier-chat-thread-dialog :is(button,textarea) { background:#fafaf9; color:#242624; border-color:#dedfdf; border-radius:5px; box-shadow:none; }
body.workspace-shell-active:has(#spec-alignment-view:not(.hidden) .project-workspace-active) #supplier-chat-thread-dialog .is-send { background:#242624; color:#fff; }
body.workspace-shell-active:has(#spec-alignment-view:not(.hidden) .project-workspace-active) #supplier-chat-thread-dialog .supplier-chat-thread-bubble { background:var(--supplier-thread-bubble-bg,#f0f0ed); color:#292e29; border-color:var(--supplier-thread-bubble-border,#e1e2de); border-radius:7px; box-shadow:none; }
body.workspace-shell-active:has(#spec-alignment-view:not(.hidden) .project-workspace-active) #supplier-chat-thread-dialog .is-failed .supplier-chat-thread-bubble { border-color:#fca5a5; }
body.workspace-shell-active:has(#spec-alignment-view:not(.hidden) .project-workspace-active) #supplier-chat-thread-dialog .supplier-chat-thread-bubble :is(strong,.message-original-text,.supplier-chat-thread-content,.message-translated-text) { color:#292e29; }
body.workspace-shell-active:has(#spec-alignment-view:not(.hidden) .project-workspace-active) #supplier-chat-thread-dialog .message-translation-label { color:#686b70; }
body.workspace-shell-active:has(#spec-alignment-view:not(.hidden) .project-workspace-active) #supplier-chat-thread-dialog :is(button,textarea):focus-visible { outline:2px solid #557660; outline-offset:2px; }
body.workspace-shell-active #spec-alignment-view .project-workspace-active #spec-chat-region .telegram-message-bubble { border:1px solid #dce0d9 !important; }
body.workspace-shell-active #spec-alignment-view .project-workspace-active #spec-chat-region .telegram-message-footer { color:#73776f !important; }
@media(min-width:1261px) {
    body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-ai-active { --bridge-ai-chat-width:clamp(350px,25vw,440px); }
    body.workspace-shell-active #spec-alignment-view .project-workspace-active .supplier-state-product-thumb { display:none; }
}
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-active .project-workspace-ai-inspector-actions .project-workspace-ai-save-response { background:#242624 !important; color:#fff !important; border-color:#242624 !important; }

/* Complete functional typography in both project modes. Keep editorial titles
   and icon glyphs on their own families; legacy contact/control weights must
   not leak into these text elements. */
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-active :where(
    .project-workspace-metadata-field input, .project-workspace-metadata-readonly strong,
    .project-workspace-title-trigger,
    .project-workspace-contact-row.is-supplier .project-workspace-contact-name,
    .project-workspace-contact-proxy, .project-workspace-contact-preview,
    .project-workspace-contact-meta, .project-workspace-contact-count,
    .project-workspace-ai-response-head h4, .project-workspace-ai-response-head small,
    .project-workspace-ai-response-input, .supplier-state-answer-row dt,
    .supplier-state-answer-row dd, .supplier-state-answer-input,
    .supplier-state-action-card h4, .supplier-state-action-card p,
    .project-workspace-ai-inspector-actions button, .project-workspace-ai-inspector-actions button > span,
    .project-workspace-ai-response-evidence-btn,
    .supplier-state-action-card button, .supplier-state-action-card button > span
) {
    font-family: var(--font-main) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
}
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-active .project-workspace-contact-row.is-supplier .project-workspace-contact-name {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--swiss-ink) !important;
}
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-active :is(
    .project-workspace-contact-proxy, .project-workspace-contact-preview
) { font-size: 12px !important; color: var(--swiss-muted) !important; }
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-active :is(
    .project-workspace-contact-meta, .project-workspace-contact-count,
    .project-workspace-ai-response-head small
) { font-size: 11px !important; text-transform: none !important; }
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-active :is(
    .project-workspace-ai-response-head h4, .supplier-state-action-card h4
) { font-weight: 500 !important; }
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-active :is(
    .supplier-state-answer-row dt, .project-workspace-ai-inspector-actions button,
    .project-workspace-ai-inspector-actions button > span, .project-workspace-ai-response-evidence-btn,
    .supplier-state-action-card button, .supplier-state-action-card button > span
) { font-size: 12px !important; font-weight: 500 !important; }
