*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:system-ui,"PingFang TC","Microsoft JhengHei",sans-serif;background:#10282e;color:#f2f4ec}body{--accent:#acd6ae;min-height:100dvh;background:radial-gradient(ellipse at 50% 12%,#204c50,#0b222a 68%)}[hidden]{display:none!important}button,a,select,input{font:inherit;border:1px solid #6e938c;color:#f2f4ec;background:#203d43;border-radius:12px;padding:10px 15px}button,a{cursor:pointer;font-weight:650;text-decoration:none}button:hover:not(:disabled),a:hover{background:#315a5a}button:disabled{opacity:.38}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #e6d59c;outline-offset:3px}.primary{background:#4e876a;border-color:#b3dfb2;min-width:125px}.spacer{flex:1}header{display:flex;gap:14px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #a8c4a43d;padding:14px clamp(12px,3vw,40px);background:#10272e}h1{margin:0;color:#ecdfa9;font-size:clamp(22px,2.4vw,34px);letter-spacing:.07em}header p{margin:3px 0 0;font-size:13px;color:#b6d0c6}main{max-width:1600px;margin:auto;padding:12px clamp(12px,2.5vw,38px);display:flex;flex-direction:column;gap:12px}.toolbar,.quick{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}.quick button{padding:6px 10px;font-size:13px}.toolbar label,.quick span{font-size:14px;color:#c2d6cd}#visual{--fraction:1;--fill:100%;--elapsed:0%;position:relative;min-height:clamp(350px,60vh,660px);border:1px solid #698e80;border-radius:26px;display:grid;grid-template-columns:1fr 1fr;align-items:center;justify-items:center;padding:30px clamp(16px,4vw,65px);overflow:hidden;background:radial-gradient(ellipse at 28% 50%,#2d615455,transparent 55%),linear-gradient(140deg,#183a43,#10292d);gap:16px}.task{position:absolute;top:22px;left:0;right:0;text-align:center}.task h2{margin:7px 0;font-size:clamp(24px,3vw,42px);font-weight:650}.task div{font-size:14px;color:#c6dad2}.art{position:relative;width:min(100%,440px,43vh);aspect-ratio:1;margin-top:80px;display:grid;place-items:center}.readout{text-align:center;min-width:0;margin-top:75px;width:100%}#time{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-weight:650;letter-spacing:-.06em;font-size:clamp(34px,7vw,104px);font-variant-numeric:tabular-nums;line-height:1.1}#progress{font-size:clamp(14px,1.7vw,24px);color:#b7cfc1;margin:15px 0}#status{font-size:clamp(18px,2.3vw,32px);font-weight:650;color:var(--accent)}.ending #status{color:#e9d9a5}.art>div{display:none}body[data-theme=disk] .disk{display:grid}body[data-theme=sand] .hourglass,body[data-theme=water] .water,body[data-theme=tea] .tea{display:block}.disk{width:100%;height:100%;border-radius:50%;background:conic-gradient(var(--accent) calc(var(--fraction)*1turn),#29454b 0);border:7px solid #8da69b;box-shadow:0 0 0 9px #102c32,0 15px 48px #0004;place-items:center}.disk i{width:15%;height:15%;border-radius:50%;background:#18383d;border:2px solid #a5c4b0}.untargeted .disk{background:#28494d}.hourglass{height:95%;width:70%;position:relative;border-top:15px solid #d7bb84;border-bottom:15px solid #d7bb84;border-radius:8px}.glass{position:absolute;width:94%;height:50%;left:3%;background:linear-gradient(90deg,#b9e4e744,#cceef014,#d9faff70);overflow:hidden}.upper{top:0;clip-path:polygon(0 0,100% 0,100% 12%,87% 35%,60% 81%,52% 100%,48% 100%,40% 81%,13% 35%,0 12%)}.lower{bottom:0;clip-path:polygon(48% 0,52% 0,60% 19%,87% 65%,100% 88%,100% 100%,0 100%,0 88%,13% 65%,40% 19%)}.glass i{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(90deg,#d0a85c,#f9e5ac,#d0a65e);height:calc(100% - var(--elapsed))}.lower i{height:var(--elapsed)}.stream{position:absolute;top:49%;height:45%;width:2px;left:50%;background:#f6dda0;opacity:0}.running .stream{opacity:.8}.water,.tea{width:85%;height:100%;position:relative}.reservoir{position:absolute;left:28%;top:6%;width:44%;height:25%;border:4px solid #a7c8b9;border-radius:16px 16px 45% 45%;background:linear-gradient(180deg,transparent var(--elapsed),#80c2bd 0,#4d8f91 100%)}.drop{position:absolute;top:32%;left:49%;width:7px;height:12px;border-radius:80%;background:#bcebe0;opacity:0}.running .drop{animation:drop 2.1s linear infinite}.vessel{position:absolute;bottom:8%;left:11%;width:78%;height:50%;border:5px solid #bad4c5;border-radius:12px 12px 35% 35%;background:#9fcab72b;overflow:hidden}.vessel i{position:absolute;bottom:0;left:0;right:0;height:var(--elapsed);background:linear-gradient(180deg,#a4ded2,#448e90)}.cup{position:absolute;left:6%;bottom:17%;width:88%;height:43%;background:linear-gradient(90deg,#b1bfa6,#eff3d8 45%,#a6b8a0);border:4px solid #d8e7c6;border-radius:9% 9% 43% 43%;overflow:hidden;z-index:1}.cup i{position:absolute;bottom:0;width:100%;height:var(--fill);background:linear-gradient(180deg,#d9ae6c,#a77436);border-top:4px solid #f3dba0}.saucer{position:absolute;bottom:9%;height:10%;left:0;width:100%;border-radius:50%;background:#cad9bd}.steam{position:absolute;left:23%;top:15%;width:54%;height:35%;display:flex;gap:18%;justify-content:center}.steam i{width:8%;height:95%;border-radius:50%;border-left:5px solid #e5f4da50;transform:rotate(13deg)}.running .steam i{animation:steam 5s ease-in-out infinite alternate}.steam i:nth-child(2){animation-delay:-2s}.steam i:nth-child(3){animation-delay:-4s}@keyframes drop{0%{transform:translateY(0);opacity:0}15%{opacity:.9}90%,100%{transform:translateY(65px);opacity:0}}@keyframes steam{0%{transform:translateY(12px) rotate(-8deg);opacity:.3}100%{transform:translateY(-14px) rotate(13deg);opacity:.7}}.low *{animation:none!important;box-shadow:none!important;filter:none!important}.low #visual{background:#17363a}.nodigits #time{display:none}.actions{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;padding:7px}.actions button{font-size:clamp(15px,1.6vw,22px);min-width:85px}.notice{text-align:center;color:#b3c9c1;font-size:12px;margin:0}.projection .toolbar,.projection .actions,.projection .notice{display:none}.projection main{padding:8px}.projection #visual{min-height:calc(100dvh - 110px)}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}dialog{width:min(640px,95vw);max-height:90dvh;overflow:auto;padding:23px;background:#17363e;color:#f5f5ec;border:1px solid #a3baa1;border-radius:20px}dialog::backdrop{background:#061619b8}dialog h2{margin-top:0;color:#efdfa9}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.settings-grid label,.duration label{display:grid;gap:5px;font-size:14px}.settings-grid input,.settings-grid select{width:100%;min-width:0}.duration{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.help{grid-column:1/-1;font-size:13px;color:#bbd3ca;margin:0}.toggles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.toggles label{display:flex;align-items:center;gap:6px}input[type=checkbox]{width:19px;height:19px;accent-color:#a7d5ae}.step{display:grid;grid-template-columns:minmax(90px,1fr) repeat(3,minmax(44px,65px)) auto;gap:5px;align-items:center;margin:5px 0}.step input{width:100%;min-width:0;padding:6px}.step button{padding:6px;font-size:12px}#seq{border-top:1px solid #5f887e;padding:10px 0}#error{color:#ffd0b7}footer{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}@media(max-width:740px){header{gap:7px;padding:10px}header p{display:none}header button,header a{padding:7px 10px;font-size:12px}#visual{grid-template-columns:1fr;padding:18px;gap:5px;min-height:440px}.task{top:13px}.task h2{font-size:24px}.art{margin-top:70px;width:min(58vw,32vh,260px)}.readout{margin:0}#time{font-size:clamp(40px,10vw,68px)}#progress{margin:6px}#status{font-size:18px}.actions{gap:6px}.actions button{min-width:0;padding:9px 12px}.projection #visual{min-height:calc(100dvh - 100px)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

body[data-theme=sand]{--accent:#e1efad;background:#152c40 url('/app/tools/timer/art-v2.png') center/cover fixed no-repeat;color:#fff4d8}
body[data-theme=sand] header{background:linear-gradient(100deg,#0b1a2be8,#14293699,#0b1a2be8);border-color:#eec77b99}
body[data-theme=sand] h1{font-family:"Noto Serif TC","Songti TC","PMingLiU",serif;font-size:clamp(25px,3.2vw,44px);letter-spacing:.12em;color:#fff2ca;text-shadow:0 2px 10px #000c}
body[data-theme=sand] header p{color:#f4e0b3}
body[data-theme=sand] button,body[data-theme=sand] a,body[data-theme=sand] select{border:1px solid #efc97ac9;border-radius:32px;background:linear-gradient(180deg,#2d3e4ce6,#101c29f0);color:#fff2d9;box-shadow:inset 0 1px 4px #fff3cd3b,0 3px 10px #0004}
body[data-theme=sand] button:hover:not(:disabled),body[data-theme=sand] a:hover{background:linear-gradient(180deg,#52604d,#263e38);box-shadow:0 0 12px #ffd7855c}
body[data-theme=sand] .primary{background:linear-gradient(180deg,#718c43,#355d32);border:2px solid #ffdf91;box-shadow:0 0 16px #ffc96980,inset 0 0 14px #d5ed8660}
body[data-theme=sand] .toolbar{padding:10px 16px;border-radius:16px;background:linear-gradient(90deg,#101d2bd9,#1022307a,#101d2bd9);border-block:1px solid #e2b76c80}
body[data-theme=sand] .toolbar label,body[data-theme=sand] .quick span{color:#fff1cf;font-weight:600}
body[data-theme=sand] .quick button{font-size:clamp(13px,1.1vw,18px);padding:8px 15px}
body[data-theme=sand] main{max-width:1740px;gap:10px}
body[data-theme=sand] #visual{grid-template-columns:47% 53%;grid-template-rows:1fr;min-height:clamp(400px,65vh,780px);border:2px solid #e6c078;border-radius:38px;padding:10px clamp(15px,4vw,64px);background:linear-gradient(90deg,#0d1a2710 10%,#0d1a2720 45%,#10233590 66%,#10233540);box-shadow:inset 0 0 0 4px #ffe2a117,0 6px 30px #090f1c60;gap:0}
body[data-theme=sand] #visual:before,body[data-theme=sand] #visual:after{content:"";position:absolute;width:76px;height:76px;border:1px solid #f9dfa0;border-radius:32px 0 0 0;left:7px;top:7px;border-right:0;border-bottom:0;pointer-events:none}
body[data-theme=sand] #visual:after{left:auto;top:auto;right:7px;bottom:7px;transform:rotate(180deg)}
body[data-theme=sand] .art{grid-column:1;grid-row:1;width:min(100%,50vh,510px);height:min(62vh,630px);aspect-ratio:auto;align-self:center;margin:0;z-index:1}
body[data-theme=sand] .hourglass{width:100%;height:100%;border:0;position:relative;filter:drop-shadow(0 12px 13px #060d16a0)}
body[data-theme=sand] .hourglass>.glass,body[data-theme=sand] .hourglass>.stream{display:none}
body[data-theme=sand] .hourglass canvas{width:100%;height:100%;object-fit:contain;display:block}
body[data-theme=sand] .task{position:relative;grid-column:2;grid-row:1;align-self:start;z-index:3;top:auto;left:auto;right:auto;margin-top:clamp(22px,5vh,72px);width:100%;pointer-events:none}
body[data-theme=sand] .task h2{display:inline-block;min-width:60%;max-width:95%;padding:8px 26px;border:3px double #e8c277;border-radius:22px;color:#fff1cf;background:linear-gradient(110deg,#122536e8,#283942dd,#142739e8);font-family:"Noto Serif TC","Songti TC","PMingLiU",serif;letter-spacing:.12em;text-shadow:0 2px 7px #000;box-shadow:0 3px 14px #1118;overflow-wrap:anywhere;font-size:clamp(23px,3vw,44px)}
body[data-theme=sand] .task div{color:#ffedc4;text-shadow:0 2px 4px #000}
body[data-theme=sand] .readout{grid-column:2;grid-row:1;align-self:center;margin:clamp(75px,14vh,145px) 0 0;z-index:2;text-shadow:0 2px 10px #000}
body[data-theme=sand] #time{font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:clamp(44px,7.6vw,128px);letter-spacing:-.06em;color:#fff6db;text-shadow:0 0 5px #ffc36a,0 0 22px #f9a7419c,0 3px 8px #0d1c2f;white-space:nowrap}
body[data-theme=sand] #progress{color:#fff1d5;font-family:"Noto Serif TC","PMingLiU",serif;font-size:clamp(18px,2.2vw,30px);margin:18px 0 24px}
body[data-theme=sand] #progress:before,body[data-theme=sand] #progress:after{content:"◇";display:inline-block;margin:0 14px;color:#f8d589;font-size:16px}
body[data-theme=sand] #status{display:inline-block;padding:9px 32px;color:#f9f2b9;background:linear-gradient(90deg,#314e37ed,#567146f5,#2d503ceb);border:1px solid #e8cc7999;border-radius:24px;font-family:"Noto Serif TC","PMingLiU",serif;letter-spacing:.12em;box-shadow:0 3px 14px #1119}
body[data-theme=sand] .ending #status{color:#ffe6a8;background:linear-gradient(90deg,#744d2b,#8c6339,#744d2b)}
body[data-theme=sand] .actions{background:linear-gradient(90deg,transparent,#101d2de8 18%,#101d2de8 82%,transparent);padding:11px 8px;gap:clamp(8px,1.4vw,20px)}
body[data-theme=sand] .actions button{min-width:clamp(84px,11vw,168px);padding:11px 20px;font-size:clamp(17px,1.8vw,25px)}
body[data-theme=sand] .notice{color:#fff2cd;background:#122434ac;border-radius:14px;padding:6px;text-shadow:0 1px 4px #000}
body[data-theme=sand].projection #visual{min-height:calc(100dvh - 115px)}
body[data-theme=sand].projection .art{height:min(78vh,770px);width:min(100%,65vh,600px)}
body[data-theme=sand].low{background:#142d34}body[data-theme=sand].low #visual{background:#17363a}
@media(max-width:740px){body[data-theme=sand] header h1{font-size:25px}body[data-theme=sand] #visual{display:flex;flex-direction:column;min-height:540px;padding:10px 12px 22px;border-radius:24px}body[data-theme=sand] .task{order:0;margin:10px 0 0}body[data-theme=sand] .art{order:1;width:min(70vw,270px);height:min(36vh,290px)}body[data-theme=sand] .readout{order:2;margin:0}body[data-theme=sand] #time{font-size:clamp(48px,11vw,78px)}body[data-theme=sand] #progress{margin:6px 0 10px}body[data-theme=sand] .actions button{min-width:0;padding:10px 13px;font-size:16px}body[data-theme=sand] .quick button{padding:7px 11px}}


/* Timer 2.0: all remaining themes; no SVG artwork */
body[data-theme=disk],body[data-theme=water],body[data-theme=tea]{--theme-gold:#e9cf91;--theme-panel:#102637;--accent:#cfe6b5;background:#102637;min-height:100dvh;color:#fff4df}
body[data-theme=disk]{--theme-gold:#e6c67e;--theme-panel:#111b34;--accent:#d4e3ff;background:radial-gradient(ellipse at 24% 27%,#46528b 0%,#172c50 32%,#0a132b 68%,#060d1d 100%);position:relative;isolation:isolate}
body[data-theme=water]{--theme-gold:#d4e4b1;--theme-panel:#123b41;--accent:#bdf4d7;background:linear-gradient(90deg,#062c3670,#102e4270),url('/forest-art/v3-scene.png') center/cover fixed no-repeat}
body[data-theme=tea]{--theme-gold:#edc68f;--theme-panel:#303c38;--accent:#f1dbab;background:linear-gradient(90deg,#1e2b2970,#1a2c30a0),url('/app/tools/timer/art-v2.png') center 70%/cover fixed no-repeat}
body[data-theme=disk] .timer-stars{display:block;position:fixed;inset:0;width:100vw;height:100dvh;z-index:-1;pointer-events:none}
.timer-stars{display:none}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) header{background:linear-gradient(100deg,#0b1829ec,#182b37b9,#0b1829ec);border-bottom:1px solid var(--theme-gold);padding:12px clamp(12px,3vw,40px);box-shadow:0 4px 25px #0005}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) h1{font-family:"Noto Serif TC","Songti TC","PMingLiU",serif;font-size:clamp(25px,3.2vw,44px);letter-spacing:.10em;color:#fff1cc;text-shadow:0 2px 10px #0009}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) header p{color:#e6e6ca}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) button,body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) a,body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) select{border:1px solid var(--theme-gold);border-radius:24px;color:#fff5df;background:linear-gradient(180deg,#344c53e8,#112635f2);box-shadow:inset 0 1px 4px #fff3cd22,0 3px 10px #0004}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) button:hover:not(:disabled){filter:brightness(1.28)}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) .primary{background:linear-gradient(180deg,#67894d,#315c44);border:2px solid var(--theme-gold);box-shadow:0 0 16px #cfe6a655,inset 0 0 14px #d5ed8633}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) main{max-width:1740px;gap:10px}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) .toolbar{padding:10px 16px;border-radius:16px;background:linear-gradient(90deg,#101d2bec,#1022308a,#101d2bec);border-block:1px solid #e2b76c80}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) .quick button{padding:8px 15px;font-size:clamp(13px,1.1vw,18px)}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) #visual{grid-template-columns:47% 53%;grid-template-rows:1fr;min-height:clamp(400px,65vh,780px);border:2px solid var(--theme-gold);border-radius:36px;padding:10px clamp(15px,4vw,64px);background:linear-gradient(90deg,#0d1a270c 10%,#0d1a2720 45%,#1023359c 66%,#10233555);box-shadow:inset 0 0 0 4px #ffe2a117,0 6px 30px #090f1c60;gap:0}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) #visual:before,body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) #visual:after{content:"";position:absolute;width:72px;height:72px;top:8px;left:8px;border:1px solid var(--theme-gold);border-right:0;border-bottom:0;border-radius:28px 0 0;pointer-events:none}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) #visual:after{top:auto;left:auto;right:8px;bottom:8px;transform:rotate(180deg)}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) .art{grid-column:1;grid-row:1;width:min(100%,57vh,540px);height:min(62vh,660px);aspect-ratio:auto;align-self:center;margin:0;z-index:1}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) .art .v3-instrument{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 12px 13px #060d1690)}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) .art.v3-ready>:not(.v3-instrument){display:none}
body[data-theme=sand] .v3-instrument{display:none}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) .task{position:relative;grid-column:2;grid-row:1;align-self:start;z-index:3;top:auto;left:auto;right:auto;margin-top:clamp(22px,5vh,72px);width:100%;pointer-events:none}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) .task h2{display:inline-block;min-width:60%;max-width:95%;padding:8px 26px;border:3px double var(--theme-gold);border-radius:22px;color:#fff1cf;background:linear-gradient(110deg,#122536e8,#283942dd,#142739e8);font-family:"Noto Serif TC","Songti TC","PMingLiU",serif;letter-spacing:.10em;text-shadow:0 2px 7px #000;box-shadow:0 3px 14px #1118;overflow-wrap:anywhere;font-size:clamp(23px,3vw,44px)}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) .task div{color:#f6edd4;text-shadow:0 2px 4px #000}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) .readout{grid-column:2;grid-row:1;align-self:center;margin:clamp(75px,14vh,145px) 0 0;z-index:2;text-shadow:0 2px 10px #000}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) #time{font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:clamp(44px,7.6vw,128px);letter-spacing:-.06em;color:#fff6db;text-shadow:0 0 6px var(--theme-gold),0 0 22px #f9a74180,0 3px 8px #0d1c2f;white-space:nowrap}
body[data-theme=water] #time{text-shadow:0 0 5px #b5fff6,0 0 24px #4ddbd296,0 3px 8px #0d1c2f}
body[data-theme=disk] #time{text-shadow:0 0 6px #e7e9ff,0 0 24px #8b9cfa9c,0 3px 8px #0d1c2f}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) #progress{color:#fff1d5;font-family:"Noto Serif TC","PMingLiU",serif;font-size:clamp(18px,2.2vw,30px);margin:18px 0 24px}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) #progress:before,body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) #progress:after{content:"◇";display:inline-block;margin:0 14px;color:var(--theme-gold);font-size:16px}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) #status{display:inline-block;padding:9px 32px;color:var(--accent);background:linear-gradient(90deg,#233f42eb,#365d4df5,#233f42eb);border:1px solid var(--theme-gold);border-radius:24px;font-family:"Noto Serif TC","PMingLiU",serif;letter-spacing:.09em;box-shadow:0 3px 14px #1119}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) .ending #status{color:#ffe6a8;background:linear-gradient(90deg,#744d2b,#8c6339,#744d2b)}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) .actions{background:linear-gradient(90deg,transparent,#101d2de8 18%,#101d2de8 82%,transparent);padding:11px 8px;gap:clamp(8px,1.4vw,20px)}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) .actions button{min-width:clamp(84px,11vw,168px);padding:11px 20px;font-size:clamp(17px,1.8vw,25px)}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) .notice{color:#fff2cd;background:#122434ac;border-radius:14px;padding:6px;text-shadow:0 1px 4px #000}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]).projection #visual{min-height:calc(100dvh - 115px)}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]).projection .art{height:min(78vh,770px);width:min(100%,65vh,600px)}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]).low{background:#142d34}
body.low .timer-stars{display:none}
body:is([data-theme=disk],[data-theme=water],[data-theme=tea]).low #visual{background:#17363a}
@media(max-width:740px){body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) #visual{display:flex;flex-direction:column;min-height:520px;padding:10px 12px 22px;border-radius:24px}body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) .task{order:0;margin:10px 0 0}body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) .art{order:1;width:min(78vw,300px);height:min(38vh,320px)}body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) .readout{order:2;margin:0}body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) #time{font-size:clamp(48px,11vw,78px)}body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) #progress{margin:6px 0 10px}body:is([data-theme=disk],[data-theme=water],[data-theme=tea]) .actions button{min-width:0;padding:10px 13px;font-size:16px}}

#bgm-toggle{white-space:nowrap;min-width:112px}#bgm-toggle[aria-pressed=true]{border-color:#e3c77d!important;background:linear-gradient(180deg,#547a48,#234c42)!important;color:#fff4cb!important;box-shadow:0 0 12px #dbc78250}#bgm-toggle[data-loading=true]{opacity:.75}.bgm-settings{margin-top:12px;border-top:1px solid #5c847d;padding:12px 0 3px}.bgm-settings h3{margin:0 0 10px;color:#f0dfab}.bgm-settings label{display:flex;justify-content:space-between}.bgm-settings input{width:100%;accent-color:#d5db9f;margin:6px 0 10px}.bgm-settings a{display:inline;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;text-decoration:underline;color:#f4e2a9!important}.bgm-settings #bgm-message{margin-top:8px;color:#f2cc9d}@media(max-width:740px){#bgm-toggle{min-width:0;padding:7px 10px;font-size:12px}}