/* Supplied KanbanBoard visual structure, scoped to the task board. */
#tasks{--task-ui-text:#26332b;--task-ui-muted:#59675e;--task-ui-border:#dce4dd;--task-ui-surface:#fff;--task-ui-soft:#f3f6f3;--task-ui-accent:var(--tp-primary,#3f8128);--task-ui-accent-soft:var(--tp-primary-soft,#edf7e9);--task-ui-radius:12px;--task-ui-gap:12px;min-width:0;max-width:100%;container-type:inline-size;font-family:"DM Sans",system-ui,sans-serif}
#tasks *,#tasks *::before,#tasks *::after{box-sizing:border-box}
#tasks .tasks-heading{align-items:center;flex-wrap:wrap;gap:20px;margin:8px 0 20px}
#tasks .tasks-heading>div:first-child{flex:1 1 300px;min-width:0}
#tasks .tasks-heading h2{font:700 28px/1.2 "DM Sans",system-ui,sans-serif;color:var(--task-ui-text);margin:6px 0 8px}
#tasks .tasks-heading p:last-child{font:400 13px/1.5 "DM Sans",system-ui,sans-serif;color:var(--task-ui-muted)}
#tasks .tasks-heading-actions{display:flex;flex:0 1 auto;flex-wrap:wrap;align-items:center;gap:8px;width:auto}
#tasks .tasks-heading-actions button{min-height:42px;padding:10px 14px;border:1px solid var(--task-ui-border);border-radius:8px;background:var(--task-ui-surface);color:var(--task-ui-text);font:600 12px/1.4 "DM Sans",system-ui,sans-serif;box-shadow:none}
#tasks .tasks-heading-actions .task-primary-button{background:var(--task-ui-accent);border-color:var(--task-ui-accent);color:var(--task-ui-surface)}
#tasks .tasks-heading-actions button:hover{background:var(--task-ui-soft)}
#tasks .tasks-heading-actions .task-primary-button:hover{background:var(--tp-primary-strong,#2d651d)}
#tasks #taskNotificationCount{background:var(--task-ui-accent);color:var(--task-ui-surface);font-size:11px}
#tasks .task-retention-notice{gap:10px;padding:10px 14px;border-color:var(--task-ui-border);background:var(--task-ui-soft);color:var(--task-ui-muted);opacity:1;border-radius:var(--task-ui-radius)}
#tasks .task-retention-notice strong{font:600 11px/1.5 "DM Sans",system-ui,sans-serif;color:var(--task-ui-text)}
#tasks .task-retention-notice span{font:400 11px/1.5 "DM Sans",system-ui,sans-serif}
#tasks .tasks-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:var(--task-ui-gap);width:100%;min-width:0;padding:16px;margin:0 0 16px;border:1px solid var(--task-ui-border);border-radius:var(--task-ui-radius);background:var(--task-ui-surface)}
#tasks .tasks-toolbar-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--task-ui-gap);min-width:0}
#tasks .tasks-summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
#tasks .tasks-summary b{color:var(--task-ui-text);font-size:13px}
#tasks .tasks-summary span{color:var(--task-ui-muted);font-size:12px;line-height:1.5}
#tasks .tasks-toolbar-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}
#tasks .task-view-switch{display:flex;flex-wrap:wrap;gap:3px;width:auto;max-width:100%;padding:3px;border:1px solid var(--task-ui-border);border-radius:9px;background:var(--task-ui-soft);overflow:visible}
#tasks .task-view-switch button{flex:1 1 auto;min-height:34px;padding:7px 12px;border:0;border-radius:6px;color:var(--task-ui-muted);font:500 12px/1.4 "DM Sans",system-ui,sans-serif;white-space:nowrap}
#tasks .task-view-switch button.active{background:var(--task-ui-surface);color:var(--task-ui-accent)!important;box-shadow:0 1px 3px #00000012;font-weight:700}
#tasks .task-view-switch button:not(.active){color:var(--task-ui-muted)!important}
#tasks #refreshTasks{flex:none;min-height:38px;padding:8px;color:var(--task-ui-muted);font:500 12px/1.4 "DM Sans",system-ui,sans-serif}
#tasks .tasks-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.45fr) minmax(190px,.45fr);gap:var(--task-ui-gap);width:100%;min-width:0}
#tasks .task-search{display:flex;align-items:center;gap:8px;width:100%;min-width:0;max-width:none;height:42px;margin:0;padding:0 12px;border:1px solid var(--task-ui-border);border-radius:8px;background:var(--task-ui-surface)}
#tasks .task-search span{color:var(--task-ui-muted);font-size:18px}
#tasks .task-search input{width:100%;min-width:0;max-width:none;height:100%;padding:0;border:0;background:transparent;outline:0;color:var(--task-ui-text);font:400 13px "DM Sans",system-ui,sans-serif}
#tasks .task-search:focus-within{outline:2px solid var(--task-ui-accent);outline-offset:2px}
#tasks .task-search input:focus-visible{outline:none!important;box-shadow:none}
#tasks .task-search input::placeholder{color:var(--task-ui-muted);opacity:1}
#tasks .tasks-controls select,#tasks .task-extra-filter-grid select{width:100%;min-width:0;max-width:none;min-height:42px;padding:8px 12px;border:1px solid var(--task-ui-border);border-radius:8px;background:var(--task-ui-surface);color:var(--task-ui-text);font:400 12px/1.5 "DM Sans",system-ui,sans-serif}
#tasks .task-extra-filters{min-width:0;padding-top:2px}
#tasks .task-extra-filters summary{width:fit-content;max-width:100%;min-height:28px;padding:4px 0;color:var(--task-ui-text);font:600 12px/1.5 "DM Sans",system-ui,sans-serif;cursor:pointer}
#tasks .task-extra-filters summary span{margin-left:8px;color:var(--task-ui-muted);font-weight:400}
#tasks .task-extra-filters summary:focus-visible{outline:2px solid var(--task-ui-accent);outline-offset:3px;border-radius:4px}
#tasks .task-extra-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--task-ui-gap);margin-top:10px}
#tasks .task-deadline-alerts{display:flex;flex-wrap:wrap;gap:8px;max-width:100%;font:400 12px/1.5 "DM Sans",system-ui,sans-serif}
#tasks .task-deadline-alerts[hidden]{display:none}
@container(max-width:760px){#tasks .tasks-toolbar-top{align-items:flex-start}#tasks .tasks-toolbar-actions{width:100%;justify-content:space-between}#tasks .tasks-controls{grid-template-columns:repeat(2,minmax(0,1fr))}#tasks .task-search{grid-column:1/-1}#tasks .tasks-heading-actions{width:100%}#tasks .tasks-heading-actions button{flex:1 1 auto}}
@container(max-width:430px){#tasks .tasks-toolbar{padding:12px}#tasks .tasks-toolbar-actions{gap:8px}#tasks .task-view-switch{width:100%}#tasks .task-view-switch button{padding:7px 6px}#tasks #refreshTasks{margin-left:auto}#tasks .tasks-controls{grid-template-columns:minmax(0,1fr)}#tasks .task-extra-filter-grid{grid-template-columns:minmax(0,1fr)}#tasks .task-extra-filters summary span{display:none}#tasks .task-retention-notice{align-items:flex-start;flex-direction:column;gap:4px}#tasks .tasks-heading-actions .task-primary-button{flex-basis:100%}#tasks .tasks-controls select,#tasks .task-extra-filter-grid select,#tasks .task-search input{font-size:16px}}
#tasksBoard.task-kanban-board{display:flex;align-items:flex-start;gap:16px;overflow-x:auto;padding:6px 2px 20px;scroll-padding:16px;overscroll-behavior-x:contain;font-family:"DM Sans",sans-serif}
#tasksBoard.task-kanban-board button,#tasksBoard.task-kanban-board .task-column-name{font-family:"DM Sans",sans-serif!important}
#tasksBoard.task-kanban-board .task-column{box-sizing:border-box;display:flex;flex-direction:column;flex:0 0 286px;width:286px;min-width:286px;min-height:180px;max-height:none;padding:12px;border:0!important;border-radius:16px;background:#f3f4f5!important;box-shadow:none}
#tasksBoard.task-kanban-board .task-column-header{display:flex;align-items:center;gap:4px;min-height:28px;margin:0 0 12px;padding:0}
#tasksBoard.task-kanban-board .task-column-title{display:flex;align-items:center;flex:1;gap:8px;min-width:0}
#tasksBoard.task-kanban-board .task-column-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:none;color:#262626;font-size:13px;font-weight:600}
#tasksBoard.task-kanban-board .task-column-title>span:last-child:not(.task-column-name){display:grid;place-items:center;flex:none;min-width:20px;height:20px;padding:0 4px;border-radius:6px;background:#e7e8ea;color:#666;font-size:11px}
.task-kanban-dot{flex:none;width:8px;height:8px;border-radius:50%;background:#9299a2}.task-column-in_progress .task-kanban-dot{background:#8b5cf6}.task-column-review .task-kanban-dot{background:#e4a11b}.task-column-completed .task-kanban-dot{background:#10b981}.task-column-blocked .task-kanban-dot{background:#f43f5e}
#tasksBoard.task-kanban-board .task-column-settings-button,#tasksBoard .task-kanban-add{display:grid;place-items:center;flex:none;width:28px;height:28px;min-width:0;margin:0;padding:5px;border:0;border-radius:7px;background:transparent;color:#777;box-shadow:none;cursor:pointer}
#tasksBoard.task-kanban-board .task-list{display:flex;flex-direction:column;gap:8px;flex:initial;min-height:24px;padding:0;overflow:visible}
#tasksBoard.task-kanban-board .task-card,.task-card.task-kanban-floating{box-sizing:border-box;position:relative;width:100%;margin:0;padding:12px;border:1px solid #e5e7eb!important;border-radius:12px;background:#fff!important;box-shadow:0 1px 2px #00000008;color:#262626;cursor:grab}
#tasksBoard.task-kanban-board .task-card[hidden]{display:none!important}
#tasksBoard.task-kanban-board .task-card:hover{border-color:#cdd1d5!important}
.task-card-chips{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:22px}
.task-kanban-priority,.task-kanban-category{display:inline-flex;align-items:center;gap:4px;max-width:100%;min-height:22px;padding:0 7px;border-radius:7px;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.task-kanban-priority.urgent{background:#fff1f2;color:#be123c}.task-kanban-priority.high{background:#fffbeb;color:#92400e}.task-kanban-priority.medium{background:#eff6ff;color:#1d4ed8}.task-kanban-priority.low,.task-kanban-category{background:#f3f4f6;color:#595e66}
.task-card-chips svg,.task-kanban-metrics svg{width:13px;height:13px;flex:none}.task-kanban-add svg,.task-column-settings-button svg{width:16px;height:16px}
#tasksBoard.task-kanban-board .task-card-settings,.task-kanban-floating .task-card-settings{display:grid;place-items:center;width:24px;height:24px;margin-left:auto;border:0;border-radius:6px;background:transparent;color:#777;cursor:pointer}
#tasksBoard.task-kanban-board .task-card-heading,.task-kanban-floating .task-card-heading{display:block;margin-top:9px}
#tasksBoard.task-kanban-board .task-card-title,.task-kanban-floating .task-card-title{display:block;width:100%;margin:0;padding:0;border:0;background:transparent;color:#262626;text-align:left;font:600 13px/1.5 "DM Sans",sans-serif;overflow-wrap:anywhere;cursor:pointer}
#tasksBoard.task-kanban-board .task-card p,.task-kanban-floating p{display:-webkit-box;overflow:hidden;margin:4px 0 0!important;color:#737373!important;font:400 12px/1.5 "DM Sans",sans-serif!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.task-kanban-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:16px;min-height:26px}
.task-kanban-avatar{display:grid;place-items:center;flex:none;width:26px;height:26px;border:2px solid white;border-radius:50%;background:hsl(var(--avatar-hue) 50% 90%);color:hsl(var(--avatar-hue) 45% 28%);font-size:9px;font-weight:700}
.task-kanban-metrics{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;color:#737373;font-size:10px;font-variant-numeric:tabular-nums}.task-kanban-due{display:inline-flex;align-items:center;gap:4px}.task-kanban-due.due-soon{color:#9b6500}
.task-kanban-progress{width:15px;height:15px;flex:none;border-radius:50%;background:conic-gradient(#16a06a var(--progress),#e5e7eb 0);mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 0)}
.task-kanban-handle{display:grid;place-items:center;width:24px;height:26px;padding:0;border:0;border-radius:5px;background:transparent;color:#737373;cursor:grab;touch-action:none}
#tasksBoard.task-kanban-board .task-add-card{display:flex;align-items:center;gap:6px;width:100%;margin:8px 0 0;padding:8px;border:0;border-radius:10px;background:transparent;color:#737373;text-align:left;font:500 12.5px "DM Sans",sans-serif;cursor:pointer}
#tasksBoard.task-kanban-board .task-add-card:hover,#tasksBoard.task-kanban-board .task-column-settings-button:hover,#tasksBoard .task-kanban-add:hover,.task-kanban-handle:hover{background:#e7e8ea;color:#262626}
#tasksBoard.task-kanban-board .task-add-column{min-height:52px;background:transparent!important;border:1px dashed #d1d5db!important}.task-kanban-board .task-add-column>button{justify-content:center;width:100%;padding:4px;background:transparent;color:#737373}
#tasksBoard.task-kanban-board .task-column.drag-over{outline:0;background:#e9ebee!important}
.task-kanban-placeholder{box-sizing:border-box;flex:none;border:1px dashed #b3b9c0;border-radius:12px;background:#e5e7eb80}
.task-card.task-kanban-floating{position:fixed;z-index:10000;pointer-events:none;box-shadow:0 16px 32px -12px #00000047;cursor:grabbing;font-family:"DM Sans",sans-serif}
.task-kanban-grabbed{outline:2px solid #3f8128;outline-offset:2px}.task-kanban-handle:focus-visible{outline:2px solid #3f8128;outline-offset:2px}
.task-kanban-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:600px){#tasksBoard.task-kanban-board{gap:12px}#tasksBoard.task-kanban-board .task-column{flex-basis:280px;width:280px;min-width:280px}.task-kanban-handle{width:32px;height:32px}}
@media(prefers-reduced-motion:reduce){#tasksBoard.task-kanban-board *, .task-kanban-floating{animation:none!important;transition:none!important}}

/* Organization contains project structure only; stages are created on the board. */
#taskStructureModal .task-structure-dialog{box-sizing:border-box;width:min(980px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:28px;border-radius:16px;overflow:auto;font-family:"DM Sans",system-ui,sans-serif;color:#26332b}
#taskStructureModal h3{margin:6px 48px 8px 0;font:700 24px/1.25 "DM Sans",system-ui,sans-serif}
#taskStructureModal .task-structure-intro{margin:0 48px 24px 0;color:#59675e;font-size:13px;line-height:1.5}
#taskStructureModal .task-structure-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:16px}
#taskStructureModal [data-structure-form]{box-sizing:border-box;min-width:0;display:flex;flex-direction:column;gap:8px;margin:0;padding:16px;border:1px solid #dce4dd;border-radius:12px;background:#f7f9f7}
#taskStructureModal h4{margin:0;font:600 15px/1.4 "DM Sans",system-ui,sans-serif}
#taskStructureModal [data-structure-form]>p{min-height:36px;margin:0 0 8px;color:#59675e;font-size:12px;line-height:1.5}
#taskStructureModal label{margin:0;color:#26332b;font:500 12px/1.5 "DM Sans",system-ui,sans-serif}
#taskStructureModal input,#taskStructureModal select{box-sizing:border-box;display:block;min-width:0;max-width:100%;width:100%;height:42px;margin:0 0 6px;padding:8px 10px;border:1px solid #dce4dd;border-radius:7px;background:#fff;color:#26332b;font:400 13px "DM Sans",system-ui,sans-serif}
#taskStructureModal .task-cycle-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#taskStructureModal .task-cycle-dates label{display:grid;min-width:0;gap:6px}
#taskStructureModal [type=submit]{min-height:40px;margin:4px 0 0;padding:9px 12px;border:0;border-radius:7px;background:var(--tp-primary,#3f8128);color:#fff;font:600 12px/1.4 "DM Sans",system-ui,sans-serif;cursor:pointer}
#taskStructureModal [type=submit]:hover:not(:disabled){background:var(--tp-primary-strong,#2d651d)}
#taskStructureModal :disabled{opacity:.55;cursor:not-allowed}
#taskStructureModal #taskStructureStatus{display:block;min-height:20px;margin:16px 0;color:#3f652f;font:500 13px/1.5 "DM Sans",system-ui,sans-serif}
#taskStructureModal .task-structure-existing{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0}
#taskStructureModal .task-structure-existing>section{min-width:0;padding:16px;border:1px solid #dce4dd;border-radius:12px;background:#fff}
#taskStructureModal .task-structure-existing h4{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:13px}
#taskStructureModal .task-structure-existing h4 small{font-size:12px;color:#59675e}
#taskStructureModal .task-structure-existing section>div{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:10px 0;border-bottom:1px solid #edf0ed}
#taskStructureModal .task-structure-existing section>div>span{flex:1 1 100%;min-width:0;overflow-wrap:anywhere;font-size:13px;color:#26332b}
#taskStructureModal .task-structure-existing section>div>span small{display:block;margin-top:4px;color:#59675e;font-size:11px}
#taskStructureModal .task-structure-existing button{min-height:30px;padding:5px 8px;border:1px solid #dce4dd;border-radius:6px;background:#fff;color:#36582c;font:500 12px "DM Sans",system-ui,sans-serif;cursor:pointer}
#taskStructureModal .task-structure-existing [data-delete-structure]{color:#ab2d34}
#taskStructureModal .task-structure-empty{margin:0;color:#59675e;font:400 12px/1.5 "DM Sans",system-ui,sans-serif}
#taskStructureModal .task-modal-close{width:36px;height:36px;right:20px;top:20px;font-size:22px}
#tasksBoard #taskAddColumn[hidden]{display:none!important}
#tasksBoard #taskStageInlineForm{width:100%;min-width:0;padding:4px;text-align:left}
#tasksBoard #taskStageInlineForm select{width:100%;min-height:38px;padding:8px;border:1px solid #dce4dd;border-radius:6px;background:#fff;color:#26332b;font:400 13px system-ui}
#tasksBoard #taskStageInlineForm input{min-height:38px;font-size:13px}
#tasksBoard #taskStageInlineForm label{font-size:12px}
@media(max-width:780px){#taskStructureModal .task-structure-grid,#taskStructureModal .task-structure-existing{grid-template-columns:minmax(0,1fr)}#taskStructureModal .task-structure-dialog{padding:20px}#taskStructureModal [data-structure-form]>p{min-height:0}#taskStructureModal h3{font-size:21px}#taskStructureModal .task-structure-intro{margin-right:0}#taskStructureModal input,#taskStructureModal select{font-size:16px}}

.task-stage-order{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.task-stage-order button{min-height:36px;padding:8px 10px;border:1px solid #dce4dd;border-radius:6px;background:#fff;color:#36582c;font:500 12px system-ui;cursor:pointer}.task-stage-order button:disabled{opacity:.45;cursor:not-allowed}
