:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--font:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--bg:#f6f7f9;--surface:#fff;--surface-2:#f1f3f6;--border:#dde1e7;--border-strong:#c3c9d2;--text:#1c2330;--muted:#667085;--accent:#2563eb;--accent-text:#fff;--accent-soft:#e0e9fd;--fill:#eaf1ff;--sel:#c9dafc;--today:#2563eb12;--danger:#b42318;--danger-bg:#fde4e1;--danger-strong:#f9b4ab;--warn:#93590a;--warn-bg:#fdf0d5;--risk:#8a6d00;--risk-bg:#fdf6c3;--risk-strong:#e8cf4a;--stretch:#c2410c;--stretch-bg:#ffe2cc;--stretch-strong:#fb923c;--presales:#7c3aed;--presales-bg:#efe7fd;--edge:#0f766e;--ok-bg:#d9f2df;--part-bg:#eef3fb;--hatch:#6670851f;--shadow:0 8px 30px #1018282e;--label-w:340px}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#0f1218;--surface:#171b23;--surface-2:#1e232d;--border:#2b313d;--border-strong:#3a4250;--text:#e6e9ef;--muted:#98a2b3;--accent:#5b8def;--accent-text:#0b1020;--accent-soft:#1e2b47;--fill:#1c2740;--sel:#2a3d66;--today:#5b8def1a;--danger:#ff8a7a;--danger-bg:#4a1d1a;--danger-strong:#7a2a24;--warn:#f3c46b;--warn-bg:#3d2f12;--risk:#f5d742;--risk-bg:#3d3610;--risk-strong:#8a7a1c;--stretch:#fb923c;--stretch-bg:#4a2410;--stretch-strong:#9a4a1c;--presales:#a78bfa;--presales-bg:#2a2140;--edge:#2dd4bf;--ok-bg:#173a24;--part-bg:#1b2433;--hatch:#98a2b31a;--shadow:0 8px 30px #00000080}}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font:14px/1.4 var(--font);background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit;color:inherit}input,select,textarea{background:var(--surface);border:1px solid var(--border-strong);border-radius:6px;padding:5px 8px}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.muted{color:var(--muted)}.small{font-size:12px}.spacer{flex:1}.btn{border:1px solid var(--border-strong);background:var(--surface);cursor:pointer;white-space:nowrap;border-radius:6px;padding:5px 10px}.btn:hover:not(:disabled){background:var(--surface-2)}.btn:disabled{opacity:.45;cursor:default}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.btn-primary:hover:not(:disabled){background:var(--accent);filter:brightness(1.08)}.btn-danger{color:var(--danger);border-color:var(--danger-strong)}.btn-small{padding:2px 8px;font-size:12px}.icon-btn{color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:4px;padding:2px 6px;font-size:16px;line-height:1}.icon-btn:hover{background:var(--surface-2);color:var(--danger)}.link{color:inherit;cursor:pointer;text-align:left;background:0 0;border:none;padding:0;font-weight:600}.link:hover{color:var(--accent);text-decoration:underline}.segmented{border:1px solid var(--border-strong);border-radius:7px;display:inline-flex;overflow:hidden}.segmented button,.tabs button{background:var(--surface);cursor:pointer;border:none;padding:5px 12px}.segmented button+button{border-left:1px solid var(--border-strong)}.segmented button[aria-pressed=true],.tabs button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent);font-weight:600}.app{flex-direction:column;height:100%;display:flex}.toolbar{background:var(--surface);border-bottom:1px solid var(--border);flex-direction:column;gap:8px;padding:8px 14px;display:flex}.toolbar-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.brand{margin:0 8px 0 0;font-size:16px}.nav-group{align-items:center;gap:4px;display:flex}.range-label{margin-left:6px}.search{min-width:220px}.export-status{color:var(--muted);font-size:12px}.export-status.dirty{color:var(--warn)}.btn-conflicts .count,.conflicts .count{background:var(--surface-2);text-align:center;border-radius:10px;min-width:20px;padding:0 6px;font-size:12px;display:inline-block}.btn-conflicts.has .count{background:var(--danger);color:var(--surface)}.main{flex:1;min-height:0;display:flex}.main-scroll{display:block;overflow:auto}.grid-area{flex:1;min-width:0;display:flex}.legend{border-top:1px solid var(--border);background:var(--surface);color:var(--muted);flex-wrap:wrap;justify-content:space-between;gap:16px;padding:6px 14px;font-size:12px;display:flex}.legend-keys{align-items:center;gap:6px;display:inline-flex}.swatch{border:1px solid var(--border-strong);border-radius:3px;width:12px;height:12px;margin-left:8px;display:inline-block}.swatch-over{background:var(--danger-bg);border-color:var(--danger-strong)}.swatch-risk{background:var(--risk-bg);border-color:var(--risk-strong)}.swatch-tentative{border-style:dashed;border-color:var(--accent)}.swatch-outside{background:repeating-linear-gradient(135deg, var(--hatch) 0 3px, transparent 3px 6px)}.grid-scroll{background:var(--surface);-webkit-user-select:none;user-select:none;outline:none;flex:1;overflow:auto}.grid{border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}.grid th,.grid td{border-right:1px solid var(--border);border-bottom:1px solid var(--border);padding:0}.grid thead th{z-index:2;background:var(--surface-2);height:44px;font-weight:500;position:sticky;top:0}.grid th.corner{z-index:4;text-align:left;padding:6px 10px;left:0}.corner-content{flex-direction:column;gap:4px;display:flex}.corner-actions{gap:4px;display:flex}.grid th.col{padding:2px;font-size:12px}.grid th.col.today{color:var(--accent);box-shadow:inset 0 -3px 0 var(--accent);font-weight:700}.col-label,.col-sub{white-space:nowrap;display:block}.col-sub{color:var(--muted);font-size:11px;font-weight:400}.grid th.label{z-index:1;background:var(--surface);text-align:left;width:var(--label-w);min-width:var(--label-w);max-width:var(--label-w);border-right:1px solid var(--border-strong);padding:4px 8px;font-weight:400;position:sticky;left:0}.grid th.corner{width:var(--label-w);min-width:var(--label-w);border-right:1px solid var(--border-strong)}.zoom-week .cell,.zoom-week th.col{width:52px;min-width:52px}.zoom-month .cell,.zoom-month th.col{width:76px;min-width:76px}.zoom-quarter .cell,.zoom-quarter th.col{width:92px;min-width:92px}.grid tr.depth-0 th.label,.grid tr.depth-0 td{background-color:var(--surface-2)}.grid tr.depth-1 th.label{padding-left:34px}.grid tr.depth-0+tr.depth-0 th,.grid tr.depth-1+tr.depth-0 th,.grid tr.depth-1+tr.depth-0 td{border-top:1px solid var(--border-strong)}.grid tr.flash th.label,.grid tr.flash td{animation:1.6s ease-out flash}@keyframes flash{0%,40%{background-color:var(--sel)}}.row-label{align-items:flex-start;gap:6px;display:flex}.row-main{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.row-title{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.row-meta{flex-wrap:wrap;align-items:center;gap:6px;font-size:12px;display:flex}.seller:before{content:"💼 "}.twisty{cursor:pointer;width:20px;color:var(--muted);background:0 0;border:none;padding:0;font-size:13px}.cell{text-align:center;height:30px;scroll-margin-left:calc(var(--label-w) + 4px);scroll-margin-top:48px;font-size:13px;position:relative}.cell.today{background-image:linear-gradient(var(--today), var(--today))}.cell.edit{cursor:cell}.cell.edit.filled{background-color:var(--fill)}.cell.outside{background-image:repeating-linear-gradient(135deg, var(--hatch) 0 3px, transparent 3px 6px)}.cell.over{background-color:var(--danger-bg);color:var(--danger);font-weight:600}.cell.risk{color:var(--stretch);font-weight:600}.cell.edit.tentative{font-style:italic}.cell.edit.tentative.filled{outline:1px dashed var(--accent);outline-offset:-3px}.cell.edit.excluded{color:var(--muted);text-decoration:line-through}.cell.edit.excluded.filled{background-color:var(--surface-2)}.cell.edit.filled.presales{background-color:var(--presales-bg)}.cell.edit.filled.over{background-color:var(--danger-bg)}.cell.edit.selected{background-color:var(--sel)}.cell.focus{outline:2px solid var(--accent);outline-offset:-2px}.cell-input{text-align:center;background:var(--surface);-webkit-user-select:text;user-select:text;border:none;border-radius:0;outline:none;width:100%;height:100%;padding:0}.mixed{color:var(--muted);margin-right:1px;font-size:11px}.cell.summary{color:var(--muted);font-size:12px}.cell.fte.has-over:after{content:"";background:var(--danger);border-radius:50%;width:6px;height:6px;position:absolute;top:4px;right:4px}.grid tr.depth-0 td.heat{color:var(--text);font-size:13px}.grid tr.depth-0 td.heat-part{background-color:var(--part-bg)}.grid tr.depth-0 td.heat-full{background-color:var(--ok-bg)}.grid tr.depth-0 td.heat-risk{color:var(--stretch);font-weight:600}.grid tr.depth-0 td.heat-tentative{background-image:repeating-linear-gradient(135deg, var(--fill) 0 3px, transparent 3px 6px)}.cell .extra{color:var(--muted);margin-left:2px;font-size:10px;font-style:italic}.cell.fte.has-risk:after{content:"";background:var(--risk-strong);border-radius:50%;width:6px;height:6px;position:absolute;top:4px;right:4px}.grid tr.project-row.lost th.label .row-title,.grid tr.project-row.lost td{opacity:.6}.grid tr.depth-0 td.heat-over{background-color:var(--danger-bg);color:var(--danger);font-weight:600}.empty{text-align:center;color:var(--muted);padding:24px!important}.chips{flex-wrap:wrap;gap:4px;display:inline-flex}.chip{background:var(--surface);border:1px solid var(--border);white-space:nowrap;border-radius:10px;align-items:center;gap:4px;padding:0 7px;font-size:11px;line-height:18px;display:inline-flex}.chip i{background:var(--chip);border-radius:50%;width:7px;height:7px}.chip button{cursor:pointer;color:var(--muted);background:0 0;border:none;padding:0 0 0 2px}.chip-dim{opacity:.5}.badge{background:var(--surface-2);border:1px solid var(--border);white-space:nowrap;border-radius:4px;margin-left:4px;padding:0 6px;font-size:11px;line-height:17px;display:inline-block}.row-badges .badge{margin-left:0}.badge-danger{background:var(--danger-bg);border-color:var(--danger-strong);color:var(--danger)}.badge-warn{background:var(--warn-bg);color:var(--warn);border-color:#0000}.badge-risk{background:var(--risk-bg);border-color:var(--risk-strong);color:var(--risk)}.badge-tentative{border-style:dashed;border-color:var(--accent);color:var(--accent);background:0 0}.pill-risk{color:var(--risk);font-weight:700}.danger-text{color:var(--danger)}.status-select{padding:2px 4px;font-size:12px;font-weight:600}.status-pipeline{color:var(--accent)}.status-won{color:#16a34a}.status-lost{color:var(--muted)}.status-text{font-size:12px;font-weight:600}.form-note{margin:0}.pill-danger{color:var(--danger);font-weight:700}.warn-text{color:var(--warn);margin-right:auto}.conflicts{border-left:1px solid var(--border);background:var(--surface);flex-shrink:0;width:300px;padding:10px 12px;overflow:auto}.conflicts h2{align-items:center;gap:6px;margin:6px 0 8px;font-size:13px;display:flex}.conflicts ul{flex-direction:column;gap:6px;margin:0 0 12px;padding:0;list-style:none;display:flex}.conflicts li button{text-align:left;border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:6px;flex-direction:column;gap:1px;width:100%;padding:6px 8px;display:flex}.conflicts li button:hover{border-color:var(--accent)}.conflict-title{font-weight:600}.tag-picker{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.combo{flex:1;min-width:140px;position:relative}.combo input{width:100%;padding:3px 6px}.combo-list{z-index:20;background:var(--surface);border:1px solid var(--border-strong);max-height:220px;box-shadow:var(--shadow);border-radius:6px;margin:0;padding:4px;list-style:none;position:absolute;top:calc(100% + 2px);left:0;right:0;overflow:auto}.combo-list li{cursor:pointer;border-radius:4px;align-items:center;gap:6px;padding:4px 8px;display:flex}.combo-list li[aria-selected=true]{background:var(--accent-soft)}.combo-create{color:var(--accent);font-weight:600}.dot{border-radius:50%;width:8px;height:8px}.modal{border:1px solid var(--border);background:var(--surface);width:min(520px,100vw - 32px);max-height:calc(100vh - 64px);color:var(--text);box-shadow:var(--shadow);border-radius:10px;padding:0}.modal[open]{flex-direction:column;display:flex}.modal-wide{width:min(760px,100vw - 32px)}.modal::backdrop{background:#0f121873}.modal-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:12px 16px;display:flex}.modal-header h2{margin:0;font-size:16px}.modal-body{flex-direction:column;gap:10px;padding:14px 16px;display:flex;overflow:auto}.modal-footer{border-top:1px solid var(--border);justify-content:flex-end;align-items:center;gap:8px;padding:10px 16px;display:flex}.form{flex-direction:column;gap:10px;display:flex}.form label,.form .label-like,.form-row label,.settings label{color:var(--muted);flex-direction:column;gap:4px;font-size:12px;font-weight:600;display:flex}.form label>input,.form label>select,.form label>textarea,.form .label-like>*{color:var(--text);font-size:14px;font-weight:400}.form-row{flex-wrap:wrap;align-items:flex-end;gap:12px;display:flex}.form-row input[type=number]{width:110px}.form-hint{padding-bottom:7px}.candidates{flex-direction:column;gap:4px;max-height:46vh;margin:0;padding:0;list-style:none;display:flex;overflow:auto}.candidate{border:1px solid var(--border);cursor:pointer;border-radius:6px;align-items:center;gap:10px;padding:6px 8px;display:flex}.candidate.picked{border-color:var(--accent);background:var(--accent-soft)}.candidate-main{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.load{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px}.load-over{color:var(--danger);font-weight:600}.manage{max-width:1280px;padding:14px}.tabs{border-bottom:1px solid var(--border);gap:4px;margin-bottom:12px;display:flex}.tabs button{background:0 0;border-radius:6px 6px 0 0}.add-row{gap:6px;max-width:480px;margin-bottom:10px;display:flex}.add-row input{flex:1}.table{border-collapse:collapse;background:var(--surface);border:1px solid var(--border);width:100%}.table th,.table td{text-align:left;border-bottom:1px solid var(--border);vertical-align:middle;padding:5px 8px}.table th{background:var(--surface-2);color:var(--muted);font-size:12px;font-weight:600}.table td.wide{min-width:280px}.inline{background:0 0;border-color:#0000;width:100%;min-width:120px}.inline:hover{border-color:var(--border)}.inline:focus{border-color:var(--accent);background:var(--surface)}.color-select{width:120px;font-weight:700}.settings{flex-direction:column;gap:16px;max-width:640px;display:flex}.settings input{width:120px}.callout{border:1px solid var(--warn-bg);background:var(--warn-bg);color:var(--text);border-radius:8px;padding:10px 12px}.button-row{gap:8px;display:flex}.grid .cell.edit.focus{outline:2px solid var(--accent);outline-offset:-2px}.cells-pie .cell.edit{cursor:pointer;--pie:var(--accent)}.cells-pie .cell.presales{--pie:var(--presales)}.cells-pie .cell.edit.filled:not(.over):not(.risk-critical):not(.selected):not(.excluded){background-color:#0000}.cells-pie .cell.edit.tentative.filled:not(.focus){outline:none}.cells-pie .cell.over{--pie:var(--danger)}.cells-pie .cell.risk{--pie:var(--stretch)}.cells-pie .cell.excluded{--pie:var(--muted);text-decoration:none}.pie-wrap{vertical-align:middle;align-items:center;gap:1px;display:inline-flex}.pie{display:block}.pie-ring{fill:var(--surface);stroke:var(--pie);stroke-width:1.5px}.pie-fill{fill:var(--pie)}.cell.tentative .pie-ring{stroke-dasharray:2.5 2}.cell.tentative .pie-fill{opacity:.55}.cell.excluded .pie-fill{opacity:.4}.segmented .pie{--pie:currentColor;width:16px;height:16px}.segmented button:has(.pie){align-items:center;display:inline-flex}.cell.edge-start{box-shadow:inset 2px 0 0 var(--edge)}.cell.edge-end{box-shadow:inset -2px 0 0 var(--edge)}.cell.edge-start.edge-end{box-shadow:inset 2px 0 0 var(--edge), inset -2px 0 0 var(--edge)}.cell.summary.edge-start:before,.cell.summary.edge-end:before{text-transform:uppercase;letter-spacing:.03em;color:var(--edge);font-size:9px;font-style:normal;font-weight:700;position:absolute;top:2px}.cell.summary.edge-start:before{content:"Start";left:4px}.cell.summary.edge-end:before{content:"End";top:auto;bottom:2px;right:4px}.cell.summary.edge-start.edge-end:before{content:"Start–End"}.grid tr.depth-0 td.prestart.has-presales{background-color:var(--presales-bg)}.swatch-presales{background:var(--presales);border-color:var(--presales);border-radius:50%}.swatch-edge{background:var(--edge);border:none;border-radius:0;width:3px}.help{flex-direction:column;gap:14px;display:flex}.help-section h3{margin:0 0 6px;font-size:13px}.help dl{flex-direction:column;margin:0;display:flex}.help-row{border-bottom:1px solid var(--border);grid-template-columns:minmax(200px,2fr) 3fr;gap:12px;padding:5px 0;display:grid}.help-row dt{color:var(--text);margin:0}.help-row dd{color:var(--muted);margin:0}.help p{margin:0}kbd{border:1px solid var(--border-strong);background:var(--surface-2);min-width:20px;font:600 11px/18px var(--font);text-align:center;border-bottom-width:2px;border-radius:4px;padding:0 5px;display:inline-block}.keys-plus{color:var(--muted);margin:0 2px}.link-inline{color:var(--accent);cursor:pointer;font:inherit;background:0 0;border:none;padding:0;text-decoration:underline}.cell.stretch,.grid tr.depth-0 td.heat-stretch{color:var(--stretch);font-weight:700}.cells-pie .cell.stretch{--pie:var(--stretch)}.badge-stretch{background:var(--stretch-bg);border-color:var(--stretch-strong);color:var(--stretch)}.pill-over{color:var(--danger);font-weight:700}.pill-stretch{color:var(--stretch);font-weight:700}.load-stretch{color:var(--stretch);font-weight:600}.load-risk{color:var(--risk);font-weight:600}.stretch-text{color:var(--stretch)}.cell.fte.has-stretch:after{content:"";background:var(--stretch-strong);border-radius:50%;width:6px;height:6px;position:absolute;top:4px;right:4px}.swatch-stretch{background:var(--stretch);border-color:var(--stretch)}.grid .cell.edit.selected{background-color:var(--sel)}.row-actions{flex-direction:column;align-items:stretch;gap:4px;display:flex}.level-badge{border:1px solid var(--border-strong);color:var(--muted);vertical-align:1px;border-radius:4px;margin-left:6px;padding:0 5px;font-size:10px;font-weight:700;line-height:15px;display:inline-block}.grid tr.group-row th.label,.grid tr.group-row td{background-color:var(--accent-soft)}.grid tr.group-row th.label{padding-top:6px;padding-bottom:6px}.grid tr.group-row td.group-sum{color:var(--text);font-size:12px}.grid tr.group-row td.over-capacity{color:var(--danger);font-weight:700}.grid tr.group-row+tr.resource-row th.label,.grid tr.group-row+tr.resource-row td{border-top:none}.grid th.label{padding-top:2px;padding-bottom:2px}.cell{height:26px}.pie{width:16px;height:16px}.row-label{align-items:center}.row-main{gap:1px}.row-title{align-items:center;gap:6px;min-width:0;display:flex}.row-title>.row-name,.row-title>.link{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.row-meta{flex-wrap:nowrap;min-width:0;overflow:hidden}.row-meta>*,.row-title>.row-badges{flex-shrink:0}.row-meta>.chips{flex-wrap:nowrap;flex-shrink:1;min-width:0;overflow:hidden}.row-badges{flex-wrap:nowrap;gap:3px;display:inline-flex}.chip{padding:0 5px;font-size:10px;line-height:15px}.badge{padding:0 4px;font-size:10px;line-height:15px}.status-select.compact{padding:0 1px;font-size:10px}.row-actions{flex-direction:row;gap:3px}.grid .btn-small{padding:1px 6px;font-size:11px}.twisty{align-self:center}.grid tr.depth-1 .row-name{color:color-mix(in srgb, var(--text) 68%, transparent);font-size:13px}.cell.risk-critical,.cell.edit.filled.risk-critical,.grid tr.depth-0 td.heat-risk-critical{background-color:var(--danger-bg);color:var(--danger)}.cells-pie .cell.risk-critical{--pie:var(--danger)}
