:root{--bg: #f5f7f4;--surface: #ffffff;--surface-2: #edf2ee;--text: #14211a;--muted: #5b6a61;--line: #dde5de;--line-strong: #7d8d83;--accent: #0f7a52;--accent-strong: #0a5c3e;--accent-soft: #e4f3ea;--danger: #a62a1f;--danger-soft: #fdf1ef;--danger-line: #f0c8c2;--warn-soft: #fff8e6;--warn-line: #efdba5;--radius: 1.25rem;--shadow: 0 1px 2px rgba(20, 33, 26, .04), 0 10px 30px rgba(20, 33, 26, .05);--gutter: 1rem;--tabbar-height: 4rem;--font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;color-scheme:light}*,*:before,*:after{box-sizing:border-box}html{font-size:100%;-webkit-text-size-adjust:100%}body{margin:0;min-height:100vh;min-height:100dvh;background:var(--bg);color:var(--text);font-family:var(--font);font-size:1rem;line-height:1.45;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}body.sheet-open{overflow:hidden;overscroll-behavior-y:contain}button,input,select{font:inherit;color:inherit}button{touch-action:manipulation}a{color:var(--accent-strong)}:focus-visible{outline:3px solid rgba(15,122,82,.45);outline-offset:2px}::selection{background:var(--accent-soft)}.app{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}.app-header{display:flex;align-items:center;width:100%;max-width:40rem;margin:0 auto;padding:calc(env(safe-area-inset-top) + .75rem) var(--gutter) .25rem}.brand{display:inline-flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--text);border-radius:.75rem}.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:.65rem;background:var(--accent);color:#fff;font-size:.72rem;font-weight:800;letter-spacing:.02em;flex:none}.brand-name{font-size:.94rem;font-weight:650;letter-spacing:-.01em}.app-main{flex:1;width:100%;max-width:40rem;margin:0 auto;padding:.5rem var(--gutter) calc(var(--tabbar-height) + env(safe-area-inset-bottom) + 1.5rem)}.app-main-centered{display:flex;align-items:center;justify-content:center;padding-bottom:2rem}.tabbar{position:fixed;inset:auto 0 0;z-index:20;display:flex;background:#fffffff7;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);backdrop-filter:blur(10px)}.tab{flex:1 1 0;min-height:var(--tabbar-height);min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;color:var(--muted);text-decoration:none;font-size:.7rem;font-weight:550;-webkit-tap-highlight-color:transparent}.tab.is-active{color:var(--accent-strong);font-weight:750}.tab-icon{display:flex}.tab-label{max-width:100%;line-height:1.1;text-align:center;overflow-wrap:anywhere}.page{display:flex;flex-direction:column;gap:1.1rem;min-width:0}.page-header h1{margin:0;font-size:1.75rem;line-height:1.15;letter-spacing:-.025em;font-weight:680}.page-subtitle{margin:.3rem 0 0;color:var(--muted);font-size:.875rem;max-width:40ch}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.25rem;min-width:0}.section-title{margin:0 0 .5rem;font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:750}.section-title-inside{margin-bottom:.85rem}.eyebrow{display:flex;align-items:center;justify-content:center;gap:.5rem;margin:0;font-size:.7rem;text-transform:uppercase;letter-spacing:.09em;color:var(--muted);font-weight:750}.footnote{margin:0;color:var(--muted);font-size:.75rem;line-height:1.5}.error-code{margin:.15rem 0 0;font-family:var(--mono);font-size:.7rem;color:var(--muted);letter-spacing:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:2.75rem;padding:0 1.1rem;border-radius:.9rem;border:1px solid transparent;background:var(--surface-2);color:var(--text);font-size:1rem;font-weight:650;font-family:inherit;cursor:pointer;text-decoration:none;-webkit-tap-highlight-color:transparent;transition:background-color .12s ease,border-color .12s ease,transform .1s ease}.button:active{transform:translateY(1px)}.button:disabled{opacity:.55;cursor:not-allowed;transform:none}.button-primary{background:var(--accent);border-color:var(--accent);color:#fff}.button-primary:hover:not(:disabled){background:var(--accent-strong);border-color:var(--accent-strong)}.button-secondary{background:var(--surface);border-color:var(--line-strong);color:var(--text)}.button-secondary:hover:not(:disabled){background:var(--surface-2)}.button-full{width:100%}.button-start{width:100%;min-height:4rem;font-size:1.1rem;border-radius:1rem}.button-stop{min-height:3.5rem;width:100%}.banner{display:flex;align-items:flex-start;justify-content:space-between;gap:.6rem;padding:.75rem .9rem;border-radius:.9rem;border:1px solid var(--line);background:var(--surface);font-size:.875rem}.banner-body{min-width:0}.banner-message{margin:0}.banner-error{background:var(--danger-soft);border-color:var(--danger-line)}.banner-offline{background:var(--warn-soft);border-color:var(--warn-line)}.banner-info{background:var(--accent-soft);border-color:#c8e6d6}.banner-dismiss{border:0;background:transparent;color:var(--muted);font-size:1.4rem;line-height:1;width:2.75rem;height:2.75rem;margin:-.55rem -.65rem -.55rem 0;cursor:pointer;flex:none}.inline-note{display:flex;align-items:center;justify-content:center;gap:.35rem;margin:.15rem 0 0;color:var(--muted);font-size:.78rem;text-align:center}.inline-error{margin:.5rem 0 0;padding:.6rem .75rem;background:var(--danger-soft);border:1px solid var(--danger-line);color:var(--danger);border-radius:.65rem;font-size:.82rem}.panel-error h2,.panel-title{margin:0 0 .35rem;font-size:1.1rem}.panel-copy{margin:0 0 .9rem;color:var(--muted);font-size:.9rem}.timer-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.65rem;padding:1.7rem 1.1rem 1.25rem}.timer-idle{align-items:flex-start;text-align:left;gap:.55rem}.idle-lead{margin:0;font-size:1.3rem;font-weight:680;letter-spacing:-.01em}.idle-copy{margin:0 0 .6rem;color:var(--muted);font-size:.94rem;max-width:34ch}.timer-idle .button-start{margin-top:.2rem}.timer-idle .inline-note{justify-content:flex-start;text-align:left}.elapsed{font-size:min(18vw,4.9rem);line-height:1.02;font-weight:660;letter-spacing:-.045em;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;white-space:nowrap;min-height:1.05em;min-width:min(8ch,100%)}.timer-meta{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem}.meta-chip{display:inline-flex;align-items:center;min-height:1.75rem;padding:0 .65rem;border-radius:999px;background:var(--accent-soft);color:var(--accent-strong);font-size:.78rem;font-weight:650}.meta-muted{background:var(--surface-2);color:var(--muted)}.info-line{margin:0;color:var(--muted);font-size:.8rem}.timer-actions{display:flex;flex-direction:column;gap:.6rem;width:100%;margin-top:.55rem}.pulse-dot{display:inline-block;width:.5rem;height:.5rem;border-radius:50%;background:var(--accent);flex:none}.recent-card{text-align:left}.recent-card .eyebrow{justify-content:flex-start}.recent-duration{margin:.35rem 0 .1rem;font-size:1.5rem;font-weight:680;letter-spacing:-.02em;font-variant-numeric:tabular-nums}.recent-meta{margin:0;color:var(--muted);font-size:.86rem}.recent-empty{margin:.4rem 0 0;color:var(--muted);font-size:.86rem}.recent-marker{margin:.35rem 0 0;color:var(--accent-strong);font-size:.72rem;font-weight:650;text-transform:uppercase;letter-spacing:.06em}.sheet{border:0;padding:0;margin:auto auto 0;width:100%;max-width:40rem;max-height:90dvh;overflow:auto;background:transparent}.sheet::backdrop{background:#0d1a1373;backdrop-filter:blur(2px)}.sheet-panel{background:var(--surface);border-radius:1.5rem 1.5rem 0 0;padding:.75rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));box-shadow:0 -10px 40px #00000026;animation:sheet-in .2s ease-out}.sheet-grabber{width:2.25rem;height:.25rem;border-radius:2px;background:var(--line-strong);margin:0 auto .9rem}.sheet-title{margin:0 0 .5rem;font-size:1.25rem;letter-spacing:-.01em}.sheet-copy{margin:0 0 1rem;color:var(--muted);font-size:.87rem}.confirm-duration{margin:.1rem 0 .2rem;font-size:2.6rem;font-weight:680;letter-spacing:-.035em;font-variant-numeric:tabular-nums}.sheet-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.1rem}.sheet-actions .button{flex:1 1 8rem}.field{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.7rem}.field-label{font-size:.8rem;font-weight:650;color:var(--muted)}.field-input{width:100%;min-height:3.25rem;padding:0 .9rem;border:1px solid var(--line-strong);border-radius:.8rem;background:var(--surface);font-size:1rem}.quick-row{display:flex;flex-wrap:wrap;gap:.45rem}.chip{min-height:2.75rem;padding:0 .9rem;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface-2);color:var(--text);font-size:.86rem;font-weight:650;font-family:inherit;cursor:pointer}.chip:hover{background:var(--surface)}.range-switcher{display:flex;gap:.25rem;padding:.25rem;background:var(--surface-2);border:1px solid var(--line-strong);border-radius:.9rem}.range-option{flex:1 1 0;min-height:2.75rem;border:0;border-radius:.65rem;background:transparent;color:var(--muted);font-size:.95rem;font-weight:650;font-family:inherit;cursor:pointer}.range-option.is-active{background:var(--surface);color:var(--accent-strong);box-shadow:0 1px 2px #14211a14}.metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.metric-card{min-width:0;padding:.85rem .9rem;background:var(--surface);border:1px solid var(--line);border-radius:1rem}.metric-label{margin:0;color:var(--muted);font-size:.7rem;font-weight:750;text-transform:uppercase;letter-spacing:.06em}.metric-value{margin:.2rem 0 0;font-size:1.6rem;font-weight:680;letter-spacing:-.025em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.metric-sub{margin:.1rem 0 0;color:var(--muted);font-size:.72rem}.chart-block{display:flex;flex-direction:column;gap:.75rem;min-width:0}.chart-readout{margin:0;min-height:1.2rem;color:var(--muted);font-size:.8rem}.bar-chart{display:flex;align-items:stretch;gap:1px;height:9.5rem;padding-top:.4rem;border-bottom:1px solid var(--line)}.bar-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:.3rem;padding:0;border:0;background:none;color:var(--muted);font-family:inherit;cursor:pointer}.bar-track{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;min-height:2px}.bar{width:100%;max-width:1.4rem;border-radius:3px 3px 1px 1px;background:var(--accent);transition:height .18s ease,background-color .15s ease}.bar-col.is-zero .bar{background:var(--line-strong);border-radius:1px}.bar-col.is-selected .bar{background:var(--accent-strong)}.bar-col.is-selected .bar-label{color:var(--text);font-weight:750}.bar-label{height:.8rem;font-size:.58rem;line-height:.8rem;white-space:nowrap}@media(min-width:30rem){.bar-col{gap:.4rem}.bar-label{font-size:.65rem}}.table-wrap{overflow-x:auto;margin-top:.5rem}.chart-alternative{font-size:.78rem;color:var(--muted)}.chart-alternative summary{cursor:pointer;min-height:2rem;display:flex;align-items:center;font-weight:600}.chart-alternative table{width:100%;border-collapse:collapse}.chart-alternative caption{text-align:left;padding:.3rem 0;font-weight:600}.chart-alternative th,.chart-alternative td{text-align:left;padding:.3rem .35rem;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}.heatmap{display:flex;flex-direction:column;gap:.35rem;min-width:0}.heatmap-months{display:grid;align-items:end;min-height:.95rem;font-size:.62rem;color:var(--muted)}.heatmap-month{white-space:nowrap;overflow:visible}.heatmap-body{display:flex;gap:.35rem;min-width:0}.heatmap-weekdays{display:grid;grid-template-rows:repeat(7,minmax(0,1fr));gap:3px;width:1.75rem;font-size:.55rem;color:var(--muted)}.heatmap-weekdays span{display:flex;align-items:center}.heatmap-grid{flex:1;display:grid;grid-auto-flow:column;grid-template-rows:repeat(7,minmax(0,1fr));gap:3px;min-width:0}.heat-cell{display:block;width:100%;aspect-ratio:1;min-width:0;padding:0;border:0;border-radius:3px;background:#edf1ed;box-shadow:inset 0 0 0 1px #14211a2e}button.heat-cell{cursor:pointer}.heat-pad{background:transparent}.level-0{background:#e7ece7}.level-1{background:#cbe6d7}.level-2{background:#95d0b3}.level-3{background:#4fa77e}.level-4{background:#166b49}.heat-cell.is-selected{outline:2px solid var(--text);outline-offset:1px}.heat-legend{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .55rem;font-size:.6rem;color:var(--muted)}.heat-legend-item{display:inline-flex;align-items:center;gap:.25rem}.heat-legend-item .heat-cell{width:.7rem;height:.7rem;aspect-ratio:auto;flex:none}.history-list{list-style:none;margin:0;padding:0}.history-item{min-width:0}.day-header{position:sticky;top:0;z-index:5;margin:0;padding:.7rem 0 .45rem;background:var(--bg);color:var(--muted);font-size:.7rem;font-weight:750;text-transform:uppercase;letter-spacing:.08em}.history-row{content-visibility:auto;contain-intrinsic-size:auto 4rem;background:var(--surface);border:1px solid var(--line-strong);border-radius:.9rem;margin-bottom:.4rem;overflow:hidden}.history-row.is-short{background:#fafbf9}.history-toggle{width:100%;min-height:3.6rem;display:flex;align-items:center;gap:.6rem;padding:.6rem .8rem;border:0;background:none;color:var(--text);font-family:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}.row-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:.35rem}.row-times{font-size:1rem;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-dash{color:var(--muted);font-weight:450}.row-bar{display:block;max-width:11rem;height:3px;border-radius:2px;background:var(--surface-2);overflow:hidden}.row-bar-fill{display:block;height:100%;border-radius:2px;background:var(--accent)}.history-row.is-short .row-bar-fill{background:var(--line-strong)}.row-side{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.3rem;flex:0 1 auto;max-width:48%}.row-duration{font-size:.95rem;font-weight:680;font-variant-numeric:tabular-nums}.history-row.is-short .row-times,.history-row.is-short .row-duration{color:var(--muted)}.row-tag{padding:.1rem .35rem;border-radius:999px;background:var(--accent-soft);color:var(--accent-strong);font-size:.56rem;font-weight:750;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}.row-tag.tag-muted{background:var(--surface-2);color:var(--muted)}.row-chevron{flex:none;color:var(--muted);transition:transform .15s ease}.history-row.is-open .row-chevron{transform:rotate(90deg)}.row-detail{border-top:1px solid var(--line);padding:.2rem .9rem .9rem;font-size:.82rem}.row-detail dl{display:flex;flex-direction:column;gap:.55rem;margin:.7rem 0}.row-detail dl>div{display:flex;gap:.6rem}.row-detail dt{width:6.2rem;flex:none;color:var(--muted)}.row-detail dd{margin:0;min-width:0}.utc{display:block;margin-top:.1rem;font-family:var(--mono);font-size:.68rem;color:var(--muted)}.detail-note{display:block;margin-top:.15rem;color:var(--muted);font-size:.72rem}.open-row{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem;min-height:3.5rem;padding:.7rem .9rem;border:1px solid #c8e6d6;border-radius:.9rem;background:var(--accent-soft);color:var(--accent-strong);text-decoration:none;font-weight:680}.open-row-title{flex:1 1 5rem}.open-row-meta{margin-left:auto;color:var(--muted);font-size:.74rem;font-weight:500;overflow-wrap:anywhere}.open-row>svg{flex:none}.history-status{margin:.4rem 0;text-align:center;color:var(--muted);font-size:.8rem}.retry-row{display:flex;justify-content:flex-end}.history-terminal{margin:.6rem 0 0;padding:1.1rem 0 .4rem;border-top:1px dashed var(--line);text-align:center;color:var(--muted);font-size:.75rem}.history-sentinel{height:1px}.settings-email{margin:0 0 .25rem;font-size:1.15rem;font-weight:680;overflow-wrap:anywhere}.settings-note{margin:0 0 1rem;color:var(--muted);font-size:.82rem}.about-list{margin:0;display:flex;flex-direction:column}.about-list>div{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding:.6rem 0;border-bottom:1px solid var(--line)}.about-list>div:last-child{border-bottom:0;padding-bottom:0}.about-list dt{color:var(--muted);font-size:.78rem}.about-list dd{margin:0;text-align:right;font-size:.85rem;font-weight:600;overflow-wrap:anywhere}.about-sub{display:block;font-family:var(--mono);font-size:.65rem;font-weight:400;color:var(--muted)}.settings-footnote{padding:0 .2rem}.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;padding:1.9rem 1.2rem}.empty-title{margin:0 0 .35rem;font-size:1.15rem;font-weight:680}.empty-copy{margin:0 0 1.1rem;max-width:34ch;color:var(--muted);font-size:.88rem}.offline-mark{display:inline-flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;border-radius:999px;background:var(--warn-soft);color:#8a6d1f;margin-bottom:.5rem}.status-screen{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.6rem;padding:2rem 1.3rem;width:100%}.status-mark{width:3rem;height:3rem;font-size:1rem;border-radius:1rem}.status-screen h1{margin:.3rem 0 0;font-size:1.35rem;letter-spacing:-.02em}.status-copy{margin:0;max-width:34ch;color:var(--muted);font-size:.88rem}.status-screen .button{margin-top:.5rem}.skeleton{border-radius:.5rem;background:var(--surface-2)}.skeleton-title{height:1.5rem;width:42%}.skeleton-line{height:.85rem;width:100%;margin-top:.5rem}.skeleton-line.short{width:60%}.skeleton-timer{height:4.5rem;width:76%;margin:1rem auto}.skeleton-button{height:3.5rem;width:100%;margin-top:.5rem}.skeleton-value{height:1.8rem;width:55%;margin-top:.45rem}@media(min-width:48rem){.app-header{padding-top:1rem}.app-main{padding-bottom:2.5rem}.tabbar{position:static;order:1;width:100%;max-width:40rem;margin:0 auto;padding-bottom:0;background:transparent;border-top:0;border-bottom:1px solid var(--line);backdrop-filter:none}.tab{flex-direction:row;gap:.5rem;min-height:3.25rem;font-size:.88rem}.app-main{order:2}.sheet{margin:auto;max-width:30rem;border-radius:1.5rem}.sheet-panel{border-radius:1.5rem;padding-bottom:1.25rem}.timer-actions{flex-direction:row}.timer-actions .button{flex:1}.timer-card{padding:2rem 2rem 1.5rem}}@media(min-width:64rem){.app-main{padding-left:0;padding-right:0}}@keyframes sheet-in{0%{transform:translateY(12%);opacity:.7}to{transform:translateY(0);opacity:1}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
