/* A quiet paper sleeve for choosing the next record. */
@font-face{font-family:'mc ten lowercase';src:url('assets/mc-ten-lowercase-alt.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
html body,body button,body input,body select,body textarea,body .logo,body .record-stage .record-label #disc-title,body #tracklist-text{font-family:'mc ten lowercase',Arial,sans-serif!important}
dialog{--paper:#f4f1e6;--ink:#263e34;--muted:#697368;--line:#263e3426;background:var(--paper);color:var(--ink);border:1px solid #fffdf1b3;border-radius:12px;box-shadow:0 25px 90px #102f3b45,0 2px 6px #102f3b12;scrollbar-color:#9bA18a transparent}
dialog::backdrop{background:#183e4059;backdrop-filter:blur(9px) saturate(.75)}
dialog .eyebrow{color:#697368;opacity:1;font-size:9px;letter-spacing:1.5px;font-weight:600}
dialog h1{font-weight:800;letter-spacing:-1.8px}
dialog .muted,dialog details{color:var(--muted)}
dialog label{color:var(--ink)}
dialog input:not([type=range]),dialog select{color:var(--ink);border-color:var(--line)}
dialog input::placeholder{color:#7e887b}
dialog select option{background:var(--paper);color:var(--ink)}
dialog .solid-button{background:var(--ink);color:var(--paper);border-radius:7px;font-weight:600;transition:background .18s,transform .18s}
dialog .solid-button:hover{background:#375544}
dialog .solid-button:active{transform:translateY(1px)}
dialog .solid-button:disabled{background:#d9dece;color:#66735e;opacity:1;cursor:default}
dialog :is(button,a,input,textarea,summary,select):focus-visible{outline:2px solid #76864c;outline-offset:3px}
dialog input[type=range]{accent-color:#687d4d}
dialog #custom-error{color:#9d4a30}
dialog .custom-input-line{border-color:var(--line)}
dialog .custom-input-line>span{color:var(--muted)}
dialog #garden-trees{color:#6d8353}
#music-drawer{padding:0;width:min(480px,calc(100% - 32px));max-height:min(780px,calc(100dvh - 40px));overflow:auto;overscroll-behavior:contain}
#music-drawer .drawer-topline{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 24px 8px;position:sticky;top:0;z-index:3;background:var(--paper)}
#music-drawer .drawer-topline .close{position:static;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;font:300 26px/1 Arial;color:#546557;opacity:1;flex-shrink:0;padding:0;transition:background .18s}
#music-drawer .close:hover{background:#e4e8da}
#music-drawer .drawer-body{padding:0 28px 25px}
#music-drawer h1{font-size:38px;line-height:1.05;margin:5px 0 9px}
#music-drawer .drawer-intro{margin:0;color:var(--muted);font-size:12px;line-height:1.55}
#music-drawer .mood-choices{grid-template-columns:1fr 1fr;gap:8px;margin:23px 0 22px}
#music-drawer .mood-choices button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:43px;padding:11px 14px;border:1px solid #cdd3c0;border-radius:6px;font-size:12px;font-weight:600;color:#3c5142;background:transparent;transition:background .18s,border-color .18s}
#music-drawer .mood-choices button>span{font-size:14px;opacity:.45;font-weight:400}
#music-drawer .mood-choices button.selected{color:#2f4333;background:#e2e7d1;border-color:#bdc9a0}
#music-drawer .mood-choices button.selected:after{content:none}
#music-drawer .mood-choices button:hover{background:#e8ebdd;border-color:#a6b48c}
#music-drawer .mood-choices button:disabled{opacity:.65;cursor:wait}
#music-drawer #mix-form label{font-size:10px;font-weight:600;margin:0 0 8px;color:#697368}
#music-drawer .prompt-line{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;border:0}
#music-drawer #mix-prompt{min-width:0;width:100%;height:44px;border:1px solid #cdd3c0!important;background:#fffdf654;padding:11px 12px;border-radius:6px;font-size:12px;line-height:1.4}
#music-drawer #build{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;min-height:44px;background:var(--ink);color:var(--paper);padding:12px 15px;border-radius:6px;font-size:12px;font-weight:600;transition:background .18s}
#music-drawer #build:hover{background:#375544}
#music-drawer #build:disabled{opacity:1;cursor:wait;background:#425c45}
#music-drawer #build>span{font-size:18px;font-weight:400;line-height:1}
#music-drawer #mix-status{font-size:10px;line-height:1.55;min-height:16px;margin:12px 0 0;overflow-wrap:anywhere}
#music-drawer[data-busy=true] #mix-status{padding-left:18px;position:relative;color:#516445}
#music-drawer[data-busy=true] #mix-status:before{content:'';position:absolute;left:0;top:3px;width:8px;height:8px;border:1.5px solid #c4cdb5;border-top-color:#526f40;border-radius:50%;animation:mix-turn 1s linear infinite}
#music-drawer #youtube-results,#music-drawer [hidden]{display:none!important}
#music-drawer #mix-result{margin-top:22px;padding-top:17px;border-top:1px solid var(--line)}
#music-drawer .selection-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
#music-drawer .selection-heading .eyebrow{font-size:8px;letter-spacing:1.2px}
#music-drawer #another-mix{font-size:10px;color:#5f7151;padding:5px 0}
#music-drawer #another-mix:hover{text-decoration:underline;text-underline-offset:3px}
#music-drawer #another-mix:disabled{opacity:.55;cursor:wait}
#music-drawer #source-summary{border:0;padding:0;margin:9px 0 0;color:var(--ink);line-height:1.45}
#music-drawer #source-summary :is(a,strong){font-size:15px;font-weight:700;letter-spacing:-.25px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-decoration:none}
#music-drawer #source-summary a:hover{text-decoration:underline;text-underline-offset:3px}
#music-drawer #source-summary small{display:block;font-size:10px;color:var(--muted);opacity:1;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#music-drawer #mix-meta{margin:7px 0 0;font-size:10px;line-height:1.55}
#music-drawer #mix-meta:empty{display:none}
#music-drawer .mix-actions{display:flex;gap:16px;align-items:center;margin:15px 0 16px}
#music-drawer #listen-mix{display:flex;align-items:center;justify-content:space-between;gap:25px;width:auto;flex:1;margin:0;padding:11px 14px;min-height:42px;font-size:11px}
#music-drawer #listen-mix>span{font-size:16px;font-weight:400}
#music-drawer #save-mix{font-size:10px;white-space:nowrap;padding:10px 0;color:#5b7047}
#music-drawer #save-mix:disabled{opacity:.5}
#music-drawer #save-mix:hover:not(:disabled){text-decoration:underline;text-underline-offset:3px}
#music-drawer #playlist-link{margin:0 0 14px;font-size:10px;color:#5c7346}
#music-drawer details{margin:0;border-top:1px solid var(--line);font-size:11px;color:#53654c}
#music-drawer summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;font-size:10px;line-height:1.45;min-height:40px}
#music-drawer summary::-webkit-details-marker{display:none}
#music-drawer summary:after{content:'+';font-size:17px;line-height:1;color:#7b8b69;flex-shrink:0}
#music-drawer details[open]>summary:after{content:'−'}
#music-drawer #queue-label{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#music-drawer #queue{padding-bottom:6px}
#music-drawer .track-row{padding:11px 0;border-color:var(--line);gap:8px;grid-template-columns:20px minmax(0,1fr) 32px;color:#354c3b}
#music-drawer .track-row:last-child{border:0}
#music-drawer .track-row strong{font-size:11px;font-weight:600;line-height:1.4}
#music-drawer .track-row small{font-size:10px;opacity:1;color:#7a8275;line-height:1.4}
#music-drawer .track-row :is(.number,.length){font-size:9px;opacity:1;color:#7a8275}
#music-drawer .track-row:hover,#music-drawer .track-row.current{color:#6e803d}
#music-drawer .track-row.current .number{color:#6e803d;font-weight:700}
#music-drawer .review-title{display:none}
#music-drawer .match-item{padding:11px 0 15px;border-color:var(--line)}
#music-drawer .match-item:last-child{border:0}
#music-drawer .match-item p{color:var(--ink);font-size:11px;font-weight:600}
#music-drawer .match-item select{padding:10px;border:1px solid var(--line);border-radius:5px;font-size:10px;color:#526348}
#music-drawer #album-options .muted{font-size:10px;color:#7e6942;line-height:1.6}
#music-drawer .source-choice{border-color:var(--line);color:var(--ink)}
#music-drawer .source-choice:hover{color:#687c46}
#music-drawer #playback-retry{font-size:11px;margin:14px 0 0;padding:12px}
#music-drawer #more-options{margin-top:18px}
#music-drawer #more-options>summary{color:#75806d;font-size:10px;padding-bottom:0}
#music-drawer #more-options[open]>summary{padding-bottom:13px}
#music-drawer .more-options-body{padding-bottom:2px}
#music-drawer #local-open{font-size:11px;padding:7px 0 14px;color:#566b46}
#music-drawer #manual-import{margin:0}
#music-drawer #manual-import .muted{margin:0 0 10px;font-size:10px}
#music-drawer #tracklist-text{background:#fffdf654;color:var(--ink);border-color:var(--line);border-radius:6px;font:11px/1.7 Arial;padding:11px}
#music-drawer #tracklist-text::placeholder{color:#86917c}
#music-drawer #parse-tracklist{font-size:11px;margin:10px 0 16px;padding:11px}
#music-drawer .reference-link{display:inline-block;font-size:10px;margin-top:10px;color:#75806d}
/* Let the chosen record take over once the mood has been set. */
#music-drawer #change-mood{display:inline-flex;align-items:center;margin:0 0 3px;padding:5px 0;color:#667857;font-size:10px;line-height:1.5}
#music-drawer #change-mood:hover{text-decoration:underline;text-underline-offset:3px}
#music-drawer #mix-compose[hidden]~#mix-status{margin-top:9px}
#music-drawer #mix-compose[hidden]~#mix-result{margin-top:15px;padding-top:13px}
#music-drawer #mix-compose[hidden]~#mix-result .mix-actions{margin:14px 0}
#music-drawer:has(#mix-compose[hidden]) h1{font-size:clamp(29px,5vw,36px);letter-spacing:-1.5px}
#music-drawer[data-busy=true] #more-options{display:none}
#music-drawer[data-busy=true] #mix-compose[hidden]~#mix-status{margin:17px 0 13px;min-height:25px}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0!important;margin:-1px!important;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes mix-turn{to{transform:rotate(360deg)}}
/* Scenery postcards and a garden grown from real focus totals. */
#settings-dialog{width:min(520px,calc(100% - 28px));padding:30px}
#settings-dialog h1{margin-bottom:20px}
.scene-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.scene-choices button{padding:5px 5px 11px;text-align:left;border:1px solid #cdd3c0;border-radius:7px;overflow:hidden;color:#3b5141;transition:border-color .2s,background .2s}
.scene-choices button[aria-pressed=true]{background:#e2e7d1;border-color:#72875d;box-shadow:0 0 0 1px #72875d}
.scene-choices button strong,.scene-choices button small{display:block;padding:0 7px}
.scene-choices button strong{font-size:12px;margin-top:10px;font-weight:700}
.scene-choices button small{font-size:9px;color:#6c7967;margin-top:4px}
.scene-preview{height:66px;display:block;position:relative;overflow:hidden;border-radius:3px;background:linear-gradient(#87c8df 0 67%,#8faf91 67% 79%,#638b60 79%);--tree:#3c7656;--leaf:#9bbf7c}
.scene-preview:before{content:'';position:absolute;left:18%;bottom:8px;width:8px;height:25px;background:#786e53;box-shadow:0 -18px 0 8px var(--tree),-9px -11px 0 5px var(--tree),9px -11px 0 5px var(--tree),-3px -23px 0 5px var(--leaf)}
.scene-preview:after{content:'';position:absolute;right:15px;top:12px;width:29px;height:7px;background:#fffbe4;box-shadow:-8px 5px 0 #fffbe4,7px 5px 0 #fffbe4,0 9px 0 #fffbe4}
.scene-preview.sakura{--tree:#d49eac;--leaf:#f2c7c8;background:linear-gradient(#b9cfdf 0 67%,#98b8b7 67% 77%,#a6cdd0 77% 88%,#88a17b 88%)}
.scene-preview.coast{--tree:#3f7361;--leaf:#8baa79;background:linear-gradient(#8bc8dc 0 61%,#69afb9 61% 88%,#d4c496 88%)}
.scene-preview.coast:before{clip-path:polygon(50% 0,100% 75%,65% 75%,65% 100%,35% 100%,35% 75%,0 75%);width:55px;height:56px;left:9%;bottom:0;background:var(--tree);box-shadow:none}
.scene-preview.alpine{background:linear-gradient(#a1c5dc 0 66%,#90b9bb 66% 88%,#6e927b 88%)}
.scene-preview.alpine:before{width:120px;height:63px;left:4%;bottom:17px;clip-path:polygon(0 100%,32% 0,52% 67%,72% 18%,100% 100%);background:linear-gradient(#eef0e5 0 30%,#8ba8b8 30%);box-shadow:none}
.scene-preview.city{background:linear-gradient(#20243d 0 55%,#4e465d 55% 80%,#293a4c 80%)}
.scene-preview.city:before{left:8%;bottom:12px;width:17px;height:38px;clip-path:none;background:repeating-linear-gradient(0deg,transparent 0 5px,#cfaa7d 5px 7px),#28354c;box-shadow:24px 8px 0 #34354c,47px -6px 0 #3c3c53,73px 12px 0 #303c51,100px 0 0 #252f44}
.scene-preview.city:after{width:12px;height:12px;right:20px;top:9px;background:#e9dfc4;box-shadow:none}
body[data-scene=city] #landscape{filter:none}
#scene-status{font-size:10px;margin:12px 0 0}
.atmosphere-controls{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:22px}
#settings-dialog .atmosphere-controls label{margin:20px 0 7px}
#settings-dialog input[type=range]{margin:14px 0}
#garden-dialog{width:min(510px,calc(100% - 28px));padding:30px;overflow-x:hidden}
#garden-dialog h1{margin:12px 0 8px;font-size:39px;letter-spacing:-1.8px}
#garden-summary{color:#697368;font-size:11px;line-height:1.6;margin:0 0 20px}
.garden-land{position:relative;overflow:hidden;border-radius:6px;background:#cbded5}
#garden-dialog #garden-trees{display:block;position:static;width:100%;height:auto;margin:0;aspect-ratio:420/180;image-rendering:pixelated;shape-rendering:crispEdges}
#garden-season{display:block;text-align:center;background:#e0e6d3;color:#59724c;font-size:9px;letter-spacing:.3px;padding:10px}
.garden-stats{display:grid;grid-template-columns:1fr 1.3fr 1fr;margin:24px 0 22px}
.garden-stats>div{display:flex;flex-direction:column;gap:7px;border-left:1px solid #263e3426;padding-left:18px}
.garden-stats>div:first-child{border:0;padding-left:0}
.garden-stats strong{font-size:26px;letter-spacing:-1.2px;font-weight:700;line-height:1}
.garden-stats span{font-size:9px;color:#697368}
.garden-milestone{border-top:1px solid #263e3426;padding-top:17px}
.garden-milestone>div{display:flex;justify-content:space-between;gap:15px;font-size:9px;color:#697368}
#garden-progress{display:block;width:100%;height:5px;border:0;border-radius:4px;overflow:hidden;margin:12px 0 23px;appearance:none;background:#dde2d0;accent-color:#7e9662}
#garden-progress::-webkit-progress-bar{background:#dde2d0}#garden-progress::-webkit-progress-value{background:#7e9662}#garden-progress::-moz-progress-bar{background:#7e9662}
#garden-dialog label{font-size:10px;font-weight:600;margin-bottom:7px}
#garden-dialog #intention{font-size:12px;background:#fffdf65c;border:1px solid #cdd3c0;border-radius:5px;padding:12px}
#garden-dialog .garden-foot{text-align:center;font-size:9px;color:#839078;line-height:1.8;margin:21px 0 0}
#garden-dialog #garden-trees{max-height:155px}
#garden-dialog .garden-stats{margin:20px 0 18px}
#garden-dialog .garden-foot{margin-top:16px}
@media(max-width:420px){#garden-dialog,#settings-dialog{padding:26px 22px}.scene-choices{gap:10px}.scene-choices button small{font-size:8px}.garden-stats strong{font-size:23px}.garden-stats>div{padding-left:12px}.garden-stats span{font-size:8px}#garden-dialog h1{font-size:35px}}
@media(max-width:520px){#music-drawer{width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:11px}#music-drawer .drawer-topline{padding:12px 19px 5px}#music-drawer .drawer-body{padding:0 22px 20px}#music-drawer h1{font-size:34px}#music-drawer .mood-choices{margin:20px 0;gap:7px}#music-drawer .mood-choices button{font-size:11px;padding:10px 12px}#music-drawer .mix-actions{gap:12px}}
@media(max-height:640px){#music-drawer .drawer-topline{padding-top:9px}#music-drawer h1{font-size:31px}#music-drawer .mood-choices{margin:17px 0}#music-drawer .mood-choices button{min-height:39px}#music-drawer #mix-result{margin-top:17px}}
@media(prefers-reduced-motion:reduce){#music-drawer *{transition:none!important}#music-drawer[data-busy=true] #mix-status:before{animation:none}}
/* Motion and controls share one quiet rhythm. */
.record-stage {container-type:inline-size}
.centerpiece,
.centerpiece:has(#record-crate:not([hidden])) {
  gap:16px; overflow-y:auto; overflow-x:hidden;
  padding-top:88px; padding-bottom:82px; scrollbar-width:none;
}
.record-stage,
.centerpiece:has(#record-crate:not([hidden])) .record-stage {
  width:min(780px,88vw,73dvh); border-radius:24px;
}
.deck-caption {font-size:8px;letter-spacing:.12em}
.deck-caption>span,.crate-caption,.deck-brand small {display:none}
.deck-brand {bottom:4%;font-size:23px}
.record-stage .album-sleeve {
  left:9%;top:22%;width:31%;transform:none;
  transition:transform 700ms cubic-bezier(.22,1,.36,1);
}
.record-stage.loading-record .album-sleeve {transform:translateX(-3%)}
.record-stage .record-carriage {filter:none;will-change:transform}
.record-stage:not(.loaded) .record-carriage * {visibility:hidden}
.record-stage .record-carriage .vinyl {animation-duration:9s}
.loaded .tonearm {transform:rotate(-9deg);transition:transform 650ms cubic-bezier(.22,1,.36,1)}
.record-stage.loaded:not(.spinning) .tonearm {transform:rotate(-9deg)}
.record-stage>.tonearm {right:8.6%;top:17.1%;width:6%;height:57.7%;z-index:7;pointer-events:none}
.loaded.spinning:not(.loading-record) .tonearm {transform:rotate(19deg)}
.loading-record .record-carriage {animation:slide-record-out 1250ms both}
/* Only transforms move the record; its layout remains fixed to the platter. */
@keyframes slide-record-out {
  0% {transform:translate(var(--record-from-x,-135%),var(--record-from-y,5%)) scale(var(--record-from-scale,.86)) rotate(-12deg);opacity:0;z-index:2;animation-timing-function:cubic-bezier(.22,.8,.3,1)}
  12% {opacity:1;z-index:2}
  40% {transform:translate(calc(var(--record-from-x,-200px) * .5),calc(var(--record-from-y,0px) * .5)) scale(.94) rotate(-7deg);z-index:2;animation-timing-function:cubic-bezier(.33,0,.2,1)}
  41% {z-index:5}
  76% {transform:translate(0,-5%) scale(1.025) rotate(3deg);animation-timing-function:cubic-bezier(.2,.7,.3,1)}
  100% {transform:translate(0,0) scale(1) rotate(0);opacity:1;z-index:5}
}
#deck-play {cursor:pointer;transition:background 180ms}
#deck-play:hover:not(:disabled) {background:#fffbea08}
#deck-play:active:not(:disabled) {background:#26392f0b}
.record-stage[data-busy=true] .deck-led {background:#e4b879}
.track-info {min-height:0}
#track-name {font-size:17px;line-height:1.4;max-width:100%}
#track-artist {font-size:11px;margin:3px auto 0;opacity:.75;max-width:100%}
#track-artist:empty {display:none}
.listening {width:min(380px,80vw)}
.transport {margin-top:9px;gap:24px}
.transport button {width:44px;height:44px}
.transport #play {width:48px;height:48px}
.transport button:active:not(:disabled) {transform:scale(.93)}
.transport #play[aria-busy=true] {border-style:dashed;opacity:.6}
.playback-line {margin-top:6px}
#seek {height:24px}
.focus {--focus-left:1;flex-shrink:0;width:min(330px,88vw)}
.focus .modes {position:relative;gap:5px;justify-content:space-between}
.focus .modes button {
  min-height:36px;padding:7px 11px;border:0;border-radius:18px;
  font-size:11px;opacity:.65;transition:background 200ms,opacity 200ms,transform 200ms;
}
.focus .modes button.selected {background:#fffbea18;opacity:1}
.focus .modes button:hover {background:#fffbea0c}
.focus .modes button:active {transform:scale(.96)}
.focus-session {display:flex;align-items:center;justify-content:center;gap:22px;margin-top:9px}
.focus-dial {position:relative;width:110px;height:110px;display:grid;place-items:center;flex-shrink:0}
.focus-dial svg {position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);overflow:visible;pointer-events:none}
.focus-dial circle {fill:none;stroke-width:1.3}
.dial-track {stroke:#fffbea20}
.dial-progress {stroke:#fffbea;stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--focus-left));stroke-linecap:round;transition:stroke-dashoffset 1s linear,opacity 250ms;opacity:.55}
.focus[data-running=true] .dial-progress {opacity:1}
.focus[data-complete=true] .dial-track {stroke:#d9eab3;stroke-width:2}
.focus #clock {font-size:29px;line-height:1;letter-spacing:.015em;margin:0;font-weight:400}
.focus .actions {flex-direction:column;gap:3px;min-width:118px}
.focus .actions #toggle {min-height:40px;min-width:118px;padding:8px 14px;font-size:11px;background:#fffbea0c}
.focus .actions #toggle:hover {background:#fffbea20;transform:none}
.focus .actions #toggle:active {transform:scale(.96)}
.focus .actions #reset {font-family:Arial,sans-serif;font-size:24px;width:44px;height:36px;padding:0;transition:transform 300ms,opacity 200ms}
.focus .actions #reset:hover:not(:disabled) {transform:rotate(-35deg)}
.focus .actions #reset:disabled {opacity:.25!important;cursor:default}
.focus #note {margin:6px auto 0;font-size:10px;min-height:0}
.focus #note:empty {display:none}
#record-crate {gap:10px;padding:5px 5px 9px;max-width:min(560px,86vw);scroll-snap-type:x proximity}
.crate-record {flex-basis:50px;scroll-snap-align:center;border-radius:2px;transition:opacity 200ms,transform 250ms,border-color 200ms}
.crate-record:hover:not(:disabled),.crate-record:focus-visible {transform:translateY(-3px)}
.crate-record:active {transform:scale(.95)}
.crate-record[aria-pressed=true] {opacity:1;border-color:#fff4c7}
dialog[open] {animation:dialog-in 220ms cubic-bezier(.22,1,.36,1)}
@keyframes dialog-in {from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
@media(min-width:601px) and (max-height:700px) {
  .centerpiece,.centerpiece:has(#record-crate:not([hidden])) {display:grid;grid-template-columns:1fr 280px;grid-template-rows:auto auto auto;align-content:center;justify-items:center;max-width:1040px;margin:auto;column-gap:26px;row-gap:10px;padding:76px 28px 68px}
  .record-stage,.centerpiece:has(#record-crate:not([hidden])) .record-stage {grid-column:1;grid-row:1/3;width:min(55vw,600px)}
  .listening {grid-column:2;grid-row:1;width:100%;align-self:end}
  .focus {grid-column:2;grid-row:2;width:100%;align-self:start}
  #record-crate {grid-column:1;grid-row:3;max-width:100%}
}
@media(max-width:600px) {
  .centerpiece,.centerpiece:has(#record-crate:not([hidden])) {gap:14px;padding:80px 16px 70px;justify-content:safe center}
  .record-stage,.centerpiece:has(#record-crate:not([hidden])) .record-stage {width:min(92vw,72dvh);aspect-ratio:1.8;border-radius:16px}
  .deck-caption {font-size:5px;letter-spacing:.1em}
  .deck-brand {font-size:16px}
  .focus-dial {width:100px;height:100px}
  .focus #clock {font-size:27px}
  .focus .modes button {font-size:10px;min-height:36px}
  #track-name {font-size:15px}
  .crate-record {flex-basis:44px}
}
@media(max-width:600px) and (max-height:700px) {
  .centerpiece,.centerpiece:has(#record-crate:not([hidden])) {gap:8px;padding-top:70px;padding-bottom:65px}
  .record-stage,.centerpiece:has(#record-crate:not([hidden])) .record-stage {width:min(88vw,56dvh)}
  .focus-dial {width:86px;height:86px}
  .focus #clock {font-size:24px}
  .focus-session {margin-top:4px}
  .transport {margin-top:4px}
}
@media(prefers-reduced-motion:reduce) {
  .loading-record .record-carriage,dialog[open] {animation:none}
  .centerpiece * {transition:none!important;scroll-behavior:auto!important}
}

/* Browse the sleeves directly beside the deck, without a second queue below. */
.record-stage:has(#record-crate:not([hidden])) .album-sleeve {display:none}
.record-stage #record-crate {
  position:absolute;left:6%;top:15%;width:34%;height:78%;max-width:none;
  display:flex;flex-direction:column;align-items:flex-start;gap:0;
  padding:2px 6px 3px 2px;margin:0;z-index:4;overflow-x:hidden;overflow-y:auto;
  scrollbar-width:thin;scrollbar-color:#66756355 transparent;
  scroll-snap-type:none;overscroll-behavior:contain;
}
.record-stage #record-crate[hidden] {display:none}
.record-stage .crate-record {
  position:relative;display:block;flex:0 0 auto;width:20cqw;height:5cqw;min-height:24px;
  padding:0;aspect-ratio:auto;margin:0;border:0;border-radius:0;
  overflow:hidden;background:#c3cbb8;color:#34473e;opacity:.75;
  transition:opacity 180ms,transform 220ms;transform:none;
}
.record-stage .crate-record img {
  position:absolute;top:0;left:0;width:100%;height:auto;aspect-ratio:1;object-fit:cover;
}
.record-stage .crate-record>span {
  min-height:20cqw;display:block;padding:8%;font-size:clamp(7px,1.5cqw,13px);
  background:linear-gradient(135deg,#e6e6d6,#a7b9a3);line-height:1.5;
}
.record-stage .crate-record[aria-pressed=true] {
  width:27cqw;height:27cqw;min-height:0;opacity:1;
  border:2px solid #fff7d6;z-index:2;margin:3px 0;
}
.record-stage .crate-record[aria-pressed=true]::after {display:none}
.record-stage .crate-record:hover,.record-stage .crate-record:focus-visible {
  opacity:1;transform:translateX(4px);z-index:3;
}
.record-stage .crate-record:focus-visible {outline:2px solid #34473e;outline-offset:-2px}
.record-stage .crate-record[aria-busy=true] {opacity:.55;cursor:progress}
@media(max-width:600px) {
  .record-stage #record-crate {left:5%;top:17%;height:76%;width:35%;padding-right:4px}
  .record-stage .crate-record {width:23cqw;height:7cqw;min-height:24px}
  .record-stage .crate-record[aria-pressed=true] {width:29cqw;height:29cqw;min-height:0}
}

/* Open turntable: the pressing is the centre of the room. */
.centerpiece,.centerpiece:has(#record-crate:not([hidden])) {
  display:flex;flex-direction:column;justify-content:safe center;align-items:center;
  max-width:none;margin:0;gap:18px;padding:88px 20px 82px;
}
.record-stage,.centerpiece:has(#record-crate:not([hidden])) .record-stage {
  width:min(880px,92vw,calc((100dvh - 445px) * 2));
  min-width:330px;aspect-ratio:2;background:none;border:0;border-radius:0;
  color:#fffbea;box-shadow:none;overflow:visible;
}
.deck-caption,.deck-brand,.crate-caption,.deck-speed,.deck-switch,.deck-led,.deck-slider {display:none}
.record-stage .turntable {
  left:27.5%;top:4%;width:45%;height:auto;aspect-ratio:1;
  border:0;background:none;box-shadow:none;z-index:1;
}
.turntable .platter {inset:0;width:100%;background:repeating-conic-gradient(#b2b9a94d 0deg 1deg,#182326 1deg 3deg)}
.turntable .platter:before {inset:3%;background:radial-gradient(circle,#e5e6d5 0 1%,#1b2528 1.3% 100%);box-shadow:none}
.record-stage .record-carriage {left:28%;top:5%;width:44%;z-index:5}
.record-stage .record-carriage .vinyl {border-color:#fff4cf80;animation-duration:16s}
.record-stage .vinyl:after {border-color:#fffbea30}
.record-stage .record-label {width:28%;height:28%;border-color:#eee4bf99;background:#e5dfc6;color:#354137}
.record-stage .record-label #disc-title {font-size:clamp(8px,1.5cqw,16px);letter-spacing:.035em}
.record-stage .record-label span,.record-stage .record-label small {font-size:clamp(3px,.65cqw,6px);letter-spacing:.06em}
.record-stage>.tonearm {right:20%;top:5%;width:6%;height:76%;z-index:7;opacity:.9}
.record-stage #deck-play {left:27.5%;top:4%;width:45%;height:auto;aspect-ratio:1;border-radius:50%}
#deck-play:hover:not(:disabled) {background:#fffbea04}
#deck-play:active:not(:disabled) {background:#fffbea09}
#deck-play:focus-visible {outline:1px solid #fffbea;outline-offset:8px}
.record-stage #record-crate {
  left:1%;top:11%;width:21%;height:80%;padding:4px 12px 6px 4px;
  gap:5px;scrollbar-width:none;scrollbar-color:#fffbea55 transparent;
  -webkit-mask-image:linear-gradient(transparent,#000 3% 97%,transparent);
  mask-image:linear-gradient(transparent,#000 3% 97%,transparent);
}
.record-stage #record-crate::-webkit-scrollbar {display:none}
.record-stage .crate-record {
  width:13cqw;height:6cqw;min-height:32px;background:#bdc7b6;opacity:.5;
  border:1px solid #fffbea20;transition:opacity 250ms,transform 350ms cubic-bezier(.22,1,.36,1);
}
.record-stage .crate-record[aria-pressed=true] {
  width:17cqw;height:17cqw;min-height:0;margin:3px 0;border:1px solid #fff4cf;opacity:1;
}
.record-stage .crate-record:hover,.record-stage .crate-record:focus-visible {opacity:1;transform:translateX(3px)}
.record-stage .crate-record:focus-visible {outline-color:#fffbea}
.record-stage .crate-record>span {font-size:clamp(7px,1.2cqw,11px);min-height:17cqw}
.record-stage .album-sleeve {left:2%;top:27%;width:17%;opacity:.85;background:#d2dac8}
.record-stage .sleeve-placeholder>b {font-size:7cqw;letter-spacing:-.04em}
.record-stage .sleeve-placeholder>span {font-size:1.4cqw;letter-spacing:.025em}
.record-stage .sleeve-placeholder>small {display:none}
.listening {width:min(340px,76vw);align-self:auto}
#track-name {font-size:18px;letter-spacing:.045em;line-height:1.4}
#track-artist {font-size:11px;letter-spacing:.04em;opacity:.66;margin-top:5px}
.transport {gap:28px;margin-top:13px}
.transport button {width:40px;height:40px}
.transport #play {width:46px;height:46px;background:#fffbea08;border-color:#fffbea66}
.transport #play:hover {transform:scale(1.06);background:#fffbea19}
.playback-line {margin-top:7px;font-size:9px;opacity:.75}
.focus {width:286px;max-width:85vw;margin-top:5px;align-self:auto}
.focus .modes {gap:2px}
.focus .modes button {font-size:9px;min-height:32px;padding:5px 10px;border-radius:0;background:none;opacity:.5}
.focus .modes button.selected {background:none;opacity:1}
.focus .modes button.selected:after {content:'';display:block;width:12px;height:1px;background:currentColor;margin:5px auto -6px}
.focus-session {gap:16px;margin-top:6px}
.focus .focus-dial {width:68px;height:68px}
.focus #clock {font-size:20px;letter-spacing:.02em}
.focus-dial circle {stroke-width:1.2}
.focus .actions {flex-direction:row;gap:6px;min-width:0}
.focus .actions #toggle {font-size:10px;min-width:108px;min-height:36px;border-color:#fffbea48;background:none;padding:8px 12px}
.focus .actions #reset {width:32px;height:36px;font-size:20px}
.focus #note {font-size:9px;opacity:.65}
.topbar .logo {font-size:29px}
.topbar #connect,.bottom-bar .quiet-button {font-size:10px;letter-spacing:.04em}
.bottom-bar .tiny-label {display:none}
@media(min-width:901px) {
  .record-stage,.centerpiece:has(#record-crate:not([hidden])) .record-stage {width:min(880px,92vw,calc((100dvh - 330px) * 2))}
  .centerpiece .focus {position:absolute;right:30px;bottom:92px;width:235px;margin:0}
  .focus .modes button {padding:5px 6px;font-size:8px}
  .focus-session {gap:9px}
  .focus .focus-dial {width:58px;height:58px}.focus #clock {font-size:17px}
  .focus .actions #toggle {font-size:9px;min-width:100px}
  .focus .actions #reset {width:24px}
}
@media(min-width:901px) and (max-height:600px) {
  .centerpiece,.centerpiece:has(#record-crate:not([hidden])) {gap:10px;padding:70px 20px 64px}
  .record-stage,.centerpiece:has(#record-crate:not([hidden])) .record-stage {width:min(620px,88vw,calc((100dvh - 310px) * 2));min-width:300px}
  .transport {margin-top:6px}.playback-line {margin-top:0}
  .focus {margin-top:0}.focus-session {margin-top:0}
  .focus .focus-dial {width:54px;height:54px}.focus #clock {font-size:17px}
}
@media(min-width:601px) and (max-width:900px) and (max-height:650px) {
  .centerpiece,.centerpiece:has(#record-crate:not([hidden])) {gap:12px;padding:70px 20px}
  .record-stage,.centerpiece:has(#record-crate:not([hidden])) .record-stage {width:min(620px,88vw,calc((100dvh - 420px) * 2));min-width:240px}
}
@media(max-width:600px) {
  .centerpiece,.centerpiece:has(#record-crate:not([hidden])) {gap:20px;padding:85px 14px 76px}
  .record-stage,.centerpiece:has(#record-crate:not([hidden])) .record-stage {width:min(94vw,48dvh);min-width:0;aspect-ratio:1.25}
  .record-stage .turntable {left:24%;top:5%;width:72%}
  .record-stage .record-carriage {left:25%;top:6.25%;width:70%}
  .record-stage #deck-play {left:24%;top:5%;width:72%}
  .record-stage>.tonearm {right:0;top:4%;width:8%;height:70%}
  .record-stage #record-crate {left:0;top:13%;width:23%;height:76%;padding:3px 4px 3px 2px;gap:6px}
  .record-stage .crate-record {width:17cqw;height:12cqw;min-height:34px}
  .record-stage .crate-record[aria-pressed=true] {width:20cqw;height:20cqw;min-height:0}
  .record-stage .album-sleeve {left:0;top:30%;width:20%}
  .record-stage .record-label #disc-title {font-size:2.7cqw}
  .record-stage .record-label span,.record-stage .record-label small {font-size:1cqw}
  #track-name {font-size:16px}.listening {width:min(310px,82vw)}
  .focus {margin-top:0}
  .topbar .logo {font-size:26px}.topbar #connect {font-size:9px}
  .bottom-bar #garden,.bottom-bar #settings-open {font-size:22px}
}
@media(max-width:600px) and (max-height:700px) {
  .centerpiece,.centerpiece:has(#record-crate:not([hidden])) {gap:12px;padding-top:74px;padding-bottom:66px}
  .record-stage,.centerpiece:has(#record-crate:not([hidden])) .record-stage {width:min(88vw,43dvh)}
  .focus .focus-dial {width:60px;height:60px}.focus #clock {font-size:18px}
}

/* A physical player, with sleeves sized to hold the record beside it. */
.record-stage .turntable {
  left:26%;top:0;width:57%;height:100%;aspect-ratio:auto;
  background:linear-gradient(125deg,#d7dacc,#bfc8b8 65%,#b3bfaa);
  border:1px solid #e9ebdc;border-bottom:5px solid #8e9d88;border-radius:8px;
}
.turntable:after {
  content:'hokuspokus';position:absolute;right:7%;bottom:6%;
  font-size:clamp(5px,1cqw,9px);letter-spacing:.1em;color:#4b5c4d;
}
.turntable .platter {left:7.8%;top:7%;width:68.5%;bottom:auto;right:auto}
.record-stage .record-carriage {left:31%;top:8%;width:38%}
.record-stage #deck-play {left:30.4%;top:7%;width:39%;aspect-ratio:1}
.record-stage>.tonearm {right:20%;top:7%;width:6%;height:73%;opacity:1}
.record-stage .deck-led {display:block;left:29%;bottom:8%;width:4px;height:4px}
.record-stage .deck-speed {display:block;left:auto;right:8%;bottom:18%;font-size:clamp(4px,.8cqw,7px);color:#4b5c4d}
.record-stage #deck-start {
  position:absolute;left:29%;bottom:5%;width:13%;min-height:26px;padding:5px 2px;
  z-index:8;background:#e4e7d8;color:#34463a;border:1px solid #81917c;border-radius:2px;
  font-size:clamp(6px,1cqw,9px);letter-spacing:.03em;
  transition:background 180ms,transform 180ms;
}
.record-stage #deck-start:hover {background:#f0f1e6}
.record-stage #deck-start:active {transform:translateY(1px);background:#cdd6c1}
.record-stage #deck-start:focus-visible {outline:2px solid #34463a;outline-offset:3px}
.record-stage[data-busy=true] #deck-start {opacity:.5;cursor:progress}
.record-stage #record-crate {
  left:-15%;top:3%;width:40%;height:94%;gap:0;padding:3px 6px 4px 3px;
}
.record-stage .crate-record {width:30cqw;height:6cqw;min-height:28px}
.record-stage .crate-record[aria-pressed=true] {width:38cqw;height:38cqw;margin:4px 0}
.record-stage .crate-record>span {min-height:34cqw;font-size:clamp(8px,1.5cqw,13px)}
.record-stage .album-sleeve {left:-14%;top:12%;width:38%;opacity:1}
.record-stage .sleeve-placeholder>b {font-size:15cqw}
.record-stage .sleeve-placeholder>span {font-size:2.5cqw}
@media(max-width:600px) {
  .record-stage,.centerpiece:has(#record-crate:not([hidden])) .record-stage {width:94vw;aspect-ratio:1.65}
  .record-stage .turntable {left:43%;top:2%;width:57%;height:94%;border-radius:5px;border-bottom-width:3px}
  .turntable .platter {left:6.5%;top:7%;width:75%}
  .record-stage .record-carriage {left:47.3%;top:9.6%;width:41.5%}
  .record-stage #deck-play {left:46.7%;top:8.6%;width:42.7%}
  .record-stage>.tonearm {right:1%;top:9%;width:7%;height:67%}
  .record-stage #deck-start {left:46%;bottom:9%;width:19%;font-size:7px;min-height:28px}
  .record-stage .deck-speed {font-size:5px;bottom:20%}
  .record-stage #record-crate {left:0;top:8%;width:43%;height:86%;padding:2px 4px 3px 1px}
  .record-stage .crate-record {width:33cqw;height:9cqw;min-height:28px}
  .record-stage .crate-record[aria-pressed=true] {width:41.5cqw;height:41.5cqw;margin:3px 0}
  .record-stage .album-sleeve {left:0;top:15%;width:41.5%}
  .record-stage .record-label #disc-title {font-size:1.7cqw}
  .record-stage .record-label span,.record-stage .record-label small {font-size:.7cqw}
}

 /* One quiet focus instrument: time turns into the tree it is growing. */
.focus {--tree-size:.32;--tree-crown:.4;--tree-leaves:0}
.focus .focus-dial {
  width:136px;height:136px;padding:0;border:0;border-radius:50%;
  background:radial-gradient(circle,#152b321a,transparent 70%);
  cursor:pointer;isolation:isolate;
}
.focus .focus-dial:focus-visible {outline:1px solid #d5e4ba;outline-offset:5px;border-radius:50%}
.focus .focus-dial .focus-ring {transition:transform 700ms cubic-bezier(.22,1,.36,1)}
.focus .focus-dial .time-face {
  display:flex;flex-direction:column;align-items:center;gap:11px;
  transition:opacity 350ms,transform 650ms cubic-bezier(.22,1,.36,1);
}
.focus #clock {display:block;font-size:32px;line-height:1;margin:0;letter-spacing:.025em}
.focus-hint {font-size:8px;letter-spacing:.09em;opacity:.55}
.focus .tree-face {
  position:absolute;inset:9% 7% 10%;display:flex;flex-direction:column;
  align-items:center;justify-content:flex-end;gap:4px;
  opacity:0;transform:translateY(14px) scale(.75);
  transition:opacity 400ms,transform 700ms cubic-bezier(.22,1,.36,1);pointer-events:none;
}
.focus .focus-dial .focus-tree {
  position:relative;inset:auto;width:92px;height:76px;flex-shrink:0;
  transform:none;overflow:visible;shape-rendering:geometricPrecision;
}
.growing-tree {transform:scale(var(--tree-size));transform-origin:50px 80px;transition:transform 1s linear}
.tree-crown {transform:scale(var(--tree-crown));transform-origin:50px 51px;transition:transform 1s linear}
.tree-new-leaves {opacity:var(--tree-leaves);transition:opacity 1s linear}
.tree-spark {opacity:0;transition:opacity 1s}
.focus[data-complete=true] .tree-spark {opacity:1}
#focus-elapsed {font-size:9px;letter-spacing:.025em;font-variant-numeric:tabular-nums}
#focus-growth {font-size:7px;letter-spacing:.06em;opacity:.6}
.focus-dial:is(:hover,:focus-visible,[aria-pressed=true]) .time-face {opacity:0;transform:translateY(-14px) scale(.82)}
.focus-dial:is(:hover,:focus-visible,[aria-pressed=true]) .tree-face {opacity:1;transform:translateY(0) scale(1)}
.focus-dial:is(:hover,:focus-visible,[aria-pressed=true]) .focus-ring {transform:rotate(-90deg) scale(1.035)}
.focus-dial:is(:hover,:focus-visible,[aria-pressed=true]) .dial-track {stroke:#d5e4ba50}
.focus .modes button {font-size:10px;min-height:36px;padding:6px 9px}
.focus-session {gap:16px;margin-top:10px}
.focus .actions {flex-direction:column;gap:8px}
.focus .actions #toggle {font-size:11px;min-width:128px;min-height:42px}
.focus .actions #reset {width:36px;height:30px;font-size:22px}
.focus .dial-progress {stroke-width:1;stroke:#e4eacb}
.focus .dial-track {stroke-width:.65}
@media(min-width:901px) {
  .centerpiece .focus {width:300px;right:24px;bottom:76px}
}
@media(min-width:1200px) {
  .centerpiece .focus {right:4vw;bottom:15vh;width:330px}
  .focus .focus-dial {width:156px;height:156px}
  .focus #clock {font-size:37px}
  .focus .focus-dial .focus-tree {width:105px;height:86px}
  .focus-hint,#focus-elapsed {font-size:10px}
  #focus-growth {font-size:8px}
  .focus .modes button {font-size:11px}
}
@media(min-width:901px) and (max-height:600px) {
  .centerpiece .focus {bottom:68px;width:270px;right:16px}
  .focus .focus-dial {width:112px;height:112px}
  .focus #clock {font-size:27px}
  .focus .focus-dial .focus-tree {width:76px;height:60px}
  .focus .actions #toggle {min-width:114px}
}
/* Vector grooves stay clean on high density monitors, at any deck size. */
.record-grooves {position:absolute;inset:0;width:100%;height:100%;border-radius:50%;pointer-events:none;shape-rendering:geometricPrecision}
.record-grooves circle {fill:none;stroke:#fffbea25;stroke-width:.65;vector-effect:non-scaling-stroke}
.record-grooves circle:nth-child(3n) {stroke:#18282730}
.record-stage .record-carriage .vinyl {image-rendering:auto;border:1px solid #fff4cf80}
.record-stage .vinyl:after {inset:3%;border:1px solid #fffbea25}
.record-stage .record-label {border:2px solid #c4c5aa;background:radial-gradient(circle at 40% 30%,#eee8d1,#dcd8bf)}
.record-stage .record-label #disc-title {font-style:normal;font-size:clamp(9px,1.8cqw,17px);line-height:1.3}
.record-stage .turntable {
  background:linear-gradient(130deg,#dce0d2 0%,#c6cfbf 65%,#b7c3af);
  border-top:2px solid #f2f3e6;border-left:2px solid #e3e8d8;
}
.record-stage .tonearm i {background:linear-gradient(90deg,#69796d 0%,#bec9b7 28%,#f1f0df 48%,#a5b49f 72%,#73836f);border-radius:2px}
.record-stage .crate-record img,.record-stage #artwork {image-rendering:auto}
@media(prefers-reduced-motion:reduce) {
  .focus .focus-dial * {transition:none!important;animation:none!important}
}
/* Keep the record centred; tuck the focus instrument into the right-hand space. */
@media(min-width:901px) {
  .centerpiece .focus {
    position:absolute;right:20px;bottom:68px;width:250px;max-width:calc(100vw - 40px);margin:0;
  }
  .focus .focus-dial {width:112px;height:112px}
  .focus #clock {font-size:28px}
  .focus .focus-dial .focus-tree {width:88px;height:66px}
  .focus-session {gap:12px}
  .focus .modes button {font-size:9px;padding:6px}
  .focus .actions #toggle {min-width:112px;font-size:10px}
}
@media(min-width:1400px) {
  .centerpiece .focus {right:32px;bottom:12vh;width:330px}
  .focus .focus-dial {width:156px;height:156px}
  .focus #clock {font-size:37px}
  .focus .focus-dial .focus-tree {width:116px;height:92px}
  .focus .modes button {font-size:11px}
  .focus .actions #toggle {min-width:128px;font-size:11px}
}
@media(min-width:901px) and (max-height:600px) {
  .centerpiece .focus {right:16px;bottom:68px;width:240px}
  .focus .focus-dial {width:96px;height:96px}
  .focus #clock {font-size:25px}
  .focus .focus-dial .focus-tree {width:76px;height:56px}
}
/* Align focus with the deck while preserving the central player's placement. */
@media(min-width:901px) {
  .centerpiece .focus {
    top:calc(50% - 70px);bottom:auto;right:20px;
    width:min(330px,calc(50vw - min(290.4px,30.36vw,calc((100dvh - 330px) * .66)) - 40px));
    max-width:none;transform:translateY(-50%);container-type:inline-size;
  }
  .record-stage #record-crate {left:-22%}
  .record-stage .album-sleeve {left:-21%}
}
@container (max-width:245px) {
  .focus .modes {display:grid;grid-template-columns:1fr 1fr;gap:0}
  .focus .modes button {font-size:9px;min-height:30px;padding:5px 3px}
  .focus .focus-session {flex-direction:column;gap:10px}
  .focus .actions {gap:2px}
}
