/* Full viewport editors; scroll the text, keep navigation and save available. */
body :is(.lf-edit-dialog,.editor-dialog,.editor-dialog.worship-fullscreen,.ar-dialog,.assistant-dialog){position:fixed;inset:var(--app-viewport-top,0px) 0 auto 0;transform:none;margin:0;width:100%;max-width:100%;height:var(--app-viewport-height,100dvh);min-height:0;max-height:var(--app-viewport-height,100dvh);box-sizing:border-box;border:0;border-radius:0;padding:0;overflow:hidden;background:var(--warm-surface,#fff);color:var(--warm-ink,#172a43)}
.lf-edit-dialog::backdrop{background:#172a4366}
.lf-edit-dialog[open]{display:flex;flex-direction:column}
.lf-edit-dialog .lf-editor{display:flex;flex-direction:column;flex:1;width:100%;max-width:none;min-width:0;min-height:0;margin:0;padding:0;overflow:hidden}
.lf-editor-header{display:flex;gap:12px;align-items:center;flex-shrink:0;padding:max(10px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));border-bottom:1px solid var(--warm-line,#cbd5e1)}
.lf-editor-header>button{min-height:44px;flex-shrink:0;white-space:nowrap}.lf-editor-header input{margin:0;min-width:0;font-size:18px;font-weight:650;padding:10px 12px}
.lf-edit-dialog .lf-editor-content-label{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;margin:0;padding:8px max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left));font-size:13px;gap:5px}
.lf-edit-dialog .lf-editor-content-label>textarea{flex:1;width:100%;height:100%;min-height:0;max-height:none;resize:none;overflow:auto;overscroll-behavior:contain;scroll-padding:20px;line-height:1.9;font-size:18px;margin:0;padding:16px;touch-action:pan-y pinch-zoom}
.lf-editor-options,.note-editor-options{flex-shrink:0;padding:0 16px}.lf-editor-options>summary,.note-editor-options>summary{min-height:40px;padding:9px 0;cursor:pointer;font-size:13px;font-weight:600}.lf-editor-options[open],.note-editor-options[open]{max-height:30%;overflow:auto;overscroll-behavior:contain}.lf-editor-options label{margin:9px 0}.lf-editor-options .lf-actions{margin:8px 0}.lf-editor-options .lf-note{font-size:11px;margin:6px 0}.lf-editor-options .lf-photos:empty{display:none}
.lf-editor-footer{display:flex;align-items:center;gap:12px;flex-shrink:0;padding:8px max(16px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));border-top:1px solid var(--warm-line,#cbd5e1)}.lf-editor-footer>p{flex:1;min-width:0;margin:0;font-size:12px}.lf-editor-footer>button{min-height:44px;white-space:nowrap}
.editor-dialog .content-editor-body{height:100%;min-height:0;overflow:auto}.editor-dialog.note-fullscreen .content-editor-body{padding:0;overflow:hidden}.note-fullscreen .content-editor{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}.note-fullscreen .content-dialog-head{margin:0;padding:12px 20px;border-bottom:1px solid var(--warm-line,#cbd5e1);align-items:center;flex-shrink:0}.note-fullscreen .content-dialog-head h2{font-size:20px}.note-fullscreen .content-dialog-head .eyebrow{display:none}.note-fullscreen .note-editor-title{margin:0;padding:6px 20px;flex-shrink:0;font-size:12px}.note-fullscreen .note-editor-title input{font-size:17px;margin-top:4px;min-height:42px;padding:7px 10px}
.note-fullscreen .note-editor-body-label{display:flex;flex-direction:column;flex:1;min-height:0;margin:0;padding:4px 20px 8px;gap:4px}.note-fullscreen .note-editor-body-label textarea{height:100%;width:100%;flex:1;min-height:0;max-height:none;resize:none;overflow:auto;overscroll-behavior:contain;scroll-padding:20px;font-size:18px;line-height:1.9;margin:0;touch-action:pan-y pinch-zoom}.note-fullscreen .note-editor-options{padding-inline:20px}.note-fullscreen footer.content-actions{margin:0;padding:8px 20px max(8px,env(safe-area-inset-bottom));border-top:1px solid var(--warm-line,#cbd5e1);flex-shrink:0;display:flex;align-items:center}.note-fullscreen footer .content-save-status{flex:1;min-width:0;padding:0;margin:0;min-height:0}.note-fullscreen footer button{min-height:44px}
body #message-input{min-height:72px;max-height:320px;line-height:1.7;font-size:17px}body :is(.home-chat-card,.chat-panel) .compose-wrap{max-height:calc(var(--app-viewport-height,100dvh) * .60);width:100%;max-width:none;margin-inline:0;box-sizing:border-box}body #composer{width:100%;max-width:none;margin-inline:0}
body .ar-dialog{overflow:auto}body .ar-dialog .ar-form textarea{min-height:clamp(160px,38dvh,480px)}body .assistant-dialog{overflow:auto}
@media(max-width:650px){.lf-editor-header{gap:8px;padding-inline:10px}.lf-editor-header input{font-size:16px}.lf-edit-dialog .lf-editor-content-label{padding-inline:10px}.lf-edit-dialog .lf-editor-content-label>textarea,.note-fullscreen .note-editor-body-label textarea{font-size:17px;padding:12px}.note-fullscreen .content-dialog-head{padding:8px 12px}.note-fullscreen .note-editor-title,.note-fullscreen .note-editor-body-label,.note-fullscreen .note-editor-options{padding-inline:12px}.note-fullscreen footer.content-actions{padding-inline:12px}.lf-editor-footer{padding-inline:10px}body #message-input{font-size:16px}}
