/* Apple-specific adaptation, kept separate from the Android release. */
.web-music-queue-pill{position:fixed;right:16px;bottom:calc(82px + env(safe-area-inset-bottom));z-index:2000;max-width:min(85vw,340px);border:1px solid var(--line,#bec8a5);border-radius:24px;padding:10px 16px;background:var(--surface,#f8faf5);color:var(--text,#15191f);box-shadow:0 3px 16px #0002;font-size:12px}.web-music-queue-pill[hidden]{display:none}.web-music-queue-dialog{width:min(580px,92vw);border:1px solid var(--line,#ccd2c4);border-radius:20px;padding:24px;background:var(--surface,#f8faf5);color:var(--text,#15191f)}.web-music-job{padding:16px 0;border-top:1px solid var(--line,#ccd2c4)}.web-music-job p{font-size:13px;margin:6px 0}.web-music-job progress{display:block;width:100%;height:6px;margin:12px 0;accent-color:#a7c840}.web-music-job button{margin-right:8px;margin-top:8px}#webPrepareInstrumental{margin-top:12px}
:root{--pondo-safe-top:env(safe-area-inset-top,0px);--pondo-safe-bottom:env(safe-area-inset-bottom,0px);--pondo-safe-left:env(safe-area-inset-left,0px);--pondo-safe-right:env(safe-area-inset-right,0px)}
html{min-height:100%;overscroll-behavior-y:none}body{padding-top:var(--pondo-safe-top);padding-bottom:var(--pondo-safe-bottom);-webkit-text-size-adjust:100%}
html:has(body[data-web-launch="ready"]){height:100dvh;overflow:hidden}
.web-demucs-section{margin-top:18px;padding-top:16px;border-top:1px solid var(--line,#ccd2c4)}.web-demucs-section .backing-file-actions{display:flex;gap:8px;flex-wrap:wrap}.web-demucs-section #webPrepareInstrumental{margin-top:0}.web-music-job audio{display:block;width:100%;margin:12px 0}.web-music-job details{margin-top:12px;font-size:13px}
button,input,select,textarea{touch-action:manipulation}
#webLoading{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;background:#f8faf5;color:#15191f;font:600 18px 'Pondo Text',sans-serif;padding:32px;text-align:center}
#webLoading[hidden]{display:none!important}
/* The editable app stays hidden until its installed-only bootstrap completes. */
body[data-web-launch]:not([data-web-launch="ready"])>:not(#webLoading):not(#webInstallGate):not(script){display:none!important}
body[data-web-launch]:not([data-web-launch="ready"]){display:block;height:auto;min-height:100dvh;overflow:auto;background:#f8faf5;color:#15191f}
#webInstallGate{min-height:100dvh;display:grid;place-items:center;padding:24px 16px;box-sizing:border-box;font:400 15px/1.6 'Pondo Text',sans-serif}
.web-install-card{width:min(100%,480px);box-sizing:border-box;padding:28px 24px;border:1px solid #dce0d6;border-radius:22px;background:#fff}
.web-install-logo{display:block;width:155px;height:auto;margin-bottom:30px}
.web-install-eyebrow{font-size:10px;letter-spacing:.13em;font-weight:600;color:#59605a;margin:0 0 9px}
#webInstallTitle{font-size:clamp(27px,7vw,34px);line-height:1.15;letter-spacing:-.035em;margin:0 0 14px;color:#15191f}
.web-install-card p{margin:12px 0;overflow-wrap:anywhere}.web-install-card ol{padding-left:22px;margin:22px 0}.web-install-card li{padding-left:3px;margin:13px 0}
.web-install-card button{min-height:44px;border-radius:9px;padding:10px 14px;font:600 14px 'Pondo Text',sans-serif;border:1px solid #9aa091;color:#15191f;background:#fff;width:100%;cursor:pointer}
#webInstallButton{background:#d9f76e;border-color:#d9f76e}#webInstallButton[hidden]{display:none!important}
#webInstallStatus{padding:12px 14px;background:#f1f5e8;border-radius:10px;font-size:13px}
.web-install-backup{border-top:1px solid #dce0d6;margin:22px 0 12px;padding-top:12px;font-size:12px}.web-install-backup summary{cursor:pointer;min-height:44px;align-content:center;font-size:13px;font-weight:600}.web-install-backup:not([open])>:not(summary){display:none}
.web-install-card a{color:#354819;text-decoration:underline;text-underline-offset:3px}.web-install-link{display:inline-block;min-height:44px;align-content:center;font-size:13px}
.web-install-card :focus-visible{outline:2px solid #354819;outline-offset:3px}
@media(max-width:360px){#webInstallGate{padding:12px}.web-install-card{padding:23px 18px}}
.web-notice{position:fixed;z-index:100001;bottom:calc(12px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(90%,620px);background:#15191f;color:#f8faf5;padding:12px 16px;border:1px solid #809248;border-radius:12px;font:400 13px/1.5 'Pondo Text',sans-serif;box-shadow:0 8px 30px #0003;pointer-events:none}
.web-notice[hidden]{display:none}
.web-music-section{padding:16px 0;border-top:1px solid var(--line,#dce0d6)}
.web-music-section h3{font-size:16px;margin:0 0 8px}.web-music-section .hint{line-height:1.5}
#webYoutubeSearch{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:1px solid var(--line,#dce0d6);border-radius:10px;text-decoration:none;color:inherit;font-size:14px}
#webYoutubeSearch[aria-disabled=true]{opacity:.5}
.web-music-section .backing-file-actions{flex-wrap:wrap}
#searchBackingYoutube[hidden],#shareQrPdf[hidden],#saveQrPdf[hidden]{display:none!important}
.activation-fallback,[data-tab="karaoke"],#karaokePanel,#karaokeNav{display:none!important}
@media(max-width:700px){input,textarea,select{font-size:16px!important}dialog{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px)!important} .bottom-nav{padding-bottom:env(safe-area-inset-bottom)}.sign-in-card{max-height:calc(100dvh - 32px);overflow:auto}}
@media(max-width:700px){#repertoireView>.section-head{flex-wrap:wrap;gap:14px}.repertoire-head-actions{width:100%;flex-direction:row!important;display:flex!important;justify-content:flex-end;gap:8px}.repertoire-head-actions .lock-toggle{margin-right:auto}.repertoire-head-actions button{min-height:44px}}
/* The bottom bar owns the home-indicator inset; do not reserve it again on body. */
@media(max-width:699px){
 body[data-web-launch="ready"]{padding-bottom:0}
 body[data-web-launch="ready"]>.bottom-nav{padding-bottom:max(4px,var(--pondo-safe-bottom));height:auto}
}
/* Focus controls float above the home indicator on phones and tablets. */
body[data-web-launch="ready"][data-active-tab="live"][data-live-focus="true"]{padding-top:0;padding-bottom:0;padding-left:var(--pondo-safe-left);padding-right:var(--pondo-safe-right);background:var(--white)}
