/* 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
) {
    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 .project-workspace-ai-project-title h2 {
    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-project-meta,.project-workspace-ai-chat-subtitle,.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; }

/* Read-only answer columns stay white under hover/selection and theme overrides. */
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-active :is(.supplier-state-requirements-table, .merged-questionnaire-checklist-table, .project-workspace-ai-table) :is(th, td).checklist-answer-readonly,
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-active .supplier-state-detail-list > .supplier-state-answer-row.checklist-answer-readonly {
    background: #fff !important;
    color: #5c646c !important;
    border-color: #d7dbde !important;
}
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-active .checklist-answer-readonly :is(dt, dd, i, .merged-checklist-answer-text, .merged-checklist-empty-cell) { color: inherit !important; }

/* Editable answer columns remain pale yellow while their fixed counterpart stays white. */
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-active :is(.supplier-state-requirements-table, .merged-questionnaire-checklist-table, .project-workspace-ai-table) :is(th, td).checklist-answer-editable,
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-active .supplier-state-detail-list > .supplier-state-answer-row.checklist-answer-editable {
    background: #fff8dc !important;
}
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-active .supplier-state-detail-list > .supplier-state-answer-row.checklist-answer-editable { border-color: #e5d8aa !important; }
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-active .checklist-answer-editable :is(input, textarea) { background: transparent !important; }

/* Shared checklist density: one-line defaults; wrapped answers still grow naturally. */
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active :is(.supplier-state-requirements-table, .project-workspace-ai-table) :is(th, td) {
    box-sizing: border-box;
    height: 36px;
    padding-top: 5px;
    padding-bottom: 5px;
    vertical-align: middle;
}
.supplier-state-answer-with-discussion {
    display: flex;
    align-items: center;
    gap: 6px;
}
.supplier-state-answer-with-discussion > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.supplier-state-requirements-table .supplier-state-discussion-link {
    display: inline-grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: #325c67;
    cursor: pointer;
}
.supplier-state-requirements-table .supplier-state-discussion-link:hover { background: #e5efed; }
.supplier-state-requirements-table .supplier-state-discussion-link:focus-visible { outline: 2px solid #0d8f89; }

body.workspace-shell-active #spec-alignment-view :is(.supplier-state-requirements-table, .project-workspace-ai-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 .project-workspace-ai-status.is-need_input { background:#e5f1e8 !important; color:#285c35 !important; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .supplier-state-status.is-need_response { background:#fff1c7 !important; color:#8a5100 !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; }
/* 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) { border-color:var(--swiss-line) !important; background:transparent !important; border-radius:7px !important; box-shadow:none !important; }
/* The viewer's next actions stand out from the surrounding reference details. */
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .supplier-state-action-card {
    background:#eef7ef !important;
    border-color:#c4ddc9 !important;
    border-left-color:#76a482 !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,.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-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-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 .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 .project-workspace-ai-project-title h2 { font-size:20px !important; line-height:1.2; }
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-active .supplier-state-title-line h1 { font-size:20px !important; line-height:1.2; letter-spacing:-.02em !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:var(--bridge-density-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-name,
    .project-workspace-contact-proxy, .project-workspace-contact-preview,
    .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-name {
    font-size: 13px !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: 11px !important; color: var(--swiss-muted) !important; }
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-active :is(
    .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; }
.project-workspace-contact-name.has-supplier-group { display: flex; align-items: center; gap: 8px; }
.supplier-group-contact-title { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.has-supplier-group .supplier-group-count { flex: 0 0 auto; }
.supplier-state-project-identity > div { min-width: 0; }

/* Bridge AI: both tab panels occupy the same full-width middle grid cell. */
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-ai-active > :is(#spec-left-sidebar, #spec-files-sidebar) {
    grid-column: 2;
    grid-row: 3;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0;
    padding: 6px 14px 12px;
    border-radius: 0;
}
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-ai-active > :is(#spec-left-sidebar, #spec-files-sidebar)[hidden],
#project-workspace-ai-tabs[hidden] { display: none !important; }
.project-workspace-ai-tabs {
    --supplier-state-border: #dbe4ef;
    --supplier-state-blue: #1264e8;
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    width: auto;
    margin: 4px 14px 0;
    padding: 0;
}
.project-workspace-ai-tabs button { flex: 1 1 0; min-width: 0; min-height: var(--sourcing-tab-height); font-size: 12px; }
.project-workspace-sku-list[hidden],
.project-workspace-sku-picker { display: none !important; }
.project-workspace-sku-list {
    padding: 12px 10px 8px;
    border-block-start: 1px solid var(--swiss-line, #dedfdf);
    background: var(--swiss-paper, #fafaf9);
}
.project-workspace-sku-list h3 {
    margin: 0 8px 6px;
    color: var(--swiss-muted, #686b70);
    font: 600 11px/1.4 var(--font-main, sans-serif);
}
.project-workspace-sku-tabs { display: grid; }
.project-workspace-sku-tab {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
    width: 100%;
    min-height: 38px;
    padding: 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--swiss-ink, #191a19);
    text-align: start;
    font: 400 12px/1.45 var(--font-main, sans-serif);
    cursor: pointer;
}
.project-workspace-sku-tab:has(.project-workspace-sku-code) { grid-template-columns: 4.5em minmax(0, 1fr); }
.project-workspace-sku-code {
    color: var(--swiss-muted, #686b70);
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.project-workspace-sku-name { overflow-wrap: anywhere; }
.project-workspace-sku-tab:hover { background: #f0f0ee; }
.project-workspace-sku-tab[aria-selected="true"] { background: #eaf2ec; font-weight: 600; }
.project-workspace-sku-tab[aria-selected="true"]::before {
    content: '';
    position: absolute;
    inset-block: 7px;
    inset-inline-start: 0;
    width: 2px;
    background: #356441;
}
.project-workspace-sku-tab[aria-selected="true"] .project-workspace-sku-code { color: #356441; }
.project-workspace-sku-tab:focus-visible,
.project-workspace-sku-picker:focus-visible { outline: 2px solid #356441; outline-offset: -2px; }
.project-workspace-ai-active.project-workspace-supplier-collapsed .project-workspace-sku-picker:not([hidden]) {
    display: block !important;
    width: min(100%, 28rem);
    min-height: 36px;
    flex: 0 0 auto;
    margin-block-end: 8px;
    font: 500 12px/1.4 var(--font-main, sans-serif);
}
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-ai-active .project-workspace-ai-requirements-toolbar { background: transparent !important; }
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-ai-active .project-workspace-ai-table-scroll {
    border: 1px solid var(--swiss-line) !important; border-radius: 8px !important; background: #fff !important;
}
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-ai-active > .project-workspace-ai-header {
    gap: 12px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--swiss-line) !important;
}
.project-workspace-ai-project-copy { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; row-gap: 2px; }
.project-workspace-ai-project-meta { flex: 1 1 300px; margin: 0; line-height: 1.4; }
.project-workspace-ai-project-thumb { width: 32px; height: 32px; flex-basis: 32px; }
body.workspace-shell-active #spec-alignment-view .project-workspace-ai-header-actions :is(.sourcing-questionnaire-pdf-btn, .project-workspace-ai-save-btn) {
    min-height: 32px; gap: 6px; padding-inline: 10px; font-size: 11px;
}
body.workspace-shell-active #spec-alignment-view .project-workspace-ai-table .project-workspace-ai-item-name {
    display: block; width: 100%; padding: 0; border: 0; background: transparent !important;
    color: inherit; font: inherit; text-align: left; line-height: inherit; cursor: pointer;
}
.project-workspace-ai-item-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.project-workspace-ai-table .reference-technical-question,
.project-workspace-ai-table .reference-technical-hint {
    display: block; margin-top: 6px; white-space: normal; overflow-wrap: anywhere;
    font-size: 12px; font-weight: 400; line-height: 1.5; color: #52677f;
}
.project-workspace-ai-table .reference-technical-question { max-width: 30rem; }
.sourcing-workflow-questionnaire-table.is-without-priority :is(th, td):nth-child(2) { width: 64%; }
body.workspace-shell-active #spec-alignment-view .project-workspace-ai-pending-title {
    width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit;
}
.project-workspace-ai-answer-editor .project-workspace-ai-response-split { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; }
body.workspace-shell-active #spec-alignment-view #spec-three-pane-layout.project-workspace-ai-active .project-workspace-ai-answer-editor :is(select, textarea) {
    font: inherit !important; line-height: 1.4 !important; width: 100%; min-width: 0;
    min-height: 24px !important; max-height: none !important; margin: 0; padding: 3px 0 !important; background: transparent !important;
    border: 0 !important; border-radius: 0; resize: none;
}
.project-workspace-ai-row-actions { display: inline-flex; align-items: center; gap: 4px; }
body.workspace-shell-active #spec-alignment-view .project-workspace-ai-row-actions button {
    display: inline-grid; place-items: center; width: 26px; height: 26px; min-height: 26px;
    padding: 0; border: 1px solid var(--swiss-line); border-radius: 5px; background: transparent; color: #52677f; cursor: pointer;
}
body.workspace-shell-active #spec-alignment-view .project-workspace-ai-row-actions .is-danger:hover { color: #b42318; border-color: #e5b8b3; }

/* Bridge AI: two visible text rows, growing to twelve; no empty band above input. */
body.workspace-shell-active .spec-three-pane-layout.project-workspace-ai-active #spec-chat-region > .input-container {
    padding-top: 0 !important;
}
body.workspace-shell-active .spec-three-pane-layout.project-workspace-ai-active .project-workspace-ai-composer .sourcing-workflow-pending-attachments[hidden] {
    display: none !important;
}
body.workspace-shell-active .spec-three-pane-layout.project-workspace-ai-active .project-workspace-ai-composer .sourcing-chat-input-shell {
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 5px;
    padding: 0 0 8px !important;
}
.project-workspace-ai-composer .bridge-ai-input-box {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 6px 10px 0;
    border: 1px solid var(--swiss-line);
    border-radius: 8px;
}
.project-workspace-ai-composer .bridge-ai-input-box:focus-within {
    border-color: #557660;
}
body.workspace-shell-active .spec-three-pane-layout.project-workspace-ai-active .project-workspace-ai-composer .sourcing-chat-input {
    box-sizing: border-box;
    display: block;
    flex: none;
    width: 100%;
    margin: 0;
    padding: 4px 0 !important;
    border: 0 !important;
    font-size: 13px !important;
    line-height: 20px !important;
    min-height: 48px !important;
    max-height: 248px !important;
    resize: none;
    overflow-wrap: anywhere;
}
.project-workspace-ai-composer .bridge-ai-composer-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
.project-workspace-ai-composer .bridge-ai-composer-actions .sourcing-chat-send-btn { margin-left: auto; flex-shrink: 0; }
.project-workspace-ai-composer .sourcing-further-input-notice { flex: none; margin-top: 4px; }

/* The instruction and textarea share one focus border; action buttons keep their own rings. */
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-ai-active .project-workspace-ai-composer .sourcing-chat-input-shell,
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-ai-active .project-workspace-ai-composer .sourcing-chat-input-shell:focus-within,
body.workspace-shell-active #spec-alignment-view .spec-three-pane-layout.project-workspace-ai-active .project-workspace-ai-composer .bridge-ai-input-box .sourcing-chat-input:focus {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}
.project-workspace-ai-composer .bridge-ai-composer-instruction {
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #526070;
    overflow-wrap: anywhere;
}
.project-workspace-ai-composer .bridge-ai-composer-instruction strong { font-weight: 600; }

/* Workflow guidance reuses the assistant bubble and avatar; only its rich content needs layout. */
.sourcing-chat-step > .sourcing-chat-step-section {
    min-width: 0;
    max-width: 100%;
}
.sourcing-chat-step > .sourcing-chat-step-section + .sourcing-chat-step-section { margin-top: 14px; }
.sourcing-chat-step .sourcing-chat-action-row { justify-content: flex-start; flex-wrap: wrap; }
.sourcing-chat-step .sourcing-action-pill { max-width: 100%; white-space: normal; }
.project-workspace-ai-active .sourcing-chat-assistant-note--system h4 {
    margin: 12px 0 6px;
    font: inherit;
    font-weight: 600;
    color: inherit;
}
.project-workspace-ai-active .sourcing-chat-assistant-note--system :is(p, li) { white-space: pre-wrap; }
.project-workspace-ai-active .sourcing-chat-assistant-note--system ul { padding-left: 20px; margin: 8px 0 12px; }
.project-workspace-ai-active .sourcing-chat-assistant-note--system li { margin: 5px 0; }
.project-workspace-ai-active .sourcing-chat-assistant-note--system summary { cursor: pointer; font: inherit; }
.project-workspace-ai-active .sourcing-chat-assistant-note--system .sourcing-plans-summary > summary { font-weight: 600; margin-bottom: 8px; }
.project-workspace-ai-active .sourcing-chat-assistant-note--system > ul:has(.rfq-file-upload) { padding: 0; list-style: none; }
.project-workspace-ai-active .sourcing-chat-assistant-note--system > ul:has(.rfq-file-upload) > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--swiss-line);
}
.project-workspace-ai-active .sourcing-chat-assistant-note--system .rfq-file-upload { flex-shrink: 0; }
.project-workspace-ai-active .sourcing-chat-assistant-note--system .sourcing-action-pill {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    margin: 4px 6px 0 0;
}

/* Current AI guidance has one overview and a short, numbered set of choices. */
.sourcing-ai-step-facts { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid #dce5ef; }
.sourcing-ai-step-facts > div { display: grid; grid-template-columns: minmax(80px, .8fr) minmax(0, 1.2fr); gap: 12px; margin: 5px 0; }
.sourcing-ai-step-facts dt { color: #526f90; }
.sourcing-ai-step-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.project-workspace-ai-active .sourcing-ai-step-overview .sourcing-ai-next-heading { margin: 14px 0 2px; }
.sourcing-ai-next-options { list-style: decimal; margin: 0; padding-left: 22px; }
.project-workspace-ai-active .sourcing-ai-next-options > .sourcing-ai-next-option { margin: 0; padding: 12px 0; white-space: normal; }
.sourcing-ai-next-option + .sourcing-ai-next-option { border-top: 1px solid #dce5ef; }
.sourcing-ai-next-option::marker { font-weight: 600; color: #526f90; }
.project-workspace-ai-active .sourcing-ai-next-option > h4 { margin: 0 0 6px; font: inherit; font-weight: 600; }
.project-workspace-ai-active .sourcing-ai-next-option > p { white-space: normal; }
.sourcing-ai-option-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.project-workspace-ai-active .sourcing-ai-option-actions .sourcing-action-pill { margin: 0; min-width: 0; max-width: 100%; white-space: normal; }
.sourcing-ai-option-details { margin-top: 10px; max-height: none; overflow: visible; }
.project-workspace-ai-active .sourcing-ai-option-details > summary { cursor: pointer; font-weight: 500; overflow-wrap: anywhere; }
.sourcing-ai-option-details > summary:focus-visible { outline: 2px solid #557660; outline-offset: 3px; }
.sourcing-ai-option-details > p { margin-top: 8px !important; }
.project-workspace-ai-active .sourcing-ai-step-overview .sourcing-ai-linked-items { list-style: none; padding: 0; margin: 8px 0 0; }
.project-workspace-ai-active .sourcing-ai-linked-items > li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 0; border-bottom: 1px solid #dce5ef; white-space: normal; }
.sourcing-ai-linked-items > li > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sourcing-ai-linked-items small { display: block; color: #526f90; }
.sourcing-ai-linked-items .rfq-file-upload { flex-shrink: 0; }

/* Show selected files immediately, before their upload URLs are available. */
body .sourcing-workflow-pending-chip.sourcing-workflow-upload-chip {
    max-width: 100%; min-width: 0;
    background: #f1f2f3 !important;
    border: 1px solid #d9dde1 !important;
    border-radius: 6px !important;
    color: #526070 !important;
}
.sourcing-workflow-upload-chip > i { flex-shrink: 0; }
.sourcing-workflow-upload-name { min-width: 0; overflow-wrap: anywhere; }
.sourcing-workflow-upload-status { font-size: .9em; }
.sourcing-ai-processing-note { display: flex; align-items: flex-start; gap: 8px; }
.sourcing-ai-processing-note > i { flex-shrink: 0; margin-top: 3px; }
.sourcing-ai-processing-note > span { min-width: 0; }
