.taskWorkspace { min-width: 0; padding-top: 24px; color: var(--text, #252e2b); }
.todayTasksStrip { border-bottom: 1px solid #dce2de; padding: 0 0 20px; margin-bottom: 24px; }
.todayTasksStrip h3 { margin: 0 0 12px; font-size: 14px; }
.todayTasksStrip > div { display: flex; gap: 16px; flex-wrap: wrap; }
.todayTasksStrip button { display: flex; align-items: center; gap: 10px; border: 0; border-left: 3px solid var(--brand, #24614e); padding: 8px 14px; background: #f2f6f3; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.todayTasksStrip button strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.todayTasksStrip button .uiIcon { width: 16px; height: 16px; }
.taskWorkspaceHead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; }
.taskWorkspace h3 { margin: 0; font-size: 20px; line-height: 1.35; }
.taskCount, .taskMuted { color: #65736d; font-size: 13px; }
.taskCount { display: block; margin-top: 6px; }
.taskWorkspace .row, .taskDialog .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.taskSummaryTabs { display: flex; gap: 24px; border-bottom: 1px solid #dce2de; margin-bottom: 20px; overflow-x: auto; }
.taskSummaryTabs button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; border: 0; border-bottom: 3px solid transparent; padding: 12px 0; font: inherit; background: transparent; color: #65736d; cursor: pointer; }
.taskSummaryTabs button.active { color: var(--primary, #245f4d); border-color: currentColor; font-weight: 650; }
.taskSummaryTabs button span { font-size: 12px; font-weight: 600; background: #eef2f0; padding: 2px 6px; border-radius: 3px; }
.taskFilters { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.taskFilters .searchField { flex: 1 1 240px; min-width: 180px; }
.taskFilters > label { display: grid; gap: 5px; font-size: 12px; color: #65736d; flex: 0 1 230px; min-width: 150px; }
.taskFilters select, .drawingSelection select { width: 100%; min-width: 0; }
.taskTableHeader, .taskTableRow { display: grid; grid-template-columns: minmax(200px, 1.8fr) minmax(140px, 1fr) 120px 110px; gap: 16px; align-items: center; width: 100%; }
.taskTableHeader { padding: 12px 16px; background: #f5f7f6; color: #66726c; font-size: 12px; border-top: 1px solid #dce2de; }
.taskTableRow { padding: 18px 16px; text-align: left; background: white; color: inherit; border: 0; border-bottom: 1px solid #e2e7e4; border-radius: 0; cursor: pointer; font: inherit; }
.taskTableRow:hover { background: #f4f8f5; }
.taskTableRow:focus-visible { outline: 2px solid var(--primary, #245f4d); outline-offset: -2px; }
.taskRowMain { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.taskRowMain > span:last-child { min-width: 0; }
.taskRowMain strong { display: block; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.taskNumber { color: #6c7771; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; margin-top: 3px; }
.taskTableRow small { display: block; color: #6b7871; font-size: 12px; line-height: 1.5; margin-top: 4px; overflow-wrap: anywhere; }
.taskTableRow small .uiIcon { width: 12px; height: 12px; vertical-align: middle; }
.taskAssignee { min-width: 0; }
.taskAssignee strong { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.taskDue { font-size: 13px; font-variant-numeric: tabular-nums; }
.overdue, .taskTableRow .overdue small { color: #ac3436; }
.taskStatus { display: inline-flex; width: fit-content; align-items: center; padding: 4px 8px; border-radius: 3px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.taskStatus-open { background: #edf1f5; color: #4d6175; }
.taskStatus-in_progress { background: #e8f0fb; color: #355f9e; }
.taskStatus-review { background: #fff2d9; color: #886016; }
.taskStatus-closed { background: #e7f2eb; color: #2e6c4e; }
.taskEmpty { display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 14px; text-align: center; padding: 70px 20px; border-top: 1px solid #e2e7e4; }
.taskEmpty > .uiIcon { width: 32px; height: 32px; color: #82918a; }
.taskEmpty h3 { font-size: 16px; font-weight: 500; color: #68766e; }
.taskInlineMessage:empty, .taskDialogMessage:empty { display: none; }
.taskInlineMessage, .taskDialogMessage { padding: 12px 16px; margin-bottom: 16px; font-size: 14px; border-left: 3px solid #ac3436; background: #fff0ef; color: #8e3032; }
.taskDialogMessage { margin: 0; }
.taskDialogMessage.success { background: #edf5ef; border-color: #3f7b57; color: #2a6645; }
.taskLoading, .taskLoadError { padding: 28px 12px; color: #65736d; }
.drawingSelection { display: grid; grid-template-columns: minmax(160px, 1.8fr) minmax(150px, 1fr) auto; gap: 16px; align-items: end; margin-bottom: 16px; }
.drawingSelection label { display: grid; gap: 6px; font-size: 12px; color: #65736d; }
.drawingSelection select, .taskFilters select, .taskLocation > select, .taskDialog input:not([type="checkbox"]), .taskDialog select, .taskDialog textarea { min-height: 40px; border: 1px solid #cfd8d2; border-radius: 4px; padding: 9px 11px; background: white; color: #27332c; }
.taskDialog input[type="file"] { padding: 7px; font-size: 12px; }
.drawingWorkspace { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; }
.drawingViewer { min-width: 0; border: 1px solid #d4ddd6; background: #eef1ef; border-radius: 4px; overflow: hidden; }
.drawingTools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 8px; background: #fff; border-bottom: 1px solid #d4ddd6; }
.drawingPaging { display: flex; gap: 6px; align-items: center; color: #5d6a63; font-size: 12px; }
.drawingPaging label { display: flex; gap: 6px; align-items: center; }
.drawingPaging input { width: 55px; height: 34px; text-align: center; padding: 4px; }
.drawingTools .iconButton { width: 36px; height: 36px; min-width: 36px; min-height: 36px; padding: 7px; }
.drawingTools .btn { min-height: 36px; font-size: 12px; padding: 7px 10px; }
.drawingTools .row { gap: 4px; }
.drawingTools [aria-pressed="true"] { color: var(--primary, #245f4d); background: #e4f0e8; border-color: currentColor; }
.drawingScroller { overflow: auto; padding: 12px; max-height: 650px; min-height: 280px; overscroll-behavior: contain; }
.drawingPaper { position: relative; background: white; box-shadow: 0 1px 5px #273c2c20; margin: 0 auto; flex-shrink: 0; }
.drawingPaper.pinning { cursor: crosshair; }
.drawingPaper canvas { display: block; max-width: none; }
.drawingPins { position: absolute; inset: 0; pointer-events: none; }
.drawingPin { position: absolute; transform: translate(-50%, -100%); width: 32px; height: 38px; background: transparent; border: none; pointer-events: auto; padding: 0 0 6px; cursor: pointer; color: white; font: 600 11px/1 Arial,sans-serif; isolation: isolate; }
.drawingPin::before { content: ''; position: absolute; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: #4e6c8d; border: 2px solid white; transform: rotate(-45deg); top: 0; left: 2px; z-index: -1; box-shadow: 0 1px 3px #0006; }
.drawingPin span { display: block; transform: translateY(-3px); }
.drawingPin.pin-in_progress::before { background: #3568b1; }
.drawingPin.pin-review::before { background: #a46c08; }
.drawingPin.pin-closed::before { background: #337653; }
.drawingPin.selected::before { outline: 3px solid #2b7e5c88; outline-offset: 2px; }
.drawingItemList { min-width: 0; max-height: 720px; overflow-y: auto; border-left: 1px solid #e2e7e4; padding-left: 20px; }
.drawingItemList h4 { display: flex; justify-content: space-between; margin: 0 0 14px; font-size: 14px; }
.drawingItemList > button { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 14px 0; border: 0; border-bottom: 1px solid #e2e7e4; background: transparent; text-align: left; color: inherit; cursor: pointer; }
.drawingItemList > button strong { font-size: 13px; overflow-wrap: anywhere; }
.drawingItemList .taskStatus { grid-column: 2; }
.drawingItemList small { grid-column: 2; color: #65736d; }
.drawingMessage { padding: 26px 16px; font-size: 13px; color: #65736d; }
.taskRevisionWarning { margin: 10px 0; padding: 10px 12px; font-size: 12px; color: #815c22; background: #fff6e5; border-left: 3px solid #c39245; }
.taskDialog { padding: 0; width: min(900px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 40px); border: 1px solid #cbd5ce; border-radius: 6px; color: #27332c; box-shadow: 0 20px 80px #142b243d; }
.taskDialog::backdrop, .taskImageDialog::backdrop { background: #1727207a; }
.taskDialog[open] { display: flex; flex-direction: column; }
.taskDetailDialog { width: min(1120px, calc(100% - 32px)); }
.taskDialogHead { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid #dce2de; background: #fff; flex: 0 0 auto; }
.taskDialogHead h2 { margin: 0; font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.taskDialogHead h2 { flex: 1; min-width: 0; }
.taskDialogContent { overflow: auto; min-height: 0; padding: 24px; }
.taskFormGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.taskFormGrid .wide { grid-column: 1 / -1; }
.taskDialog .field label { display: grid; gap: 7px; width: 100%; font-size: 13px; color: #59675f; }
.taskDialog input:not([type="checkbox"]), .taskDialog select, .taskDialog textarea { width: 100%; min-width: 0; font: inherit; font-size: 14px; line-height: 1.5; }
.taskDialog textarea { min-height: 100px; resize: vertical; }
.taskDialog section { border-bottom: 1px solid #e2e7e4; padding-bottom: 22px; margin-bottom: 22px; }
.taskDialog h3 { margin: 0; font-size: 18px; line-height: 1.4; }
.taskDialog h4 { margin: 0 0 12px; font-size: 14px; }
.taskDialog h5 { font-size: 12px; font-weight: 600; color: #65736d; margin: 18px 0 10px; }
.taskVisibility { display: flex; gap: 16px 24px; flex-wrap: wrap; margin: 24px 0; }
.taskVisibility label { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.taskVisibility input { width: 16px; height: 16px; flex: 0 0 16px; accent-color: var(--primary, #245f4d); }
.taskLocation > select { margin-bottom: 12px; }
.taskLocationStatus { color: #65736d; font-size: 12px; margin: 10px 0; }
.taskLocationViewer .drawingScroller { max-height: 420px; }
.taskDialogFooter { display: flex; justify-content: flex-end; gap: 12px; padding-top: 20px; }
.taskPrivacyNote { color: #65736d; font-size: 12px; padding: 10px 0; }
.taskPendingFiles { display: flex; flex-direction: column; gap: 8px; font-size: 12px; margin: 12px 0; overflow-wrap: anywhere; }
.taskPendingFiles > div { display: flex; gap: 10px; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e7e4; padding-bottom: 4px; }
.taskDetailHeading { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.taskDetailHeading > div { flex: 1; min-width: 0; }
.taskDetailHeading h3 { font-size: 22px; overflow-wrap: anywhere; margin-bottom: 6px; }
.taskDetailGrid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; }
.taskDetailGrid > main { min-width: 0; }
.taskDetailGrid p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.7; }
.taskDetailSide { border-left: 1px solid #e2e7e4; padding-left: 24px; min-width: 0; }
.taskDetailSide dl { margin: 0; }
.taskDetailSide dt { color: #65736d; font-size: 12px; margin-top: 16px; }
.taskDetailSide dt:first-child { margin-top: 0; }
.taskDetailSide dd { margin: 5px 0 0; font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.taskDetailSide dd small { display: block; font-size: 12px; font-weight: 400; margin-top: 4px; }
.taskDecisionForm { margin-top: 28px; border-top: 1px solid #e2e7e4; padding-top: 20px; }
.taskDecisionForm label { display: grid; gap: 8px; font-size: 12px; color: #65736d; }
.taskDecisionButtons { display: grid; gap: 10px; margin-top: 12px; }
.taskDecisionButtons .btn { font-size: 13px; justify-content: center; }
.taskAssetGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.taskAsset { border: 1px solid #dce2de; border-radius: 4px; padding: 0; text-align: left; cursor: pointer; background: white; color: #65736d; overflow: hidden; min-width: 0; }
.taskAsset img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #edf1ee; font-size: 12px; }
.taskAsset > .uiIcon { margin: 24px auto; display: block; }
.taskAsset > span:last-child { display: block; padding: 8px; font-size: 11px; overflow-wrap: anywhere; }
.taskAttachForm { margin-top: 20px; }
.taskAttachForm .row { align-items: flex-end; }
.taskAttachForm label { display: grid; gap: 6px; font-size: 12px; color: #65736d; flex: 1 1 160px; }
.taskAttachForm input { flex: 1 1 180px; }
.taskActivity article { border-bottom: 1px solid #e2e7e4; padding: 14px 0; }
.taskActivity article > div { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; font-size: 12px; }
.taskActivity time, .taskActivityAction { font-size: 11px; color: #65736d; }
.taskActivity p { margin: 6px 0; font-size: 13px; }
.taskActivity small { display: block; margin-top: 4px; color: #65736d; font-size: 11px; }
.taskDetailViewer .drawingScroller { min-height: 160px; max-height: 320px; }
.taskImageDialog { border: 0; border-radius: 4px; width: min(1200px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 16px; }
.taskImageDialog header { display: flex; gap: 16px; align-items: center; justify-content: space-between; overflow-wrap: anywhere; }
.taskImageDialog img { display: block; width: 100%; max-height: calc(100dvh - 160px); object-fit: contain; margin: 12px 0; }
@media (max-width: 1100px) {
  .drawingWorkspace { grid-template-columns: minmax(0, 1fr); }
  .drawingItemList { border-left: 0; padding-left: 0; max-height: 260px; }
}
@media (max-width: 760px) {
  .jobTabs { display: flex; flex-wrap: nowrap; gap: 20px; overflow-x: auto; max-width: 100%; min-width: 0; }
  .jobTabs button { flex: 0 0 auto; width: auto; min-width: fit-content; white-space: nowrap; padding: 14px 0; }
  .jobTabs button .uiIcon { flex: 0 0 18px; }
  .taskWorkspaceHead { align-items: flex-start; flex-direction: column; gap: 16px; padding-bottom: 16px; }
  .taskWorkspaceHead > .row { width: 100%; justify-content: flex-end; gap: 6px; }
  .taskWorkspaceHead .btn { padding: 10px 12px; font-size: 12px; }
  .taskWorkspace h3 { font-size: 18px; }
  .taskSummaryTabs { gap: 20px; }
  .taskSummaryTabs button { font-size: 13px; }
  .taskFilters { gap: 10px; }
  .taskFilters > label { flex: 1 1 130px; min-width: 120px; }
  .taskTableHeader { display: none; }
  .taskTableRow { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 16px 4px; }
  .taskRowMain { grid-column: 1 / -1; }
  .taskAssignee { grid-column: 1; }
  .taskDue { grid-column: 1; grid-row: 3; }
  .taskTableRow > .taskStatus { grid-column: 2; grid-row: 2 / 4; }
  .drawingSelection { grid-template-columns: 1fr 1fr; gap: 12px; }
  .drawingSelection > button { grid-column: 1 / -1; justify-self: start; }
  .drawingTools { gap: 8px; }
  .drawingTools > .row { width: 100%; justify-content: flex-end; }
  .drawingScroller { max-height: 480px; }
  .taskDialog, .taskDetailDialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .taskDialogHead { padding: 12px 16px; }
  .taskDialogHead h2 { font-size: 16px; }
  .taskDialogContent { padding: 18px 16px; }
  .taskFormGrid { grid-template-columns: 1fr; gap: 16px; }
  .taskDetailGrid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .taskDetailSide { grid-row: 1; border-left: 0; padding-left: 0; border-bottom: 1px solid #dce2de; padding-bottom: 20px; }
  .taskDetailSide dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
  .taskDetailSide dt { grid-column: 1; margin: 10px 0 0; }
  .taskDetailSide dd { grid-column: 2; margin-top: 10px; }
  .taskAssetGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .taskDetailHeading { flex-wrap: wrap; }
  .taskDetailHeading h3 { font-size: 19px; }
  .taskDecisionButtons .btn { min-height: 44px; }
  .taskDialogFooter .btn { width: 100%; justify-content: center; }
}
