/* Reading surface and physical playback controls */
:root{--lyric-highlight:#ffd783;--landscape:url("assets/coast.webp")}
.deck{border-radius:25px;background:#27282a;box-shadow:0 24px 40px -29px #17120e9c,0 4px 10px -5px #211a1766,0 0 0 1px #26231f45}
.spread{background-image:var(--landscape)}
.spread:before{background:linear-gradient(90deg,rgba(12,17,23,.52),rgba(14,19,25,.27) 72%,rgba(13,18,24,.18)),linear-gradient(180deg,#0d111e41 0%,#11172247 43%,#191b2110 74%,#13181c38 100%);box-shadow:inset 0 1px 1px #ffffff4d}
.stageLabel,.frameBtn,.appearanceBtn{color:#fff}.frameActions{display:flex;align-items:center;gap:5px}.appearanceBtn,.frameBtn{background:#2029314d;border:1px solid #ffffff61;box-shadow:inset 0 1px 1px #ffffff1a}.appearanceBtn{min-height:35px;border-radius:22px;padding:0 12px;font-size:13px}.appearanceBtn svg{width:15px;margin-right:6px}.frameBtn{min-height:35px;width:35px}.frameBtn:hover,.appearanceBtn:hover{background:#20262cb0}.stageFoot button{border-radius:18px}
.cue,.word.singing{color:#fff}.cue{font-weight:620;text-shadow:0 1px 3px #12161d82}.cue .word{cursor:pointer}
.word.read,.word.singing:after{color:var(--lyric-highlight)}#upcoming{color:#fff;opacity:.88;text-shadow:0 1px 3px #15191cad}
.mark-stress .cue .stress:before{background:#12100f;box-shadow:0 0 0 .022em #fff,0 .016em .036em #0006}
.mark-stop .cue .cut:after{background:#262329;box-shadow:0 0 0 .019em #fff}
.mark-link .cue .joint:after{border-color:#fff;filter:drop-shadow(0 1px 1px #222)}
.pitch{display:inline-block;width:.43em;height:.45em;vertical-align:.55em;margin-left:.04em;color:inherit;stroke-width:2.4;pointer-events:none}
.cue .pitch{display:none}.mark-tone .cue .pitch{display:inline-block;color:#fff;filter:drop-shadow(0 1px 1px #0007)}
.player{border-top:1px solid #666465;padding-top:19px;padding-bottom:19px;background:linear-gradient(180deg,#414244 0,#323335 9%,#292a2c 60%,#252627 100%);box-shadow:inset 0 1px 0 #ffffff17,inset 0 -2px 1px #181919}
.transport{padding:4px 6px;background:linear-gradient(180deg,#232426,#313234);border-radius:42px;box-shadow:inset 0 2px 5px #1119,0 1px 0 #ffffff24;gap:4px}
.transport #play{background:radial-gradient(ellipse at 42% 11%,#f07b64 0%,#da5845 30%,#c64535 67%,#ab392d 100%);border:1px solid #ce6451;box-shadow:inset 0 2px 2px #ffad8aab,inset 0 -3px 3px #872f2480,0 3px 4px #121212ad,0 0 0 2px #212223}
.transport #play:hover{filter:brightness(1.06)}.transport #play:active,.transport .skip:active{transform:translateY(1.5px)}.transport #play:active{box-shadow:inset 0 2px 5px #792e29aa,0 1px 0 #ffffff29}
.transport #play svg{filter:drop-shadow(0 1px 1px #6e241b70)}
#seek::-webkit-slider-runnable-track{height:5px;background:linear-gradient(to right,#f17b64 var(--progress),#18191a var(--progress));box-shadow:inset 0 1px 2px #06060699,0 1px 0 #ffffff26;border-radius:5px}
#seek::-webkit-slider-thumb{width:13px;height:13px;background:linear-gradient(#fffaf0,#beb9b0);border:1px solid #eee5d9;box-shadow:0 2px 3px #1212129c}
.adjust select{background:#2e2f30;border:1px solid #555353;border-radius:9px;padding:0 3px}.sheet{border-radius:20px;box-shadow:0 24px 70px #1511154a,inset 0 1px 0 #fff}
.secondary,.primary,.sheet input[type=file]::file-selector-button{border-radius:11px}.primary{background:linear-gradient(#cf5241,#ad372c);box-shadow:inset 0 1px 0 #f08870,0 2px 4px #8b32242b}
.markbar{gap:3px}.markbar #editMarks{margin-left:auto;border:1px solid #ccc3b9;border-radius:20px;min-height:36px}.markbar #editMarks svg{width:14px;margin-right:6px}.markbar .help{margin-left:3px}
body.focus .deck{border-radius:0}body.focus .spread{height:calc(100vh - 105px);height:calc(100dvh - 105px)}
/* The editor works on a copy until the reader saves. */
.srOnly{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.editorNav{display:flex;align-items:center;gap:7px}.editorNav select{flex:1;min-width:0;width:100%;font-size:14px;color:#322e2b;background:#fff;border:1px solid #c5bcb1;border-radius:10px;height:42px;padding:0 8px}.editorNav button{flex:none;min-height:42px;font-size:13px;padding:0 10px}
.editWords{margin:16px 0;padding:11px 13px;background:#eeeae2;border-radius:12px;font-family:Georgia,serif;font-size:22px;line-height:2.1}
.editableWord{padding:2px 3px 0;min-height:40px;font:inherit;line-height:1.6;vertical-align:baseline;border-radius:4px}.editableWord[aria-pressed=true]{background:#fff9ec;box-shadow:inset 0 -2px #bb463a}
.editWords .pitch,.endTools .pitch{color:#a34132;display:inline-block}.editWords .stress,.letters .stress{position:relative;display:inline-block;line-height:1}
.editWords .stress:before,.letters .stress:before{content:"";position:absolute;left:50%;top:.13em;transform:translate(-50%,-100%);width:.15em;height:.15em;min-width:4px;min-height:4px;border-radius:100%;background:#12100f;box-shadow:0 0 0 1px #fff}
.editWords .cut:after,.letters .cut:after{content:"";position:absolute;width:.066em;min-width:1.5px;height:.77em;top:54%;left:50%;background:#8c2019;transform:translate(-50%,-50%) rotate(-36deg);box-shadow:0 0 0 .02em #fff}
.editWords .joint:after{content:"";position:absolute;bottom:.03em;left:99%;width:.45em;height:.14em;border-bottom:1.5px solid #6e4a39;border-radius:0 0 50% 50%}.editWords .word{position:relative}
.editBlock{padding:13px 14px;border:1px solid #d8d0c5;border-radius:12px;background:#fffefa}.editorTools,.endTools,.resetTools,.editorFooter,.letters,.swatches,.sceneOptions{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.editorTools button,.endTools button{font-size:13px;min-height:38px;border:1px solid #d8d0c5;border-radius:19px;color:#554b45;padding:0 11px;background:#f6f2ed}
.editorTools button[aria-pressed=true],.endTools button[aria-pressed=true]{background:#77392e;color:#fff;border-color:#77392e}.endTools button[aria-pressed=true] .pitch{color:white}
.sheet .hint{font-size:12px;color:#615851;margin:9px 0 5px}
.letters{gap:4px;padding:4px 0}.glyph{min-width:34px;min-height:44px;border-radius:8px;border:1px solid #ddd5cb;font:600 24px/1 Arial,sans-serif;background:#fff}.glyph[aria-pressed=true]{background:#f7e4ce;border-color:#ae795d}.glyph span{position:relative}
.endTools{margin:13px 0 5px}.endTools>span,.hexLabel{color:#685e56;font-size:13px}.endTools .pitch{width:17px;height:16px;margin-right:5px}.resetTools button{font-size:12px;color:#655b54;text-decoration:underline;text-underline-offset:3px;padding:0 6px}.editorFooter{justify-content:flex-end;border-top:1px solid #ddd5ca;margin-top:10px;padding-top:13px}.editorFooter>span{margin-right:auto;flex:1;color:#6a5243;font-size:12px}.editorFooter .primary{margin:0}.sheet h3{font-size:14px;margin:16px 0 6px}
.stylePreview{min-height:112px;padding:24px 16px;display:block;border-radius:13px;background:linear-gradient(90deg,#172029ab,#14212c55),var(--preview-bg) center/cover;color:white;font:600 21px/1.5 "Segoe UI",Arial,sans-serif}.stylePreview span{color:var(--preview-ink)}
.swatches{gap:3px}.swatches button{width:38px;height:40px;min-height:40px;border-radius:22px}.swatches button i{width:26px;height:26px;border-radius:100%;box-shadow:inset 0 0 0 1px #0002}.swatches button[aria-pressed=true] i{outline:2px solid #383431;outline-offset:2px}.hexLabel{display:inline-flex;align-items:center;gap:6px;margin-left:3px}.sheet .hexLabel input{width:85px;padding:7px;font:13px Consolas,monospace}
.sceneOptions{align-items:stretch;gap:8px}.sceneOptions button{flex:1 1 80px;min-width:65px;max-width:150px;display:block;border:1px solid #c8c0b6;text-align:left;padding:3px 4px 6px;border-radius:10px;font-size:12px}.sceneOptions button[aria-pressed=true]{border:2px solid #af4837;padding:2px 3px 5px;background:#fff2e6}.sceneOptions i{display:block;border-radius:7px;height:45px;background-size:cover;background-position:center;margin-bottom:4px}.photoPick{display:inline-flex;align-items:center;margin-top:5px;min-height:38px;text-decoration:underline;cursor:pointer;font-size:13px;color:#90402e}.photoPick:focus-within,.sheet:has(#photoFile:focus-visible) .photoPick{outline:2px solid #b34e39}
@media(max-width:600px){.deck{border-radius:18px}.stageTop{top:10px}.appearanceBtn{min-height:33px;padding:0 9px;font-size:12px}.frameBtn{height:33px;min-height:33px;width:33px}.player{grid-template-columns:118px minmax(0,1fr);padding:12px 11px 7px;gap:0 10px}.transport{gap:0;padding:3px}.markbar{padding:6px 0;gap:0}.markbar button{padding:0 6px}.markbar #editMarks{margin-left:2px;padding:0 8px}.markbar .help{width:30px;margin-left:auto}.markbar #toneMark b{font-size:15px}.editorNav{gap:4px}.editWords{padding:9px;margin:10px 0}.glyph{min-width:32px}.editorFooter{position:sticky;bottom:-16px;background:#fbf9f6;padding-bottom:4px}.editBlock{padding:10px}.adjust select{min-height:30px}.desk{padding-bottom:12px}body.focus .spread{height:calc(100vh - 116px);height:calc(100dvh - 116px)}}
@media(max-height:520px) and (orientation:landscape){.player{padding:4px 3%}.transport{padding:2px 4px}.stageTop{top:4px}.markbar{padding:0}body.focus .spread{height:calc(100vh - 60px)}}


.cue .word>.pitch,.editWords .word>.pitch{position:absolute;right:-.20em;top:.01em;width:.37em;height:.33em;margin:0}
.editWords .word>.pitch{top:.02em}
.transport .skip{border:1px solid #1f2021;background:linear-gradient(160deg,#404143,#2c2d2f 70%);box-shadow:inset 0 1px 1px #ffffff26,0 1px 2px #151515b3}
.transport .skip:hover:not(:disabled){background:linear-gradient(160deg,#48494b,#353537)}
.transport .skip:active:not(:disabled){box-shadow:inset 0 1px 3px #17171799}
@media(min-width:801px){.transport #play{width:60px;height:60px}.transport{padding:5px 7px;gap:7px}.transport .skip{width:38px;height:38px;min-height:38px}}
