#taskDetailDialog {
  width: min(1180px, calc(100vw - 40px));
  height: min(860px, calc(100dvh - 48px));
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  border: 1px solid #e4eaf2;
  border-radius: 18px;
}
#taskDetailDialog .dialogHeader { padding: 24px 28px 20px; align-items: center; }
#taskDetailDialog .dialogHeader > div { min-width: 0; }
#taskDetailDialog .dialogHeader h2 { font-size: 22px; line-height: 1.45; overflow-wrap: anywhere; }
#taskDetailDialog .dialogHeader p { color: #71839e; overflow-wrap: anywhere; }
#taskDetailDialog #detail { padding: 0; background: #f6f8fb; flex: 1; }
.detailOverview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px;
  background: #fff;
}
.detailMetadata { display: flex; gap: 36px; min-width: 0; }
.detailMetadata > div { display: grid; gap: 7px; min-width: 0; }
.detailMetadata span { color: #8391a6; font-size: 12px; }
.detailMetadata strong { font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.detailTaskTools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.detailTaskTools select { width: 105px; min-height: 36px; padding: 7px 10px; font-size: 13px; }
.detailTaskTools .secondary { padding: 8px 12px; font-size: 13px; }
.detailTaskTools .danger { font-size: 12px; }
.detailTabBar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid #e3e9f2;
}
.detailTabs { display: flex; gap: 28px; }
.detailTabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 17px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #748299;
  white-space: nowrap;
}
.detailTabs button[aria-selected="true"] { color: #246bfa; border-bottom-color: #246bfa; font-weight: 600; }
.detailTabs button > span { padding: 1px 6px; border-radius: 5px; background: #f0f3f8; color: #7a89a0; font-size: 11px; }
.detailTabs button[aria-selected="true"] > span { background: #edf3ff; color: #246bfa; }
.detailTabBar .fileButton { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 8px 11px; margin: 0; }
.detailTabBar .appIcon { width: 13px; height: 13px; }
.detailPanels { padding: 24px 28px 28px; }
.detailPanels > [hidden] { display: none; }
.detailBriefLayout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 24px; align-items: start; }
.detailVisual { min-width: 0; }
#taskDetailGallery { border: 1px solid #e3e9f1; border-radius: 12px; padding: 12px; background: #fff; }
.detailMainImage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  aspect-ratio: 1.22;
  border: 0;
  border-radius: 8px;
  background: #f5f7fa;
  padding: 16px;
  overflow: hidden;
  cursor: zoom-in;
}
.detailMainImage > img { display: block; height: 100%; width: 100%; object-fit: contain; }
.detailZoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #61748e;
  background: #ffffffeb;
  border: 1px solid #e4eaf2;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
}
.detailZoom .appIcon { width: 12px; height: 12px; }
.detailImageCaption { display: flex; align-items: center; gap: 10px; padding: 12px 2px 2px; min-width: 0; }
.detailImageCaption strong { font-size: 12px; color: #285fba; flex-shrink: 0; }
.detailImageCaption > span { flex: 1; color: #8391a6; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detailImageCaption .ghost { font-size: 12px; }
.detailThumbnails { display: flex; gap: 9px; overflow-x: auto; padding: 12px 2px 2px; }
.detailThumbnails button {
  width: 86px;
  flex: 0 0 86px;
  display: grid;
  gap: 5px;
  justify-items: center;
  border: 1px solid #e2e8f1;
  border-radius: 7px;
  background: #fff;
  padding: 5px;
  color: #72819a;
}
.detailThumbnails img { width: 72px; height: 54px; object-fit: contain; border-radius: 4px; }
.detailThumbnails button > .appIcon { width: 32px; height: 54px; }
.detailThumbnails button > span:last-child { font-size: 10px; max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detailThumbnails button[aria-pressed="true"] { border-color: #699aff; color: #246bfa; background: #f1f6ff; box-shadow: 0 0 0 1px #699aff; }
.detailDocument { display: grid; justify-items: center; gap: 12px; color: #6d809a; overflow-wrap: anywhere; font-size: 12px; }
.detailDocument > .appIcon { width: 48px; height: 48px; color: #8fa9cd; }
.detailProvenance { display: flex; flex-wrap: wrap; gap: 16px 24px; margin: 17px 2px; font-size: 12px; }
.detailProvenance > div { display: flex; gap: 9px; }
.detailProvenance dt { color: #8b98aa; }
.detailProvenance dd { margin: 0; color: #5b6c85; }
.detailPendingLink { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #dddff6; border-radius: 9px; background: #f0f0fc; padding: 15px; color: #6261a5; font-size: 12px; }
.detailPendingLink > span { display: inline-flex; align-items: center; gap: 7px; }
.detailPendingDot { width: 6px; height: 6px; border-radius: 50%; background: #8d80d3; }
.detailRequirements { min-width: 0; border: 1px solid #e3e9f1; border-radius: 12px; background: #fff; padding: 22px 24px; }
.detailRequirements .taskBriefRead { margin: 0; gap: 0; }
.detailRequirements section { padding-bottom: 19px; margin-bottom: 19px; border-bottom: 1px solid #edf0f5; }
.detailRequirements > section:last-child { padding: 0; margin: 0; border: 0; }
.detailRequirements h3 { margin: 0 0 9px; font-size: 13px; color: #243a57; font-weight: 600; }
.detailRequirements .noteArea { padding: 0; margin: 0; border: 0; background: transparent; min-height: 0; font-size: 13px; line-height: 1.85; color: #64748b; white-space: pre-wrap; overflow-wrap: anywhere; }
.detailRequirements .recommendedFileList { gap: 8px; }
.detailRequirements .recommendedFile { width: 102px; padding: 5px; }
.detailRequirements .recommendedFile > button { height: 65px; }
.detailRequirements .recommendedFile .truncate { font-size: 10px; margin-top: 5px; }
.detailRequirements .recommendationUpload .fileButton { font-size: 12px; padding: 7px 9px; }
.detailRequirements .recommendationUpload .notice { font-size: 11px; }
.detailDeliveryCard { border: 1px solid #e1e7f0; border-radius: 12px; background: #fff; margin-bottom: 18px; overflow: hidden; }
.detailDeliveryCard:last-child { margin-bottom: 0; }
.detailDeliveryHead { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 24px 18px; }
.detailDeliveryHead h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 16px; }
.detailDeliveryHead p { margin: 0; color: #8593a7; font-size: 12px; }
.detailVersion { color: #527bad; background: #edf3fc; padding: 4px 7px; border-radius: 5px; font-size: 11px; font-weight: 500; }
.detailDeliveryFiles { padding: 0 24px; }
.detailFileRow { display: flex; align-items: center; gap: 14px; padding: 17px 0; border-bottom: 1px solid #edf0f5; }
.detailFileRow:last-child { border-bottom: 0; }
.detailDeliveryFiles .detailFileRow:first-child { border-top: 1px solid #edf0f5; }
.detailFileIcon { display: flex; align-items: center; justify-content: center; width: 44px; height: 48px; flex: 0 0 44px; border: 1px solid #e7edf5; border-radius: 8px; background: #f3f7fd; color: #6b94cf; overflow: hidden; }
.detailFileIcon .appIcon { width: 24px; height: 24px; }
.detailFileIcon img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.detailFileInfo { flex: 1; min-width: 0; }
.detailFileInfo strong { display: block; font-size: 13px; font-weight: 550; line-height: 1.6; overflow-wrap: anywhere; }
.detailFileMeta { margin-top: 5px; font-size: 11px; color: #8a97aa; line-height: 1.7; }
.detailFileActions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.detailFileActions .ghost { padding: 5px 0; font-size: 12px; }
.detailFileRow > .status { flex-shrink: 0; }
.detailVersionNote { margin: 0 24px 20px; padding: 15px 17px; border-radius: 8px; background: #f7f9fc; color: #64748b; font-size: 13px; }
.detailVersionNote strong { color: #4a607c; font-weight: 550; font-size: 12px; }
.detailVersionNote p { margin: 7px 0 0; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.detailVersionNote.feedback { background: #fff7f5; color: #986a66; }
.detailReviewActions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 24px; border-top: 1px solid #e8edf5; background: #fcfdff; }
.detailReviewActions > span { color: #8795a9; font-size: 12px; }
.detailReviewActions > div { display: flex; gap: 10px; }
.detailReviewActions button { font-size: 13px; padding: 10px 18px; }
.detailReviewRecord { padding: 0 24px 18px; color: #7d8ea5; font-size: 12px; }
.detailFileList { padding: 0 22px; border: 1px solid #e2e8f1; background: #fff; border-radius: 12px; }
.detailSectionEmpty,.detailGalleryEmpty { padding: 65px 24px; text-align: center; color: #8a98ad; }
.detailSectionEmpty > .appIcon,.detailGalleryEmpty > .appIcon { width: 40px; height: 40px; color: #a6b8d2; margin-bottom: 14px; }
.detailSectionEmpty h3 { font-size: 15px; color: #657892; }
.detailSectionEmpty p { font-size: 13px; line-height: 1.8; }
#taskDetailDialog button:focus-visible,#taskDetailDialog [role="tab"]:focus-visible { outline: 2px solid #5993ff; outline-offset: 3px; }
#taskDetailDialog .taskUploadWarning { margin: 16px 28px 0; }
@media (max-width: 900px) {
  .detailOverview { align-items: flex-start; gap: 18px; flex-direction: column; }
  .detailMetadata { gap: 28px; }
  .detailTaskTools { align-self: flex-end; }
  .detailBriefLayout { grid-template-columns: 1fr; }
  .detailMainImage { aspect-ratio: 1.6; max-height: 400px; }
}
@media (max-width: 600px) {
  #taskDetailDialog { width: calc(100vw - 16px); height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); border-radius: 12px; }
  #taskDetailDialog .dialogHeader { padding: 18px 16px; align-items: flex-start; }
  #taskDetailDialog .dialogHeader h2 { font-size: 18px; }
  #taskDetailDialog .dialogHeader p { font-size: 11px; }
  .detailOverview { padding: 16px; }
  .detailMetadata { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
  .detailMetadata strong { font-size: 12px; }
  .detailTabBar { padding: 0 16px 12px; flex-wrap: wrap; gap: 0; }
  .detailTabs { width: 100%; gap: 24px; margin-bottom: 10px; }
  .detailTabs button { font-size: 13px; }
  .detailTabBar .fileButton { margin-left: auto; }
  .detailPanels { padding: 16px; }
  .detailRequirements { padding: 18px; }
  .detailMainImage { aspect-ratio: 1.1; }
  .detailDeliveryHead { padding: 18px 16px 14px; }
  .detailDeliveryFiles { padding: 0 16px; }
  .detailFileRow { gap: 10px; flex-wrap: wrap; }
  .detailFileInfo { flex-basis: calc(100% - 60px); }
  .detailFileActions { margin-left: auto; }
  .detailVersionNote { margin: 0 16px 16px; }
  .detailReviewActions { align-items: flex-start; flex-direction: column; padding: 16px; gap: 12px; }
  .detailReviewActions > div { width: 100%; }
  .detailReviewActions button { flex: 1; padding: 10px 12px; }
  .detailFileList { padding: 0 16px; }
}
