@font-face{font-family:LocalNumbers;src:local("Avenir Next");font-display:swap}
:root{color-scheme:light;--bg:#f6f7f2;--paper:#fffefa;--ink:#263b34;--muted:#758079;--green:#326b54;--green-dark:#285440;--line:#e4e8df;--light:#eaf0e5;--radius:26px;--font:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:14px;-webkit-font-smoothing:antialiased}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #94ad67;outline-offset:4px}button:disabled{opacity:.5}a{color:var(--green)}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.app-shell{width:100%;max-width:492px;margin:0 auto;padding:0 24px;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.topbar{height:96px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:var(--ink);font-size:19px;letter-spacing:2px;font-weight:650}.brand-mark{width:43px;height:43px;background:#e1eadb;border:1px solid #dbe4d4;border-radius:15px;display:grid;place-items:center;color:var(--green)}.brand-mark svg{width:25px;height:25px}.brand-en{display:block;font-size:8px;letter-spacing:1.9px;font-weight:500;margin-top:5px;color:var(--muted)}.icon-button{position:relative;width:42px;height:42px;border:1px solid var(--line);background:transparent;border-radius:50%;display:grid;place-items:center;padding:0}.icon-button:hover{background:var(--light)}.notification-dot{position:absolute;top:9px;right:10px;width:5px;height:5px;border-radius:50%;background:var(--green)}.greeting{padding:15px 1px 25px}.eyebrow{text-transform:uppercase;font-size:10px;font-weight:600;letter-spacing:1.5px;color:var(--muted);margin:0 0 13px}.greeting .eyebrow{font-size:11px;letter-spacing:1px}h1{margin:0 0 11px;font-size:27px;font-weight:550;letter-spacing:.6px;line-height:1.4}.intro{margin:0;color:var(--muted);font-size:12px;letter-spacing:.3px}.timer-card{background:var(--paper);border:1px solid #e7eadf;border-radius:var(--radius);padding:21px 23px 17px;box-shadow:0 6px 30px #354d2d04}.card-top{display:flex;justify-content:space-between;align-items:center;gap:5px}.status-pill{display:flex;align-items:center;gap:6px;font-size:11px;letter-spacing:.4px;color:var(--muted)}.status-pill>span:first-child{width:6px;height:6px;border-radius:50%;background:#b7c1ad}.status-pill.active{color:var(--green)}.status-pill.active>span:first-child{background:var(--green);box-shadow:0 0 0 4px #326b540d}.goal-pill{border:0;background:#f0f3eb;border-radius:20px;display:flex;align-items:center;gap:5px;padding:7px 9px 7px 12px;font-size:11px;color:#56644d}.goal-pill svg{width:12px;height:12px}.circular-timer{position:relative;width:248px;height:248px;margin:23px auto 12px}.progress-ring{width:100%;height:100%;overflow:visible;stroke-width:7}.ring-track{stroke:#edf0e6}.ring-dots{stroke:#dce3d2;stroke-width:1;stroke-dasharray:1 7;stroke-linecap:round}.ring-progress{stroke:var(--green);transform:rotate(-90deg);transform-origin:120px 120px;stroke-dasharray:653.451271947;stroke-dashoffset:653.451271947;transition:stroke-dashoffset 1s linear;stroke-linecap:round}.ring-end{fill:var(--paper);stroke:#a8bb94;stroke-width:2}.timer-content{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding-top:3px}.timer-caption{font-size:11px;letter-spacing:1.5px;color:var(--muted);margin-bottom:13px}.timer{font-family:LocalNumbers,"Avenir Next",var(--font);font-variant-numeric:tabular-nums;font-size:42px;font-weight:500;letter-spacing:-1.9px;line-height:1.15}.timer.long{font-size:32px;letter-spacing:-1px}.progress-caption{margin-top:13px;font-size:10px;letter-spacing:.6px;color:#8b957f}.remaining{display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted);font-size:11px}.remaining strong{font-variant-numeric:tabular-nums;color:#4f6353;font-weight:550;font-size:15px;letter-spacing:.5px}.time-points{display:flex;align-items:center;justify-content:space-between;margin:25px 0 23px;padding:18px 0 0;border-top:1px solid #edf0e8;gap:12px}.time-point{display:flex;flex-direction:column;gap:10px;padding:0;border:0;background:none;text-align:left;min-width:0}.time-point:disabled{opacity:1}.time-point>span{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted);white-space:nowrap}.time-point strong{font-weight:500;font-size:12px;white-space:nowrap}.time-point:last-child{text-align:right;align-items:flex-end}.time-point small{font-size:9px;color:var(--green);text-decoration:underline}.point{height:5px;width:5px;border-radius:50%;display:inline-block;background:#a4b489}.point.end{background:#c1cbb4}.time-link{width:30px;height:1px;background:var(--line);align-self:flex-end;margin-bottom:7px}.primary-button{border:0;background:var(--green);border-radius:15px;color:white;min-height:51px;width:100%;padding:13px 18px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:14px;font-weight:500;letter-spacing:1px;transition:background .2s,transform .15s}.primary-button:hover{background:var(--green-dark)}.primary-button:active{transform:scale(.985)}.start-button,.end-button{position:relative}.start-button svg,.end-button svg{position:absolute;right:17px;width:18px;height:18px}.end-button{background:#eaf0e5;color:var(--green)}.end-button:hover{background:#dfe8d7}.quiet-button{border:0;background:transparent;display:flex;align-items:center;justify-content:center;gap:7px;padding:13px 8px;font-size:11px;color:var(--muted);min-height:44px}.quiet-button svg{width:14px;height:14px}.schedule-button{margin:0 auto;padding-bottom:0}.active-note{text-align:center;font-size:10px;line-height:1.6;color:#87907f;margin:14px -5px 0}.encouragement{background:#eaf0e4;border:1px solid #e2e9d9;border-radius:22px;margin-top:18px;padding:20px 21px 18px;position:relative;overflow:hidden}.encouragement-top{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#7b886e}.small-label{display:flex;gap:6px;align-items:center;font-size:10px;letter-spacing:.6px}.small-label svg{width:14px;height:14px}.encouragement h2{font-size:17px;font-weight:550;line-height:1.5;letter-spacing:.2px;margin:17px 0 9px;color:#3d5539}.encouragement p{font-size:11px;line-height:1.9;color:#77816e;margin:0;max-width:330px}.stage-track{display:flex;gap:5px;margin-top:17px}.stage-step{height:3px;border-radius:5px;background:#d8e1cb;flex:1}.stage-step.done{background:#8dA677}.history-entry{display:flex;width:100%;align-items:center;gap:13px;border:1px solid var(--line);background:transparent;padding:18px 15px;margin-top:18px;border-radius:19px;text-align:left}.history-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:13px;background:#eaf0e5;color:#6d805f}.history-icon svg{width:19px;height:19px}.history-entry-text{display:flex;flex:1;flex-direction:column;gap:7px}.history-entry-text strong{font-size:12px;font-weight:550}.history-entry-text>span{font-size:10px;color:var(--muted)}.chevron{width:16px;height:16px;color:#84907b}.local-note{display:flex;align-items:center;justify-content:center;gap:6px;font-size:10px;color:#909788;margin:21px 0 0}.local-dot{height:4px;width:4px;background:#a4af98;border-radius:50%}footer{display:flex;justify-content:space-between;align-items:center;padding:28px 4px;font-size:10px;letter-spacing:.5px;color:#a0a699}footer button{background:none;border:0;color:#87907f;padding:8px;font-size:10px}.plan-banner{border:1px solid #dce5d2;border-radius:18px;padding:14px;display:flex;align-items:center;gap:10px;margin-top:14px;background:#eef2e9}.mini-icon svg{color:var(--green);width:20px;height:20px}.plan-banner>div{flex:1}.plan-banner strong{font-size:11px;font-weight:500}.plan-banner p{font-size:10px;color:var(--muted);margin:5px 0 0}.text-button{background:none;border:0;color:var(--green);font-size:11px;padding:12px 4px;min-height:44px}.full-width{width:100%}
dialog{border:1px solid #e7eadf;background:var(--paper);color:var(--ink);border-radius:28px;padding:26px;width:calc(100% - 32px);max-width:444px;max-height:88dvh;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 25px 100px #1e3b3326}dialog::backdrop{background:#213b334d;backdrop-filter:blur(5px)}dialog[open]{animation:sheet-in .2s ease-out}.sheet-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:25px}.sheet-head h2{font-size:21px;font-weight:550;margin:0;line-height:1.4}.sheet-head .eyebrow{font-size:8px;margin-bottom:10px}.sheet-head .icon-button{width:33px;height:33px;flex-shrink:0}.sheet-head .icon-button svg{width:16px;height:16px}.preset-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:25px}.preset-grid button{border:1px solid var(--line);border-radius:12px;padding:13px 0;background:transparent;font-size:11px}.preset-grid button.selected{border-color:var(--green);background:#eaf0e5;color:var(--green)}.field-label{display:block;font-size:12px;margin:0 0 12px;font-weight:500}.duration-inputs{display:flex;gap:10px}.duration-inputs label{min-width:0;flex:1;display:flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:12px;padding:6px 12px;background:#f6f7f1}.duration-inputs input{width:100%;min-width:0;appearance:textfield;-moz-appearance:textfield;border:0;background:none;padding:9px 0;font-size:21px;color:var(--ink);font-variant-numeric:tabular-nums}.duration-inputs input::-webkit-inner-spin-button{-webkit-appearance:none}.duration-inputs span{white-space:nowrap;font-size:10px;color:var(--muted)}.field-help{font-size:11px;line-height:1.9;color:var(--muted);margin:13px 0}.form-error{font-size:12px;color:#a34131;line-height:1.6;min-height:0;margin:12px 0}.form-error:empty{display:none}form>.primary-button{margin-top:24px}.datetime-input{width:100%;min-width:0;border:1px solid var(--line);border-radius:12px;background:#f6f7f1;color:var(--ink);padding:14px 12px;font-size:16px;min-height:51px}.finish-summary{text-align:center;margin:28px 0}.finish-summary>span{display:block;color:var(--muted);font-size:11px;margin-bottom:13px}.finish-summary>strong{font-size:38px;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:-1px}.finish-summary p{font-size:11px;line-height:1.8;color:var(--muted);margin:20px 0}.switch-row{display:flex;align-items:center;gap:12px;padding:18px 0;border-bottom:1px solid var(--line);cursor:pointer;position:relative}.switch-row:first-of-type{padding-top:0}.switch-row>span:first-child{display:flex;flex:1;flex-direction:column;gap:7px}.switch-row strong{font-weight:550;font-size:13px}.switch-row small{font-size:10px;color:var(--muted);line-height:1.7}.switch-row input{position:absolute;opacity:0;right:0;width:44px;height:26px}.switch{position:relative;width:42px;height:25px;border-radius:30px;background:#d9dfd1;transition:background .2s;flex-shrink:0}.switch:after{content:"";position:absolute;top:3px;left:3px;width:19px;height:19px;background:white;border-radius:50%;box-shadow:0 1px 3px #283f2920;transition:transform .2s}.switch-row input:checked+.switch{background:var(--green)}.switch-row input:checked+.switch:after{transform:translateX(17px)}.switch-row input:focus-visible+.switch{outline:3px solid #94ad67;outline-offset:3px}.reminder-channel{padding:18px;background:#f0f3eb;border-radius:17px;margin-top:20px}.channel-title{display:flex;align-items:center;gap:8px}.channel-title svg{width:17px;height:17px;color:var(--green)}.channel-title strong{font-size:12px;font-weight:550}.channel-state{margin-left:auto;font-size:10px;color:var(--muted)}.reminder-channel>p{font-size:11px;line-height:1.9;color:var(--muted);margin:12px 0}.secondary-button{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;border:1px solid #d6e0ce;border-radius:12px;background:var(--paper);min-height:44px;font-size:12px;padding:11px 13px;color:var(--green)}.secondary-button:hover{background:#eaf0e5}.secondary-button svg{width:16px;height:16px}.calendar-channel{background:transparent;border:1px solid var(--line)}.history-stats{display:flex;justify-content:space-around;padding:18px 0 23px;border-bottom:1px solid var(--line);margin-bottom:10px}.history-stats>div{display:flex;flex-direction:column;align-items:center;gap:10px}.history-stats strong{font-size:25px;font-weight:500}.history-stats span{font-size:10px;color:var(--muted)}.history-list{max-height:42dvh;overflow:auto}.history-item{padding:19px 0;border-bottom:1px solid var(--line)}.history-item-head{display:flex;justify-content:space-between;align-items:center;font-size:12px}.history-item-head strong{font-weight:500}.history-item-head span{font-size:9px;border-radius:20px;background:#eaf0e5;color:var(--green);padding:5px 8px}.history-item p{font-size:10px;color:var(--muted);margin:10px 0 0;line-height:1.8}.history-item .history-duration{font-size:22px;font-weight:500;letter-spacing:.5px;color:var(--ink);font-variant-numeric:tabular-nums;margin-top:10px}.empty-history{text-align:center;padding:35px 15px;color:var(--muted);font-size:12px;line-height:2}.empty-history svg{display:block;margin:0 auto 15px;width:27px;height:27px;color:#91a37c}.backup-actions{display:flex;align-items:center;gap:18px;margin-top:20px}.backup-actions>.secondary-button{flex:1}.backup-actions>.text-button{min-width:64px}.about-copy{font-size:13px;color:#657461;line-height:2.1}.toast{position:fixed;bottom:max(27px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 40px);background:#294c3f;color:#fff;padding:14px 20px;border-radius:15px;box-shadow:0 10px 30px #153e2c29;z-index:99;font-size:12px;line-height:1.7;text-align:center;pointer-events:none}.notice{padding:13px 15px;border-radius:12px;line-height:1.8;font-size:11px;margin:0 0 15px}.error{background:#fff0e8;color:#924d37}body:has(dialog[open]){overflow:hidden}
.switch{pointer-events:none}
@keyframes sheet-in{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:800px){body{background:radial-gradient(ellipse at 15% 20%,#e8edde55,transparent 50%),radial-gradient(ellipse at 85% 70%,#e3e9dc55,transparent 50%),var(--bg)}.app-shell{padding-top:18px}.greeting{padding-top:22px}footer{padding-bottom:35px}}
@media(max-width:480px){dialog{margin: auto 0 0;width:100%;max-width:100%;border-radius:26px 26px 0 0;padding:25px 24px calc(24px + env(safe-area-inset-bottom));max-height:91dvh}}
@media(max-width:360px){.app-shell{padding-left:17px;padding-right:17px}.topbar{height:84px}h1{font-size:24px}.timer-card{padding:19px 18px 15px}.circular-timer{width:225px;height:225px}.timer{font-size:37px}.time-point strong{font-size:11px}.time-link{width:12px}.duration-inputs{gap:7px}.duration-inputs label{padding:6px 8px}.encouragement{padding:18px}.goal-pill{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
