:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#08090c;--bg-2:#0e1015;--panel:#14161c;--panel-2:#1c1f27;--line:#ffffff1a;--text:#e9edf5;--muted:#8b93a7;--work:#d9482a;--rest:#12996b;--other:#8b5cf6;--repeat:#d9822b;--radius:10px;--shadow:0 10px 30px #00000073}*{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}.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(32px + 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{letter-spacing:.04em;text-transform:uppercase;margin:0;font-size:22px;font-weight:800}.title-accent{color:var(--work)}.header-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.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;padding:0 14px;font-size:14px;font-weight:600;transition:transform .15s,background .2s,border-color .2s,opacity .2s;overflow:hidden}.hdr-btn:hover:not(:disabled){border-color:#ffffff40;transform:translateY(-1px)}.hdr-btn:disabled{opacity:.4;cursor:not-allowed}.hdr-btn.start{background:var(--work);color:#141414;text-transform:uppercase;letter-spacing:.04em;border-color:#0000;font-weight:800}.import-error{color:#ffb4a6;background:#f4593f26;border:1px solid #f4593f80;border-radius:10px;margin:4px 0 8px;padding:10px 14px;font-size:14px}.palette-wrap{margin:8px 0 16px}.palette-hint{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px;font-size:12px;display:block}.palette{flex-wrap:wrap;gap:10px;display:flex}.palette-chip{letter-spacing:0;color:#fff;touch-action:none;-webkit-user-select:none;user-select:none;border:1px solid #00000059;border-radius:8px;align-items:center;gap:6px;min-height:42px;padding:0 16px;font-size:15px;font-weight:700;transition:transform .15s,filter .2s;display:inline-flex;box-shadow:0 2px 3px #00000059}.palette-chip:hover{filter:brightness(1.08)}.palette-chip:active{transform:scale(.97)}.chip-plus{opacity:.7;font-weight:800}.palette-chip.work{background:var(--work)}.palette-chip.rest{background:var(--rest)}.palette-chip.other{background:var(--other)}.palette-chip.repeat{background:var(--repeat)}.block-list{min-height:8px}.root-list:empty{border-radius:var(--radius);min-height:64px}.root-empty{text-align:center;color:var(--muted);border:1.5px dashed var(--line);border-radius:var(--radius);padding:28px 12px}.block{--accent:var(--other);--accent-dark:color-mix(in srgb, var(--accent) 72%, #000);--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;width:fit-content;max-width:100%;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-strip{cursor:pointer;appearance:none;background:#ffffff0d;border:0;border-radius:8px;gap:2px;width:100%;height:16px;padding:2px;transition:height .2s;display:flex;overflow:hidden}.timeline-strip:hover{height:20px}.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;margin-top:6px;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);border:1px solid var(--line);background:#ffffff08;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:#ffffff12;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:min(80vw,380px);margin:0}.timer-timeline .timeline-strip{background:#00000024;border-radius:5px;height:10px}.timer-timeline .timeline-list{border-color:var(--line);background:#00000014}.timer-timeline .tl-row.current{background:#0000001f}.total-left{color:var(--muted);font-size:15px;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 4px #00000073}.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:color-mix(in srgb, var(--work) 60%, transparent)}.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-note{color:var(--muted);font-size:11px;line-height:1.5}.switcher-overlay{z-index:50;background:#000000a6;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:color-mix(in srgb, var(--work) 60%, transparent)}.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(--work)}.switcher-choose:hover{background:#ffffff0f}.switcher-label{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.switcher-meta{color:var(--muted);padding:0 8px 2px;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(--work);background:#ffffff0a}.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:#ffffff4d}.timer-view{--phase:var(--other);--text:#171717;--muted:#0000008c;--line:#00000040;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)}.timer-view.rest{--phase:var(--rest)}.timer-view.other{--phase:var(--other)}.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:#00000024;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{aspect-ratio:1;place-items:center;width:min(80vw,380px);display:grid;position:relative}.ring{width:100%;height:100%;position:absolute;inset:0;transform:rotate(-90deg)}.ring-track,.ring-progress{fill:none;stroke-width:10px}.ring-track{stroke:#00000024}.ring-progress{stroke:#171717;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:clamp(88px,24vw,150px);font-weight:800;line-height:1}.phase-title{text-transform:uppercase;letter-spacing:.05em;font-size:clamp(20px,6vw,30px);font-weight:800}.phase-status{color:var(--muted);font-size:14px;font-weight:600}.next-up{min-height:24px;color:var(--muted);text-align:center;font-size:16px;font-weight:600}.timer-controls{align-items:center;gap:18px;display:flex}.ctl-btn{width:64px;height:64px;color:var(--text);background:#00000024;border:none;border-radius:50%;font-size:24px;transition:transform .15s,background .2s,opacity .2s}.ctl-btn:active{transform:scale(.92)}.ctl-btn:disabled{opacity:.35;cursor:not-allowed}.ctl-btn.primary{color:#fff;background:#171717;width:84px;height:84px;font-size:30px;transition:transform .15s,opacity .2s}@media (width<=480px){.app-header{gap:8px}.app-title{font-size:19px}.header-actions{gap:6px}.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}.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>=900px){.app-shell{max-width:780px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
