/* Source-reviewed mobile safeguards; device/browser visual checks are still required. */
.app{padding-top:env(safe-area-inset-top,0px);padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
.reading-bar{top:env(safe-area-inset-top,0px)}
.rt-note-dialog{bottom:var(--rt-keyboard-inset,0px);max-height:var(--rt-note-max-height,90dvh);overscroll-behavior:contain}
.rt-tools-heading>span,.rt-card-heading .rt-reference,.rt-card-link,.home-resume>span,.resume{min-width:0;overflow-wrap:anywhere}
.rt-tools-heading .rt-icon-button{flex-shrink:0}
@media(max-width:900px){
 .app{padding-left:max(22px,env(safe-area-inset-left,0px));padding-right:max(22px,env(safe-area-inset-right,0px))}
 .bottom-nav{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
 .reading-bar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px}
 .reading-bar>label,.chapter-picker{min-width:0;max-width:100%;width:100%}
 .reading-bar select{min-width:0;width:100%;max-width:100%;text-overflow:ellipsis}
 .reading-bar #save-section,.reading-bar #bible-save{max-width:108px;white-space:normal}
 .rt-tabs{flex-wrap:wrap}
}
@media(pointer:coarse),(max-width:500px){
 input,select,textarea,.chapter-picker select,.bible-book-picker select{font-size:16px}
 .rt-swatch{min-width:44px;min-height:44px}
}
.rt-reading-hint>a{display:inline-flex;align-items:center;min-height:44px}

/* Scanned talks read continuously, with stable image space while loading. */
body[data-route="talks"] .original-page{display:block;width:100%;height:auto;max-width:760px;margin-inline:auto;background:white}
body[data-route="talks"] .source-figure{scroll-margin-top:95px}
.talks-transcription-note{font:400 .9rem/1.6 var(--font-body, sans-serif);padding:14px 16px;border-left:3px solid var(--gold,#b99a53);background:var(--surface,#fff);border-radius:6px}
#talk-query{width:100%;min-height:48px;font-size:16px}
