:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#243d32;background:#fafbf8;font-synthesis:none;--green:#294f41;--muted:#8c968c;--line:#e8ece5;--amber:#9c7147}*{box-sizing:border-box}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent;outline-offset:5px}button{font:inherit;color:inherit;cursor:pointer;transition:background .18s,opacity .18s,transform .18s}button:disabled{cursor:not-allowed;opacity:.35}button:active:not(:disabled){transform:translateY(1px)}a{color:inherit;text-decoration:none}button svg{width:20px;height:20px}[hidden]{display:none!important}.app-shell{min-height:100dvh;max-width:1120px;margin:0 auto;padding:0 48px;display:flex;flex-direction:column}.header{display:flex;align-items:center;justify-content:space-between;padding:29px 0}.brand{display:flex;align-items:center;gap:10px;font-size:19px;letter-spacing:-.6px;font-weight:600;line-height:1.25}.brand img{object-fit:contain;opacity:.9}.brand small{display:block;font-size:10px;letter-spacing:.6px;font-weight:400;color:#9aa392;margin-top:4px}.header nav{display:flex;align-items:center;gap:20px}.display-link{display:flex;align-items:center;gap:7px;font-size:11px;color:#879386;transition:color .2s;white-space:nowrap}.display-link:hover{color:var(--green)}.display-link svg{width:17px;height:17px;flex-shrink:0}.icon-button{display:grid;place-items:center;border:0;background:transparent;width:36px;height:36px;border-radius:50%;color:#8b9788}.icon-button:hover{background:#eef2ea;color:#34543e}.timer-main{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 0 65px;min-height:520px}.timer-state{display:flex;align-items:center;gap:7px;font-size:11px;color:#81917d;letter-spacing:1px}.status-dot{height:5px;width:5px;border-radius:50%;background:#b1bda8}.status-dot.running{background:#719060;animation:breathe 2.5s ease-in-out infinite}.status-dot.overtime{background:var(--amber)}.clock{text-align:center;margin:23px 0 30px;min-width:340px}.time{font-variant-numeric:tabular-nums;font-size:clamp(96px,13vw,144px);font-weight:250;letter-spacing:-7px;line-height:1.12;color:#273f34}.clock-note{color:#a0a79b;font-size:12px;letter-spacing:.5px;margin:13px 0 26px;line-height:1.8;min-height:22px}.time-track{height:2px;width:140px;background:#e8ede2;margin:0 auto;overflow:hidden;border-radius:4px}.time-track span{height:100%;display:block;width:100%;background:#a5b59a;transition:width .2s linear}.clock.last-ten .time{font-size:154px;line-height:1.045;letter-spacing:-4px}.clock.overtime .time{color:var(--amber)}.clock.overtime .time-track span{background:var(--amber)}.presets{display:flex;align-items:center;justify-content:center;gap:5px;background:#f0f3ec;border-radius:11px;padding:4px}.preset{border:0;border-radius:8px;padding:10px 16px;background:transparent;font-size:11px;line-height:1.25;color:#8a9782;white-space:nowrap}.preset:hover:not(:disabled){background:#e9eee1}.preset.active{background:#fff;color:#385937;box-shadow:0 1px 5px #34452d08}.timing-options{display:flex;flex-direction:column;align-items:center;min-height:67px}.edit-hint{font-size:10px;color:#a6af9e;margin:9px 0 0;min-height:13px}.custom-form{display:flex;align-items:center;gap:9px;padding:16px 0 0;max-width:370px;justify-content:center;flex-wrap:wrap}.custom-form label{display:flex;align-items:center;gap:5px;color:#97a38f;font-size:11px}.custom-form input{width:66px;padding:9px 6px;text-align:center;border:1px solid #e0e6d9;border-radius:7px;background:#fff;color:var(--green);font:14px -apple-system,sans-serif}.custom-form button{border:1px solid #d9e3cf;border-radius:7px;background:#edf3e5;font-size:11px;padding:9px 13px}.custom-form p{width:100%;font-size:11px;color:var(--amber);margin:1px 0 0;text-align:center}.timer-controls{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:16px;padding-left:44px}.primary{min-width:182px;min-height:48px;display:flex;align-items:center;justify-content:center;gap:11px;border:0;border-radius:11px;padding:14px 25px;background:var(--green);color:#f5f8f0;font-size:13px;font-weight:450;letter-spacing:1px;box-shadow:0 5px 14px #25432c0c}.primary:hover{background:#1f4234}.primary>span:first-child{font-size:11px}.reset{width:36px;height:36px}.reset svg{width:18px;height:18px}.reminder-note{font-size:10px;color:#a5ad9c;margin:23px 0 0;letter-spacing:.1px;text-align:center;line-height:1.8}.footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 0 27px;color:#acb3a6;font-size:9px}.footer-dot{padding:0 7px;color:#c3c9ba}.footer-links{display:flex;align-items:center;gap:18px}.footer-links button{background:none;border:0;padding:0;font-size:9px;color:inherit}.footer a:hover,.footer button:hover{color:var(--green)}dialog{width:min(414px,calc(100% - 36px));padding:25px;border:1px solid #e2e8db;border-radius:17px;background:#fdfefa;color:#304730;box-shadow:0 20px 80px #2433251a;max-height:88dvh}dialog::backdrop{background:#24332530;backdrop-filter:blur(5px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin:-4px -5px 21px 0}.dialog-heading h2{font-size:17px;font-weight:500;margin:0;letter-spacing:.2px}.dialog-heading .icon-button{font-size:23px;font-weight:300}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.setting-row>label{font-size:13px;line-height:1.5}.setting-row small{display:block;font-size:10px;color:#9ca793;margin-top:4px}.switch{border:0;border-radius:99px;padding:3px;width:32px;height:19px;background:#809b70}.switch>span{display:block;width:13px;height:13px;border-radius:50%;background:#fff;margin-left:13px;transition:margin .2s}.switch[aria-checked=false]{background:#d7dece}.switch[aria-checked=false]>span{margin-left:0}.volume-row{display:flex;align-items:center;gap:12px;margin-top:26px;font-size:11px;color:#94a08a}.volume-row input{accent-color:#8b9f79;height:3px;width:100%;min-width:0;flex:1}.volume-row output{font-size:10px;min-width:27px}.volume-row>label{white-space:nowrap}.quiet-button{background:none;border:1px solid #e3e9db;border-radius:6px;padding:6px 10px;font-size:10px;white-space:nowrap}.quiet-button:hover:not(:disabled){background:#f0f4e9}.settings-note{font-size:10px;color:#9aa58e;line-height:1.9;margin:15px 0 0}.video-options{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:19px 0;margin-top:21px}.video-options summary{font-size:12px;cursor:pointer;color:#69835c;list-style:none}.video-options summary:after{content:'＋';float:right;color:#9aa88c}.video-options[open] summary:after{content:'−'}.video-options summary>span{font-size:9px;color:#a7b19d;margin-left:10px}.preview-heading{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#8f9c81;margin-top:17px}.video-preview{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:8px;background:#c9d4c3;margin-top:9px}.video-preview canvas{width:100%;height:100%}.video-preview>span{position:absolute;left:12px;bottom:11px;font-size:9px;color:#73886b}.zoom-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;color:#8c9d7c;margin:12px 0}.settings-link{font-size:10px;color:#79916a}.settings-footer{display:flex;justify-content:space-between;align-items:center;color:#a6af9c;font-size:9px;margin-top:18px}.guide-dialog{width:min(440px,calc(100% - 36px))}.guide-steps{list-style:none;padding:0;margin:0;counter-reset:steps}.guide-steps li{counter-increment:steps;position:relative;padding-left:28px;margin-bottom:22px}.guide-steps li:before{content:counter(steps,decimal-leading-zero);position:absolute;left:0;top:2px;font-size:10px;color:#a9b59c}.guide-steps strong{font-size:12px;font-weight:500}.guide-steps p,.help-details p{font-size:11px;line-height:1.9;color:#94a087;margin:6px 0 0}.help-details{border-top:1px solid var(--line);padding-top:15px;margin-top:4px}.help-details summary{font-size:10px;color:#8c9e7d;cursor:pointer}.help-details a{display:block;font-size:10px;color:#728e60;margin-top:9px}.guide-done{width:100%;min-width:0;min-height:42px;font-size:12px;margin-top:24px;box-shadow:none}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);padding:11px 18px;border-radius:9px;background:#294c3c;color:#f0f5e9;font-size:11px;line-height:1.8;z-index:10;box-shadow:0 6px 25px #233a2810}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.display-view{min-height:100dvh;background:#1d392f;color:#edf2e6;padding:36px 50px;display:flex;flex-direction:column}.display-top,.display-bottom{display:flex;justify-content:space-between;align-items:center}.display-brand{display:flex;align-items:center;gap:12px;font:24px Georgia,serif}.display-brand img{object-fit:contain}.display-brand small{font:8px -apple-system,sans-serif;letter-spacing:2px;opacity:.5;margin-left:3px}.display-fullscreen{background:none;border:1px solid #ffffff22;color:#b1c2b2;border-radius:7px;padding:9px 13px;font-size:11px}.display-center{flex:1;min-height:65vh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.display-center>span{font-size:15px;letter-spacing:3px;color:#a3ba9e}#display-time{font-size:clamp(70px,21vw,300px);font-weight:300;letter-spacing:-.04em;font-variant-numeric:tabular-nums;line-height:1.3}.display-center p{font-size:13px;color:#a3ba9e;letter-spacing:1px}.display-view.last-ten #display-time{font-size:clamp(150px,32vw,460px)}.display-view.overtime{background:#443522;color:#f4e4c6}.display-view.overtime .display-center>span,.display-view.overtime .display-center p{color:#c5ae8c}.display-bottom{font-size:9px;color:#8caa8f;margin-top:20px}.display-view.overtime .display-bottom{color:#b9a382}@keyframes breathe{50%{box-shadow:0 0 0 4px #7f9a6c0d}}@media(max-width:600px){.app-shell{padding:0 25px}.header{padding:23px 0}.header nav{gap:13px}.brand{font-size:17px}.brand img{width:31px;height:31px}.brand small{font-size:9px}.display-link{font-size:10px;gap:5px}.display-link svg{width:16px;height:16px}.timer-main{padding-top:12px;padding-bottom:52px;min-height:470px}.clock{min-width:0;width:100%;margin-top:28px;margin-bottom:28px}.time{font-size:112px;letter-spacing:-6px}.clock.last-ten .time{font-size:150px}.clock-note{font-size:11px}.preset{font-size:10px;padding:10px 12px}.presets{gap:2px}.primary{min-width:170px}.reminder-note{font-size:9px}.footer{font-size:8px;padding-bottom:23px}.footer-links{gap:15px}.footer-links button{font-size:8px}.display-view{padding:25px}.display-brand{font-size:20px}.display-brand img{width:32px;height:32px}.display-brand small{display:none}}@media(max-width:360px){.app-shell{padding:0 19px}.brand{gap:7px;font-size:16px}.header nav{gap:8px}.display-link span{display:none}.preset{padding:10px}.time{font-size:98px}.footer-links{gap:12px}.clock-note{font-size:10px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

.time.long-time{font-size:104px;letter-spacing:-5px}@media(max-width:600px){.time.long-time{font-size:78px;letter-spacing:-4px}}

.brand-mark{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border-radius:10px;background:#344f43}.brand .brand-mark img{width:30px;height:30px;opacity:1;filter:brightness(0) invert(1)}.display-brand img{filter:brightness(0) invert(1)}@media(max-width:600px){.brand-mark{width:36px;height:36px;border-radius:9px}.brand .brand-mark img{width:27px;height:27px}}

.display-brand small{display:block;font-size:11px;letter-spacing:.4px;margin:4px 0 0;color:#c7d8c7}.display-brand>span{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;font-size:22px;font-weight:450;letter-spacing:.5px}

.language-button{font:11px -apple-system,BlinkMacSystemFont,sans-serif;color:#6c806c;border:1px solid #dfe6d9;border-radius:6px;min-width:36px;min-height:30px;background:transparent;padding:5px 8px;white-space:nowrap}.language-button:hover{background:#edf2e7}.display-actions{display:flex;align-items:center;gap:12px}.display-actions .language-button{color:#c7d8c7;border-color:#ffffff22}.display-actions .language-button:hover{background:#ffffff0a}html[lang=en] .timer-state{letter-spacing:.5px}html[lang=en] .clock-note{letter-spacing:0}html[lang=en] .primary{letter-spacing:.3px}html[lang=en] .display-center p{letter-spacing:0}html[lang=en] .video-options summary>span{margin-left:5px}@media(max-width:600px){.header nav{gap:9px}.language-button{font-size:10px;min-width:32px;padding:5px 6px}html[lang=en] .display-link span{display:none}.display-brand>span{font-size:18px}.display-actions{gap:8px}}

/* MPI developer credit */
.footer{flex-wrap:wrap;gap:12px}.footer>span:first-child{max-width:100%;overflow-wrap:anywhere}
