:root{--font:"Segoe UI", "Segoe UI Web", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;--bg:#faf9f8;--surface:#fff;--surface-hover:#f5f4f3;--surface-selected:#eff6fc;--sidebar-bg:#fff;--border:#edebe9;--text:#323130;--text-muted:#605e5c;--text-subtle:#a19f9d;--topbar:#2564cf;--accent:#2564cf;--danger:#a4262c;--star:#2564cf;--shadow:0 .3px .9px #0000001a, 0 1.6px 3.6px #00000021;--theme:#2564cf;--theme-bg:#f3f6fd;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:var(--font);color:var(--text)}@media (prefers-color-scheme:dark){:root{--bg:#11100f;--surface:#292827;--surface-hover:#323130;--surface-selected:#1c2b40;--sidebar-bg:#1b1a19;--border:#3b3a39;--text:#f3f2f1;--text-muted:#c8c6c4;--text-subtle:#8a8886;--topbar:#1b1a19;--accent:#6ea8fe;--danger:#f1707b;--star:#6ea8fe;--theme:#6ea8fe;--theme-bg:#11100f;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);font-size:14px}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer;background:0 0;border:none;padding:0}input,textarea{background:0 0;border:none;outline:none}.muted{color:var(--text-muted)}.icon-button{width:32px;height:32px;color:var(--text-muted);border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.icon-button:hover{background:var(--surface-hover);color:var(--text)}.icon-button.tiny{width:22px;height:22px}.icon-button.danger:hover{color:var(--danger)}.app{flex-direction:column;height:100%;display:flex}.topbar{background:var(--topbar);color:#fff;flex-shrink:0;align-items:center;gap:16px;height:48px;padding:0 16px;display:flex}.brand{flex-shrink:0;width:200px;font-size:16px;font-weight:600}.search{background:var(--surface);max-width:400px;height:32px;color:var(--text);border-radius:4px;flex:1;align-items:center;gap:8px;margin:0 auto 0 0;padding:0 8px;display:flex}.search input{flex:1;min-width:0}.search-icon{color:var(--accent)}.workspace{flex:1;min-height:0;display:flex}.sidebar{background:var(--sidebar-bg);border-right:1px solid var(--border);flex-direction:column;flex-shrink:0;width:290px;padding-top:12px;display:flex}.sidebar-lists{margin:0;padding:0;list-style:none}.sidebar-lists.custom{flex:1;overflow-y:auto}.sidebar-item{text-align:left;align-items:center;gap:14px;width:100%;padding:10px 24px;display:flex;position:relative}.sidebar-item:hover{background:var(--surface-hover)}.sidebar-item.active{background:var(--surface-selected);font-weight:600}.sidebar-item.active:before{content:"";background:var(--accent);width:3px;position:absolute;top:0;bottom:0;left:0}.sidebar-icon{color:var(--accent);flex-shrink:0}.smart-my-day .sidebar-icon{color:var(--text-muted)}.smart-important .sidebar-icon{color:#c239b3}.smart-planned .sidebar-icon{color:#038387}.sidebar-label{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.sidebar-count{color:var(--text-muted);font-size:12px}.sidebar-divider{border:none;border-top:1px solid var(--border);margin:8px 16px}.new-list{border-top:1px solid var(--border);align-items:center;gap:4px;padding:8px 12px;display:flex}.new-list .icon-button{color:var(--accent)}.new-list-button{min-width:0;color:var(--accent);text-align:left;border-radius:4px;flex:1;align-items:center;gap:8px;padding:6px 4px;display:flex}.new-list-button:hover{background:var(--surface-hover)}.list-view{background:var(--theme-bg);flex-direction:column;flex:1;min-width:0;padding:0 32px;display:flex}.theme-my-day{--theme:#3a6ea5}.theme-important{--theme:#c239b3}.theme-planned{--theme:#038387}@media (prefers-color-scheme:light){.theme-my-day{--theme-bg:#f0f4f9}.theme-important{--theme-bg:#fbf2fa}.theme-planned{--theme-bg:#eff8f8}}@media (prefers-color-scheme:dark){.theme-my-day{--theme:#8fb8e6}.theme-important{--theme:#e490da}.theme-planned{--theme:#5fc4c7}}.list-header{color:var(--theme);align-items:center;gap:8px;padding:24px 0 16px;display:flex}.sidebar-toggle{color:var(--theme);margin-left:-8px}.list-title-block{flex:1;min-width:0}.list-title,.list-title-input{text-overflow:ellipsis;white-space:nowrap;color:var(--theme);margin:0;font-size:22px;font-weight:600;line-height:1.3;overflow:hidden}.list-title-input{border-bottom:2px solid var(--theme);width:100%}.list-subtitle{color:var(--text-muted);margin:2px 0 0;font-size:12px}.list-actions{gap:4px;display:flex}.add-task{background:var(--surface);height:52px;box-shadow:var(--shadow);border-radius:4px;align-items:center;gap:12px;margin-bottom:8px;padding:0 16px;display:flex}.add-task-icon{color:var(--theme);display:flex}.add-task input{flex:1;min-width:0}.add-task input::placeholder{color:var(--theme)}.add-task input:focus::placeholder{color:var(--text-subtle)}.add-task-submit{border:1px solid var(--border);color:var(--theme);border-radius:4px;padding:4px 10px;font-size:12px;font-weight:600}.task-scroll{flex:1;margin:0 -8px;padding:0 8px 24px;overflow-y:auto}.task-list{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.task-item{background:var(--surface);min-height:52px;box-shadow:var(--shadow);cursor:pointer;border-radius:4px;align-items:center;gap:12px;padding:8px 16px;display:flex}.task-item:hover{background:var(--surface-hover)}.task-item.selected{background:var(--surface-selected)}.task-body{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.task-title{overflow-wrap:anywhere}.task-item.completed .task-title{color:var(--text-muted);text-decoration:line-through}.task-meta{color:var(--text-muted);flex-wrap:wrap;font-size:12px;display:flex}.meta-wrap,.meta-item{align-items:center;gap:4px;display:inline-flex}.meta-dot{margin:0 6px}.meta-item.overdue{color:var(--danger)}.check-button{color:var(--theme);flex-shrink:0;display:flex}.check-button .checked{color:var(--theme)}.star-button{color:var(--text-subtle);flex-shrink:0;display:flex}.star-button:hover,.star-button.on{color:var(--star)}.completed-section{margin-top:16px}.completed-toggle{background:var(--surface);box-shadow:var(--shadow);border-radius:4px;align-items:center;gap:6px;margin-bottom:8px;padding:6px 8px;font-weight:600;display:inline-flex}.completed-count{color:var(--text-muted);font-weight:400}.empty-state{text-align:center;color:var(--text-muted);margin-top:64px}.empty-state .inline-icon{vertical-align:-3px}.empty-title{color:var(--text);font-size:18px;font-weight:600}.detail-pane{background:var(--bg);border-left:1px solid var(--border);flex-direction:column;flex-shrink:0;width:360px;display:flex}.detail-scroll{flex-direction:column;flex:1;gap:8px;padding:16px;display:flex;overflow-y:auto}.detail-card{background:var(--surface);border:1px solid var(--border);border-radius:4px;padding:12px 16px}.detail-head{align-items:flex-start;gap:12px;display:flex}.detail-head .check-button{color:var(--accent);margin-top:2px}.detail-head .check-button .checked{color:var(--accent)}.detail-title{resize:none;field-sizing:content;flex:1;min-height:1.4em;font-size:18px;font-weight:600}.detail-title.completed{color:var(--text-muted);text-decoration:line-through}.steps ul{margin:0 0 4px;padding:0;list-style:none}.step{align-items:center;gap:10px;padding:4px 0;display:flex}.step .check-button,.step .check-button .checked{color:var(--accent)}.step-title{flex:1;min-width:0}.step.completed .step-title{color:var(--text-muted);text-decoration:line-through}.step .icon-button{visibility:hidden}.step:hover .icon-button{visibility:visible}.add-step{align-items:center;gap:10px;padding:4px 0;display:flex}.add-step input{flex:1}.add-step input::placeholder{color:var(--accent)}.detail-row{width:100%;color:var(--text-muted);text-align:left;align-items:center;gap:14px;display:flex}.detail-row.active{color:var(--accent)}.row-end{margin-left:auto}.due-options{flex-wrap:wrap;gap:6px;margin-top:10px;display:flex}.due-options button,.due-options input{border:1px solid var(--border);border-radius:4px;padding:4px 10px;font-size:12px}.due-options button:hover{background:var(--surface-hover)}.detail-note{resize:vertical;width:100%;min-height:90px}.detail-footer{border-top:1px solid var(--border);justify-content:space-between;align-items:center;height:52px;padding:0 12px;font-size:12px;display:flex}@media (width<=720px){.brand{width:auto}.sidebar{z-index:10;box-shadow:var(--shadow);position:absolute;top:48px;bottom:0;left:0}.list-view{padding:0 16px}.detail-pane{z-index:20;width:min(360px,100%);box-shadow:var(--shadow);position:absolute;top:48px;bottom:0;right:0}}.auth-page{background:linear-gradient(135deg, var(--topbar) 0%, #1a4d8a 100%);justify-content:center;align-items:center;height:100%;display:flex}.auth-box{background:var(--surface);border-radius:8px;width:100%;max-width:320px;padding:32px;box-shadow:0 10px 40px #0003}.auth-title{text-align:center;margin:0 0 24px;font-size:24px;font-weight:600}.auth-form{flex-direction:column;gap:12px;display:flex}.auth-form input{border:1px solid var(--border);background:var(--surface);border-radius:4px;padding:10px 12px;font-size:14px}.auth-form input:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 2px #2564cf1a}.auth-button{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:4px;padding:10px 16px;font-size:14px;font-weight:600;transition:background .2s}.auth-button:hover:not(:disabled){background:#1a4d8a}.auth-button:disabled{opacity:.6;cursor:not-allowed}.auth-message{text-align:center;border-radius:4px;margin-top:12px;padding:10px;font-size:12px}.auth-message.error{color:var(--danger);background:#fde7e7}.auth-message.success{color:#107c10;background:#e7f4e7}.auth-toggle{text-align:center;color:var(--text-muted);margin-top:16px;font-size:12px}.auth-link{color:var(--accent);cursor:pointer;background:0 0;border:none;padding:0;font-size:12px;text-decoration:underline}.auth-link:hover{color:#1a4d8a}.loading-state{color:var(--text-muted);flex:1;justify-content:center;align-items:center;font-size:16px;display:flex}.sync-error{color:#a4262c;background:#fde7e7;justify-content:space-between;align-items:center;gap:12px;padding:8px 16px;font-size:13px;display:flex}.auth-confirm{text-align:center;flex-direction:column;align-items:center;gap:12px;display:flex}.auth-confirm .auth-title{margin:0}.auth-confirm p{overflow-wrap:anywhere;margin:0;line-height:1.5}.auth-confirm-icon{color:var(--accent)}.auth-confirm .auth-button{width:100%;margin-top:8px}.topbar-user{align-items:center;gap:12px;min-width:0;margin-left:auto;display:flex}.offline-badge{white-space:nowrap;background:#ffffff2e;border-radius:12px;flex-shrink:0;align-items:center;gap:6px;padding:3px 10px;font-size:13px;display:inline-flex}.update-prompt{z-index:50;background:var(--surface);max-width:calc(100vw - 32px);color:var(--text);border-radius:6px;align-items:center;gap:12px;padding:8px 8px 8px 16px;font-size:14px;display:flex;position:fixed;bottom:20px;left:50%;transform:translate(-50%);box-shadow:0 6.4px 14.4px #00000021,0 1.2px 3.6px #0000001c}.update-reload{background:var(--accent);color:#fff;border-radius:4px;padding:4px 12px;font-weight:600}.topbar-email{opacity:.9;text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.signout-button{color:#fff;white-space:nowrap;border:1px solid #fff9;border-radius:4px;align-items:center;gap:6px;height:30px;padding:0 12px;font-size:13px;display:inline-flex}.signout-button:hover{background:#ffffff26}@media (width<=720px){.topbar-email{display:none}.offline-badge{padding:4px 6px}.offline-badge-text{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}.load-error{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:8px;padding:24px;display:flex}.load-error h2{margin:0}.load-error p{color:var(--text-muted);margin:0}.load-error-detail{overflow-wrap:anywhere;max-width:480px;font-family:Consolas,monospace;font-size:12px}.load-error-actions{gap:12px;margin-top:12px;display:flex}.signout-button.secondary{color:var(--text);border-color:var(--border);height:auto}.signout-button.secondary:hover{background:var(--surface-hover)}.sidebar-tree{flex:1;padding-bottom:24px;overflow-y:auto}.sidebar-tree-children{margin:0;padding:0;list-style:none}.sidebar-bin{border-top:1px solid var(--border);max-height:40%;overflow-y:auto}.tree-row{cursor:pointer;-webkit-user-select:none;user-select:none;gap:8px;padding-top:8px;padding-bottom:8px;padding-right:8px}.tree-row:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.tree-toggle{width:18px;height:18px;color:var(--text-muted);border-radius:3px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}button.tree-toggle:hover{background:var(--surface-hover);color:var(--text)}.kind-group .sidebar-icon{color:#ca5010}.kind-bin .sidebar-icon,.tree-row.in-bin .sidebar-label{color:var(--text-muted)}.row-menu{opacity:0}.tree-row:hover .row-menu,.tree-row:focus-within .row-menu,.tree-row.active .row-menu,.row-menu[aria-haspopup]:focus-visible{opacity:1}@media (hover:none){.row-menu{opacity:1}}.sidebar-rename{border:1px solid var(--accent);background:var(--surface);border-radius:3px;flex:1;min-width:0;margin:-3px 0;padding:2px 4px}.sidebar-item.drop-target{background:var(--surface-selected);box-shadow:inset 0 0 0 2px var(--accent)}.sidebar-tree.drop-target-root{box-shadow:inset 0 0 0 2px var(--accent);background:var(--surface-selected)}.task-item[draggable=true]{cursor:grab}.item-menu{z-index:100;background:var(--surface);border:1px solid var(--border);border-radius:6px;min-width:200px;padding:4px 0;position:fixed;box-shadow:0 8px 24px #0000002e}.item-menu button{text-align:left;align-items:center;gap:10px;width:100%;padding:8px 14px;display:flex}.item-menu button:hover,.item-menu button:focus-visible{background:var(--surface-hover);outline:none}.item-menu button.danger{color:var(--danger)}.dialog-backdrop{z-index:200;background:#00000059;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.dialog{background:var(--surface);border-radius:8px;flex-direction:column;width:min(420px,100%);max-height:min(560px,100%);display:flex;box-shadow:0 16px 48px #0000004d}.dialog-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:12px 12px 12px 16px;display:flex}.dialog-header h2{text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:16px;overflow:hidden}.move-options{margin:0;padding:6px 0;list-style:none;overflow-y:auto}.move-option{text-align:left;align-items:center;gap:10px;width:100%;padding:8px 16px;display:flex}.move-option:hover:not(:disabled){background:var(--surface-hover)}.move-option:disabled{color:var(--text-subtle);cursor:not-allowed}.move-option span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.dialog-hint{color:var(--text-muted);margin:0;padding:0 16px 16px}.list-path{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;margin:0 0 2px;font-size:12px;overflow:hidden}.empty-bin-button{border:1px solid var(--border);background:var(--surface);color:var(--danger);white-space:nowrap;border-radius:4px;align-items:center;gap:6px;padding:6px 12px;display:inline-flex}.empty-bin-button:hover{background:var(--surface-hover)}.bin-notice{background:var(--surface);color:var(--text-muted);box-shadow:var(--shadow);border-radius:4px;flex-wrap:wrap;align-items:center;gap:4px;margin:0 0 12px;padding:8px 12px;display:flex}.detail-location{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--text);flex:1;overflow:hidden}.detail-location-label{color:var(--text-muted)}.detail-row-action{color:var(--accent);flex-shrink:0;font-size:12px}.child-item{background:var(--surface);width:100%;min-height:52px;box-shadow:var(--shadow);text-align:left;border-radius:4px;align-items:center;gap:12px;padding:8px 16px;display:flex}.child-item:hover{background:var(--surface-hover)}.child-item:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.child-icon{color:var(--accent);flex-shrink:0}.child-item.kind-group .child-icon{color:#ca5010}.child-body{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.child-name{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.child-meta{color:var(--text-muted);font-size:12px}.child-chevron{color:var(--text-subtle);flex-shrink:0}.sidebar-item.drop-before{box-shadow:inset 0 3px 0 var(--accent)}.sidebar-item.drop-after{box-shadow:inset 0 -3px 0 var(--accent)}.task-item.drop-before{box-shadow:inset 0 3px 0 var(--theme), var(--shadow)}.task-item.drop-after{box-shadow:inset 0 -3px 0 var(--theme), var(--shadow)}.sort-chip{background:var(--surface);box-shadow:var(--shadow);color:var(--theme);border-radius:14px;align-self:flex-start;align-items:center;gap:6px;margin:0 0 10px;padding:2px 4px 2px 10px;font-size:12px;display:inline-flex}.menu-check{color:var(--accent);margin-left:auto}.child-row[draggable=true] .child-item{cursor:grab}.child-row.drop-before>.child-item{box-shadow:inset 0 3px 0 var(--theme), var(--shadow)}.child-row.drop-after>.child-item{box-shadow:inset 0 -3px 0 var(--theme), var(--shadow)}.child-row.drop-target>.child-item{background:var(--surface-selected);box-shadow:inset 0 0 0 2px var(--theme), var(--shadow)}.task-icons{flex-shrink:0;align-items:center;gap:10px;display:flex}.task-indicator{color:var(--text-muted);display:flex}.sun-button{color:var(--text-subtle);display:flex}.sun-button:hover{color:#d39e00}.sun-button.on{color:#f5b400}.task-indicator.note-indicator{color:#8764b8}@media (prefers-color-scheme:dark){.task-indicator.note-indicator{color:#b4a0ff}}.signout-button.compact{gap:0;padding:0 7px;transition:gap .18s 1s,padding .18s 1s}.signout-button.compact .signout-label{opacity:0;max-width:0;transition:max-width .18s 1s,opacity .18s 1s;overflow:hidden}.signout-button.compact:hover,.signout-button.compact:focus-visible{gap:6px;padding:0 12px;transition-delay:0s}.signout-button.compact:hover .signout-label,.signout-button.compact:focus-visible .signout-label{opacity:1;max-width:80px;transition-delay:0s}@media (prefers-reduced-motion:reduce){.signout-button.compact,.signout-button.compact .signout-label{transition-duration:0s}}
