/* Dedicated prologue chrome, independent of the other app surfaces. */
body[data-surface=prologue]>header{display:flex!important;align-items:center!important;justify-content:space-between;flex-wrap:nowrap!important;gap:24px!important;width:min(var(--page-width,1240px),calc(100% - 2 * var(--page-gutter,24px)));max-width:none;margin:0 auto!important;padding:20px 0!important;min-height:0}
body[data-surface=prologue]>header>.app-brand{display:block;flex:0 0 auto;margin:0;justify-self:auto}
body[data-surface=prologue]>header>.app-brand img{display:block;width:240px!important;max-width:100%;height:auto!important}
body[data-surface=prologue]>header>.header-actions{display:flex;flex-direction:column;align-items:flex-end!important;gap:10px;width:auto;min-width:0;max-width:100%;margin:0}
body[data-surface=prologue]>header .music-controls{justify-content:flex-end;gap:8px;min-width:0}
body[data-surface=prologue]>header .music-choice select{width:190px;max-width:100%;min-height:40px}
body[data-surface=prologue]>header .music-toggle{min-height:40px!important;width:40px;padding:0!important;flex:none}
body[data-surface=prologue]>header .music-volume{flex:none;margin:0}
body[data-surface=prologue]>header .headtools{flex-direction:row;flex-wrap:wrap!important;justify-content:flex-end!important;gap:8px!important;width:auto}
body[data-surface=prologue]>header .headtools button{flex:0 1 auto!important;width:auto!important;min-height:42px!important;padding:10px 14px!important;white-space:nowrap!important}
body[data-surface=prologue]>footer{display:flex!important;align-items:center;justify-content:space-between;flex-direction:row;flex-wrap:wrap;gap:12px 24px;width:min(var(--page-width,1240px),calc(100% - 2 * var(--page-gutter,24px)));max-width:none;margin:0 auto!important;padding:18px 0!important;font-size:12px!important;line-height:1.5;min-height:0}
body[data-surface=prologue]>footer>a{text-decoration:none;font-weight:600}
body[data-surface=prologue]>footer>#save-status{display:block;margin:0;font-size:12px;overflow-wrap:anywhere}
body[data-surface=prologue] #save-progress-dialog{width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px!important}
body[data-surface=prologue] #save-progress-dialog .dialoghead{margin:0 0 16px;align-items:center;gap:12px}
body[data-surface=prologue] #save-progress-dialog .dialoghead>.eyebrow{display:none}
body[data-surface=prologue] #save-progress-close{margin-left:auto;padding:8px 0!important;font-size:13px!important;min-height:40px!important}
body[data-surface=prologue] #save-progress-title{font-size:36px!important;line-height:1.12!important;margin:0 0 12px!important}
body[data-surface=prologue] #save-progress-dialog>p{margin:0 0 18px;line-height:1.5}
body[data-surface=prologue] #save-progress-form>label{margin:14px 0 6px}
body[data-surface=prologue] #save-progress-form>.progress-updates-choice{display:flex;align-items:flex-start;gap:10px;font-size:13px!important;font-weight:400!important;line-height:1.5;margin:16px 0}
body[data-surface=prologue] .progress-updates-choice input{flex:0 0 18px;width:18px;height:18px;margin:1px 0 0}
body[data-surface=prologue] #progress-email-feedback:empty,body[data-surface=prologue] .callnote:empty{display:none}
@media(max-width:850px){
 body[data-surface=prologue]>header{flex-direction:column;align-items:center!important;gap:16px!important;padding:18px 0!important}
 body[data-surface=prologue]>header>.app-brand img{width:210px!important}
 body[data-surface=prologue]>header>.header-actions{width:100%;align-items:center!important;gap:12px}
 body[data-surface=prologue]>header .music-controls{justify-content:center;max-width:100%}
 body[data-surface=prologue]>header .headtools{justify-content:center!important;width:100%}
 body[data-surface=prologue]>header .headtools button{padding:10px 12px!important;font-size:13px!important}
 body[data-surface=prologue]>footer{align-items:flex-start;gap:8px;padding:16px 0!important}
}
@media(max-width:380px){
 body[data-surface=prologue]>header .music-choice select{width:155px}
 body[data-surface=prologue]>header .music-volume input[type=range]{width:48px}
 body[data-surface=prologue]>header .headtools{gap:4px!important}
 body[data-surface=prologue]>header .headtools button{font-size:12px!important;padding:9px 10px!important}
}
@media(max-width:850px){
 body[data-surface=prologue]>header .music-controls{display:grid!important;grid-template-columns:36px minmax(0,150px) 66px!important;width:min(100%,264px)!important;gap:6px!important;align-items:center;justify-content:center!important}
 body[data-surface=prologue]>header .music-toggle{width:36px!important;height:36px!important;min-height:36px!important;padding:0!important}
 body[data-surface=prologue]>header .music-choice{margin:0!important;min-width:0}
 body[data-surface=prologue]>header .music-choice select{width:100%!important;max-width:150px!important;height:36px!important;min-height:36px!important;font-size:13px!important;line-height:1.3!important;padding:6px 4px!important}
 body[data-surface=prologue]>header .music-volume{grid-column:3!important;grid-row:1;gap:4px!important;width:66px;min-width:0;height:36px}
 body[data-surface=prologue]>header .music-volume svg{width:14px;height:14px;flex:0 0 14px}
 body[data-surface=prologue]>header .music-volume input[type=range]{width:48px!important;max-width:48px!important;min-height:0!important;height:24px!important;margin:0!important;padding:0!important;border:0!important}
 body[data-surface=prologue]>header .header-actions{gap:8px!important}
}
/* Fit the handset to the viewport; only the transcript scrolls. */
body[data-surface=prologue] #call{width:min(360px,calc(100vw - 24px))!important;max-height:calc(100dvh - 24px)!important;padding:4px!important;overflow:hidden;border-radius:36px}
body[data-surface=prologue] #call .phone-shell{display:flex;flex-direction:column;height:min(600px,calc(100dvh - 40px));min-height:0;padding:9px 8px!important;border-radius:32px!important;box-sizing:border-box}
body[data-surface=prologue] #call .phone-hardware{height:14px;min-height:14px;flex:none;margin-bottom:5px}
body[data-surface=prologue] #call .phone-screen{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;padding:12px 12px 8px!important;border-radius:24px}
body[data-surface=prologue] #call .phone-topline{flex:none;min-height:32px;gap:8px}
body[data-surface=prologue] #call .phone-brand{width:80px!important;height:32px!important;object-fit:contain}
body[data-surface=prologue] #call .caller{flex:none;gap:10px;margin:0!important;padding:10px 0!important}
body[data-surface=prologue] #call .caller .portrait{width:44px;height:44px;flex:none}
body[data-surface=prologue] #call .caller h2{font-size:24px!important;line-height:1.15!important;margin:2px 0}
body[data-surface=prologue] #call .caller-label{font-size:9px!important}
body[data-surface=prologue] #call .caller-location{font-size:11px!important}
body[data-surface=prologue] #call .transcript-head{flex:none;padding:10px 0 8px;font-size:12px}
body[data-surface=prologue] #call .transcript-scroll{flex:1 1 auto;height:auto!important;min-height:0;max-height:none;overflow:auto;padding:0 6px}
body[data-surface=prologue] #call .transcript-tools{flex:none;display:flex;flex-wrap:nowrap;gap:6px;margin-top:8px;padding-top:8px}
body[data-surface=prologue] #call .transcript-tools button{min-width:0;min-height:40px!important;padding:7px 5px!important;font-size:11px!important}
body[data-surface=prologue] #call .phone-controls{flex:none;padding:8px 0 5px!important}
body[data-surface=prologue] #call #call-close{min-height:44px!important;padding:8px 16px!important;width:75%;font-size:14px!important}
body[data-surface=prologue] #call .phone-home{flex:none;height:3px;margin:3px auto 0}
@media(max-width:540px){body[data-surface=prologue] #call{width:min(340px,calc(100vw - 24px))!important}}
@media(max-height:500px){
 body[data-surface=prologue] #call .phone-hardware,body[data-surface=prologue] #call .phone-home,body[data-surface=prologue] #call .phone-topline{display:none}
 body[data-surface=prologue] #call .caller{padding:6px 0!important;margin:0!important}
 body[data-surface=prologue] #call .caller-label,body[data-surface=prologue] #call .caller-location{display:none}
 body[data-surface=prologue] #call .transcript-head{padding:6px 0}
}
