:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:#172235;font-synthesis:none;text-rendering:optimizelegibility;--ink:#172235;--ink-soft:#66758a;--navy:#132238;--surface:#fff;--surface-soft:#f3f6fb;--line:#dce3ed;--accent:#2ec4b6;--accent-dark:#128d82;--danger:#c83f55;--shadow:0 18px 48px #182b4917;background:#e8edf5;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{background:#e8edf5;min-width:320px}body{background:linear-gradient(150deg,#e9eff8 0%,#f8f9fc 48%,#e7eef7 100%);min-width:320px;min-height:100vh;margin:0}body:before{content:"";z-index:100;height:env(safe-area-inset-top);background:var(--navy);pointer-events:none;position:fixed;inset:0 0 auto}button,input,textarea,select{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-offset:2px;outline:3px solid #2f7cf647}.app-shell{background:var(--surface-soft);width:min(940px,100%);min-height:100vh;margin:0 auto;box-shadow:0 0 80px #14284621}.topbar{min-height:88px;padding:calc(18px + env(safe-area-inset-top)) 28px 18px;color:#f7fbff;background:var(--navy);justify-content:space-between;align-items:center;gap:20px;display:flex}.brand{align-items:center;gap:13px;min-width:0;display:flex}.brand h1{letter-spacing:-.02em;margin:0;font-size:1.35rem;line-height:1.15}.brand span{color:#aebbd0;margin-top:3px;font-size:.8rem;display:block}.brand-mark{width:40px;height:40px;color:var(--navy);background:var(--accent);border-radius:13px;flex:none;place-items:center;display:grid;box-shadow:inset 0 0 0 1px #fff3}.top-actions{align-items:center;gap:8px;display:flex}.icon-button{width:42px;height:42px;color:inherit;cursor:pointer;background:#ffffff17;border:0;border-radius:12px;place-items:center;display:grid}.icon-button:hover{background:#ffffff29}.sync-chip{color:#dbe5f5;cursor:pointer;background:#ffffff12;border:1px solid #ffffff24;border-radius:999px;align-items:center;gap:7px;min-height:38px;padding:0 13px;font-size:.82rem;font-weight:650;display:inline-flex}.sync-offline,.sync-error{color:#ffd2a6}.main-content{padding:28px}.list-toolbar{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:16px;display:flex}.list-toolbar>div{flex-direction:column;display:flex}.list-toolbar strong{letter-spacing:-.025em;font-size:1.45rem}.list-toolbar div span{color:var(--ink-soft);margin-top:3px;font-size:.88rem}.completed-toggle{color:var(--ink-soft);cursor:pointer;align-items:center;gap:8px;font-size:.87rem;display:flex}.completed-toggle input{accent-color:var(--accent-dark);width:16px;height:16px}.quick-add{background:var(--surface);box-shadow:var(--shadow);border:1px solid #d7e0ec;border-radius:17px;grid-template-columns:auto minmax(0,1fr) minmax(140px,190px) auto;align-items:center;gap:12px;margin-bottom:24px;padding:14px;display:grid}.quick-add-mark{color:#fff;background:#2f7cf6;border-radius:13px;place-items:center;width:42px;height:42px;display:grid}.quick-add-fields{min-width:0}.quick-add-fields input{width:100%;color:var(--ink);background:0 0;border:0;outline:0}.quick-add-fields input:first-child{font-size:1rem;font-weight:680}.quick-add-fields input:last-child{color:var(--ink-soft);margin-top:5px;font-size:.84rem}.quick-add select,.editor-form select{border:1px solid var(--line);min-height:42px;color:var(--ink);background:var(--surface-soft);border-radius:11px;padding:0 10px}.primary-button,.secondary-button,.danger-button,.add-category-button{cursor:pointer;border:0;border-radius:11px;min-height:42px;padding:0 16px;font-weight:700}.primary-button{color:#fff;background:#276fe6;justify-content:center;align-items:center;gap:7px;display:inline-flex}.primary-button:hover{background:#1d5fc9}.primary-button:disabled{opacity:.45;cursor:default}.secondary-button{color:var(--ink);background:#e9eef5}.danger-button{color:#fff;background:var(--danger);align-items:center;gap:7px;display:inline-flex}.category-list{flex-direction:column;gap:12px;display:flex}.category{border:1px solid var(--line);background:var(--surface);border-radius:15px;overflow:hidden;box-shadow:0 4px 18px #1e304b0a}.category-nested{box-shadow:none;background:color-mix(in srgb, var(--surface) 90%, var(--category-colour));border-radius:12px;margin:10px 10px 0 22px}.category-heading{justify-content:space-between;align-items:center;min-height:52px;padding:0 8px 0 3px;display:flex}.category-toggle{cursor:pointer;text-align:left;background:0 0;border:0;flex:1;align-items:center;gap:9px;min-width:0;min-height:48px;font-weight:760;display:flex}.category-dot{background:var(--category-colour);width:9px;height:9px;box-shadow:0 0 0 4px color-mix(in srgb, var(--category-colour) 18%, transparent);border-radius:99px}.task-count{min-width:25px;color:var(--ink-soft);background:var(--surface-soft);text-align:center;border-radius:99px;margin-left:2px;padding:2px 7px;font-size:.74rem}.category-add{width:38px;height:38px;color:var(--ink-soft);cursor:pointer;background:0 0;border:0;border-radius:10px;place-items:center;display:grid}.category-add:hover{color:#276fe6;background:#eaf2ff}.category-body{padding:0 0 10px}.task-row{background:var(--surface-soft);border:1px solid #0000;border-radius:11px;align-items:center;gap:10px;min-height:55px;margin:0 10px 6px;padding:7px 5px 7px 9px;transition:transform .14s,border-color .14s;display:flex}.task-row:hover{border-color:var(--line);transform:translateY(-1px)}.task-check{border:2px solid color-mix(in srgb, var(--category-colour) 70%, #b8c3d2);color:#fff;cursor:pointer;background:0 0;border-radius:7px;flex:none;place-items:center;width:23px;height:23px;display:grid}.task-complete .task-check{background:var(--category-colour)}.task-main{text-align:left;cursor:pointer;background:0 0;border:0;flex:1;min-width:0;padding:0}.task-title,.task-details{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.task-title{font-size:.94rem;font-weight:660}.task-details{color:var(--ink-soft);margin-top:2px;font-size:.8rem}.task-complete .task-title{color:var(--ink-soft);text-decoration:line-through}.task-menu{width:36px;height:36px;color:var(--ink-soft);cursor:pointer;background:0 0;border:0;border-radius:9px;place-items:center;display:grid}.empty-state{text-align:center;color:var(--ink-soft);margin:46px auto}.empty-state>div{width:54px;height:54px;color:var(--accent-dark);background:#dff7f4;border-radius:18px;place-items:center;margin:0 auto 12px;display:grid}.empty-state strong{color:var(--ink);font-size:1.05rem;display:block}.empty-state p{margin:6px 0 0;font-size:.9rem}footer{padding:4px 28px calc(20px + env(safe-area-inset-bottom));color:var(--ink-soft);justify-content:space-between;gap:16px;font-size:.76rem;display:flex}.modal-backdrop{z-index:20;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#0812208f;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.modal{background:var(--surface);border-radius:18px;width:min(500px,100%);max-height:min(760px,100vh - 36px);overflow:auto;box-shadow:0 26px 90px #030c1c57}.modal-wide{width:min(720px,100%)}.modal-header{z-index:2;border-bottom:1px solid var(--line);background:var(--surface);justify-content:space-between;align-items:center;padding:18px 20px;display:flex;position:sticky;top:0}.modal-header h2{margin:0;font-size:1.12rem}.modal .icon-button{color:var(--ink);background:var(--surface-soft)}.editor-form{flex-direction:column;gap:17px;padding:20px;display:flex}.editor-form label{color:var(--ink-soft);flex-direction:column;gap:7px;font-size:.82rem;font-weight:700;display:flex}.editor-form input,.editor-form textarea{border:1px solid var(--line);width:100%;color:var(--ink);background:var(--surface-soft);resize:vertical;border-radius:11px;padding:11px 12px;font-size:.95rem}.modal-actions{justify-content:flex-end;gap:9px;margin-top:4px;display:flex}.split-actions{justify-content:space-between}.split-actions>div{gap:9px;display:flex}.settings-intro{color:var(--ink-soft);align-items:center;gap:4px;padding:16px 20px 8px;font-size:.85rem;display:flex}.category-settings-list{padding:8px 16px 4px}.category-setting{grid-template-columns:calc(var(--depth) * 20px + 5px) minmax(130px, 1fr) 38px auto;border-bottom:1px solid var(--line);align-items:center;gap:8px;min-height:52px;display:grid}.tree-guide{border-right:calc(var(--depth) * 1px) solid #cad4e2;height:28px}.category-name-input{min-width:0;color:var(--ink);background:0 0;border:1px solid #0000;border-radius:8px;padding:8px;font-weight:680}.category-name-input:hover,.category-name-input:focus{border-color:var(--line);background:var(--surface-soft)}.colour-input,.new-category-form input[type=color]{border:1px solid var(--line);background:var(--surface-soft);cursor:pointer;border-radius:9px;width:34px;height:34px;padding:2px}.category-tools{display:flex}.category-tools button{width:34px;height:34px;color:var(--ink-soft);cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;display:grid}.category-tools button:hover{color:var(--ink);background:var(--surface-soft)}.category-tools .danger-icon:hover{color:var(--danger);background:#fff0f2}.category-tools button:disabled{opacity:.25;cursor:default}.add-category-button{color:#276fe6;background:#eaf2ff;align-items:center;gap:7px;margin:12px 20px 20px;display:flex}.new-category-form{grid-template-columns:auto 1fr auto auto;gap:8px;padding:14px 20px 20px;display:grid}.new-category-form>input:not([type=color]){border:1px solid var(--line);background:var(--surface-soft);border-radius:10px;min-width:0;padding:0 11px}.inline-confirm{color:var(--danger);background:#fff4f5;border:1px solid #f0c4cb;border-radius:12px;grid-template-columns:auto 1fr auto auto;align-items:center;gap:10px;margin:0 20px 20px;padding:13px;display:grid}.inline-confirm strong,.inline-confirm span{display:block}.inline-confirm span{color:#855966;margin-top:2px;font-size:.78rem}.loading-state,.auth-unavailable{min-height:190px;color:var(--ink-soft);justify-content:center;align-items:center;gap:10px;padding:24px;display:flex}.auth-unavailable{text-align:center;flex-direction:column}.auth-unavailable strong{color:var(--ink)}.auth-unavailable p{max-width:330px;margin:0}.form-error{color:var(--danger);background:#fff0f2;border-radius:10px;align-items:center;gap:7px;padding:10px 12px;font-size:.84rem;display:flex}.boot-screen{min-height:100vh;color:var(--ink-soft);flex-direction:column;justify-content:center;align-items:center;gap:14px;display:flex}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width:700px){.app-shell{box-shadow:none}.topbar{min-height:78px;padding-left:17px;padding-right:13px}.brand span,.sync-chip span{display:none}.sync-chip{justify-content:center;width:42px;padding:0}.main-content{padding:20px 14px}.list-toolbar{padding:0 3px}.completed-toggle span{display:none}.quick-add{grid-template-columns:auto minmax(0,1fr) auto;gap:9px}.quick-add select{grid-column:2;min-width:0}.add-button{grid-area:1/3/span 2;height:100%;padding:0 13px}.category-nested{margin-left:12px;margin-right:6px}footer{flex-direction:column;gap:4px;padding-left:17px;padding-right:17px}.category-setting{grid-template-columns:calc(var(--depth) * 12px + 2px) minmax(96px, 1fr) 34px}.category-tools{grid-column:2/span 2;justify-content:flex-end;padding-bottom:6px}.new-category-form{grid-template-columns:auto 1fr auto}.new-category-form .secondary-button{grid-column:2/span 2}.inline-confirm{grid-template-columns:auto 1fr}.inline-confirm button{grid-row:2}.inline-confirm button:first-of-type{grid-column:1}.inline-confirm button:last-of-type{grid-column:2}}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--ink:#e8eef7;--ink-soft:#9aa9bd;--navy:#0d1726;--surface:#172335;--surface-soft:#111c2c;--line:#2b3a4f;--accent:#35d1c2;--accent-dark:#35d1c2;--danger:#ef6075;--shadow:0 18px 48px #0000003d}html,body{background:#0b1421}body{background:linear-gradient(150deg,#0d1725 0%,#111b2a 48%,#0b1421 100%)}.app-shell{box-shadow:0 0 80px #0006}.inline-confirm{background:#351b25;border-color:#683444}.inline-confirm span{color:#d49cab}.category-tools .danger-icon:hover,.form-error{background:#351b25}.empty-state>div{background:#113a3a}.primary-button{background:#377ff0}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
