:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#fff;--bg-2:#fff;--panel:#f5f5f3;--panel-2:#ebebe7;--line:#00000024;--text:#1c1917;--muted:#423e3b;--brand:#006aa7;--brand-deep:#00476f;--brand-yellow:#fecc00;--work:#f0421d;--repeat:#006aa7;--other:#8b5cf6;--rest:#fb0;--done:#39de30;--radius:10px;--shadow:0 12px 32px #00000029}*{box-sizing:border-box}html,body{margin:0;padding:0}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;min-height:100dvh;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;overflow-x:hidden}button,input,select{font:inherit;color:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}:focus-visible{outline-offset:2px;outline:2px solid}.visually-hidden{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.app-shell{max-width:720px;padding:calc(12px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(104px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));margin:0 auto}.app-header{z-index:10;background:var(--bg);border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:-10px -4px 8px;padding:10px 4px;display:flex;position:sticky;top:0}.app-title{--title-bleed:24px;margin:0 0 0 calc(-1 * var(--title-bleed));padding:8px 24px 9px calc(1 * var(--title-bleed));background:var(--brand-yellow);color:var(--brand);letter-spacing:3px;text-transform:uppercase;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:31.2px;font-weight:600}.title-accent{color:inherit}.menubar{border:1px solid var(--line);background:var(--panel);border-radius:12px;align-items:center;gap:2px;padding:3px;display:inline-flex}.menu-btn{max-width:190px;min-height:34px;color:var(--text);background:0 0;border:none;border-radius:9px;align-items:center;gap:6px;padding:0 12px;font-size:14px;font-weight:600;transition:background .2s,opacity .2s;display:inline-flex}.menu-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.menu-btn:hover:not(:disabled){background:var(--panel-2)}.menu-btn:disabled{opacity:.4;cursor:not-allowed}.menu-btn.debug{color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.menu-sep{background:var(--line);width:1px;height:20px}.fab{right:calc(20px + env(safe-area-inset-right));bottom:calc(20px + env(safe-area-inset-bottom));z-index:40;background:var(--brand);color:#fff;letter-spacing:.04em;text-transform:uppercase;border:none;border-radius:999px;align-items:center;gap:8px;min-height:56px;padding:0 24px;font-size:16px;font-weight:800;transition:transform .15s,box-shadow .2s,opacity .2s;display:inline-flex;position:fixed;box-shadow:0 8px 24px #00000047}.fab:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 12px 28px #00000052}.fab:active:not(:disabled){transform:scale(.97)}.fab:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}.hdr-btn{text-overflow:ellipsis;white-space:nowrap;border:1px solid var(--line);background:var(--panel-2);max-width:180px;min-height:40px;color:var(--text);border-radius:999px;justify-content:center;align-items:center;gap:6px;padding:0 14px;font-size:14px;font-weight:600;transition:transform .15s,background .2s,border-color .2s,opacity .2s;display:inline-flex;overflow:hidden}.hdr-btn:hover:not(:disabled){border-color:#0000004d;transform:translateY(-1px)}.hdr-btn:disabled{opacity:.4;cursor:not-allowed}.hdr-btn.start{background:var(--brand);color:#fff;text-transform:uppercase;letter-spacing:.04em;border-color:#0000;font-weight:800}.import-error{color:#8f2c15;background:#fdece8;border:1px solid #f0a696;border-radius:10px;margin:4px 0 8px;padding:10px 14px;font-size:14px}.palette-wrap{border:1px solid var(--line);background:var(--panel);border-radius:14px;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:8px 0 16px;padding:8px;display:flex}.palette-hint{color:var(--muted);margin-left:auto;padding-right:4px;font-size:12px}.palette{gap:8px;display:flex}.palette-chip{letter-spacing:0;white-space:nowrap;color:#fff;touch-action:none;-webkit-user-select:none;user-select:none;border:1px solid #00000059;border-radius:8px;flex:none;justify-content:center;align-items:center;width:8.2em;min-height:42px;padding:0 8px;font-size:15px;font-weight:700;transition:transform .15s,filter .2s;display:flex;position:relative;box-shadow:0 2px 3px #00000059}.chip-label{text-overflow:ellipsis;padding:0 18px;overflow:hidden}.palette-chip.repeat .chip-label{padding-left:23px;padding-right:10px}.palette-chip:hover{filter:brightness(1.08)}.palette-chip:active{transform:scale(.97)}.palette-chip.work{background:var(--work)}.palette-chip.rest{background:var(--rest)}.palette-chip.other{background:var(--other)}.palette-chip.repeat{background:var(--repeat)}.icon{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:1.15em;height:1.15em}.fab .icon{width:1.2em;height:1.2em}.palette-chip>.icon{position:absolute;left:10px}.block-list{min-height:8px}.root-drop{border-radius:var(--radius);border:1.5px dashed #0000;min-height:96px;position:relative}.root-drop.empty{border-color:var(--line)}.root-empty{text-align:center;color:var(--muted);pointer-events:none;place-items:center;margin:0;padding:12px;display:grid;position:absolute;inset:0}.block{--accent:var(--other);--accent-dark:color-mix(in srgb, var(--accent) 72%, #000);width:fit-content;max-width:100%;color:var(--text);--text:#fff;--muted:#ffffffc7;--line:#ffffff59;--panel-2:#00000029;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;align-items:center;gap:4px;margin:0;padding:6px 10px 6px 2px;display:flex;position:relative}.puzzle-bg{z-index:0;pointer-events:none;filter:drop-shadow(0 2px 3px #00000059);display:block;position:absolute;top:0;left:0;overflow:visible}.block>:not(.puzzle-bg){z-index:1;position:relative}.block.work{--accent:var(--work)}.block.rest{--accent:var(--rest)}.block.other{--accent:var(--other)}.block.repeat{--accent:var(--repeat)}.block-body{flex-wrap:wrap;flex:1;align-items:center;gap:8px 10px;min-width:0;display:flex}.block-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.title-input{field-sizing:content;letter-spacing:0;background:0 0;border:none;border-bottom:1px solid #0000;border-radius:6px;outline:none;width:auto;min-width:6ch;max-width:100%;min-height:34px;padding:2px 6px;font-size:17px;font-weight:700;transition:border-color .2s,background .2s}.title-input:hover{border-bottom-color:var(--line)}.title-input:focus{background:#00000029;border-bottom-color:currentColor}.step-controls{flex-shrink:0;align-items:center;gap:6px;margin-left:auto;display:inline-flex}.stepper{align-items:center;gap:6px;display:inline-flex}.step-btn{border:1px solid var(--accent-dark);background:var(--accent-dark);width:40px;height:40px;color:var(--text);border-radius:999px;font-size:22px;font-weight:700;line-height:1;transition:background .15s,transform .1s,border-color .2s}.step-btn:hover{background:color-mix(in srgb, var(--accent) 55%, #000)}.step-btn:active{transform:scale(.92)}.step-value{text-align:center;font-variant-numeric:tabular-nums;color:#1a1a1a;border:1px solid var(--accent-dark);appearance:textfield;background:#fff;border-radius:999px;outline:none;width:60px;height:36px;font-size:16px;font-weight:700}.step-value::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.step-value::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.step-value:focus{border-color:#fff;box-shadow:0 0 0 2px #ffffff8c}.step-unit{color:#fff;font-weight:700}.remove-btn{width:40px;height:40px;color:var(--muted);background:0 0;border:1px solid #0000;border-radius:999px;font-size:24px;line-height:1;transition:color .15s,background .15s}.remove-btn:hover{color:#fff;background:#00000038}.block input,.block textarea{-webkit-user-select:text;user-select:text}.drag-handle{width:44px;min-height:44px;color:var(--muted);cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;border-radius:10px;flex:none;place-items:center;transition:color .15s,background .15s;display:grid}.drag-handle:hover{color:#fff;background:#0000002e}.drag-handle:active{cursor:grabbing}.drag-src{opacity:.25}.flip-move{transition:transform .18s}.drag-src.flip-leave-active{display:none}.repeat-drop .block-list.drag-over{outline:1.5px dashed color-mix(in srgb, var(--repeat,#f59e0b) 45%, transparent);outline-offset:2px;border-radius:var(--radius)}.drag-ghost{z-index:2000;pointer-events:none;will-change:transform;position:fixed;top:0;left:0}.drag-ghost-clone{opacity:.96;transform:scale(1.03)rotate(1deg)}.drag-ghost-clone>.puzzle-bg{filter:drop-shadow(0 14px 26px #0000008c)}html.dnd-active,html.dnd-active *{touch-action:none;-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;cursor:grabbing!important}.block.repeat{padding:8px 10px 18px 2px;display:block}.repeat-head{flex-wrap:wrap;align-items:center;gap:6px;width:fit-content;max-width:100%;display:flex}.repeat-head .title-input{min-width:6ch}.skip-rest{width:fit-content;max-width:100%;min-height:32px;color:var(--muted);cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:8px;margin:8px 0 0 14px;font-size:13px;font-weight:600;display:flex}.skip-rest input{appearance:none;border:1px solid var(--accent-dark);cursor:pointer;background:#00000040;border-radius:999px;flex:none;width:36px;height:22px;margin:0;transition:background .2s,border-color .2s;position:relative}.skip-rest input:after{content:"";background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .2s;position:absolute;top:2px;left:2px}.skip-rest input:checked{background:#fff;border-color:#fff}.skip-rest input:checked:after{background:var(--accent-dark);transform:translate(14px)}.repeat-drop{min-width:min(220px,100%);min-height:12px;margin:8px 8px 0 24px;position:relative}.repeat-drop .block-list{border-radius:10px;min-height:12px}.repeat-drop.is-empty .block-list{outline:1.5px dashed color-mix(in srgb, var(--repeat) 45%, transparent);outline-offset:-4px;min-height:44px}.drop-hint{color:#fff9;pointer-events:none;place-items:center;font-size:13px;animation:.22s both hint-in;display:grid;position:absolute;inset:0}@keyframes hint-in{0%{opacity:0}}.timeline{margin:4px 0 14px}.timeline-head{align-items:center;gap:10px;display:flex}.timeline-strip{background:var(--panel);cursor:pointer;appearance:none;border:0;border-radius:8px;flex:1;gap:2px;width:100%;min-width:0;height:16px;padding:2px;transition:height .2s;display:flex;overflow:hidden}.timeline-strip:hover:not(:disabled){height:20px}.timeline-strip:disabled{cursor:default}.tl-seg{border-radius:4px;flex:0 auto;min-width:3px;transition:opacity .3s}.tl-seg.work{background:var(--work)}.tl-seg.rest{background:var(--rest)}.tl-seg.other{background:var(--other)}.tl-seg.past{opacity:.22}.tl-seg.current{animation:1s ease-in-out infinite tl-pulse}@keyframes tl-pulse{0%,to{filter:brightness()}50%{filter:brightness(1.6)}}.timeline-total{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;flex:none;font-size:13px;font-weight:600}.timeline-body{grid-template-rows:0fr;transition:grid-template-rows .28s;display:grid}.timeline.expanded .timeline-body{grid-template-rows:1fr}.timeline-body-inner{min-height:0;overflow:hidden}.timeline-list{border-radius:var(--radius);background:var(--panel);border:1px solid var(--line);max-height:42vh;margin:8px 0 0;padding:4px;list-style:none;overflow-y:auto}.tl-row{border-radius:10px;align-items:center;gap:10px;min-height:36px;padding:4px 10px;font-size:14px;transition:opacity .3s,background .2s;display:flex}.tl-row.current{background:var(--panel-2);font-weight:700}.tl-row.past{opacity:.35}.tl-dot{border-radius:4px;flex:none;width:10px;height:10px}.tl-dot.work{background:var(--work)}.tl-dot.rest{background:var(--rest)}.tl-dot.other{background:var(--other)}.tl-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tl-cycle{text-overflow:ellipsis;white-space:nowrap;color:var(--muted);flex:0 auto;font-size:12px;overflow:hidden}.tl-dur{font-variant-numeric:tabular-nums;color:var(--muted);margin-left:auto}.timer-timeline{width:var(--ring);margin:0}.timer-timeline .timeline-strip{background:var(--wash);border-radius:5px;height:10px}.timer-timeline .timeline-list{border-color:var(--line);background:#00000014}.timer-timeline .tl-row.current{background:#0000001f}.total-time{font-size:clamp(16px, calc(var(--ring) * .045), 34px);color:var(--muted);font-weight:600}.total-time strong{color:var(--text);font-variant-numeric:tabular-nums;margin-left:6px}.total-left{font-size:clamp(15px, calc(var(--ring) * .036), 28px);color:var(--muted);font-weight:600}.total-left strong{color:var(--text);font-variant-numeric:tabular-nums;margin-left:4px}.lang-toggle{border:1px solid var(--line);background:var(--panel);border-radius:11px;align-items:center;gap:1px;padding:2px 2px 2px 7px;display:inline-flex}.lang-icon{fill:none;width:14px;height:14px;stroke:var(--muted);stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;flex:none;margin-right:4px}.lang-toggle button{min-width:32px;min-height:24px;color:var(--muted);letter-spacing:.06em;background:0 0;border:1px solid #0000;border-radius:8px;padding:0 7px;font-size:11px;font-weight:700;transition:background .2s,color .2s,border-color .2s,box-shadow .2s}.lang-toggle button:hover:not(.on){color:var(--text)}.lang-toggle button.on{background:var(--panel-2);border-color:var(--line);color:var(--text);box-shadow:0 1px 3px #00000024}.switcher-overlay.center{justify-content:center;align-items:center;padding:16px;display:flex}.share-panel{border:1px solid var(--line);background:var(--bg-2);width:min(460px,100%);max-height:100%;box-shadow:var(--shadow);border-radius:16px;padding:16px;overflow-y:auto}.share-blurb{color:var(--muted);margin:0 0 14px;font-size:13px;line-height:1.5}.share-row{flex-wrap:wrap;gap:8px;display:flex}.share-url{border:1px solid var(--line);background:var(--panel);min-width:0;min-height:40px;color:var(--muted);border-radius:999px;outline:none;flex:220px;padding:0 12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.share-url:focus{color:var(--text);border-color:var(--brand)}.hdr-btn.debug{color:var(--muted);border-style:dashed;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.app-footer{border-top:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-top:28px;padding-top:16px;display:flex}.footer-meta{min-width:0}.footer-meta p{margin:0}.footer-meta p+p{margin-top:4px}.footer-brand{letter-spacing:.06em;text-transform:uppercase;font-size:12px;font-weight:800}.footer-link{color:inherit;-webkit-text-decoration-color:var(--line);text-decoration-color:var(--line);text-underline-offset:3px;transition:color .2s,text-decoration-color .2s}.footer-link:hover{color:var(--brand);text-decoration-color:currentColor}.footer-note{color:var(--muted);font-size:11px;line-height:1.5}.switcher-overlay{z-index:50;background:#00000059;position:fixed;inset:0}.switcher-panel{width:min(360px,92vw);padding:calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) 16px;background:var(--bg-2);border-left:1px solid var(--line);flex-direction:column;gap:12px;animation:.22s switcher-in;display:flex;position:absolute;top:0;bottom:0;right:0}@keyframes switcher-in{0%{opacity:0;transform:translate(24px)}to{opacity:1;transform:translate(0)}}.switcher-head{justify-content:space-between;align-items:center;display:flex}.switcher-head h2{margin:0;font-size:18px;font-weight:800}.switcher-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.switcher-list li{border:1px solid var(--line);background:var(--panel);border-radius:12px;align-items:center;gap:6px;padding:6px 6px 6px 4px;transition:border-color .2s;display:flex}.switcher-list li.active{border-color:var(--brand)}.switcher-choose{width:44px;height:44px;color:var(--muted);background:0 0;border:none;border-radius:10px;flex:none;font-size:15px;transition:color .2s,background .2s}.switcher-list li.active .switcher-choose{color:var(--brand)}.switcher-choose:hover{background:var(--panel-2)}.switcher-label{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.switcher-meta{color:var(--muted);margin-top:-10px;padding:0 8px 6px;font-size:11px}.switcher-name{background:0 0;border:none;border-bottom:1px solid #0000;border-radius:6px;outline:none;width:100%;min-width:0;min-height:40px;padding:2px 8px;font-size:16px;font-weight:700;transition:border-color .2s,background .2s}.switcher-name:hover{border-bottom-color:var(--line)}.switcher-name:focus{border-bottom-color:var(--brand);background:var(--panel)}.switcher-note{color:var(--muted);margin:12px 2px;font-size:12px;line-height:1.5}.switcher-warn{color:var(--text);margin-top:6px;font-weight:600;display:block}.switcher-new{border:1.5px dashed var(--line);min-height:48px;color:var(--muted);background:0 0;border-radius:12px;font-size:15px;font-weight:700;transition:color .2s,border-color .2s}.switcher-new:hover{color:var(--text);border-color:#0000004d}.timer-view{--phase:var(--other);--ring:min(90vw, 62vh);--ink:#171717;--ink-invert:#fff;--wash:#00000024;--text:var(--ink);--muted:#0000008c;--line:#00000040;color:var(--text);min-height:100dvh;padding:calc(16px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));background:var(--phase);flex-direction:column;justify-content:center;align-items:center;gap:18px;transition:background .5s;display:flex}.timer-view.work{--phase:var(--work);--ink:#fff;--ink-invert:#171717;--wash:#ffffff38;--muted:#ffffffe6;--line:#fff6}.timer-view.rest{--phase:var(--rest)}.timer-view.other{--phase:var(--other)}.timer-view.done{--phase:var(--done)}.timer-top{top:calc(12px + env(safe-area-inset-top));left:calc(16px + env(safe-area-inset-left));right:calc(16px + env(safe-area-inset-right));justify-content:space-between;align-items:center;display:flex;position:absolute}.timer-exit{background:var(--wash);border:none;border-radius:999px;min-height:44px;padding:0 16px;font-size:15px;font-weight:600}.timer-step-count{font-variant-numeric:tabular-nums;color:var(--muted);font-weight:700}.ring-wrap{width:var(--ring);aspect-ratio:1;place-items:center;display:grid;position:relative;container-type:inline-size}.ring{width:100%;height:100%;position:absolute;inset:0;transform:rotate(-90deg)}.ring-track,.ring-progress{fill:none;stroke-width:10px}.ring-track{stroke:var(--wash)}.ring-progress{stroke:var(--ink);stroke-linecap:round;transition:stroke-dashoffset .1s linear}.ring-center{text-align:center;flex-direction:column;align-items:center;gap:6px;display:flex;position:relative}.countdown{letter-spacing:-.03em;font-variant-numeric:tabular-nums;font-size:36cqi;font-weight:800;line-height:1}.phase-title{text-transform:uppercase;letter-spacing:.05em;font-size:9cqi;font-weight:800}.phase-status{color:var(--muted);font-size:clamp(14px,4cqi,22px);font-weight:600}.next-up{min-height:24px;font-size:clamp(16px, calc(var(--ring) * .045), 34px);color:var(--muted);text-align:center;font-weight:600}.timer-controls{align-items:center;gap:clamp(18px,3vmin,32px);display:flex}.ctl-btn{background:var(--wash);width:clamp(64px,9vmin,92px);height:clamp(64px,9vmin,92px);color:var(--text);border:none;border-radius:50%;font-size:clamp(24px,3.2vmin,32px);transition:transform .15s,background .2s,opacity .2s}.ctl-btn:active{transform:scale(.92)}.ctl-btn:disabled{opacity:.35;cursor:not-allowed}.ctl-btn.primary{background:var(--ink);width:clamp(84px,12vmin,120px);height:clamp(84px,12vmin,120px);color:var(--ink-invert);font-size:clamp(30px,4vmin,40px);transition:transform .15s,opacity .2s}@media (height<=560px){.timer-view{--ring:min(90vw, 46vh);gap:8px}.ctl-btn{width:52px;height:52px;font-size:20px}.ctl-btn.primary{width:66px;height:66px;font-size:24px}}@media (width<=480px){.app-header{gap:8px}.app-title{--title-bleed:calc(16px + env(safe-area-inset-left));padding:5px 9px 6px calc(9px + var(--title-bleed));letter-spacing:1px;font-size:18px}.menubar{border-radius:10px;padding:2px}.menu-btn{gap:4px;min-height:30px;padding:0 7px;font-size:12px}.menu-label{max-width:84px}.menu-btn.share .menu-label{display:none}.menu-btn.share{padding:0 9px}.menu-btn .icon{width:1em;height:1em}.fab{right:calc(14px + env(safe-area-inset-right));bottom:calc(14px + env(safe-area-inset-bottom));min-height:52px;padding:0 20px}.hdr-btn{min-height:40px;padding:0 10px;font-size:13px}.app-footer{align-items:flex-start;gap:12px}.lang-toggle button{min-width:34px}.palette-hint{margin-left:0;padding:0 2px 2px}.palette{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;display:grid}.palette-chip{gap:5px;width:auto;padding:0 6px;font-size:13px}.palette-chip>.icon{position:static}.chip-label,.palette-chip.repeat .chip-label{padding:0}.block{padding-right:6px}.block-row{gap:4px}.drag-handle{width:40px}.repeat-head{gap:4px}.repeat-head .title-input{min-width:56px}.stepper{gap:4px}.step-btn{width:36px;height:36px}.step-value{width:46px}.remove-btn{flex:none;width:36px;height:36px}.repeat-drop{margin-left:18px}}@media (width<=380px){.menu-label{max-width:62px}}@media (width>=900px){.app-shell{max-width:780px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
