.workspace-live-error { color: var(--danger, #a43131); margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.workspace-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.workspace-limit { color: var(--text-secondary); font-size: 12px; }
.workspace-list-paging { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 20px 12px; }
.workspace-list-paging button, .workspace-retry { min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.workspace-list-paging button:focus-visible, .workspace-retry:focus-visible { outline: 2px solid var(--agent); outline-offset: 2px; }
.workspace-list-paging button:disabled { opacity: .55; cursor: wait; }
.workspace-list-paging [hidden] { display: none; }
.workspace-list-paging[hidden], [data-workspace-live] #conversation-list[hidden] { display: none; }
[data-workspace-live] #cooperation-search::placeholder { color: var(--v2-text-placeholder); opacity: 1; }
.workspace-list-paging p { flex-basis: 100%; margin: 0; text-align: center; color: var(--danger); }
.tab-total { margin-left: 6px; color: var(--text-tertiary); font-size: 12px; font-variant-numeric: tabular-nums; }
.workspace-command-recovery { padding: 12px 20px; border-top: 1px solid var(--line); background: var(--attention-soft); }
.workspace-command-recovery p { margin: 0 0 8px; }
[data-workspace-live] .terms-list dd { white-space: pre-wrap; overflow-wrap: anywhere; }
[data-workspace-live] .proposal-card__terms dd { white-space: pre-wrap; overflow-wrap: anywhere; }
/* 2026-11-13 反馈 202-A5/C/F2：参与者恢复原型两列横排；操作栏恢复原型单行——删掉此前的竖排/block 覆盖。 */
/* 2026-11-15 反馈 202：删掉逐条消息灰底；消息结构改走 11.4 设计的 .message__content/.message__body，
   人类消息（双方）的气泡由下面的 .message__content 规则呈现，Agent/系统消息保持纯文字。 */
[data-workspace-live] .message { padding: 0; border-radius: 0; background: transparent; }
[data-workspace-live] .message--mine { margin-left: auto; background: transparent; }
/* 设计 11.4 只给「我的」气泡，202 要求对方人类消息也进气泡（靠左、气泡只含正文）。 */
[data-workspace-live] .message--counter-human { width: fit-content; max-width: min(520px, 68%); }
[data-workspace-live] .message--counter-human .message__content { width: auto; margin: 5px 0 0; padding: 10px 13px; border-radius: 10px 10px 10px 3px; background: var(--surface-soft); }
/* 2026-11-16 QA 反馈：平台 Agent 消息固定左侧；保留原来的灰底气泡（此前被 own 判定误放到右侧）。 */
[data-workspace-live] .message--platform-agent { width: fit-content; max-width: min(520px, 68%); margin-right: auto; }
[data-workspace-live] .message--platform-agent .message__content { width: auto; margin: 5px 0 0; padding: 10px 13px; border-radius: 10px 10px 10px 3px; background: var(--surface-strong); }
[data-workspace-live] .message__meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-secondary); }
[data-workspace-live] .private-note textarea { width: 100%; min-height: 70px; }
.workspace-action-dialog { max-height: 90dvh; overflow: auto; width: min(650px, calc(100% - 24px)); }
.workspace-action-dialog form { display: grid; gap: 12px; }
.workspace-action-dialog header { display: flex; justify-content: space-between; gap: 16px; }
.workspace-action-dialog input { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 10px; width: 100%; }
.workspace-action-dialog textarea { min-height: 70px; }
.workspace-mobile-note { display: none; }
#mobile-info-trigger { display: none; }
[data-workspace-live] .thread-row__last-message { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 4px; color: var(--text-secondary); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
[data-workspace-live] .thread-heading__main { min-width: 0; }
[data-workspace-live] .message__meta time { font-size: 10px; font-weight: 400; color: var(--text-tertiary); }
@media (max-width: 820px) {
  #mobile-info-trigger, .workspace-mobile-note { display: inline-flex; }
  [data-workspace-live] .thread-heading__main { flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; }
  [data-workspace-live] .thread-heading__main > div { flex: 1 1 100%; }
  [data-workspace-live] .alignment-actions__controls { max-height: 100px; overflow: auto; }
  [data-workspace-live] .thread-page { overflow: hidden; }
  [data-workspace-live] #mobile-info-trigger { grid-column: 1 / -1; grid-row: 2; width: 100%; min-height: 44px; justify-content: space-between; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface); text-align: left; white-space: nowrap; }
  [data-workspace-live] .deadline-slot--mobile { display: none; }
  [data-workspace-live] .message--counter-human { max-width: 84%; }
  [data-workspace-live] .message--platform-agent { max-width: 84%; }
  [data-workspace-live] .thread-row__last-message { grid-column: 2; margin-top: 4px; }
  .workspace-action-dialog .dialog-actions { position: sticky; bottom: 0; background: var(--surface); padding-block: 12px; }
}

/* 2026-11-12：合作页 toast 自动消失。JS 先加 is-leaving 淡出，180ms 后再 hidden；
   与 thread-v2.css 的 [hidden]{display:none!important} 配合，不改变现有定位/配色。 */
#toast { transition: opacity 180ms cubic-bezier(.22, 1, .36, 1); }
#toast.is-leaving { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  #toast { transition: none; }
}

/* ============================================================
   2026-11-15 QA 反馈：验收协议全文统一弹窗 + Markdown 排版
   协议卡 / 归档当前版本 / 归档历史版本都用 [data-agreement-open] 打开同一弹窗。
   ============================================================ */
[data-workspace-live] .agreement-card__open-row { margin-top: 12px; }
[data-workspace-live] .agreement-card__open { padding: 0; cursor: pointer; }
[data-workspace-live] .agreement-archive__version { padding: 0; cursor: pointer; text-align: left; }
[data-workspace-live] .agreement-reader {
  width: min(760px, calc(100% - 32px));
  max-height: 85dvh;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
[data-workspace-live] .agreement-reader__head { flex: 0 0 auto; align-items: center; }
[data-workspace-live] .agreement-reader__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
[data-workspace-live] .agreement-reader__body > :first-child { margin-top: 0; }
[data-workspace-live] .agreement-reader__body h2 { margin: 20px 0 8px; font-size: 18px; line-height: 1.35; }
[data-workspace-live] .agreement-reader__body h3 { margin: 18px 0 7px; font-size: 15px; line-height: 1.4; }
[data-workspace-live] .agreement-reader__body h4 { margin: 16px 0 6px; font-size: 13.5px; line-height: 1.45; }
[data-workspace-live] .agreement-reader__body p { margin: 8px 0; }
[data-workspace-live] .agreement-reader__body ul,
[data-workspace-live] .agreement-reader__body ol { margin: 8px 0; padding-left: 22px; }
[data-workspace-live] .agreement-reader__body li + li { margin-top: 3px; }
[data-workspace-live] .agreement-reader__body table { width: 100%; margin: 12px 0; border-collapse: collapse; font-size: 12px; line-height: 1.55; }
[data-workspace-live] .agreement-reader__body :is(th, td) { padding: 6px 8px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
[data-workspace-live] .agreement-reader__body th { background: var(--surface-soft); font-weight: 550; }
[data-workspace-live] .agreement-reader__body code { padding: 1px 4px; border-radius: 4px; background: var(--surface-soft); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
[data-workspace-live] .agreement-reader__body pre.agreement-md__code { margin: 10px 0; padding: 12px; overflow: auto; border-radius: var(--radius-sm); background: var(--surface-soft); }
[data-workspace-live] .agreement-reader__body pre.agreement-md__code code { padding: 0; background: transparent; }
[data-workspace-live] .agreement-reader__body blockquote { margin: 10px 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--text-secondary); }
[data-workspace-live] .agreement-reader__body hr { margin: 16px 0; border: 0; border-top: 1px solid var(--line); }
@media (max-width: 820px) {
  [data-workspace-live] .agreement-reader {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 16px;
  }
  [data-workspace-live] .agreement-reader__body { font-size: 13px; }
  [data-workspace-live] .agreement-reader__body table { display: block; overflow-x: auto; }
}

/* 2026-11-16 t68/t70：上传失败中上黑色 toast，2.6s 自动消失。 */
[data-workspace-live] .upload-failure-toast { position: fixed; z-index: 60; top: 18%; left: 50%; transform: translateX(-50%); padding: 10px 16px; border-radius: 8px; background: #1f2328; color: #fff; font-size: 13px; line-height: 1.4; box-shadow: 0 8px 24px rgb(0 0 0 / 0.18); pointer-events: none; }
.upload-failure-toast { position: fixed; z-index: 60; top: 18%; left: 50%; transform: translateX(-50%); padding: 10px 16px; border-radius: 8px; background: #1f2328; color: #fff; font-size: 13px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.18); pointer-events: none; }

/* 2026-11-17 t85：聊天「+」待发送附件条 + 消息附件。 */
[data-workspace-live] .message-composer__attachments { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 0; }
[data-workspace-live] .composer-attachment { max-width: 100%; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); display: flex; align-items: center; gap: 7px; }
[data-workspace-live] .composer-attachment__copy { min-width: 0; display: grid; gap: 1px; }
[data-workspace-live] .composer-attachment__copy strong { max-width: 220px; font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-workspace-live] .composer-attachment__copy small { color: var(--text-tertiary); font-size: 10px; }
[data-workspace-live] .composer-attachment--image { width: 76px; height: 76px; padding: 0; position: relative; overflow: hidden; display: block; }
[data-workspace-live] .composer-attachment--image img { width: 100%; height: 100%; object-fit: cover; display: block; }
[data-workspace-live] .composer-attachment--image .composer-attachment__state { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 4px 4px; background: linear-gradient(transparent, rgb(0 0 0 / 0.62)); color: #fff; font-size: 10px; text-align: center; }
[data-workspace-live] .composer-attachment--image .composer-attachment__remove { position: absolute; top: 2px; right: 2px; background: rgb(0 0 0 / 0.5); color: #fff; }
[data-workspace-live] .composer-attachment__state { display: inline-flex; align-items: center; gap: 4px; }
[data-workspace-live] .composer-attachment__spinner { width: 9px; height: 9px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: composer-spin 0.8s linear infinite; }
@keyframes composer-spin { to { transform: rotate(360deg); } }
[data-workspace-live] .composer-attachment__remove { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-tertiary); font-size: 16px; line-height: 1; cursor: pointer; }
[data-workspace-live] .composer-attachment__remove:hover { background: var(--surface-strong); color: var(--text); }
[data-workspace-live] .message-attachments { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
[data-workspace-live] .message-attachment { max-width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
[data-workspace-live] .message-attachment--image { width: 132px; display: block; }
[data-workspace-live] .message-attachment--image img { width: 132px; height: 100px; object-fit: cover; display: block; background: var(--surface-soft); }
[data-workspace-live] .message-attachment:not(.message-attachment--image) { padding: 7px 10px; display: flex; align-items: center; gap: 8px; }
[data-workspace-live] .message-attachment__copy { min-width: 0; display: grid; gap: 2px; }
[data-workspace-live] .message-attachment__copy strong { font-size: 13px; font-weight: 500; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-workspace-live] .message-attachment__copy small { color: var(--text-tertiary); font-size: 11px; }
@media (max-width: 820px) {
  [data-workspace-live] .message-attachment--image { width: 112px; }
  [data-workspace-live] .message-attachment--image img { width: 112px; height: 84px; }
}

/* 2026-11-17 t79/t86：文件预览页对齐 11.16-2；外框固定尺寸，不随文件类型/内容/缩放变化。 */
.file-preview-dialog { --preview-width: min(1120px, 86vw); --preview-height: min(760px, 84vh); width: var(--preview-width); height: var(--preview-height); min-width: var(--preview-width); min-height: var(--preview-height); max-width: none; max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); overflow: hidden; display: none; flex-direction: column; }
.file-preview-dialog[open] { display: flex; }
.file-preview-header { flex: 0 0 auto; padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.file-preview-heading { min-width: 0; }
.file-preview-heading h2 { margin: 0; font-size: 15px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-preview-heading p { margin: 3px 0 0; color: var(--text-tertiary); font-size: 12px; }
.file-preview-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.file-preview-actions .icon-button { width: 32px; height: 32px; display: grid; place-items: center; }
.file-preview-actions svg { width: 16px; height: 16px; }
.file-preview-stage { flex: 1 1 auto; min-height: 0; max-height: none; padding: 18px; overflow: auto; background: var(--surface-soft); display: flex; align-items: flex-start; justify-content: center; }
.file-preview-image { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; margin: 0 auto; }
.file-preview-pdf { width: 100%; height: 100%; min-height: 100%; border: 0; background: #fff; }
.file-preview-unavailable { margin: auto; padding: 28px; text-align: center; color: var(--text-secondary); }
.file-preview-status { margin: auto; padding: 28px; text-align: center; color: var(--text-tertiary); font-size: 13px; }
.file-preview-zoom { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: 0 8px 24px rgb(0 0 0 / 0.12); display: flex; align-items: center; gap: 2px; }
.file-preview-zoom button { min-width: 32px; height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--text-secondary); font: inherit; cursor: pointer; }
.file-preview-zoom button:disabled { opacity: 0.35; cursor: default; }
.file-preview-zoom__reset { min-width: 72px !important; }
@media (max-width: 820px) {
  .file-preview-dialog { --preview-width: 100vw; --preview-height: 100dvh; width: 100vw; height: 100dvh; min-width: 100vw; min-height: 100dvh; max-width: none; max-height: none; border-radius: 0; }
  .file-preview-stage { min-height: 0; max-height: none; padding: 12px; }
}

/* 2026-11-16 t68：文件查看页右上角「下载」与关闭；右栏进度文字即进资料 Tab 的入口。 */
[data-workspace-live] .progress-preview-dialog__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
[data-workspace-live] .progress-summary-list__link { padding: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
[data-workspace-live] .progress-summary-list__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 2026-11-16 t57/t60：资料列表按最新设计=图标+单行文件名，整行/文件名即预览入口；不再每行铺按钮。 */
/* 2026-11-17 t88：资料页对齐 11.16-2——无顶部说明，仅图标+单行文件名。 */
[data-workspace-live] .workflow-file-list { margin: 0; padding: 0; list-style: none; }
[data-workspace-live] .workflow-file-row { border-bottom: 1px solid var(--line); }
[data-workspace-live] .workflow-file-row:first-child { border-top: 1px solid var(--line); }
[data-workspace-live] .workflow-file-row__name { width: 100%; min-height: 48px; padding: 0 2px; border: 0; border-radius: 0; background: transparent; color: var(--text); display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.5; text-align: left; cursor: pointer; }
[data-workspace-live] .workflow-file-row__name svg { width: 18px; height: 18px; flex: none; color: var(--text-tertiary); }
[data-workspace-live] .workflow-file-row__name span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-workspace-live] .workflow-file-row__name:not(:disabled):hover span { text-decoration: underline; text-underline-offset: 3px; }
[data-workspace-live] .workflow-file-row__name:disabled { cursor: default; color: var(--text-secondary); }
[data-workspace-live] .workflow-file-empty { padding: 18px 2px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text-tertiary); font-size: 13px; line-height: 1.6; }

/* 2026-11-16 反馈 t61：交付/验收操作栏【…】菜单 + 交付卡操作行；常驻栏被卡片替代时仅隐藏可见性，不改变布局。 */
[data-workspace-live] .delivery-more-actions { position: relative; }
[data-workspace-live] .delivery-more-trigger { width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; color: var(--text-secondary); display: grid; place-items: center; cursor: pointer; }
[data-workspace-live] .delivery-more-trigger svg { width: 18px; height: 18px; }
[data-workspace-live] .delivery-more-trigger[aria-expanded='true'] { background: var(--surface-strong); color: var(--text); }
[data-workspace-live] .delivery-action-menu { position: fixed; z-index: 30; top: 0; left: 0; width: max-content; min-width: 140px; max-width: min(190px, calc(100vw - 16px)); padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 14px 34px oklch(0.22 0.014 250 / 0.12), 0 2px 7px oklch(0.22 0.014 250 / 0.05); visibility: hidden; }
[data-workspace-live] .delivery-action-menu[data-positioned='true'] { visibility: visible; }
[data-workspace-live] .delivery-action-menu__item { width: 100%; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text-secondary); display: block; text-align: left; cursor: pointer; }
[data-workspace-live] .delivery-action-menu__item span { font-size: 13px; font-weight: 500; white-space: nowrap; }
[data-workspace-live] .delivery-card__actions { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
[data-workspace-live] .alignment-actions.is-context-suppressed { visibility: hidden; pointer-events: none; }
@media (max-width: 820px) {
  [data-workspace-live] .delivery-card__actions { flex-wrap: nowrap; }
}

/* 2026-11-16 反馈 227-4：协议确认阶段操作区左侧的【查看协议全文】快捷入口。 */
[data-workspace-live] .alignment-actions__controls:has(.alignment-actions__agreement-link) { flex: 1 1 auto; }
[data-workspace-live] .alignment-actions__agreement-link { margin-right: auto; white-space: nowrap; }
/* 2026-11-16 反馈 234：已结束需求输入框正常展示、置灰禁用，固定完整高度不裁切。 */
[data-workspace-live] .message-composer.is-ended textarea { min-height: 58px; height: 58px; max-height: 58px; }

/* 2026-11-16 QA 反馈（最新 11.4 设计稿）：同步项目进度弹窗（进度说明 + 附件拖拽区 + 底部保存/申请验收）。 */
[data-workspace-live] #workspace-action-dialog.progress-dialog { width: min(640px, calc(100vw - 32px)); }
[data-workspace-live] .progress-dialog__header { min-height: 36px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
[data-workspace-live] .progress-dialog__header h2 { margin: 0; }
[data-workspace-live] .progress-dialog__header .icon-button { width: 32px; height: 32px; margin: -5px -7px 0 0; flex: 0 0 auto; }
[data-workspace-live] .progress-dialog__header .icon-button svg { width: 18px; height: 18px; }
[data-workspace-live] .progress-dialog__copy { margin: 10px 0 0; color: var(--text-secondary); }
[data-workspace-live] .progress-copy-field { margin-top: 18px; display: block; }
[data-workspace-live] .progress-copy-field > span { color: var(--text); font-size: 13px; font-weight: 560; }
[data-workspace-live] .progress-copy-field textarea { min-height: 120px; max-height: 220px; background: transparent; }
[data-workspace-live] .progress-copy-field textarea:focus { background: transparent; }
[data-workspace-live] .progress-attachments { margin-top: 22px; }
[data-workspace-live] .progress-attachments__heading { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
[data-workspace-live] .progress-attachments__heading h3 { margin: 0; color: var(--text); font-size: 13px; line-height: 1.45; font-weight: 560; }
[data-workspace-live] .progress-attachments__heading h3 span { margin-left: 4px; color: var(--text-tertiary); font-size: 10px; font-weight: 400; }
[data-workspace-live] .progress-attachment-add { flex: 0 0 auto; min-height: 32px; padding: 0 9px; border: 0; border-radius: 7px; background: color-mix(in oklch, var(--agent-soft) 76%, var(--surface)); color: var(--agent); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
[data-workspace-live] .progress-attachment-add[hidden] { display: none; }
[data-workspace-live] .progress-attachment-add svg { width: 16px; height: 16px; }
[data-workspace-live] .progress-attachment-add span { font-size: 12px; font-weight: 500; }
[data-workspace-live] .progress-attachment-dropzone { min-height: 86px; margin-top: 7px; padding: 14px 18px; border: 1px dashed color-mix(in oklch, var(--agent) 30%, var(--line)); border-radius: 9px; background: color-mix(in oklch, var(--agent-soft) 28%, var(--surface)); display: flex; align-items: center; justify-content: center; gap: 11px; text-align: left; transition: border-color 160ms ease-out, background 160ms ease-out; }
[data-workspace-live] .progress-attachment-dropzone[hidden] { display: none; }
[data-workspace-live] .progress-attachment-dropzone > svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--agent); }
[data-workspace-live] .progress-attachment-dropzone p { margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.45; }
[data-workspace-live] .progress-attachment-dropzone button { padding: 0; border: 0; background: transparent; color: var(--agent); font: inherit; font-weight: 560; cursor: pointer; }
[data-workspace-live] .progress-attachment-dropzone small { margin-top: 2px; color: var(--text-tertiary); display: block; font-size: 10px; line-height: 1.35; }
[data-workspace-live] .progress-attachments.is-dragover .progress-attachment-dropzone { border-color: color-mix(in oklch, var(--agent) 70%, var(--line)); background: color-mix(in oklch, var(--agent-soft) 64%, var(--surface)); }
[data-workspace-live] .progress-attachments.is-dragover .progress-attachment-list:not([hidden]) { outline: 1px dashed color-mix(in oklch, var(--agent) 62%, var(--line)); outline-offset: 4px; border-radius: 7px; background: color-mix(in oklch, var(--agent-soft) 25%, transparent); }
[data-workspace-live] .progress-attachment-list { margin-top: 8px; display: grid; gap: 3px; }
[data-workspace-live] .progress-attachment-list[hidden] { display: none; }
[data-workspace-live] .progress-attachment { min-width: 0; min-height: 38px; padding: 4px 2px; border-radius: 7px; background: transparent; display: flex; align-items: center; gap: 7px; }
[data-workspace-live] .progress-attachment .attachment-type-icon { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 0; background: transparent; }
[data-workspace-live] .progress-attachment .attachment-type-icon svg { width: 15px; height: 15px; }
[data-workspace-live] .progress-attachment__copy { min-width: 0; flex: 1; }
[data-workspace-live] .progress-attachment__copy strong, [data-workspace-live] .progress-attachment__copy small { min-width: 0; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-workspace-live] .progress-attachment__copy strong { color: var(--text-secondary); font-size: 12px; line-height: 1.35; font-weight: 500; }
[data-workspace-live] .progress-attachment__copy small { color: var(--text-tertiary); font-size: 10px; line-height: 1.2; }
[data-workspace-live] .progress-attachment__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
[data-workspace-live] .progress-attachment__remove { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-tertiary); display: grid; place-items: center; cursor: pointer; }
[data-workspace-live] .progress-attachment__remove svg { width: 14px; height: 14px; }
[data-workspace-live] .progress-attachment--image .attachment-type-icon { color: var(--agent); }
[data-workspace-live] .progress-attachment--pdf .attachment-type-icon { color: var(--danger); }
[data-workspace-live] .progress-attachment--zip .attachment-type-icon { color: var(--text-secondary); }
[data-workspace-live] .progress-dialog__actions { margin-top: 22px; display: flex; justify-content: flex-end; gap: 8px; }
[data-workspace-live] .progress-submit-options { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
[data-workspace-live] .progress-submit-options legend { margin-bottom: 8px; padding: 0; color: var(--text); font-size: 13px; font-weight: 560; }
[data-workspace-live] .progress-submit-options legend span { margin-left: 4px; color: var(--text-tertiary); font-size: 10px; font-weight: 400; }
[data-workspace-live] .progress-submit-option { position: relative; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); display: flex; align-items: flex-start; gap: 10px; cursor: pointer; transition: border-color 160ms ease-out, background 160ms ease-out; }
[data-workspace-live] .progress-submit-option:has(input:checked) { border-color: color-mix(in oklch, var(--agent) 55%, var(--line)); background: color-mix(in oklch, var(--agent-soft) 55%, var(--surface)); }
[data-workspace-live] .progress-submit-option:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }
[data-workspace-live] .progress-submit-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
[data-workspace-live] .progress-submit-option__copy { min-width: 0; display: block; }
[data-workspace-live] .progress-submit-option__copy strong { display: block; color: var(--text); font-size: 13px; font-weight: 560; line-height: 1.35; }
[data-workspace-live] .progress-submit-option__copy small, [data-workspace-live] .progress-submit-option__reason { display: block; margin-top: 2px; color: var(--text-tertiary); font-size: 10px; line-height: 1.35; }
[data-workspace-live] .progress-submit-option__reason { color: var(--text-secondary); }
[data-workspace-live] .progress-copy-field > span small { margin-left: 4px; color: var(--text-tertiary); font-size: 10px; font-weight: 400; }
@media (max-width: 820px) {
  [data-workspace-live] .progress-submit-options { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  [data-workspace-live] #workspace-action-dialog.progress-dialog { width: calc(100vw - 20px); }
  [data-workspace-live] .progress-attachments__heading { align-items: flex-end; }
  [data-workspace-live] .progress-attachment-dropzone { min-height: 72px; padding: 12px 14px; justify-content: flex-start; }
  [data-workspace-live] .progress-attachment-dropzone__desktop { display: none; }
  [data-workspace-live] .progress-attachment-dropzone p { font-size: 13px; }
  [data-workspace-live] .progress-dialog__actions { flex-direction: column-reverse; }
  [data-workspace-live] .progress-dialog__actions .button { width: 100%; }
}



.project-file-row { display:flex; align-items:center; gap:8px; min-width:0; }
.project-file-row .project-file-link { flex:1; min-width:0; }
.project-file-row__actions { display:flex; gap:6px; opacity:0; }
.project-file-row:hover .project-file-row__actions, .project-file-row:focus-within .project-file-row__actions { opacity:1; }
.project-file-row__actions button { border:0; background:none; color:#697383; cursor:pointer; padding:8px; }
.progress-preview-body { background:#f5f6f8; overflow:auto; }
.file-preview-zoom { display:flex; justify-content:center; gap:12px; padding:12px; background:#fff; }
.file-preview-zoom button { border:1px solid #e0e3e8; border-radius:8px; padding:8px 14px; background:white; }
@media(max-width:620px) { .project-file-row__actions { opacity:1; } .progress-preview-dialog { width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; margin:0; } }
[data-workspace-live] .acceptance-confirm-dialog { width: min(520px, calc(100vw - 32px)); max-width: 520px; }
[data-workspace-live] .acceptance-confirm-dialog header h2 { margin: 0; font-size: 18px; }
[data-workspace-live] .acceptance-confirm-dialog > form > p { margin: 12px 0 0; color: var(--text-secondary); line-height: 1.65; }
[data-workspace-live] .acceptance-confirm__row { margin-top: 16px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 13px; }
[data-workspace-live] .acceptance-confirm__row strong { color: var(--text-tertiary); font-weight: 400; }
[data-workspace-live] .acceptance-confirm-dialog .dialog-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 8px; }

/* t104：独立完成卡复用交付卡风格 + 评价星级。 */
[data-workspace-live] .cooperation-completed-card { border: 1px solid var(--line); }
[data-workspace-live] .cooperation-completed-card .delivery-card__actions { margin-top: 10px; }
[data-workspace-live] .review-rating { border: 0; padding: 0; margin: 0 0 14px; }
[data-workspace-live] .review-rating legend { padding: 0; margin-bottom: 8px; font-size: 13px; color: var(--text-secondary); }
[data-workspace-live] .review-stars { display: flex; align-items: center; gap: 4px; }
[data-workspace-live] .review-star { width: 34px; height: 34px; padding: 0; border: 0; background: transparent; color: var(--line-strong, #d5d9dd); font-size: 28px; line-height: 1; cursor: pointer; }
[data-workspace-live] .review-star.is-filled { color: #f5a623; }
[data-workspace-live] .review-star:focus-visible { outline: 2px solid var(--accent, #2f6fed); outline-offset: 2px; border-radius: 4px; }
