.hierarchical-gantt{--hg-label-width:320px;--hg-row-height:48px;--hg-day-width:28px;color:#536079;margin:18px 0 24px}.hg-controls,.hg-period,.hg-tree-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.hg-controls{justify-content:space-between;margin-bottom:12px}.hg-period strong{font-size:12px;white-space:nowrap}.hg-period-select{display:flex;align-items:center;gap:7px;font-size:11px;color:#8490a4}.hg-period-select select{padding:7px;border:1px solid #e1e6ef;border-radius:5px;background:#fff;color:#65738b}.hg-explanation,.hg-warning{font-size:11px;line-height:1.7;margin:9px 0 14px;color:#8b96a9}.hg-warning{padding:9px 12px;border-left:3px solid #dfc58b;background:#fffcf4;color:#927e59}.hg-scroll{overflow:auto;max-height:70vh;border:1px solid #e4e9f2;border-radius:8px;background:#fff;overscroll-behavior:contain}.hg-scroll:focus-visible{outline:2px solid #839ad6;outline-offset:3px}.hg-grid{width:calc(var(--hg-label-width) + var(--hg-time-width));min-width:100%}.hg-header,.hg-row{display:flex;width:100%}.hg-header{height:66px;position:sticky;top:0;z-index:7;background:#f9fbfe;border-bottom:1px solid #dfe6f0}.hg-label{position:sticky;left:0;z-index:4;flex:0 0 var(--hg-label-width);width:var(--hg-label-width);box-sizing:border-box;display:flex;gap:5px;align-items:center;background:#fff;border-right:1px solid #dfe6f0;padding:0 12px 0 calc(10px + var(--hg-depth,0)*18px);overflow:hidden;min-width:0}.hg-header-label{flex-direction:column;align-items:flex-start;justify-content:center;background:#f9fbfe;font-size:11px;font-weight:500;gap:5px;z-index:8;padding-left:16px}.hg-header-label small{font-size:10px;color:#9aa5b6;font-weight:400}.hg-time-head{flex-shrink:0;width:var(--hg-time-width)}.hg-months,.hg-days{display:flex}.hg-months{height:32px;border-bottom:1px solid #e6ebf3}.hg-months span{box-sizing:border-box;flex-shrink:0;overflow:hidden;white-space:nowrap;font-size:10px;text-transform:capitalize;padding:9px;border-left:1px solid #e4e9f2}.hg-days{height:34px}.hg-days>span{flex:0 0 28px;width:28px;box-sizing:border-box;border-left:1px solid #e9edf5;text-align:center;padding-top:10px;font-size:9px;color:#8e9bb0}.hg-days>.is-weekend{background:#edf1f8}.hg-days>.is-today{background:#dfe7fd;color:#4f66a1;font-weight:600;box-shadow:inset 0 2px 0 #8598cc}.hg-body{position:relative}.hg-row{height:var(--hg-row-height);border-bottom:1px solid #edf0f6;box-sizing:border-box}.hg-row:last-of-type{border-bottom:0}.hg-row-caption{min-width:0;flex:1}.hg-row-caption small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;color:#99a3b4;margin-top:4px}.hg-row-link{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5a6880;font-size:11px;line-height:1.3;text-align:left;border:0;background:none;padding:0;text-decoration:none}.hg-row-link>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hg-row-link:hover{text-decoration:underline;color:#586da5}.hg-toggle,.hg-toggle-placeholder{width:20px;flex:0 0 20px;height:24px}.hg-toggle{display:flex;align-items:center;justify-content:center;border:0;background:none;color:#8090ac;font-size:15px;border-radius:4px;padding:0}.hg-toggle:hover{background:#eef2fa;color:#526a9f}.hg-toggle:focus-visible,.hg-row-link:focus-visible,.hg-bar:focus-visible,.hg-dependency-list button:focus-visible{outline:2px solid #758fc8;outline-offset:2px}.hg-kind-project .hg-label{background:#f8faff}.hg-kind-portfolio .hg-label,.hg-kind-group .hg-label{background:#f2f6fc}.hg-kind-project .hg-row-link,.hg-kind-portfolio .hg-row-link,.hg-kind-group .hg-row-link{font-weight:600;color:#5e7398}.hg-time-cell{flex-shrink:0;position:relative;overflow:hidden;background:repeating-linear-gradient(90deg,transparent 0,transparent 27px,#edf0f5 27px,#edf0f5 28px)}.hg-kind-project .hg-time-cell{background-color:#fbfcff}.hg-kind-portfolio .hg-time-cell,.hg-kind-group .hg-time-cell{background-color:#f7f9fd}.hg-bar-position{position:absolute;top:13px;height:22px}.hg-bar{display:block;width:100%;height:22px;box-sizing:border-box;border:1px solid #7e94c4;background:#91a6d2;border-radius:4px;color:#fff;font-size:9px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 7px;text-align:left;text-decoration:none;position:relative;z-index:2}.hg-bar:hover{filter:brightness(.95)}.is-forecast .hg-bar{background:#dce5f7;border-style:dashed;color:#6d82af}.hg-bar.is-summary{height:13px;top:5px;border-radius:2px;background:#a9b8d4;border-color:#8fa1c0;line-height:11px;color:transparent;overflow:visible}.hg-bar.is-summary:before,.hg-bar.is-summary:after{content:"";position:absolute;top:4px;width:3px;height:12px;background:#8fa1c0}.hg-bar.is-summary:before{left:0}.hg-bar.is-summary:after{right:0}.hg-bar.is-partial{background:repeating-linear-gradient(135deg,#b7c4dd 0,#b7c4dd 4px,#e2e8f4 4px,#e2e8f4 8px);border-style:dashed}.hg-bar.is-conditional{border-color:#c59b69;background:#ecdbc0;color:#8e704d}.hg-bar.is-milestone{background:none;border:0;padding:0;color:#8a77b2;font-size:21px;width:24px;overflow:visible;line-height:22px}.hg-bar.is-clipped-start{border-top-left-radius:0;border-bottom-left-radius:0;border-left-style:dotted}.hg-bar.is-clipped-end{border-top-right-radius:0;border-bottom-right-radius:0;border-right-style:dotted}.hg-no-dates{position:absolute;top:16px;left:11px;font-size:10px;color:#a1aabc;white-space:nowrap}.hg-deadline{position:absolute;top:8px;height:31px;width:2px;background:#bf7d87;z-index:4}.hg-deadline:before{content:"";position:absolute;top:0;left:-3px;border-top:5px solid #bf7d87;border-left:4px solid transparent;border-right:4px solid transparent}.hg-dependency-lines{position:absolute;left:var(--hg-label-width);top:0;z-index:3;pointer-events:none;overflow:hidden;color:#96a4bc}.hg-dependency-lines>path{fill:none;stroke:currentColor;stroke-width:1.3;stroke-linejoin:round;opacity:.85}.hg-dependency-list{margin-top:14px;font-size:11px;color:#8795aa;line-height:1.7}.hg-dependency-list summary{cursor:pointer;padding:7px 0}.hg-dependency-list ul{list-style:none;margin:4px 0;padding:0}.hg-dependency-list li{padding:6px 0}.hg-dependency-list button{display:inline;padding:0;border:0;background:none;color:#687da7;text-align:left}.hg-dependency-list button:hover{text-decoration:underline}.hg-dependency-list small{font-size:10px;color:#9ba6b8}.hg-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}@media(max-width:900px){.hierarchical-gantt{--hg-label-width:260px}.hg-controls{justify-content:flex-start}.hg-period{width:100%}}@media(max-width:600px){.hierarchical-gantt{--hg-label-width:215px}.hg-label{padding-left:calc(5px + var(--hg-depth,0)*13px);gap:2px}.hg-row-link{font-size:10px}.hg-row-caption small{font-size:8px}.hg-period strong{font-size:11px}.hg-tree-actions .btn{font-size:10px}.hg-controls>.segmented button{padding:7px 10px;font-size:10px}.hg-explanation{font-size:10px}.hg-scroll{max-height:65vh}}@media(prefers-reduced-motion:reduce){.hierarchical-gantt *{scroll-behavior:auto!important}}
.hg-bar-position.is-editable{touch-action:pan-y}.hg-bar-position.is-editable>.hg-bar{cursor:grab;user-select:none}.hg-bar-position.is-dragging{z-index:6;filter:drop-shadow(0 3px 4px #34425d33)}.hg-bar-position.is-dragging>.hg-bar{cursor:grabbing;outline:2px solid #738dc6;outline-offset:2px}.hg-bar-position.is-invalid-drag>.hg-bar{outline-color:#bd6d7a;background:#f2d9df;color:#984e5d}.hg-resize{position:absolute;top:-2px;width:12px;height:26px;padding:0;border:0;background:transparent;z-index:5;cursor:ew-resize;touch-action:none;border-radius:3px}.hg-resize-start{left:-4px}.hg-resize-end{right:-4px}.hg-resize:after{content:"";position:absolute;top:7px;left:5px;width:2px;height:12px;background:#637ba8;opacity:0}.hg-bar-position.is-editable:hover .hg-resize:after,.hg-bar-position.is-dragging .hg-resize:after{opacity:.9}.hg-edit-schedule{flex:0 0 24px;width:24px;height:25px;padding:0;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:4px;background:transparent;color:#8498bc;font-size:15px}.hg-edit-schedule:hover{background:#edf2fc;border-color:#dce5f5;color:#576fa3}.hg-edit-schedule:focus-visible{outline:2px solid #758fc8;outline-offset:2px}.hg-interaction-status{min-height:0;font-size:11px;line-height:1.7;color:#6f83ab;margin:0}.hg-interaction-status:not(:empty){padding:8px 11px;margin:8px 0;border-radius:5px;background:#f0f4fc}.hg-interaction-status.is-error{background:#fff4f5;color:#ad6575}.hg-schedule-warnings{padding-left:20px;color:#a07951;font-size:12px;line-height:1.8;margin-top:18px}@media(pointer:coarse){.hg-resize{width:20px}.hg-resize-start{left:-8px}.hg-resize-end{right:-8px}.hg-edit-schedule{width:28px;flex-basis:28px}}

/* K19/K21: three readable label lines share exactly the same row geometry as SVG. */
.hierarchical-gantt{--hg-label-width:360px;--hg-row-height:72px}
.hierarchical-gantt .hg-label:not(.hg-header-label){padding-top:7px;padding-bottom:7px;align-items:center;gap:6px}
.hierarchical-gantt .hg-row-caption{display:flex;flex-direction:column;justify-content:center;gap:3px;min-height:0}
.hierarchical-gantt .hg-row-link{line-height:16px;font-size:12px;flex-shrink:0;min-height:16px}
.hierarchical-gantt .hg-row-caption .hg-row-context{font-size:10px;line-height:12px;margin:0;max-height:24px;white-space:normal;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere}
.hierarchical-gantt .hg-row-caption .hg-row-warning{display:block;max-width:100%;font-size:10px;line-height:12px;margin:0;padding:0;border:0;position:static;background:transparent;color:#9a6973;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hierarchical-gantt .hg-row-context:focus-visible,.hierarchical-gantt .hg-row-warning:focus-visible{outline:2px solid #758fc8;outline-offset:1px}
.hierarchical-gantt .hg-bar-position{top:calc(var(--hg-row-height)/2 - 11px)}
.hierarchical-gantt .hg-no-dates{top:calc(var(--hg-row-height)/2 - 6px);line-height:12px}
.hierarchical-gantt .hg-deadline{top:calc(var(--hg-row-height)/2 - 16px);height:32px}
.hierarchical-gantt .hg-edit-schedule,.hierarchical-gantt .hg-toggle{align-self:center}
@media(max-width:900px){.hierarchical-gantt{--hg-label-width:300px}}
@media(max-width:600px){.hierarchical-gantt{--hg-label-width:250px}.hierarchical-gantt .hg-label:not(.hg-header-label){padding-left:calc(5px + var(--hg-depth,0)*9px);gap:3px}.hierarchical-gantt .hg-row-link{font-size:11px}.hierarchical-gantt .hg-row-caption .hg-row-context{font-size:9px}}
.drawer .hierarchical-gantt{--hg-label-width:270px}
.drawer .hierarchical-gantt .hg-label:not(.hg-header-label){padding-left:calc(6px + var(--hg-depth,0)*9px)}
