@font-face{font-family:Bricolage Grotesque Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/assets/bricolage-grotesque-vietnamese-wght-normal-BUzh504Q.woff2) format("woff2-variations");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Bricolage Grotesque Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/assets/bricolage-grotesque-latin-ext-wght-normal-CcLUaPy7.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Bricolage Grotesque Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/assets/bricolage-grotesque-latin-wght-normal-DLoelf7F.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Figtree Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/assets/figtree-latin-ext-wght-normal-DCwSJGxG.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Figtree Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/assets/figtree-latin-wght-normal-D_ZTVpCC.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--bg: #f5f2ec;--ink: #1d1c1a;--muted: #5e5a53;--line: #e4ded3;--card: #ffffff;--soft: #ece7de;--exception: #9a5b0c;--relapse: #9c3b28;--success: #2e6a4e;--radius: 18px;--font-display: "Bricolage Grotesque Variable", system-ui, sans-serif;--font-text: "Figtree Variable", system-ui, sans-serif;color-scheme:light}*,*:before,*:after{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-text);font-size:15px;line-height:1.4;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;overscroll-behavior-y:none}body.no-scroll{overflow:hidden}p,h1,h2,ul,ol{margin:0}ul{padding:0;list-style:none}button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default}:focus-visible{outline:2px solid var(--ink);outline-offset:2px}.screen{max-width:480px;margin:0 auto;min-height:100dvh;padding:calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 104px);display:flex;flex-direction:column;gap:12px}.screen-no-bar{padding-bottom:calc(env(safe-area-inset-bottom) + 32px)}.bottom-bar{position:fixed;left:0;right:0;bottom:0;z-index:10;padding:24px 16px calc(env(safe-area-inset-bottom) + 12px);background:linear-gradient(to bottom,rgb(245 242 236 / 0),var(--bg) 24px)}.bottom-bar>*{max-width:448px;margin-left:auto;margin-right:auto}.topbar{display:flex;align-items:center;justify-content:space-between;min-height:48px;margin:0 -8px}.topbar-title{justify-content:flex-start;gap:4px}.topbar-title h1{font-family:var(--font-display);font-size:22px;font-weight:700;letter-spacing:-.01em}.row-between{display:flex;justify-content:space-between;gap:12px}.stack{display:flex;flex-direction:column;gap:10px}.small{font-size:13px}.muted{color:var(--muted)}.error{color:var(--relapse)}.success{color:var(--success)}.section-title{font-family:var(--font-display);font-size:16px;font-weight:700;margin-top:8px}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px}.btn-primary{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;border-radius:16px;background:var(--ink);color:var(--bg);font-weight:600;font-size:15px}.btn-primary:disabled{opacity:.5}.btn-secondary{width:100%;min-height:48px;color:var(--muted);font-weight:600}.btn-outline{min-height:48px;padding:0 16px;border-radius:14px;border:1px solid var(--line);background:var(--card);font-weight:600}.btn-outline:disabled{color:var(--muted);opacity:.6}.btn-link{min-height:44px;text-align:left;font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:3px}.btn-danger{min-height:48px;margin-top:8px;border-radius:14px;border:1px solid var(--line);color:var(--relapse);font-weight:600}.btn-small{min-height:44px;padding:0 18px;border-radius:12px;background:var(--ink);color:var(--bg);font-weight:600;font-size:14px}.icon-btn{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:12px;color:var(--ink)}.pill-btn{display:flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;margin:2px 8px;border-radius:12px;border:1px solid var(--line);background:var(--card);font-size:13px;font-weight:600}.home-header{display:flex;align-items:center;justify-content:space-between;margin:8px -8px 0 0}.brand{display:flex;align-items:center;gap:10px}.brand h1{font-family:var(--font-display);font-size:32px;font-weight:700;letter-spacing:-.03em}.home-date{margin-top:-8px;color:var(--muted);font-size:13px}.card-list{display:flex;flex-direction:column;gap:10px;margin-top:4px}.addiction-card{display:flex;align-items:center;gap:12px;width:100%;min-height:72px;text-align:left}.addiction-card:active{transform:scale(.99)}.avatar{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:50%;color:#fff;font-weight:700;font-size:15px}.addiction-text{display:flex;flex-direction:column;flex:1;min-width:0}.addiction-name{font-weight:600;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.addiction-sub{font-size:12px;color:var(--muted)}.addiction-gage{font-size:12px;font-weight:600;color:var(--relapse)}.addiction-count{display:flex;flex-direction:column;align-items:flex-end}.addiction-number{font-family:var(--font-display);font-size:30px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}.addiction-unit{font-size:11px;color:var(--muted)}.hint{display:flex;align-items:center;gap:4px;padding:4px 4px 4px 16px;border-radius:var(--radius);background:var(--soft)}.hint-body{display:flex;flex-direction:column;flex:1;padding:8px 0;text-align:left;font-size:13px}.hint-body span{color:var(--muted)}.empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:48px 16px;text-align:center}.empty-title{font-family:var(--font-display);font-size:20px;font-weight:700}.counter{text-align:center;padding:4px 0 8px}.counter-name{font-size:14px;color:var(--muted)}.counter-number{font-family:var(--font-display);font-size:clamp(96px,32vw,136px);font-weight:700;line-height:1;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.counter-label{font-size:16px;color:var(--muted)}.progress{height:8px;margin-top:10px;border-radius:4px;background:var(--soft);overflow:hidden}.progress-fill{height:100%;border-radius:4px;transition:width .4s ease}.stats-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stat-value{margin-top:2px;font-size:17px;font-weight:600}.exception-text{color:var(--exception);font-weight:600}.dots{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.dot{width:14px;height:14px;border-radius:50%;border:2px solid var(--exception)}.dot-used{background:var(--exception)}.gage-alert{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1.5px solid var(--relapse)}.gage-alert-label{font-size:12px;font-weight:600;color:var(--relapse)}.gage-alert-name{font-weight:700;font-size:16px}.history{padding:4px 4px 4px 16px}.history-row{display:flex;align-items:center;gap:12px;min-height:56px}.history-row+.history-row{border-top:1px solid var(--line)}.history-dot{width:8px;height:8px;flex:none;border-radius:50%}.history-dot.exception{background:var(--exception)}.history-dot.relapse{background:var(--relapse)}.history-dot.start{background:var(--ink)}.history-text{display:flex;flex-direction:column;flex:1;min-width:0;padding:8px 0}.history-title{font-weight:600;font-size:14px}.history-title.exception{color:var(--exception)}.history-title.relapse{color:var(--relapse)}.history-row:last-child .history-text{padding-right:44px}.sheet-root{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50}.sheet-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#1d1c1a66;animation:fade .2s ease}.sheet{position:absolute;left:0;right:0;bottom:0;max-width:480px;max-height:90dvh;margin:0 auto;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:10px 16px calc(env(safe-area-inset-bottom) + 12px);border-radius:24px 24px 0 0;background:var(--bg);animation:slide-up .25s cubic-bezier(.2,.8,.2,1)}.sheet-handle{width:40px;height:4px;margin:0 auto 4px;border-radius:2px;background:var(--line)}.sheet-title{font-family:var(--font-display);font-size:20px;font-weight:700}@keyframes slide-up{0%{transform:translateY(100%)}}@keyframes fade{0%{opacity:0}}.option-btn{display:flex;flex-direction:column;gap:2px;width:100%;min-height:64px;padding:12px 14px;border-radius:16px;background:var(--card);text-align:left}.option-btn.exception{border:1.5px solid var(--exception)}.option-btn.relapse{border:1.5px solid var(--relapse)}.option-btn:disabled{opacity:.45}.option-title{font-weight:700}.option-btn.exception .option-title{color:var(--exception)}.option-btn.relapse .option-title{color:var(--relapse)}.option-desc{font-size:12px;color:var(--muted)}.gage-card{padding:14px 16px;border-radius:16px;border:1.5px solid var(--relapse);background:var(--card)}.gage-card-label{font-size:12px;font-weight:600;color:var(--relapse)}.gage-card-name{font-family:var(--font-display);font-size:26px;font-weight:700;line-height:1.15}.field{display:flex;flex-direction:column;gap:8px}.field-label{font-size:12px;font-weight:600;color:var(--muted)}.input{width:100%;min-height:48px;padding:0 14px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink);font:inherit;font-size:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none}input[type=date].input{display:flex;align-items:center}.input:focus{outline:none;border-color:var(--ink)}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{min-height:40px;padding:0 14px;border-radius:20px;border:1px solid var(--line);background:var(--card);font-size:14px}.chip.selected{border-color:var(--ink);background:var(--ink);color:var(--bg);font-weight:600}.stepper{display:flex;align-items:center;gap:16px}.stepper-btn{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--card)}.stepper-btn:disabled{opacity:.4}.stepper-value{min-width:32px;text-align:center;font-family:var(--font-display);font-size:28px;font-weight:700;font-variant-numeric:tabular-nums}.segmented{display:grid;grid-template-columns:1fr 1fr;padding:4px;border-radius:14px;background:var(--soft)}.segmented button{min-height:40px;border-radius:10px;color:var(--muted);font-size:14px;font-weight:600}.segmented button.active{background:var(--card);color:var(--ink);box-shadow:0 1px 2px #1d1c1a14}.inline-add{display:flex;gap:8px}.swatches{display:flex;gap:12px}.swatch{width:44px;height:44px;border-radius:50%;border:3px solid var(--bg);box-shadow:0 0 0 1px var(--line)}.swatch.selected{box-shadow:0 0 0 2px var(--ink)}.bottom-error{margin-bottom:8px;text-align:center}.steps{display:flex;flex-direction:column;gap:8px;padding-left:20px;font-size:14px}.steps svg{vertical-align:-3px}.about{display:flex;flex-direction:column;align-items:center;gap:4px;margin-top:24px}.about-name{font-family:var(--font-display);font-weight:700;font-size:18px}
