.target-task-entry { display: flex; gap: 24px; padding: 14px 24px; border-bottom: 1px solid #e1e7ee; font-size: 16px; }
.target-task-entry a { color: #c84e13; }
#targetShell .target-page { padding: 28px; color: #273247; background: white; border-radius: 16px; margin-top: 18px; }
#targetShell .target-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; flex-wrap: wrap; }
#targetShell h1 { font-size: 26px; margin: 8px 0; }
#targetShell h2 { font-size: 20px; }
#targetShell .add-button { background: #c84e13; }
#targetShell .target-heading a, #targetShell .breadcrumb a { color: #a84c1b; text-decoration: none; }
#targetShell .target-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin: 20px 0; }
#targetShell label { display: flex; flex-direction: column; gap: 8px; font-size: 16px; min-width: 150px; max-width: 100%; }
#targetShell input, #targetShell select { padding: 10px; border: 1px solid #ccd5e2; border-radius: 7px; background: white; font: inherit; min-width: 0; max-width: 100%; }
#targetShell input[type=checkbox] { align-self: start; }
#targetShell .target-table-wrap { max-height: 65vh; overflow: auto; border: 1px solid #e1e7ee; border-radius: 8px; }
#targetShell table { border-collapse: collapse; width: 100%; min-width: 1050px; font-size: 16px; }
#targetShell th, #targetShell td { padding: 14px; text-align: left; border-bottom: 1px solid #e1e7ee; vertical-align: top; }
#targetShell th { position: sticky; top: 0; background: #f6f8fb; z-index: 1; white-space: nowrap; }
#targetShell td small { display: block; font-size: 14px; color: #657287; margin-top: 7px; max-width: 300px; }
#targetShell .target-section { border-top: 1px solid #e1e7ee; padding-top: 16px; margin-top: 24px; }
#targetShell .target-empty { padding: 20px; }
#targetShell .target-summary { padding: 16px; border: 1px solid #e1e7ee; background: #fff8f2; border-radius: 8px; font-size: 16px; line-height: 1.8; }
#targetShell #targetMessage { color: #a44818; white-space: pre-wrap; }
#targetShell .target-binding-message, #targetShell .target-submit-message { padding: 12px 16px; border-radius: 8px; background: #fff8ec; color: #79520e; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
#targetShell .target-binding-message[data-state=success], #targetShell .target-submit-message[data-state=success] { color: #17643b; background: #edf8f1; }
#targetShell .target-binding-message[data-state=error], #targetShell .target-submit-message[data-state=error] { color: #a62c2c; background: #fff0f0; }
.is-viewer #targetShell button { display: inline-flex; }
@media (max-width: 650px) { #targetShell .target-page { padding: 16px; } #targetShell label { width: 100%; } }
#taskShell {
  --task-accent: #c84e13;
  --task-soft: #fff2e9;
  --task-ink: #273247;
  --task-muted: #657287;
  --task-line: #e1e7ee;
  --task-surface: #f5f7fa;
  color: var(--task-ink);
}
#taskShell .admin-workspace { grid-template-columns: 238px minmax(0, 1fr); align-items: start; }
#taskShell .nav-panel { position: sticky; top: 16px; max-height: calc(100dvh - 32px); box-shadow: none; }
#taskShell .nav-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
#taskShell .nav-heading small { font-family: inherit; font-weight: 400; }
#taskShell .workspace-menu { display: grid; align-content: start; gap: 5px; }
.task-nav-project { display: flex; align-items: center; gap: 9px; width: 100%; min-width: 0; padding: 12px 10px; color: #4e5d72; border: 0; border-radius: 6px; background: transparent; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.task-nav-project > span:first-of-type { flex: 1; overflow-wrap: anywhere; }
.task-nav-project > span:last-child { color: #657287; flex-shrink: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.task-nav-project > img { width: 24px; height: 24px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }
.task-nav-project:hover { background: #f5f7fa; }
.task-nav-project.is-active { color: #b84810; background: #fff2e9; }
#taskShell .add-button { background: var(--task-accent); }
#taskShell #mentionMember { display: inline-grid; place-items: center; }
#taskShell .content-panel { box-shadow: none; }
#taskShell .content-header { padding: 24px; align-items: flex-start; }
#taskShell .content-header h1 { font-size: 25px; overflow-wrap: anywhere; }
#taskShell .content-eyebrow { color: var(--task-accent); font-family: inherit; letter-spacing: 0; }
#taskShell .content-header .subtle { margin-bottom: 0; font-size: 14px; }
#taskShell .content-actions { flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }
#taskShell .task-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 12px; padding: 18px 24px; border-bottom: 1px solid var(--task-line); }
.task-filters label { display: grid; align-content: start; min-width: 0; gap: 7px; color: #4e5d72; font-size: 14px; font-weight: 500; }
.task-filters input, .task-filters select { width: 100%; min-width: 0; min-height: 42px; padding: 9px 10px; color: #273247; border: 1px solid #dce3ec; border-radius: 6px; background: white; font: inherit; font-size: 14px; }
.task-extra-filters { grid-column: span 3; align-self: center; min-width: 0; }
.task-extra-filters > summary { width: fit-content; color: #657287; cursor: pointer; font-size: 14px; }
.task-extra-filters > div { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr); align-items: start; gap: 14px; margin-top: 14px; }
.task-filter-dates { min-width: 0; margin: 0; padding: 0; border: 0; }
.task-filter-dates legend { margin-bottom: 7px; padding: 0; color: #4e5d72; font-size: 14px; }
.task-filter-dates > div { display: flex; align-items: center; gap: 8px; }
.task-filter-dates span { color: #657287; font-size: 14px; }
.task-filters > button { justify-self: end; align-self: end; font-size: 14px; }
.task-filter-error { grid-column: 1 / -1; margin: 0; color: #b43a35; font-size: 14px; }
.task-notification-error { grid-column: 1 / -1; margin: 0; padding: 12px; color: #b43a35; background: #fff2ef; border-radius: 10px; font-size: 14px; overflow-wrap: anywhere; }
#taskShell .task-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 18px 24px; padding: 0; border: 1px solid var(--task-line); border-radius: 8px; overflow: hidden; background: white; }
.task-metric { display: grid; min-width: 0; gap: 4px; padding: 14px 18px; color: #4e5d72; text-align: left; border: 0; border-right: 1px solid #e1e7ee; background: white; cursor: pointer; font-size: 14px; }
.task-metric:last-child { border-right: 0; }
.task-metric strong { display: flex; align-items: baseline; gap: 6px; color: #273247; font-family: inherit; font-size: 27px; font-weight: 500; line-height: 1.3; font-variant-numeric: tabular-nums; }
.task-metric small { color: #657287; font: inherit; font-size: 14px; font-weight: 400; }
.task-metric .task-metric-hint { color: #657287; font-size: 14px; line-height: 1.6; }
.task-metric.is-active { box-shadow: inset 0 -3px 0 #c84e13; background: #fff7f1; }
.task-metric-overdue strong { color: #b43a35; }
.task-metric-completed strong { color: #19805b; }
.task-metric:hover { background: #fffaf6; }
#taskShell .task-view-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 0 24px 18px; background: white; }
.task-view-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid #e1e7ee; border-radius: 6px; background: white; }
.task-view-tabs button { min-height: 36px; padding: 6px 15px; color: #657287; border: 0; border-radius: 4px; background: transparent; font: inherit; font-size: 15px; cursor: pointer; }
.task-view-tabs button[aria-pressed="true"] { color: #b84810; background: #fff2e9; font-weight: 500; }
.task-result-summary { color: #657287; font-size: 14px; }
#taskShell #collapseAll { margin-left: auto; }
#taskShell .task-toolbar { flex-wrap: wrap; padding: 11px 24px; font-size: 14px; }
#taskShell .task-stage { display: grid; align-content: start; gap: 18px; padding: 22px 24px 30px; background: var(--task-surface); overflow: visible; }
.task-project-section { min-width: 0; border: 1px solid #e1e7ee; border-radius: 8px; background: white; }
.task-section-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px; border-bottom: 1px solid #e1e7ee; }
.task-section-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.task-section-heading h2 { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 0; padding-left: 12px; border-left: 4px solid #d95815; font-size: 21px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.is-owner-view .task-section-heading h2 { border-left-color: #92a0b3; }
.task-section-heading p { margin: 5px 0 0; color: #657287; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.task-section-logo { width: 29px; height: 29px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.task-section-controls { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 9px; flex-shrink: 0; }
.task-section-add { padding: 6px 10px; color: #b84810; border: 1px solid #edcfbc; border-radius: 5px; background: #fff9f5; font: inherit; font-size: 14px; cursor: pointer; }
.task-section-toggle { display: grid; place-items: center; width: 29px; height: 29px; flex-shrink: 0; padding: 0; color: #657287; border: 1px solid #e1e7ee; border-radius: 4px; background: white; font-size: 20px; line-height: 1; cursor: pointer; }
.task-list-labels, .task-list-row { display: grid; grid-template-columns: minmax(160px, 1fr) 78px 84px 126px 170px; align-items: center; gap: 12px; padding: 15px 18px; }
.task-list-labels { padding-top: 8px; padding-bottom: 8px; color: #657287; background: #f7f9fb; font-size: 14px; }
.task-list-row { border-bottom: 1px solid #edf0f5; }
.task-list-row:hover { background: #fffdfb; }
.task-list-row > div { min-width: 0; }
.task-list-title { max-width: 100%; padding: 0; color: #273247; border: 0; background: transparent; text-align: left; font: inherit; font-size: 16px; font-weight: 500; line-height: 1.7; overflow-wrap: anywhere; cursor: pointer; }
.task-list-title:hover { color: #b84810; }
.task-source-project { display: block; max-width: 100%; margin-top: 4px; padding: 0; color: #b84810; border: 0; background: transparent; text-align: left; font: inherit; font-size: 14px; cursor: pointer; overflow-wrap: anywhere; }
.task-list-docs { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 5px; }
.task-list-docs:empty { display: none; }
.task-doc-link { padding: 3px 0; color: #b84810; font-size: 14px; text-decoration: none; }
.task-doc-link:hover { text-decoration: underline; }
.task-list-owner > button { padding: 0; color: #4e5d72; border: 0; background: transparent; text-align: left; font: inherit; font-size: 15px; cursor: pointer; }
.task-list-owner > button:hover { color: #b84810; text-decoration: underline; }
.task-status-pill { display: inline-block; padding: 3px 8px; color: #3467af; border-radius: 5px; background: #edf4ff; font-size: 14px; white-space: nowrap; }
.task-status-pill.is-planning { color: #8d6517; background: #fff5dc; }
.task-status-pill.is-completed { color: #187450; background: #e9f7ef; }
.task-list-dates { display: grid; gap: 2px; color: #657287; font-size: 14px; font-variant-numeric: tabular-nums; }
.task-deadline { color: #657287; font-size: 14px; }
.task-deadline.is-overdue { color: #b43a35; }
.task-deadline.is-due { color: #9b6016; }
.task-list-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.task-text-action { padding: 4px 0; color: #596a80; border: 0; background: transparent; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.task-text-action:hover { color: #b84810; text-decoration: underline; }
.task-text-action.is-delete { color: #a54a45; }
.task-execute { padding: 5px 8px; color: #b84810; border: 1px solid #edcfbc; border-radius: 5px; background: #fff9f5; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.task-section-footer { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 10px 18px; }
.task-manage-members { min-width: 0; max-width: 100%; }
.task-manage-members summary { color: #657287; font-size: 14px; cursor: pointer; }
.task-manage-members > div { display: grid; gap: 8px; margin-top: 12px; }
.task-manage-members > div > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.task-manage-members > div > div > span { color: #657287; overflow-wrap: anywhere; }
.task-unassigned { min-width: 0; }
.task-unassigned > summary { color: #657287; font-size: 14px; cursor: pointer; padding: 10px 0; }
.task-unassigned > div { display: grid; gap: 16px; margin-top: 6px; }
.task-member-workspace { color: #b84810; font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
.task-member-workspace:hover { text-decoration: underline; }
.task-principal-tag { padding: 2px 6px; color: #b84810; border-radius: 4px; background: #fff2e9; font-size: 14px; font-weight: 400; }
.task-empty { margin: 0; padding: 22px 18px; color: #657287; font-size: 14px; line-height: 1.8; }
#taskShell :is(button, a, summary, input, select):focus-visible { outline: 2px solid #d95815; outline-offset: 3px; }
body.task-detail-visible { overflow: hidden; }
body.task-detail-visible #toast { z-index: 20; }
#modalBackdrop.task-detail-open { z-index: 10; justify-items: end; padding: 0; }
#modalBackdrop.task-detail-open .modal { display: flex; flex-direction: column; width: min(100%, 540px); height: 100dvh; max-height: 100dvh; margin: 0; padding: 24px; border: 0; border-radius: 0; transform: none; }
#modalBackdrop.task-detail-open .modal-head { flex-shrink: 0; }
#modalBackdrop.task-detail-open .modal-head h2 { overflow-wrap: anywhere; font-size: 22px; }
#modalBackdrop.task-detail-open .modal-head p { overflow-wrap: anywhere; }
#modalBackdrop.task-detail-open .form-grid { flex: 1; align-content: start; overflow-y: auto; min-height: 0; padding: 4px 5px 8px; }
#modalBackdrop.task-detail-open .form-field { min-width: 0; }
#modalBackdrop.task-detail-open .modal-actions { flex-shrink: 0; padding-top: 14px; border-top: 1px solid #e1e7ee; }
#modalBackdrop.task-detail-open .primary-button { background: #d95815; }
#modalBackdrop button:focus-visible, #modalBackdrop a:focus-visible { outline: 2px solid #d95815; outline-offset: 2px; }
.task-detail-summary { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.task-detail-facts { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; margin: 0; font-size: 15px; }
.task-detail-facts dt { color: #657287; }
.task-detail-facts dd { margin: 0; overflow-wrap: anywhere; }
.task-detail-intro { margin-top: 16px; }
.task-detail-intro h3 { font-size: 16px; }
.task-detail-intro p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; }
.task-detail-docs { display: flex; flex-wrap: wrap; gap: 18px; padding: 16px 0; }
.task-readonly-note { padding: 12px; color: #657287; border-radius: 8px; background: #f5f7fa; font-size: 14px; }
@media (max-width: 1300px) {
  #taskShell .admin-workspace { grid-template-columns: 214px minmax(0, 1fr); }
  .task-list-labels, .task-list-row { grid-template-columns: minmax(160px, 1fr) 74px 84px 126px; }
  .task-list-labels > span:last-child { display: none; }
  .task-list-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .task-section-header { align-items: flex-start; flex-wrap: wrap; }
  .task-section-controls { margin-left: auto; }
}
@media (max-width: 900px) {
  #taskShell .admin-workspace { grid-template-columns: 1fr; }
  #taskShell .nav-panel { display: none; }
  #taskShell .admin-topbar { flex-wrap: wrap; gap: 12px; }
  #taskShell .admin-topbar .top-actions { flex-wrap: wrap; margin-left: auto; }
}
@media (max-width: 650px) {
  #taskShell { padding: 10px; }
  #taskShell .content-header, #taskShell .task-filters { padding: 18px 14px; }
  #taskShell .content-header { flex-direction: column; gap: 12px; }
  #taskShell .content-header h1 { font-size: 23px; }
  #taskShell .content-actions { justify-content: flex-start; }
  #taskShell .task-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-extra-filters { grid-column: 1 / -1; }
  .task-extra-filters > div { grid-template-columns: minmax(0, 1fr); }
  .task-filters > button { grid-column: 1 / -1; }
  #taskShell .task-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 14px; }
  .task-metric { padding: 12px; }
  .task-metric:nth-child(2) { border-right: 0; }
  .task-metric:nth-child(-n+2) { border-bottom: 1px solid #e1e7ee; }
  #taskShell .task-view-toolbar { padding: 0 14px 16px; }
  #taskShell .task-toolbar { padding: 12px 14px; }
  #taskShell .data-status { margin-left: 0; white-space: normal; }
  #taskShell .task-stage { padding: 14px; }
  .task-result-summary { flex-basis: 100%; order: 3; }
  .task-section-header { padding: 15px 13px; gap: 10px; }
  .task-section-heading h2 { font-size: 20px; }
  .task-section-controls { justify-content: flex-start; margin-left: 0; width: 100%; }
  .task-section-toggle { margin-left: auto; }
  .task-list-labels { display: none; }
  .task-list-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 15px 13px; }
  .task-list-main { grid-column: 1 / -1; }
  .task-list-owner { grid-column: 1; grid-row: 2; }
  .task-list-owner::before { content: '负责人 '; color: #657287; font-size: 14px; }
  .task-list-status { grid-column: 2; grid-row: 2; }
  .task-list-dates { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 10px; }
  .task-list-dates > span:first-child::before { content: '开始 '; }
  .task-list-dates > span:nth-child(2)::before { content: '结束 '; }
  .task-list-actions { justify-content: flex-start; }
  .task-section-footer { padding: 10px 13px; }
  #modalBackdrop.task-detail-open .modal { padding: 18px; }
}
@media (pointer: coarse) {
  #taskShell :is(button, summary), #modalBackdrop button { min-height: 44px; }
  #taskShell .task-section-toggle { min-width: 44px; }
  #taskShell :is(input, select) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #modalBackdrop, #modalBackdrop .modal { transition: none; }
}
