.task-drafts-panel { min-width: 0; display: grid; gap: 24px; padding: var(--ui-content-gutter, 24px); }
.task-draft-editor-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 22px; background: #f8f4fb; border-bottom: 1px solid #e7deed; }
.task-draft-editor-tools > p { min-width: 0; margin: 0; color: #6d5d78; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.task-draft-editor-tools > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.task-draft-editor-tools button, .task-draft-editor-tools a { min-height: 44px; font-size: 16px; }
.task-draft-editor-tools a { display: inline-flex; align-items: center; padding: 8px 10px; color: #6b425d; text-decoration: underline; text-underline-offset: 4px; }
.task-drafts-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.task-drafts-toolbar > p { min-width: 0; margin: 0; max-width: 720px; color: var(--text-muted, #676174); font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.task-drafts-toolbar-actions, .task-draft-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.task-drafts-toolbar-actions { flex-shrink: 0; }
.task-drafts-toolbar button, .task-drafts-empty button, .task-draft-actions button, .task-drafts-recovery button, .task-drafts-more { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.task-drafts-filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.task-drafts-tabs { display: flex; gap: 4px; max-width: 100%; padding: 5px; }
.task-drafts-tabs button { min-width: 0; }
.task-drafts-search { min-width: 0; flex: 0 1 320px; margin: 0; }
.task-drafts-search input { box-sizing: border-box; width: 100%; min-height: 44px; margin: 0; font-size: 17px; }
.task-drafts-status { min-height: 25px; margin: 0; color: #61566b; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.task-drafts-status[data-kind="error"] { color: #9b3147; }
.task-drafts-list { min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; align-items: start; }
.task-draft-card { min-width: 0; display: grid; gap: 15px; padding: 24px; border: 1px solid #e7e0eb; border-radius: 20px; background: #fff; box-shadow: 0 6px 20px #45254005; }
.task-draft-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.task-draft-card-heading h3 { min-width: 0; margin: 0; color: #31263b; font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; }
.task-draft-badge { flex: 0 0 auto; padding: 5px 10px; border-radius: 8px; background: #f1eaf5; color: #645073; font-size: 15px; white-space: nowrap; }
.task-draft-badge.is-publishing { color: #8b581a; background: #fff4e0; }
.task-draft-badge.is-published { color: #2a6a4b; background: #eaf6ef; }
.task-draft-preview { margin: 0; color: #595362; font-size: 17px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-draft-meta { margin: 0; color: #776d80; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.task-draft-actions { padding-top: 4px; align-items: center; }
.task-draft-warning { margin: 0; color: #8b581a; font-size: 16px; line-height: 1.6; }
.task-drafts-empty { grid-column: 1 / -1; padding: 34px 24px; border: 1px dashed #d9cfe1; border-radius: 18px; background: #fdfbfe; text-align: center; }
.task-drafts-empty h3 { margin: 0 0 10px; font-size: 20px; }
.task-drafts-empty p { margin: 0 0 18px; color: #716678; font-size: 17px; line-height: 1.7; }
.task-drafts-recovery { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; background: #fff5e8; border: 1px solid #ebd7b9; }
.task-drafts-recovery[hidden] { display: none; }
.task-drafts-recovery p { min-width: 0; margin: 0; font-size: 16px; color: #7d562b; overflow-wrap: anywhere; }
.task-drafts-more { justify-self: center; }
/* The customer workspace has one route-aware refresh action in its page header. */
body[data-portal="customer"] #refresh-task-drafts { display: none; }
.task-drafts-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  .task-drafts-panel { gap: 20px; padding: var(--ui-content-gutter, 16px); }
  .task-drafts-toolbar { align-items: stretch; flex-direction: column; gap: 14px; }
  .task-drafts-toolbar-actions button { flex: 1; }
  .task-drafts-filters { gap: 12px; }
  .task-drafts-tabs { width: 100%; }
  .task-drafts-tabs button { flex: 1; padding-inline: 10px; }
  .task-drafts-search { flex-basis: 100%; }
  .task-draft-card { padding: 16px; gap: 12px; }
  .task-draft-card-heading { flex-wrap: wrap; }
  .task-draft-actions button { flex: 1 1 120px; }
  .task-drafts-recovery { flex-direction: column; align-items: stretch; }
  .task-draft-editor-tools { flex-direction: column; align-items: stretch; padding: 16px 20px; gap: 12px; }
  .task-draft-editor-tools > div { align-items: stretch; }
  .task-draft-editor-tools button { flex: 1 1 120px; }
}
@media (max-width: 820px) {
  body[data-portal=customer] .sidebar[aria-label="主导航"] nav { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
