/* Tasks and Projects: information-first delivery workspaces.
   Presentation is scoped to both pages; global sidebar, topbar and canvas remain unchanged. */
.work-hub{display:grid;gap:17px;min-width:0}
.work-hub-header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.work-hub-header h2{font-size:19px;margin:0 0 4px;color:#f9f9f9}
.work-hub-header p{font-size:12px;margin:0;color:#ababab}
.work-hub-header .button{min-height:38px;white-space:nowrap}
.work-hub-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.work-metric{min-width:0;background:#181818;border:1px solid #303030;border-radius:13px;
 display:flex;flex-direction:column;gap:5px;padding:17px 19px}
.work-metric>span{font:600 12px/1.5 Manrope,Arial,sans-serif;color:#aaa}
.work-metric>strong{font:750 25px/1.2 Manrope,Arial,sans-serif;color:#fff;font-variant-numeric:tabular-nums}
.work-list-panel{min-width:0}
.work-list-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}
.work-list-heading h2{margin:0;font-size:16px}
.work-list-heading>.muted{font-size:12px}
.work-list-tools{display:grid;grid-template-columns:minmax(200px,1fr) minmax(140px,190px) minmax(140px,190px);gap:10px;align-items:end;margin-bottom:12px}
#projects-section .work-list-tools{grid-template-columns:minmax(200px,1fr) minmax(140px,190px)}
.work-search-label,.work-select-label{display:flex;flex-direction:column;gap:6px;min-width:0;
 color:#aaa;font:600 11px/1.5 Manrope,Arial,sans-serif}
.work-search-label input,.work-select-label select,.work-select-label>.axle-select-trigger{
 box-sizing:border-box;min-height:42px!important;width:100%;max-width:none;
 border:1px solid #3e3e3e;border-radius:9px;background:#282828;color:#f5f5f5;
 padding:10px 12px;font:600 12px/1.5 Manrope,Arial,sans-serif}
.work-search-label input::placeholder{color:#aaa;font-weight:500}

/* The person picker has exactly one visible option per workspace member.
   Its hidden reset value is cleared using the outside X, not a menu option. */
.work-assignee-control{display:flex;align-items:center;gap:7px;min-width:0;width:100%}
.work-assignee-control>select,.work-assignee-control>.axle-select-trigger{
 flex:1 1 auto;min-width:0;width:auto;max-width:none
}
.work-assignee-clear{
 flex:0 0 40px;display:inline-flex;align-items:center;justify-content:center;
 width:40px;height:42px;padding:0;border:1px solid #3e3e3e;border-radius:9px;
 background:#282828;color:#ddd;font:600 21px/1 Manrope,Arial,sans-serif;
 cursor:pointer
}
.work-assignee-clear:hover{background:#353535;color:#fff;border-color:#585858}
.work-assignee-clear:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

.work-list-tools .axle-select-trigger{font-weight:600;align-items:center}
.work-quick-filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:9px 0 17px}
.work-filter{border:1px solid #383838;border-radius:8px;background:#232323;color:#bbb;
 padding:7px 11px;min-height:32px;font:600 11px/1.3 Manrope,Arial,sans-serif}
.work-filter:hover,.work-filter:focus-visible{border-color:#666;color:#fff}
.work-filter.active,.work-filter[aria-pressed="true"]{background:#373737;color:#fff;border-color:#606060}
.work-items{display:grid;gap:0}
.work-items .item.work-task-row,.work-items .item.work-project-row{
 display:flex;align-items:flex-start;position:relative;gap:18px;flex-wrap:wrap;
 padding:18px 0;border-bottom:1px solid #303030;min-width:0;background:transparent
}
.work-items .item:last-child{border-bottom:0}
.work-items .item-main{flex:1 1 330px;min-width:0;overflow-wrap:anywhere}
.work-items .item-main>strong{font:750 13px/1.5 Manrope,Arial,sans-serif;color:#f7f7f7;
 letter-spacing:-.12px}
.work-items .item-main>small{display:none}
.work-items .item-main>strong.done{opacity:.65}
.work-row-client{display:block;font:600 11.5px/1.6 Manrope,Arial,sans-serif;color:#c5c5c5;margin-top:3px}
.work-row-subline{display:flex;flex-wrap:wrap;align-items:center;gap:5px 10px;margin:10px 0 2px;
 font:500 11px/1.5 Manrope,Arial,sans-serif;color:#a5a5a5}
.work-row-subline>span{max-width:100%;overflow-wrap:anywhere}
.work-row-subline .work-overdue{color:#f4b29d}
.work-row-subline .work-urgent{color:#f1bd78}
.work-row-state{display:inline-flex;align-items:center;border:1px solid #3e3e3e;border-radius:99px;
 color:#c8c8c8;background:#242424;min-height:23px;padding:3px 9px;
 font:700 10px/1.2 Manrope,Arial,sans-serif;white-space:nowrap}
.work-row-state.risk{color:#f2b4a2;border-color:#74483e;background:#312321}
.work-row-state.review{color:#ebc47b;border-color:#675331;background:#30291e}
.work-row-state.done{color:#c8c8c8;background:#252525}
.work-row-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto;margin-left:auto;padding-top:0}
#tasks-section .work-row-actions>button,#projects-section .work-row-actions>button{
 padding:8px 12px;color:#eee;background:#282828;border:1px solid #3b3b3b;border-radius:8px;
 min-height:34px;font:650 11px Manrope,Arial,sans-serif
}
#tasks-section .work-row-actions>button:hover,#projects-section .work-row-actions>button:hover{background:#343434}
.work-row-more{position:relative;flex:none}
.work-row-more>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;
 min-width:34px;height:34px;border:1px solid #3b3b3b;border-radius:8px;background:#282828;
 color:#eee;font:700 19px/1 Manrope,Arial,sans-serif}
.work-row-more>summary::-webkit-details-marker{display:none}
#dashboard details.work-row-more>summary::after{content:none!important;display:none!important}
.work-row-more[open]>summary,.work-row-more>summary:hover{background:#343434}
.work-row-more .work-row-menu-items{position:absolute;z-index:120;top:calc(100% + 6px);right:0;
 min-width:160px;display:flex;flex-direction:column;gap:4px;padding:7px;
 background:#232323;border:1px solid #464646;border-radius:10px;box-shadow:0 18px 35px #0009}
.work-row-more .work-row-menu-items button{display:block;width:100%;text-align:left;white-space:nowrap;
 padding:9px 10px;color:#f2f2f2;background:transparent;border:0;border-radius:7px;
 font:600 11px/1.4 Manrope,Arial,sans-serif}
.work-row-more .work-row-menu-items button:hover{background:#363636}
.work-items .native-task-brief,.work-items .work-project-details{margin:12px 0 0;
 border-top:1px solid #303030;padding-top:10px;max-width:800px}
.work-items .native-task-brief>summary,.work-items .work-project-details>summary{
 font:650 11px/1.5 Manrope,Arial,sans-serif;color:#b9b9b9;padding:1px 0;cursor:pointer}
.work-items .native-task-brief>p,.work-items .work-project-details>p{
 margin:10px 0 0;color:#ccc;white-space:pre-wrap;font-size:12px;line-height:1.65}
.work-items .work-project-details ul{padding-left:18px;margin:9px 0;color:#bbb;font-size:11.5px;line-height:1.7}
.work-project-progress{display:grid;gap:5px;max-width:540px;margin:11px 0 2px}
.work-project-progress-head{display:flex;justify-content:space-between;align-items:center;gap:8px;
 font:600 10.5px/1.4 Manrope,Arial,sans-serif;color:#aaa}
.work-project-progress-track{height:6px;border-radius:99px;background:#363636;overflow:hidden}
.work-project-progress-track>span{display:block;height:100%;background:#d9b454;border-radius:99px;max-width:100%}
.work-filter-empty{color:#aaa;font-size:12px;margin:12px 0 0}
.work-editor-scrim{position:fixed;inset:0;z-index:1250;background:#000a}
.work-editor{position:fixed;inset:60px 16px 16px auto;z-index:1260;width:min(530px,calc(100vw - 32px));
 box-sizing:border-box;display:flex;flex-direction:column;gap:13px;min-height:0;padding:22px;
 background:#181818;color:#f5f5f5;border:1px solid #434343;border-radius:14px;
 box-shadow:0 26px 75px #000c}
.work-editor-head{display:flex;justify-content:space-between;align-items:center;gap:16px}
.work-editor-head h2{margin:0;font-size:17px}
.work-editor-close{flex:0 0 34px;height:34px;border:1px solid #444;border-radius:8px;
 background:#282828;color:#fff;font-size:23px;line-height:1}
.work-editor>.muted{font-size:11.5px;margin:0 0 5px}
.work-editor>.form-stack{display:grid;align-content:start;gap:15px;overflow-y:auto;overflow-x:hidden;flex:1;
 padding:0 3px 12px 0;scrollbar-width:thin}
.work-editor>.form-stack label{min-width:0}
.work-editor>.form-stack input,.work-editor>.form-stack textarea,.work-editor>.form-stack select{
 background:#282828;color:#f7f7f7;border-color:#414141}
.work-editor>.form-stack .formactions{margin-top:6px;padding-bottom:4px}
.work-hub .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
 clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1050px){.work-hub-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 .work-list-tools,#projects-section .work-list-tools{grid-template-columns:minmax(0,1fr)}
 .work-hub-metrics{gap:8px}
 .work-metric{padding:12px 13px}
 .work-metric>strong{font-size:22px}
 .work-items .item.work-task-row,.work-items .item.work-project-row{gap:9px;padding:16px 0}
 .work-row-actions{width:100%;justify-content:flex-start;margin-left:0}
 .work-hub-header .button{width:auto}
 .work-editor{inset:8px 8px calc(10px + env(safe-area-inset-bottom)) 8px;width:auto;padding:17px}
}
@media(max-width:380px){.work-hub-metrics{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .work-filter{font-size:10px;padding:7px 9px}}

/* Overview keeps its original compact task summary; the richer data rows belong
   only to the dedicated Tasks page, not the Home dashboard. */
#overview-section .work-task-row .work-row-client,
#overview-section .work-task-row .work-row-subline,
#overview-section .work-task-row .work-row-state{display:none}
#overview-section .work-task-row .item-main>small{display:block}


/* Tasks: filters live directly on the existing scrolling content surface.
   Each task is an independent card; do not introduce a nested scroll area. */
#tasks-section .work-task-toolbar{
 display:grid;gap:0;min-width:0;padding:0 0 3px;
 background:transparent;border:0;box-shadow:none
}
#tasks-section .work-task-toolbar .work-list-heading{margin-bottom:18px}
#tasks-section .work-task-toolbar .work-quick-filters{margin:12px 0 3px}
#tasks-section .work-task-cards{
 display:grid;grid-template-columns:minmax(0,1fr);gap:13px;
 min-width:0;margin:0;padding:0;overflow:visible;max-height:none
}
#tasks-section .work-task-cards > .item.work-task-row{
 box-sizing:border-box;min-width:0;width:100%;margin:0;
 padding:19px 21px;border:1px solid #333;border-radius:13px;
 background:var(--panel,#181818);align-items:flex-start;
 transition:border-color .14s ease,background-color .14s ease
}
#tasks-section .work-task-cards > .item.work-task-row:last-child{
 border:1px solid #333
}
#tasks-section .work-task-cards > .item.work-task-row[hidden]{display:none!important}
#tasks-section .work-task-cards > .item.work-task-row:hover{
 border-color:#4b4b4b;background:#1c1c1c
}
#tasks-section .work-task-cards > .item.work-task-row[data-work-importance="overdue"]{
 border-color:#59403a
}
#tasks-section .work-task-cards > .item.work-task-row[data-work-importance="today"]{
 border-color:#605039
}
#tasks-section .work-task-cards .item-main{flex:1 1 310px}
#tasks-section .work-task-cards .native-task-brief{max-width:100%;margin-top:14px}
#tasks-section .work-task-cards .work-row-actions{padding-top:1px}
#tasks-section .work-task-cards > .empty{
 border:1px solid #333;border-radius:13px;padding:20px;
 background:var(--panel,#181818)
}
@media(max-width:700px){
 #tasks-section .work-task-cards{gap:11px}
 #tasks-section .work-task-cards > .item.work-task-row{padding:16px}
 #tasks-section .work-task-cards .work-row-actions{margin-top:2px}
}
@media(prefers-reduced-motion:reduce){
 #tasks-section .work-task-cards > .item.work-task-row{transition:none}
}


/* Tasks and Projects share the same information-first hierarchy.
   Toolbar belongs to the content canvas; each project is a separate card
   in the existing workspace scroll, not a nested scrolling container. */
#tasks-section .work-task-toolbar .work-list-tools{margin-top:0}
#projects-section .work-project-toolbar{
 display:grid;gap:0;min-width:0;padding:0 0 3px;
 border:0;background:transparent;box-shadow:none
}
#projects-section .work-project-toolbar .work-list-tools{margin:0}
#projects-section .work-project-cards{
 display:grid;grid-template-columns:minmax(0,1fr);gap:13px;
 min-width:0;margin:0;padding:0;overflow:visible;max-height:none
}
#projects-section .work-project-cards > .item.work-project-row{
 box-sizing:border-box;min-width:0;width:100%;margin:0;
 padding:19px 21px;border:1px solid #333;border-radius:13px;
 background:var(--panel,#181818);align-items:flex-start;
 transition:border-color .14s ease,background-color .14s ease
}
#projects-section .work-project-cards > .item.work-project-row:last-child{
 border:1px solid #333
}
#projects-section .work-project-cards > .item.work-project-row[hidden]{
 display:none!important
}
#projects-section .work-project-cards > .item.work-project-row:hover{
 border-color:#4b4b4b;background:#1c1c1c
}
#projects-section .work-project-cards > .item.work-project-row:has(.work-row-state.risk){
 border-color:#59403a
}
#projects-section .work-project-cards .item-main{flex:1 1 310px}
#projects-section .work-project-cards .work-project-details{
 max-width:100%;margin-top:14px
}
#projects-section .work-project-cards .work-row-actions{padding-top:1px}
#projects-section .work-project-cards > .empty{
 border:1px solid #333;border-radius:13px;padding:20px;
 background:var(--panel,#181818)
}
@media(max-width:700px){
 #projects-section .work-project-cards{gap:11px}
 #projects-section .work-project-cards > .item.work-project-row{padding:16px}
 #projects-section .work-project-cards .work-row-actions{margin-top:2px}
}
@media(prefers-reduced-motion:reduce){
 #projects-section .work-project-cards > .item.work-project-row{transition:none}
}


/* Native retainer recurrence controls inherit standard editor form spacing. */
#tasks-section .retainer-task-setting{
 display:grid;gap:9px;padding:15px 16px;
 border:1px solid var(--edge,#373737);border-radius:11px;background:#202020
}
#tasks-section .retainer-task-switch{
 display:flex;align-items:center;gap:11px;min-width:0;
 font-size:12px;font-weight:700;cursor:pointer
}
#tasks-section .retainer-task-switch input{
 width:17px;height:17px;flex:none;margin:0;accent-color:var(--gold,#e7b122)
}
#tasks-section .retainer-task-setting .retainer-task-help{
 margin:0;line-height:1.55;font-size:11px
}
#tasks-section .retainer-task-setting label:not(.retainer-task-switch){
 display:flex;flex-direction:column;gap:7px;min-width:0
}
#tasks-section .retainer-task-setting select{width:100%;min-height:42px}
#tasks-section .retainer-task-setting [hidden]{display:none!important}
#tasks-section .retainer-task-setting #task-retainer-status{
 margin:0;font-size:11px;line-height:1.55
}
#tasks-section .work-row-subline .work-retainer{
 border:1px solid #64552e;border-radius:999px;
 padding:3px 9px;color:#eacb83;background:#282317;font-weight:700
}
#tasks-section .work-row-subline .work-retainer.paused{
 border-color:#4b4b4b;background:#252525;color:#c0c0c0
}
