.workbench-gantt {--gantt-label:232px;--gantt-day:40px;color:var(--text)}
.gantt-caption {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 17px;border-bottom:1px solid var(--line)}
.gantt-caption>span {display:flex;align-items:baseline;flex-wrap:wrap;gap:12px}
.gantt-caption strong {font-size:13px;font-weight:600}
.gantt-caption span span,.gantt-caption small {color:var(--muted);font-size:10px}
.gantt-caption small {display:flex;align-items:center;gap:4px}
.gantt-scroll {overflow:auto;max-height:520px;overscroll-behavior:contain;scrollbar-gutter:stable}
.gantt-scroll:focus-visible {outline:2px solid var(--blue);outline-offset:-2px}
.gantt-table {min-width:calc(var(--gantt-label) + 28 * var(--gantt-day));font-size:11px}
.gantt-header,.gantt-row {display:grid;grid-template-columns:var(--gantt-label) minmax(0,1fr)}
.gantt-header {position:sticky;top:0;z-index:5;background:var(--panel);border-bottom:1px solid var(--line)}
.gantt-header-label,.gantt-row-label {position:sticky;left:0;z-index:3;background:var(--panel);border-right:1px solid var(--line)}
.gantt-header-label {display:flex;align-items:center;padding:12px 16px;color:var(--muted);font-size:10px;font-weight:500;z-index:6}
.gantt-row-label {display:flex;align-items:center;gap:9px;padding-left:16px}
.gantt-task-avatar {display:grid;place-items:center;flex:none;width:28px;height:28px;color:var(--muted)}
.gantt-task-avatar img {display:block;width:28px;height:28px;object-fit:contain;border-radius:7px}
.gantt-task-avatar.is-project {border-radius:7px;background:var(--raised)}
.gantt-axis {display:grid;grid-template-columns:repeat(28,minmax(0,1fr))}
.gantt-day {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:55px;border-right:1px solid var(--line);color:var(--muted)}
.gantt-day small {font-size:9px;color:var(--faint)}
.gantt-day time {display:grid;place-items:center;width:23px;height:23px;font-size:12px}
.gantt-day.is-today time {background:var(--blue);color:#fff;border-radius:50%}
.gantt-day.is-today small {color:var(--blue)}
.gantt-row {min-height:59px;border-bottom:1px solid var(--line)}
.gantt-row:last-child {border-bottom:0}
.gantt-task-name {display:flex;flex:1;min-width:0;flex-direction:column;justify-content:center;gap:4px;text-align:left;height:100%;min-height:59px;padding:10px 12px 10px 0;background:transparent;color:var(--text);border-radius:0}
.gantt-task-name strong {display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:500}
.gantt-task-name small {display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;color:var(--muted)}
.gantt-task-name:hover,.gantt-task-name:focus-visible {background:var(--raised);color:var(--blue)}
.gantt-timeline {position:relative;display:grid;grid-template-columns:repeat(28,minmax(0,1fr));align-items:center;min-width:0;isolation:isolate}
.gantt-grid {display:grid;grid-template-columns:repeat(28,minmax(0,1fr));position:absolute;inset:0;z-index:-2;pointer-events:none}
.gantt-grid i {border-right:1px solid var(--line)}
.gantt-grid .is-weekend,.gantt-day.is-weekend {background:color-mix(in srgb,var(--muted) 4%,transparent)}
.gantt-today-line {position:absolute;inset:0 auto 0 calc((var(--today) + .5) / 28 * 100%);width:1px;background:color-mix(in srgb,var(--blue) 55%,transparent);z-index:-1;pointer-events:none}
.gantt-bar {display:flex;align-items:center;gap:5px;min-width:0;min-height:27px;margin:9px 3px;padding:4px 9px;border:1px solid #a2a8bb30;border-radius:5px;background:#5a627b38;color:var(--text);text-align:left;font-size:10px;white-space:nowrap;overflow:hidden;transition:filter .15s ease,box-shadow .15s ease}
.gantt-bar-label {min-width:0;overflow:hidden;text-overflow:ellipsis}
.gantt-bar:hover {filter:brightness(1.18);box-shadow:0 0 0 1px var(--blue)}
.gantt-bar:focus-visible,.gantt-task-name:focus-visible {outline:2px solid var(--blue);outline-offset:-2px}
.gantt-bar.is-working {background:#3277b957;border-color:#7db8f14d;color:#bfdcff}
.gantt-bar.is-review {background:#8c62b33a;border-color:#b998d04d;color:#d9c6ec}
.gantt-bar.is-revision {background:#b7733f30;border-color:#dba16b44;color:#edc8a7}
.gantt-bar.is-done {background:#328a682b;border-color:#74bea344;color:#9fcfbd}
.gantt-bar.is-fixed {background:#636a842d;border-style:dashed;color:var(--muted)}
.gantt-bar.is-project {background:#bb804b2e;border-color:#dba16b44;color:#e3bd98}
.gantt-continues {margin-left:auto}
.gantt-empty {padding:34px 24px;color:var(--muted);font-size:11px;text-align:center}
.gantt-footer {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 17px;border-top:1px solid var(--line);color:var(--faint);font-size:9px}
.gantt-footer .text-button {display:flex;align-items:center;gap:4px;font-size:10px;color:var(--muted)}
:root[data-theme=light] .gantt-bar.is-working {color:#245787;background:#dcebf9}
:root[data-theme=light] .gantt-bar.is-review {color:#6a428b;background:#eee4f6}
:root[data-theme=light] .gantt-bar.is-revision {color:#94531e;background:#fae9d9}
:root[data-theme=light] .gantt-bar.is-done {color:#326a57;background:#ddefe7}
:root[data-theme=light] .gantt-bar.is-project {color:#8d5929;background:#f9ecdf}
@media(max-width:600px) {
  .workbench-gantt {--gantt-label:176px;--gantt-day:36px}
  .gantt-caption {padding:12px;align-items:flex-start}
  .gantt-caption small {display:none}
  .gantt-caption>span {gap:5px}
  .gantt-caption span span {display:block;width:100%}
  .gantt-header-label {padding-left:12px;padding-right:12px}
  .gantt-row-label {padding-left:12px;gap:8px}
  .gantt-task-name {padding-right:8px}
  .gantt-footer {padding:10px 12px}
}
@media(prefers-reduced-motion:reduce) {.gantt-bar {transition:none}}
