:root{--bg:#f6f5f2;--surface:#fff;--text:#1d1f1e;--muted:#6b706d;--line:#e4e2dc;--accent:#2f6f5e;--accent-soft:#e2efe9;--late:#c0442c;--late-soft:#fbe9e4;--radius:14px;--shadow:0 1px 2px #0000000d, 0 2px 8px #0000000a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;-webkit-tap-highlight-color:transparent;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}@media (prefers-color-scheme:dark){:root{--bg:#141615;--surface:#1e2120;--text:#ecefed;--muted:#9aa19d;--line:#2d3230;--accent:#5cb89c;--accent-soft:#1f3a32;--late:#ff8a70;--late-soft:#3a221c;--shadow:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);margin:0}body{font-size:16px;line-height:1.4}h1,h2,h3{margin:0}h1{letter-spacing:-.02em;font-size:1.75rem}h2{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:22px 4px 8px;font-size:.8rem;font-weight:600}h3{font-size:.95rem}.muted{color:var(--muted)}.small{font-size:.85rem}.cap:first-letter{text-transform:uppercase}.error{color:var(--late)}.center{place-items:center;min-height:100dvh;display:grid}.app main{padding-bottom:calc(76px + env(safe-area-inset-bottom))}.page{max-width:640px;padding:calc(16px + env(safe-area-inset-top)) 16px 24px;margin:0 auto}.page-head{flex-direction:column;gap:4px;margin:8px 4px 12px;display:flex}.row-between{flex-direction:row;justify-content:space-between;align-items:center}.small-title{font-size:1.05rem}.stack{flex-direction:column;gap:12px;display:flex}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:12px;padding:16px}form.stack>.card{margin-bottom:0}.tabbar{background:color-mix(in srgb, var(--surface) 92%, transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:6px 8px calc(6px + env(safe-area-inset-bottom));z-index:10;justify-content:space-around;align-items:center;display:flex;position:fixed;inset:auto 0 0}.tabbar a{color:var(--muted);flex-direction:column;flex:1;align-items:center;gap:2px;padding:4px 0;font-size:.7rem;text-decoration:none;display:flex}.tabbar a.active{color:var(--accent)}.tabbar a.tab-add{background:var(--accent);color:#fff;border-radius:50%;flex:none;justify-content:center;width:52px;height:52px;margin:-18px 8px 0;box-shadow:0 4px 14px #0003}@media (width>=900px){.tabbar{border-top:0;border-bottom:1px solid var(--line);justify-content:center;gap:24px;top:0;bottom:auto}.tabbar a{flex-direction:row;flex:none;gap:6px;font-size:.9rem}.tabbar a.tab-add{width:40px;height:40px;margin:0}.app main{padding:64px 0 24px}}.tasks{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.task{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);align-items:center;gap:12px;padding:12px 8px 12px 12px;transition:opacity .25s,transform .25s;display:flex;position:relative}.task.leaving{opacity:0;transform:translate(24px)}.task.overdue{box-shadow:inset 3px 0 0 var(--late), var(--shadow)}.check{border:2px solid var(--line);color:#0000;cursor:pointer;background:0 0;border-radius:50%;flex:none;place-items:center;width:30px;height:30px;padding:0;display:grid}.check:hover,.check:focus-visible{border-color:var(--accent);color:var(--accent)}.check:active{background:var(--accent);color:#fff}.task-body{min-width:0;color:inherit;flex-direction:column;flex:1;gap:2px;text-decoration:none;display:flex}.task-title{overflow-wrap:anywhere;font-weight:500}.task-meta{color:var(--muted);flex-wrap:wrap;gap:4px 10px;font-size:.8rem;display:flex}.task-meta .late{color:var(--late);font-weight:600}.task-meta .rule{text-overflow:ellipsis;overflow:hidden}.pill{background:var(--accent-soft);color:var(--accent);border-radius:99px;padding:0 8px}.task.done .task-title{color:var(--muted);text-decoration:line-through}.more{color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:50%;width:36px;height:36px;font-size:1.4rem}.menu{z-index:5;background:var(--surface);border:1px solid var(--line);border-radius:12px;flex-direction:column;min-width:180px;display:flex;position:absolute;top:calc(100% - 6px);right:8px;overflow:hidden;box-shadow:0 8px 24px #00000026}.menu button{color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;padding:12px 16px;font-size:.95rem}.menu button+button{border-top:1px solid var(--line)}.count{background:var(--line);border-radius:99px;margin-left:4px;padding:1px 7px;font-size:.7rem}section.accent h2{color:var(--late)}.empty{text-align:center;flex-direction:column;align-items:center;gap:16px;padding:48px 0;display:flex}label{color:var(--muted);flex-direction:column;gap:6px;font-size:.9rem;display:flex}input,select,textarea{font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:10px;width:100%;min-height:44px;padding:10px 12px}.row input,.row select{flex:1;width:auto}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:-1px}textarea{resize:vertical}.title-input{background:0 0;border:0;padding:4px 0;font-size:1.15rem;font-weight:500}.title-input:focus{outline:0}.num{text-align:center;max-width:80px}.search{background:var(--surface);margin-bottom:4px}.switch{color:var(--text);cursor:pointer;flex-direction:row;align-items:flex-start;gap:12px}.switch input{appearance:none;background:var(--line);cursor:pointer;border:0;border-radius:99px;flex:none;width:44px;height:26px;min-height:0;padding:0;transition:background .2s;position:relative}.switch input:after{content:"";background:#fff;border-radius:50%;width:20px;height:20px;transition:transform .2s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0000004d}.switch input:checked{background:var(--accent)}.switch input:checked:after{transform:translate(18px)}.switch span{flex-direction:column;gap:2px;padding-top:2px;display:flex}.switch small{color:var(--muted)}.field{flex-direction:column;gap:6px;display:flex}.field-label{color:var(--muted);font-size:.9rem}.days{justify-content:space-between;gap:6px;display:flex}.days button{aspect-ratio:1;border:1px solid var(--line);background:var(--bg);max-width:44px;color:var(--text);cursor:pointer;border-radius:50%;flex:1;font-weight:600}.days button.on{background:var(--accent);border-color:var(--accent);color:#fff}.times{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.time-chip{background:var(--bg);border:1px solid var(--line);border-radius:10px;align-items:center;display:inline-flex}.time-chip input{background:0 0;border:0;width:auto}.time-chip button{color:var(--muted);cursor:pointer;background:0 0;border:0;padding:0 10px;font-size:1.2rem}.segmented{background:var(--line);border-radius:10px;align-self:flex-start;gap:2px;padding:3px;display:inline-flex}.segmented.full{align-self:stretch;display:flex}.segmented button{color:var(--text);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:8px;flex:1;padding:8px 12px;font-size:.9rem}.segmented button.on{background:var(--surface);box-shadow:var(--shadow);font-weight:600}.btn{font:inherit;border:1px solid var(--line);background:var(--surface);color:var(--text);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;gap:6px;min-height:44px;padding:10px 16px;text-decoration:none;display:inline-flex}.btn:disabled{opacity:.5;cursor:default}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}.btn.big{width:100%;font-size:1.05rem}.btn.small{min-height:34px;padding:4px 12px;font-size:.85rem}.btn.link{color:var(--accent);background:0 0;border:0;padding:8px 0}.btn.danger{width:100%;color:var(--late);border-color:var(--late-soft);background:0 0;margin-top:12px}.back{justify-content:flex-start;width:70px}.status{background:var(--accent-soft);justify-content:space-between;align-items:center;gap:12px;display:flex}.history{margin:8px 0 0;padding:0;font-size:.9rem;list-style:none}.history li{border-top:1px solid var(--line);padding:6px 0}.login{flex-direction:column;justify-content:center;align-items:center;gap:16px;max-width:380px;min-height:100dvh;margin:0 auto;padding:24px 16px;display:flex}.login img{border-radius:18px}.login form{width:100%}.log{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);margin:0;padding:0;list-style:none;overflow:hidden}.log li{align-items:center;gap:12px;padding:10px 8px 10px 14px;display:flex}.log li+li{border-top:1px solid var(--line)}.log-time{font-variant-numeric:tabular-nums;color:var(--muted);flex:none;width:44px;font-size:.9rem}.log-title{min-width:0;color:var(--text);overflow-wrap:anywhere;flex:1;text-decoration:none}.log li.skipped .log-title{color:var(--muted)}.muted-pill{background:var(--line);color:var(--muted);margin-left:6px;font-size:.75rem}.icon-btn{color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:50%;flex:none;width:36px;height:36px;font-size:1.2rem}.icon-btn:hover{background:var(--bg);color:var(--late)}.history li{justify-content:space-between;align-items:center;gap:8px;display:flex}.stat-row{gap:8px;display:flex}.stat{background:var(--bg);border-radius:10px;flex-direction:column;flex:1;gap:2px;padding:10px 12px;display:flex}.stat strong{font-variant-numeric:tabular-nums;font-size:1.4rem}.habit-scroll{overflow-x:auto}.habit-grid{align-items:center;gap:3px;min-width:280px;display:grid}.habit-month,.habit-dow{color:var(--muted);white-space:nowrap;height:14px;font-size:.65rem;overflow:visible}.cell{aspect-ratio:1;background:var(--line);cursor:pointer;border:0;border-radius:3px;width:100%;padding:0;display:block}i.cell{vertical-align:-1px;cursor:default;width:11px;display:inline-block}.cell.empty{background:color-mix(in srgb, var(--line) 55%, transparent)}.cell.before{cursor:default;background:0 0}.cell.full,.cell.extra{background:var(--accent)}.cell.partial{background:color-mix(in srgb, var(--accent) 45%, var(--surface))}.cell.skipped{background:repeating-linear-gradient(135deg, var(--muted) 0 2px, transparent 2px 4px);opacity:.6}.cell.missed{background:var(--late-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--late) 45%, transparent)}.cell.pending{box-shadow:inset 0 0 0 1.5px var(--accent);background:0 0}.cell.today{outline:2px solid var(--text);outline-offset:1px}.cell.sel{outline:2px solid var(--accent);outline-offset:1px}.habit-detail{min-height:1.4em;margin:8px 0 4px}.habit-legend{color:var(--muted);flex-wrap:wrap;gap:4px 12px;display:flex}
