.station-web{margin:auto;width:min(100%,calc((100svh - 100px - env(safe-area-inset-bottom)) * .5625));min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding-bottom:env(safe-area-inset-bottom)}
.station-web .stage,.station-web .view{width:100%;height:auto;min-height:0}
.station-web .stage.expanded{width:100vw;height:100dvh;display:grid}
.station-web .expanded .view{width:min(100vw,56.25dvh)}
.bar{background:#1c382f;padding:5px 10px;border-top:1px solid #a78e5e}
#empty,#controls,dialog header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.bar strong{font:600 16px var(--serif)}
.bar button,dialog button{background:#e9dbba;color:#213b31;border:0;border-radius:4px;padding:0 12px;min-height:42px}
.now{flex:1;min-width:0}.now strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#seek{display:block;width:100%;height:19px;margin:0;accent-color:#ddbd7f;cursor:pointer}
.rail-keys{display:flex;align-items:center;justify-content:space-between;gap:2px}
.rail-keys button{display:grid;place-items:center;flex:1;min-width:0;min-height:42px;padding:0;border-radius:20px;background:transparent;color:#eaddbd}
.rail-keys button span{font:13px/1 system-ui}
.rail-keys svg{width:22px;height:22px}
.rail-keys button[aria-pressed=true]{background:#476352;color:#fff1cb;box-shadow:inset 0 0 0 1px #c7aa71}
.bar #replace,.bar #chooseSong,dialog button{border:1px solid #ae956c;border-radius:10px;box-shadow:0 1px 2px #12271f22}
@media(hover:hover){.rail-keys button:hover{box-shadow:inset 0 0 0 1px #b19971}.bar #replace:hover,dialog button:hover{filter:brightness(1.06)}}
dialog{width:min(400px,calc(100vw - 24px));max-height:74dvh;border:1px solid #b59a68;border-radius:12px;padding:18px;color:#243d30;background:#efe4cc}
dialog::backdrop{background:#091b17a8}dialog header{margin-bottom:12px}dialog h2{font:600 23px var(--serif)}
dialog #pick,#songs button{width:100%;text-align:left;margin-bottom:5px}dialog #pick{background:#28513f;color:#fff2d7}
dialog details{margin-top:12px}dialog summary{cursor:pointer}dialog h3{font-size:15px}
#notice:empty,#songError:empty{display:none}#notice,#sceneError{font-size:13px}
@media(max-width:600px){dialog{margin:auto auto env(safe-area-inset-bottom);width:100%;max-width:100%;border-radius:16px 16px 0 0}}
html,body{height:100%;overflow:hidden;overscroll-behavior:none}
.station-web .stage{touch-action:pinch-zoom}
.station-web .stage.expanded + .bar{visibility:hidden}
#sheet{overflow-y:auto;overscroll-behavior:contain}
