:root{color-scheme:light;--ink:#202b32;--muted:#748087;--line:#e7ecec;--surface:#fff;--soft:#f5f7f7;--accent:#276652;--timer-bg:#142027;--timer-ink:#eef5f3;--timer-muted:#aab9b5;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:44px 28px;color:var(--ink);background:#f0f3f1}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,input:focus-visible{outline:3px solid #4b947a;outline-offset:4px}[hidden]{display:none!important}svg{display:block;flex-shrink:0;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}h1,h2,p{margin:0}.page-decoration{pointer-events:none;position:fixed;inset:0;background:radial-gradient(ellipse at 7% 0%,#e3ece6 0,transparent 55%),radial-gradient(ellipse at 95% 95%,#e4eae9 0,transparent 50%);z-index:-1}
.app-shell{width:min(1120px,100%);background:var(--surface);border:1px solid #e3e9e6;border-radius:22px;box-shadow:0 18px 70px #233c2e0a;overflow:hidden}.app-header{min-height:84px;padding:22px 30px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:12px}.brand-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#f0f5f2;color:var(--accent)}.brand-icon svg{width:23px;height:23px}h1{font-size:22px;font-weight:550;letter-spacing:3px}h1 span{font-size:12px;font-weight:400;letter-spacing:0;color:var(--muted);margin-left:12px}.header-actions{display:flex;align-items:center;gap:18px}.platform-label{font-size:12px;color:var(--muted)}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;min-height:42px;padding:11px 18px;border:1px solid transparent;font-size:13px;font-weight:500;transition:background .15s,transform .15s}.button:active{transform:translateY(1px)}.button-subtle{background:var(--soft);color:var(--ink);min-height:36px;padding:9px 12px;font-size:12px}.button-subtle:hover{background:#eaf0ec}.button-subtle svg{width:15px;height:15px}.button-primary{background:var(--accent);color:#fff;min-width:154px;min-height:46px}.button-primary:hover{background:#205643}.button-secondary{border-color:var(--line);background:var(--surface);color:#67746d;min-height:46px}.button-secondary:hover{background:var(--soft)}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 290px}.timer-panel{padding:36px 30px 28px;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:25px}.timer-screen{display:flex;flex-direction:column;justify-content:space-between;min-height:356px;padding:24px;border-radius:15px;background:var(--timer-bg);color:var(--timer-ink);transition:background-color .15s,color .15s}.screen-heading,.screen-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--timer-muted);font-size:11px;line-height:1.6}.screen-caption{letter-spacing:2px}.timer-status{display:flex;align-items:center;gap:6px;color:var(--timer-ink)}.status-dot{width:5px;height:5px;border-radius:50%;background:currentColor}.time-face{position:relative;min-width:0;flex:1;min-height:240px;display:flex;align-items:center;justify-content:center;padding:24px 0 46px}.time-value{font-family:Arial,"Helvetica Neue","Segoe UI",sans-serif;font-size:72px;font-weight:700;font-variant-numeric:lining-nums tabular-nums;letter-spacing:-.025em;line-height:1;white-space:nowrap;text-align:center;flex-shrink:0}.time-units{position:absolute;bottom:25px;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:30px;font-size:11px;letter-spacing:2px;color:var(--timer-muted)}.time-units span{opacity:.4}.screen-footer{padding-top:13px;border-top:1px solid color-mix(in srgb,var(--timer-ink) 14%,transparent)}.timer-actions{display:flex;align-items:center;justify-content:center;gap:12px}.keyboard-hint{text-align:center;font-size:11px;color:#869088;line-height:1.8;margin-top:-9px}.keyboard-hint span{padding:0 10px}
.settings{border-left:1px solid var(--line);padding:28px 24px;display:flex;flex-direction:column;gap:21px;min-width:0}.section-title{display:flex;align-items:center;justify-content:space-between}.section-title svg{width:16px;height:16px;color:#8b9690}h2{font-size:14px;font-weight:550}.duration-fieldset{border:0;padding:0;margin:0;min-width:0}.duration-fieldset legend{font-size:12px;color:var(--muted);margin-bottom:11px;padding:0}.duration-inputs{display:grid;grid-template-columns:minmax(0,1fr) 4px minmax(0,1fr) 4px minmax(0,1fr);gap:7px}.duration-inputs label{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;font-size:11px;color:var(--muted)}.duration-inputs input{width:100%;min-width:0;border:1px solid var(--line);border-radius:8px;padding:12px 0;text-align:center;background:var(--soft);color:var(--ink);font-size:21px;line-height:1.3;font-variant-numeric:tabular-nums;appearance:textfield;-moz-appearance:textfield}.duration-inputs input::-webkit-inner-spin-button{appearance:none}.duration-inputs input:disabled{opacity:.6}.input-separator{padding-top:13px;color:#8a948f}.presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:-6px}.presets button{border:1px solid var(--line);border-radius:6px;background:var(--surface);color:#6f7b75;padding:7px 1px;font-size:11px;white-space:nowrap}.presets button[aria-pressed=true]{border-color:#8daf9d;background:#f2f7f3;color:var(--accent)}.presets button:hover:enabled{background:var(--soft)}.field-error{font-size:12px;line-height:1.5;color:#a83242}.settings-divider{height:1px;background:var(--line)}.appearance-field{display:flex;flex-direction:column;gap:10px}.appearance-field>label,.field-heading label{color:var(--muted);font-size:12px}.color-input-row{display:flex;align-items:center;gap:9px;padding:6px 9px;border:1px solid var(--line);border-radius:8px;min-height:40px}.color-input-row input[type=color]{appearance:none;flex-shrink:0;border:0;padding:0;width:25px;height:26px;background:none;cursor:pointer}.color-input-row input[type=color]::-webkit-color-swatch-wrapper{padding:2px 0}.color-input-row input[type=color]::-webkit-color-swatch{border:1px solid #0002;border-radius:4px}.color-input-row input[type=text]{min-width:0;width:100%;padding:3px 0;color:var(--ink);font-size:12px;font-family:ui-monospace,monospace;border:0;background:none;text-transform:uppercase}.color-input-row>span{font-size:11px;color:var(--muted);white-space:nowrap}.color-swatches{display:flex;align-items:center;gap:10px;margin-top:2px}.color-swatches button{display:grid;place-items:center;width:29px;height:29px;padding:3px;border-radius:50%;background:transparent;border:1px solid transparent}.color-swatches button:before{content:"";width:21px;height:21px;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px #0001}.color-swatches button[aria-pressed=true]{border-color:var(--accent)}.field-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.field-heading output{font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted)}input[type=range]{width:100%;margin:0;accent-color:var(--accent);min-height:20px;cursor:pointer}.range-hints{display:flex;justify-content:space-between;color:#8a948e;font-size:11px;margin-top:-5px}.finish-rule{display:flex;align-items:flex-start;gap:9px;border-top:1px solid var(--line);padding-top:19px;color:var(--muted);font-size:11px;line-height:1.6}.finish-rule svg{width:15px;height:15px;margin-top:2px}.finish-rule p{color:#47594c;font-size:12px;margin-bottom:4px}.app-footer{padding:15px 30px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:11px;color:#829087}.app-footer>span:first-child{display:flex;align-items:center;gap:7px}.footer-dot{width:5px;height:5px;border-radius:50%;background:#709582}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);background:#263b30;color:#fff;border-radius:10px;padding:12px 18px;font-size:13px;z-index:10;box-shadow:0 8px 24px #0002}
.fullscreen-option{display:flex;align-items:center;gap:9px;min-height:24px;font-size:12px;line-height:1.5;color:var(--ink);cursor:pointer;grid-column:1/-1}
.fullscreen-option input{width:16px;height:16px;margin:0;flex-shrink:0;accent-color:var(--accent);cursor:pointer}
/* Fullscreen intentionally contains only the signed time readout. */
.timer-screen:fullscreen,body.is-fullscreen .timer-screen{position:fixed;inset:0;width:100vw;height:100dvh;min-height:0;border:0;border-radius:0;padding:4vh 4vw;margin:0;z-index:1000;display:flex;cursor:none!important;background:var(--timer-bg)}
.timer-screen:fullscreen *,body.is-fullscreen .timer-screen *{cursor:none!important}
.timer-screen:fullscreen .screen-heading,.timer-screen:fullscreen .screen-footer,.timer-screen:fullscreen .time-units,body.is-fullscreen .screen-heading,body.is-fullscreen .screen-footer,body.is-fullscreen .time-units{display:none!important}
.timer-screen:fullscreen .time-face,body.is-fullscreen .time-face{min-height:0;width:100%;height:100%;padding:0;flex:1;display:flex;align-items:center;justify-content:center}
body.is-fullscreen{padding:0;overflow:hidden;background:var(--timer-bg)}body.is-fullscreen .app-header,body.is-fullscreen .settings,body.is-fullscreen .timer-actions,body.is-fullscreen .keyboard-hint,body.is-fullscreen .app-footer,body.is-fullscreen .page-decoration,body.is-fullscreen .toast{display:none!important}body.is-fullscreen .app-shell{border:0;box-shadow:none}
@media(max-height:820px) and (min-width:701px){body{padding:18px 24px}.app-header{min-height:70px;padding:16px 26px}.settings{gap:13px;padding:22px 24px}.timer-panel{padding:24px 26px}.app-footer{padding:12px 26px}}
@media(max-height:720px) and (min-width:701px){body{padding:10px 20px}.app-header{min-height:64px;padding:13px 26px}.settings{gap:10px;padding-top:18px;padding-bottom:18px}.app-footer{padding:10px 26px}}
@media(max-width:820px){body{padding:24px 16px}.workspace{grid-template-columns:minmax(0,1fr) 260px}.timer-panel{padding:26px 20px}.timer-screen{padding:20px;min-height:330px}.settings{padding:26px 18px}.keyboard-hint span{padding:0 5px}.time-face{min-height:220px}}
@media(max-width:700px){body{display:block;padding:16px 12px}.app-header{padding:18px 20px;min-height:74px}.workspace{grid-template-columns:minmax(0,1fr)}.timer-panel{padding:24px 20px 20px}.timer-screen{min-height:290px}.time-face{min-height:190px}.settings{display:grid;grid-template-columns:1fr 1fr;gap:22px 26px;border-left:0;border-top:1px solid var(--line);padding:26px}.section-title,.duration-fieldset,.presets,.settings-divider,.settings>h2,.finish-rule,#duration-error{grid-column:1/-1}.duration-inputs input{padding:12px}.presets{gap:8px}.presets button{padding:9px}.app-footer{padding:15px 20px}.app-footer>span:last-child{font-size:10px}}
@media(max-width:420px){.app-header{padding:16px}.brand{gap:9px}h1{font-size:20px}h1 span{display:none}.header-actions{gap:10px}.platform-label{font-size:11px}.button-subtle{font-size:11px;padding:9px}.timer-panel{padding:16px 12px 18px;gap:22px}.timer-screen{padding:17px;min-height:260px}.time-face{min-height:170px}.screen-heading,.screen-footer{font-size:10px}.settings{display:flex;padding:24px 20px;gap:22px}.keyboard-hint{font-size:10px}.keyboard-hint span{padding:0 4px}.app-footer>span:last-child{display:none}.app-footer{justify-content:center}.time-units{gap:24px}}
@media(pointer:coarse){.button,.presets button{min-height:44px}.color-swatches{gap:4px}.color-swatches button{width:40px;height:40px}.color-swatches button:before{width:27px;height:27px}input[type=range]{min-height:36px}.color-input-row{min-height:44px}.color-input-row input[type=text]{font-size:16px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
