#list-view{--row-padding: 11px;--font-size: 17px;--grip-size: 44px;--bullet-size: 44px;--row-height: calc(var(--row-padding) * 2 + 22px);--toast-space: 72px;--move-bar-height: 44px;position:relative;flex:1 1 auto;min-height:0;display:flex;flex-direction:column}#list-view.fine{--row-padding: 7px;--font-size: 15px;--grip-size: 36px;--bullet-size: 36px}#header{flex-shrink:0;height:var(--header-height);padding:env(safe-area-inset-top,0px) var(--inset) 0;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:.5px solid var(--border)}.pickers{min-width:0;margin:0 auto 0 -8px;display:flex;align-items:center;font-size:17px;font-weight:500;white-space:nowrap}.picker{min-width:0;height:44px;padding:0 8px;display:flex;align-items:center;gap:4px;border:none;border-radius:var(--radius);background:transparent;font:inherit;cursor:pointer;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.picker[hidden]{display:none}.picker:active{background:var(--fill-ghost-selected)}.picker:disabled{opacity:.4;cursor:default}.picker-label{overflow:hidden;text-overflow:ellipsis}.picker .icon{flex-shrink:0;font-size:16px;color:var(--text-secondary);transition:transform .15s}.picker[aria-expanded=true] .icon{transform:rotate(180deg)}#scrub{position:absolute;z-index:6;width:max-content;margin:0;padding:0;overflow:hidden;list-style:none;border:.5px solid var(--border-strong);border-radius:var(--radius);background:var(--surface-2);box-shadow:0 8px 24px #00000029;pointer-events:none}#scrub[hidden]{display:none}#scrub li{height:var(--scrub-step);padding:0 12px;display:flex;align-items:center;gap:8px;font-size:15px;white-space:nowrap}#scrub li.current{background:var(--bg-accent);color:var(--text-accent);font-weight:500}#scrub .text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}#scrub .tag,#scrub .count{flex-shrink:0;font-size:13px;color:var(--text-secondary)}#scrub .tag:empty,#scrub .count:empty{display:none}#hint{flex:0 1000 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;color:var(--text-secondary)}.header-toggle{flex-shrink:0;width:44px;height:44px;margin-right:-12px;padding:0;display:flex;align-items:center;justify-content:center;border:none;border-radius:var(--radius);background:transparent;color:var(--text-secondary);font-size:20px;cursor:pointer}.header-toggle[hidden]{display:none}.header-toggle[aria-pressed=true]{background:var(--bg-accent);color:var(--text-accent)}.header-action{flex-shrink:0;height:44px;margin-right:-12px;padding:0 10px;display:flex;align-items:center;gap:2px;border:none;border-radius:var(--radius);background:transparent;color:var(--text-accent);font-size:18px;cursor:pointer}.header-action[hidden]{display:none}.action-count{font-size:13px;font-variant-numeric:tabular-nums}.header-toggle:active,.header-action:active{background:var(--fill-ghost-selected)}#scroller{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;position:relative;-webkit-overflow-scrolling:touch;scrollbar-width:none}#scroller::-webkit-scrollbar{display:none;width:0;height:0}#list-view.moving #scroller{overscroll-behavior:none}#bottom-space{position:absolute;left:0;right:0}#list-view.moving #viewport{position:sticky;top:0;overflow:hidden}#list-view.moving :is(#top-space,#top-add,#add-area,#bottom-space){display:none}#add-area{padding-bottom:env(safe-area-inset-bottom,0px)}#add-area.with-toast{padding-bottom:calc(var(--toast-space) + env(safe-area-inset-bottom,0px))}#scroll-thumb{position:absolute;right:3px;top:0;width:3px;height:40px;border-radius:2px;background:var(--border-stronger);opacity:0;transition:opacity .3s ease;pointer-events:none;z-index:5}#scroll-thumb.visible{opacity:1;transition:opacity 80ms ease}#move-bar{display:none;flex-shrink:0;height:calc(var(--move-bar-height) + env(safe-area-inset-bottom,0px));padding:0 6px env(safe-area-inset-bottom,0px);align-items:center;justify-content:space-between;gap:12px;border-top:.5px solid var(--border)}#list-view.moving #move-bar{display:flex}.bar-start,.bar-end{display:flex;align-items:center}.bar-button[hidden]{display:none}.bar-button:disabled{opacity:.3;cursor:default}.bar-button{border:none;background:transparent;height:44px;min-width:44px;padding:0 8px;white-space:nowrap;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:var(--radius)}#move-delete{color:var(--text-danger);font-size:20px}#pick-date{color:var(--text-accent);font-size:20px}#move-position{flex:1;min-width:0;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:15px;font-weight:500}#move-to,#schedule-to,#move-rename,#move-done{color:var(--text-accent);font-size:17px;font-weight:500}#move-to[aria-pressed=true],#schedule-to[aria-pressed=true]{background:var(--bg-accent)}#list{list-style:none;margin:0;padding:0}#list li,.add-button{position:relative;display:flex;align-items:center;gap:6px;padding:0 6px 0 calc(var(--inset) - 12px);font-family:var(--font-sans);font-size:var(--font-size);font-weight:400;letter-spacing:normal;line-height:22px;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;text-size-adjust:100%}#list li{background:var(--surface-2);cursor:text;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:pan-y;transition:background .12s,color .12s}#list li:after{content:"";position:absolute;left:calc(var(--inset) - 12px + var(--bullet-size) + 6px);right:0;bottom:0;height:.5px;background:var(--border);pointer-events:none}#list li:focus-visible{outline:2px solid var(--fill-accent);outline-offset:-2px}.add-button{width:100%;height:var(--row-height);margin:0;border:none;background:transparent;color:var(--text-secondary);text-align:left;cursor:pointer}.add-button[hidden]{display:none}#date-dialog{width:min(calc(100% - 32px),360px);padding:16px 16px 8px;border:none;border-radius:12px;background:var(--surface-2);color:var(--text-primary);font-size:15px}#date-dialog::backdrop{background:#0000004d}#date-form{display:flex;flex-direction:column;gap:12px}#date-title{margin:0;font-size:17px;font-weight:500;overflow-wrap:anywhere}.date-actions{display:flex;justify-content:flex-end}.form-button{flex-shrink:0;min-width:44px;height:44px;padding:0 8px;display:flex;align-items:center;justify-content:center;border:none;border-radius:var(--radius);background:transparent;color:var(--text-accent);font:inherit;white-space:nowrap;cursor:pointer}.form-button:active{background:var(--fill-ghost-selected)}.lead{width:var(--bullet-size);flex-shrink:0;display:flex;align-items:center;justify-content:center;color:var(--text-accent);font-size:18px}#list .bullet{position:relative;align-self:flex-start;margin:calc(var(--row-padding) + 11px - var(--bullet-size) / 2) 0 0;flex-shrink:0;width:var(--bullet-size);height:var(--bullet-size);min-width:0;min-height:0;padding:0;border:none;background:transparent;display:flex;align-items:center;justify-content:center;color:var(--text-primary);cursor:pointer;line-height:0}#list .bullet:before{content:"";position:absolute;inset:calc(var(--bullet-size) / 2 - 16px);border-radius:8px;transition:background .1s}#list .bullet:active:before{background:var(--fill-ghost-selected)}#list .bullet:focus-visible{outline:2px solid var(--fill-accent);outline-offset:-4px}#list .bullet .dot{position:relative;width:8px;height:8px}#list .bullet .cross{position:relative;display:none;font-size:18px}#list li.done .bullet{color:var(--text-secondary)}#list li.done .bullet .dot{display:none}#list li.done .bullet .cross{display:block}#list .bullet .overdue{position:relative;display:none;font-size:20px}#list li.overdue .bullet{color:var(--text-accent)}#list li.overdue .bullet .dot{display:none}#list li.overdue .bullet .overdue{display:block}#list .text{flex:1;min-width:0;padding:var(--row-padding) 0;white-space:normal;overflow-wrap:anywhere;font:inherit;line-height:22px;transition:color .15s}#list li.header{background:var(--surface-1);color:var(--text-secondary);cursor:pointer}#list li.header .bullet{visibility:hidden}#list li.header .text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}#list li.header:where([data-depth="1"]){background:transparent}#list li.header:where([data-depth="1"]) .text{font-weight:500;letter-spacing:0;text-transform:none}#list .grip[hidden]{visibility:hidden}#list .swipe-hint{position:absolute;top:0;bottom:0;left:calc(var(--inset) - 12px);width:var(--bullet-size);display:none;align-items:center;justify-content:center;font-size:20px;color:var(--text-secondary)}#list .schedule-hint{left:auto;right:6px}#list li.swiping:not(.swiping-left) .move-hint,#list li.swiping-left .schedule-hint{display:flex}#list li.swiping.armed .swipe-hint{color:var(--text-accent)}#list li.swiping>:not(.swipe-hint){transform:translate(var(--swipe-x))}#list .tag{flex-shrink:0;font-size:13px;color:var(--text-secondary)}#list .tag:empty{display:none}#list .count{flex-shrink:0;font-size:15px;color:var(--text-secondary)}#list .count:empty{display:none}#list-view.catalog #list li{cursor:pointer}#list li.current .bullet{color:var(--text-accent)}#list li.current .text{font-weight:500}#list li.done .text{color:var(--text-secondary)}#list .editor{display:block;flex:1;min-width:0;height:var(--row-height);min-height:0;max-height:none;border:none;padding:var(--row-padding) 0;margin:0;background:transparent;box-shadow:none;outline:none;border-radius:0;resize:none;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;-webkit-appearance:none;appearance:none;font-family:var(--font-sans);font-size:var(--font-size);font-weight:400;letter-spacing:normal;line-height:22px;color:inherit;user-select:text;-webkit-user-select:text}#list li.done .editor{color:var(--text-secondary)}#list .caret-mirror{position:absolute;visibility:hidden;pointer-events:none;white-space:pre-wrap;overflow-wrap:anywhere}#list li.editing{outline:2px solid var(--fill-accent);outline-offset:-2px;z-index:1}#list li.selected{background:var(--bg-accent);color:var(--text-accent);outline:2px solid var(--fill-accent);outline-offset:-2px;z-index:2;transition:background .12s}#list li.selected:after,#list li.editing:after{display:none}#list .grip{position:relative;align-self:center;flex-shrink:0;width:var(--grip-size);height:var(--grip-size);min-height:0;margin:0;padding:0;border:none;background:transparent;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--text-secondary);cursor:pointer;transition:opacity .12s}#list .grip:before{content:"";position:absolute;inset:calc(var(--grip-size) / 2 - 16px);border-radius:8px;transition:background .1s}#list .grip:active:before{background:var(--fill-ghost-selected)}#list .grip .icon{position:relative}#list .grip:focus-visible{outline:2px solid var(--fill-accent);outline-offset:-4px}#list li.selected .bullet,#list li.selected .grip,#list li.selected .text{color:var(--text-accent)}#list-view.moving #list li:not(.selected),#list-view.moving #list li:not(.selected) .bullet{color:var(--text-secondary)}#list-view.moving #list li.target,#list-view.moving #list li.target .bullet{color:var(--text-accent)}#list-view.catalog #list li[data-kind=archive] .bullet,#list-view.catalog #list li[data-kind=recurring] .bullet,#list-view.catalog #list li[data-kind=skip] .bullet{visibility:hidden}#list-view.catalog:not(.carrying) #list li.checked .bullet .dot{display:none}#list-view.catalog:not(.carrying) #list li.checked .bullet .cross{display:block}#list li.target .text{font-weight:500}#list-view.catalog.carrying #list li.selected{padding-left:calc(var(--inset) + 12px)}#list-view.moving #list .text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#list li.highlight{background:var(--bg-accent)}@media(hover:hover){.picker:not(:disabled):hover,.header-toggle:hover,.header-action:hover,.form-button:hover{background:var(--fill-ghost-hover)}#list .grip:hover:before,#list .bullet:hover:before{background:var(--fill-ghost-hover)}}#list-view.fine #list li .grip{opacity:0}#list-view.fine.moving #list .grip,#list-view.fine #list li:hover .grip,#list-view.fine #list li:focus-within .grip,#list-view.fine #list li:focus .grip{opacity:1}#list-view.carrying #list li:not(.selected) .grip{visibility:hidden}#empty-state{padding:40px 24px 20px;text-align:center}.empty-title{margin:0 0 4px;font-size:17px;font-weight:500}.empty-body{margin:0;font-size:15px;line-height:1.5;color:var(--text-secondary)}#toast{position:absolute;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));max-width:480px;margin:0 auto;height:48px;display:flex;align-items:center;gap:8px;padding:0 4px 0 16px;border-radius:12px;background:var(--fill-primary);color:var(--on-primary);font-size:15px;opacity:0;visibility:hidden;transform:translateY(8px);pointer-events:none;transition:opacity .18s ease,transform .18s ease,visibility 0s .18s;z-index:6}#list-view.moving #toast{bottom:calc(var(--move-bar-height) + 12px + env(safe-area-inset-bottom,0px))}#toast.visible{opacity:1;visibility:visible;transform:none;pointer-events:auto;transition:opacity .18s ease,transform .18s ease}#toast-message{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#toast-undo{border:none;background:transparent;color:var(--on-primary);font-size:15px;font-weight:500;height:44px;padding:0 12px;cursor:pointer}@media(prefers-reduced-motion:reduce){#list li,#list li.selected,#list .grip,#list .text,#toast,#toast.visible{transition:none}}
