.task-detail-page { --td-ink: #243752; --td-muted: #64758b; --td-line: #dce4ee; --td-accent: #2b5392; color: var(--td-ink); max-width: 1520px; padding: 24px 28px 36px; margin: 0 auto; font-size: 15px; line-height: 1.6; }
.task-detail-page *, .task-detail-page *::before, .task-detail-page *::after { box-sizing: border-box; }
.task-detail-page button, .task-detail-page input, .task-detail-page select, .task-detail-page textarea { font: inherit; }
.task-detail-page button { cursor: pointer; }
.task-detail-page button:disabled { opacity: .55; cursor: not-allowed; }
.task-detail-page svg { width: 19px; height: 19px; flex: 0 0 19px; }
.task-detail-page :is(input,select,textarea,button,a):focus-visible { outline: 3px solid #99b8e6; outline-offset: 2px; }
.task-detail-page h1, .task-detail-page h2, .task-detail-page h3, .task-detail-page p { margin: 0; }
.td-breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--td-muted); font-size: 14px; }
.td-breadcrumb button { display: inline-flex; align-items: center; gap: 4px; color: var(--td-accent); border: 0; background: none; padding: 4px 2px; max-width: 75%; text-align: left; }
.td-breadcrumb button span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.td-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.td-header h1 { font-size: clamp(24px,2.1vw,30px); line-height: 1.35; font-weight: 700; overflow-wrap: anywhere; }
.td-header .td-eyebrow { font-size: 14px; color: var(--td-muted); margin-bottom: 6px; }
.td-status { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px; border-radius: 7px; font-weight: 650; font-size: 14px; margin-top: 8px; }
.td-status-not-started { color: #536177; background: #e8edf3; }
.td-status-working { color: #995d18; background: #fff1db; }
.td-status-done { color: #137457; background: #e2f4eb; }
.td-status-stuck { color: #b34454; background: #fce9eb; }
.td-page-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 20px; align-items: start; }
.td-card { min-width: 0; padding: 22px; border: 1px solid var(--td-line); border-radius: 12px; background: #fff; }
.td-card h2 { font-size: 19px; line-height: 1.4; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.td-section-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.td-section-head p { font-size: 14px; line-height: 1.6; color: var(--td-muted); margin-top: 5px; }
.td-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.td-button { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; min-height: 40px; color: var(--td-ink); text-decoration: none; border: 1px solid #cfd9e7; border-radius: 7px; background: #fff; font-weight: 600; font-size: 14px !important; line-height: 1.4; white-space: nowrap; }
.td-button:hover { background: #f4f7fb; border-color: #a5bbd6; }
.td-button.td-primary { color: #fff; background: var(--td-accent); border-color: var(--td-accent); }
.td-button.td-primary:hover { background: #244779; }
.td-button[aria-disabled="true"] { color: #8290a2; background: #f7f8fb; cursor: not-allowed; }
.td-field { display: grid; gap: 7px; margin-bottom: 17px; min-width: 0; }
.td-field > span { color: #42536c; font-size: 14px; font-weight: 650; }
.td-field :is(input,textarea,select), .td-date-control { width: 100%; min-width: 0; color: var(--td-ink); border: 1px solid #cfd9e7; border-radius: 7px; background-color: #fff; padding: 10px 12px; min-height: 44px; line-height: 1.55; }
.td-field input[name="name"] { font-weight: 600; }
.td-field select { padding-right: 34px; }
.td-field textarea { resize: vertical; min-height: 120px; }
.td-field :is(input,textarea)::placeholder { color: #8593a4; }
.td-form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 16px; }
.td-date-control { display: flex; justify-content: space-between; align-items: center; gap: 6px; text-align: left; }
.td-date-control .date-input { display: none; }
.td-date-control span { font-variant-numeric: tabular-nums; }
.td-timezone { font-size: 13px; color: var(--td-muted); margin: -5px 0 17px !important; }
.td-members { border: 0; padding: 0; margin: 0; min-width: 0; }
.td-members legend { font-size: 14px; font-weight: 650; margin-bottom: 10px; }
.td-members legend small { font-size: 13px; font-weight: 400; color: var(--td-muted); margin-left: 7px; }
.td-member-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(165px,1fr)); gap: 8px; max-height: 238px; overflow-y: auto; padding: 2px; }
.td-member-option { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid #e1e7ef; border-radius: 7px; font-size: 14px; cursor: pointer; }
.td-member-option:has(input:checked) { border-color: #91afd6; background: #eff5fc; }
.td-member-option input[type="checkbox"] { width: 17px; height: 17px; flex: 0 0 17px; margin: 0; accent-color: var(--td-accent); }
.td-member-option > span:last-child { overflow-wrap: anywhere; }
.td-member-avatar { display: inline-flex; width: 27px; height: 27px; flex: 0 0 27px; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #2b5392; background: #e7eff9; border-radius: 50%; }
.td-save-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 17px; margin-top: 18px; border-top: 1px solid #e8edf4; }
.td-save-bar > span { font-size: 13px; color: var(--td-muted); }
.td-related-group { padding-top: 18px; }
.td-related-group h3 { display: flex; gap: 8px; font-size: 14px; font-weight: 650; color: #536681; margin-bottom: 8px; }
.td-related-group h3 span { color: #7a8ba3; font-weight: 400; }
.td-related-list { list-style: none; padding: 0; margin: 0; }
.td-related-list li + li { border-top: 1px solid #edf1f6; }
.td-related-list a { display: flex; align-items: flex-start; gap: 8px; color: var(--td-ink); text-decoration: none; padding: 9px 0; font-size: 14px; }
.td-related-list a > span:nth-child(2) { overflow-wrap: anywhere; min-width: 0; flex: 1; }
.td-related-list a:hover { color: var(--td-accent); }
.td-task-dot { margin-top: 7px; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; }
.td-empty-inline { color: #78879a; font-size: 14px; }
.td-molecule-card { grid-column: 1/-1; }
.td-molecule-card h2 > span { padding: 0 7px; color: #5b7190; background: #edf2f8; font-size: 13px; border-radius: 5px; }
.td-integration-note { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border: 1px solid #e1e6ee; border-radius: 7px; color: #617086; background: #f7f9fc; margin-bottom: 18px; font-size: 14px; }
.td-connection-dot { width: 7px; height: 7px; flex: 0 0 7px; background: #8392a7; border-radius: 50%; }
.td-integration-note.is-connected .td-connection-dot { background: #399d84; }
.td-molecule-add { margin-bottom: 18px; }
.td-molecule-add > label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 8px; }
.td-molecule-add > div { display: flex; gap: 8px; max-width: 670px; }
.td-molecule-add input { flex: 1; min-width: 0; border: 1px solid #cfd9e7; border-radius: 7px; padding: 9px 12px; }
.td-molecule-table-wrap { overflow-x: auto; border: 1px solid var(--td-line); border-radius: 8px; }
.td-molecule-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; font-size: 14px; }
.td-molecule-table thead { background: #f2f5f9; color: #53657e; }
.td-molecule-table th, .td-molecule-table td { padding: 13px 14px; vertical-align: top; border-bottom: 1px solid #e5eaf1; overflow-wrap: anywhere; }
.td-molecule-table thead th { font-size: 14px; font-weight: 650; }
.td-molecule-table th:first-child { width: 20%; }
.td-molecule-table th:nth-child(2) { width: 16%; }
.td-molecule-table th:nth-child(3) { width: 30%; }
.td-molecule-table .td-row-action { width: 72px; }
.td-molecule-table tbody th { font-weight: 500; }
.td-molecule-table tbody tr:last-child > * { border-bottom: 0; }
.td-molecule-table tbody small { display: block; color: #79889c; font-weight: 400; font-size: 12px; margin-top: 6px; }
.td-molecule-table textarea { width: 100%; resize: vertical; min-height: 62px; background: #fff; color: var(--td-ink); border: 1px solid #d7e0eb; border-radius: 6px; padding: 7px 9px; line-height: 1.5; }
.td-molecule-table textarea::placeholder { color: #8b98a8; }
.td-availability { display: inline-flex; align-items: center; gap: 4px; background: #f3f0e9; color: #8d6d32; border-radius: 5px; padding: 3px 7px; white-space: nowrap; font-size: 13px; }
.td-availability.is-available { background: #e4f3ed; color: #25826a; }
.td-availability svg { width: 15px; height: 15px; flex-basis: 15px; }
.td-metadata { margin: 0; font-size: 13px; line-height: 1.6; max-height: 190px; overflow-y: auto; }
.td-metadata > div { display: grid; grid-template-columns: minmax(60px,35%) minmax(0,1fr); gap: 8px; }
.td-metadata dt { color: #6d7c91; }
.td-metadata dd { margin: 0; white-space: pre-wrap; }
.td-muted { color: #7c899b; }
.td-remove { border: 0; background: none; color: #b84857; padding: 4px 0; font-size: 13px !important; white-space: nowrap; }
.td-remove:hover { color: #942b3a; text-decoration: underline; }
.td-molecule-empty { padding: 28px 16px !important; color: #76869c; text-align: center; }
.td-error { padding: 13px 16px; border: 1px solid #eeb5be; border-radius: 8px; color: #a83d4e; background: #fff3f5; margin-bottom: 18px; }
.td-error[hidden] { display: none; }
.td-update-note { padding: 12px 15px; margin-bottom: 18px; border: 1px solid #bfd0e7; border-radius: 8px; background: #edf4fc; color: #3d608e; font-size: 14px; }
.td-loading { padding-top: 48px; color: #6e7e93; }
.td-load-error { margin-top: 28px; }
.td-load-error h1 { font-size: 24px; }
.td-load-error p { margin: 12px 0 18px; }
@media (max-width: 1100px) { .td-page-grid { grid-template-columns: minmax(0,1fr) 260px; gap: 16px; } .td-card { padding: 18px; } .task-detail-page { padding: 20px; } }
@media (max-width: 850px) { .td-page-grid { grid-template-columns: minmax(0,1fr); } .td-relations { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; } .td-relations > h2 { grid-column: 1/-1; } .td-molecule-card .td-section-head { flex-wrap: wrap; } .td-molecule-table { min-width: 720px; } }
@media (max-width: 550px) { .task-detail-page { padding: 14px 12px 28px; } .td-card { padding: 16px; } .td-header { gap: 10px; margin-bottom: 16px; } .td-header h1 { font-size: 24px; } .td-header .td-status { padding: 4px 8px; } .td-section-head { gap: 8px; } .td-section-head .td-button { padding: 8px; } .td-form-grid { grid-template-columns: 1fr; gap: 0; } .td-relations { grid-template-columns: 1fr 1fr; gap: 0 14px; } .td-members legend small { display: block; margin-left: 0; } .td-member-options { grid-template-columns: 1fr 1fr; max-height: 260px; } .td-member-option { font-size: 13px; gap: 6px; } .td-molecule-add > div { flex-wrap: wrap; } .td-molecule-add input { flex-basis: 100%; } .td-save-bar { align-items: stretch; } .td-save-bar > .td-button { width: 100%; } .td-molecule-card .td-actions { width: 100%; } .td-molecule-card .td-actions > * { flex: 1; } .td-molecule-table-wrap::before { content: '左右滑动查看完整分子信息'; display: block; position: sticky; left: 0; padding: 8px 12px; color: var(--td-muted); font-size: 12px; background: #f7f9fc; border-bottom: 1px solid var(--td-line); } }
