.task-schedule-panel{padding:22px 24px;margin-bottom:16px;border:1px solid color-mix(in srgb,var(--green) 25%,var(--line));border-radius:15px;background:linear-gradient(115deg,color-mix(in srgb,var(--sage) 75%,var(--panel)),var(--panel));box-shadow:0 4px 20px #24452d05}
.task-schedule-header{display:flex;justify-content:space-between;align-items:center;gap:20px}
.task-schedule-heading{min-width:0}
.task-schedule-eyebrow{display:block;margin-bottom:5px;color:var(--green);font-size:10px;font-weight:700;letter-spacing:.55px;text-transform:uppercase}
.task-schedule-heading h2{margin:0;color:var(--ink);font-size:23px;font-weight:750;line-height:1.35;letter-spacing:-.55px;overflow-wrap:anywhere}
.task-schedule-heading p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.55}
.task-schedule-date-controls{display:flex;align-items:flex-end;gap:7px;flex:0 0 auto}
.task-schedule-date{display:flex;flex-direction:column;gap:5px;min-width:0;color:var(--muted);font-size:10px}
.task-schedule-date input{width:158px;max-width:100%;min-width:0;min-height:39px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;font-size:11px;font-variant-numeric:tabular-nums}
.task-schedule-arrow{display:grid;place-items:center;flex:0 0 35px;width:35px;height:39px;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font-family:inherit;font-size:22px;line-height:1}
.task-schedule-arrow:hover{background:var(--sage)}
.task-schedule-periods{display:flex;flex-wrap:wrap;gap:7px;margin-top:18px}
.task-schedule-periods button{min-height:38px;padding:9px 16px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;font-size:11px;font-weight:600;line-height:1.5;text-align:center}
.task-schedule-periods button:hover{border-color:var(--green);background:var(--sage)}
.task-schedule-periods button[aria-pressed=true]{border-color:var(--green);background:var(--green);color:#fff;box-shadow:0 2px 5px #24452d15}
.task-schedule-panel button:focus-visible,.task-schedule-date input:focus-visible{outline:3px solid var(--green);outline-offset:3px}
.task-schedule-panel button:disabled,.task-schedule-panel input:disabled{opacity:.55;cursor:wait}
.task-schedule-hint{margin:11px 0 0;color:var(--muted);font-size:10px;line-height:1.6}
.task-schedule{display:inline-flex;align-items:center;max-width:100%;min-width:0;padding:4px 7px;border-radius:6px;background:var(--sage);color:var(--green);font-size:10px;font-weight:600;line-height:1.45;font-variant-numeric:tabular-nums;vertical-align:middle}
.task-schedule time{white-space:normal;overflow-wrap:anywhere}
.task-schedule.is-unscheduled{background:color-mix(in srgb,var(--line) 35%,transparent);color:var(--muted);font-weight:400}
.task-planning-cell>small{display:block;margin-top:5px;color:var(--muted);font-size:9px;line-height:1.5;overflow-wrap:anywhere}
.board-card>.task-schedule{margin-bottom:10px}
.task-toolbar-filters{display:flex;align-items:center;justify-content:flex-end;gap:15px;min-width:0}
.view-toolbar:has(.task-toolbar-filters){flex-wrap:wrap;gap:14px}
.task-toolbar-filters{flex-wrap:wrap;max-width:100%;margin-left:auto}
.task-toolbar-filters>.filters{display:flex;flex-wrap:wrap;min-width:0;gap:3px;max-width:100%}
.task-toolbar-filters .filter{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.task-filter-trigger{position:relative;display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;padding:9px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--green);cursor:pointer}
.task-filter-trigger:hover,.task-filter-trigger[aria-expanded=true]{border-color:var(--green);background:var(--sage)}
.task-filter-trigger.is-active{background:var(--sage);border-color:color-mix(in srgb,var(--green) 45%,var(--line))}
.task-filter-trigger svg,.task-filter-header svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.task-filter-badge{position:absolute;top:-5px;right:-5px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:10px;background:var(--green);color:var(--panel);font-size:10px;font-weight:700;box-shadow:0 0 0 2px var(--bg)}
.task-filter-trigger:focus-visible,.task-filter-drawer button:focus-visible,.task-filter-drawer select:focus-visible{outline:3px solid var(--green);outline-offset:3px}
.task-filter-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:420px;max-width:min(420px,100vw);height:100dvh;max-height:100dvh;border:0;border-left:1px solid var(--line);border-radius:22px 0 0 22px;padding:0;background:var(--panel);color:var(--ink);overflow:hidden;box-shadow:-14px 0 60px #1835251c}
.task-filter-drawer[open]{display:flex;flex-direction:column;animation:task-filter-enter .18s ease-out}
.task-filter-drawer::backdrop{background:#172e242e;backdrop-filter:blur(1px)}
.task-filter-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:26px 26px 22px;border-bottom:1px solid var(--line);flex:none}
.task-filter-eyebrow{display:block;margin-bottom:5px;color:var(--muted);font-size:11px}
.task-filter-header h2{margin:0;font-size:25px;line-height:1.2;letter-spacing:-.7px}
.task-filter-header>.icon-button{width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:var(--bg)}
.task-filter-body{padding:22px 26px 26px;overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0}
.task-filter-hint{margin:0 0 23px;font-size:12px;line-height:1.7;color:var(--muted)}
.task-filter-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:17px}
.task-filter-field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;color:var(--ink);min-width:0}
.task-filter-field select,.task-view-select select{width:100%;min-width:0;min-height:44px;padding:11px 12px;font-size:13px;font-weight:400;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:10px}
.task-filter-saved{margin-top:26px;padding-top:24px;border-top:1px solid var(--line)}
.task-filter-saved h3{margin:0 0 6px;font-size:14px}
.task-filter-saved>p{margin:0 0 14px;color:var(--muted);font-size:11px;line-height:1.6}
.task-view-select{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0}
.task-view-select>.text-link{align-self:flex-end;font-size:11px;min-height:28px}
.task-filter-saved>.button{width:100%;margin-top:9px;min-height:42px}
.task-filter-drawer button:disabled{opacity:.4;cursor:default}
.task-filter-footer{flex:none;padding:16px 26px max(22px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--panel);box-shadow:0 -8px 24px #18352504}
.task-filter-footer>p{margin:0 0 12px;color:var(--muted);font-size:12px}
.task-filter-footer strong{color:var(--ink);font-weight:650}
.task-filter-footer>div{display:flex;justify-content:space-between;align-items:center;gap:16px}
.task-filter-footer button{min-height:44px;font-size:12px}
body.dark .task-filter-footer .button.primary{color:#17241d}
@keyframes task-filter-enter{from{transform:translateX(24px);opacity:.6}to{transform:translateX(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.task-filter-drawer[open]{animation:none}}
@media(max-width:980px){.task-toolbar-filters{gap:9px}.view-toolbar{flex-wrap:wrap}}
@media(max-width:760px){.task-toolbar-filters{width:100%;justify-content:space-between;gap:8px}.task-toolbar-filters .filters{display:flex;flex-wrap:wrap;gap:1px}.task-toolbar-filters .filter{padding:9px 8px;min-height:42px}.task-filter-trigger{flex-basis:44px;width:44px;height:44px}.task-filter-badge{right:-3px}}
@media(max-width:480px){.task-filter-drawer{width:calc(100vw - 16px);max-width:420px;border-radius:18px 0 0 18px}.task-filter-header{padding:22px 22px 18px}.task-filter-body{padding:20px 22px}.task-filter-field select,.task-view-select select{font-size:16px}.task-filter-footer{padding-inline:22px}}
.task-results-count{font-size:11px;color:var(--muted);margin:0 0 12px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.task-results-count small{font-size:10px;max-width:410px;text-align:right;line-height:1.6}
.task-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}
.task-tags .tag{font-size:9px;padding:2px 6px;background:var(--sage);color:var(--green)}
.board-card>.task-tags{margin:-4px 0 13px}
@media(max-width:980px){.task-results-count small{text-align:left}}
@media(max-width:680px){.task-schedule-panel{padding:17px 15px}.task-schedule-header{align-items:stretch;flex-direction:column;gap:14px}.task-schedule-heading h2{font-size:21px}.task-schedule-date-controls{width:100%}.task-schedule-date{flex:1}.task-schedule-date input{width:100%;min-height:42px}.task-schedule-arrow{height:42px;flex-basis:40px;width:40px}.task-schedule-periods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:15px}.task-schedule-periods button{min-height:42px;padding-inline:7px}}
body.dark .task-schedule-periods button[aria-pressed=true]{color:#17241d}

.board-task-planning{display:grid;justify-items:start;gap:5px;margin-bottom:12px}
.view-toolbar .task-view-switcher{width:auto;min-width:330px;max-width:100%;flex-shrink:0}.task-view-switcher button{display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;min-height:38px}@media(max-width:760px){.view-toolbar .task-view-switcher{width:100%;min-width:0}.task-view-switcher button{padding-inline:9px;min-height:42px}}
.board-task-planning>small{font-size:10px;color:var(--muted)}
.task-planning-cell>small.overdue,.board-task-planning>small.overdue{color:#b4534c}
body.dark .task-planning-cell>small.overdue,body.dark .board-task-planning>small.overdue{color:#f0aaa2}
