*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--bg: #F8FAFC;--surface: #FFFFFF;--surface-raised: #F1F5F9;--border: #E2E8F0;--accent: #4F46E5;--accent-hover: #4338CA;--text: #0F172A;--text-muted: #64748B;--danger: #DC2626;--danger-hover: #B91C1C;--today: #B45309;--sat: 62%;--lift: 0%;--shadow-modal: 0 24px 80px rgba(0, 0, 0, .18);--radius: 8px;--radius-lg: 12px}@media (prefers-color-scheme: dark){:root:not([data-theme=light]){color-scheme:dark;--bg: #0F172A;--surface: #1E293B;--surface-raised: #273549;--border: #334155;--accent: #818CF8;--accent-hover: #A5B4FC;--text: #F1F5F9;--text-muted: #94A3B8;--danger: #F87171;--danger-hover: #FCA5A5;--today: #FBBF24;--sat: 70%;--lift: 22%;--shadow-modal: 0 24px 80px rgba(0, 0, 0, .6)}}:root[data-theme=dark]{color-scheme:dark;--bg: #0F172A;--surface: #1E293B;--surface-raised: #273549;--border: #334155;--accent: #818CF8;--accent-hover: #A5B4FC;--text: #F1F5F9;--text-muted: #94A3B8;--danger: #F87171;--danger-hover: #FCA5A5;--today: #FBBF24;--sat: 70%;--lift: 22%;--shadow-modal: 0 24px 80px rgba(0, 0, 0, .6)}*{--clr: hsl(var(--h, 220) var(--sat) calc(var(--gl, 45%) + var(--lift)))}html,body{height:100%;overflow:hidden}body{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:14px;line-height:1.4;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}@media (max-width: 768px){body{font-size:16px}}button{cursor:pointer;border:none;background:none;font:inherit;color:inherit}button:disabled{cursor:default;opacity:.5}button:focus-visible,.task:focus-visible{outline:2px solid var(--accent);outline-offset:2px}input,select{font:inherit;color:inherit;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:8px 10px;width:100%;transition:border-color .15s}input:focus,select:focus{outline:none;border-color:var(--accent)}h1,h2,h3{text-wrap:balance}#app{height:100dvh}.layout{display:flex;flex-direction:column;height:100dvh;overflow:hidden}.panes{display:grid;grid-template-columns:minmax(240px,300px) 1fr minmax(300px,360px);flex:1;min-height:0}.sidebar,.focus,.dates,.drill{min-width:0;min-height:0;overflow-y:auto}.drill,.tab-bar,.fab{display:none}@media (max-width: 768px){.panes{grid-template-columns:1fr}.panes .sidebar,.panes .focus,.panes .desktop-only,.tab-today .panes .drill,.tab-tree .panes .dates{display:none}.tab-tree .panes .drill{display:block}.dates{border-left:none}.tab-bar{display:flex;flex-shrink:0;background:var(--surface);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom,0)}.fab{display:grid}}.dot{width:10px;height:10px;border-radius:3px;background:var(--clr);flex-shrink:0}.bar{width:3px;align-self:stretch;border-radius:2px;background:var(--clr);flex-shrink:0}.count{font-size:12px;color:var(--text-muted);font-variant-numeric:tabular-nums;flex-shrink:0}.count.overdue,.overdue{color:var(--danger)}.eyebrow{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}.empty-state{color:var(--text-muted);font-size:13px;padding:6px 4px}.empty-state.big{display:grid;gap:16px;justify-items:center;padding:64px 16px;font-size:15px}.btn-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:var(--radius);color:var(--text-muted);flex-shrink:0;transition:background .12s,color .12s}.btn-icon:hover{background:var(--surface-raised);color:var(--text)}.btn-ghost{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:var(--radius);border:1px solid var(--border);font-size:13px;color:var(--text-muted);transition:color .12s,border-color .12s}.btn-ghost:hover{color:var(--text);border-color:var(--text-muted)}.btn-primary{background:var(--accent);color:#fff;padding:8px 20px;border-radius:var(--radius);font-weight:600;font-size:14px;transition:background .12s}.btn-primary:hover:not(:disabled){background:var(--accent-hover)}.btn-danger{color:var(--danger);font-size:13px;padding:8px 4px;transition:color .12s}.btn-danger:hover:not(:disabled){color:var(--danger-hover)}.sidebar{background:var(--surface-raised);border-right:1px solid var(--border);padding:12px 10px 24px;display:flex;flex-direction:column;gap:2px}.sidebar-head{display:flex;align-items:center;gap:8px;padding:0 4px 8px 8px}.brand{font-weight:700;font-size:15px;margin-right:auto}.nav-group{display:flex;flex-direction:column;gap:1px;padding-top:10px}.nav-row{display:flex;align-items:flex-start;gap:8px;width:100%;text-align:left;padding:6px 8px;border-radius:6px;transition:background .12s}.nav-row:hover{background:var(--surface)}.nav-row.selected{background:var(--surface);box-shadow:inset 0 0 0 1px var(--border)}.nav-row .dot{margin-top:4px}.nav-label{flex:1;min-width:0;overflow-wrap:anywhere}.nav-ventures{font-weight:600}.nav-goals{padding-left:22px;font-size:13px}.nav-projects{padding-left:36px;font-size:13px;color:var(--text-muted)}.nav-projects:hover,.nav-projects.selected{color:var(--text)}.nav-add{display:flex;align-items:center;gap:6px;margin-top:14px;padding:6px 8px;font-size:13px;color:var(--text-muted)}.nav-add:hover{color:var(--text)}.focus{padding:20px 28px 48px;display:flex;flex-direction:column;gap:18px}.crumbs{display:flex;flex-wrap:wrap;gap:6px;font-size:12.5px;color:var(--text-muted);min-height:18px}.crumbs button:hover{color:var(--text);text-decoration:underline}.focus-head{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.focus-head h1{font-size:20px;font-weight:650;flex:1 1 240px}.focus-actions{display:flex;gap:8px}.goal-block{display:flex;flex-direction:column;gap:14px;padding-top:6px}.goal-name{text-align:left;font-size:15px;font-weight:650;color:var(--clr)}.goal-name:hover{text-decoration:underline}.project-block{display:flex;flex-direction:column;gap:1px}.project-head{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border);margin-bottom:2px}.project-name{font-weight:600;font-size:13px;text-align:left}.project-name:hover{text-decoration:underline}.task{display:flex;align-items:center;gap:8px;padding:5px 4px 5px 6px;border-radius:6px;cursor:pointer;transition:background .12s}.task:hover{background:var(--surface-raised)}.chk{width:18px;height:18px;border-radius:50%;border:1.5px solid var(--clr);flex-shrink:0;display:grid;place-items:center;color:#fff;transition:background .12s}.chk:hover{background:color-mix(in srgb,var(--clr) 20%,transparent)}.task.done .chk{background:var(--clr)}.task.done .t-name{text-decoration:line-through;color:var(--text-muted)}.t-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.t-name{overflow-wrap:anywhere}.t-path{display:flex;align-items:center;gap:6px;min-width:0;font-size:11.5px;color:var(--text-muted)}.t-path .dot{width:7px;height:7px;border-radius:2px}.t-path span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-meta{display:flex;align-items:center;gap:6px;flex-shrink:0;font-size:12px;color:var(--text-muted);font-variant-numeric:tabular-nums}.tag-recur{display:grid;color:var(--text-muted)}.tag-date.overdue{color:var(--danger);font-weight:500}.tag-date.today{color:var(--today);font-weight:500}.btn-task{display:grid;place-items:center;width:28px;height:28px;border-radius:6px;color:var(--text-muted);flex-shrink:0}.btn-task:hover{background:var(--surface);color:var(--text)}.date-picker-wrap{position:relative;display:grid}.hidden-date-input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;pointer-events:none;width:100%;padding:0;border:0}.add-row{display:flex;align-items:center;gap:8px;padding:4px 4px 4px 7px;color:var(--text-muted)}.add-row input{border:0;border-bottom:1px dashed var(--border);border-radius:0;background:transparent;padding:4px 0}.add-row input:focus{border-bottom-color:var(--accent)}.btn-show-done{align-self:flex-start;font-size:12px;color:var(--text-muted);padding:2px 6px}.btn-show-done:hover{color:var(--text)}.dates{border-left:1px solid var(--border);padding:16px 14px 96px;display:flex;flex-direction:column;gap:12px}.dates-head{display:flex;align-items:flex-end;justify-content:space-between;padding:0 4px}.dates-head h2,.drill-title h2{font-size:20px;font-weight:650}.bucket{display:flex;flex-direction:column;gap:1px}.bucket-head{display:flex;align-items:center;gap:6px;padding:6px 4px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}.bucket-head .count{margin-left:auto}.bucket-head.overdue{color:var(--danger)}.bucket-head.today{color:var(--today)}.date-label{font-size:12px;color:var(--text-muted);padding:8px 6px 2px}.drill{padding-bottom:96px}.drill-head{display:flex;flex-direction:column;gap:4px;padding:16px 16px 10px;border-bottom:1px solid var(--border)}.drill-back{display:flex;align-items:center;gap:2px;color:var(--accent);font-size:15px;min-width:0;margin-left:-6px}.drill-back span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.drill-title{display:flex;align-items:center;gap:10px}.drill-title h2{flex:1}.drill-body{display:flex;flex-direction:column;padding:6px 10px}.drill-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:12px 6px;border-bottom:1px solid var(--border);color:var(--text-muted)}.drill-row .bar{width:4px}.drill-label{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;color:var(--text)}.drill-label small{font-size:13px;color:var(--text-muted)}.drill-add{display:flex;align-items:center;gap:8px;padding:14px 6px;color:var(--text-muted)}.tab-btn{flex:1;display:flex;flex-direction:column;align-items:center;padding:10px 4px;gap:3px;font-size:12px;font-weight:500;color:var(--text-muted);-webkit-tap-highlight-color:transparent}.tab-btn.active{color:var(--accent)}.fab{position:fixed;right:18px;bottom:calc(76px + env(safe-area-inset-bottom,0px));width:56px;height:56px;border-radius:16px;place-items:center;background:var(--accent);color:#fff;box-shadow:0 6px 20px #0f172a4d}dialog{border:none;border-radius:var(--radius-lg);background:var(--surface-raised);color:var(--text);padding:0;width:min(480px,94vw);max-height:90dvh;box-shadow:var(--shadow-modal);margin:auto}dialog::backdrop{background:#000000a6;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal-form{display:flex;flex-direction:column;max-height:90dvh}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:14px 12px 12px 16px;border-bottom:1px solid var(--border)}.modal-header h3{font-size:15px;font-weight:600}.modal-body{padding:16px;display:flex;flex-direction:column;gap:14px;overflow-y:auto}.modal-footer{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-top:1px solid var(--border);gap:8px}.app-version{font-size:11px;color:var(--text-muted)}.field{display:flex;flex-direction:column;gap:6px}.field-label{font-size:12px;font-weight:600;color:var(--text-muted)}.path-picker{display:flex;flex-direction:column;border:1px solid var(--border);border-left:3px solid var(--clr);border-radius:var(--radius);background:var(--surface)}.path-row{display:flex;align-items:center;gap:8px;padding:2px 4px 2px 10px}.path-row+.path-row{border-top:1px solid var(--border)}.path-row span{width:56px;flex-shrink:0;font-size:12px;color:var(--text-muted)}.path-row select{border:0;background:transparent;padding:8px 4px;min-width:0}.date-row{display:flex;flex-direction:column;gap:8px}.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{display:inline-flex;align-items:center;gap:4px;padding:5px 12px;border:1px solid var(--border);border-radius:999px;font-size:13px;color:var(--text-muted)}.chip:hover{color:var(--text)}.chip.active{border-color:var(--accent);color:var(--accent)}.swatches{display:flex;flex-wrap:wrap;gap:8px}.swatch{width:28px;height:28px;border-radius:8px;background:var(--clr)}.swatch.active{box-shadow:0 0 0 2px var(--surface-raised),0 0 0 4px var(--text)}.hint{font-size:13px;color:var(--text-muted)}.toast{position:fixed;bottom:80px;left:50%;transform:translate(-50%);background:var(--danger);color:#fff;padding:8px 20px;border-radius:var(--radius);font-size:13px;font-weight:500;z-index:9999;animation:toast-in .2s ease-out}@keyframes toast-in{0%{opacity:0;transform:translate(-50%) translateY(8px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.auth-container{display:flex;align-items:center;justify-content:center;height:100dvh;padding:16px}.auth-card{background:var(--surface-raised);border-radius:var(--radius-lg);border:1px solid var(--border);padding:32px;width:min(380px,100%);text-align:center}.auth-logo{width:72px;height:72px;margin-bottom:24px}.auth-form{display:flex;flex-direction:column;gap:12px;text-align:left}.auth-toggle{font-size:13px;color:var(--text-muted);text-align:center}.auth-toggle button{color:var(--accent);font-weight:600;text-decoration:underline}.auth-error{color:var(--danger);font-size:13px;text-align:center;min-height:18px}@media (max-width: 768px){.task{padding:7px 2px 7px 6px}.chk{width:22px;height:22px}.btn-task{width:36px;height:36px}.t-path{font-size:12.5px}.t-meta{font-size:13px}.bucket-head{font-size:13px;padding:10px 4px}.modal-footer .btn-danger{font-size:15px}}
