/* Project management workspace. It relies on dashboard design tokens and keeps a
   small fallback palette so the module can be previewed outside the dashboard. */
#view-projects,
#project-management-root{--pm-bg:var(--c-bg,#f5f7fa);--pm-surface:var(--c-surface,#fff);--pm-surface2:var(--c-surface2,#f8fafc);--pm-line:var(--c-line,#e2e8ef);--pm-line2:var(--c-line2,#d2dce7);--pm-ink:var(--c-ink,#24364b);--pm-ink2:var(--c-ink2,#536277);--pm-muted:var(--c-muted,#8b98a8);--pm-blue:var(--c-primary,#277ed7);--pm-blue-soft:var(--c-primary-soft,#e9f3ff);--pm-green:#2f9673;--pm-green-soft:#e8f6ef;--pm-amber:#b77820;--pm-amber-soft:#fff5df;--pm-red:#cb5e63;--pm-red-soft:#fff0f1;--pm-radius:var(--radius-card,10px);font-family:var(--font,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif);color:var(--pm-ink)}
#view-projects.view.active{animation:none!important;transform:none!important}
.pm-page{min-width:0;padding:8px 0 30px;background:var(--pm-bg)}
.pm-hero{display:flex;min-width:0;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px;padding:2px 2px 0}
.pm-hero-actions{display:flex;min-width:0;align-items:center;justify-content:flex-end;gap:9px}
.pm-eyebrow{display:block;margin-bottom:5px;color:var(--pm-blue);font-size:11px;font-weight:750;letter-spacing:.06em;text-transform:uppercase}
.pm-hero h1{margin:0;color:var(--pm-ink);font-size:26px;line-height:1.2;letter-spacing:0}
.pm-hero p{margin:7px 0 0;color:var(--pm-muted);font-size:12px;line-height:1.6}
.pm-live-status{display:flex;min-width:170px;align-items:center;gap:7px;padding:9px 11px;border:1px solid var(--pm-line);border-radius:9px;background:var(--pm-surface);color:var(--pm-green);font-size:11px;font-weight:700;white-space:nowrap}
.pm-live-status svg{width:15px;height:15px}.pm-live-status small{margin-left:auto;color:var(--pm-muted);font-size:9px;font-weight:500}
.pm-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}
.pm-kpi{display:grid;width:100%;gap:6px;min-width:0;padding:13px 15px;border:1px solid var(--pm-line);border-radius:var(--pm-radius);appearance:none;background:var(--pm-surface);box-shadow:0 4px 12px rgba(35,57,79,.035);color:inherit;font:inherit;text-align:left;cursor:pointer;transition:border-color .16s ease,background-color .16s ease,transform .16s ease}
.pm-kpi:hover{border-color:var(--pm-line2);background:#fbfdff;transform:translateY(-1px)}.pm-kpi:active{transform:translateY(0)}.pm-kpi:focus-visible,.pm-project-title-button:focus-visible,.pm-detail-item:focus-visible,.pm-view-switch button:focus-visible,.pm-scale-switch button:focus-visible{outline:3px solid color-mix(in srgb,var(--pm-blue) 24%,transparent);outline-offset:2px}
.pm-kpi span{color:var(--pm-muted);font-size:10px}.pm-kpi b{color:var(--pm-ink);font-size:24px;line-height:1}.pm-kpi small{color:var(--pm-ink2);font-size:9px}.pm-kpi.is-alert b{color:var(--pm-red)}
.pm-toolbar{display:flex;min-width:0;align-items:flex-end;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--pm-line);border-bottom:0;border-radius:var(--pm-radius) var(--pm-radius) 0 0;background:var(--pm-surface)}
.pm-project-picker{display:grid;min-width:220px;gap:5px}.pm-project-picker label{color:var(--pm-muted);font-size:10px}.pm-project-picker select{width:min(440px,45vw);min-height:38px;padding:0 30px 0 11px;border:1px solid var(--pm-line2);border-radius:8px;background:var(--pm-surface);color:var(--pm-ink);font:600 12px var(--font,inherit)}
.pm-toolbar-actions,.pm-view-switch,.pm-scale-switch{display:flex;align-items:center;gap:7px}.pm-button,.pm-icon-button{display:inline-flex;min-height:38px;align-items:center;justify-content:center;gap:6px;padding:0 12px;border:1px solid var(--pm-line2);border-radius:8px;background:var(--pm-surface);color:var(--pm-ink2);font:650 11px var(--font,inherit);cursor:pointer}.pm-button:hover,.pm-icon-button:hover{border-color:#a8c6e5;background:var(--pm-blue-soft);color:var(--pm-blue)}.pm-button svg{width:14px;height:14px}.pm-button-primary{border-color:var(--pm-blue);background:var(--pm-blue);color:#fff}.pm-button-primary:hover{background:#176bbb;color:#fff}.pm-button-danger{border-color:#efc6c9;background:var(--pm-red-soft);color:var(--pm-red)}.pm-icon-button{width:38px;min-width:38px;padding:0}.pm-icon-button svg{width:16px;height:16px}
.pm-filterbar{display:flex;min-width:0;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 14px;border:1px solid var(--pm-line);background:var(--pm-surface2)}.pm-view-switch{margin-right:auto}.pm-view-switch button,.pm-scale-switch button{display:inline-flex;min-height:32px;align-items:center;gap:5px;padding:0 10px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--pm-muted);font:650 10px var(--font,inherit);cursor:pointer}.pm-view-switch button svg{width:14px;height:14px}.pm-view-switch button.is-active,.pm-scale-switch button.is-active{border-color:var(--pm-line2);background:var(--pm-surface);color:var(--pm-blue);box-shadow:0 2px 5px rgba(38,70,102,.06)}.pm-scale-switch{padding:2px;border:1px solid var(--pm-line);border-radius:8px;background:var(--pm-bg)}.pm-scale-switch button{min-height:28px;padding-inline:11px}.pm-search{display:flex;min-width:170px;align-items:center;gap:6px;padding:0 9px;border:1px solid var(--pm-line2);border-radius:8px;background:var(--pm-surface);color:var(--pm-muted)}.pm-search svg{width:14px;height:14px}.pm-search input{width:130px;min-height:32px;padding:0;border:0;outline:0;background:transparent;color:var(--pm-ink);font:500 10px var(--font,inherit)}.pm-filterbar>select{min-height:34px;padding:0 28px 0 9px;border:1px solid var(--pm-line2);border-radius:8px;background:var(--pm-surface);color:var(--pm-ink2);font:600 10px var(--font,inherit)}
.pm-search:focus-within,.pm-filterbar>select:focus-visible{border-color:var(--pm-blue);outline:2px solid color-mix(in srgb,var(--pm-blue) 18%,transparent)}
.pm-project-summary{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(220px,.6fr);gap:20px;padding:16px 18px;border:1px solid var(--pm-line);border-top:0;background:var(--pm-surface)}.pm-summary-main{min-width:0}.pm-title-row{display:flex;min-width:0;align-items:center;flex-wrap:wrap;gap:8px}.pm-title-row h2{min-width:0;margin:0;color:var(--pm-ink);font-size:19px;line-height:1.35}.pm-project-title-button{display:inline-flex;min-height:40px;align-items:center;margin:-7px -8px;padding:7px 8px;border:0;border-radius:8px;background:transparent;color:var(--pm-ink);font:inherit;text-align:left;cursor:pointer}.pm-project-title-button:hover{background:var(--pm-blue-soft);color:var(--pm-blue)}.pm-status,.pm-health,.pm-task-status{display:inline-flex;align-items:center;padding:3px 7px;border-radius:5px;font-size:9px;font-style:normal;font-weight:700;white-space:nowrap}.pm-status-planning{background:var(--pm-blue-soft);color:var(--pm-blue)}.pm-status-active{background:var(--pm-green-soft);color:var(--pm-green)}.pm-status-at_risk,.pm-health-risk{background:var(--pm-amber-soft);color:var(--pm-amber)}.pm-status-completed{background:var(--pm-green-soft);color:var(--pm-green)}.pm-status-archived{background:#edf0f3;color:var(--pm-muted)}.pm-health-normal{background:var(--pm-green-soft);color:var(--pm-green)}.pm-health-blocked{background:var(--pm-red-soft);color:var(--pm-red)}.pm-summary-meta{display:flex;align-items:center;gap:4px;margin:9px 0 0;color:var(--pm-ink2);font-size:10px}.pm-summary-meta svg{width:13px;height:13px;color:var(--pm-muted)}.pm-goal-wrap{max-width:720px;margin-top:11px}.pm-goal{margin:0;color:var(--pm-ink2);font-size:11px;line-height:1.6;overflow-wrap:anywhere}.pm-goal.is-collapsed{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.pm-goal-toggle{display:inline-flex;min-height:30px;align-items:center;gap:4px;margin:4px 0 -5px;padding:0 5px;border:0;border-radius:6px;background:transparent;color:var(--pm-blue);font:650 9px var(--font,inherit);cursor:pointer}.pm-goal-toggle:hover{background:var(--pm-blue-soft)}.pm-goal-toggle:focus-visible{outline:3px solid color-mix(in srgb,var(--pm-blue) 24%,transparent);outline-offset:1px}.pm-goal-toggle svg{width:12px;height:12px}.pm-summary-progress{align-self:center;min-width:0;padding:4px 0}.pm-summary-progress>div:first-child{display:flex;align-items:center;justify-content:space-between;color:var(--pm-muted);font-size:10px}.pm-summary-progress>div:first-child b{color:var(--pm-blue);font-size:20px}.pm-summary-progress-head{display:flex;align-items:center;justify-content:space-between;color:var(--pm-muted);font-size:10px}.pm-summary-progress-head b{color:var(--pm-blue);font-size:20px}.pm-progress-track{height:7px;margin:9px 0 6px;border-radius:8px;background:#eaf0f5;overflow:hidden}.pm-progress-track i{display:block;height:100%;border-radius:8px;background:var(--pm-blue);transition:width .2s}.pm-summary-progress small{color:var(--pm-muted);font-size:9px}.pm-summary-progress em{color:var(--pm-red);font-style:normal}.pm-summary-export-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:12px}.pm-summary-export-button{display:inline-flex;min-height:29px;align-items:center;gap:5px;padding:0 8px;border:1px solid var(--pm-line2);border-radius:7px;background:var(--pm-surface);color:var(--pm-ink2);font:650 9px var(--font,inherit);cursor:pointer;white-space:nowrap}.pm-summary-export-button:hover{border-color:#a8c6e5;background:var(--pm-blue-soft);color:var(--pm-blue)}.pm-summary-export-button:focus-visible{outline:3px solid color-mix(in srgb,var(--pm-blue) 24%,transparent);outline-offset:1px}.pm-summary-export-button svg{width:13px;height:13px}
.pm-workspace{min-width:0;border:1px solid var(--pm-line);border-top:0;border-radius:0 0 var(--pm-radius) var(--pm-radius);background:var(--pm-surface);overflow:hidden}.pm-gantt-shell{min-width:0}.pm-gantt-scroll{position:relative;width:100%;overflow-x:auto;overscroll-behavior-x:contain}.pm-gantt{min-width:calc(280px + var(--pm-columns) * var(--pm-column-size));background:var(--pm-surface)}.pm-gantt-head,.pm-gantt-row{display:grid;grid-template-columns:280px minmax(0,1fr)}.pm-gantt-head{position:sticky;top:0;z-index:2;min-height:54px;border-bottom:1px solid var(--pm-line);background:var(--pm-surface2)}.pm-gantt-head-label{position:sticky;left:0;z-index:8;display:flex;align-items:center;padding:0 14px;border-right:1px solid var(--pm-line);color:var(--pm-muted);font-size:10px;font-weight:700;background:var(--pm-surface2);box-shadow:1px 0 0 var(--pm-line),8px 0 16px rgba(35,57,79,.035)}.pm-gantt-head-track,.pm-gantt-track{position:relative;display:grid;grid-template-columns:repeat(var(--pm-columns),var(--pm-column-size));background-image:linear-gradient(90deg,rgba(211,220,229,.65) 1px,transparent 1px);background-size:var(--pm-column-size) 100%}.pm-gantt-period{display:grid;align-content:center;justify-items:center;gap:2px;border-right:1px solid var(--pm-line);color:var(--pm-ink2)}.pm-gantt-period b{font-size:10px}.pm-gantt-period small{color:var(--pm-muted);font-size:8px}.pm-gantt-body{background:var(--pm-surface)}.pm-gantt-row{min-height:58px;border-bottom:1px solid #edf1f4}.pm-gantt-row:hover{background:#fbfdff}.pm-gantt-label{position:sticky;left:0;z-index:5;display:flex;min-width:0;align-items:center;gap:7px;padding:8px 10px 8px 14px;border-right:1px solid var(--pm-line);background:var(--pm-surface);box-shadow:1px 0 0 var(--pm-line),8px 0 16px rgba(35,57,79,.025)}.pm-gantt-label>div{display:grid;min-width:0;gap:3px;flex:1}.pm-gantt-label b{overflow:hidden;color:var(--pm-ink2);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.pm-gantt-label small{overflow:hidden;color:var(--pm-muted);font-size:8px;text-overflow:ellipsis;white-space:nowrap}.pm-row-action{display:inline-flex;width:28px;height:28px;min-width:28px;align-items:center;justify-content:center;border:0;border-radius:6px;background:transparent;color:#a2afbd;cursor:pointer}.pm-row-action:hover{background:var(--pm-blue-soft);color:var(--pm-blue)}.pm-row-action svg{width:14px;height:14px}.pm-gantt-track{min-height:58px;align-items:center}.pm-today-line{position:absolute;top:0;bottom:0;z-index:1;width:1px;background:var(--pm-red);pointer-events:none}.pm-task-bar{position:absolute;z-index:2;display:flex;height:25px;min-width:24px;align-items:center;padding:0 8px;border:0;border-radius:6px;color:#fff;font:650 9px var(--font,inherit);text-align:left;box-shadow:0 3px 7px rgba(43,83,119,.15);cursor:pointer;overflow:hidden}.pm-task-bar span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pm-task-todo{background:#83a9cf}.pm-task-doing{background:var(--pm-blue)}.pm-task-done{background:#77b89f}.pm-task-bar.is-overdue{background:var(--pm-red)}.pm-source-dot{display:inline-block;width:8px;height:8px;min-width:8px;border-radius:50%;background:var(--pm-blue)}.pm-source-dot.pm-source-event{background:#6eafa0}.pm-event-marker{position:absolute;top:9px;z-index:3;display:flex;width:18px;height:18px;align-items:center;justify-content:center;color:var(--pm-amber);transform:translateX(-50%)}.pm-event-marker svg{width:14px;height:14px}.pm-milestone{position:absolute;top:2px;bottom:2px;z-index:3;border-left:1px dashed var(--pm-amber);pointer-events:none}.pm-milestone span{position:absolute;top:2px;left:5px;display:flex;align-items:center;gap:3px;width:max-content;padding:2px 4px;border-radius:4px;background:var(--pm-amber-soft);color:var(--pm-amber);font-size:8px;font-weight:700}.pm-milestone svg{width:10px;height:10px}.pm-event-boundary-line{position:absolute;top:0;bottom:0;z-index:1;border-left:2px dashed currentColor;pointer-events:none;opacity:.86}.pm-event-boundary-line.pm-event-boundary-start{color:#b77820}.pm-event-boundary-line.pm-event-boundary-end{color:#6d6cc8}.pm-event-boundary-label{position:absolute;top:3px;z-index:4;display:inline-flex;align-items:center;gap:3px;width:max-content;padding:3px 5px;border:1px solid currentColor;border-radius:5px;background:color-mix(in srgb,currentColor 12%,var(--pm-surface));font-size:8px;font-weight:750;line-height:1;white-space:nowrap}.pm-event-boundary-label.pm-event-boundary-start{color:#a66f1a}.pm-event-boundary-label.pm-event-boundary-end{left:auto;transform:translateX(-100%);color:#5c5ab0}.pm-event-boundary-label svg{width:11px;height:11px}.pm-event-boundary-label small{font-size:8px}.pm-gantt-no-results,.pm-task-no-results{display:flex;min-height:190px;align-items:center;justify-content:center;gap:7px;color:var(--pm-muted);font-size:11px}.pm-gantt-no-results svg,.pm-task-no-results svg{width:18px;height:18px}.pm-gantt-legend{display:flex;align-items:center;gap:14px;padding:10px 14px;border-top:1px solid var(--pm-line);color:var(--pm-muted);font-size:9px}.pm-gantt-legend span{display:inline-flex;align-items:center;gap:5px}.pm-legend-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--pm-blue)}.pm-legend-dot.event{background:#6eafa0}.pm-legend-event-start,.pm-legend-event-end{display:inline-block;width:15px;height:9px;border:1px dashed currentColor;border-radius:2px}.pm-legend-event-start{color:#b77820}.pm-legend-event-end{color:#6d6cc8}.pm-legend-line{display:inline-block;width:1px;height:13px;background:var(--pm-red)}.pm-legend-hint{margin-left:auto}
.pm-task-list{width:100%;min-width:0;overflow-x:auto}.pm-task-list-head,.pm-task-row{display:grid;grid-template-columns:minmax(210px,1.6fr) 90px 90px minmax(100px,.8fr) 100px 85px 55px 32px;align-items:center;gap:10px;min-width:850px;padding:0 14px}.pm-task-list-head{min-height:42px;border-bottom:1px solid var(--pm-line);background:var(--pm-surface2);color:var(--pm-muted);font-size:9px;font-weight:700}.pm-task-row{min-height:57px;border-bottom:1px solid #edf1f4;color:var(--pm-ink2);font-size:10px}.pm-task-row:hover{background:#fbfdff}.pm-task-row.is-overdue{box-shadow:inset 3px 0 var(--pm-red)}.pm-task-title{display:flex;min-width:0;align-items:center;gap:7px}.pm-task-title>div{display:grid;min-width:0;gap:3px}.pm-task-title b{overflow:hidden;color:var(--pm-ink2);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.pm-task-title small{overflow:hidden;color:var(--pm-muted);font-size:8px;text-overflow:ellipsis;white-space:nowrap}.pm-task-category{color:var(--pm-ink2);font-size:9px;font-weight:650}.pm-task-source{color:var(--pm-muted);font-size:9px}.pm-task-status-todo{background:var(--pm-blue-soft);color:var(--pm-blue)}.pm-task-status-doing{background:#e8f0ff;color:#5275bf}.pm-task-status-done{background:var(--pm-green-soft);color:var(--pm-green)}.pm-overdue{color:var(--pm-red);font-weight:700}
.pm-gantt-head-label{position:sticky;left:0;z-index:8;background:var(--pm-surface2);box-shadow:1px 0 0 var(--pm-line),8px 0 16px rgba(35,57,79,.035)}.pm-gantt-label{position:sticky;left:0;z-index:5;background:var(--pm-surface);box-shadow:1px 0 0 var(--pm-line),8px 0 16px rgba(35,57,79,.025)}.pm-gantt-row:hover .pm-gantt-label{background:#fbfdff}
.pm-project-footnote{display:flex;align-items:center;gap:5px;margin:10px 2px 0;color:var(--pm-muted);font-size:9px}.pm-project-footnote svg{width:13px;height:13px}
.pm-empty-state{display:grid;min-height:390px;place-items:center;align-content:center;gap:10px;padding:32px;border:1px solid var(--pm-line);border-radius:var(--pm-radius);background:var(--pm-surface);text-align:center}.pm-empty-state>svg{width:34px;height:34px;color:var(--pm-blue)}.pm-empty-state h3{margin:0;color:var(--pm-ink);font-size:16px}
.pm-modal-backdrop{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px;background:rgba(20,38,59,.35);backdrop-filter:blur(3px)}.pm-modal{display:flex;width:min(650px,calc(100vw - 28px));max-height:min(90vh,760px);flex-direction:column;border:1px solid var(--pm-line);border-radius:12px;background:var(--pm-surface);box-shadow:0 26px 80px rgba(17,38,62,.25);overflow:hidden}.pm-task-modal{width:min(720px,calc(100vw - 28px))}.pm-modal>header{position:static;inset:auto;z-index:auto;display:flex;width:auto;min-height:66px;flex:0 0 auto;flex-flow:row nowrap;align-items:center;justify-content:space-between;gap:10px;padding:14px 17px;border:0;border-bottom:1px solid var(--pm-line);border-radius:0;background:var(--pm-surface2);box-shadow:none;transform:none;backdrop-filter:none;-webkit-backdrop-filter:none}.pm-modal>header h3{margin:1px 0 0;color:var(--pm-ink);font-size:17px}.pm-modal form{display:flex;min-height:0;flex-direction:column}.pm-form-grid{display:grid;min-height:0;flex:1;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:17px;overflow:auto}.pm-field{display:grid;min-width:0;gap:5px;color:var(--pm-ink2);font-size:10px}.pm-field-wide{grid-column:1/-1}.pm-field :is(input,select,textarea){width:100%;min-height:38px;padding:7px 9px;border:1px solid var(--pm-line2);border-radius:7px;background:var(--pm-surface);color:var(--pm-ink);font:500 11px/1.4 var(--font,inherit);box-sizing:border-box}.pm-field textarea{min-height:68px;resize:vertical}.pm-field :is(input,select,textarea):focus{border-color:var(--pm-blue);outline:2px solid color-mix(in srgb,var(--pm-blue) 18%,transparent)}.pm-event-field{align-content:start}.pm-event-picker-row{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:8px}.pm-event-search{display:flex;min-width:0;align-items:center;gap:6px;padding:0 9px;border:1px solid var(--pm-line2);border-radius:7px;background:var(--pm-surface);color:var(--pm-muted)}.pm-event-search:focus-within{border-color:var(--pm-blue);outline:2px solid color-mix(in srgb,var(--pm-blue) 18%,transparent)}.pm-event-search svg{width:14px;height:14px;flex:0 0 14px}.pm-field .pm-event-search input{min-height:36px;padding:0;border:0;border-radius:0;outline:0;background:transparent}.pm-event-field>small{color:var(--pm-muted);font-size:9px}.pm-readonly-note{display:flex;align-items:center;gap:6px;padding:9px 10px;border:1px solid #cfe1f3;border-radius:7px;background:var(--pm-blue-soft);color:var(--pm-blue);font-size:10px}.pm-readonly-note svg{width:14px;height:14px}.pm-form-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.pm-form-section-head>div{display:grid;gap:3px}.pm-form-section-head b{display:flex;align-items:center;gap:6px;color:var(--pm-ink);font-size:11px}.pm-form-section-head b svg{width:14px;height:14px;color:var(--pm-blue)}.pm-form-section-head small{color:var(--pm-muted);font-size:9px;line-height:1.4}.pm-task-template-panel,.pm-subtask-panel{display:grid;gap:10px;padding:12px;border:1px solid var(--pm-line);border-radius:9px;background:var(--pm-surface2)}.pm-template-save{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(180px,1.2fr);align-items:center;gap:10px}.pm-check-field{display:flex;min-height:38px;align-items:center;gap:7px;color:var(--pm-ink2);font-size:10px;font-weight:650}.pm-check-field input,.pm-subtask-row>input[type="checkbox"]{width:17px;height:17px;margin:0;accent-color:var(--pm-blue)}.pm-template-save>input{width:100%;min-height:38px;padding:7px 9px;border:1px solid var(--pm-line2);border-radius:7px;background:var(--pm-surface);color:var(--pm-ink);font:500 11px var(--font,inherit);box-sizing:border-box}.pm-template-save>input:disabled{background:var(--pm-bg);color:var(--pm-muted);cursor:not-allowed}.pm-template-save>input:focus{border-color:var(--pm-blue);outline:2px solid color-mix(in srgb,var(--pm-blue) 18%,transparent)}.pm-subtask-list{display:grid;gap:7px}.pm-subtask-row{display:grid;grid-template-columns:20px minmax(0,1fr) 28px;align-items:center;gap:8px}.pm-subtask-row>input[type="text"]{width:100%;min-height:36px;padding:6px 8px;border:1px solid var(--pm-line2);border-radius:7px;background:var(--pm-surface);color:var(--pm-ink);font:500 11px var(--font,inherit);box-sizing:border-box}.pm-subtask-row>input[type="text"]:focus{border-color:var(--pm-blue);outline:2px solid color-mix(in srgb,var(--pm-blue) 18%,transparent)}.pm-subtask-row:has(input[type="checkbox"]:checked)>input[type="text"]{color:var(--pm-muted);text-decoration:line-through}.pm-subtask-empty{padding:10px;border:1px dashed var(--pm-line2);border-radius:7px;color:var(--pm-muted);font-size:9px;text-align:center}.pm-modal footer{display:flex;align-items:center;gap:8px;padding:11px 17px;border-top:1px solid var(--pm-line);background:var(--pm-surface)}.pm-modal footer>span{flex:1}.pm-modal footer .pm-button{min-width:82px}
.pm-detail-modal{width:min(720px,calc(100vw - 28px))}.pm-modal-count{margin-left:auto;color:var(--pm-muted);font-size:11px;font-weight:650;white-space:nowrap}.pm-detail-list{min-height:180px;overflow:auto;overscroll-behavior:contain}.pm-detail-item{display:grid;width:100%;min-height:68px;grid-template-columns:38px minmax(0,1fr) auto 18px;align-items:center;gap:10px;padding:10px 17px;border:0;border-bottom:1px solid var(--pm-line);background:var(--pm-surface);color:var(--pm-ink2);font:inherit;text-align:left;cursor:pointer}.pm-detail-item:hover{background:#fbfdff}.pm-detail-item.is-overdue .pm-detail-leading{background:var(--pm-red-soft);color:var(--pm-red)}.pm-detail-leading{display:inline-flex;width:36px;height:36px;align-items:center;justify-content:center;border-radius:9px;background:var(--pm-blue-soft);color:var(--pm-blue)}.pm-detail-leading svg{width:17px;height:17px}.pm-detail-copy{display:grid;min-width:0;gap:4px}.pm-detail-copy b{overflow:hidden;color:var(--pm-ink);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.pm-detail-copy small{overflow:hidden;color:var(--pm-muted);font-size:10px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}.pm-detail-badges{display:flex;align-items:center;justify-content:flex-end;gap:5px}.pm-detail-item>svg{width:16px;height:16px;color:var(--pm-muted)}.pm-detail-empty{display:grid;min-height:220px;place-items:center;align-content:center;gap:10px;color:var(--pm-ink2);font-size:12px}.pm-detail-empty svg{width:30px;height:30px;color:var(--pm-blue)}
.pm-subtask-toggle{display:inline-flex;width:28px;height:28px;min-width:28px;align-items:center;justify-content:center;gap:1px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--pm-muted);font:700 8px var(--font,inherit);cursor:pointer}.pm-subtask-toggle:hover{background:var(--pm-blue-soft);color:var(--pm-blue)}.pm-subtask-toggle:focus-visible{outline:3px solid color-mix(in srgb,var(--pm-blue) 24%,transparent);outline-offset:1px}.pm-subtask-toggle svg{width:13px;height:13px}.pm-subtask-toggle span{min-width:7px;text-align:center}.pm-gantt-subtask-row{min-height:48px;background:var(--pm-surface2)}.pm-gantt-subtask-row .pm-gantt-label{padding-left:26px;background:var(--pm-surface2)}.pm-gantt-subtask-row .pm-gantt-track{min-height:48px}.pm-gantt-subtask-row .pm-gantt-label b{font-size:9px;font-weight:600}.pm-gantt-subtask-row .pm-gantt-label small{font-size:8px}.pm-subtask-branch,.pm-subtask-check{display:inline-flex;width:15px;min-width:15px;align-items:center;justify-content:center;color:var(--pm-muted)}.pm-subtask-branch svg,.pm-subtask-check svg{width:13px;height:13px}.pm-subtask-check.is-done{color:var(--pm-green)}.pm-subtask-bar{height:21px;border-radius:10px;box-shadow:0 2px 5px rgba(43,83,119,.15);font-size:8px;opacity:.9}.pm-legend-dot.subtask{background:var(--pm-muted)}.pm-subtask-row{grid-template-columns:minmax(0,1fr);gap:7px;padding:8px;border:1px solid var(--pm-line);border-radius:10px;background:var(--pm-surface)}.pm-subtask-main{display:grid;grid-template-columns:20px minmax(0,1fr) 28px;align-items:center;gap:8px}.pm-subtask-main>input[type="checkbox"]{width:17px;height:17px;margin:0;accent-color:var(--pm-blue)}.pm-subtask-main>input[type="text"],.pm-subtask-dates input{width:100%;min-width:0;min-height:36px;padding:6px 8px;border:1px solid var(--pm-line2);border-radius:10px;background:var(--pm-surface);color:var(--pm-ink);font:500 11px var(--font,inherit);box-sizing:border-box}.pm-subtask-main>input[type="text"]:focus,.pm-subtask-dates input:focus{border-color:var(--pm-blue);outline:2px solid color-mix(in srgb,var(--pm-blue) 18%,transparent)}.pm-subtask-row:has([data-pm-subtask-done]:checked) .pm-subtask-main>input[type="text"]{color:var(--pm-muted);text-decoration:line-through}.pm-subtask-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-left:28px}.pm-subtask-dates label{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:6px;color:var(--pm-muted);font-size:9px;font-weight:650}
@media(max-width:900px){.pm-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.pm-project-summary{grid-template-columns:1fr}.pm-summary-progress{max-width:460px}.pm-toolbar{align-items:stretch;flex-direction:column}.pm-project-picker select{width:100%;max-width:none}.pm-toolbar-actions{justify-content:flex-end}.pm-filterbar{align-items:stretch}.pm-view-switch{margin-right:0}.pm-search{margin-left:auto}.pm-filterbar>select{flex:1 1 120px}}
@media(max-width:680px){.pm-page{padding-top:2px}.pm-hero{align-items:stretch;flex-direction:column;gap:11px}.pm-hero h1{font-size:22px}.pm-hero-actions{align-items:stretch;justify-content:flex-start;flex-direction:column}.pm-hero-actions .pm-button{width:100%}.pm-live-status{width:max-content}.pm-live-status small{display:none}.pm-kpis{gap:7px}.pm-kpi{padding:11px}.pm-kpi b{font-size:21px}.pm-toolbar{padding:11px}.pm-toolbar-actions{display:grid;grid-template-columns:1fr 40px;justify-content:stretch}.pm-toolbar-actions .pm-button-primary{grid-column:1/-1}.pm-filterbar{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:9px}.pm-view-switch{grid-column:1/-1}.pm-search{grid-column:1/-1;margin-left:0}.pm-filterbar>select{min-width:0;width:100%}.pm-project-summary{padding:14px}.pm-title-row h2{font-size:16px}.pm-summary-meta{align-items:flex-start;flex-wrap:wrap;line-height:1.5}.pm-summary-export-actions{justify-content:flex-start;flex-wrap:wrap}.pm-summary-export-button{flex:1 1 auto;justify-content:center}.pm-gantt{min-width:calc(245px + var(--pm-columns) * var(--pm-column-size))}.pm-gantt.pm-gantt-day{--pm-column-size:48px!important}.pm-gantt-head,.pm-gantt-row{grid-template-columns:245px minmax(0,1fr)}.pm-gantt-head-label,.pm-gantt-label{padding-left:10px}.pm-gantt-legend{align-items:flex-start;flex-wrap:wrap;gap:8px}.pm-legend-hint{width:100%;margin-left:0}.pm-modal-backdrop{padding:0}.pm-modal{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.pm-form-grid{grid-template-columns:1fr;padding:13px}.pm-field-wide{grid-column:auto}.pm-event-picker-row{grid-template-columns:1fr}.pm-detail-item{grid-template-columns:36px minmax(0,1fr) 18px;padding:10px 13px}.pm-detail-badges{display:none}.pm-detail-copy small{white-space:normal}.pm-modal footer{padding:10px 13px}.pm-modal footer .pm-button{flex:1}.pm-modal footer .pm-button-danger{flex:0 0 auto}}
@media(max-width:680px){.pm-filterbar>[data-pm-owner-filter]{grid-column:1/-1}}
@media(max-width:680px){.pm-template-save{grid-template-columns:1fr}.pm-task-template-panel,.pm-subtask-panel{padding:10px}.pm-form-section-head{align-items:flex-start}.pm-form-section-head .pm-button{min-height:34px;padding-inline:9px}.pm-subtask-row{grid-template-columns:minmax(0,1fr)}.pm-subtask-dates{grid-template-columns:1fr;padding-left:28px}.pm-gantt-subtask-row .pm-gantt-label{padding-left:18px}}
@media(prefers-reduced-motion:reduce){.pm-progress-track i{transition:none}}

/* 甘特色块交互与层级色阶 */
.pm-task-bar{cursor:grab;touch-action:none;user-select:none}
.pm-task-bar:active{cursor:grabbing}
.pm-task-bar-label{display:block;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}
.pm-task-bar-handle{position:relative;z-index:2;display:block;flex:0 0 8px;width:8px;min-width:8px;height:100%;margin:0 -5px;border-radius:4px;overflow:visible!important;opacity:0;cursor:ew-resize;transition:opacity .14s ease,background-color .14s ease}
.pm-task-bar-handle:hover,.pm-task-bar-handle:focus-visible{background:rgba(255,255,255,.28);opacity:1}
.pm-task-bar:hover .pm-task-bar-handle,.pm-task-bar:focus-visible .pm-task-bar-handle,.pm-task-bar.is-dragging .pm-task-bar-handle{opacity:.92}
.pm-task-bar.is-dragging{z-index:6;cursor:grabbing;box-shadow:0 5px 12px rgba(43,83,119,.25)}
.pm-task-bar.pm-density-cool,.pm-task-bar.pm-density-warm{background:var(--pm-bar-color)}
.pm-task-bar.is-overdue{background:var(--pm-red)}
.pm-legend-swatch{display:inline-block;width:16px;height:8px;border-radius:4px;background:var(--pm-bar-color)}
.pm-legend-swatch.cool{--pm-bar-color:#4d8fc4}
.pm-legend-swatch.warm{--pm-bar-color:#c87c3d}
@media(prefers-reduced-motion:reduce){.pm-task-bar-handle{transition:none}}

/* 一级任务与二级子任务：用行、编号和甘特条三层信号拉开层级 */
.pm-gantt-parent-row{min-height:64px;border-top:1px solid var(--pm-line2);background:var(--pm-surface)}
.pm-gantt-parent-row .pm-gantt-label{background:color-mix(in srgb,var(--pm-blue-soft) 34%,var(--pm-surface));box-shadow:inset 3px 0 var(--pm-blue),1px 0 0 var(--pm-line),8px 0 16px rgba(35,57,79,.035)}
.pm-gantt-parent-row:hover .pm-gantt-label{background:color-mix(in srgb,var(--pm-blue-soft) 52%,var(--pm-surface))}
.pm-gantt-parent-row .pm-gantt-label b{color:var(--pm-ink);font-size:11px;font-weight:760}
.pm-gantt-parent-row .pm-gantt-label small{font-size:8.5px}
.pm-level-marker{display:inline-flex;width:17px;height:17px;min-width:17px;align-items:center;justify-content:center;border-radius:5px;font-size:8px;font-weight:800;line-height:1}
.pm-level-parent{background:var(--pm-blue);color:#fff;box-shadow:0 2px 5px rgba(39,126,215,.2)}
.pm-level-child{background:#e5ebf1;color:var(--pm-muted);font-size:7px}
.pm-gantt-parent-row .pm-parent-bar{height:29px;border-radius:8px;border:1px solid rgba(255,255,255,.32);font-size:9.5px;font-weight:750;box-shadow:0 4px 9px rgba(43,83,119,.2)}
.pm-gantt-parent-row.is-drop-target .pm-gantt-label{background:color-mix(in srgb,var(--pm-green-soft) 76%,var(--pm-surface));box-shadow:inset 4px 0 var(--pm-green),1px 0 0 var(--pm-line),8px 0 16px rgba(35,57,79,.045)}
.pm-gantt-parent-row.is-drop-target .pm-gantt-track{background-color:color-mix(in srgb,var(--pm-green-soft) 44%,var(--pm-surface))}
.pm-gantt-subtask-row{min-height:50px;background:#f7f9fb;border-top:1px dashed #e1e7ed}
.pm-gantt-subtask-row .pm-gantt-label{position:sticky;padding-left:40px;background:#f7f9fb;box-shadow:inset 1px 0 #dce5ed,1px 0 0 var(--pm-line),8px 0 16px rgba(35,57,79,.018)}
.pm-gantt-subtask-row .pm-gantt-label::before{position:absolute;top:-1px;bottom:-1px;left:31px;width:1px;background:#d4dee8;content:"";pointer-events:none}
.pm-gantt-subtask-row:hover .pm-gantt-label{background:#eef4f8}
.pm-gantt-subtask-row .pm-gantt-label b{color:var(--pm-ink2);font-size:9px;font-weight:620}
.pm-gantt-subtask-row .pm-gantt-label small{font-size:8px;color:var(--pm-muted)}
.pm-gantt-subtask-row .pm-subtask-bar{height:18px;border-radius:5px;opacity:.82;box-shadow:0 1px 3px rgba(43,83,119,.12);font-size:8px;font-weight:620}
.pm-level-swatch{display:inline-block;width:16px;height:9px;border-radius:3px}
.pm-level-swatch.parent{background:var(--pm-blue);box-shadow:inset 3px 0 rgba(255,255,255,.45)}
.pm-level-swatch.child{background:#d4dee8;border:1px solid #b9c8d5}
.pm-legend-holiday{display:inline-block;width:16px;height:9px;border-radius:3px;background:#d8b2ed;border:1px solid #b98ad7}
@media(max-width:680px){.pm-gantt-subtask-row .pm-gantt-label{padding-left:31px}.pm-gantt-subtask-row .pm-gantt-label::before{left:23px}.pm-gantt-parent-row .pm-gantt-label b{font-size:10px}}

.pm-gantt-head-label{display:grid;align-content:center;gap:6px;padding:7px 10px 7px 14px}
.pm-gantt-head-label-main{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:7px;color:var(--pm-muted);font-size:10px;font-weight:750}
.pm-gantt-head-label-main span{white-space:nowrap}
.pm-gantt-head-label-main small{color:var(--pm-muted);font-size:8px;font-weight:600;white-space:nowrap}
.pm-gantt-bulk-actions{display:flex;min-width:0;align-items:center;gap:5px}
.pm-gantt-bulk-button{display:inline-flex;min-height:24px;align-items:center;justify-content:center;gap:4px;padding:0 7px;border:1px solid var(--pm-line2);border-radius:6px;background:var(--pm-surface);color:var(--pm-ink2);font:650 8px var(--font,inherit);cursor:pointer;white-space:nowrap}
.pm-gantt-bulk-button:hover:not(:disabled){border-color:#a8c6e5;background:var(--pm-blue-soft);color:var(--pm-blue)}
.pm-gantt-bulk-button:focus-visible{outline:3px solid color-mix(in srgb,var(--pm-blue) 24%,transparent);outline-offset:1px}
.pm-gantt-bulk-button:disabled{border-color:var(--pm-line);background:var(--pm-bg);color:#b5bfca;cursor:not-allowed;opacity:.75}
.pm-gantt-bulk-button svg{width:12px;height:12px}
@media(max-width:680px){.pm-gantt-head-label{padding:7px 8px}.pm-gantt-head-label-main{gap:4px}.pm-gantt-head-label-main small{font-size:7px}.pm-gantt-bulk-actions{gap:4px}.pm-gantt-bulk-button{flex:1 1 0;padding-inline:4px;font-size:7px}.pm-gantt-bulk-button svg{width:11px;height:11px}}

/* 日视图周末单独着色，头部标签与任务轨道保持同一条竖向区间 */
.pm-gantt-head-track,.pm-gantt-track{isolation:isolate}
.pm-gantt-period{position:relative;z-index:1}
.pm-gantt-period.is-weekend{background:rgba(247,183,92,.12);color:#9a6b2e}
.pm-gantt-period.is-weekend small{color:#a77b45;font-weight:700}
.pm-gantt-period.is-saturday{background:rgba(95,157,205,.1);color:#3f719b}
.pm-gantt-period.is-saturday small{color:#5a86aa}
.pm-gantt-period.is-sunday{background:rgba(247,183,92,.16);color:#9a6b2e}
.pm-gantt-period.is-holiday{background:#f3e5fb;color:#8051a8;font-weight:750}
.pm-gantt-period.is-holiday small{color:#986bc0;font-weight:750}
.pm-gantt-weekend-band{position:absolute;top:0;bottom:0;z-index:0;border-left:1px solid rgba(123,145,165,.16);border-right:1px solid rgba(123,145,165,.16);background:rgba(247,183,92,.08);pointer-events:none}
.pm-gantt-weekend-band.is-saturday{background:rgba(95,157,205,.065)}
.pm-gantt-weekend-band.is-sunday{background:rgba(247,183,92,.105)}
.pm-gantt-weekend-band.is-holiday{background:rgba(190,132,220,.16);border-left-color:rgba(133,81,168,.24);border-right-color:rgba(133,81,168,.24)}
