@media(max-width:700px){
 body{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
 body>aside{flex:none}body>main{flex:1 0 auto;min-width:0;width:100%}
}

@media print{body{display:block}}
/* Keep all seven plan steps visible instead of shrinking them into a small nested scroller. */
@media(min-width:701px){
 body>aside{padding-top:22px;padding-bottom:22px}
 body>aside>.sub{margin:4px 0 14px}
 body>aside>.church{padding:11px 12px;margin-bottom:14px}
 body>aside>.label{margin-bottom:7px}
 body>aside>#nav{flex:0 0 auto;min-height:0;overflow:visible}
 body>aside>#nav>button{padding:8px 15px;margin-bottom:2px;min-height:36px;line-height:20px}
 body>aside .plan-step-subnav{margin-bottom:6px}
 body>aside .plan-step-subnav button{padding:6px 7px;margin:1px 0;min-height:30px;line-height:18px}
 body>aside .workspace-tool-items>.app-guide-menu{padding:8px 15px;margin:2px 0;min-height:36px;line-height:20px}
}
@media(min-width:701px) and (max-height:650px){
 body>aside{padding-top:14px;padding-bottom:14px}
 body>aside>.brand img{width:56px;height:68px}
 body>aside>.sub{margin:3px 0 10px}
 body>aside>.church{padding:8px 12px;margin-bottom:10px}
 body>aside .plan-step-subnav button{padding-top:5px;padding-bottom:5px;min-height:28px}
}

.mobile-session-gate{display:none}
@media(max-width:700px){
 .mobile-session-gate>button{display:flex;align-items:center;justify-content:center;min-width:78px;min-height:44px;padding:10px 13px;margin:0;border:1px solid #d5e2d5;border-radius:12px;background:#f2f7f1;color:#29583e;font-size:13px;font-weight:600;white-space:nowrap}
 .mobile-session-gate>button:focus-visible{outline:2px solid var(--green);outline-offset:3px}
 .mobile-session-gate{display:flex;overflow:visible;position:absolute;right:max(16px,env(safe-area-inset-right,0px));top:calc(12px + env(safe-area-inset-top,0px));margin:0;width:auto}
 .login-layer.has-mobile-session-action{padding-top:calc(72px + env(safe-area-inset-top,0px))}
 body .login-layer.has-mobile-session-action .login-card{max-height:calc(100dvh - 92px - env(safe-area-inset-top,0px))}
 .login-layer.has-mobile-session-logout .login-card>a[href^="/signout"]{display:none}
}
@media print{.mobile-session-gate{display:none!important}}
@media(max-width:700px){
 .login-layer.has-mobile-session-action{grid-template-columns:minmax(0,1fr)}
 body .login-layer.has-mobile-session-action .login-card{width:100%;max-width:450px;min-width:0;justify-self:center}
}

/* A single account menu in the upper-right corner at every screen size. */
body #headerAccountArea{margin-left:auto;min-width:0;flex:none}
body .workspace-account span{background:transparent;color:inherit;padding:0;margin:0;border-radius:0}
body .workspace-account{font-weight:400;letter-spacing:normal;text-align:left}
body .workspace-account{position:relative;flex:none;margin:0;font-size:13px;color:var(--ink,#243c37)}
body .workspace-account>summary{display:flex;align-items:center;gap:9px;min-height:44px;padding:5px 10px;border:1px solid transparent;border-radius:12px;cursor:pointer;list-style:none;user-select:none;background:transparent}
.workspace-account>summary::-webkit-details-marker{display:none}
body .workspace-account>summary:hover,body .workspace-account[open]>summary{background:#edf2ef;border-color:#dfe6e1}
.workspace-account>summary:focus-visible{outline:2px solid var(--green,#246953);outline-offset:3px}
.workspace-account>summary>.avatar{display:grid;place-items:center;flex:none;margin:0;width:32px;height:32px;border-radius:50%;background:#e5efe9;color:#285b43;font-size:14px}
.workspace-account>summary>svg{width:16px;height:16px;flex:none;color:#78847e}
.workspace-account-identity{display:flex;flex-direction:column;min-width:0;max-width:190px;gap:2px;text-align:left;line-height:1.25}
.workspace-account-identity strong,.workspace-account-identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-account-identity strong{font-size:13px;font-weight:600}.workspace-account-identity small{font-size:11px;color:#748078}
body .workspace-account-panel{position:absolute;z-index:28;right:0;top:calc(100% + 8px);width:280px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 110px);overflow:auto;overscroll-behavior:contain;padding:10px;border:1px solid #dfe6e1;border-radius:18px;background:#fffffff5;box-shadow:0 16px 50px #203e3226;backdrop-filter:blur(18px)}
.workspace-account-panel .account-summary{padding:10px 10px 6px;overflow-wrap:anywhere}.workspace-account-panel .account-summary strong{font-size:14px}.workspace-account-panel .account-summary p{font-size:12px;color:#748078;margin:4px 0;line-height:1.5}
.workspace-account-panel .account-save-status{padding:0 10px 12px;margin:0 0 6px;font-size:11px;color:#617468;border-bottom:1px solid #e7ece8}
.workspace-account-panel .account-actions{display:grid;gap:3px}
body .workspace-account-panel .account-actions>*{display:flex;align-items:center;justify-content:flex-start;min-height:44px;width:100%;padding:10px 12px;margin:0;border:0;border-radius:10px;background:transparent;box-shadow:none;text-align:left;font-size:13px;line-height:1.5;color:inherit;text-decoration:none;white-space:normal}
body .workspace-account-panel .account-actions>*:hover{background:#edf2ef}.workspace-account-panel .account-actions>*:focus-visible{outline:2px solid var(--green,#246953);outline-offset:-2px}
body .workspace-account-panel .account-actions>.logout-link{color:#a44938}
body>main>header>.crumb{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:700px){
 body>aside>.brand{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:72px;padding-right:0;overflow:visible}
 body>aside>.brand>a{min-width:0;max-width:calc(100% - 124px);gap:4px}
 body>aside>.brand .brand-wordmark{font-size:22px}body>aside>.brand img{width:52px;height:64px}
 body>aside>.brand>.workspace-account{margin-left:auto;align-self:flex-start;margin-top:9px}
 body .workspace-account>summary{gap:6px;padding:5px;min-height:44px}
 .workspace-account-identity{max-width:74px}.workspace-account-identity strong{font-size:12px}.workspace-account-identity small{font-size:10px}
 .workspace-account>summary>.avatar{width:26px;height:26px;font-size:12px}.workspace-account>summary>svg{width:12px;height:12px}
 body .workspace-account-panel{top:calc(100% + 6px);max-height:calc(100dvh - 100px - env(safe-area-inset-top,0px))}
}
@media(max-width:360px){body>aside>.brand .brand-wordmark{font-size:20px}body>aside>.brand img{width:44px;height:58px}.workspace-account-identity{max-width:60px}body>aside>.brand>a{max-width:calc(100% - 110px)}}
@media print{.workspace-account,#headerAccountArea{display:none!important}}

#mobileToolBack,.workspace-expanded-back{display:none}
body.mobile-tool-window>aside{display:none}
body.mobile-tool-window>main{width:100%;min-width:0}
body.mobile-tool-window #mobileToolBack,
body:is([data-ui-page="bulletin"],[data-ui-page="attendance"],[data-ui-page="minutes"],[data-ui-page="editor"],[data-ui-page="preview"]) #mobileToolBack,
body.bulletin-expanded .bulletin-heading .workspace-expanded-back,
body.minutes-expanded .minutes-heading .workspace-expanded-back{display:inline-flex;align-items:center;gap:6px;min-height:40px;white-space:nowrap;flex:none}
body:is(.bulletin-expanded,.minutes-expanded) #mobileToolBack{display:none}
body.bulletin-expanded .bulletin-workspace,body.minutes-expanded .minutes-workspace{display:flex;flex-direction:column}
body.bulletin-expanded .bulletin-workspace>iframe{flex:1;height:0}
body.minutes-expanded #minutesEditor{flex:1;min-height:0}
body.minutes-expanded #minutesEditor>iframe{height:100%}
#mobileToolBack{margin-right:10px}
body.mobile-tool-window>main>header{gap:8px}
@media(max-width:700px){
 #mobileToolBack,.workspace-back.workspace-expanded-back{padding:7px 10px;font-size:12px;margin-right:0}
 body.bulletin-expanded #app .bulletin-heading{flex-wrap:wrap}
}
@media print{#mobileToolBack,.workspace-expanded-back{display:none!important}}
