: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-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}.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)}.avatar{background:linear-gradient(135deg, var(--accent), #b07df7);color:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:2.25rem;height:2.25rem;font-size:.95rem;font-weight:700;display:inline-flex}.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);resize:vertical;border-radius:9px;padding:.55rem .75rem}.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)}.task-form .btn{align-self:flex-start}.date-field{color:var(--text-muted);flex-direction:column;gap:.25rem;font-size:.85rem;display:flex}.date-field input{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;width:fit-content}.task-form.edit{flex:1}.form-actions{gap:.5rem;display:flex}.field-error{color:var(--danger);margin:0;font-size:.85rem}.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:14px;width:100%;max-width:480px;padding:1.25rem;box-shadow:0 24px 64px #0000008c}.modal-header{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}.modal-header h2{margin:0;font-size:1.1rem}.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)}}
