.task-display-switch,.task-gantt-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.task-display-switch button,.task-gantt-toolbar button{padding:8px 12px;border:1px solid #c9ded9;border-radius:9px;background:#fff;color:#315d56;cursor:pointer}
.task-display-switch button[aria-pressed=true]{background:#087f78;color:#fff;border-color:#087f78}
.task-gantt{min-width:0;display:grid;gap:12px;width:100%;--gantt-title-width:280px;--gantt-meta-width:calc(var(--gantt-title-width) + 19em);--gantt-row-height:max(42px,calc(1.5em + 16px));--gantt-day-width:max(32px,2em)}
.task-gantt-note{margin:0;color:#60777b;line-height:1.6}
.task-gantt-scroll{overflow:auto;max-height:calc(var(--workspace-viewport-height,100vh) * 0.65);border:1px solid #cfdfdf;border-radius:12px;background:#fff}
.task-gantt-grid{min-width:calc(var(--gantt-meta-width) + var(--gantt-days)*var(--gantt-day-width))}
.task-gantt-row{display:grid;grid-template-columns:var(--gantt-title-width) 6em 4.5em 4.5em 4em minmax(0,1fr);height:var(--gantt-row-height);border-bottom:1px solid #e0e9eb}
.task-gantt-row:last-child{border-bottom:0}
.task-gantt-row:nth-child(odd){background:#f8fbfc}
.task-gantt-label{position:sticky;left:0;z-index:2;display:block;min-width:0;background:var(--task-gantt-label-bg,#fff);border:0;border-right:1px solid var(--task-gantt-line,#cfdfdf);border-radius:0;padding:8px 12px;text-align:left;color:#243f4c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;line-height:1.5}
.task-gantt-row:nth-child(odd)>.task-gantt-label{background:var(--task-gantt-label-odd,#f8fbfc)}
.task-gantt-cell{display:flex;align-items:center;justify-content:center;min-width:0;padding:4px;border-right:1px solid #e0e9eb;white-space:nowrap;overflow:hidden;font-variant-numeric:tabular-nums}
.task-gantt-cell.is-overdue{color:#b8404d;font-weight:700}
.task-gantt-status.is-in_progress{color:#126c9a}.task-gantt-status.is-waiting{color:#956315}.task-gantt-status.is-done{color:#627b71}
.task-gantt-days,.task-gantt-weeks,.task-gantt-track,.task-gantt-bands{display:grid;grid-template-columns:repeat(var(--gantt-days),minmax(var(--gantt-day-width),1fr))}
.task-gantt-days>span{display:grid;justify-items:center;align-content:center;line-height:1.3;padding:5px 0;border-right:1px solid #dce6ed;background:#f5f9fc;color:#2a4d64}
.task-gantt-days .is-saturday,.task-gantt-day-band.is-saturday,.task-gantt-legend .is-saturday{background:#e6f1fc;color:#276eae}
.task-gantt-days .is-sunday,.task-gantt-day-band.is-sunday,.task-gantt-legend .is-sunday{background:#fff0f0;color:#b8444c}
.task-gantt-days .is-today,.task-gantt-day-band.is-today,.task-gantt-legend .is-today{background:#daf3e7;color:#11684f;box-shadow:inset 2px 0 #27a180,inset -2px 0 #27a180}
.task-gantt-track{position:relative;align-items:center;min-width:0}
.task-gantt-bands{position:absolute;inset:0;pointer-events:none}
.task-gantt-day-band{border-right:1px solid #e0e9eb}
.task-gantt-bar{position:relative;z-index:1;grid-row:1;margin:0 1px;height:22px;min-height:0;border:1px solid #4594bd;border-radius:3px;background:#7ab6d7;padding:0;cursor:pointer;min-width:0}
.task-gantt-bar.is-overdue,.task-gantt-deadline-legend .is-overdue{background:#e7777d;border-color:#b83e4c}
.task-gantt-bar.is-today,.task-gantt-deadline-legend .is-today{background:#f2cf55;border-color:#b38a15}
.task-gantt-bar.is-upcoming,.task-gantt-deadline-legend .is-upcoming{background:#7ab6d7;border-color:#4594bd}
.task-gantt-bar.is-done,.task-gantt-deadline-legend .is-done{background:#80b79f;border-color:#619b82}
.task-gantt-deadline-legend{display:flex;flex-wrap:wrap;gap:8px 18px;color:#435b67}
.task-gantt-deadline-legend>span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.task-gantt-deadline-legend i{display:inline-block;width:22px;height:12px;border:1px solid;border-radius:3px}
.task-gantt-bar:hover{filter:brightness(.9)}.task-gantt-bar:focus-visible,.task-gantt-label:focus-visible{outline:2px solid #126aa0;outline-offset:-2px}
.task-gantt-header{position:sticky;top:0;z-index:3;background:var(--task-gantt-head-bg,#edf3f7)!important;height:auto;align-items:stretch}
.task-gantt-header>.task-gantt-label{display:flex;align-items:center;background:var(--task-gantt-head-bg,#edf3f7)!important;cursor:default;font-weight:700}
.task-gantt-header>.task-gantt-cell{font-weight:700}
.task-gantt-calendar{min-width:0}.task-gantt-month{background:#185d92;color:#fff;font-weight:700;text-align:left;padding:3px 12px}
.task-gantt-weeks{background:#317bb0;color:#fff;text-align:center}.task-gantt-weeks>span{border-right:1px solid #ffffff55;padding:2px 0;white-space:nowrap;overflow:hidden}
.task-gantt-legend{display:flex;gap:5px;margin-left:auto}.task-gantt-legend span{padding:2px 8px;border-radius:4px;white-space:nowrap}
.task-gantt-undated{display:grid;gap:8px}.task-gantt-undated button{text-align:left;padding:8px 12px;border:1px solid #d5e4e0;border-radius:9px;background:white;color:#315d56;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:900px){.task-gantt{--gantt-title-width:180px}}

.managed-task-controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:12px 0 18px}
.managed-task-controls label{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%}
.managed-task-controls select{min-width:0;max-width:100%;padding:8px;border:1px solid #c9ded9;border-radius:9px;background:#fff;color:#315d56}
.task-gantt-team{--gantt-title-width:320px;--gantt-row-height:max(66px,calc(3em + 16px))}
.task-gantt-team .task-gantt-label small{display:block;overflow:hidden;text-overflow:ellipsis;color:#60777b;font-weight:400}
.task-management-list:has(.task-gantt){display:block;min-width:0}
.task-management-view{min-width:0}
