/* Compact project workspace: lists first, secondary details on demand. */
.project-list-caption{margin:18px 0 10px;font-size:var(--fs-sm);color:var(--muted)}
.project-list .table-wrap{overflow:auto;border-radius:var(--r-lg)}
.project-list table{width:100%;min-width:820px;border-collapse:collapse}
.project-list th{font-size:var(--fs-xs);font-weight:600;color:var(--muted);background:var(--surface-2);white-space:nowrap;padding:13px 16px;text-align:left}
.project-list td{padding:14px 16px;font-size:var(--fs-sm);vertical-align:middle;background:var(--surface);border-bottom:1px solid var(--line)}
.project-list tbody tr:last-child td{border-bottom:0}
.project-list tbody tr:hover td{background:var(--surface-2)}
.project-list td:first-child{width:34%;min-width:220px}
.project-list td:last-child{width:1%;white-space:nowrap}
.project-list-title{display:block;padding:0;border:0;background:none;box-shadow:none;color:var(--ink);font:inherit;font-weight:600;text-align:left;line-height:1.5;cursor:pointer;overflow-wrap:anywhere}
.project-list-title:hover{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.project-list-title:focus-visible,.project-task-count:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:var(--r-xs)}
.project-list .cell-sub{font-size:var(--fs-xs);line-height:1.5;margin-top:4px;color:var(--muted)}
.project-list-owner{display:flex;gap:9px;align-items:center;min-width:120px}
.project-list-owner .avatar{width:28px;height:28px;min-width:28px;flex:none;font-size:var(--fs-2xs)}
.project-task-count{border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface-2);color:var(--accent);padding:5px 10px;min-height:32px;font:inherit;font-weight:600;cursor:pointer;white-space:nowrap}
.project-task-count:hover{border-color:var(--accent)}
.project-list small{display:block;font-size:var(--fs-xs);margin-top:4px;line-height:1.4}
.project-overdue{color:var(--danger-red)!important}
.project-row-actions{display:flex;gap:6px;align-items:center}
.project-row-actions .btn.icon-btn{display:inline-flex;width:34px;height:34px;min-height:34px;padding:0;align-items:center;justify-content:center;border-radius:var(--r-sm)}
.project-row-actions .icon{width:17px;height:17px}
.project-task-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:14px 0;font-size:var(--fs-sm);color:var(--muted)}
.project-task-heading .btn{display:flex;align-items:center;gap:7px}
.project-task-list table{min-width:680px}
.project-task-list td:first-child{width:45%}
.project-task-list td:last-child{width:auto}
.project-form-extra{padding:14px 16px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface-2)}
.project-form-extra>summary{cursor:pointer;font-size:var(--fs-sm);font-weight:600;color:var(--ink)}
.project-form-extra[open]>summary{margin-bottom:18px}
.project-form-extra>.form-grid{padding:0;gap:18px}
.project-form-extra .form-grid>.full{grid-column:1/-1}
.pc-simple .pc-attention>.project-list-title{flex:1;min-width:0}
.pc-simple .pc-attention>small{margin:0;white-space:nowrap;font-size:var(--fs-xs)}
.pc-simple .pc-attention{gap:14px;padding:13px 0}
.pc-simple .pc-simple-tasks>.btn{margin-top:12px}
.pc-simple .pc-extra>.tc-field{margin-top:12px}
.pc-simple .pc-team-link{padding-top:14px}
.pc-simple .pc-properties>.pc-extra{margin-top:12px}
.pc-simple .pc-properties .pc-extra .tc-label{margin-bottom:5px}
.pc-simple .tc-content .pc-extra summary{font-size:var(--fs-sm)}
:root[data-theme=dark] .project-overdue{color:var(--danger-red)!important}
@media(max-width:1050px){.pc-simple .pc-properties>.pc-team-link{grid-column:1/-1}.project-list td,.project-list th{padding:12px}}
@media(max-width:650px){.pc-simple .pc-attention{flex-wrap:wrap;gap:7px}.pc-simple .pc-attention>.project-list-title{flex-basis:100%}.project-form-extra{padding:12px}.project-list-caption{margin-top:12px}}

.project-list th small{font-size:var(--fs-2xs);font-weight:400;margin-top:3px}
.project-list td:nth-child(4){white-space:nowrap}
.project-list-owner{min-width:150px}
.project-selection-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 16px;margin-top:16px;border:1px solid var(--accent);border-radius:var(--r-md);background:var(--surface)}
.project-selection-bar[hidden]{display:none}.project-selection-bar strong{font-size:var(--fs-sm);margin-right:8px}.project-selection-bar .btn{font-size:var(--fs-xs);min-height:34px;padding:6px 10px}
.project-selectable td:first-child,.project-selectable th:first-child{width:42px;min-width:42px;padding:12px;text-align:center}
.project-selectable td:nth-child(4){white-space:normal}.project-selectable .project-deadline-column{white-space:nowrap}
.project-select{appearance:auto!important;width:17px!important;height:17px!important;min-height:0!important;padding:0!important;margin:0!important;accent-color:var(--accent);vertical-align:middle;cursor:pointer}
.project-click-row{cursor:pointer}.project-click-row:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}.project-selectable .project-click-row.is-selected td{background:color-mix(in srgb,var(--accent) 10%,var(--surface))}
.project-action-menu{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.project-action-menu .btn{justify-content:flex-start;text-align:left}
.project-bulk-list{padding-left:22px;max-height:240px;overflow:auto;line-height:1.7;font-size:var(--fs-sm);overflow-wrap:anywhere}
.project-team-compact{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.project-team-compact .tc-section-head{gap:8px;margin-bottom:10px}.project-team-compact h3{font-size:var(--fs-sm);margin:0}
.project-team-group{margin:14px 0}.project-team-group h4{display:flex;gap:8px;align-items:center;font-size:var(--fs-xs);margin:0 0 8px;color:var(--muted)}.project-team-group h4 span{font-weight:400}.project-team-group>.muted{font-size:var(--fs-xs)}
.project-team-person{display:flex;align-items:center;gap:8px;min-width:0;font-size:var(--fs-sm);line-height:1.5;margin:6px 0}.project-team-person>span{overflow-wrap:anywhere}.project-team-person .avatar{width:28px;height:28px;min-width:28px;font-size:var(--fs-2xs);flex:none}
.project-team-editor{display:grid;gap:0;max-height:440px;overflow:auto;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface)}
.project-team-entry{display:grid;grid-template-columns:minmax(0,1fr) 210px;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid var(--line)}.project-team-entry:last-child{border-bottom:0}.project-team-entry[hidden]{display:none}.project-team-entry select{width:100%;min-width:0;font-size:var(--fs-sm)}.project-team-entry .pill{justify-self:start}
.project-team-help{font-size:var(--fs-xs);line-height:1.6;color:var(--muted)}
@media(max-width:650px){.project-action-menu{grid-template-columns:1fr}.project-team-entry{grid-template-columns:1fr;gap:4px}.project-selection-bar{padding:10px}.project-selection-bar strong{width:100%}}

/* Keep the whole project row visible at normal desktop widths. */
.project-selectable .project-team-column{white-space:normal}
@media(min-width:761px){
  .project-selectable table{min-width:1030px;table-layout:fixed}
  .project-selectable :is(th,td){box-sizing:border-box;padding:12px 10px}
  .project-selectable th:nth-child(3){width:156px}
  .project-selectable th:nth-child(4){width:144px}
  .project-selectable th:nth-child(5),.project-selectable th:nth-child(6){width:124px}
  .project-selectable th:nth-child(7){width:84px}
  .project-selectable th:nth-child(8){width:102px}
  .project-selectable :is(th,td):last-child{width:102px;padding-inline:7px}
  .project-selectable td:nth-child(8)>.project-overdue{white-space:nowrap}
  .project-selectable .project-list-owner{min-width:0}
  .project-selectable .project-list-owner>span:last-child{overflow-wrap:break-word}
  .project-task-list :is(th,td):nth-child(2){min-width:154px}
  .project-task-list td .workflow-status{max-width:160px}
}
.project-list-team{display:grid;gap:7px;list-style:none;margin:0;padding:0}
.project-list-team li{display:flex;align-items:center;gap:7px;min-width:0;line-height:1.45;font-size:var(--fs-xs)}
.project-list-team li>span{overflow-wrap:anywhere}
.project-list-team .avatar{flex:none;width:24px;height:24px;min-width:24px;font-size:var(--fs-2xs)}
.project-team-unassigned{font-size:var(--fs-xs);color:var(--muted);white-space:nowrap}
