:root{--bg: #0f1115;--surface: #181b22;--border: #262b36;--border-strong: #2f3542;--text: #eceef2;--muted: #9aa1ae;--accent: #7aa2ff;--serif: "Fraunces", Georgia, serif;--sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);-webkit-text-size-adjust:100%}body{min-height:100dvh}a{color:inherit;text-decoration:none}button,input,textarea{font-family:inherit}button{cursor:pointer}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.screen{max-width:480px;min-height:100dvh;margin:0 auto;padding:28px 16px 24px;display:flex;flex-direction:column;gap:16px}.row{display:flex;align-items:center}.col{display:flex;flex-direction:column}.between{justify-content:space-between}.center{align-items:center}.baseline{align-items:baseline}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.grow2{flex:2}.push-bottom{margin-top:auto}.gap6{gap:6px}.gap8{gap:8px}.gap10{gap:10px}.gap12{gap:12px}.gap14{gap:14px}.gap16{gap:16px}.eyebrow{font-size:13px;color:var(--muted);letter-spacing:.04em}.title{margin:0;font-family:var(--serif);font-weight:600;font-size:32px;line-height:1.1}.subtitle{margin:0;font-family:var(--serif);font-weight:500;font-size:20px}.section-title{margin:0;font-size:15px;font-weight:700}.muted{color:var(--muted);margin:0}.small{font-size:13px}.label{font-size:14px;width:74px;flex:none}.strong{font-weight:500}.normal{font-size:15px}.pre{white-space:pre-wrap}.time{font-size:14px;width:44px;flex:none}.round{width:44px;height:44px;border-radius:22px;border:1px solid #2a2f3a;background:var(--surface);color:var(--text);display:flex;align-items:center;justify-content:center;padding:0;flex:none}.round.lg{width:52px;height:52px;border-radius:26px}.round.accent{background:var(--accent);border-color:var(--accent);color:var(--bg)}.icon-btn{width:44px;height:44px;margin:-10px -10px -10px 0;border:none;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center;flex:none}.btn{height:52px;padding:0 20px;white-space:nowrap;border-radius:26px;font-size:16px;font-weight:500;display:flex;align-items:center;justify-content:center;border:1px solid transparent}.btn.ghost{border-color:var(--border-strong);background:transparent;color:var(--text)}.btn.primary{background:var(--accent);color:var(--bg);font-weight:700;border:none}.btn:disabled{opacity:.4;cursor:not-allowed}.plain{background:none;border:0;padding:0;margin:0;color:inherit;font:inherit;text-align:left}.card{background:var(--surface);border:1px solid var(--border);border-radius:24px;padding:18px;display:flex;flex-direction:column;gap:12px}.card.grow{flex:1}.two-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tile{border-radius:20px;padding:14px 16px;gap:4px}.tile-value{font-size:22px;font-weight:700;overflow-wrap:anywhere}.item{align-items:flex-start;margin-top:2px}.card.list{gap:8px}.card.list>.section-title{margin-bottom:4px}.tile.editing{border-color:var(--accent)}.item.editing{margin:-4px -8px;padding:4px 8px;border-radius:12px;background:#222838}.weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;font-size:12px;font-weight:500;color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px 0}.swipe-area{overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none}.swipe{transition:transform .16s ease-out;will-change:transform}.swipe.dragging{transition:none}@media(prefers-reduced-motion:reduce){.swipe{transition:none}}.cell-blank{height:52px}.cell{height:52px;margin:0 1px;padding:6px 0 0;border-radius:16px;border:1.5px solid transparent;background:transparent;color:var(--text);display:flex;flex-direction:column;align-items:center;gap:5px}.cell-day{font-size:15px;font-weight:500;line-height:1}.cell.today{border-color:var(--accent)}.cell.sel{background:var(--accent);border-color:var(--accent);color:var(--bg)}.cell.sel .dot{background:var(--bg)!important}.dots{display:flex;flex-wrap:wrap;justify-content:center;gap:3px;min-height:5px;max-width:30px}.dot{width:5px;height:5px;border-radius:50%;display:inline-block;flex:none}.dot.lg{width:8px;height:8px}.dot.xl{width:10px;height:10px}.legend{display:flex;flex-wrap:wrap;gap:6px 14px;padding:2px 4px;font-size:12px;color:var(--muted)}.big-number{font-family:var(--serif);font-size:44px;font-weight:600;line-height:1}.stat{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:16px;background:var(--bg)}.day-detail{margin:0;min-height:36px;line-height:18px}.chart{display:flex;flex-direction:column;gap:6px}.chart-plot{position:relative;height:180px;border-bottom:1px solid var(--border-strong)}.chart-line{position:absolute;left:0;right:0;border-top:1.5px solid var(--accent);pointer-events:none}.chart-line.avg{border-top:1.5px dashed var(--muted)}.chart-bars{position:absolute;inset:0;display:flex;align-items:stretch}.bar-col{flex:1;min-width:0;padding:0;border:0;border-radius:8px;background:none;display:flex;align-items:flex-end;justify-content:center}.bar-col.sel{background:#ffffff0f}.bar{width:min(60%,26px);border-radius:999px 999px 3px 3px;background:var(--c);opacity:.45}.bar.at-goal{opacity:1}.chart-bars.month .bar{width:64%;border-radius:3px 3px 1px 1px}.chart-labels{display:flex;font-size:11px;color:var(--muted)}.chart-labels span{flex:1;min-width:0;text-align:center;overflow:visible;white-space:nowrap}.chart-labels .today{color:var(--accent);font-weight:700}.swatch{width:14px;flex:none;border-top:2px solid var(--accent)}.swatch.avg{border-top:2px dashed var(--muted)}.segmented{display:flex;height:52px;padding:4px;border-radius:26px;border:1px solid var(--border-strong)}.segmented button{flex:1;border:0;border-radius:22px;background:none;color:var(--muted);font-size:15px;font-weight:500}.segmented button.on{background:var(--surface);color:var(--text);box-shadow:0 0 0 1px var(--border-strong)}.chip{height:44px;padding:0 16px;border-radius:22px;display:flex;align-items:center;gap:8px;font-size:15px;font-weight:500;background:var(--surface);color:var(--text);border:1.5px solid var(--border-strong)}.chip .dot{background:var(--c)}.chip.on{background:var(--c);border-color:var(--c);color:var(--bg)}.chip.on .dot{background:var(--bg)}.input{width:100%;height:48px;padding:0 14px;border-radius:16px;border:1px solid var(--border-strong);background:var(--surface);color:var(--text);font-size:16px;color-scheme:dark}.input::placeholder{color:#7c8493}.area{height:auto;padding:14px;resize:none;line-height:1.4}.chip.sm{height:36px;padding:0 12px;font-size:14px;flex:none}.input.sm{height:44px;padding:0 12px;border-radius:14px}.input.area.sm{height:auto;padding:10px 12px}.time-input{width:104px;flex:none}.composer{position:sticky;bottom:0;z-index:1;margin:auto -16px -24px;padding:14px 16px calc(14px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border);border-radius:24px 24px 0 0;box-shadow:0 -12px 24px #00000059}.composer-title{color:var(--accent)}.chip-strip{overflow-x:auto;margin:0 -16px;padding:0 16px;scrollbar-width:none}.chip-strip::-webkit-scrollbar{display:none}@media(hover:hover)and (pointer:fine){.chip-strip{flex-wrap:wrap;overflow:visible}}.status{margin:0;padding:14px 16px;border-radius:16px;background:var(--surface);border:1px solid var(--border-strong);font-size:15px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}label.btn{cursor:pointer}
