*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font-family:"Hiragino Sans","Yu Gothic",sans-serif;background:#eae6dd;color:#2f3d43;-webkit-font-smoothing:antialiased;font-synthesis:none}button,input{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:disabled{opacity:.28;cursor:default}button:focus-visible,input:focus-visible{outline:1.5px solid currentColor;outline-offset:5px}button,button svg{flex-shrink:0}svg.icon{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute!important;width:1px!important;height:1px!important;clip-path:inset(50%);overflow:hidden;white-space:nowrap}[hidden]{display:none!important}
#app{--ink:#2f3d43;--muted:#626766;--rim:rgba(255,255,249,.62);--glass:rgba(255,255,250,.10);--glass-bottom:rgba(255,255,245,.025);--panel:rgba(248,245,239,.20);--glass-shadow:rgba(38,43,47,.085);--active:rgba(255,255,248,.25);--fine:rgba(55,64,69,.17);color:var(--ink);height:100vh;height:100svh;min-height:600px;position:relative;overflow:hidden;isolation:isolate}#app.dark{--ink:#eeeede;--muted:#c6cfbd;--rim:rgba(246,247,225,.27);--glass:rgba(241,245,220,.055);--glass-bottom:rgba(14,31,27,.055);--panel:rgba(19,34,30,.32);--glass-shadow:rgba(0,10,12,.14);--active:rgba(234,240,215,.12);--fine:rgba(233,239,216,.16)}
.scenery,.readability{position:absolute;inset:0;z-index:-2;pointer-events:none}.scenery{background:#eae6dd}.scenery img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}.readability{z-index:-1;background:radial-gradient(ellipse at 24% 46%,rgba(246,246,230,.10),transparent 40%)}[data-position=right] .readability{background:radial-gradient(ellipse at 78% 45%,rgba(244,247,228,.21),transparent 36%)}.dark .readability{background:radial-gradient(ellipse at 24% 46%,rgba(10,24,25,.10),transparent 40%)}
.glass{border:1px solid var(--rim);background:linear-gradient(145deg,var(--glass),var(--glass-bottom));-webkit-backdrop-filter:blur(5px) saturate(1.08);backdrop-filter:blur(5px) saturate(1.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.24),inset 0 -1px 0 rgba(255,255,255,.07),0 9px 28px var(--glass-shadow);position:relative}.glass::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(112deg,rgba(255,255,255,.06),transparent 26%,transparent 74%,rgba(255,255,255,.025));border-top:1px solid rgba(255,255,255,.08)}button.glass{transition:background .2s,box-shadow .2s,transform .2s}button.glass:hover{background-color:var(--active);box-shadow:inset 0 1px 0 rgba(255,255,255,.38),0 10px 26px var(--glass-shadow)}button:active:not(:disabled){transform:scale(.965)}
.topbar{position:absolute;top:0;left:0;right:0;height:124px;padding:0 52px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:30px;z-index:2}.wordmark{display:flex;flex-direction:column;align-items:flex-start;gap:1px;width:max-content;user-select:none}.brand-name{font:400 39px/1.1 "Baskerville","Times New Roman",serif;letter-spacing:-1.6px}.brand-period{font-size:21px;opacity:.45;margin-left:1px}.brand-by{font:8px/1.4 "Avenir Next",sans-serif;letter-spacing:.14em;margin:3px 0 0 2px;opacity:.70}.mode-switch{display:flex;gap:2px;padding:4px;border-radius:30px}.mode-switch button{height:32px;padding:0 17px;display:flex;align-items:center;gap:7px;font-size:10px;letter-spacing:.05em;border-radius:20px;opacity:.58;transition:background .18s,opacity .18s}.mode-switch button .icon{width:14px;height:14px;stroke-width:1.5}.mode-switch button[aria-pressed=true]{background:var(--active);box-shadow:0 1px 7px var(--glass-shadow),inset 0 1px 0 rgba(255,255,255,.28);opacity:1}.mode-switch button:hover{opacity:1}.top-actions{display:flex;align-items:center;justify-self:end;gap:10px}.icon-button{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;padding:0;line-height:1}.icon-button:hover:not(.glass){background:var(--active)}.top-actions .icon{width:17px;height:17px}
.timer-area{position:absolute;top:47%;left:8%;width:min(33vw,410px);transform:translateY(-45%)}[data-position=right] .timer-area{left:auto;right:8%}.timer-top{display:flex;justify-content:space-between;align-items:center;padding:0 4px;letter-spacing:.11em;font-size:11px;font-weight:400}.phase{display:flex;align-items:center;gap:9px}.phase i{width:5px;height:5px;display:block;background:currentColor;opacity:.75}#round-label{font:11px "Avenir Next",sans-serif;letter-spacing:.08em;opacity:.63}.clock{font:400 clamp(96px,10.5vw,152px)/1.18 "Didot","Baskerville","Times New Roman",serif;letter-spacing:-.035em;font-variant-numeric:lining-nums tabular-nums;text-align:center;white-space:nowrap;margin:23px -10px 13px;text-shadow:0 1px 18px rgba(247,248,232,.035)}.phase-track{height:1px;width:100%;background:var(--fine);position:relative}.phase-track span{display:block;height:1px;background:currentColor;opacity:.56}.elapsed-row{display:flex;justify-content:space-between;gap:10px;margin:17px 3px 0;font:9px "Avenir Next",sans-serif;letter-spacing:.04em;opacity:.65;white-space:nowrap}.stage-progress{height:2px;display:flex;gap:5px;margin:19px 2px 0;opacity:.52}.stage-progress>span{height:1px;background:var(--fine);overflow:hidden}.stage-progress i{height:1px;display:block;background:currentColor;width:0}.rest .phase i{background:transparent;border:1px solid}.rest .timer-area{color:#76553d}.dark.rest .timer-area{color:#e6ccaa}.timer-actions{display:flex;align-items:center;justify-content:center;gap:22px;margin-top:35px}.play-button{display:grid;place-items:center;width:62px;height:62px;padding:0;border-radius:50%;color:inherit}.play-button .icon{width:24px;height:24px}.secondary-control{width:38px;height:38px;opacity:.66}.secondary-control:hover{opacity:1}.secondary-control .icon{width:16px;height:16px}
.listen-intro{display:none;position:absolute;width:min(33vw,410px);top:47%;left:8%;transform:translateY(-45%);text-align:center}.listening .listen-intro{display:block}.listening .timer-area{display:none}[data-position=right] .listen-intro{left:auto;right:8%}.music-kind{font-size:9px;letter-spacing:.12em;opacity:.60}.listen-intro h1{font:400 34px/1.6 "Hiragino Mincho ProN","Yu Mincho",serif;letter-spacing:.10em;margin:16px 0 35px;overflow-wrap:anywhere}.listen-intro .play-button{margin:auto}
.bottom-bar{position:absolute;bottom:29px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 80px);height:73px;border-radius:25px;padding:10px 15px 10px 13px;display:flex;align-items:center;gap:17px;z-index:3}.dock-divider{display:block;width:1px;height:25px;background:var(--fine);opacity:.55;flex-shrink:0}.scene-button{display:flex;align-items:center;gap:12px;text-align:left;padding:0;min-width:165px}.scene-button img{width:55px;height:40px;border-radius:11px;object-fit:cover;box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 2px 7px rgba(20,34,24,.1);border:1px solid rgba(255,255,255,.24)}.scene-button-copy{display:flex;flex-direction:column;gap:5px;min-width:65px}.scene-button strong{font-size:10px;letter-spacing:.04em;font-weight:400}.scene-button small{font:8px "Avenir Next",sans-serif;letter-spacing:.12em;opacity:.52}.chevron.icon{width:12px;height:12px;opacity:.55}.scene-button>.chevron{margin-left:auto}.player{display:flex;align-items:center;gap:12px;width:252px;min-width:0}.music-toggle{display:grid;place-items:center;width:39px;height:39px;padding:0;border-radius:50%}.music-toggle .icon{width:17px;height:17px}.track-label{position:relative;min-width:0;flex:1;display:flex;flex-direction:column;gap:5px;text-align:left;padding:0 18px 0 0}.track-label strong{font-size:11px;letter-spacing:.025em;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400;order:1}.track-label small{font-size:8px;letter-spacing:.035em;opacity:.55;order:2}.track-label>.chevron{position:absolute;right:0;top:8px}.player>.icon-button{width:28px;height:32px;opacity:.65}.player>.icon-button .icon{width:17px;height:17px}.volume{display:flex;align-items:center;gap:4px}.volume .icon-button{width:27px;height:36px}.volume .icon{width:15px;height:15px;stroke-width:1.4}.volume-range{width:77px;display:flex;align-items:center}.volume input{width:100%;height:18px;background:transparent;appearance:none;-webkit-appearance:none;padding:0;margin:0;cursor:pointer}.volume input::-webkit-slider-runnable-track{height:2px;border-radius:2px;background:linear-gradient(to right,currentColor 0%,currentColor var(--volume,45%),var(--fine) var(--volume,45%),var(--fine) 100%);opacity:.55}.volume input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;height:9px;width:9px;border-radius:50%;background:var(--ink);margin-top:-3.5px;box-shadow:0 1px 4px rgba(20,35,25,.12)}.volume input::-moz-range-track{height:2px;background:var(--fine)}.volume input::-moz-range-thumb{height:8px;width:8px;border:0;background:var(--ink);border-radius:50%}#background-mode{width:32px;height:36px;opacity:.65;margin-left:3px}#background-mode .icon{width:17px;height:17px}
.panel{color:var(--ink);border-radius:27px;max-height:calc(100svh - 60px);width:430px;max-width:calc(100vw - 40px);padding:28px 30px 25px;background:linear-gradient(135deg,var(--panel),var(--glass));-webkit-backdrop-filter:blur(16px) saturate(1.10);backdrop-filter:blur(16px) saturate(1.10);box-shadow:inset 0 1px 0 rgba(255,255,255,.33),0 28px 80px rgba(22,42,31,.15);overflow:auto;scrollbar-width:thin;scrollbar-color:var(--fine) transparent}.panel::backdrop{background:rgba(17,31,24,.10);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.panel[open]{animation:panel-in .22s ease-out}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.panel h2{font:400 20px "Hiragino Mincho ProN","Yu Mincho",serif;letter-spacing:.12em;margin:0}.panel-heading .icon-button{width:30px;height:30px;opacity:.6}.panel-heading .icon{width:17px;height:17px}.presets{display:flex;gap:8px;margin-bottom:29px}.presets button,.genres button{padding:8px 16px;font:10px "Avenir Next","Hiragino Sans",sans-serif;letter-spacing:.04em;border:1px solid var(--fine);border-radius:20px;opacity:.65;white-space:nowrap}.presets button:hover,.presets button[aria-pressed=true],.genres button[aria-pressed=true]{border-color:var(--rim);background:var(--active);opacity:1;box-shadow:inset 0 1px 0 rgba(255,255,255,.19),0 2px 8px var(--glass-shadow)}.time-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:22px}.time-fields label{position:relative;display:block;font-size:10px;letter-spacing:.04em}.time-fields input{display:block;width:100%;font:400 42px/1.2 "Baskerville",serif;color:inherit;background:none;border:0;border-bottom:1px solid var(--fine);padding:13px 20px 12px 0;appearance:textfield;-moz-appearance:textfield;border-radius:0;outline-offset:3px}.time-fields input::-webkit-inner-spin-button{appearance:none}.time-fields label>span{position:absolute;right:1px;bottom:18px;font-size:9px;opacity:.45}.session-length{text-align:right;font-size:9px;opacity:.48;margin:16px 0 26px}.setting-options{border-top:1px solid var(--fine);padding-top:11px}.check-row{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:10px;letter-spacing:.025em;padding:12px 0;cursor:pointer}.check-row input{appearance:none;-webkit-appearance:none;width:29px;height:17px;border:1px solid var(--fine);background:rgba(255,255,255,.04);border-radius:20px;position:relative;cursor:pointer;margin:0;flex-shrink:0}.check-row input::after{content:"";position:absolute;left:2px;top:2px;width:11px;height:11px;border-radius:50%;background:var(--ink);opacity:.35;transition:transform .18s,opacity .18s}.check-row input:checked{background:var(--active);border-color:var(--rim)}.check-row input:checked::after{transform:translateX(12px);opacity:.75}.apply-button{width:100%;height:43px;border-radius:18px;display:flex;align-items:center;justify-content:center;gap:13px;font-size:11px;margin-top:24px}.apply-button .icon{width:14px;height:14px}.settings-warning{font-size:9px;opacity:.55;margin:17px 0 -7px}
.scenery-panel{width:640px}.scene-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px 17px}.scene-card{padding:0;text-align:left;position:relative;border-radius:14px;min-width:0}.scene-card img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:13px;display:block;border:1px solid rgba(255,255,255,.3);transition:filter .2s}.scene-card:hover img{filter:brightness(1.04)}.scene-card strong{display:block;font-size:11px;font-weight:400;letter-spacing:.035em;margin:11px 2px 0}.scene-card small{display:none}.scene-card[aria-pressed=true]::after{content:"";position:absolute;inset:0 0 26px;border:1.5px solid var(--ink);opacity:.6;border-radius:13px;pointer-events:none}.scene-selection{display:none;position:absolute;right:10px;top:10px;border-radius:50%;width:23px;height:23px;background:rgba(247,249,237,.7);color:#334536;place-items:center;box-shadow:0 1px 7px rgba(20,40,25,.1)}.scene-card[aria-pressed=true] .scene-selection{display:grid}.scene-selection .icon{width:12px;height:12px}
.music-panel{width:510px}.genres{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 -3px 14px;padding:3px}.genres::-webkit-scrollbar{display:none}.genres button{padding:7px 12px;font-size:9px;flex-shrink:0}.track-list{max-height:min(340px,43svh);overflow:auto;scrollbar-width:thin;scrollbar-color:var(--fine) transparent}.track-row{width:100%;padding:14px 1px;display:flex;align-items:center;gap:14px;text-align:left;border-bottom:1px solid var(--fine)}.track-row:last-child{border-bottom:0}.track-icon{width:33px;height:33px;display:grid;place-items:center;border:1px solid var(--fine);border-radius:50%;flex-shrink:0}.track-icon .icon{width:14px;height:14px}.track-row.selected .track-icon{background:var(--active);border-color:var(--rim);box-shadow:inset 0 1px 0 rgba(255,255,255,.2)}.track-row strong{font-size:11px;letter-spacing:.02em;font-weight:400;display:block}.track-row>span:nth-child(2){min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.track-row small{display:none}.track-tag{font-size:8px;opacity:.48;padding-right:5px;white-space:nowrap}.import-button{font-size:10px;display:flex;align-items:center;justify-content:center;gap:8px;border-top:1px solid var(--fine);width:100%;margin-top:15px;padding-top:23px;opacity:.70}.import-button .icon{width:13px;height:13px}.import-button:hover{opacity:1}.import-note{text-align:center;font-size:8px;opacity:.4;margin:11px 0 0}
.toast{position:absolute;z-index:10;left:50%;bottom:123px;transform:translateX(-50%);padding:12px 20px;border-radius:16px;font-size:10px;max-width:min(430px,88vw);text-align:center;line-height:1.8;opacity:0;pointer-events:none;transition:opacity .18s}.toast.visible{opacity:1}#exit-zen{display:none;position:absolute;right:38px;bottom:30px;width:39px;height:39px;opacity:.55}.zen .topbar,.zen .bottom-bar{opacity:0;pointer-events:none}.topbar,.bottom-bar{transition:opacity .25s}.zen #exit-zen{display:grid}.zen .timer-actions{opacity:0;pointer-events:none}.timer-actions{transition:opacity .25s}.screen-shade{display:none}.screen-dark .screen-shade{position:absolute;inset:0;z-index:100;display:grid;place-items:center;background:#080e0c;color:#8a9789;width:100%;height:100%;font:italic 37px "Baskerville",serif;letter-spacing:-1px}.screen-shade small{display:block;margin-top:19px;font:8px "Hiragino Sans",sans-serif;color:#59665b;letter-spacing:.05em}
@keyframes panel-in{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(min-width:761px) and (max-width:1060px){.topbar{padding:0 37px;height:108px}.timer-area,.listen-intro{width:35vw;left:7%}[data-position=right] .timer-area,[data-position=right] .listen-intro{right:7%}.clock{font-size:12vw}.bottom-bar{max-width:calc(100% - 52px);gap:12px;padding:10px 12px;height:69px;border-radius:23px}.scene-button{min-width:139px;gap:9px}.scene-button img{width:47px;height:37px}.scene-button strong{font-size:9px}.scene-button-copy{min-width:54px}.player{width:225px;gap:10px}.volume-range{width:57px}}
@media(min-width:761px) and (max-height:700px){.timer-area{top:46%}.clock{font-size:115px;line-height:1.10;margin-top:16px}.timer-actions{margin-top:26px}.topbar{height:96px}.bottom-bar{bottom:22px}}
@media(max-width:760px){#app{min-height:560px}.topbar{height:auto;top:27px;padding:0 26px;display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.brand-name{font-size:34px}.brand-by{font-size:7px;margin-top:2px}.top-actions{gap:8px;padding-top:3px}.top-actions .icon-button{height:36px;width:36px}.top-actions .icon{width:15px;height:15px}.mode-switch{position:fixed;top:112px;left:50%;transform:translateX(-50%);padding:3px}.mode-switch button{height:30px;padding:0 17px;font-size:9px}.mode-switch button .icon{height:13px;width:13px}.timer-area,[data-position=right] .timer-area{width:min(73vw,342px);left:50%;right:auto;top:46%;transform:translate(-50%,-44%)}.clock{font-size:clamp(104px,28vw,146px);margin:20px -10px 15px;line-height:1.15}.timer-top{font-size:10px}.elapsed-row{font-size:8px;margin-top:16px}.stage-progress{margin-top:19px}.timer-actions{gap:25px;margin-top:32px}.play-button{width:59px;height:59px}.secondary-control{width:36px;height:36px}.readability,[data-position=right] .readability{background:radial-gradient(ellipse 85% 38% at 50% 46%,rgba(247,248,231,.35),rgba(247,248,231,.10) 70%,transparent)}.dark .readability{background:radial-gradient(ellipse 85% 38% at 50% 46%,rgba(10,25,25,.25),transparent 90%)}.bottom-bar{bottom:max(20px,env(safe-area-inset-bottom));left:17px;right:17px;transform:none;width:auto;max-width:none;height:68px;padding:10px 11px;gap:9px;border-radius:24px}.scene-button{min-width:0;width:39px;flex-shrink:0}.scene-button img{width:39px;height:39px;border-radius:12px}.scene-button-copy,.scene-button>.chevron,.dock-divider{display:none}.player{width:auto;flex:1;gap:9px;min-width:0}.music-toggle{height:35px;width:35px}.music-toggle .icon{height:16px;width:16px}.track-label{padding:0 12px 0 0;gap:5px}.track-label strong{font-size:10px}.track-label small{font-size:7px}.track-label>.chevron{width:10px;right:0;top:8px}.player>#music-next{display:none}.volume{gap:0;position:relative;flex-shrink:0}.volume .icon-button{width:27px;height:37px}.volume .icon{height:15px;width:15px}.volume-range{display:none;position:absolute;bottom:53px;right:-22px;width:127px;height:41px;padding:0 16px;border-radius:17px;background:var(--panel);border:1px solid var(--rim);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 8px 22px var(--glass-shadow)}.volume.open .volume-range{display:flex}#background-mode{width:27px;height:37px;margin:0}#background-mode .icon{width:16px;height:16px}.listen-intro,[data-position=right] .listen-intro{width:75%;left:50%;right:auto;top:46%;transform:translate(-50%,-44%)}.listen-intro h1{font-size:29px}.panel{width:calc(100vw - 34px);max-width:none;max-height:calc(100svh - 44px);padding:25px 24px 23px;border-radius:25px}.panel-heading{margin-bottom:26px}.panel h2{font-size:19px}.time-fields{gap:18px}.time-fields input{font-size:43px}.scene-grid{gap:23px 13px}.scene-card img{aspect-ratio:1.3}.scene-card strong{font-size:10px}.scene-card[aria-pressed=true]::after{bottom:25px}.scenery-panel{width:calc(100vw - 34px)}.track-list{max-height:42svh}.track-row{gap:11px;padding:15px 0}.track-tag{font-size:7px;max-width:70px;white-space:normal;text-align:right;line-height:1.6}.import-note{font-size:8px}.toast{bottom:110px;font-size:9px;width:max-content}.zen .timer-area{transform:translate(-50%,-44%)}#exit-zen{bottom:28px;right:27px}.ios{min-height:0!important}.ios .topbar{top:20px}.ios .mode-switch{top:98px}}
@media(max-width:360px){.topbar{padding:0 21px}.bottom-bar{left:12px;right:12px;padding-left:9px;padding-right:9px;gap:7px}.scene-button,.scene-button img{width:34px;height:37px}.music-toggle{width:32px;height:32px}.track-label strong{font-size:9px}.player{gap:7px}.track-label>.chevron{display:none}.track-label{padding:0}.timer-area,[data-position=right] .timer-area{width:76vw}}
@media(max-width:760px) and (max-height:700px){.topbar{top:18px}.mode-switch{top:93px}.ios .mode-switch{top:82px}.timer-area,[data-position=right] .timer-area{top:47%;transform:translate(-50%,-42%)}.clock{font-size:26vw;margin:15px -10px 11px}.elapsed-row{margin-top:13px}.stage-progress{margin-top:15px}.timer-actions{margin-top:25px;gap:23px}.play-button{width:53px;height:53px}.bottom-bar{height:63px;bottom:17px}.panel{max-height:calc(100svh - 25px);padding-top:22px;padding-bottom:20px}.panel-heading{margin-bottom:23px}.presets{margin-bottom:22px}.session-length{margin-bottom:20px}.check-row{padding:10px 0}.apply-button{margin-top:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@media(prefers-reduced-transparency:reduce){#app{--glass:rgba(242,245,230,.82);--glass-bottom:rgba(242,245,230,.82);--panel:rgba(242,245,230,.96)}#app.dark{--glass:rgba(27,43,35,.88);--glass-bottom:rgba(27,43,35,.88);--panel:rgba(27,43,35,.97)}}
[hidden]{display:none!important}.icon-library{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}.icon{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}.sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#app{isolation:isolate}.panel{position:fixed;inset:0;margin:auto}
.scenery video,.scenery canvas{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}.scenery video{opacity:0}.scenery canvas{z-index:1}.grove-light .scenery img{animation:grove-light 240s ease-in-out infinite alternate}@keyframes grove-light{0%,15%{filter:brightness(1) saturate(1)}45%,65%{filter:brightness(.96) saturate(.96)}90%,100%{filter:brightness(1.025) saturate(1.015)}}@media(max-width:760px){.timer-area,[data-position=right] .timer-area{top:38%}.listen-intro,[data-position=right] .listen-intro{top:38%}}@media(max-width:760px) and (max-height:700px){.timer-area,[data-position=right] .timer-area{top:40%}.clock{font-size:25vw}.timer-actions{margin-top:20px}}
.scene-characters{padding:0 2px 19px;margin:0 0 23px;border-bottom:1px solid var(--fine)}
.task-title{display:block;width:100%;border:0;background:none;color:inherit;text-align:center;font:11px/1.7 "Hiragino Sans",sans-serif;letter-spacing:.035em;padding:0 5px 15px;outline-offset:3px;opacity:.8;text-overflow:ellipsis}.task-title::placeholder{color:inherit;opacity:.4}.scene-tools{display:flex;align-items:center;gap:18px;margin:-8px 0 8px}.scene-tools .check-row{flex:1}.scene-tools .icon-button{width:32px;height:32px}.scene-tools .icon{width:16px;height:16px}.panel-tools{display:flex;gap:8px}.memory-panel{width:540px}.memory-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding-bottom:24px;border-bottom:1px solid var(--fine);font-size:10px;opacity:.75}.memory-summary strong{display:block;min-width:0;margin:0;font:400 clamp(17px,5.2vw,24px)/1.35 "Baskerville",serif;letter-spacing:-.025em;font-variant-numeric:tabular-nums;white-space:nowrap}.memory-list{max-height:48svh;overflow:auto;scrollbar-width:thin;padding-top:7px}.memory-day{font:10px "Avenir Next",sans-serif;letter-spacing:.08em;margin:22px 0 7px;opacity:.5}.memory-row{padding:15px 0;border-bottom:1px solid var(--fine);display:grid;grid-template-columns:minmax(0,1fr) max-content;column-gap:16px;row-gap:6px;align-items:baseline}.memory-row input{grid-column:1;grid-row:1;width:100%;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:none;color:inherit;font-family:inherit;font-size:11px;line-height:1.7;-webkit-appearance:none;appearance:none;outline-offset:3px;text-overflow:ellipsis}.memory-row input::placeholder{color:inherit;opacity:.4}.memory-row small{grid-column:1/-1;grid-row:2;min-width:0;font:8px "Avenir Next",sans-serif;opacity:.45}.memory-row>span{grid-column:2;grid-row:1;min-width:0;align-self:baseline;text-align:right;font:11px/1.7 "Avenir Next",sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap;opacity:.7}.memory-empty{font-size:11px;opacity:.45;text-align:center;margin:32px 0}.mix-panel{width:480px}.mix-music,.ambience-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:11px 0;font-size:10px}.mix-music{border-bottom:1px solid var(--fine);padding-bottom:21px;margin-bottom:8px}.mix-panel input[type=range]{width:62%;accent-color:#789078;height:16px;opacity:.75;cursor:pointer}.ambience-row output{font:9px "Avenir Next",sans-serif;opacity:.45;min-width:23px;text-align:right}.ambience-row input{flex:1;min-width:0}.ambience-row label{width:61px;flex-shrink:0}.mix-save{display:flex;gap:12px;border-top:1px solid var(--fine);padding-top:21px;margin-top:17px}.mix-save input{flex:1;min-width:0;font-size:11px;background:none;color:inherit;border:0;border-bottom:1px solid var(--fine);border-radius:0;padding:8px 2px}.mix-save input::placeholder{color:inherit;opacity:.4}.mix-save button{font-size:10px;border-radius:15px;padding:9px 19px}.mix-favorites{display:flex;flex-wrap:wrap;gap:7px;margin-top:17px}.mix-favorites button{font-size:9px;border:1px solid var(--fine);border-radius:18px;padding:8px 12px;background:var(--active)}#mix-open{width:28px;height:35px;opacity:.65;flex-shrink:0}#mix-open .icon{width:17px;height:17px}@media(max-width:760px){.top-actions{gap:5px}.top-actions .icon-button{width:32px;height:34px}.task-title{font-size:10px;padding-bottom:13px}#mix-open{width:23px;height:35px}.bottom-bar{gap:7px}.player{gap:7px}.memory-panel,.mix-panel{width:calc(100vw - 34px)}.memory-list{max-height:47svh}.mix-panel{max-height:calc(100svh - 32px)}.mix-music,.ambience-row{padding:9px 0}.ambience-row label{width:55px}.mix-save{padding-top:17px;margin-top:14px}}
/* Keep the complete four-character composition on a portrait display. */
@media(max-width:760px) and (orientation:portrait){.scenery::before{content:"";position:absolute;inset:-24px;background-image:var(--scene-image);background-size:cover;background-position:var(--mobile-focus,center);filter:blur(18px);opacity:.75}.scenery img,.scenery canvas,.scenery video{position:absolute;inset:auto 0 99px;width:100%;height:auto;aspect-ratio:1672/941;object-fit:fill;object-position:center;-webkit-mask-image:linear-gradient(transparent,#000 18%,#000 90%,transparent);mask-image:linear-gradient(transparent,#000 18%,#000 90%,transparent)}.scenery video{aspect-ratio:16/9}.readability,[data-position=right] .readability{background:linear-gradient(rgba(242,245,227,.12),rgba(242,245,227,.24) 48%,transparent 71%)}.timer-area,[data-position=right] .timer-area{top:36%}.listen-intro,[data-position=right] .listen-intro{top:36%}}
@media(min-width:900px){.scenery-panel{width:800px}.scene-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 17px}}
/* A whole painting below the timer on an iPad held upright. */
@media(min-width:761px) and (max-width:1100px) and (orientation:portrait){
  .scenery::before{content:"";position:absolute;inset:-28px;background-image:var(--scene-image);background-size:cover;background-position:var(--mobile-focus,center);filter:blur(24px);opacity:.67}
  .scenery img,.scenery canvas,.scenery video{position:absolute;inset:auto 0 128px;width:100%;height:auto;aspect-ratio:1672/941;object-fit:fill;object-position:center;-webkit-mask-image:linear-gradient(transparent,#000 14%,#000 98%,transparent);mask-image:linear-gradient(transparent,#000 14%,#000 98%,transparent)}
  .timer-area,[data-position=right] .timer-area{width:min(47vw,440px);left:50%;right:auto;top:33%;transform:translate(-50%,-44%)}
  .clock{font-size:142px}.listen-intro,[data-position=right] .listen-intro{width:65%;left:50%;right:auto;top:31%;transform:translate(-50%,-44%)}
  .readability,[data-position=right] .readability{background:linear-gradient(rgba(242,245,227,.15),rgba(242,245,227,.18) 43%,transparent 66%)}
  .dark .readability{background:linear-gradient(rgba(12,25,25,.10),rgba(12,25,25,.08) 43%,transparent 66%)}
}
@media(max-width:760px) and (orientation:portrait){.scenery img,.scenery canvas,.scenery video{-webkit-mask-image:linear-gradient(transparent,#000 14%,#000 98%,transparent);mask-image:linear-gradient(transparent,#000 14%,#000 98%,transparent)}}
@media(min-width:761px) and (max-width:1100px) and (max-height:700px){.bottom-bar{left:auto;right:22px;transform:none}}
@media(min-width:761px) and (orientation:landscape) and (max-aspect-ratio:3/2){
  .scenery::before{content:"";position:absolute;inset:-26px;background-image:var(--scene-image);background-size:cover;background-position:center;filter:blur(22px);opacity:.67}
  .scenery img,.scenery canvas,.scenery video{object-fit:contain}
}
/* Japanese and Finnish share a calm, consistent hierarchy. */
.paired::after{content:attr(data-fi);display:block;font:400 9px/1.5 "Avenir Next",-apple-system,sans-serif;letter-spacing:.015em;opacity:.60;margin-top:3px;white-space:normal}
.mode-switch button{height:42px;padding:0 18px}.mode-switch .paired::after{font-size:8px;margin-top:1px}.mode-switch button>span{text-align:left}
.wordmark{padding:0;text-align:left;border-radius:8px}.wordmark:hover .brand-by{opacity:1}.wordmark:focus-visible{outline-offset:8px}
.timer-top{min-height:33px;gap:12px}.phase{flex-shrink:0}.phase .paired::after{font-size:8px;margin-top:2px;letter-spacing:0}.task-button{min-width:0;max-width:56%;padding:6px 8px;opacity:.64;border-radius:10px;font-size:10px;font-weight:400;line-height:1.5;letter-spacing:0}.task-button:hover{opacity:1;background:var(--active)}#task-caption{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#task-caption::after{font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#round-label{flex-shrink:0}
.panel h2.paired::after{font-size:10px;letter-spacing:.025em;margin-top:6px}.check-row .paired::after{font-size:9px}.time-fields b{font-weight:400;display:block}.time-fields b::after{font-size:8px;min-height:12px}.time-fields label>span{font-size:8px}.apply-button{min-height:49px;height:auto;padding:9px 14px}.apply-button .paired::after{font-size:8px;margin-top:1px}.mix-save button{padding:8px 16px}.mix-save .paired::after{font-size:8px;margin-top:1px}.ambience-row{min-height:50px}.ambience-row label{width:95px}.ambience-row label::after{font-size:9px}.mix-music>span::after{font-size:9px}.mix-panel input[type=range]{min-width:0}.memory-summary>span{display:grid;grid-template-rows:auto auto;align-content:start;justify-items:start;gap:9px;min-width:0}.memory-summary>span>span{display:block;line-height:1.5;white-space:nowrap}.memory-summary .paired::after{font-size:9px;white-space:nowrap}.memory-row>span.paired::after{white-space:nowrap}.memory-row small{line-height:1.8}.genres .paired::after{font-size:8px;margin-top:1px}.track-row strong{font-family:"Avenir Next",-apple-system,sans-serif;font-size:13px;letter-spacing:.005em}.track-row strong::after{font-family:"Hiragino Sans",sans-serif;font-size:10px}.track-tag.paired::after{font-size:8px}.track-row>span:nth-child(2){white-space:normal}.track-label strong{font-family:"Avenir Next",-apple-system,sans-serif;font-size:12px;letter-spacing:0}.track-label small{font-size:9px}.scene-card strong.paired::after{font-size:9px}.scene-card[aria-pressed=true]::after{display:none}.scene-card[aria-pressed=true] img{outline:1px solid var(--ink);outline-offset:3px}.scene-button small{letter-spacing:0;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.listen-intro h1{font-family:"Baskerville",serif;font-size:40px;letter-spacing:0;line-height:1.3}.listen-intro h1::after{font-family:"Hiragino Mincho ProN",serif;font-size:14px;letter-spacing:.05em;margin-top:13px}.import-note.paired::after{font-size:8px}.task-panel{width:440px}.task-field{display:block}.task-field input{width:100%;background:rgba(255,255,255,.07);border:1px solid var(--fine);border-radius:13px;color:inherit;font-size:16px;padding:15px 14px;line-height:1.6;outline-offset:3px;-webkit-appearance:none}.task-field input::placeholder{font-size:12px;color:var(--muted);opacity:.7}.task-hint{font-size:11px;line-height:1.9;opacity:.72;margin:16px 0 3px}.task-hint::after{line-height:1.7}.task-panel .panel-heading{margin-bottom:24px}
.about-panel{width:550px}.about-brand{font:48px/1.15 "Baskerville",serif;letter-spacing:-1.5px}.about-meaning{font-size:11px;line-height:1.9;margin:12px 0 25px}.about-intro{font:15px/2.1 "Hiragino Mincho ProN","Yu Mincho",serif;letter-spacing:.025em;margin:23px 0}.about-intro::after{font:11px/1.9 "Avenir Next",sans-serif;margin-top:12px}.about-landscape{display:block;width:100%;height:155px;object-fit:cover;border-radius:16px;margin:0 0 25px}.about-story h3{font:16px "Baskerville",serif;letter-spacing:.02em;margin:27px 0 17px}.about-story p{font-size:12px;line-height:2.15;margin:17px 0}.about-story p::after{font-size:10px;line-height:1.9;margin-top:9px}.about-guide{margin:28px 0;border-top:1px solid var(--fine)}.about-guide>div{display:grid;grid-template-columns:110px 1fr;gap:20px;padding:19px 0;border-bottom:1px solid var(--fine)}.about-guide dt{font-size:11px}.about-guide dd{margin:0;font-size:11px;line-height:1.9}.about-guide dd::after{font-size:9px;line-height:1.8}.about-footnote{font-size:10px;line-height:1.9;opacity:.65}.about-credit{font:10px "Avenir Next",sans-serif;letter-spacing:.12em;text-align:center;margin:27px 0 0;opacity:.6}
@media(max-width:760px){
 .mode-switch,.ios .mode-switch{top:100px}.mode-switch button{height:37px;padding:0 14px;font-size:10px}.mode-switch .paired::after{font-size:8px}
 .timer-area,[data-position=right] .timer-area{top:168px;transform:translateX(-50%);width:min(78vw,342px)}
 .timer-top{min-height:33px;font-size:10px;gap:6px}.task-button{max-width:54%;font-size:10px;padding:3px 5px}.clock{font-size:clamp(92px,27vw,146px);line-height:1.12;margin:18px -8px 17px}.elapsed-row{margin-top:14px}.stage-progress{margin-top:16px}.timer-actions{margin-top:27px}.play-button{height:55px;width:55px}
 .panel{max-height:calc(100dvh - 40px);scroll-padding-block:25px}.task-panel{width:calc(100vw - 34px)}.task-panel .panel-heading{margin-bottom:22px}.memory-row input,.mix-save input{font-size:16px}.memory-row input::placeholder,.mix-save input::placeholder{font-size:11px}.ambience-row label{width:85px}.mix-panel input[type=range]{width:auto;flex:1}.track-label strong{font-size:11px}.track-label small{font-size:8px}.track-tag{max-width:76px}.about-guide>div{grid-template-columns:90px 1fr;gap:12px}.about-landscape{height:130px}.about-story p{font-size:11px}.about-intro{font-size:14px}
 .listen-intro,[data-position=right] .listen-intro{top:230px;transform:translateX(-50%)}.listen-intro h1{font-size:34px}.zen .timer-area{top:32%;transform:translate(-50%,-20%)}
}
@media(max-width:760px) and (max-height:700px){.mode-switch,.ios .mode-switch{top:80px}.timer-area,[data-position=right] .timer-area{top:145px}.clock{font-size:25vw;margin-top:12px;margin-bottom:12px}.elapsed-row{margin-top:10px}.stage-progress{margin-top:12px}.timer-actions{margin-top:20px}.play-button{width:49px;height:49px}.listen-intro,[data-position=right] .listen-intro{top:200px}}
@media(max-width:760px) and (orientation:landscape){.mode-switch,.ios .mode-switch{top:25px}.timer-area,[data-position=right] .timer-area{top:93px;width:40vw;left:27%}.clock{font-size:12vw;line-height:1;margin:10px 0}.timer-actions{margin-top:12px}.stage-progress{display:none}.bottom-bar{bottom:12px}.listen-intro,[data-position=right] .listen-intro{top:125px}}
.info-button{display:inline-grid;place-items:center;width:17px;height:17px;min-width:17px;border:1px solid currentColor;border-radius:50%;font:italic 11px/1 Georgia,serif;padding:0;opacity:.5;position:relative;isolation:isolate}.info-button::after{content:"";position:absolute;inset:-11px;border-radius:50%;z-index:-1}.info-button:hover{opacity:1}.timer-actions{position:relative}.timer-info{position:absolute;right:0;top:50%;margin-top:-8px}.panel-heading h2{flex:1}.panel-heading .heading-info{flex:0 0 17px;margin-left:-9px;margin-right:2px}.panel-heading .panel-tools{margin-left:auto}.help-panel{width:450px}.help-panel p{font-size:12px;line-height:2.1;margin:0}.help-panel p::after{font-size:11px;line-height:1.9;margin-top:20px}.control-copy{display:block;font-size:10px;line-height:1.6}.control-copy::after{font-size:8px;line-height:1.4;margin-top:2px;white-space:nowrap}.timer-actions #timer-start,.listen-intro #listen-start{width:185px;min-height:61px;height:auto;padding:12px 17px;display:flex;align-items:center;justify-content:center;gap:12px;border-radius:25px}.timer-actions #timer-start .icon{width:19px;height:19px}.music-toggle{width:85px;height:43px;display:flex;align-items:center;justify-content:center;gap:7px;border-radius:18px}.music-toggle .icon{width:15px;height:15px}.music-toggle .control-copy{font-size:9px;text-align:left}.music-toggle .paired::after{font-size:8px;margin-top:0}.player{width:290px;gap:10px}.player .music-info{width:16px;height:16px;flex:0 0 16px}.timer-actions{gap:14px}.timer-info{right:-10px}.help-panel .panel-heading{margin-bottom:20px}
@media(max-width:1060px) and (min-width:761px){.player{width:260px}.timer-actions #timer-start{width:160px;padding:11px 10px}.timer-actions{gap:10px}.timer-info{right:-16px}}
@media(max-width:760px){.music-toggle{width:70px;min-width:70px;height:39px;gap:5px;border-radius:16px}.music-toggle .control-copy{font-size:9px}.music-toggle .paired::after{font-size:7px}.music-toggle .icon{width:13px;height:13px}.player{width:auto;gap:7px}.player .music-info{width:14px;min-width:14px;height:14px;flex-basis:14px;font-size:10px}.bottom-bar{gap:7px;padding-left:10px;padding-right:10px}.player>#music-next{display:none}.timer-actions #timer-start{width:171px;min-height:55px;padding:10px 12px;border-radius:23px}.timer-actions{gap:15px}.timer-info{right:-11px}.timer-actions .control-copy{font-size:10px}.timer-actions .paired::after{font-size:8px}.timer-actions .secondary-control{width:34px;height:34px}.help-panel{width:calc(100vw - 34px)}}
@media(max-width:760px){.task-panel[open]{position:fixed;top:max(16px,calc((var(--visible-height,100svh) - 290px)/2));margin:0 auto;max-height:calc(var(--visible-height,100svh) - 32px)}.task-field input:focus-visible{outline:1px solid var(--ink);outline-offset:2px}}
/* Dialogs stay in the visible viewport, including long story pages. */
.panel{position:fixed;inset:0;margin:auto;height:fit-content}
@media(min-width:761px){
 .timer-actions{gap:22px;margin-top:45px}
 .timer-actions #timer-start{width:62px;height:62px;min-height:62px;padding:0;border-radius:50%;display:grid;place-items:center}
 .timer-actions #timer-start .control-copy{position:absolute;bottom:calc(100% + 11px);width:190px;text-align:center;pointer-events:none;font-size:9px;opacity:.8}
 .timer-actions #timer-start .control-copy::after{font-size:8px;margin-top:1px}
 .timer-info{right:0;top:-21px;margin-top:0}
}
.panel{max-width:calc(100vw - 34px)}
@media(min-width:761px){.timer-info{left:calc(50% + 95px);right:auto;top:-28px}}
.memory-summary strong.paired::after,.memory-row>span.paired::after{font:9px/1.4 "Avenir Next",sans-serif;margin-top:4px}.task-panel{max-height:calc(var(--visible-height,100svh) - 32px)}
@media(min-width:761px){.timer-info{left:calc(50% + 55px)}}
/* The task editor follows the space above the iPhone keyboard. */
.task-panel[open]{top:var(--visible-top,0px);bottom:auto;margin:max(16px,calc((var(--visible-height,100svh) - 310px)/2)) auto 0}
/* A separate quiet night, with no focus log or ending alarm. */
.sleep-intro{display:none;position:absolute;width:min(33vw,410px);top:44%;left:8%;transform:translateY(-45%);text-align:center}.sleeping .sleep-intro{display:block}.sleeping .timer-area,.sleeping .listen-intro{display:none}[data-position=right] .sleep-intro{left:auto;right:8%}.sleep-eyebrow{font-size:10px;letter-spacing:.07em;opacity:.72}.sleep-intro h1{font:32px/1.6 "Hiragino Mincho ProN",serif;letter-spacing:.15em;margin:20px 0 12px}.sleep-intro h1::after{font:15px/1.6 "Baskerville",serif;letter-spacing:.04em;margin-top:1px}.sleep-duration{font-size:10px;line-height:1.8;opacity:.7;border-bottom:1px solid var(--fine);padding:8px 8px 7px}.sleep-duration::after{font-size:9px}.sleep-remaining{font:38px/1.3 "Baskerville",serif;letter-spacing:.02em;margin:17px 0 23px;opacity:.7}.sleep-actions{display:flex;align-items:center;justify-content:center;gap:14px;padding-left:28px}.sleep-start{display:flex;justify-content:center;align-items:center;gap:11px;border-radius:23px;padding:13px 22px;min-height:57px}.sleep-start .icon{width:18px;height:18px}.sleep-panel{width:440px}.sleep-field{display:grid;grid-template-columns:1fr 88px auto;align-items:center;gap:12px;font-size:11px}.sleep-field input{width:100%;font:35px "Baskerville",serif;background:none;border:0;border-bottom:1px solid var(--fine);color:inherit;text-align:center;padding:9px 0;border-radius:0}.sleep-field small{font-size:9px;opacity:.6}.sleep-presets{display:flex;gap:7px;flex-wrap:wrap;margin:22px 0}.sleep-presets button{padding:8px 12px;border:1px solid var(--fine);border-radius:18px;font:10px "Avenir Next",sans-serif}.sleep-note{font-size:10px;line-height:1.9;opacity:.7}.sleep-note::after{font-size:9px;line-height:1.8}.sleeping .scenery::after{content:"";position:absolute;inset:0;background:rgba(17,29,51,.13);pointer-events:none}.sleeping .readability{background:radial-gradient(ellipse at 23% 42%,rgba(16,25,42,.12),transparent 60%)}
@media(max-width:760px){.sleep-intro,[data-position=right] .sleep-intro{width:78%;left:50%;right:auto;top:180px;transform:translateX(-50%)}.sleep-intro h1{font-size:30px;margin:16px 0 8px}.sleep-remaining{font-size:31px;margin:13px 0 17px}.sleep-intro h1::after{font-size:14px}.mode-switch button{padding-left:12px;padding-right:12px}.mode-switch button .paired::after{font-size:8px}.sleep-panel{width:calc(100vw - 34px)}}
@media(max-width:760px) and (max-height:700px){.sleep-intro,[data-position=right] .sleep-intro{top:145px}.sleep-intro h1{margin-top:11px;font-size:27px}.sleep-remaining{font-size:26px;margin:9px 0 12px}.sleep-eyebrow{font-size:9px}}
@media(min-width:761px) and (orientation:portrait){.sleep-intro,[data-position=right] .sleep-intro{width:65%;left:50%;right:auto;top:31%;transform:translate(-50%,-44%)}}
/* One focus view, two ways of keeping time, three quiet clock faces. */
.timer-kind-options,.timer-style-options{border:0;padding:0;margin:0 0 25px;display:flex;gap:9px;min-width:0}.timer-kind-options legend,.timer-style-options legend{font-size:10px;margin-bottom:13px;padding:0}.timer-kind-options legend::after,.timer-style-options legend::after{font-size:9px}.timer-kind-options label,.timer-style-options label{position:relative;border:1px solid var(--fine);border-radius:16px;padding:11px 14px;flex:1;text-align:center;font-size:10px;cursor:pointer;min-width:0}.timer-kind-options input,.timer-style-options input{position:absolute;opacity:0;width:1px;height:1px}.timer-kind-options label:has(input:checked),.timer-style-options label:has(input:checked){border-color:var(--rim);background:var(--active);box-shadow:inset 0 1px 0 #ffffff30}.timer-kind-options label:has(input:focus-visible),.timer-style-options label:has(input:focus-visible){outline:1px solid var(--ink);outline-offset:3px}.timer-kind-options span::after,.timer-style-options label>span:last-child::after{font-size:8px}.timer-style-options{gap:8px;margin-top:25px}.timer-style-options label{padding:12px 5px 10px;border-radius:13px}.timer-style-preview{display:grid;place-items:center;height:51px;position:relative;margin-bottom:7px;font:26px/1 "Baskerville",serif;letter-spacing:-.04em}.countup-settings .pomodoro-fields{display:none}.countup-settings .setting-options>.check-row:has(#chime),.countup-settings .setting-options>.check-row:has(#warning-enabled){display:none}.counting-up #timer-skip{visibility:hidden}.counting-up .stage-progress{opacity:0}.clock{position:relative;height:clamp(113px,12.4vw,179px);display:grid;place-items:center}.clock::before,.clock::after{pointer-events:none}.clock[data-long=true]{font-size:clamp(70px,8vw,120px)}
@media(min-width:761px) and (max-height:700px){.clock{height:126px}}
@media(max-width:760px){.clock{height:clamp(100px,30.2vw,146px)}.clock[data-long=true]{font-size:22vw}.timer-kind-options,.timer-style-options{margin-bottom:22px}.timer-kind-options label{padding:10px 8px}.timer-style-preview{height:46px;font-size:24px}}
.signature-settings{width:100%;display:flex;align-items:center;justify-content:space-between;padding:17px 0;border-top:1px solid var(--fine);font-size:10px;text-align:left}.signature-settings .icon{width:13px;height:13px}.signature-panel{width:560px}.signature-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.signature-choice{border:1px solid var(--fine);border-radius:14px;padding:16px 13px 11px;min-width:0}.signature-choice img{width:100%;height:43px;object-fit:contain;display:block;margin-bottom:13px}.signature-choice small{font:8px "Avenir Next",sans-serif;opacity:.6}.signature-choice[aria-pressed=true]{border-color:var(--rim);background:var(--active);box-shadow:inset 0 1px 0 #ffffff30}.signature-note{font-size:10px;line-height:1.8;margin:24px 0 15px;opacity:.7}.signature-position{display:flex;gap:7px}.signature-position button{flex:1;padding:10px 5px;border:1px solid var(--fine);border-radius:14px;font-size:9px}.signature-position button[aria-pressed=true]{border-color:var(--rim);background:var(--active)}.signature-position .paired::after{font-size:8px}.dark .signature-choice img{filter:brightness(0) invert(.9)}
.about-cast{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0 25px;align-items:end}.about-cast figure{margin:0;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:125px}.about-cast img{display:block;object-fit:contain;width:58px;height:50px;margin:0 auto 15px}.about-cast figure:first-child img{height:85px;width:58px;margin-bottom:8px}.about-cast figcaption{font-size:10px}.about-cast figcaption::after{font-size:9px;margin-top:3px}
@media(min-width:761px) and (max-height:700px){}
@media(max-width:760px){}
.workshop-launch{display:flex;align-items:center;gap:10px;width:100%;font-size:11px;padding:15px 2px;margin:0 0 24px;border-bottom:1px solid var(--fine);text-align:left}.workshop-launch .icon{width:15px;height:15px}.workshop-launch .paired::after{font-size:9px}.custom-landscape-note{font-size:10px;line-height:1.8;margin:-8px 0 23px;opacity:.7}
.ambience-reset{display:flex;align-items:center;justify-content:flex-end;gap:8px;width:100%;padding:12px 0 4px;font-size:9px;opacity:.67}.ambience-reset .icon{width:13px;height:13px}.ambience-reset .paired::after{font-size:8px}.ambience-reset:hover{opacity:1}
/* Equal, roomy segments keep the shorter sleep label away from the outer rim. */
.mode-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:350px;max-width:calc(100vw - 52px);gap:3px;padding:5px}
.mode-switch button{width:100%;min-width:0;justify-content:center;padding-left:8px;padding-right:8px;gap:7px}
.mode-switch button>span{min-width:0;text-align:left}.mode-switch .paired::after{white-space:nowrap;letter-spacing:0}
@media(max-width:760px){.mode-switch{width:330px;max-width:calc(100vw - 42px)}.mode-switch button{height:38px;padding-left:7px;padding-right:7px;gap:6px}.mode-switch .paired::after{font-size:8px}}
.scene-shuffle-note{font-size:9px;line-height:1.8;opacity:.6;margin:0 0 16px}.scene-shuffle-note::after{font-size:8px;line-height:1.6;margin-top:2px}

/* All modes occupy the same frame; content length never moves the landscape or actions. */
#app{--mode-top:47%;--mode-height:calc(235px + clamp(113px,12.4vw,179px));--mode-width:min(33vw,410px)}
#app .timer-area,#app .listen-intro,#app .sleep-intro{top:var(--mode-top);height:var(--mode-height);width:var(--mode-width);left:8%;right:auto;transform:translateY(-45%)}
#app[data-position=right] .timer-area,#app[data-position=right] .listen-intro,#app[data-position=right] .sleep-intro{left:auto;right:8%}
#app .timer-actions,#app .sleep-actions{position:absolute;bottom:0;left:0;width:100%;margin-top:0;padding-left:0}
#app .listen-intro #listen-start{position:absolute;left:50%;bottom:0;margin:0;transform:translateX(-50%)}
#app .sleep-actions .info-button{position:absolute;right:0;top:50%;margin-top:-8px}
@media(min-width:761px) and (max-width:1060px){#app{--mode-width:35vw}#app .timer-area,#app .listen-intro,#app .sleep-intro{left:7%}#app[data-position=right] .timer-area,#app[data-position=right] .listen-intro,#app[data-position=right] .sleep-intro{left:auto;right:7%}}
@media(min-width:761px) and (max-height:700px){#app{--mode-top:46%;--mode-height:344px}}
@media(min-width:761px) and (orientation:portrait){#app{--mode-top:33%;--mode-width:min(47vw,440px)}#app .timer-area,#app .listen-intro,#app .sleep-intro,#app[data-position=right] .timer-area,#app[data-position=right] .listen-intro,#app[data-position=right] .sleep-intro{left:50%;right:auto;transform:translate(-50%,-44%)}}
@media(max-width:760px){#app{--mode-top:168px;--mode-width:min(78vw,342px);--mode-height:calc(197px + clamp(100px,30.2vw,146px))}#app .timer-area,#app .listen-intro,#app .sleep-intro,#app[data-position=right] .timer-area,#app[data-position=right] .listen-intro,#app[data-position=right] .sleep-intro{left:50%;right:auto;transform:translateX(-50%)}#app .listen-intro h1{margin-top:34px}}
@media(max-width:760px) and (max-height:700px){#app{--mode-top:145px;--mode-height:calc(170px + clamp(100px,30.2vw,146px))}}
@media(max-width:760px) and (orientation:landscape){#app{--mode-top:93px;--mode-width:40vw;--mode-height:calc(100svh - 188px)}#app .timer-area,#app .listen-intro,#app .sleep-intro,#app[data-position=right] .timer-area,#app[data-position=right] .listen-intro,#app[data-position=right] .sleep-intro{left:27%;right:auto}#app .clock{height:60px;margin-top:9px;margin-bottom:8px;font-size:clamp(45px,9vw,70px)}#app .elapsed-row{margin-top:7px}#app .sleep-intro h1{font-size:23px;margin:4px 0}#app .sleep-remaining{font-size:23px;margin:5px 0}#app .sleep-duration{padding:2px}#app .sleep-eyebrow{display:none}#app .listen-intro h1{font-size:25px;margin:12px 0}}

#app{--mode-action-height:62px}#app .listen-intro #listen-start,#app #sleep-start{height:var(--mode-action-height);min-height:var(--mode-action-height)}
@media(max-width:760px){#app{--mode-action-height:55px}}
/* A quiet but unmistakable phase marker; the painting and layout stay still. */
.phase{padding:2px 8px;border:1px solid transparent;border-radius:999px;height:33px;min-height:33px;box-sizing:border-box;white-space:nowrap}.phase #phase-name{font-size:12px;letter-spacing:.09em}.rest .phase{background:rgba(169,117,64,.13);border-color:rgba(145,99,56,.35);box-shadow:inset 0 1px 0 #ffffff35}.dark.rest .phase{background:rgba(234,201,148,.12);border-color:rgba(234,201,148,.4)}.phase-track,.phase-track span{height:2px}.rest .phase-track{background:rgba(158,109,59,.20)}.rest .phase-track span{height:2px}.phase-sound-settings{padding:10px 0 20px;border-bottom:1px solid var(--fine);margin:0 0 8px}.phase-sound-settings>label{display:block;font-size:10px;line-height:1.5;margin:8px 0}.phase-sound-settings>label::after{font-size:8px}.phase-sound-settings select{width:100%;min-width:0;max-width:100%;font:12px/1.5 "Avenir Next",sans-serif;color:var(--ink);background:var(--glass);border:1px solid var(--rim);border-radius:12px;padding:11px 12px;min-height:44px}.cue-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.cue-picker button{border-radius:12px;padding:7px 15px;font-size:10px;min-width:60px}.cue-picker button span::after{font-size:8px}.phase-sound-settings .cue-volume-row{display:grid;grid-template-columns:105px minmax(0,1fr) 24px;gap:10px;align-items:center;margin-top:15px}.cue-volume-row>span::after{font-size:8px}.cue-volume-row input{width:100%;min-width:0;accent-color:var(--ink)}.cue-volume-row output{font:10px "Avenir Next",sans-serif;text-align:right;opacity:.65}.phase-sound-note{font-size:9px;line-height:1.8;opacity:.62;margin:10px 0 17px}.phase-sound-note::after{font-size:8px;line-height:1.6;margin-top:3px}.countup-settings .phase-sound-settings{display:none}@media(max-width:360px){.phase{padding:2px 6px;gap:6px}.phase #phase-name{font-size:11px}.phase-sound-settings .cue-volume-row{grid-template-columns:85px minmax(0,1fr) 22px;gap:7px}.phase-sound-settings select{font-size:16px}}
@media(max-width:760px){.phase-sound-settings select{font-size:16px}}

.language-setting{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0;border-top:1px solid var(--fine);font-size:10px}.language-setting>span::after{font-size:8px}.language-setting select{color:inherit;background:var(--glass);border:1px solid var(--fine);border-radius:12px;padding:7px 10px;font-size:12px}html[lang=en] .task-button{letter-spacing:0}html[lang=en] .control-copy{font-size:9px}html[lang=en] .mode-switch button{letter-spacing:0}@media(max-width:760px){.language-setting select{font-size:16px}html[lang=en] .mode-switch .paired::after{font-size:7px}}
/* Native painting is edge-to-edge; only interactive content avoids system UI. */
#app.ios{--safe-top:var(--native-safe-top,env(safe-area-inset-top,0px));--safe-bottom:var(--native-safe-bottom,env(safe-area-inset-bottom,0px));--safe-left:var(--native-safe-left,env(safe-area-inset-left,0px));--safe-right:var(--native-safe-right,env(safe-area-inset-right,0px))}
#app.ios .panel{max-height:calc(var(--visible-height,100dvh) - var(--safe-top) - var(--safe-bottom) - 40px)}
#app.ios .panel:not(.task-panel){top:var(--safe-top);bottom:var(--safe-bottom)}
#app.ios .task-panel[open]{top:max(var(--safe-top),var(--visible-top,0px));bottom:auto;margin:max(16px,calc((var(--visible-height,100svh) - var(--safe-top) - 310px)/2)) auto 0;max-height:calc(var(--visible-height,100svh) - var(--safe-top) - 32px)}
@media(max-width:760px){
 #app.ios{--mode-top:calc(168px + var(--safe-top))}
 #app.ios .topbar{top:calc(20px + var(--safe-top))}
 #app.ios .mode-switch{top:calc(100px + var(--safe-top))}
 #app.ios .bottom-bar{bottom:calc(20px + var(--safe-bottom))}
 #app.ios .toast{bottom:calc(110px + var(--safe-bottom))}
 #app.ios #exit-zen{bottom:calc(28px + var(--safe-bottom))}
}
@media(max-width:760px) and (orientation:portrait){#app.ios .scenery img,#app.ios .scenery canvas,#app.ios .scenery video{bottom:calc(99px + var(--safe-bottom))}}
@media(max-width:760px) and (max-height:700px){#app.ios{--mode-top:calc(145px + var(--safe-top))}#app.ios .mode-switch{top:calc(80px + var(--safe-top))}#app.ios .bottom-bar{bottom:calc(17px + var(--safe-bottom))}}

@media(max-width:760px) and (orientation:landscape){#app.ios{--mode-top:calc(93px + var(--safe-top))}#app.ios .mode-switch{top:calc(25px + var(--safe-top))}}

.scene-view-settings{border:0;border-top:1px solid var(--fine);padding:18px 0 16px;margin:0 0 16px;min-width:0}.scene-view-settings legend{font-size:11px;padding:0 10px 0 0}.scene-view-settings legend::after{font-size:8px}.scene-view-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:4px 0 14px}.scene-view-choices button{min-height:49px;padding:8px 4px;border:1px solid var(--fine);border-radius:15px;font-size:10px;line-height:1.5}.scene-view-choices .paired::after{font-size:8px}.scene-view-choices button[aria-pressed=true]{border-color:var(--rim);background:var(--active);box-shadow:inset 0 1px 0 #ffffff30}.scene-view-duration{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px}.scene-view-duration .paired::after{font-size:8px}.scene-view-duration select{color:inherit;background:var(--glass);border:1px solid var(--fine);border-radius:12px;padding:7px 12px;font:12px "Avenir Next",sans-serif}.scene-view-settings p{font-size:9px;line-height:1.7;opacity:.6;margin:13px 0 0}.scene-view-settings p::after{font-size:8px}@media(max-width:760px){.scene-view-duration select{font-size:16px}.scene-view-choices button{font-size:9px}}

.scene-view-duration+.scene-view-duration{margin-top:8px}.scene-view-duration select{max-width:62%}#journey-haze{position:absolute;inset:-28px;z-index:0;filter:blur(24px);opacity:.72;pointer-events:none}#journey-haze>i{position:absolute;inset:0;background-size:cover;background-position:center;display:block}.scenery.journey-active::before{opacity:0!important}

@media(min-width:761px) and (orientation:landscape){.scenery.journey-active canvas{object-fit:cover}}

/* A completed session settles into the same quiet glass as its landscape. */
/* Center without transform: the shared :active scale must never replace a centering translation and move the pointer target. */
.timer-finish{position:absolute;top:calc(100% + 17px);left:0;right:0;width:max-content;max-width:100%;margin:0 auto;min-height:44px;display:flex;align-items:center;gap:7px;padding:8px 13px;border:1px solid var(--fine);border-radius:999px;font-size:9px;white-space:nowrap;background:var(--glass);backdrop-filter:blur(14px)}.timer-finish .icon{width:12px;height:12px}.timer-finish .paired::after{font-size:7px;margin-top:1px}
.finish-panel{width:460px;text-align:center;padding:34px 38px 28px;overflow:auto}.finish-panel form{position:relative}.finish-later{display:block;margin:0 0 3px auto;padding:8px;font-size:10px;opacity:.65}.finish-later .paired::after{font-size:8px}.finish-ripple{height:79px;margin:0 auto 11px;opacity:.55}.finish-ripple svg{height:100%;width:135px;fill:none;stroke:currentColor;stroke-width:.7}.finish-ripple ellipse{transform-origin:60px 35px;animation:finish-settle 1.9s ease-out both}.finish-ripple ellipse:nth-child(2){animation-delay:.15s;opacity:.5}.finish-ripple path{stroke-width:1.3;opacity:0;transition:opacity .8s}.finish-panel.is-saved .finish-ripple path{opacity:1}.finish-eyebrow{font-size:9px;letter-spacing:.12em;opacity:.55;margin:0 0 16px}.finish-eyebrow::after{font-size:8px;margin-top:5px}.finish-panel h2{font-size:23px;line-height:1.65;margin:0;outline:none}.finish-panel h2::after{font-size:10px;letter-spacing:.02em;margin-top:6px}.finish-time{font:42px/1.3 Baskerville,serif;white-space:nowrap;margin:27px 0 4px}.finish-time::after{font:10px/1.5 "Avenir Next",sans-serif;margin-top:5px}.finish-time-note{font-size:9px;opacity:.55;margin:9px 0 25px}.finish-time-note::after{font-size:8px;margin-top:3px}.finish-field{display:block;text-align:left;border-top:1px solid var(--fine);padding-top:20px}.finish-field>span{display:block;font-size:10px;opacity:.7}.finish-field>span::after{font-size:8px}.finish-field input{width:100%;min-width:0;border:0;border-bottom:1px solid var(--fine);background:transparent;color:inherit;border-radius:0;font-size:16px;padding:14px 0 12px;margin-bottom:23px}.finish-field input::placeholder{opacity:.45;font-size:12px}.finish-field input:disabled{opacity:.8;-webkit-text-fill-color:currentColor}.finish-panel .apply-button{width:100%;justify-content:center;gap:17px;border-radius:19px;min-height:53px}.finish-footnote{font-size:8px;line-height:1.8;opacity:.55;margin:18px 0 0}.finish-footnote::after{font-size:8px}.finish-error{font-size:11px;line-height:1.8;text-align:left}.finish-panel.is-saved{transition:box-shadow 1s;box-shadow:inset 0 1px 0 #ffffff95,0 16px 80px #243c3b25}.finish-panel.is-saved .finish-ripple svg{opacity:.85}
.break-music-settings{border:0;border-top:1px solid var(--fine);margin:10px 0 22px;padding:19px 0 0;min-width:0}.break-music-settings legend{font-size:11px;padding-right:10px}.break-music-settings legend::after{font-size:8px}.break-music-settings select{width:100%;min-width:0;max-width:100%;font:12px/1.5 "Avenir Next",sans-serif;color:var(--ink);background:var(--glass);border:1px solid var(--rim);border-radius:12px;padding:11px 12px;min-height:44px}.countup-settings .break-music-settings{display:none}.study-link{display:flex;align-items:center;justify-content:space-between;gap:12px;color:inherit;text-decoration:none;border:1px solid var(--fine);border-radius:12px;padding:12px 13px;font-size:10px;margin:14px 0}.study-link .paired::after{font-size:8px}.study-link .icon{width:14px;height:14px}
@keyframes finish-settle{from{opacity:0;transform:scale(.75)}to{opacity:1;transform:scale(1)}}
/* Quiet secondary choice beneath the main glass action: reachable, never competing with it. */
.finish-resume{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:44px;margin:10px 0 0;padding:8px 12px;border:0;border-radius:14px;background:transparent;color:inherit;font-size:11px;opacity:.78}.finish-resume .icon{width:13px;height:13px}.finish-resume .paired::after{font-size:8px;margin-top:2px}
.finish-extension { margin: 15px 0 0; text-align: left; }
.finish-extension label { display: block; font-size: 11px; margin: 0 0 6px; }
.finish-extension label::after { font-size: 9px; }
.finish-extension-actions { display: flex; gap: 8px; align-items: stretch; }
.finish-extension-actions select, .finish-extension-actions button { min-height: 44px; border: 1px solid var(--fine); border-radius: 14px; }
.finish-extension-actions select { min-width: 64px; background: var(--glass); color: inherit; font: inherit; padding: 0 9px; }
.finish-extension-actions button { flex: 1; padding: 6px 10px; font-size: 11px; white-space: normal; }
.finish-extension-actions select:focus-visible { outline: 1.5px solid currentColor; outline-offset: 3px; }
.gap-panel{width:420px}.gap-panel h2{font-size:19px;word-break:keep-all;line-break:strict}
@media(max-width:760px){.finish-panel{padding:23px 27px 25px}.finish-ripple{height:59px}.finish-panel h2{font-size:21px}.finish-time{font-size:37px;margin-top:21px}.finish-field{padding-top:16px}.break-music-settings select{font-size:16px}.timer-finish{top:calc(100% + 12px)}}
@media(prefers-reduced-motion:reduce){.finish-ripple ellipse{animation:none}.finish-ripple path,.finish-panel.is-saved{transition:none}}
[hidden]{display:none!important}

.scene-capability{display:inline-block;font-size:8px;opacity:.64;margin-top:7px;border:1px solid var(--fine);border-radius:8px;padding:4px 7px}.scene-capability::after{font-size:7px;margin-top:1px}.scene-study-links{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}.scene-study-links .study-link{margin:0;font-size:9px;min-width:0}.scene-study-links .paired::after{font-size:7px}@media(max-width:380px){.scene-study-links{grid-template-columns:1fr}}

/* Keep the ink inside its existing clock slot. An anonymous grid row could
   retain a larger responsive line-height than this fixed-height slot, pushing
   Didot's baseline onto the progress track. The frame/actions stay fixed. */
#app .clock{display:flex;align-items:center;justify-content:center;line-height:1;padding-bottom:.16em}
@media(max-width:760px) and (orientation:landscape){#app .clock{padding-bottom:.04em}}

/* Quiet main screen (plan 5, approved 2026-11-17): fewer always-on words and controls.
   Anchors stay: hidden items keep their space. Everything stays reachable. */
#phase-name::after,#task-caption::after{display:none}
#round-label{order:1}#round-label::before{content:"· ";opacity:.6}.timer-top .task-button{order:2;margin-left:auto}
#app[data-timer-state="idle"] .elapsed-row,#app[data-timer-state="idle"] .stage-progress,#app[data-timer-state="idle"] .secondary-control{visibility:hidden}
#app[data-timer-state="running"] #elapsed,#app[data-timer-state="running"] .stage-progress,#app[data-timer-state="running"] #timer-reset{visibility:hidden}
/* Dock: scene, music, ambience, hide. Music volume lives in the ambience panel; next track in the list and OS media controls. */
.bottom-bar .volume,.bottom-bar #music-next,.bottom-bar .player+.dock-divider{display:none}
/* Backup & restore lives in the time settings dialog, not on the main screen. */
.data-tools{border-top:1px solid var(--fine);margin:18px 0 6px;padding-top:17px}.data-tools h3{font-size:11px;font-weight:400;margin:0 0 4px}.data-tools h3::after{font-size:8px}.data-buttons{display:flex;gap:10px;margin-top:10px}.data-buttons button{flex:1;min-height:44px;border-radius:12px;font-size:11px;padding:8px 10px}.data-buttons .paired::after{font-size:8px}
.restore-panel{width:430px}.restore-panel h2{font-size:19px;word-break:keep-all;line-break:strict}.restore-summary{font-size:12px;line-height:2;margin:20px 0 4px;white-space:pre-line}.restore-settings{margin:4px 0 14px;text-align:left}
/* iPhone landscape (approved 2026-11-17): any width, short height. The whole painting is
   visible; header, tabs, one frame for all three modes and the dock stay on screen and clear
   of the notch side. iPad and Mac are taller than 500px and are unaffected. */
@media (orientation:landscape) and (max-height:500px){
 #app,#app.ios{min-height:0;--land-l:max(22px,var(--safe-left,0px));--land-r:max(22px,var(--safe-right,0px));--mode-top:calc(70px + var(--safe-top,0px));--mode-height:calc(100svh - 162px - var(--safe-top,0px) - var(--safe-bottom,0px));--mode-width:min(40vw,330px);--mode-action-height:48px}
 #app .timer-area,#app .listen-intro,#app .sleep-intro{transform:none;left:calc(var(--land-l) + 2vw);right:auto}
 #app[data-position=right] .timer-area,#app[data-position=right] .listen-intro,#app[data-position=right] .sleep-intro{transform:none;left:auto;right:calc(var(--land-r) + 2vw)}
 #app .topbar{top:calc(12px + var(--safe-top,0px));height:48px;padding:0 var(--land-r) 0 var(--land-l)}
 #app .brand-name{font-size:26px}#app .brand-by{font-size:7px}
 #app .mode-switch,#app.ios .mode-switch{top:calc(12px + var(--safe-top,0px))}
 #app .mode-switch button{height:36px;padding:0 14px}
 #app .top-actions .icon-button{width:36px;height:36px}
 #app .clock{font-size:clamp(50px,8vw,68px);height:auto;line-height:1;margin:4px 0 6px;padding-bottom:.04em}
 #app .timer-top{min-height:28px}
 #app .stage-progress{display:none}
 #app .elapsed-row{margin-top:5px}
 #app .timer-actions #timer-start{min-height:var(--mode-action-height);height:var(--mode-action-height);padding:7px 14px}
 #app .timer-actions .secondary-control{width:34px;height:34px}
 #app{--slot:34px}
 #app .bottom-bar,#app.ios .bottom-bar{bottom:calc(10px + var(--safe-bottom,0px))}
 #app .listen-intro h1{font-size:26px;margin:10px 0}
 #app .sleep-intro h1{font-size:24px;margin:4px 0}#app .sleep-remaining{font-size:24px;margin:4px 0}#app .sleep-eyebrow{display:none}
}
@media (orientation:landscape) and (max-height:500px) and (min-width:761px){#app .bottom-bar{left:auto;right:var(--land-r);transform:none}#app .mode-switch,#app.ios .mode-switch{top:0}}
@media (orientation:landscape) and (max-height:500px) and (max-width:760px){#app .bottom-bar{left:var(--land-l);right:var(--land-r)}}
/* Paused (approved 2026-11-17): "finish and save" takes the skip slot as a round glass
   control, so reset · resume · finish sit in one row instead of a pill hanging below. */
#app[data-timer-state="paused"] #timer-skip{display:none}
#app[data-timer-state="paused"] .timer-actions .timer-finish{position:relative;top:auto;left:auto;transform:none;margin:0;width:var(--slot,40px);height:var(--slot,40px);min-height:0;padding:0;border-radius:50%;display:grid;place-items:center;background:var(--glass);border:1px solid var(--rim);box-shadow:inset 0 1px 0 #ffffff70}
#app[data-timer-state="paused"] .timer-actions .timer-finish .icon{width:15px;height:15px;margin:0}
#app[data-timer-state="paused"] .timer-actions .timer-finish>span{position:absolute;top:calc(100% + 5px);left:50%;transform:translateX(-50%);font-size:9px;line-height:1.3;white-space:nowrap;opacity:.78;letter-spacing:.02em}
#app[data-timer-state="paused"] .timer-actions .timer-finish>span::after{display:none}
@media(max-width:760px){#app{--slot:34px}}
/* iOS app, portrait iPhone (fixed 2026-11-17 after the owner's device screenshot): the native
   status-bar and home-indicator insets pushed the timer frame down and the painting band up until
   the main action sat on the painting. Tighter tabs/clock keep the action above the band; on short
   phones (SE) the band moves down instead and the dock rests on its ground. Browser layout unchanged. */
@media(max-width:760px) and (orientation:portrait){
 #app.ios{--ios-clock:clamp(88px,26vw,128px);--mode-top:calc(150px + var(--safe-top));--mode-height:calc(166px + var(--ios-clock))}
 #app.ios .mode-switch{top:calc(88px + var(--safe-top))}
 #app.ios .clock{height:var(--ios-clock);margin-top:12px;margin-bottom:12px}
 /* Only the classic digits fill the slot; the other faces keep their own sizes. */
 #app.ios[data-timer-style=classic] .clock{font-size:calc(var(--ios-clock) * .9)}
 #app.ios .scenery img,#app.ios .scenery canvas,#app.ios .scenery video{bottom:clamp(0px,calc(100% - var(--mode-top) - var(--mode-height) - 18px - 56.25vw),calc(99px + var(--safe-bottom)))}
}
/* Clock faces (owner choice 2026-11-18). "Digits" is unchanged. Ring and small clock are replaced by
   three faces that belong to the scenery:
   - arc   a dome over the progress line (the horizon); a small sun crosses it as the phase passes
   - quiet small digits between two hairlines, for when the painting should lead
   - glass the app icon's hourglass in clear glass; its sand falls with the phase
   --phase (0..1) and --clock-gap (clock bottom to progress line) are set by app.js. */
#app{--arc-size:clamp(50px,5.2vw,82px);--arc-pad:clamp(26px,2.6vw,38px);--quiet-size:clamp(44px,3.9vw,60px);--glass-size:clamp(52px,5.2vw,82px);--glass-h:clamp(98px,10.6vw,152px);--sand:rgba(255,255,255,.5)}
@media(max-width:760px){#app{--arc-size:50px;--arc-pad:9%;--quiet-size:44px;--glass-size:52px;--glass-h:clamp(84px,25vw,118px)}}
@media(max-width:760px) and (orientation:portrait){#app.ios{--glass-h:calc(var(--ios-clock) * .92)}}
@media(orientation:landscape) and (max-height:500px){#app,#app.ios{--arc-size:30px;--arc-pad:16px;--quiet-size:34px;--glass-size:36px;--glass-h:52px}
 /* Short landscape phones size the clock box to its text; these faces keep the classic box so nothing shifts. */
 #app[data-timer-style=arc] .clock,#app[data-timer-style=quiet] .clock,#app[data-timer-style=glass] .clock{min-height:clamp(54px,8.4vw,72px)}}
#app[data-timer-style=arc] .clock{font-size:var(--arc-size);letter-spacing:-.01em;padding:var(--arc-pad) 0 .1em}
#app[data-timer-style=arc] .clock[data-long=true]{font-size:calc(var(--arc-size) * .82)}
#app[data-timer-style=arc] .clock::before{content:"";position:absolute;left:7%;right:7%;top:0;height:calc(200% + 2 * var(--clock-gap,13px));border:1px solid var(--ink);opacity:.34;border-radius:50%;clip-path:inset(0 0 50% 0);pointer-events:none}
#app[data-timer-style=arc] .clock::after{content:"";position:absolute;width:9px;height:9px;border-radius:50%;background:var(--ink);opacity:.8;box-shadow:0 0 0 5px rgba(255,255,255,.2);pointer-events:none;left:calc(50% - 4.5px + 43% * cos(calc((1 - var(--phase,0)) * 180deg)));top:calc(100% + var(--clock-gap,13px) - 4.5px - (100% + var(--clock-gap,13px)) * sin(calc(var(--phase,0) * 180deg)))}
#app[data-timer-style=quiet] .clock{font-size:var(--quiet-size);letter-spacing:.05em;gap:20px}
#app[data-timer-style=quiet] .clock[data-long=true]{letter-spacing:.02em;gap:12px}
#app[data-timer-style=quiet] .clock::before,#app[data-timer-style=quiet] .clock::after{content:"";flex:1;min-width:8px;height:1px;background:linear-gradient(90deg,transparent,var(--ink));opacity:.3}
#app[data-timer-style=quiet] .clock::after{background:linear-gradient(270deg,transparent,var(--ink))}
#app[data-timer-style=glass] .clock{font-size:var(--glass-size);letter-spacing:-.02em}
#app[data-timer-style=glass] .clock[data-long=true]{font-size:calc(var(--glass-size) * .78)}
#app[data-timer-style=glass] .clock::before,#app[data-timer-style=glass] .clock::after{content:"";flex:none;height:var(--glass-h);width:calc(var(--glass-h) * .7424);pointer-events:none}
#app[data-timer-style=glass] .clock::before{margin-right:.36em;background:url(assets/hourglass-clear.png) center/contain no-repeat;filter:drop-shadow(0 1px 1px rgba(40,56,60,.3)) drop-shadow(0 7px 16px rgba(40,56,60,.16))}
/* The sand: the upper bulb empties from its top, the lower one fills from its floor. */
#app[data-timer-style=glass] .clock::after{order:-1;margin-right:calc(var(--glass-h) * -.7424);-webkit-mask:url(assets/hourglass-mask.png) center/contain no-repeat;mask:url(assets/hourglass-mask.png) center/contain no-repeat;background:linear-gradient(to bottom,transparent calc(4% + var(--phase,0) * 45%),var(--sand) calc(5.5% + var(--phase,0) * 45%),var(--sand) 49.5%,transparent 50.5%,transparent calc(95% - var(--phase,0) * 44%),var(--sand) calc(96.5% - var(--phase,0) * 44%))}
#app.dark[data-timer-style=glass] .clock::before{filter:drop-shadow(0 0 12px rgba(190,200,255,.22))}
/* Their small previews in Settings */
.timer-style-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.timer-style-options legend{grid-column:1/-1}
.timer-style-options label{padding:11px 3px 9px}
.preview-arc{font-size:13px;padding-top:15px}.preview-arc::before{content:"";position:absolute;left:14%;right:14%;top:5px;height:200%;border:1px solid var(--ink);opacity:.36;border-radius:50%;clip-path:inset(0 0 52% 0)}
.preview-arc::after{content:"";position:absolute;width:5px;height:5px;border-radius:50%;background:var(--ink);opacity:.75;left:26%;top:10px}
.preview-quiet{font-size:14px;letter-spacing:.05em;display:flex;align-items:center;justify-content:center;gap:5px}.preview-quiet::before,.preview-quiet::after{content:"";flex:1;height:1px;background:var(--ink);opacity:.26}
.preview-glass{font-size:13px;display:flex;align-items:center;justify-content:center;gap:5px}.preview-glass::before{content:"";height:36px;width:27px;background:url(assets/hourglass-clear.png) center/contain no-repeat;filter:drop-shadow(0 1px 1px rgba(40,56,60,.32))}
/* "Moment saved" card (owner choice 2026-11-18): instead of a check mark, a small glass window onto
   the scenery this moment was spent in. It rests a little dim while the card asks and clears when
   the moment is saved. "Later" sits in the corner, so the window does not jump on save. */
.finish-ripple.finish-window{height:76px;margin:2px auto 15px;opacity:1}
.finish-window img{display:block;height:100%;aspect-ratio:16/10;object-fit:cover;margin:0 auto;border-radius:19px;border:1px solid var(--rim);box-shadow:inset 0 1px 0 #ffffff80,0 8px 20px rgba(40,56,60,.16);opacity:.8;filter:saturate(.88);animation:finish-settle 1.6s ease-out both;transition:opacity 1.1s ease,filter 1.1s ease}
.finish-panel.is-saved .finish-window img{opacity:1;filter:none}
.finish-panel .finish-later{position:absolute;top:-6px;right:-8px;margin:0;z-index:1}
@media(max-width:760px){.finish-ripple.finish-window{height:66px;margin:0 auto 12px}.finish-window img{border-radius:17px}}
@media(max-width:760px) and (max-height:700px){.finish-ripple.finish-window{height:54px;margin-bottom:6px}.finish-window img{border-radius:14px}}
@media(prefers-reduced-motion:reduce){.finish-window img{animation:none;transition:none}}
/* Settings (2026-11-18, approved from a before/after mock): one "Settings" sheet in four groups —
   timer, sound, display, data — instead of language and backup living under a heading that said "Time". */
.settings-group{font:400 12px/1.5 "Hiragino Sans","Avenir Next",sans-serif;letter-spacing:.09em;margin:26px 0 16px;padding-top:20px;border-top:1px solid var(--fine)}
.settings-group::after{font-size:9px;letter-spacing:.03em}.settings-group-first{margin-top:2px;padding-top:0;border-top:0}
.display-options{margin-bottom:6px}.settings-group+.language-setting{border-top:0;padding-top:0}
.settings-panel .setting-options{border-top:0;margin-top:0;padding-top:0}
/* English typesetting (2026-11-17): the Mincho face and wide tracking of the headings are set for
   Japanese. In English they spread the letters apart ("G o o d  n i g h t"); the same headings use
   the wordmark's Baskerville at normal tracking instead. Japanese is unchanged. */
html[lang="en"] .panel h2,html[lang="en"] .sleep-intro h1,html[lang="en"] .scene-detail h3,html[lang="en"] .about-story h3{font-family:"Baskerville","Hiragino Mincho ProN","Yu Mincho",serif;letter-spacing:.015em}
html[lang="en"] .panel:not(.finish-panel) h2{font-size:23px}html[lang="en"] .scene-detail h3{font-size:19px}html[lang="en"] .about-intro{font-family:"Baskerville","Hiragino Mincho ProN",serif;font-size:17px;line-height:1.8;letter-spacing:.01em}
/* Count-up has no rounds: "1 / 4" beside it meant nothing. */
.counting-up #round-label{display:none}
/* "Focus · 1 / 4" reads as one phrase: without the break pill's border the gap looked like two items. */
#app:not(.rest) #round-label{margin-left:-7px}
/* The finished poster under the canvas carries its exported Lepoa / Node Field marks. In the
   masked portrait band the canvas is partly transparent at its edges, so the poster's baked
   "Lepoa" showed through at the upper left (clearly on iPad portrait). Once the live canvas is
   ready the poster is hidden; while loading or after a render failure it remains the fallback. */
.scenery:has(#scene-canvas[data-ready="true"]) #background{visibility:hidden}
/* The shorter iOS frame above also holds the sleep tab: without this its remaining time sat
   under the start button on every iPhone (found 2026-11-17 with native-like insets). */
@media(max-width:760px) and (orientation:portrait){
 #app.ios .sleep-intro h1{font-size:26px;margin:7px 0 2px}
 #app.ios .sleep-duration{padding:4px 8px}
 #app.ios .sleep-remaining{font-size:26px;margin:7px 0 0}
}
@media(max-width:760px) and (max-height:600px){.sleep-intro h1{margin:7px 0 4px}.sleep-remaining{margin:5px 0 0}.sleep-duration{padding:5px 8px}}
/* Scenery dialog (2026-11-17): the current scene and how it is shown on top, the paintings below,
   adding your own as the last tile. No capability badges, no study links. */
.scenery-panel .panel-heading .scene-shuffle{margin-left:auto}.scenery-panel .panel-heading h2{flex:0 1 auto}
.scene-detail{border-bottom:1px solid var(--fine);padding:2px 0 16px;margin:0 0 16px}
.scene-detail h3{font:400 17px/1.4 "Hiragino Mincho ProN","Yu Mincho",serif;letter-spacing:.04em;margin:0 0 10px}.scene-detail h3::after{font:9px/1.5 "Avenir Next",sans-serif;letter-spacing:.02em;margin-top:2px;opacity:.6}
.scene-detail-label{font-size:10px;opacity:.65;margin:0 0 7px}.scene-detail-label::after{font-size:8px}
.scene-view-settings{border:0;padding:0;margin:0}.scene-view-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.scene-view-choices button{min-height:46px;border-radius:12px;font-size:11px;padding:6px 4px}.scene-view-choices .paired::after{font-size:8px}
.scene-view-note{font-size:10px;line-height:1.8;opacity:.75;margin:9px 0 4px;min-height:18px}.scene-view-note::after{font-size:8px;line-height:1.5}
.scene-view-options{display:grid;gap:8px;margin:8px 0 2px}.scene-view-options .scene-view-duration select{min-width:150px}
.scene-detail .scene-characters{margin:10px 0 0;padding:0 2px;border-bottom:0}
.scene-add{display:grid;place-items:center;align-content:center;gap:8px;min-height:120px;border:1px dashed var(--rim);border-radius:16px;background:transparent;color:inherit;font-size:11px}.scene-add .scene-add-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1px solid var(--rim)}.scene-add .icon{width:15px;height:15px}.scene-add strong{font-weight:400}.scene-add strong::after{font-size:8px;opacity:.6;display:block}
.scene-shuffle-start{margin-top:16px;border-top:1px solid var(--fine);padding-top:14px}
@media(min-width:900px){.scenery-panel{width:720px}}
/* Undo for "next" pressed by mistake: a quiet bar with one action. */
.undo-bar{display:flex;align-items:center;gap:14px;pointer-events:auto;z-index:12;padding:8px 8px 8px 18px;opacity:0;transition:opacity .25s}.undo-bar.visible{opacity:1}.undo-bar #undo-text::after{font-size:8px}
.undo-bar button{min-height:36px;padding:6px 14px;border-radius:12px;border:1px solid var(--rim);background:var(--glass);color:inherit;font-size:11px}.undo-bar button .paired::after{font-size:8px}
/* Glass dial (2026-11-18, owner request: "a timer that is beautiful just sitting on the desktop").
   A clear-glass disc over the painting. The ring is the time left in this phase, tinted by phase:
   cool water-glass for focus, warm amber for the break. The phase, round and "paused" are written
   inside the disc. Clicking the disc starts and pauses. The other faces are unchanged. */
@property --dial-tint{syntax:'<color>';inherits:true;initial-value:rgba(66,128,134,.86)}
#app{--dial:min(var(--mode-width),calc(var(--mode-height) - 172px),320px);--dial-tint:rgba(66,128,134,.86);--dial-wash:rgba(150,205,210,.16);transition:--dial-tint 1.6s ease}
#app.rest{--dial-tint:rgba(184,122,52,.9);--dial-wash:rgba(240,190,120,.2)}
#app[data-phase=done]{--dial-tint:rgba(98,128,92,.85);--dial-wash:rgba(190,220,170,.18)}
#app.dark{--dial-tint:rgba(160,214,218,.88);--dial-wash:rgba(120,180,190,.12)}
#app.dark.rest{--dial-tint:rgba(244,196,132,.9);--dial-wash:rgba(240,190,120,.12)}
#app[data-timer-style=dial] .phase,#app[data-timer-style=dial] #round-label,#app[data-timer-style=dial] .phase-track,#app[data-timer-style=dial] .elapsed-row,#app[data-timer-style=dial] .stage-progress{display:none}
#app[data-timer-style=dial] .timer-top{justify-content:center;min-height:28px}
#app[data-timer-style=dial] .timer-top .task-button{margin:0 auto;max-width:80%}
#app[data-timer-style=dial] .clock{position:relative;width:var(--dial);height:var(--dial);margin:16px auto 0;border-radius:50%;cursor:pointer;
 font-size:calc(var(--dial) * .25);letter-spacing:.01em;padding:calc(var(--dial) * .06) 0 0;
 background:radial-gradient(circle at 34% 26%,rgba(255,255,255,.42),rgba(255,255,255,.12) 38%,transparent 62%),radial-gradient(circle at 50% 60%,var(--dial-wash),transparent 72%),var(--dial-day-colors,none),rgba(255,255,252,.07);
 -webkit-backdrop-filter:blur(7px) saturate(1.18);backdrop-filter:blur(7px) saturate(1.18);
 border:1px solid rgba(255,255,250,.6);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.8),inset 0 -14px 30px rgba(255,255,255,.07),inset 0 0 0 1px rgba(255,255,255,.08),0 22px 46px rgba(38,50,54,.16),0 2px 6px rgba(38,50,54,.08);
 transition:transform .5s cubic-bezier(.2,.8,.2,1),box-shadow .5s ease}
#app[data-timer-style=dial] .clock[data-long=true]{font-size:calc(var(--dial) * .19)}
#app[data-timer-style=dial] .clock:hover{transform:scale(1.012)}
#app[data-timer-style=dial] .clock:active{transform:scale(.992)}
/* Ring: the part still to come is tinted; the part already spent is clear glass. */
#app[data-timer-style=dial] .clock::before{content:"";position:absolute;inset:calc(var(--dial) * .035);border-radius:50%;pointer-events:none;
 background:conic-gradient(rgba(255,255,255,.26) 0 calc(var(--phase,0) * 360deg),var(--dial-tint) 0);
 -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4.5px));mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4.5px));
 filter:drop-shadow(0 0 6px var(--dial-wash));transition:opacity .6s ease}
/* Phase, round, or "paused", written inside the glass above the digits. */
#app[data-timer-style=dial] .clock::after{content:attr(data-label);position:absolute;left:0;right:0;top:25%;text-align:center;pointer-events:none;white-space:pre;
 font:500 calc(max(11px,var(--dial) * .045))/1 "Hiragino Sans","Avenir Next",sans-serif;letter-spacing:.22em;color:var(--dial-tint);text-indent:.22em;transition:color 1.6s ease}
#app[data-timer-style=dial][data-timer-state=idle] .clock::before{opacity:.8}
#app[data-timer-style=dial][data-timer-state=paused] .clock{color:color-mix(in srgb,var(--ink) 62%,transparent)}
#app[data-timer-style=dial][data-timer-state=paused] .clock::before{animation:dial-breathe 3.2s ease-in-out infinite}
#app[data-timer-style=dial][data-timer-state=paused] .clock::after{color:var(--ink);opacity:.7}
@keyframes dial-breathe{0%,100%{opacity:.75}50%{opacity:.28}}
@media(prefers-reduced-motion:reduce){#app[data-timer-style=dial][data-timer-state=paused] .clock::before{animation:none;opacity:.45}#app{transition:none}}
@media(prefers-reduced-transparency:reduce){#app[data-timer-style=dial] .clock{background:var(--glass);-webkit-backdrop-filter:none;backdrop-filter:none}}
#app.dark[data-timer-style=dial] .clock{border-color:rgba(220,235,255,.28);background:radial-gradient(circle at 34% 26%,rgba(255,255,255,.16),rgba(255,255,255,.04) 40%,transparent 62%),radial-gradient(circle at 50% 60%,var(--dial-wash),transparent 72%),var(--dial-day-colors,none),rgba(20,30,40,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 22px 46px rgba(0,0,0,.25)}
/* The disc sits a little above the buttons, which keep their own row. */
#app[data-timer-style=dial] .timer-actions{gap:26px}
/* Focus display (F): only the disc, a little larger, in the same place. */
#app.zen[data-timer-style=dial]{--dial:min(calc(var(--mode-height) - 60px),380px)}
#app.zen[data-timer-style=dial] .timer-actions,#app.zen[data-timer-style=dial] .timer-top{opacity:0;transition:opacity .4s}
#app.zen[data-timer-style=dial] .timer-area:hover .timer-actions,#app.zen[data-timer-style=dial] .timer-area:hover .timer-top{opacity:1}
#zen-music{display:none;position:absolute;right:86px;bottom:30px;width:39px;height:39px;opacity:.55}
#app.zen[data-timer-style=dial]:not(.listening,.sleeping) #zen-music{display:grid}
#zen-music:is(:hover,:focus-visible){opacity:1}
@media(max-width:760px){#zen-music{bottom:28px;right:75px}}
.rhythm-timer-line{font:13px/1.5 Baskerville,"Yu Mincho",serif;text-align:center;margin:8px 0 0}
@media(min-height:501px),(orientation:portrait){
 #app[data-timer-style=dial][data-rhythm-finished=true] .rhythm-timer-line{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
}
/* Short landscape phones keep the plain digits: there is no room for a disc. */
@media(orientation:landscape) and (max-height:500px){#app[data-timer-style=dial] .clock{width:auto;height:auto;min-height:clamp(54px,8.4vw,72px);border-radius:0;background:none;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;padding:0;font-size:clamp(50px,8vw,68px)}#app[data-timer-style=dial] .clock::before{display:none}#app[data-timer-style=dial] .clock::after{position:static;display:none}#app[data-timer-style=dial] .phase{display:flex}#app[data-timer-style=dial] .phase-track{display:block}}
/* Settings preview */
.timer-style-options{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:760px){.timer-style-options{grid-template-columns:repeat(3,minmax(0,1fr))}}
.preview-dial{font-size:11px;display:grid;place-items:center;margin:0 auto;width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,250,.7);background:radial-gradient(circle at 34% 26%,rgba(255,255,255,.5),transparent 60%),rgba(255,255,255,.08);box-shadow:inset 0 0 0 3px rgba(66,128,134,.7),0 4px 10px rgba(38,50,54,.12)}
@media(max-width:760px) and (orientation:portrait){#app{--dial:min(60vw,calc(var(--mode-height) - 118px),250px)}#app[data-timer-style=dial] .clock{margin-top:10px}}
