@font-face{font-family:"Aqua IBM Plex Mono";src:url("assets/opening-type/flow-mono.woff2") format("woff2");font-weight:400;font-display:swap}
/* The playback button stays on the footer baseline while the volume opens above it. */
#sound-control{--sound-font:clamp(11px,.833333vw,16px);--sound-line-half:.69;position:fixed;left:50%;bottom:max(0px,calc(3.8svh + var(--sound-font) * var(--sound-line-half) - 25px));z-index:5;width:0;height:50px;pointer-events:none}
#sound-control [hidden]{display:none!important}
.sound-label{position:absolute;left:0;top:3px;translate:-50% 0;display:flex;align-items:center;justify-content:center;gap:.42em;min-width:44px;width:max-content;height:44px;margin:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-size:var(--sound-font);font-weight:400;line-height:calc(var(--sound-line-half) * 2);letter-spacing:.045em;cursor:pointer;pointer-events:auto}
.sound-label::before{content:"";box-sizing:border-box;display:block;width:.64em;height:.76em;border-style:solid;border-width:.38em 0 .38em .64em;border-color:transparent transparent transparent currentColor}
#sound-control[data-playing="true"] .sound-label::before{border:0;border-inline:.2em solid currentColor}
.sound-label:focus-visible,#sound-volume:focus-visible{outline:1px solid currentColor;outline-offset:2px}
.sound-range{position:absolute;left:0;bottom:calc(100% - 4px);translate:-50% 0;display:flex;align-items:center;gap:7px;width:max-content;padding:0 6px;min-height:44px;pointer-events:auto;background:#fff}
.sound-endpoint{font:400 12px/1 "Aqua IBM Plex Mono",monospace;font-variant-numeric:tabular-nums;color:#555;letter-spacing:0;white-space:nowrap}
#sound-volume{appearance:none;-webkit-appearance:none;width:62px;height:44px;margin:0;padding:0;border:0;border-radius:0;background:transparent;cursor:ew-resize;touch-action:pan-y}
#sound-volume::-webkit-slider-runnable-track{height:1px;background:#888}
#sound-volume::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:2px;height:24px;margin-top:-11.5px;border:0;border-radius:0;background:#555}
#sound-volume::-moz-range-track{height:1px;background:#888}
#sound-volume::-moz-range-thumb{width:2px;height:24px;border:0;border-radius:0;background:#555}
.profile-page #sound-control{--sound-font:11px;--sound-line-half:.9}
@media(max-width:700px){
 #sound-control{--sound-font:10.5px;left:5vw;bottom:calc(max(16px,env(safe-area-inset-bottom)) + var(--sound-font) * var(--sound-line-half) - 25px)}
 .sound-label,.sound-range{translate:0 0;justify-content:flex-start}
}
@media(min-width:701px) and (max-width:760px){
 :is(.writing-v3,body:has(.site-global-footer)) #sound-control{--sound-font:10.5px;left:5vw;bottom:calc(max(16px,env(safe-area-inset-bottom)) + var(--sound-font) * var(--sound-line-half) - 25px)}
 :is(.writing-v3,body:has(.site-global-footer)) :is(.sound-label,.sound-range){translate:0 0;justify-content:flex-start}
}
@media(max-width:650px){.profile-page #sound-control{--sound-font:10px}}
@media(min-width:851px){#photo-view .view-bar{bottom:calc(3.8svh + 48px)}}
#book-reader .reader-tools,#viewer>.controls{margin-bottom:78px}
@media(max-width:760px){#book-reader .reader-tools{margin-bottom:130px}}
