@font-face{font-family:Anton;src:url("./assets/anton-regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Jost;src:url("./assets/jost-400.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Jost;src:url("./assets/jost-500.ttf") format("truetype");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:Jost;src:url("./assets/jost-600.ttf") format("truetype");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:Jost;src:url("./assets/jost-700.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap}
:root{--bg:#0c0e0c;--panel:#151815;--panel2:#1c201b;--ink:#f7f8f2;--dim:#b9bfb5;--sub:#9ca598;--line:#343a31;--lime:#c9ff55;--dark:#10120d;--warn:#ffa598;--head:Anton,Impact,sans-serif;--body:Jost,system-ui,sans-serif;color-scheme:dark;font-family:var(--body);background:var(--bg);color:var(--ink);font-synthesis:none;-webkit-tap-highlight-color:transparent}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;min-height:100svh;font-size:1rem;line-height:1.45}
body.has-modal{overflow:hidden}
body.in-session{overscroll-behavior:none}
button,input,select{font:inherit}
button{cursor:pointer;color:inherit;border:0;background:none}
button:disabled{opacity:.42;cursor:default}
button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--lime);outline-offset:3px}
button{touch-action:manipulation}
h1,h2,h3,p{margin:0}
h1,h2,h3,.card-title,.phase-title,.big-time,.hero-stats strong,.finish-stats strong{font-weight:400}
h1,h2,.card-title,.phase-title,.big-time{font-family:var(--head);text-transform:uppercase;letter-spacing:-.014em}
em{font-style:normal;color:var(--lime)}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ico{width:1.22rem;height:1.22rem;flex:none;vertical-align:middle}
.site-header{border-bottom:1px solid #2b3029;background:#0e100e}
.header-inner,.dashboard{max-width:1344px;width:calc(100% - clamp(44px,11vw,176px));margin-inline:auto}
.header-inner{min-height:80px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.brand,.run-brand{display:flex;align-items:center}
.brand{padding:0;gap:1.05rem;justify-self:start;min-height:44px}
.wordmark{display:block;width:155px;max-width:100%;height:auto}
.brand-divider{height:20px;width:1px;background:#42483c}
.brand-product,.eyebrow,.group-title,.field-label,.section-line>span,.block-head h3,.hero-stats small,.stage-top,.stage-foot>span,.next-band small,.counter small,.finish-stats small,.editor-total small{font-family:var(--body);font-size:.78rem;line-height:1.22;font-weight:600;letter-spacing:.11em;text-transform:uppercase}
.brand-product{color:var(--lime);font-size:.83rem;letter-spacing:.16em}
.topnav{display:flex;align-items:stretch;align-self:stretch;gap:1.7rem}
.nav-item{display:flex;align-items:center;justify-content:center;gap:.55rem;color:var(--sub);font-weight:500;font-size:.98rem;position:relative;padding:.25rem .1rem}
.nav-item .ico{width:18px;height:18px}
.nav-item.current{color:var(--lime)}
.topnav .nav-item.current:after{content:"";position:absolute;bottom:-1px;border-bottom:2px solid var(--lime);left:0;right:0}
.settings-btn,.icon-btn,.run-tool,.tiny-btn,.dots-btn,.step-btn,.duration-step,.skip-btn{display:inline-flex;align-items:center;justify-content:center;flex:none}
.settings-btn{justify-self:end;width:43px;height:43px;border:1px solid var(--line);border-radius:50%;background:#141714}
.settings-btn:hover,.icon-btn:hover,.run-tool:hover{background:#2b3027}
.dashboard{padding:clamp(28px,3.4vw,54px) 0 clamp(42px,5vw,78px)}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:clamp(22px,2.2vw,33px)}
h1{font-size:clamp(3.3rem,5.1vw,5.1rem);line-height:1.12}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;padding:.72rem 1.18rem;min-height:45px;border:1px solid transparent;border-radius:5px;font-weight:600;line-height:1.2;white-space:nowrap;transition:background .15s,border-color .15s,color .15s;font-size:1rem}
.btn .ico{width:1.08rem;height:1.08rem}
.btn.primary{color:var(--dark);background:var(--lime);border-color:var(--lime);font-weight:700}
.btn.primary:hover{background:#dbff91;border-color:#dbff91}
.btn.ghost{border-color:#50554b;background:rgba(16,18,15,.67);color:var(--ink)}
.btn.ghost:hover,.btn.dashed:hover{background:#262b22;border-color:#808b71}
.btn.compact{min-height:38px;font-size:.9rem;padding:.45rem .7rem}
.fill{width:100%}
.hero{isolation:isolate;position:relative;overflow:hidden;display:flex;align-items:center;min-height:clamp(294px,24.5vw,360px);border:1px solid #373d31;border-radius:9px;background:#10130f}
.hero-image,.hero-shade{position:absolute;inset:0;pointer-events:none;z-index:-1}
.hero-image{left:29%;background:url("./assets/studio.webp") center 13%/cover no-repeat}
.hero-shade{background:linear-gradient(90deg,#10130f 0%,#10130f 28%,rgba(16,19,15,.93) 36%,rgba(16,19,15,.42) 51%,rgba(16,19,15,.04) 70%),linear-gradient(0deg,rgba(9,12,8,.22),transparent 40%)}
.hero-copy{padding:clamp(26px,3.05vw,46px);width:61%;position:relative}
.hero-kicker{display:flex;align-items:center;gap:.55rem;color:var(--lime);font-size:.76rem;letter-spacing:.13em}
.hero-kicker i{width:21px;height:2px;background:var(--lime);display:block}
.hero h2{font-size:clamp(2.7rem,4.1vw,4.45rem);line-height:1.1;margin:10px 0 17px;overflow-wrap:anywhere;text-wrap:balance}
.hero-stats{display:flex;align-items:center;margin:0 0 21px;gap:0}
.hero-stats>div{display:flex;align-items:baseline;gap:.36rem;padding:0 1rem;border-left:1px solid #444a3e}
.hero-stats>div:first-child{padding-left:0;border-left:0}
.hero-stats strong{font:600 1.22rem/1 var(--body);font-variant-numeric:tabular-nums;white-space:nowrap}
.hero-stats small{color:var(--dim);font-size:.74rem;letter-spacing:.055em}
.hero-actions{display:flex;flex-wrap:wrap;gap:9px}
.hero-actions .btn{min-height:43px;padding:.64rem 1.22rem}
.hero-time{position:absolute;top:20px;right:22px;display:flex;align-items:center;gap:.4rem;padding:.35rem .62rem;border:1px solid #ffffff40;border-radius:4px;background:#10130fc9;color:var(--ink);font-size:.88rem;font-weight:600;letter-spacing:.045em;font-variant-numeric:tabular-nums}
.hero-time .ico{width:15px;height:15px}
.library{margin-top:clamp(26px,2.6vw,40px)}
.section-line{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:16px;gap:12px}
.section-line h2{font-size:clamp(1.65rem,2.15vw,2.18rem);letter-spacing:.005em;line-height:1.2}
.section-line>span{font-size:.79rem;color:var(--sub);letter-spacing:.07em}
.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.timer-card{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:19px 21px 15px;min-width:0;display:flex;flex-direction:column;transition:border-color .16s}
.timer-card:focus-within,.timer-card:hover{border-color:#555e4e}
.card-upper,.card-lower{display:flex;align-items:center;justify-content:space-between;gap:8px}
.sport-icon,.history-icon,.empty-icon{display:grid;place-items:center;width:37px;height:37px;border-radius:7px;background:color-mix(in srgb,var(--card-accent,var(--lime)) 11%,var(--panel));color:var(--card-accent,var(--lime))}
.sport-icon .ico{width:22px;height:22px;stroke-width:1.75}
.dots-btn{position:relative;width:39px;height:37px;margin-right:-7px;color:var(--sub);border-radius:5px}
.dots-btn:after,.tiny-btn:after,.step-btn:after{content:"";position:absolute;inset:-4px}
.dots-btn:hover,.tiny-btn:hover{background:var(--panel2);color:var(--ink)}
.dots-btn .ico{width:21px;height:21px}
.card-title{font-size:clamp(1.55rem,2.05vw,2rem);line-height:1.2;text-align:left;align-self:flex-start;padding:0;margin:14px 0 2px;overflow-wrap:anywhere;max-width:100%}
.card-title:hover{color:var(--card-accent)}
.card-desc{font-size:.93rem;color:var(--dim);line-height:1.4}
.rhythm{width:100%;display:flex;gap:3px;height:7px;margin:19px 0 15px;overflow:hidden}
.rhythm>i{min-width:0;flex-basis:0;border-radius:1px}
.rhythm .on{background:var(--card-accent,var(--lime))}
.rhythm .off{background:#3a4038}
.rhythm.large{height:10px;margin:15px 0 24px}
.card-lower{border-top:1px solid #30362e;padding-top:11px;margin-top:auto}
.card-meta,.card-meta span,.history-duration,.detail-duration,.static-line>span{display:flex;align-items:center;gap:.4rem}
.card-meta{gap:.62rem;font-size:.86rem;color:var(--dim);font-variant-numeric:tabular-nums}
.card-meta .ico{width:15px;height:15px}
.card-meta i{width:3px;height:3px;border-radius:50%;background:#737b6d}
.card-play{position:relative;display:grid;place-items:center;min-width:36px;height:36px;border-radius:50%;border:1px solid #454d3e;background:#20251d;color:var(--ink)}
.card-play:after{content:"";position:absolute;inset:-5px}
.card-play .ico{width:15px;height:15px;transform:translateX(1px)}
.card-play:hover{background:var(--card-accent,var(--lime));color:var(--dark);border-color:transparent}
.bottomnav{display:none}
.empty{min-height:295px;border:1px solid var(--line);background:var(--panel);border-radius:8px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:.8rem;padding:32px}
.empty h2,.empty h3{font:400 clamp(1.7rem,3vw,2.6rem)/1.22 var(--head);text-transform:uppercase}
.empty p,.modal-text{color:var(--dim);font-size:1rem}
.history-list{border:1px solid var(--line);border-radius:8px;background:var(--panel);padding:0 20px}
.history-row{display:flex;align-items:center;gap:16px;padding:20px 0;border-bottom:1px solid var(--line)}
.history-row:last-child{border-bottom:0}
.history-text{flex:1;min-width:0}
.history-row h2{font-size:1.45rem;overflow-wrap:anywhere}
.history-row p,.history-duration{color:var(--dim);font-size:.94rem}
.history-duration{font-variant-numeric:tabular-nums}
@media(min-width:1550px){.hero-image{background-position:center 13%}}
@media(max-width:1000px){.header-inner,.dashboard{width:calc(100% - 64px)}.hero-copy{width:65%}.timer-card{padding:16px 16px 13px}.card-grid{gap:12px}.brand{gap:.65rem}.wordmark{width:140px}}
@media(max-width:760px){.header-inner,.dashboard{width:calc(100% - 38px)}.header-inner{min-height:62px;grid-template-columns:1fr auto}.topnav{display:none}.wordmark{width:128px}.brand-divider{height:18px}.brand-product{font-size:.76rem}.settings-btn{width:39px;height:39px}.bottomnav{position:fixed;bottom:0;left:0;right:0;z-index:3;border-top:1px solid var(--line);background:#101310f8;display:flex;justify-content:center;gap:min(18vw,130px);padding:5px 12px max(7px,env(safe-area-inset-bottom));backdrop-filter:blur(10px)}.bottomnav .nav-item{flex-direction:column;gap:2px;min-width:76px;height:44px;font-size:.77rem}.bottomnav .nav-item .ico{width:20px;height:20px}.dashboard{padding-top:23px;padding-bottom:calc(78px + env(safe-area-inset-bottom))}.page-heading{margin-bottom:18px}h1{font-size:clamp(2.3rem,7.1vw,3.3rem)}.btn.create{font-size:.9rem;padding:.65rem .85rem;min-height:41px}.hero{min-height:263px}.hero-copy{width:69%;padding:24px}.hero h2{font-size:clamp(2.55rem,6.1vw,3.65rem)}.hero-time{top:12px;right:12px}.hero-stats>div{padding:0 .55rem}.hero-stats strong{font-size:1.1rem}.hero-stats small{font-size:.72rem}.hero-stats{margin-bottom:18px}.hero-actions .btn{min-height:41px;padding:.6rem .82rem}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.timer-card{padding:17px}.section-line h2{font-size:1.65rem}}
@media(max-width:540px){.header-inner,.dashboard{width:calc(100% - 32px)}.hero{min-height:294px;align-items:flex-end}.hero-image{left:0;background-size:cover;background-position:63% top}.hero-shade{background:linear-gradient(90deg,rgba(11,15,10,.88),rgba(11,15,10,.42) 53%,rgba(11,15,10,.04) 84%),linear-gradient(0deg,#10130f 0%,rgba(16,19,15,.88) 16%,rgba(16,19,15,.54) 40%,rgba(16,19,15,.03) 73%)}.hero-copy{width:100%;padding:19px}.hero-kicker{font-size:.72rem}.hero h2{font-size:clamp(2.4rem,10vw,3.1rem);margin:8px 0 13px;max-width:90%}.hero-actions{gap:8px}.hero-actions .btn{min-height:42px;font-size:.94rem}.hero-time{top:12px;right:12px;font-size:.78rem}.hero-stats{margin-bottom:15px}.hero-stats>div{padding:0 .65rem}.hero-stats small{color:#d8ded2}.card-grid{grid-template-columns:1fr}.timer-card{display:grid;grid-template-columns:40px 1fr auto;column-gap:13px;row-gap:0;align-items:center;padding:14px 16px}.card-upper,.card-lower{display:contents}.sport-icon{grid-column:1;grid-row:1/3;width:40px;height:40px}.dots-btn{grid-column:3;grid-row:1;justify-self:end;height:27px}.card-title{grid-column:2;grid-row:1;align-self:end;margin:0;font-size:1.42rem;line-height:1.19}.card-desc{grid-column:2;grid-row:2;font-size:.86rem;line-height:1.35}.rhythm{grid-column:1/3;grid-row:3;height:5px;margin:13px 0 8px;gap:2px}.card-meta{grid-column:1/3;grid-row:4}.card-play{grid-column:3;grid-row:3/5;min-width:34px;height:34px;justify-self:end}.library{margin-top:23px}.section-line{margin-bottom:12px}.history-row{gap:10px}.history-icon{width:30px;height:32px}.history-row h2{font-size:1.15rem}.history-row p{font-size:.81rem}.history-list{padding:0 12px}.history-duration{font-size:.81rem}.page-heading{gap:6px}.btn.create{gap:.35rem}}
@media(max-width:365px){.header-inner,.dashboard{width:calc(100% - 24px)}h1{font-size:2.12rem}.btn.create{font-size:.84rem;padding:.56rem}.hero-copy{padding:16px}.hero{min-height:265px}.hero h2{font-size:2.35rem}.brand{gap:.56rem}.hero-stats>div{padding:0 .5rem}.hero-actions .btn{min-height:40px}}
.create-short{display:none}
@media(max-width:540px){.create-wide{display:none}.create-short{display:inline}.btn.create{padding-inline:.84rem}.page-heading h1{white-space:nowrap}.hero-time{right:auto;left:17px}}
/* Editors */
#sheet{inset:0;padding:0;border:1px solid #42483c;border-radius:12px;background:var(--panel);color:var(--ink);margin:auto;width:min(540px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 60px);overflow:hidden;box-shadow:0 28px 110px #0009}
#sheet::backdrop{background:rgba(4,6,4,.76);backdrop-filter:blur(4px)}
.sheet-frame{display:flex;flex-direction:column;max-height:calc(100dvh - 62px)}
.sheet-head,.sheet-foot{flex:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:19px 24px;border-bottom:1px solid var(--line);background:#191c18}
.sheet-head h2{font-size:clamp(1.7rem,4vw,2.1rem);line-height:1.15;overflow-wrap:anywhere}
.sheet-head h2:focus{outline:none}
.sheet-head .eyebrow{color:var(--lime);margin-bottom:5px}
.icon-btn{width:40px;height:40px;border:1px solid var(--line);border-radius:50%;color:var(--ink)}
.sheet-body{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:21px 24px 24px;scrollbar-width:thin;scrollbar-color:#434a3e transparent}
.sheet-foot{border-top:1px solid var(--line);border-bottom:0;justify-content:flex-end;padding:13px 24px}
.sheet-foot:has(.editor-total){justify-content:space-between}
.field-label,.group-title,.block-head h3{display:block;color:var(--dim);font-size:.79rem;letter-spacing:.08em}
.field-label{margin:17px 0 8px}
.field-label:first-child,.field-label.first{margin-top:0}
.group-title,.block-head{margin:24px 0 9px}
.text-input{display:block;width:100%;background:#101310;border:1px solid #464d40;border-radius:5px;color:var(--ink);padding:.64rem .83rem;min-height:46px;font-size:1.03rem;line-height:1.3}
select.text-input{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--dim) 50%),linear-gradient(135deg,var(--dim) 50%,transparent 50%);background-position:calc(100% - 20px) 52%,calc(100% - 15px) 52%;background-size:5px 5px;background-repeat:no-repeat;padding-right:37px}
.text-input::placeholder{color:var(--sub)}
.color-line,.count-row,.phase-row,.block-head,.switch-row,.sensor,.static-line,.detail-phase,.menu-option{display:flex;align-items:center;justify-content:space-between;gap:10px}
.color-line{margin:17px 0;color:var(--dim);font-size:.98rem;flex-wrap:wrap}
.swatches{display:flex;align-items:center;gap:2px}
.swatch{height:35px;width:35px;position:relative;display:grid;place-items:center;padding:0;color:var(--dark)}
.swatch:before{content:"";width:22px;height:22px;position:absolute;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px #0002}
.swatch.selected:before{outline:1px solid var(--swatch);outline-offset:3px}
.swatch .ico{position:relative;width:14px;height:14px;stroke-width:2.6}
.edit-group,.detail-block{border-radius:6px;background:#20241e;border:1px solid #363d31;overflow:hidden}
.edit-group>*+*{border-top:1px solid #363d31}
.block-head{min-height:23px}.block-head h3{margin:0;color:var(--ink)}
.tiny-btn{width:30px;height:28px;color:var(--sub);position:relative;border-radius:3px}.tiny-btn .ico{width:16px;height:16px}
.phase-row{width:100%;padding:12px 13px;min-height:47px;text-align:left}
.phase-row:hover,.menu-option:hover{background:#2b3027}
.phase-dot{background:var(--tint);width:9px;height:9px;border-radius:50%;flex:none}
.phase-row span:nth-child(2),.detail-phase{overflow-wrap:anywhere}
.phase-row strong{margin-left:auto;white-space:nowrap;font-size:1.06rem;font-weight:600;font-variant-numeric:tabular-nums}
.phase-row>.ico{width:14px;height:14px;stroke:#b6beb1}
.count-row,.group-add,.switch-row{padding:9px 13px;min-height:46px}
.stepper{display:flex;align-items:center;gap:4px;background:#131612;border:1px solid #3c4436;border-radius:5px}
.step-btn{width:35px;height:32px;position:relative}.step-btn .ico{width:15px;height:15px}
.stepper output{font-weight:600;font-variant-numeric:tabular-nums;min-width:21px;text-align:center}
.group-add{padding-block:4px}
.text-btn{display:inline-flex;align-items:center;gap:.42rem;color:var(--lime);min-height:38px;padding:.25rem .1rem;font-weight:500}
.text-btn .ico{height:16px;width:16px}
.add-blocks{display:flex;gap:9px;margin:13px 0;flex-wrap:wrap}.add-blocks button{flex:1}
.btn.dashed{border:1px dashed #58624f;background:transparent;min-height:41px;font-size:.92rem;padding:.55rem}
.editor-total{display:flex;flex-direction:column;gap:3px;min-width:86px}
.editor-total small,.finish-stats small{color:var(--sub);font-size:.75rem}
.editor-total strong{font-size:1.3rem;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.1}
.duration-picker{background:#101310;border:1px solid var(--line);border-radius:6px;display:flex;align-items:center;justify-content:center;padding:10px;gap:10px}
.duration-step{width:42px;height:42px;border:1px solid #444b3c;border-radius:50%;background:#20251c}
.duration-input{font:400 2.8rem/1 var(--head);font-variant-numeric:tabular-nums;color:var(--ink);background:none;border:0;text-align:center;width:min(47%,166px)}
.hint{display:block;color:var(--sub);font-size:.87rem;margin-top:7px}
.remove-phase{margin-top:12px}
.btn.danger{color:#220e0a;background:var(--warn);font-weight:600}
.danger-text{color:var(--warn)}
.switch-row{position:relative;cursor:pointer;min-height:49px}
.switch-row input{position:absolute;right:16px;opacity:0;width:38px;height:24px}
.switch-track{position:relative;display:inline-block;flex:none;width:39px;height:24px;border-radius:20px;background:#4b5347;pointer-events:none}
.switch-track:before{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#e2e7de;transition:transform .14s}
.switch-row input:checked+.switch-track{background:var(--lime)}
.switch-row input:checked+.switch-track:before{background:var(--dark);transform:translateX(15px)}
.switch-row input:focus-visible+.switch-track{outline:2px solid var(--lime);outline-offset:3px}
.sensor{border:1px solid var(--line);border-radius:5px;padding:10px 12px;min-height:44px}
.sensor>div{display:flex;align-items:center;gap:8px}.sensor .ico{width:17px;color:var(--warn)}
.detail-duration{gap:9px}.detail-duration strong{font-size:1.6rem;font-weight:600}.detail-duration>span{color:var(--sub)}
.detail-blocks{display:grid;gap:10px}
.static-line{padding:8px 0}.static-line .ico{color:var(--sub)}.static-line strong,.detail-phase strong{font-variant-numeric:tabular-nums;font-weight:600}
.detail-block h3{font-size:.87rem;letter-spacing:.06em;text-transform:uppercase;color:var(--dim);font-weight:600;padding:9px 13px;background:#252a23;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}
.detail-phase{justify-content:flex-start;padding:9px 13px}.detail-phase i{width:8px;height:8px;border-radius:50%;flex:none}.detail-phase strong{margin-left:auto}
.menu-list{display:grid}.menu-option{justify-content:flex-start;text-align:left;padding:12px 7px;border-radius:4px;min-height:45px}.menu-option .ico{width:19px}
#toast{position:fixed;z-index:9;bottom:22px;left:50%;transform:translate(-50%,8px);background:#eef3e7;color:#182013;border-radius:6px;padding:9px 14px;box-shadow:0 5px 24px #0005;opacity:0;pointer-events:none;transition:opacity .16s,transform .16s;max-width:90vw;width:max-content;font-weight:500}
#toast.visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:760px){#toast{bottom:calc(66px + env(safe-area-inset-bottom))}}
@media(max-width:540px){#sheet{width:100%;max-height:100dvh;border-radius:13px 13px 0 0;inset:auto 0 0;margin:0;border-bottom:0}.sheet-frame{max-height:calc(100dvh - max(8px,env(safe-area-inset-top)))}.sheet-head{padding:15px 17px}.sheet-body{padding:16px 17px 20px}.sheet-foot{padding:12px 17px max(14px,env(safe-area-inset-bottom))}.sheet-head h2{font-size:1.65rem}.sheet-foot .btn{min-height:44px}.swatch{width:32px}.modal-text{line-height:1.5}}
/* Live interval display */
.runner{height:100vh;height:100dvh;min-height:420px;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;background:var(--bg);padding:0 max(12px,env(safe-area-inset-right)) max(9px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));gap:5px}
.run-head{padding:max(7px,env(safe-area-inset-top)) 10px 6px;min-height:57px;display:flex;align-items:center;gap:18px}
.run-brand .wordmark{width:127px}.run-name{border-left:1px solid var(--line);padding-left:18px;font-weight:500;color:var(--dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.run-tools{margin-left:auto;display:flex;align-items:center;gap:6px}.run-tool{width:39px;height:39px;border:1px solid var(--line);border-radius:50%;color:var(--dim);background:#131612}
.heart-live{font-size:.91rem;display:flex;align-items:center;gap:5px;white-space:nowrap}.heart-live .ico{color:var(--warn);width:17px}
.run-stage{min-height:0;overflow:hidden;display:grid;grid-template-rows:auto 1fr auto;position:relative;isolation:isolate;background:var(--phase,var(--lime));border-radius:7px;color:#11150c;padding:clamp(12px,2.2vw,28px);container-type:size}
.stage-top,.stage-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.stage-top{font-size:clamp(.79rem,1.2vw,1.07rem);letter-spacing:.065em}
.stage-top>span{display:flex;align-items:center;gap:.4rem}.stage-top>span:first-child:before{content:"";width:8px;height:8px;background:currentColor;border-radius:50%}.stage-top .ico{width:1.1em;height:1.1em}
.clock-area{min-height:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:clamp(6px,1.5vh,20px);text-align:center}
.phase-title{font-size:clamp(1.9rem,min(8.5cqw,10cqh),6.3rem);line-height:1.15;max-width:100%;overflow-wrap:anywhere;text-wrap:balance}
.big-time{font-size:min(44cqw,67cqh);line-height:1.04;letter-spacing:-.028em;font-variant-numeric:tabular-nums;white-space:nowrap}
.stage-foot>span{font-size:clamp(.76rem,1vw,1.05rem);text-align:center;letter-spacing:.075em}
.skip-btn{width:47px;height:43px;color:inherit;border:1px solid #10140d60;border-radius:5px}
.skip-btn:hover{background:#10140d15}
.stage-foot button:focus-visible,.run-stage button:focus-visible{outline-color:var(--dark)}
.phase-track{position:absolute;bottom:0;left:0;right:0;height:5px;background:#0002}
.phase-track div{height:100%;width:100%;background:#10140d91;transform-origin:left}
.next-band{display:flex;align-items:center;gap:13px;min-height:64px;background:#1a1e18;border:1px solid var(--line);border-radius:5px;padding:9px clamp(15px,2.2vw,32px);line-height:1.15}
.next-mark{width:5px;height:34px;border-radius:2px}
.next-band>div{display:flex;align-items:baseline;gap:11px;min-width:0}
.next-band small,.counter small{color:var(--dim);font-size:.78rem}
.next-band strong{font:400 clamp(1.2rem,2.2vw,1.9rem)/1.15 var(--head);text-transform:uppercase;overflow-wrap:anywhere}
#next-duration{margin-left:auto;font-size:1.28rem;font-weight:600;font-variant-numeric:tabular-nums}
.run-controls{display:grid;grid-template-columns:1fr minmax(130px,1fr) 1fr;gap:5px;min-height:65px}
.counter,.run-pause{display:flex;align-items:center;justify-content:center;gap:12px;background:var(--panel);border:1px solid var(--line);border-radius:5px}
.counter b{font:400 clamp(1.7rem,3.1vw,2.5rem)/1.1 var(--head);color:var(--ink)}.run-pause{background:var(--lime);color:var(--dark);cursor:pointer;font-weight:700;font-size:1.2rem}.run-pause .ico{width:20px;height:20px}
.run-pause:hover{background:#dbff91}
.finish{min-height:100vh;min-height:100dvh;display:grid;grid-template-rows:auto 1fr}
.finish header{padding:22px max(20px,5vw);border-bottom:1px solid var(--line)}
.finish-card{align-self:center;justify-self:center;text-align:center;margin:30px 16px;padding:clamp(22px,4vw,46px);width:min(480px,calc(100% - 32px));background:var(--panel);border:1px solid var(--line);border-radius:9px}
.finish-mark{width:58px;height:58px;border:1px solid var(--lime);color:var(--lime);display:grid;place-items:center;border-radius:50%;margin:0 auto 24px}
.finish-mark .ico{width:32px;height:32px}
.finish-card .eyebrow{color:var(--dim)}
.finish-card h1{font-size:clamp(2.6rem,5vw,4.2rem);margin:9px 0 22px;overflow-wrap:anywhere}
.finish-stats{display:flex;justify-content:center;gap:clamp(20px,4vw,43px);border-block:1px solid var(--line);padding:18px 6px;margin:0 0 20px}
.finish-stats>div{display:flex;flex-direction:column;gap:6px}.finish-stats strong{font:400 1.9rem/1.2 var(--head)}
.finish-card .btn+.btn{margin-top:9px}.skip-note{color:var(--sub);margin:-7px 0 14px;font-size:.9rem}
@media(max-width:600px) and (orientation:portrait){.runner{padding-inline:6px;gap:4px;min-height:370px}.run-head{min-height:53px;padding-inline:6px;gap:6px}.run-brand .wordmark{width:100px}.run-name{padding-left:8px;margin-left:2px;font-size:.87rem}.run-tools{gap:4px}.run-tool{width:34px;height:34px}.run-tool .ico{width:16px;height:16px}.heart-live{font-size:.74rem}.heart-live .ico{width:13px}.run-head:has(.heart-live:not([hidden])) .run-name{display:none}.run-stage{padding:14px 10px}.stage-foot>span{font-size:.76rem}.phase-title{font-size:min(12cqw,14cqh)}.next-band{min-height:67px}.next-band>div{flex-direction:column;gap:3px}.next-band small,.counter small{font-size:.71rem}.next-band strong{font-size:1.45rem}.run-controls{grid-template-columns:1fr 1.14fr 1fr;min-height:72px}.counter,.run-pause{flex-direction:column;gap:4px;text-align:center}.run-pause{font-size:.85rem}.counter b{font-size:1.77rem}.stage-top{font-size:.74rem}}
@media(orientation:landscape) and (max-height:550px){.runner{min-height:0;padding:0 max(5px,env(safe-area-inset-right)) max(3px,env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left));grid-template-columns:minmax(0,1fr) 168px;grid-template-rows:40px minmax(0,1fr) auto;gap:4px}.run-head{grid-column:1/-1;min-height:0;padding:2px 5px;gap:10px}.run-brand .wordmark{width:98px}.run-name{font-size:.86rem;padding-left:10px}.run-tool{width:31px;height:31px}.run-tool .ico{width:16px;height:16px}.run-stage{grid-row:2/4;grid-column:1;padding:9px 12px}.stage-top{font-size:.71rem}.phase-title{font-size:min(9cqw,13cqh)}.clock-area{gap:3px}.big-time{font-size:min(44cqw,67cqh)}.skip-btn{width:39px;height:32px}.stage-foot>span{font-size:.71rem}.next-band{grid-row:2;grid-column:2;align-items:flex-start;align-content:center;justify-content:center;flex-direction:column;padding:12px;position:relative;gap:5px}.next-mark{position:absolute;inset:0 auto 0 0;height:auto;width:4px}.next-band>div{align-items:flex-start;flex-direction:column;gap:4px}.next-band strong{font-size:1.6rem}.next-band small,.counter small{font-size:.7rem}#next-duration{margin:0;font-size:1.1rem}.run-controls{grid-column:2;grid-row:3;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;min-height:0;gap:4px}.counter{flex-direction:column;gap:1px;padding:6px 3px;text-align:center}.counter b{font-size:1.45rem}.run-pause{grid-row:2;grid-column:1/-1;min-height:44px;gap:6px;font-size:.95rem}.sheet-frame{max-height:calc(100dvh - 20px)}#sheet{max-height:calc(100dvh - 18px)}.sheet-head,.sheet-foot{padding-block:8px}}
@media(orientation:landscape) and (max-height:360px){.runner{grid-template-rows:34px minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr) 156px}.stage-top{font-size:.66rem}.next-band{min-height:0}.run-stage{padding-block:5px}.phase-title{font-size:min(9cqw,12cqh)}.run-head .run-tool{width:28px;height:28px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

.phase-title.long{font-size:clamp(1.3rem,min(6.8cqw,8cqh),4.5rem)}
.phase-title.extra-long{font-size:clamp(1.1rem,min(5.6cqw,7cqh),3.4rem)}
.block-actions{display:flex;align-items:center;gap:4px}
.move-up{transform:rotate(-90deg)}.move-down{transform:rotate(90deg)}
