:root{--bg:#0e0f11;--surface:#16181b;--surface-2:#1c1f23;--border:#24272c;--text:#e8e9ea;--muted:#8a8f98;--accent:#4ade80;--accent-ink:#06210f;--accent-soft:#4ade801f;--rest:#5d6b7e;--excused:#a07a2c;--missed:#22262b;--placeholder:#7d828b;--marker:#0e0f11bf;--danger:#f08a8a;--radius:14px;--radius-sm:10px;--tap:44px;--gutter:16px;--max-width:560px;--tabbar-h:64px;--font:Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ease:cubic-bezier(.2, .7, .2, 1);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*,:before,:after{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);font-family:var(--font);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;margin:0;font-size:16px;line-height:1.45}h1,h2,p{margin:0}a{color:inherit}code{color:var(--text);font-size:.9em}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.muted{color:var(--muted)}.shell{min-height:100dvh;padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 24px)}.content{max-width:var(--max-width);padding:calc(env(safe-area-inset-top) + 24px) var(--gutter) 0;margin:0 auto}.screen{flex-direction:column;gap:20px;display:flex}.stack{flex-direction:column;gap:14px;display:flex}.row{flex-wrap:wrap;gap:10px;display:flex}.center-screen{max-width:400px;min-height:100dvh;padding:0 var(--gutter);flex-direction:column;justify-content:center;gap:10px;margin:0 auto;display:flex}.app-name{letter-spacing:-.03em;color:var(--accent);font-size:40px;font-weight:700}.login-form{margin-top:24px}.eyebrow{letter-spacing:.06em;text-transform:uppercase;color:var(--accent);font-size:13px;font-weight:600}.screen-title{letter-spacing:-.02em;font-size:24px;font-weight:600}.today-header,.screen-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.today-header{align-items:flex-start}.today-header .btn{white-space:nowrap;margin-right:-12px}.screen-header{justify-content:flex-start}.btn{min-height:var(--tap);border-radius:var(--radius-sm);background:var(--surface-2);color:var(--text);font:inherit;cursor:pointer;border:1px solid #0000;justify-content:center;align-items:center;padding:0 18px;font-weight:600;text-decoration:none;transition:background .15s,opacity .15s;display:inline-flex}.btn:disabled{opacity:.45;cursor:default}.btn-primary{background:var(--accent);color:var(--accent-ink)}.btn-quiet{color:var(--muted);background:0 0;font-weight:500}.btn-quiet:hover{color:var(--text)}.btn-small{min-height:var(--tap);padding:0 12px;font-size:14px}.btn-danger{border-color:var(--border);color:var(--danger);background:0 0}.btn-icon{width:var(--tap);padding:0;font-size:20px}.btn-back{margin-left:-8px;padding:0 8px}.field{border:0;flex-direction:column;gap:6px;min-width:0;margin:0;padding:0;display:flex}.field>span,.field>legend{color:var(--muted);margin-bottom:6px;padding:0;font-size:14px}.field>legend+*{margin-top:0}.field input{border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);min-height:48px;color:var(--text);font:inherit;width:100%;padding:0 14px}.field input::placeholder{color:var(--placeholder)}.field input:focus{border-color:var(--accent);outline:none}.hint{color:var(--muted);font-size:13px}.form-error{color:var(--danger);font-size:14px}.form-info{color:var(--accent);font-size:14px}.segmented{border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--border);grid-template-columns:1fr 1fr;gap:4px;padding:4px;display:grid}.segment{min-height:40px;color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:8px;font-weight:500}.segment[aria-checked=true]{background:var(--surface-2);color:var(--text)}.stepper{align-items:center;gap:8px;margin-top:8px;display:flex}.stepper output{text-align:center;min-width:110px;font-weight:600}.archive-zone{border-top:1px solid var(--border);padding-top:16px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px}.habit-list{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.habit-card{transition:opacity .3s var(--ease), border-color .3s var(--ease)}.habit-card-body{align-items:center;gap:12px;display:flex}.habit-main{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.habit-title-row{align-items:center;gap:4px;margin:-8px 0 -6px;display:flex}.habit-name{text-overflow:ellipsis;white-space:nowrap;min-height:var(--tap);align-items:center;font-size:17px;font-weight:600;text-decoration:none;display:flex;overflow:hidden}a.habit-name:hover{text-underline-offset:3px;text-decoration:underline}.btn-more{color:var(--muted);background:0 0;flex-shrink:0}.btn-more svg{fill:currentColor;width:20px;height:20px}.streak-line{align-items:center;gap:6px;min-height:48px;display:flex}.streak-line.muted{font-size:15px}.streak-number{letter-spacing:-.04em;color:var(--accent);font-variant-numeric:tabular-nums;font-size:44px;font-weight:700;line-height:1}.streak-unit{color:var(--muted);align-self:flex-end;padding-bottom:4px;font-size:15px}.habit-min{color:var(--muted);font-size:14px}.habit-meta{color:var(--muted);flex-wrap:wrap;gap:4px 12px;font-size:13px;display:flex}.habit-meta:empty{display:none}.habit-card.is-done{border-color:#0000}.habit-card.is-done .habit-name,.habit-card.is-done .habit-min{opacity:.65}.check{border:2px solid var(--border);width:60px;height:60px;color:var(--muted);cursor:pointer;transition:background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);background:0 0;border-radius:50%;flex-shrink:0;place-items:center;display:grid}.check svg{fill:none;stroke:currentColor;stroke-width:2.4px;stroke-linecap:round;stroke-linejoin:round;width:26px;height:26px}.check:hover{border-color:var(--muted)}.check[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);animation:pop .28s var(--ease)}@keyframes pop{0%{transform:scale(.86)}60%{transform:scale(1.06)}to{transform:scale(1)}}.habit-card.is-protected{border-style:dashed}.swatch{border-radius:4px;flex-shrink:0;width:14px;height:14px;display:inline-block;position:relative}.swatch-done{background:var(--accent)}.swatch-rest{background:var(--rest)}.swatch-rest:after{content:"";background:var(--marker);border-radius:1px;height:2px;margin-top:-1px;position:absolute;top:50%;left:3px;right:3px}.swatch-excused{background:var(--excused)}.swatch-excused:after{content:"";background:var(--marker);border-radius:50%;width:4px;height:4px;margin:-2px 0 0 -2px;position:absolute;top:50%;left:50%}.swatch-clear{border:1.5px solid var(--muted)}.tag{align-items:center;gap:6px;display:inline-flex}.tag .swatch{width:12px;height:12px}.card-menu{border-top:1px solid var(--border);animation:reveal .18s var(--ease);flex-direction:column;gap:8px;margin-top:12px;padding-top:12px;display:flex}.card-menu-links{gap:0;margin-left:-12px}@keyframes reveal{0%{opacity:0;transform:translateY(-4px)}}.day-actions{flex-direction:column;gap:6px;display:flex}.action{min-height:var(--tap);border-radius:var(--radius-sm);border:1px solid var(--border);color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;align-items:center;gap:12px;padding:8px 12px;display:flex}.action>span:last-child{flex-direction:column;display:flex}.action small{color:var(--muted);font-size:13px}.action:hover:not(:disabled){background:var(--surface-2)}.action[aria-pressed=true]{background:var(--surface-2);border-color:var(--muted)}.action:disabled{cursor:default;color:var(--muted)}.action:disabled .swatch{opacity:.4}.action-clear{color:var(--muted)}.excuse-form{flex-direction:column;gap:10px;display:flex}.detail-title{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.detail-hero{flex-direction:column;gap:6px;padding:8px 0;display:flex}.streak-lg .streak-number{letter-spacing:-.05em;font-size:88px}.streak-lg .streak-unit{padding-bottom:12px;font-size:20px}.streak-lg.muted{color:var(--text);min-height:88px;font-size:22px}.stat-row{grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:12px;margin:0;display:grid}.stat-row dt{color:var(--muted);font-size:13px}.stat-row dd{font-variant-numeric:tabular-nums;margin:2px 0 0;font-size:24px;font-weight:650}.stat-row dd span{color:var(--muted);font-size:14px;font-weight:400}.milestone{flex-direction:column;gap:8px;display:flex}.progress{background:var(--surface-2);border-radius:3px;height:6px;overflow:hidden}.progress span{background:var(--accent);height:100%;transition:width .4s var(--ease);border-radius:3px;display:block}.day-panel-title{font-size:17px;font-weight:600}.notice{border-radius:var(--radius-sm);background:var(--surface-2);color:var(--muted);padding:10px 14px;font-size:14px}.heatmap{--cell:22px;--gap:4px;gap:6px;min-width:0;display:flex}.heatmap-sm{--cell:11px;--gap:3px}.heatmap-days{grid-template-rows:16px repeat(7, var(--cell));row-gap:var(--gap);color:var(--muted);font-size:11px;display:grid}.heatmap-days:before{content:""}.heatmap-days span{line-height:var(--cell)}.heatmap-scroll{scrollbar-width:thin;min-width:0;padding:2px 2px 6px;overflow-x:auto}.heatmap-sm .heatmap-scroll{padding:0;overflow:hidden}.heatmap-months{grid-auto-flow:column;grid-auto-columns:var(--cell);column-gap:var(--gap);height:16px;color:var(--muted);white-space:nowrap;font-size:11px;display:grid}.heatmap-grid{grid-auto-flow:column;grid-template-rows:repeat(7, var(--cell));grid-auto-columns:var(--cell);gap:var(--gap);width:max-content;display:grid}.cell{width:var(--cell,14px);height:var(--cell,14px);background:var(--surface-2);font:inherit;border:0;border-radius:5px;padding:0;display:block;position:relative}.heatmap-sm .cell{border-radius:3px}button.cell{cursor:pointer}button.cell:disabled{cursor:default}.cell-done{background:var(--accent)}.cell-rest{background:var(--rest)}.cell-excused{background:var(--excused)}.cell-rescued{background:var(--accent-soft)}.cell-missed{background:var(--missed)}.cell-open{box-shadow:inset 0 0 0 1.5px var(--accent);background:0 0}.cell-future{box-shadow:inset 0 0 0 1px var(--border);background:0 0}.cell-before{background:0 0}.cell-rest:after{content:"";background:var(--marker);border-radius:1px;height:2px;margin-top:-1px;position:absolute;top:50%;left:22%;right:22%}.cell-excused:after{content:"";background:var(--marker);border-radius:50%;width:30%;height:30%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.cell-today.cell-done{box-shadow:inset 0 0 0 2px var(--accent-ink)}.cell-selected{outline:2px solid var(--text);outline-offset:1px}.legend{color:var(--muted);flex-wrap:wrap;gap:6px 16px;margin:0;padding:0;font-size:13px;list-style:none;display:flex}.legend li{align-items:center;gap:6px;display:inline-flex}.legend .cell{--cell:14px;border-radius:4px}.overview-list{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.overview-row{justify-content:space-between;align-items:center;gap:12px;text-decoration:none;display:flex}.overview-row:hover{border-color:var(--muted)}.overview-info{flex-direction:column;gap:6px;min-width:0;display:flex}.overview-info .habit-name{min-height:0}.overview-info .streak-line{min-height:36px}.overview-info .streak-number{font-size:34px}.overview-info .streak-line.muted{font-size:13px}.heatmap-sm{flex-shrink:0}@media (width<=340px){.overview-row{flex-direction:column;align-items:flex-start}}.dots{gap:6px;display:flex}.dot{border-radius:50%;width:12px;height:12px;position:relative}.dot.cell-rest:after,.dot.cell-excused:after{display:none}.dot.cell-rest{border-radius:3px}.dot.cell-excused{border-radius:2px;transform:rotate(45deg)scale(.85)}.archived summary{min-height:var(--tap);cursor:pointer;color:var(--muted);align-items:center;display:flex}.archived-list{flex-direction:column;gap:8px;margin:0;padding:0 0 0 18px;display:flex}.skeleton{background:linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);background-size:200% 100%;animation:1.4s linear infinite shimmer}@keyframes shimmer{to{background-position:-200% 0}}.chat-log,.chat-segment{flex-direction:column;gap:8px;display:flex}.bubble{max-width:85%;animation:reveal .22s var(--ease);border-radius:16px;padding:10px 14px}.bubble-bot{background:var(--surface);border:1px solid var(--border);border-bottom-left-radius:6px;align-self:flex-start}.bubble-user{background:var(--accent-soft);color:var(--text);border:1px solid #4ade804d;border-bottom-right-radius:6px;align-self:flex-end}.chat-input{bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom));background:linear-gradient(to bottom, transparent, var(--bg) 16px);flex-direction:column;gap:10px;padding:12px 0 8px;display:flex;position:sticky}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip{min-height:var(--tap);border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;cursor:pointer;border-radius:22px;align-items:center;gap:8px;padding:0 16px;display:inline-flex}.chip:hover:not(:disabled){border-color:var(--muted)}.chip-suggested{border-color:var(--accent)}.chip-note{color:var(--accent);font-size:12px}.chip-quiet{color:var(--muted)}.chat-form{gap:8px;display:flex}.chat-form input{border:1px solid var(--border);background:var(--surface);min-width:0;min-height:48px;color:var(--text);font:inherit;border-radius:24px;flex:1;padding:0 14px}.chat-form input::placeholder{color:var(--placeholder)}.chat-form input:focus{border-color:var(--accent);outline:none}.btn-send{border-radius:50%;width:48px;min-height:48px;padding:0}.btn-send svg{fill:none;stroke:currentColor;stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.chat-tools{gap:0;margin-left:-12px}.summary{flex-direction:column;gap:8px;margin:0;display:flex}.summary div{justify-content:space-between;gap:16px;display:flex}.summary dt{color:var(--muted)}.summary dd{text-align:right;margin:0}.empty{padding:24px 0}.empty h2{font-size:22px;font-weight:600}.suggestions{flex-direction:column;gap:8px;display:flex}.suggestion{min-height:var(--tap);border-radius:var(--radius);background:var(--surface);border:1px solid var(--border);flex-direction:column;gap:2px;padding:12px 16px;text-decoration:none;display:flex}.suggestion span{font-weight:600}.suggestion:hover{border-color:var(--accent)}.sync-notice{left:50%;bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px);width:min(calc(100% - 2 * var(--gutter)), calc(var(--max-width) - 2 * var(--gutter)));border-radius:var(--radius);background:var(--surface-2);border:1px solid var(--border);color:var(--muted);justify-content:space-between;align-items:center;gap:12px;padding:6px 6px 6px 14px;font-size:14px;display:flex;position:fixed;transform:translate(-50%)}.tabbar{height:calc(var(--tabbar-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--border);background:#0e0f11eb;justify-content:center;gap:24px;display:flex;position:fixed;bottom:0;left:0;right:0}.tab{min-width:72px;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:12px;text-decoration:none;display:flex}.tab svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:24px;height:24px}.tab[aria-current=page]{color:var(--text)}.tab-add-circle{background:var(--accent);width:48px;height:48px;color:var(--accent-ink);border-radius:50%;place-items:center;display:grid}.tab-add-circle svg{stroke-width:2.4px}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}
