:root{--bg:#0b0b0f;--bg-raised:#101015;--surface:#14141b;--surface-hover:#1a1a23;--border:#23232e;--text:#edeef3;--text-muted:#8a8c9a;--accent:#7c6af7;--accent-hover:#8f7dff;--accent-soft:#7c6af729;--success:#34d399;--danger:#f87171;color:var(--text);background-color:var(--bg);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5}*,:before,:after{box-sizing:border-box}body{min-height:100vh;margin:0}.layout{height:100vh;display:flex;overflow:hidden}.sidebar{background:var(--bg-raised);border-right:1px solid var(--border);flex-direction:column;flex-shrink:0;gap:1.5rem;width:248px;padding:1.25rem .875rem 1rem;display:flex;overflow-y:auto}.brand{align-items:center;gap:.625rem;padding:0 .5rem;display:flex}.brand-mark{background:var(--accent);border-radius:9px;justify-content:center;align-items:center;width:2rem;height:2rem;display:inline-flex}.brand-mark svg{fill:none;stroke:#fff;stroke-width:3px;stroke-linecap:round;stroke-linejoin:round;width:1.125rem;height:1.125rem}.brand-name{letter-spacing:-.01em;font-size:1.05rem;font-weight:700}.sidebar nav{flex-direction:column;gap:.2rem;display:flex}.nav-item{width:100%;color:var(--text-muted);font:inherit;cursor:pointer;text-align:left;background:0 0;border:none;border-radius:9px;align-items:center;gap:.625rem;padding:.55rem .75rem;font-size:.92rem;text-decoration:none;display:flex}.nav-item svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;width:1.125rem;height:1.125rem}.nav-item:hover:not(:disabled){color:var(--text);background:var(--surface-hover)}.nav-item.active{color:var(--text);background:var(--accent-soft)}.nav-item:disabled{opacity:.45;cursor:default}.nav-count{color:var(--text-muted);background:var(--surface-hover);border-radius:999px;margin-left:auto;padding:.1rem .55rem;font-size:.75rem}.nav-item.active .nav-count{background:var(--accent);color:#fff}.side-section{border-top:1px solid var(--border);padding:1rem .75rem 0}.side-section .nav-item{font-size:.875rem}.side-heading{letter-spacing:.09em;text-transform:uppercase;color:var(--text-muted);margin:0 0 .375rem;font-size:.7rem;font-weight:600}.side-soon{color:var(--text-muted);opacity:.6;margin:0;font-size:.82rem}.side-footer{border-top:1px solid var(--border);flex-direction:column;gap:.2rem;margin-top:auto;padding-top:.75rem;display:flex}.side-heading-row{justify-content:space-between;align-items:center;display:flex}.side-heading-row .side-heading{margin:0}.side-heading-row .icon-btn svg{width:1rem;height:1rem}.project-dot{border-radius:50%;flex-shrink:0;width:.625rem;height:.625rem;margin:0 .25rem}.project-name{white-space:nowrap;text-overflow:ellipsis;min-width:0;overflow:hidden}.search{background:var(--surface);border:1px solid var(--border);border-radius:10px;align-items:center;gap:.55rem;width:min(300px,100%);padding:.5rem .875rem;display:flex}.search svg{fill:none;width:1rem;height:1rem;stroke:var(--text-muted);stroke-width:2px;stroke-linecap:round;flex-shrink:0}.search input{color:inherit;font:inherit;background:0 0;border:none;width:100%;font-size:.9rem}.search input:focus{outline:none}.search:focus-within{border-color:var(--accent)}.search input::placeholder{color:var(--text-muted)}.main{flex:1;width:100%;min-width:0;padding:1.75rem 2.5rem 4rem;overflow-y:auto}.header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.5rem;display:flex}.toolbar-actions{align-items:center;gap:.75rem;display:flex}.header h1{letter-spacing:-.02em;margin:0;font-size:1.65rem}.header-subtitle{color:var(--text-muted);margin:.25rem 0 0}.toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:1.5rem;display:flex}.toolbar .filter-tabs{margin-bottom:0}.filter-tabs{gap:.375rem;margin-bottom:1.5rem;display:flex}.filter-tab{border:1px solid var(--border);background:var(--surface);font:inherit;color:var(--text-muted);cursor:pointer;border-radius:10px;align-items:center;gap:.45rem;padding:.4rem .95rem;font-size:.875rem;display:inline-flex}.filter-tab:hover{color:var(--text);background:var(--surface-hover)}.filter-tab.active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-hover);font-weight:600}.tab-count{background:var(--surface-hover);border-radius:999px;padding:.05rem .45rem;font-size:.75rem}.filter-tab.active .tab-count{background:var(--accent);color:#fff}.group-header{align-items:center;gap:.55rem;margin-bottom:.75rem;display:flex}.task-group+.task-group{margin-top:1.75rem}.group-dot{border:2px solid var(--accent);border-radius:50%;width:.7rem;height:.7rem}.group-dot.danger{border-color:var(--danger)}.group-header h2{letter-spacing:-.01em;margin:0;font-size:1.05rem}.group-count{color:var(--text-muted);background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:.05rem .55rem;font-size:.75rem}.group-card{background:var(--surface);border:1px solid var(--border);border-radius:14px}.task-item:first-child{border-top-left-radius:13px;border-top-right-radius:13px}.task-list:last-child .task-item:last-child{border-bottom-right-radius:13px;border-bottom-left-radius:13px}.group-empty{text-align:center;color:var(--text-muted);margin:0;padding:1.75rem 1.25rem}.task-list{margin:0;padding:0;list-style:none}.task-item{align-items:flex-start;gap:.875rem;padding:.95rem 1.125rem;transition:background .12s;display:flex}.task-item+.task-item{border-top:1px solid var(--border)}.task-item:hover{background:var(--surface-hover)}.task-check{cursor:pointer;background:0 0;border:2px solid #3a3a48;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:1.25rem;height:1.25rem;margin-top:.2rem;padding:0;transition:border-color .12s,background .12s;display:inline-flex}.task-check svg{fill:none;stroke:#0000;stroke-width:3px;stroke-linecap:round;stroke-linejoin:round;width:.8rem;height:.8rem}.task-check:hover:not(:disabled){border-color:var(--accent)}.task-item.completed .task-check{background:var(--accent);border-color:var(--accent)}.task-item.completed .task-check svg{stroke:#fff}.task-body{flex:1;min-width:0}.task-title{overflow-wrap:break-word;margin:0;font-size:.95rem;font-weight:500}.task-item.completed .task-title{color:var(--text-muted);text-decoration:line-through}.task-description{color:var(--text-muted);overflow-wrap:break-word;margin:.15rem 0 0;font-size:.85rem}.task-side{flex-shrink:0;align-items:center;gap:.625rem;margin-top:.15rem;display:flex}.task-meta{color:var(--text-muted);align-items:center;gap:.375rem;font-size:.8rem;display:inline-flex}.task-meta svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;width:.95rem;height:.95rem}.task-meta.overdue{color:var(--danger)}.task-meta.due-today{color:var(--accent-hover)}.done-text{color:var(--success);font-size:.82rem;font-weight:600}.task-actions{opacity:0;gap:.25rem;transition:opacity .12s;display:flex}.task-item:hover .task-actions,.task-actions:focus-within{opacity:1}.task-menu{display:none;position:relative}.task-menu .icon-btn svg{fill:currentColor;stroke:none}.menu{z-index:5;background:var(--bg-raised);border:1px solid var(--border);border-radius:10px;flex-direction:column;min-width:140px;padding:.25rem;display:flex;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 12px 32px #00000080}.menu button{font:inherit;text-align:left;color:var(--text);cursor:pointer;background:0 0;border:none;border-radius:7px;padding:.45rem .65rem;font-size:.875rem}.menu button:hover:not(:disabled){background:var(--surface-hover)}.menu button.danger{color:var(--danger)}.menu button:disabled{opacity:.6;cursor:default}@media (hover:none),(width<=900px){.task-actions{display:none}.task-menu{display:block}}.icon-btn{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:7px;padding:.3rem;display:inline-flex}.icon-btn svg{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;width:1.3rem;height:1.3rem}.icon-btn:hover:not(:disabled){color:var(--text);background:var(--surface-hover)}.icon-btn.danger:hover:not(:disabled){color:var(--danger)}.icon-btn:disabled{opacity:.5;cursor:default}.btn{font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;white-space:nowrap;border-radius:9px;padding:.45rem .9rem;font-size:.9rem}.btn:hover:not(:disabled){background:var(--surface-hover);border-color:var(--text-muted)}.btn:disabled{opacity:.6;cursor:default}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff;border-radius:10px;padding:.55rem 1.1rem;font-weight:600}.btn.primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.btn.small{padding:.3rem .6rem;font-size:.8rem}.btn.danger{color:var(--danger)}.btn.danger:hover:not(:disabled){border-color:var(--danger)}.task-form{flex-direction:column;gap:.625rem;display:flex}.task-form input,.task-form textarea{font:inherit;color:inherit;background:var(--bg-raised);border:1px solid var(--border);border-radius:9px;padding:.55rem .75rem}.task-form textarea{resize:vertical}.task-form input::placeholder,.task-form textarea::placeholder{color:var(--text-muted)}.task-form input:focus,.task-form textarea:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}.field{flex-direction:column;gap:.35rem;min-width:0;display:flex}.field-label{color:var(--text);font-size:.85rem;font-weight:500}.field-label .optional{color:var(--text-muted);font-weight:400}.field-label .req{color:var(--danger);font-style:normal}.form-row{grid-template-columns:1fr 1fr;gap:.75rem;display:grid}@media (width<=560px){.form-row{grid-template-columns:1fr}}.control{background:var(--bg-raised);border:1px solid var(--border);border-radius:9px;align-items:center;gap:.5rem;height:2.7rem;padding:0 .75rem;display:flex}.control svg{fill:none;width:1rem;height:1rem;stroke:var(--text-muted);stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.control select,.control input{min-width:0;height:100%;color:inherit;font:inherit;resize:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:0 0;border:none;flex:1;padding:0}.control select:focus,.control input:focus{outline:none}.control:focus-within{border-color:var(--accent);outline:1px solid var(--accent);outline-offset:-1px}.control{position:relative}.date-placeholder{display:none}.control input.date-empty:not(:focus){color:#0000;-webkit-text-fill-color:transparent}.control input.date-empty:not(:focus)::-webkit-datetime-edit{color:#0000;-webkit-text-fill-color:transparent}.control input.date-empty:not(:focus)+.date-placeholder{color:var(--text-muted);pointer-events:none;display:block;position:absolute;left:2.25rem}.control-clear{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:6px;flex-shrink:0;padding:.1rem .3rem;font-size:1.1rem;line-height:1}.control-clear:hover{color:var(--text);background:var(--surface-hover)}.form-footer{border-top:1px solid var(--border);justify-content:flex-end;gap:.5rem;margin-top:.25rem;padding-top:1rem;display:flex}.task-form.edit{flex:1}.form-actions{gap:.5rem;display:flex}.field-error{color:var(--danger);margin:0;font-size:.85rem}.swatch input{opacity:0;pointer-events:none;position:absolute}.swatch-dot{cursor:pointer;color:#0000;border:2px solid #0000;border-radius:50%;justify-content:center;align-items:center;width:2rem;height:2rem;font-size:.85rem;font-weight:700;display:flex}.swatch-dot:after{content:"✓"}.swatch input:checked+.swatch-dot{color:#fff;box-shadow:0 0 0 2px var(--surface), 0 0 0 4px var(--accent)}.swatch input:focus-visible+.swatch-dot{outline:2px solid var(--accent);outline-offset:2px}.swatch-row{align-items:center;gap:.5rem;display:flex}.swatch{position:relative}.project-chip{background:var(--surface-hover);color:var(--text-muted);vertical-align:middle;border-radius:999px;align-items:center;gap:.3rem;margin-left:.5rem;padding:.1rem .55rem;font-size:.72rem;font-weight:500;display:inline-flex}.project-chip .project-dot{width:.5rem;height:.5rem;margin:0}.project-banner{background:var(--surface);border:1px solid var(--border);border-radius:14px;flex-wrap:wrap;align-items:center;gap:.6rem;margin-bottom:1rem;padding:.8rem 1.1rem;display:flex}.project-banner h2{letter-spacing:-.01em;margin:0;font-size:1rem}.project-banner-actions{gap:.375rem;margin-left:auto;display:flex}.modal-overlay{z-index:10;background:#000000a6;justify-content:center;align-items:flex-start;padding:15vh 1rem 1rem;display:flex;position:fixed;inset:0}.modal{background:var(--surface);border:1px solid var(--border);border-radius:16px;width:100%;max-width:600px;padding:1.5rem;box-shadow:0 24px 64px #0000008c}.modal-header{align-items:center;gap:.625rem;margin-bottom:1.25rem;display:flex}.modal-mark{background:var(--accent-soft);border:1px solid var(--accent);border-radius:9px;flex-shrink:0;justify-content:center;align-items:center;width:1.9rem;height:1.9rem;display:inline-flex}.modal-mark svg{fill:none;width:1.05rem;height:1.05rem;stroke:var(--accent-hover);stroke-width:2.5px;stroke-linecap:round;stroke-linejoin:round}.modal-heading{flex:1;min-width:0}.modal-header h2{margin:0;font-size:1.15rem}.modal-subtitle{color:var(--text-muted);margin:.1rem 0 0;font-size:.85rem}.field-hint{color:var(--text-muted);margin:0;font-size:.8rem}.modal-close{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:7px;padding:.1rem .4rem;font-size:1.5rem;line-height:1}.modal-close:hover{color:var(--text);background:var(--surface-hover)}.status{color:var(--text-muted);background:var(--surface);border:1px dashed var(--border);text-align:center;border-radius:14px;padding:1.75rem}.status.error{color:var(--danger);border-color:var(--danger)}.mobile-nav{display:none}@media (width<=900px){.sidebar{display:none}.main{padding:1.25rem 1.25rem 5.5rem}.toolbar,.toolbar-actions{flex-direction:column;align-items:stretch}.toolbar .search{width:100%}.toolbar .btn{text-align:center}.mobile-nav{z-index:8;background:var(--bg-raised);border-top:1px solid var(--border);padding:.375rem .75rem calc(.375rem + env(safe-area-inset-bottom));display:flex;position:fixed;bottom:0;left:0;right:0}.mobile-nav-item{color:var(--text-muted);border-radius:9px;flex-direction:column;flex:1;align-items:center;gap:.125rem;padding:.375rem 0;font-size:.7rem;text-decoration:none;display:flex;position:relative}.mobile-nav-item svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:1.35rem;height:1.35rem}.mobile-nav-item.active{color:var(--accent-hover)}.mobile-nav-count{background:var(--accent);color:#fff;text-align:center;border-radius:999px;min-width:1rem;padding:0 .35rem;font-size:.65rem;font-weight:600;position:absolute;top:0;right:calc(50% - 1.6rem)}}
