:root{--teal:#4b9395;--teal-light:#e3f1f1;--plum:#632944;--plum-light:#f1e6ec;--orange:#f7aa5f;--orange-light:#fdf0e2;--red-orange:#e14e3f;--red-orange-light:#fbe6e3;--deep-red:#a7012e;--deep-red-light:#f8dde3;--bg:#faf8f6;--surface:#fff;--border:#e7e2dd;--text:#2b2530;--text-muted:#77707c;--shadow-sm:0 1px 2px #2b25300f;--shadow-md:0 4px 16px #2b253014;--radius:8px;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font:15px/1.5 -apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}body{min-height:100svh;margin:0}#root{min-height:100svh}h1,h2,h3{color:var(--plum);margin:0;font-weight:600}button{font:inherit;cursor:pointer}input{font:inherit}.react-flow{direction:ltr}.react-flow__container{width:100%;height:100%;position:absolute;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:1px;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray: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;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{-webkit-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab;position:absolute}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:0 0;pointer-events:none}.react-flow__nodesselection-rect{pointer-events:all;cursor:-webkit-grab;cursor:grab;position:absolute}.react-flow__handle{pointer-events:none;background:#1a192b;border:1px solid #fff;border-radius:100%;width:6px;min-width:5px;height:6px;min-height:5px;position:absolute}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;bottom:-4px;left:50%;transform:translate(-50%)}.react-flow__handle-top{top:-4px;left:50%;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{top:50%;right:-4px;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{z-index:5;margin:15px;position:absolute}.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{background:#ffffff80;margin:0;padding:2px 3px;font-size:10px}.react-flow__attribution a{color:#999;text-decoration:none}@keyframes dashdraw{0%{stroke-dashoffset:10px}}.react-flow__edgelabel-renderer{pointer-events:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute}.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{color:#222;text-align:center;background-color:#fff;border:1px solid #1a192b;border-radius:3px;width:150px;padding:10px;font-size:12px}.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 #0059dccc}.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{box-sizing:content-box;cursor:pointer;-webkit-user-select:none;user-select:none;background:#fefefe;border:none;border-bottom:1px solid #eee;justify-content:center;align-items:center;width:16px;height:16px;padding:5px;display:flex}.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{background-color:#3367d9;border:1px solid #fff;border-radius:1px;width:4px;height:4px;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{top:50%;left:0}.react-flow__resize-control.handle.right{top:50%;left:100%}.react-flow__resize-control.handle.top{top:0;left:50%}.react-flow__resize-control.handle.bottom{top:100%;left:50%}.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:0 solid #3367d9}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;height:100%;top:0;transform:translate(-50%)}.react-flow__resize-control.line.left{border-left-width:1px;left:0}.react-flow__resize-control.line.right{border-right-width:1px;left:100%}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{width:100%;height:1px;left:0;transform:translateY(-50%)}.react-flow__resize-control.line.top{border-top-width:1px;top:0}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.app-shell{max-width:1000px;margin:0 auto;padding:32px 24px 64px}.app-header{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.app-header h1{letter-spacing:-.2px;font-size:22px}.tabs{border-bottom:1px solid var(--border);gap:4px;margin-bottom:24px;display:flex}.tab{color:var(--text-muted);background:0 0;border:none;border-bottom:2px solid #0000;margin-bottom:-1px;padding:10px 16px;font-size:14px;font-weight:500;transition:color .15s,border-color .15s}.tab:hover{color:var(--plum)}.tab.active{color:var(--teal);border-bottom-color:var(--teal)}.btn{border:1px solid var(--border);background:var(--surface);border-radius:var(--radius);color:var(--text);padding:8px 14px;font-size:14px;font-weight:500;transition:background .15s,border-color .15s}.btn:hover{border-color:var(--teal);color:var(--teal)}.btn-primary{background:var(--teal);border-color:var(--teal);color:#fff}.btn-primary:hover{color:#fff;background:#3d7d7f;border-color:#3d7d7f}.btn-primary:disabled{opacity:.6;cursor:default}.login-page{justify-content:center;align-items:center;min-height:100svh;display:flex}.login-card{background:var(--surface);border:1px solid var(--border);width:320px;box-shadow:var(--shadow-md);text-align:center;border-radius:12px;padding:32px}.login-card h2{margin-bottom:4px;font-size:20px}.login-card p.subtitle{color:var(--text-muted);margin-bottom:20px;font-size:13px}.login-card input{border:1px solid var(--border);border-radius:var(--radius);width:100%;margin-bottom:12px;padding:10px 12px;font-size:14px}.login-card input:focus{border-color:var(--teal);box-shadow:0 0 0 3px var(--teal-light);outline:none}.login-card .btn-primary{width:100%}.login-error{color:var(--deep-red);margin-top:12px;font-size:13px}.data-table{border-collapse:collapse;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);width:100%;overflow:hidden}.data-table th{text-align:left;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);background:var(--bg);border-bottom:1px solid var(--border);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;padding:10px 14px;font-size:12px;font-weight:600}.data-table th:hover{color:var(--plum)}.data-table td{border-bottom:1px solid var(--border);padding:10px 14px;font-size:14px}.data-table tbody tr:last-child td{border-bottom:none}.data-table tbody tr:nth-child(2n){background:var(--bg)}.data-table tbody tr:hover{background:var(--teal-light)}.badge{white-space:nowrap;border-radius:999px;padding:2px 9px;font-size:12px;font-weight:600;display:inline-block}.badge-status-done{background:var(--teal-light);color:var(--teal)}.badge-status-todo{background:var(--orange-light);color:#b06a1f}.badge-status-blocked{background:var(--deep-red-light);color:var(--deep-red)}.badge-status-cancelled{background:var(--border);color:var(--text-muted)}.goal-row{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:10px;padding:14px 16px}.goal-row-top{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.goal-title{font-weight:600}.goal-meta{color:var(--text-muted);font-size:13px}.progress-track{background:var(--border);border-radius:999px;height:8px;overflow:hidden}.progress-fill{background:var(--teal);border-radius:999px;height:100%;transition:width .2s}.graph-wrap{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);height:75vh;position:relative}.graph-legend{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);z-index:5;box-shadow:var(--shadow-sm);padding:10px 14px;font-size:12px;position:absolute;top:12px;right:12px}.graph-legend-item{align-items:center;gap:6px;margin-top:4px;display:flex}.graph-legend-item:first-of-type{margin-top:0}.legend-dot{border-radius:3px;width:10px;height:10px;display:inline-block}.stats-banner{gap:12px;margin-bottom:16px;display:flex}.stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);text-align:center;flex:1;padding:12px 16px}.stat-value{color:var(--teal);font-size:26px;font-weight:700;display:block}.stat-label{color:var(--text-muted);font-size:12px}.time-filter{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:16px;display:flex}.time-filter-label{color:var(--text-muted);margin-right:4px;font-size:13px}.chip{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:999px;padding:5px 12px;font-size:13px}.chip:hover{border-color:var(--teal)}.chip.active{background:var(--teal);border-color:var(--teal);color:#fff}.due-label{font-size:12px;font-weight:500}.due-soon{color:var(--red-orange);font-weight:600}.due-overdue{color:var(--deep-red);font-weight:700}.due-none{color:var(--text-muted)}.task-list{flex-direction:column;gap:8px;display:flex}.task-row{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:12px 16px}.task-row-busy{opacity:.55}.task-row-done .task-title{color:var(--text-muted);text-decoration:line-through}.task-row-main{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.task-check{width:20px;height:20px;accent-color:var(--teal);cursor:pointer;flex-shrink:0}.task-title{color:var(--text);text-align:left;background:0 0;border:none;padding:0;font-weight:500}.task-title:hover{color:var(--teal)}.task-row-meta{color:var(--text-muted);flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto;font-size:13px;display:flex}.task-error{color:var(--deep-red);margin-top:8px;font-size:13px}.task-description{color:var(--text-muted);margin:12px 0 0;font-size:13px}.show-more{width:100%;margin-top:10px}.tag-chip{letter-spacing:.02em;border-radius:999px;padding:2px 9px;font-size:11px;font-weight:600}.tag-chip.tag-friction{background:var(--plum-light);color:var(--plum)}.tag-chip.tag-window{background:var(--orange-light);color:#b06a1f}.tag-toggle{border:1px solid var(--border);background:var(--surface);color:var(--text-muted);border-radius:999px;padding:4px 11px;font-size:12px}.tag-toggle:hover{border-color:var(--teal)}.tag-toggle.tag-friction.on{background:var(--plum);border-color:var(--plum);color:#fff}.tag-toggle.tag-window.on{background:var(--orange);border-color:var(--orange);color:#4a2f10}.tag-toggle.on{background:var(--teal);border-color:var(--teal);color:#fff}.tag-filter{flex-wrap:wrap;gap:6px;margin-bottom:16px;display:flex}.task-editor{border-top:1px solid var(--border);margin-top:14px;padding-top:14px}.editor-line{flex-wrap:wrap;gap:14px;display:flex}.editor-line label{color:var(--text-muted);flex-direction:column;gap:4px;font-size:12px;display:flex}.editor-line select,.editor-line input{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);padding:6px 8px}.editor-tags{flex-direction:column;gap:10px;margin-top:14px;display:flex}.editor-tag-group{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.editor-tag-label{color:var(--text-muted);min-width:130px;font-size:12px}.view-tabs{flex-wrap:wrap;gap:6px;margin-bottom:16px;display:flex}.view-tab{border:1px solid var(--border);background:var(--surface);border-radius:var(--radius);color:var(--text);padding:6px 14px;font-size:13px}.view-tab.active{background:var(--plum);border-color:var(--plum);color:#fff}.view-count{opacity:.65;margin-left:4px;font-size:12px}.project-grid{flex-direction:column;gap:16px;display:flex}.project-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:18px 20px}.project-header{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.project-counts{color:var(--text-muted);font-size:13px}.progress-track{background:var(--border);border-radius:999px;height:6px;margin:10px 0;overflow:hidden}.progress-fill{background:var(--teal);height:100%}.project-description{color:var(--text-muted);margin:0 0 10px;font-size:13px}.project-flag{color:var(--deep-red);margin:0 0 12px;font-size:13px}.empty-state,.loading-state{text-align:center;color:var(--text-muted);background:var(--surface);border:1px dashed var(--border);border-radius:var(--radius);padding:40px}
