/* Tasks workspace. Neutral surfaces keep the lane and priority tags easy to scan. */
.pane[data-team-tab=tasks] .staff-work { background:var(--surface); }
.pane[data-team-tab=tasks] #assignToggle { display:none; }
.task-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
.task-stats .desk-stat { display:grid; grid-template-columns:32px 1fr; align-items:center; gap:2px 10px; text-align:start; padding:10px 12px; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--text); }
.desk-stat-icon { grid-row:span 2; display:grid; place-items:center; width:32px; height:36px; background:var(--panel); border-radius:6px; }
.task-stats svg,.desk-toolbar svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.desk-stat-label { color:var(--muted); font-size:12px; }
.desk-stat strong { font-size:19px; line-height:1.2; font-weight:600; font-variant-numeric:tabular-nums; }
.desk-stat:hover,.desk-tag:hover { border-color:var(--muted); }
.desk-toolbar,.desk-actions,.desk-modes,.desk-filters,.desk-tags,.desk-month { display:flex; align-items:center; gap:7px; }
.desk-toolbar { justify-content:space-between; flex-wrap:wrap; margin-bottom:10px; }
.desk-modes { background:var(--panel); border-radius:8px; padding:3px; gap:2px; max-width:100%; overflow-x:auto; }
.desk-modes button { display:flex; align-items:center; gap:5px; padding:7px 9px; border-radius:6px; font-size:12px; white-space:nowrap; }
.desk-modes [aria-pressed=true] { background:var(--surface); box-shadow:0 1px 4px #0002; }
.desk-actions,.desk-filters,.desk-tags { flex-wrap:wrap; }
.desk-actions select,.desk-filters select,.desk-table select,.desk-table input { width:auto; font-size:12px; padding:5px 7px; }
.desk-icon,.desk-add,.desk-actions .wc-btn,.desk-month button { display:inline-flex; align-items:center; justify-content:center; min-height:32px; border:1px solid var(--line); border-radius:6px; padding:5px 9px; background:var(--surface); }
.desk-add { background:var(--text); color:var(--surface); border-color:var(--text); }
.desk-search,.desk-filters,.desk-tags { margin:8px 0; }.desk-search input { max-width:480px; }
.desk-tags { padding-bottom:12px; border-bottom:1px solid var(--line); }
.desk-tag,.desk-filters button,.task-category { padding:3px 8px; border-radius:6px; border:1px solid var(--line); color:var(--muted); font-size:12px; }
.desk-tag[aria-pressed=true],.desk-filters button.on { color:var(--text); border-color:var(--text); }
#staffTasks[data-mode=Kanban] { grid-auto-columns:minmax(232px,1fr); }
.task-lane { background:color-mix(in srgb,var(--surface) 93%,var(--muted)); padding:8px; }
.task-lane>header { justify-content:space-between; }
.task-lane .desk-lane-label { display:inline-flex; align-items:center; gap:6px; padding:4px 8px; border-radius:7px; background:#e9e8e5; color:#383a38; }
.task-lane[aria-label="Pending approval"] .desk-lane-label { background:#f6dddf; color:#75434a; }
.task-lane[aria-label="Completed"] .desk-lane-label { background:#dff0dc; color:#395f3d; }
.task-lane[aria-label="Under review"] .desk-lane-label { background:#eadef6; color:#5e4176; }
.desk-lane-label h3 { font-size:12px; color:inherit; }.desk-lane-label b { background:#fff9; font-size:11px; border-radius:12px; padding:0 5px; }
.desk-lane-menu { position:relative; }.desk-lane-menu summary { cursor:pointer; list-style:none; padding:0 5px; }
.desk-lane-menu button { position:absolute; right:0; top:100%; z-index:3; width:max-content; padding:8px; border:1px solid var(--line); background:var(--surface); border-radius:6px; }
.desk-lane-add { width:100%; padding:7px; border:1px solid var(--line); border-radius:6px; background:var(--surface); }
.task-lane .wc { border-radius:7px; box-shadow:0 1px 2px #00000008; }
.task-lane .work-task .wc-status { display:none; }
.desk-code,.desk-project,.desk-due { font-size:11px; color:var(--muted); }
.desk-project,.desk-due { display:block; margin:0 0 8px; }
.desk-priority { font-size:10px; border-radius:4px; padding:2px 5px; background:#eee7f8; color:#5b476f; text-transform:capitalize; }
.desk-priority[data-level=high] { background:#f6dfe1; color:#854b54; }.desk-priority[data-level=low] { background:#e3efe1; color:#42694b; }
.wc .task-category { font-size:10.5px; line-height:1.3; padding:2px 5px; }
#staffTasks:not([data-mode=Kanban]) { display:block; }
.desk-table-scroll { overflow:auto; }.desk-table { border-collapse:collapse; width:100%; font-size:13px; }
.desk-table th,.desk-table td { text-align:start; padding:10px 8px; border-bottom:1px solid var(--line); }
.desk-item { display:block; text-align:start; font-weight:550; color:var(--text); padding:4px 0; overflow-wrap:anywhere; }
.desk-item:hover { text-decoration:underline; }.desk-selection { position:relative; max-width:680px; padding-right:36px; margin-bottom:18px; }
.desk-close { position:absolute; right:2px; top:0; font-size:20px; }
.desk-day { display:grid; grid-template-columns:minmax(100px,17%) 1fr; gap:14px; }
.desk-day h3 { font-size:13px; }.desk-day>div { border-left:2px solid var(--line); padding:0 14px 16px; }
.desk-day article { border:1px solid var(--line); border-radius:7px; padding:8px 10px; margin:5px 0; }.desk-day small,.desk-undated { color:var(--muted); font-size:12px; }
.desk-month { margin-bottom:12px; }.desk-month h3 { margin-right:auto; }.desk-calendar { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); }
.desk-calendar>div,.desk-calendar>small { padding:7px; background:var(--surface); }.desk-calendar>div { min-height:78px; }.desk-date b { font-size:12px; }
.desk-date .desk-item { font-size:11.5px; background:var(--panel); margin-top:5px; padding:3px 5px; width:100%; border-radius:4px; }
.desk-undated { margin-top:14px; }.desk-undated summary { cursor:pointer; }
@media(max-width:700px) {
  .task-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:12px; }
  .task-stats .desk-stat { padding:6px 9px; min-height:44px; gap:1px 6px; grid-template-columns:22px 1fr; }.desk-stat-icon { width:22px; background:transparent; }
  .desk-toolbar { align-items:flex-start; }.desk-modes button { padding:6px; font-size:11px; }.desk-modes svg { width:13px; }
  .desk-calendar>div,.desk-calendar>small { padding:3px; }.desk-date .desk-item { font-size:10px; padding:2px; }
  .desk-actions { gap:5px; }.desk-day { grid-template-columns:86px 1fr; }
  #staffTasks[data-mode=Kanban] { grid-auto-columns:auto; }
}
.desk-options { position:relative; }
.desk-options summary { cursor:pointer; list-style:none; border:1px solid var(--line); border-radius:6px; padding:5px 8px; }
.desk-options>div { display:grid; position:absolute; z-index:5; top:100%; right:0; width:max-content; padding:6px; background:var(--surface); border:1px solid var(--line); border-radius:7px; }
.desk-options button { padding:7px 10px; text-align:start; }
.desk-options button:hover,.desk-date-new:hover { background:var(--panel); }
.desk-date-new { padding:3px; font-size:12px; border-radius:4px; }
.task-lane .wc-btn.primary { background:var(--text); color:var(--surface); border-color:var(--text); }

#teamAssign { max-width:760px; padding:16px; margin:0 0 18px; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--text); }
#teamAssign[hidden] { display:none; }
#teamAssign label { font-size:13px; font-weight:550; }
#teamAssign textarea,#teamAssign select,#teamAssign input { box-sizing:border-box; min-width:0; background:var(--surface); color:var(--text); border-color:var(--line); font-size:14px; }
#teamAssign textarea { line-height:1.5; resize:vertical; min-height:68px; }
.assign-row { display:flex; gap:12px; align-items:center; }
#taskPerson { max-width:min(340px,75%); }
#taskOptions { border-block:1px solid var(--line); }
#taskOptions summary { width:fit-content; padding:10px 0; color:var(--muted); cursor:pointer; }
#taskOptions .command-task-fields { grid-template-columns:repeat(2,minmax(0,1fr)); padding:2px 0 12px; }
#taskOptions label { display:grid; align-content:start; gap:5px; }
.assign-actions { display:flex; justify-content:flex-end; align-items:center; gap:8px; }
#staffTasks .wc-title { font-size:14px; line-height:1.45; overflow-wrap:anywhere; }
@media(max-width:650px) {
  .task-lane:has(>.lane-empty) { order:1; }
  .desk-actions { width:100%; }.desk-actions .desk-add { margin-inline-start:auto; }
  .desk-tags { flex-wrap:nowrap; overflow-x:auto; padding:2px 2px 8px; }.desk-tag { flex:none; }
  .desk-modes button,.desk-actions button,.desk-actions summary,.desk-tag,.assign-actions button,#taskOptions summary { min-height:44px; box-sizing:border-box; }
  .desk-actions summary { display:grid; place-items:center; }
  #teamAssign { padding:12px; }#teamAssign textarea,#teamAssign select,#teamAssign input { font-size:16px; }
  #taskOptions .command-task-fields { grid-template-columns:minmax(0,1fr); }
}
