:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light;color:#1f2937;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#3b82f6;text-decoration:inherit}a:hover{color:#2563eb}body{margin:0;padding:0;min-width:320px;min-height:100vh}*{box-sizing:border-box}.auth-page{width:100%;min-height:100vh;display:flex;align-items:center;justify-content:center;background-color:#f9fafb;padding:24px}.auth-card{width:100%;max-width:380px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 1px 3px #0000000d;padding:32px;display:flex;flex-direction:column;gap:16px}.auth-card h1{margin:0;font-size:1.5rem;color:#1f2937;font-weight:700;text-align:center}.auth-card .auth-subtitle{margin:-8px 0 0;font-size:.9rem;color:#6b7280;text-align:center}.auth-form{display:flex;flex-direction:column;gap:16px}.auth-switch{margin:0;font-size:.9rem;color:#6b7280;text-align:center}.auth-switch a{color:#3b82f6;font-weight:600;text-decoration:none}.auth-switch a:hover{text-decoration:underline}.plans-page{width:100%;min-height:100vh;display:flex;flex-direction:column;background-color:#f9fafb}.plans-page-main{flex:1;width:100%;max-width:720px;margin:0 auto;padding:24px;display:flex;flex-direction:column;gap:16px}.plan-cards{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}.plan-card{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:16px 20px;box-shadow:0 1px 3px #0000000d;cursor:pointer;transition:box-shadow .2s,border-color .2s}.plan-card:hover{box-shadow:0 4px 12px #0000001a;border-color:#d1d5db}.plan-card-name{flex:1;font-size:1.05rem;font-weight:600;color:#1f2937;overflow-wrap:anywhere}.plan-card-meta{flex-shrink:0;font-size:.85rem;color:#6b7280}.role-badge{flex-shrink:0;font-size:.75rem;font-weight:600;padding:2px 8px;border-radius:999px;text-transform:uppercase;letter-spacing:.03em}.role-badge-owner{background-color:#dbeafe;color:#1d4ed8}.role-badge-editor{background-color:#f3f4f6;color:#4b5563}.plans-empty{color:#6b7280;text-align:center;padding:48px 0}.new-plan-form{display:flex;gap:10px}.new-plan-form input{flex:1;padding:10px 12px;border:1px solid #d1d5db;border-radius:6px;font-family:inherit;font-size:.95rem}.new-plan-form input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.header-user{display:flex;align-items:center;gap:12px;font-size:.9rem;color:#6b7280}.btn-link{background:none;border:none;color:#3b82f6;font-size:.9rem;font-weight:500;cursor:pointer;padding:4px;font-family:inherit;text-decoration:none}.btn-link:hover{text-decoration:underline}.page-error{padding:10px 12px;background-color:#fee2e2;color:#991b1b;border:1px solid #fecaca;border-radius:6px;font-size:.9rem}.modal-overlay{position:fixed;inset:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal-content{background:#fff;border-radius:8px;box-shadow:0 4px 20px #00000026;max-width:500px;width:90%;max-height:90vh;overflow-y:auto;animation:slideUp .3s ease-out}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #e5e7eb}.modal-header h2{margin:0;font-size:1.5rem;color:#1f2937}.modal-close-btn{background:none;border:none;font-size:1.5rem;color:#6b7280;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background-color .2s,color .2s}.modal-close-btn:hover{background-color:#f3f4f6;color:#1f2937}.modal-body{padding:20px}.confirm-overlay{z-index:1100}.confirm-dialog{display:flex;flex-direction:column;gap:16px}.confirm-message{color:#374151;font-size:.95rem;line-height:1.5}.confirm-message strong{color:#1f2937}.confirm-consequence{display:block;margin-top:8px;color:#6b7280;font-size:.875rem}.account-page{width:100%;min-height:100vh;display:flex;flex-direction:column;background-color:#f9fafb}.account-main{flex:1;width:100%;max-width:760px;margin:0 auto;padding:24px;display:flex;flex-direction:column;gap:20px}.account-breadcrumb a{color:#6b7280;font-size:.9rem;text-decoration:none}.account-breadcrumb a:hover{color:#3b82f6;text-decoration:underline}.app-header-home{color:inherit;text-decoration:none}.account-section{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:20px 24px;box-shadow:0 1px 3px #0000000d;display:flex;flex-direction:column;gap:14px}.account-section h2{margin:0;font-size:1.05rem;font-weight:600;color:#1f2937}.account-intro{margin:0;font-size:.9rem;line-height:1.55;color:#4b5563}.client-setup{display:flex;flex-direction:column;gap:10px;padding-top:16px;border-top:1px solid #f3f4f6}.client-setup h3{margin:0;font-size:.9rem;font-weight:600;color:#1f2937}.account-intro a{color:#3b82f6}.account-intro code{background-color:#f3f4f6;border-radius:4px;padding:1px 5px;font-size:.85em}.account-field{display:flex;flex-direction:column;gap:6px}.account-field label{font-size:.8rem;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.03em}.account-copyrow{display:flex;align-items:flex-start;gap:8px}.account-code{flex:1;min-width:0;background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;padding:9px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.82rem;color:#1f2937;overflow-wrap:anywhere}.account-snippet{white-space:pre-wrap;line-height:1.5}.btn-copy{flex-shrink:0;min-width:92px}.token-form{display:flex;gap:10px}.token-form input{flex:1;min-width:0;padding:10px 12px;border:1px solid #d1d5db;border-radius:6px;font-family:inherit;font-size:.95rem}.token-form input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.token-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}.token-row{display:flex;flex-direction:column;gap:8px;padding:14px 16px;border:1px solid #e5e7eb;border-radius:8px;background-color:#fcfcfd}.token-head{display:flex;align-items:baseline;gap:12px}.token-name{font-weight:600;color:#1f2937;overflow-wrap:anywhere}.token-meta{flex:1;font-size:.8rem;color:#6b7280}.token-secret{letter-spacing:.02em}.btn-danger-link{color:#dc2626}.account-empty{color:#6b7280;text-align:center;padding:28px 0;margin:0}@media(max-width:640px){.token-form,.account-copyrow,.token-head{flex-direction:column;align-items:stretch}.btn-copy{min-width:0}}.editable-title{display:flex;align-items:center;min-width:0}.editable-title-text{font:inherit;color:inherit;background:none;border:1px solid transparent;border-radius:6px;padding:2px 6px;margin-left:-6px;text-align:left;cursor:text;overflow-wrap:anywhere;transition:background-color .15s,border-color .15s}.editable-title-text:hover{background-color:#f3f4f6;border-color:#e5e7eb}.editable-title-input{font:inherit;color:inherit;width:100%;min-width:6ch;padding:2px 6px;margin-left:-6px;background:#fff;border:1px solid #3b82f6;border-radius:6px}.editable-title-input:focus{outline:none;box-shadow:0 0 0 3px #3b82f61a}.editable-title-input:disabled{opacity:.6}.editable-title-error{margin:4px 0 0;font-size:.8rem;color:#991b1b}.react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:-webkit-grab;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;-webkit-animation:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:-webkit-grab;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid white;border-radius:100%}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@-webkit-keyframes dashdraw{0%{stroke-dashoffset:10}}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:#3367d9;border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.project-node{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:16px;width:280px;box-shadow:0 1px 3px #0000000d;display:flex;flex-direction:column;gap:12px;cursor:pointer;transition:box-shadow .2s,border-color .2s}.project-node:hover{box-shadow:0 4px 12px #0000001a;border-color:#d1d5db}.project-node-header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.project-node-title{margin:0;font-size:1.05rem;font-weight:600;color:#1f2937;flex:1;word-break:break-word}.project-node-edit-btn{background:none;border:none;font-size:1rem;cursor:pointer;padding:4px;border-radius:4px;transition:background-color .2s;flex-shrink:0}.project-node-edit-btn:hover{background-color:#f3f4f6}.project-node-progress{display:flex;flex-direction:column;gap:6px}.project-node-progress-bar{height:6px;border-radius:999px;background-color:#f3f4f6;overflow:hidden}.project-node-progress-fill{height:100%;background-color:#22c55e;border-radius:999px;transition:width .2s}.project-node-progress-label{font-size:.8rem;color:#6b7280}.project-node-state{display:flex;gap:6px;flex-wrap:wrap}.project-chip{font-size:.72rem;font-weight:600;padding:3px 10px;border-radius:999px;border:1px solid transparent;white-space:nowrap}.project-chip-ready{background-color:#dbeafe;color:#1d4ed8;border-color:#bfdbfe}.project-chip-blocked{background-color:#fef3c7;color:#b45309;border-color:#fde68a}.project-chip-done{background-color:#dcfce7;color:#166534;border-color:#bbf7d0}.project-chip-idle{background-color:#f3f4f6;color:#4b5563;border-color:#e5e7eb}.project-chip-materials{background-color:#f5f3ff;color:#6d28d9;border-color:#ddd6fe}.project-node-ready{border-color:#bfdbfe}.project-node-done{background-color:#f0fdf4;border-color:#bbf7d0}.project-node-done .project-node-title{color:#166534}.project-node-done .project-node-progress-label{opacity:.7}.task-graph-container{width:100%;height:100%}.loading-text,.empty-state-text{color:#6b7280;font-size:1rem;text-align:center;padding-top:48px}.task-graph-container .react-flow__container{width:100%;height:100%}.task-graph-container .react-flow__edge-smoothstep{stroke:#3b82f6;stroke-width:2}.task-graph-container .react-flow__handle{background:#3b82f6;border:2px solid white}.members-panel{display:flex;flex-direction:column;gap:14px}.members-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.member-row{display:flex;align-items:center;gap:10px;padding:10px 12px;background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:6px}.member-info{flex:1;display:flex;flex-direction:column;gap:1px;min-width:0}.member-name{font-weight:600;color:#1f2937;font-size:.9rem}.member-email{font-size:.8rem;color:#6b7280;overflow-wrap:anywhere}.member-remove{background:none;border:none;color:#9ca3af;font-size:.8rem;cursor:pointer;padding:4px;font-family:inherit;flex-shrink:0}.member-remove:hover{color:#dc2626;text-decoration:underline}.member-pending{font-size:.75rem;color:#b45309;background-color:#fef3c7;border-radius:4px;padding:1px 6px;flex-shrink:0}.invite-form{display:flex;gap:8px}.invite-form input{flex:1;padding:8px 10px;border:1px solid #d1d5db;border-radius:6px;font-family:inherit;font-size:.9rem}.invite-form input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.invite-hint{margin:0;font-size:.8rem;color:#6b7280}.invite-success{padding:8px 12px;background-color:#dcfce7;color:#166534;border:1px solid #bbf7d0;border-radius:6px;font-size:.9rem}.ready-sidebar{width:260px;flex-shrink:0;background-color:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:16px;overflow-y:auto;align-self:stretch}.ready-sidebar-title{margin:0;font-size:1.1rem;font-weight:700;color:#1f2937}.ready-sidebar-subtitle{margin:4px 0 12px;font-size:.8rem;color:#6b7280}.ready-sidebar-empty{font-size:.9rem;color:#6b7280;margin:0}.ready-sidebar-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.ready-sidebar-item{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 8px;padding:10px 12px;background-color:#f0fdf4;border:1px solid #bbf7d0;border-radius:6px;font-size:.9rem}.ready-sidebar-item-title{font-weight:600;color:#166534;overflow-wrap:anywhere}.ready-sidebar-item-project{flex-basis:100%;font-size:.75rem;color:#15803d;opacity:.85;overflow-wrap:anywhere}.ready-sidebar-item-duration{flex-shrink:0;font-size:.8rem;color:#16a34a;white-space:nowrap}@media(max-width:640px){.ready-sidebar{width:100%;max-height:220px}}.new-project-form{display:flex;flex-direction:column;gap:12px}.new-project-form input{padding:10px 12px;border:1px solid #d1d5db;border-radius:6px;font-family:inherit;font-size:.95rem}.new-project-form input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.page-title-block{min-width:0}.page-breadcrumb{display:flex;align-items:baseline;gap:6px;font-size:.8rem;color:#6b7280;margin:0 0 2px}.page-breadcrumb a{color:#6b7280;text-decoration:none;overflow-wrap:anywhere}.page-breadcrumb a:hover{color:#1f2937;text-decoration:underline}.materials-editor{display:flex;flex-direction:column;gap:10px}.materials-rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;max-height:320px;overflow-y:auto}.materials-row{display:flex;flex-direction:column;gap:6px;padding:8px;border:1px solid #e5e7eb;border-radius:8px;background-color:#f9fafb}.materials-row-main{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.materials-row input,.materials-row select{padding:7px 9px;border:1px solid #d1d5db;border-radius:6px;font-family:inherit;font-size:.875rem;color:#1f2937;background-color:#fff;min-width:0}.materials-row input:focus,.materials-row select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.materials-name{flex:1 1 100%;font-weight:500}.materials-qty{flex:0 0 60px;text-align:right}.materials-unit{flex:0 0 72px}.materials-cost{flex:0 0 78px;position:relative;display:flex;align-items:center}.materials-cost-prefix{position:absolute;left:9px;font-size:.875rem;color:#9ca3af;pointer-events:none}.materials-cost input{width:100%;padding-left:20px;text-align:right}.materials-state{flex:1 1 auto;cursor:pointer;font-weight:600;font-size:.75rem}.materials-state-needed{color:#b45309;background-color:#fffbeb;border-color:#fde68a}.materials-state-ordered{color:#1d4ed8;background-color:#eff6ff;border-color:#bfdbfe}.materials-state-have{color:#15803d;background-color:#f0fdf4;border-color:#bbf7d0}.materials-icon-btn{flex:0 0 auto;width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:none;border:none;border-radius:6px;color:#9ca3af;font-size:1rem;line-height:1;cursor:pointer;font-family:inherit}.materials-icon-btn:hover:not(:disabled){background-color:#f3f4f6;color:#374151}.materials-remove{font-size:1.25rem}.materials-remove:hover:not(:disabled){background-color:#fef2f2;color:#dc2626}.materials-row-extra{display:flex;gap:6px}.materials-row-extra input{flex:1}.materials-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.materials-add{padding:6px 12px;font-size:.875rem}.materials-total{font-size:.8125rem;color:#6b7280}.materials-total strong{color:#374151}.materials-empty{margin:0;color:#6b7280;font-size:.9rem}@media(max-width:560px){.materials-row-extra{flex-direction:column}}.task-form{display:flex;flex-direction:column;gap:16px}.form-group{display:flex;flex-direction:column;gap:6px}.form-group label{font-weight:600;color:#374151;font-size:.95rem}.form-group input,.form-group textarea,.form-group select{padding:10px 12px;border:1px solid #d1d5db;border-radius:6px;font-family:inherit;font-size:.95rem;transition:border-color .2s,box-shadow .2s}.form-group input:focus,.form-group textarea:focus,.form-group select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.form-group textarea{resize:vertical;min-height:100px}.form-group input:disabled,.form-group textarea:disabled,.form-group select:disabled{background-color:#f9fafb;color:#9ca3af;cursor:not-allowed}.duration-input-group{display:grid;grid-template-columns:1fr 120px;gap:10px}@media(max-width:480px){.duration-input-group{grid-template-columns:1fr 100px}}.form-hint{color:#6b7280;font-size:.8rem;margin:-2px 0 6px}.checkbox-direction{color:#9ca3af;font-style:italic}.dependency-blocked{opacity:.55;cursor:not-allowed}.checkbox-cycle-hint{margin-left:6px;font-size:.75rem;color:#b45309;background-color:#fef3c7;border-radius:4px;padding:1px 6px;white-space:nowrap}.no-tasks-text{color:#6b7280;font-size:.9rem;margin:0;padding:8px 0}.dependencies-list{display:flex;flex-direction:column;gap:10px;padding:10px;background-color:#f9fafb;border-radius:6px;border:1px solid #e5e7eb;max-height:200px;overflow-y:auto}.dependency-group{display:flex;flex-direction:column;gap:2px}.dependency-group+.dependency-group{padding-top:8px;border-top:1px solid #e5e7eb}.dependency-group-label{margin:0 0 2px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#6b7280;overflow-wrap:anywhere}.dependency-group-here{font-weight:500;text-transform:none;letter-spacing:normal;color:#9ca3af}.dependency-checkbox{display:flex;align-items:center;gap:8px;cursor:pointer;padding:6px 4px;border-radius:4px;transition:background-color .2s}.dependency-checkbox:hover{background-color:#eff6ff}.dependency-checkbox input[type=checkbox]{cursor:pointer;margin:0;flex-shrink:0}.dependency-checkbox input[type=checkbox]:disabled{cursor:not-allowed}.checkbox-label{flex:1;color:#374151;font-size:.9rem;display:flex;align-items:center;gap:6px}.checkbox-duration{color:#9ca3af;font-size:.8rem}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media(max-width:480px){.form-row{grid-template-columns:1fr}}.form-error{padding:10px 12px;background-color:#fee2e2;color:#991b1b;border:1px solid #fecaca;border-radius:6px;font-size:.9rem}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:8px}.btn-secondary{background-color:#e5e7eb;color:#374151}.btn-secondary:hover:not(:disabled){background-color:#d1d5db}.btn-danger{background-color:#dc2626;color:#fff}.btn-danger:hover:not(:disabled){background-color:#b91c1c;box-shadow:0 2px 8px #dc26264d}.form-actions-lead{margin-right:auto}.task-node{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:16px;width:320px;box-shadow:0 1px 3px #0000000d;display:flex;flex-direction:column;gap:10px}.task-node:hover{box-shadow:0 4px 12px #0000001a;border-color:#d1d5db}.task-node-header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.task-node-title{margin:0;font-size:1rem;font-weight:600;color:#1f2937;flex:1;word-break:break-word}.task-node-actions{display:flex;gap:4px;align-items:center;flex-shrink:0}.task-node-edit-btn{background:none;border:none;font-size:1.1rem;cursor:pointer;padding:4px;border-radius:4px;transition:background-color .2s;flex-shrink:0}.task-node-edit-btn:hover{background-color:#f3f4f6}.status-chip{border:1px solid transparent;border-radius:999px;font-size:.72rem;font-weight:600;padding:3px 22px 3px 10px;cursor:pointer;font-family:inherit;white-space:nowrap;transition:filter .15s;appearance:none;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:right 10px center,right 6px center;background-size:4px 4px,4px 4px;background-repeat:no-repeat}.status-chip:focus-visible{outline:2px solid #3b82f6;outline-offset:1px}.status-chip option{background-color:#fff;color:#1f2937}.status-chip:hover{filter:brightness(.95)}.status-chip-open{background-color:#f3f4f6;color:#4b5563;border-color:#e5e7eb}.status-chip-in-progress{background-color:#fef3c7;color:#b45309;border-color:#fde68a}.status-chip-done{background-color:#dcfce7;color:#166534;border-color:#bbf7d0}.task-node-in-progress{border-color:#fde68a;background-color:#fffbeb}.task-node-done{background-color:#f0fdf4;border-color:#bbf7d0}.task-node-done .task-node-title{color:#166534;text-decoration:line-through}.task-node-done .task-node-description,.task-node-done .task-node-meta{opacity:.6}.task-node-description{margin:0;color:#4b5563;font-size:.85rem;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.task-node-external-blockers{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}.external-blocker{display:flex;align-items:baseline;gap:6px;font-size:.78rem;line-height:1.35;padding:4px 8px;border-radius:6px;background-color:#fef3c7;border:1px solid #fde68a;color:#92400e}.external-blocker-done{background-color:#dcfce7;border-color:#bbf7d0;color:#166534}.external-blocker-arrow{flex-shrink:0}.external-blocker-text{overflow-wrap:anywhere}.external-blocker-project{opacity:.75}.task-node-done .task-node-external-blockers{opacity:.6}.task-node-meta{display:flex;flex-direction:column;gap:6px;padding-top:8px;border-top:1px solid #f3f4f6;font-size:.8rem}.meta-item{display:flex;justify-content:space-between;align-items:center}.meta-label{color:#6b7280;font-weight:500}.meta-value{color:#1f2937;font-weight:600;background-color:#f3f4f6;padding:2px 6px;border-radius:3px}.meta-value-warn{color:#b45309;background-color:#fffbeb}.task-notes{margin-top:20px;padding-top:16px;border-top:1px solid #e5e7eb;display:flex;flex-direction:column;gap:12px}.task-notes-title{margin:0;font-size:1rem;font-weight:600;color:#374151}.task-notes-empty{margin:0;color:#6b7280;font-size:.9rem}.task-notes-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;max-height:240px;overflow-y:auto}.task-note{background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}.task-note-meta{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:.75rem;color:#6b7280}.task-note-author{font-weight:600;color:#374151}.task-note-content{margin:0;font-size:.9rem;color:#1f2937;white-space:pre-wrap;overflow-wrap:anywhere}.task-note-delete{background:none;border:none;color:#9ca3af;font-size:.75rem;cursor:pointer;padding:0;font-family:inherit}.task-note-delete:hover{color:#dc2626;text-decoration:underline}.task-note-form{display:flex;gap:8px;align-items:flex-start}.task-note-form textarea{flex:1;padding:8px 10px;border:1px solid #d1d5db;border-radius:6px;font-family:inherit;font-size:.9rem;resize:vertical;min-height:38px}.task-note-form textarea:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.project-page-title{display:flex;align-items:center;gap:12px;min-width:0}.project-page-title h1{margin:0;font-size:1.875rem;color:#1f2937;font-weight:700;overflow-wrap:anywhere}.back-link{color:#6b7280;text-decoration:none;font-size:1.4rem;line-height:1;padding:4px;border-radius:4px;flex-shrink:0}.back-link:hover{background-color:#f3f4f6;color:#1f2937}.header-actions{display:flex;align-items:center;gap:10px}.project-page-error{margin:24px}.materials-page-main{flex:1;padding:24px;max-width:900px;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.materials-toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding-bottom:12px;border-bottom:1px solid #e5e7eb}.materials-filter{display:flex;align-items:center;gap:8px;font-size:.875rem;color:#6b7280}.materials-filter select{padding:6px 10px;border:1px solid #d1d5db;border-radius:6px;font-family:inherit;font-size:.875rem;color:#1f2937;background-color:#fff;cursor:pointer}.materials-toggle{display:flex;align-items:center;gap:6px;font-size:.875rem;color:#6b7280;cursor:pointer}.materials-summary{margin:0 0 0 auto;font-size:.875rem;color:#6b7280}.materials-summary strong{color:#1f2937}.shopping-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.shopping-group{border:1px solid #e5e7eb;border-radius:8px;padding:12px 14px;background-color:#fff;display:flex;flex-direction:column;gap:8px}.shopping-group-done{background-color:#f9fafb;border-color:#e5e7eb}.shopping-group-done .shopping-name{text-decoration:line-through;color:#9ca3af}.shopping-group-main{display:flex;align-items:center;gap:12px}.shopping-check{flex:0 0 auto;width:18px;height:18px;cursor:pointer;accent-color:#16a34a}.shopping-qty{flex:0 0 80px;font-variant-numeric:tabular-nums;font-weight:600;font-size:.9375rem;color:#1f2937}.shopping-name{flex:1 1 auto;font-size:.9375rem;color:#1f2937;overflow-wrap:anywhere}.shopping-state{flex:0 0 auto;padding:2px 8px;border-radius:999px;font-size:.6875rem;font-weight:600;text-transform:uppercase;letter-spacing:.02em}.shopping-state-needed{color:#b45309;background-color:#fffbeb}.shopping-state-ordered{color:#1d4ed8;background-color:#eff6ff}.shopping-state-have{color:#15803d;background-color:#f0fdf4}.shopping-cost{flex:0 0 auto;font-variant-numeric:tabular-nums;font-size:.875rem;color:#374151}.shopping-expand{flex:0 0 auto;background:none;border:none;padding:2px 4px;font-family:inherit;font-size:.75rem;color:#6b7280;cursor:pointer;white-space:nowrap}.shopping-expand:hover{color:#2563eb;text-decoration:underline}.shopping-split{margin:0 0 0 30px;font-size:.8125rem;color:#b45309}.shopping-sources{list-style:none;margin:0 0 0 30px;padding:8px 0 0;border-top:1px dashed #e5e7eb;display:flex;flex-direction:column;gap:6px}.shopping-source{display:flex;align-items:center;gap:10px;font-size:.8125rem;color:#6b7280}.shopping-source-where{flex:1 1 auto;overflow-wrap:anywhere}.shopping-source-qty{flex:0 0 auto;font-variant-numeric:tabular-nums;color:#374151}.shopping-source-state{flex:0 0 auto;padding:3px 6px;border:1px solid #d1d5db;border-radius:6px;font-family:inherit;font-size:.75rem;font-weight:600;background-color:#fff;cursor:pointer}.shopping-source-link{flex:0 0 auto;color:#2563eb;text-decoration:none}.shopping-source-link:hover{text-decoration:underline}.shopping-source-notes{flex:0 0 100%;padding-left:0;color:#9ca3af;font-style:italic}@media(max-width:640px){.shopping-group-main{flex-wrap:wrap}.shopping-name{flex:1 1 60%}.materials-summary{margin-left:0}}.timeline-main{flex:1;display:flex;flex-direction:column;gap:16px;padding:24px;min-height:0}.timeline-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:20px;padding:12px 16px;background-color:#fff;border:1px solid #e5e7eb;border-radius:8px}.timeline-control,.timeline-toggle{display:flex;align-items:center;gap:8px;font-size:.85rem;color:#4b5563}.timeline-control input,.timeline-control select{padding:6px 8px;border:1px solid #d1d5db;border-radius:6px;background-color:#fff;font-family:inherit;font-size:.85rem;color:#1f2937}.timeline-control select{cursor:pointer}.timeline-control input:focus,.timeline-control select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.timeline-toggle input{width:16px;height:16px;cursor:pointer}.timeline-summary{margin:0 0 0 auto;font-size:.85rem;color:#4b5563}.timeline-summary strong{color:#1f2937}.timeline-warning{padding:12px 16px;background-color:#fffbeb;border:1px solid #fde68a;border-radius:8px;color:#92400e;font-size:.85rem}.timeline-empty{margin:0;padding:40px 16px;text-align:center;color:#6b7280;font-size:.95rem}.timeline-scroll{flex:1;min-height:0;overflow:auto;background-color:#fff;border:1px solid #e5e7eb;border-radius:8px}.timeline-body{--timeline-label-w: 240px;position:relative}.timeline-axis,.timeline-row{display:grid;grid-template-columns:var(--timeline-label-w) 1fr;align-items:stretch}.timeline-axis{position:sticky;top:0;z-index:3;background-color:#fff;border-bottom:1px solid #e5e7eb}.timeline-label{position:sticky;left:0;z-index:2;display:flex;align-items:center;min-width:0;padding:8px 12px;background-color:#fff;border-right:1px solid #e5e7eb}.timeline-axis-label{z-index:4;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#6b7280}.timeline-axis-ticks{position:relative;height:34px}.timeline-axis-tick{position:absolute;top:10px;padding-left:5px;font-size:.72rem;color:#9ca3af;white-space:nowrap}.timeline-axis-tick-major{color:#4b5563;font-weight:600}.timeline-rows{position:relative}.timeline-gridlines{position:absolute;top:0;bottom:0;left:var(--timeline-label-w);right:0;pointer-events:none;z-index:0}.timeline-gridline{position:absolute;top:0;bottom:0;width:1px;background-color:#f3f4f6}.timeline-gridline-major{background-color:#e5e7eb}.timeline-now{position:absolute;top:0;bottom:0;width:2px;background-color:#3b82f6;opacity:.7}.timeline-now span{position:absolute;top:2px;left:3px;padding:1px 4px;background-color:#ffffffe6;border-radius:3px;font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#3b82f6}.timeline-row{border-bottom:1px solid #f3f4f6}.timeline-group:last-child .timeline-row:last-child{border-bottom:none}.timeline-track{position:relative;height:34px;z-index:1}.timeline-row-group .timeline-label,.timeline-row-group{background-color:#f9fafb}.timeline-row-group .timeline-track{height:30px}.timeline-group-toggle{display:flex;align-items:center;gap:8px;width:100%;min-width:0;padding:0;background:none;border:none;font-family:inherit;font-size:.85rem;font-weight:700;color:#1f2937;cursor:pointer;text-align:left}.timeline-caret{flex-shrink:0;color:#9ca3af;font-size:.7rem}.timeline-group-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.timeline-group-count{flex-shrink:0;margin-left:auto;padding:1px 7px;background-color:#e5e7eb;border-radius:10px;font-size:.7rem;font-weight:600;color:#4b5563}.timeline-span{position:absolute;top:12px;height:6px;min-width:4px;background-color:#9ca3af;border-radius:3px;opacity:.45}.timeline-label-task{padding-left:32px}.timeline-task-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.85rem;color:#374151}.timeline-bar{position:absolute;top:6px;height:22px;min-width:6px;padding:0 6px;border:1px solid;border-radius:4px;font-family:inherit;font-size:.72rem;line-height:20px;text-align:left;cursor:pointer;overflow:hidden;box-sizing:border-box;transition:filter .15s}.timeline-bar:hover{filter:brightness(.95)}.timeline-bar:focus-visible{outline:2px solid #3b82f6;outline-offset:1px}.timeline-bar-text{display:block;overflow:hidden;white-space:nowrap}.timeline-bar-open{background-color:#d1d5db;border-color:#9ca3af;color:#374151}.timeline-bar-progress{background-color:#fde68a;border-color:#f59e0b;color:#92400e}.timeline-bar-done{background-color:#bbf7d0;border-color:#22c55e;color:#166534}.timeline-bar-critical{border-color:#dc2626;box-shadow:0 0 0 1px #dc2626}.timeline-slack{position:absolute;top:13px;height:8px;border-radius:4px;pointer-events:none;background:repeating-linear-gradient(135deg,#e5e7eb,#e5e7eb 3px,transparent 3px,transparent 6px)}.timeline-footnotes{display:flex;flex-direction:column;gap:6px}.timeline-critical{margin:0;font-size:.82rem;color:#4b5563}.timeline-critical strong{color:#b91c1c}.timeline-note{margin:0;font-size:.78rem;color:#9ca3af}@media(max-width:640px){.timeline-main{padding:16px}.timeline-body{--timeline-label-w: 150px}.timeline-label-task{padding-left:16px}.timeline-summary{margin-left:0}}#root{width:100%;height:100vh;display:flex}.app-container{width:100%;height:100%;display:flex;flex-direction:column;background-color:#f9fafb}.app-header{display:flex;justify-content:space-between;align-items:center;padding:24px;background-color:#fff;border-bottom:1px solid #e5e7eb;box-shadow:0 1px 3px #0000000d}.app-header h1{margin:0;font-size:1.875rem;color:#1f2937;font-weight:700}.app-main{flex:1;display:flex;gap:16px;padding:24px;overflow:auto}.app-main>.task-graph-container{flex:1;min-width:0}@media(max-width:640px){.app-main{flex-direction:column}}.add-btn{font-weight:600;padding:10px 16px;font-size:.95rem}.app-splash{color:#6b7280;font-size:1rem}.btn{padding:10px 16px;border:none;border-radius:6px;font-size:.95rem;font-weight:500;cursor:pointer;transition:all .2s;font-family:inherit}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background-color:#3b82f6;color:#fff}.btn-primary:hover:not(:disabled){background-color:#2563eb;box-shadow:0 2px 8px #3b82f64d}
