:root{font-family:ui-rounded,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#17222d;background:#f4f5f8;font-synthesis:none;--ink: #17222d;--muted: #7d8993;--line: #e4e8eb;--blue: #2788bd;--surface: #fff}*{box-sizing:border-box}html{min-height:100%;background:var(--page-background, #f4f5f8);transition:background .3s ease}body{margin:0;min-width:320px;min-height:100vh;background:var(--page-background, #f4f5f8);overscroll-behavior-y:none;transition:background .3s ease}html.counter-scroll-locked,body.counter-scroll-locked{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}body.counter-scroll-locked{position:fixed;inset:0}button,input{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible{outline:3px solid rgba(39,136,189,.28);outline-offset:2px}button,.counter-card{-webkit-tap-highlight-color:transparent}main{min-height:100vh;background:var(--page-background, #f4f5f8)}.page{width:min(100%,760px);min-height:100vh;margin:0 auto;padding:max(28px,env(safe-area-inset-top)) 24px max(40px,env(safe-area-inset-bottom))}.eyebrow{display:block;color:#8c98a3;font-size:11px;font-weight:800;letter-spacing:.16em;line-height:1.4}h1,h2,p{margin-top:0}h1,h2{font-family:ui-rounded,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.sub-header,.history-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.round-button,.glass-button,.close-button,.save-button{border:0;cursor:pointer;background:#ffffffeb;box-shadow:0 12px 30px #212d3717;transition:transform .16s ease,background .16s ease}.round-button:active,.glass-button:active{transform:scale(.94)}.round-button{width:54px;height:54px;flex:0 0 54px;border-radius:50%;display:grid;place-items:center}.round-button.primary{color:#fff;background:var(--ink)}.toolbar{--toolbar-button-size: 54px;--sort-menu-offset: -66px;position:relative;z-index:5;display:flex;align-items:center;gap:12px;margin:12px 0 22px}.sort-wrap{position:relative}.sync-chip{margin-left:auto;display:flex;align-items:center;gap:7px;min-height:34px;padding:0 12px;color:#65737e;background:#e9ecef;border-radius:17px;font-size:12px;font-weight:700}.sync-chip.error{color:#a05f32;background:#fff0df}.sync-dot{width:7px;height:7px;border-radius:50%;background:#16aa77;box-shadow:0 0 0 4px #16aa771f}.spinner{width:13px;height:13px;border:2px solid #b7c2c9;border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.surface-popover{background:#f4fbfdeb;border:1px solid rgba(255,255,255,.8);box-shadow:0 24px 65px #1f415238;backdrop-filter:blur(24px)}.sort-menu{position:absolute;top:calc(var(--toolbar-button-size) + 10px);left:var(--sort-menu-offset);width:min(360px,calc(100vw - 32px));padding:12px;border-radius:28px}.sort-menu p{margin:7px 10px 10px;color:var(--muted);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.12em}.sort-menu button{width:100%;min-height:50px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border:0;border-radius:17px;background:transparent;cursor:pointer;font-weight:600;text-align:left}.sort-menu button:hover{background:#2788bd14}.sort-menu button.selected{color:#176c9a;background:#2788bd1f}.segmented{display:grid;grid-template-columns:repeat(2,1fr);padding:4px;background:#e9ebed;border-radius:26px}.segmented button{min-height:44px;border:0;border-radius:22px;background:transparent;cursor:pointer;font-weight:700}.segmented button.active{background:#fff;box-shadow:0 4px 15px #222d3714}.counter-list{display:grid;gap:13px}.counter-card{position:relative;overflow:hidden;min-height:132px;background:var(--color);border-radius:25px;box-shadow:0 14px 30px color-mix(in srgb,var(--color) 24%,transparent)}.counter-card:after{content:"";position:absolute;width:240px;height:240px;right:-90px;top:-128px;border-radius:50%;background:#ffffff1a;pointer-events:none}.counter-main{position:relative;z-index:1;width:100%;min-height:132px;padding:20px 21px;border:0;color:#fff;background:transparent;cursor:pointer;display:flex;align-items:stretch;justify-content:space-between;text-align:left}.counter-copy{display:flex;flex-direction:column;justify-content:center;min-width:0}.counter-copy h2{margin:0;font-size:clamp(23px,6vw,32px);letter-spacing:-.035em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.counter-stats{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;padding-left:12px}.counter-stats strong{font-family:ui-rounded,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:clamp(38px,11vw,62px);line-height:.9;letter-spacing:-.06em}.today-delta{padding:6px 10px;background:#09344829;border-radius:13px;color:#ffffffeb;font-size:12px;font-weight:700}.empty-state{padding:68px 20px;text-align:center}.empty-icon{width:74px;height:74px;margin:auto auto 20px;display:grid;place-items:center;color:var(--blue);background:#e5f4fb;border-radius:25px}.empty-state h2{margin-bottom:8px;font-size:22px}.empty-state p{max-width:390px;margin:0 auto 24px;color:var(--muted);line-height:1.5}.detail-page{height:100dvh;min-height:0;overflow:hidden;color:#f6fbfd;background:var(--counter-color);overscroll-behavior:none;touch-action:none;transition:background .3s ease}.detail-view{position:relative;width:min(100%,760px);height:100dvh;min-height:0;margin:0 auto;padding:max(20px,env(safe-area-inset-top)) 24px max(18px,env(safe-area-inset-bottom));overflow:hidden;display:grid;grid-template-rows:auto clamp(118px,17dvh,136px) auto 1fr}.detail-view:before,.detail-view:after{content:"";position:absolute;border-radius:50%;pointer-events:none}.detail-view:before{width:460px;height:460px;right:-230px;top:-180px;background:#ffffff12;animation:background-orbit-one 13s ease-in-out infinite alternate}.detail-view:after{width:360px;height:360px;left:-210px;bottom:-210px;border:46px solid rgba(255,255,255,.035);animation:background-orbit-two 17s ease-in-out infinite alternate}.detail-header{position:relative;z-index:3;display:grid;grid-template-columns:54px 1fr 54px;align-items:center;gap:12px}.glass-button{width:54px;height:54px;display:grid;place-items:center;color:#fff;background:#ffffff29;border:1px solid rgba(255,255,255,.2);border-radius:50%;box-shadow:none}.glass-button:disabled{opacity:.34;cursor:not-allowed;transform:none}.detail-title{min-width:0;text-align:center}.detail-title h1{margin:0;font-size:21px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.detail-control-rail{position:absolute;top:0;right:0;display:flex;flex-direction:column;align-items:flex-end;gap:10px}.increment-spinner{position:relative;width:54px;height:154px;color:#fff;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 15%,#000 85%,transparent);mask-image:linear-gradient(to bottom,transparent,#000 15%,#000 85%,transparent)}.spinner-track{display:grid;grid-template-rows:repeat(7,22px);justify-items:end;will-change:transform}.increment-spinner.snapping .spinner-track{transition:transform .19s cubic-bezier(.2,.72,.25,1)}.increment-spinner button,.increment-spinner output,.increment-spinner .spinner-track>span{width:100%;height:22px;padding:0;display:grid;place-items:center end;color:#ffffff94;background:transparent;border:0;cursor:pointer;font-size:14px;font-weight:720;line-height:1;text-align:right}.increment-spinner button.middle{color:#ffffff57}.increment-spinner button.far{color:#ffffff29}.increment-spinner output{color:#fff;font-size:20px;font-weight:850;text-shadow:0 2px 10px rgba(16,72,100,.18);cursor:default}.spinner-haptic{position:absolute;z-index:2;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ns-resize;touch-action:none}.detail-tools{position:relative;z-index:1;margin:22px 4px 0;display:flex;align-items:flex-start;pointer-events:none}.detail-tools button{display:flex;align-items:center;gap:8px;padding:9px 13px;color:#fff;background:#ffffff24;border:0;border-radius:15px;cursor:pointer;font-weight:700;pointer-events:auto}.count-readout{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;margin:0 0 28px}.count-value{position:relative;display:flex;align-items:center;justify-content:center}.count-value strong{font-family:ui-rounded,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:clamp(74px,22vw,142px);line-height:1.05;letter-spacing:-.025em}.count-feedback{position:absolute;left:50%;bottom:calc(100% + 7px);translate:-50% 0;padding:7px 11px;color:var(--counter-color);background:#fffffff0;border-radius:18px;font-size:16px;font-weight:800;line-height:1;box-shadow:0 8px 24px #09324633;animation:count-float .6s cubic-bezier(.2,.72,.25,1) both}.count-readout small{padding:7px 14px;background:#ffffff26;border-radius:16px;font-size:18px;font-weight:750}.count-stage{position:relative;z-index:1;width:min(78vw,38dvh,420px);aspect-ratio:1;margin:auto;display:grid;place-items:center;isolation:isolate}.count-radiance{position:absolute;z-index:-1;inset:0;border:2px solid rgba(255,255,255,.52);border-radius:50%;box-shadow:0 0 0 24px #ffffff1f,0 0 0 58px #ffffff0f;pointer-events:none;animation:count-radiate .6s cubic-bezier(.12,.66,.24,1) both}.count-button{position:relative;z-index:1;width:100%;aspect-ratio:1;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;color:var(--counter-color);background:#f8fdffeb;border:0;border-radius:50%;clip-path:circle(50%);box-shadow:inset 0 0 0 1px #fff6,0 28px 70px #0e364b2e;cursor:pointer;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;will-change:transform}.count-button:focus-within{outline:3px solid rgba(255,255,255,.7);outline-offset:4px}.count-trigger{position:absolute;z-index:2;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;touch-action:none}.count-symbol{width:48%;aspect-ratio:1;display:block;overflow:visible;pointer-events:none}.count-symbol polygon{fill:currentColor}@keyframes count-radiate{0%{opacity:.62;transform:scale(.9)}to{opacity:0;transform:scale(1.85)}}@keyframes count-float{0%{opacity:0;transform:translateY(14px) scale(.8)}25%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-36px) scale(.94)}}@keyframes background-orbit-one{0%{transform:translate3d(-16px,-8px,0) scale(.96)}to{transform:translate3d(24px,30px,0) scale(1.08)}}@keyframes background-orbit-two{0%{transform:translate3d(-12px,12px,0) scale(.92)}to{transform:translate3d(34px,-24px,0) scale(1.1)}}.sub-header{display:grid;grid-template-columns:54px 1fr auto;margin:8px 0 34px}.sub-header>div{text-align:center}.sub-header h1{margin:2px 0 0;font-size:21px}.save-button{height:46px;padding:0 18px;color:#fff;background:var(--ink);border-radius:23px;font-weight:700}.settings-card{padding:8px 24px;margin-bottom:18px;background:#fff;border:1px solid rgba(25,38,49,.04);border-radius:28px}.settings-card label{min-height:76px;display:grid;grid-template-columns:minmax(120px,1fr) minmax(140px,1.35fr);align-items:center;gap:20px;border-bottom:1px solid var(--line);font-size:17px;font-weight:600}.settings-card label:last-child{border-bottom:0}.settings-card input:not([type=checkbox]),.modal-sheet input{width:100%;min-height:48px;padding:0 14px;color:var(--blue);background:#f7f8f9;border:1px solid #e1e5e7;border-radius:13px;font-size:17px}.setting-title{display:flex;align-items:baseline;justify-content:space-between;padding:17px 0 10px;font-size:18px;font-weight:700}.setting-title small{color:var(--muted);font-size:12px;font-weight:500}.palette{display:flex;gap:10px;overflow-x:auto;padding:5px 1px 17px;scrollbar-width:none}.palette::-webkit-scrollbar{display:none}.palette button{width:54px;height:54px;flex:0 0 54px;position:relative;background:var(--swatch);border:0;border-radius:17px;cursor:pointer}.palette button.selected:after{content:"";position:absolute;inset:17px;background:#f8fcfe;border-radius:50%;box-shadow:0 0 0 3px #00000012}.color-picker-row{min-height:64px!important}.color-picker-row input[type=color]{justify-self:end;width:58px;min-height:42px;padding:3px;overflow:hidden;cursor:pointer}.color-picker-row input[type=color]::-webkit-color-swatch-wrapper{padding:0}.color-picker-row input[type=color]::-webkit-color-swatch{border:0;border-radius:9px}.field-group .color-picker-row{margin:0;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);font-size:14px;font-weight:700}.field-group .color-picker-row>span{margin:0;color:#6f7b84;font-size:12px;text-transform:uppercase;letter-spacing:.08em}.action-list{padding:0 24px}.action-list button{width:100%;min-height:67px;display:flex;align-items:center;gap:16px;padding:0;color:var(--ink);background:none;border:0;border-bottom:1px solid var(--line);cursor:pointer;font-size:17px;font-weight:600;text-align:left}.action-list button:last-child{border:0}.action-list svg{color:var(--blue)}.action-list .danger,.danger-action{color:#c95050}.action-list .danger svg{color:#c95050}.danger-action{margin:8px auto 0;padding:12px 18px;display:flex;align-items:center;gap:8px;background:transparent;border:0;cursor:pointer;font-weight:700}.file-input{display:none}.import-message{margin:-4px 6px 16px;padding:11px 14px;color:#146f54;background:#e8f7f1;border-radius:14px;font-size:13px;font-weight:650}.import-message.error-message{color:#a13f3f;background:#fff0f0}.history-header{margin:8px 0 35px}.history-tabs{width:min(420px,calc(100% - 132px))}.history-tabs button{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.month-head,.chart-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.month-head h1,.chart-title h1{margin:3px 0 0;font-size:clamp(25px,6vw,34px);letter-spacing:-.04em}.month-head>div:last-child{display:flex;gap:8px}.month-head button{width:43px;height:43px;display:grid;place-items:center;background:#fff;border:0;border-radius:50%;cursor:pointer}.month-head button.next svg{transform:rotate(180deg)}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.weekday{padding-bottom:8px;color:#a1a9b0;font-size:11px;font-weight:800;text-align:center}.calendar button{aspect-ratio:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:transparent;border:2px solid transparent;border-radius:16px;cursor:pointer;font-size:15px}.calendar button strong{color:var(--blue);font-size:11px}.calendar button.selected{background:#fff;border-color:var(--blue);box-shadow:0 8px 20px #2788bd1f}.calendar button.today span{width:25px;height:25px;display:grid;place-items:center;color:#fff;background:var(--ink);border-radius:50%}.day-detail{margin:30px -24px -40px;min-height:380px;padding:28px 24px 40px;background:#eceef2;border-top:1px solid #dde1e4}.day-detail-head{display:flex;align-items:center;justify-content:space-between}.day-detail-head h2,.history-log h2{margin:0 0 14px;color:#707a84;font-size:18px}.day-detail-head strong{color:var(--blue)}.entry-list{padding:0 20px;background:#fff;border-radius:24px}.entry-list div{min-height:67px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.entry-list div:last-child{border:0}.entry-list strong{color:var(--blue);font-size:17px}.select-day{min-height:270px;display:grid;place-content:center;justify-items:center;color:#9ba3aa}.select-day p{margin-top:12px}.muted{color:var(--muted)}.chart-card{padding:26px;margin-bottom:28px;background:#fff;border-radius:28px}.chart-title strong{color:var(--blue);font-family:ui-rounded,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:30px}.chart{height:270px;display:flex;align-items:flex-end;gap:8px;padding:30px 3px 10px;overflow-x:auto;border-bottom:1px solid var(--line)}.bar-column{min-width:42px;height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px}.bar-column>span{color:#65727c;font-size:10px;font-weight:700}.bar-column i{width:min(34px,70%);min-height:4px;display:block;background:var(--counter-color);border-radius:7px 7px 2px 2px}.bar-column small{color:#9aa2a8;font-size:9px;white-space:nowrap}.chart-empty{margin:auto;color:var(--muted)}.segmented.compact{margin-top:16px}.segmented.compact button{min-height:38px}.period-tabs{grid-template-columns:repeat(4,1fr)}.history-log{margin:0 -24px -40px;padding:28px 24px 50px;background:#eceef2}.history-log h2{margin-top:25px}.history-log h2:first-child{margin-top:0}.history-log h2 span{color:var(--blue)}.modal-backdrop,.auth-wall{position:fixed;z-index:50;inset:0;display:flex;align-items:flex-end;justify-content:center;padding:22px;background:#141e2659;backdrop-filter:blur(10px)}.modal-sheet{width:min(100%,650px);max-height:calc(100dvh - 30px);overflow-y:auto;padding:28px;background:#f7f8fb;border-radius:34px;box-shadow:0 35px 90px #0c1b2747}.compact-sheet{align-self:center}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:26px}.modal-head h1{margin:4px 0 0;font-size:clamp(28px,7vw,38px);letter-spacing:-.045em}.close-button{min-height:44px;padding:0 16px;border-radius:22px;font-weight:700}.modal-sheet>label,.split-fields label{display:block;padding:15px 20px;margin-bottom:12px;background:#fff;border-radius:19px;font-weight:700}.modal-sheet label>span,.field-group>span{display:block;margin-bottom:8px;color:#6f7b84;font-size:12px;text-transform:uppercase;letter-spacing:.08em}.field-group{padding:17px 20px 5px;margin-bottom:16px;background:#fff;border-radius:19px}.primary-action{min-height:50px;padding:0 22px;color:#fff;background:var(--ink);border:0;border-radius:25px;cursor:pointer;font-weight:750}.primary-action.wide{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;background:var(--blue)}.primary-action:disabled{opacity:.45;cursor:not-allowed}.split-fields{display:grid;grid-template-columns:1.4fr 1fr;gap:12px}.sync-panel{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:18px;margin-bottom:17px;background:#fff;border-radius:22px}.sync-panel div{display:flex;flex-direction:column}.sync-panel small{margin-top:4px;color:var(--muted)}.sync-panel button{padding:8px 12px;color:var(--blue);background:#e8f4fa;border:0;border-radius:12px;cursor:pointer;font-weight:700}.sync-orb{width:12px;height:12px;background:#d58c57;border-radius:50%;box-shadow:0 0 0 6px #d58c5721}.sync-orb.online{background:#16aa77;box-shadow:0 0 0 6px #16aa7721}.fine-print{padding:0 6px;color:var(--muted);font-size:12px;line-height:1.55}.auth-wall{z-index:100;align-items:center;background:#f0f4f6}.auth-card{width:min(100%,460px);padding:38px;background:#fff;border-radius:32px;box-shadow:0 25px 80px #1a364824}.auth-card h1{margin:5px 0 8px;font-size:34px;letter-spacing:-.045em}.auth-card>p{color:var(--muted);line-height:1.55}.auth-card label{display:block;margin:23px 0 14px}.auth-card label span{display:block;margin-bottom:7px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.auth-card input{width:100%;min-height:52px;padding:0 14px;border:1px solid #dce2e5;border-radius:14px}.auth-error{margin-bottom:12px;padding:11px 13px;color:#a13f3f;background:#fff0f0;border-radius:12px;font-size:13px}.text-button{width:100%;margin-top:14px;padding:10px;color:var(--blue);background:transparent;border:0;cursor:pointer;font-weight:700}@media(max-width:520px){.page{padding-left:16px;padding-right:16px}.round-button{width:50px;height:50px;flex-basis:50px}.toolbar{--toolbar-button-size: 50px;--sort-menu-offset: -58px;gap:8px}.sync-chip{width:34px;flex:0 0 34px;justify-content:center;padding:0}.sync-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.counter-card,.counter-main{min-height:116px}.counter-main{padding:18px}.detail-view{padding-left:18px;padding-right:18px}.count-stage{width:min(78vw,38dvh,360px)}.settings-card{padding-left:18px;padding-right:18px}.settings-card label{grid-template-columns:1fr 1.3fr;gap:10px;font-size:15px}.history-header{gap:8px}.history-tabs{width:calc(100% - 116px)}.calendar{gap:1px}.calendar button{border-radius:13px}.day-detail,.history-log{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}.modal-backdrop{padding:0}.modal-sheet{width:100%;max-height:92dvh;border-radius:32px 32px 0 0;padding:24px 20px max(26px,env(safe-area-inset-bottom))}.compact-sheet{align-self:flex-end}.auth-card{padding:28px 24px}}@media(min-width:800px){.home-page{padding-top:50px}.detail-page{background:var(--counter-color)}.detail-view{width:min(calc(100% - 64px),1100px);grid-template-columns:minmax(360px,1.05fr) minmax(280px,.95fr);grid-template-rows:auto auto 1fr;column-gap:clamp(48px,8vw,110px);background:var(--counter-color)}.detail-header{grid-column:1 / -1}.detail-tools{grid-column:1 / -1;margin-top:18px}.count-stage{grid-column:1;grid-row:3;width:min(36vw,420px);align-self:center}.count-readout{grid-column:2;grid-row:3;align-self:center;margin:0}.count-value strong{font-size:clamp(80px,9vw,132px)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
