/* One page header for every ministry workspace destination. */
#main>.workspace-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;padding:26px 0 22px;margin:0 0 24px;border-bottom:1px solid var(--line)}
#main>.workspace-header .page-heading{min-width:0;padding:0}
#main>.workspace-header h1{font-size:clamp(26px,2.2vw,32px);line-height:1.2;letter-spacing:-.025em;margin:0;font-weight:650}
#main>.workspace-header .page-heading>p{font-size:14px;line-height:1.55;margin:8px 0 0;color:var(--muted)}
#main>.workspace-header .header-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:18px;max-width:none;margin:0}
#main>.workspace-header .creation-actions,#main>.workspace-header .header-utilities{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;min-width:0}
#main>.workspace-header .creation-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:8px;order:0;margin:0;min-height:44px;width:auto;padding:10px 14px;font-size:13px;line-height:1.3;white-space:nowrap}
#main>.workspace-header .creation-actions>button svg{width:16px;height:16px}
#main>.workspace-header .admin-link{display:inline-flex;align-items:center;justify-content:center;order:0;margin:0;min-height:44px;padding:10px 14px;font-size:13px;line-height:1.3;white-space:nowrap}
#main>.workspace-header .header-utilities{flex:none}
#main>.workspace-header .alerts-button{position:relative;inset:auto;order:0;margin:0;width:44px;height:44px}
#main>.workspace-header .account-control{position:relative;order:0;margin:0}
#main>.workspace-header #preview-options{display:inline-grid;place-items:center;flex:none;width:44px;min-width:44px;height:44px;margin:0;padding:10px!important;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}
#main>.workspace-header #preview-options:after{display:none}
#main>.workspace-header #preview-options>svg{width:21px;height:21px}
#main>.workspace-header [hidden]{display:none!important}

@media(max-width:1100px){
 #main>.workspace-header{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'heading utilities' 'create admin';gap:18px 24px;align-items:start}
 #main>.workspace-header .page-heading{grid-area:heading}
 #main>.workspace-header .header-actions{display:contents}
 #main>.workspace-header .header-utilities{grid-area:utilities;justify-self:end}
 #main>.workspace-header .creation-actions{grid-area:create;justify-self:start}
 #main>.workspace-header .admin-link{grid-area:admin;justify-self:end}
 #main>.workspace-header:not(:has(.creation-actions>button:not([hidden]))){grid-template-areas:'heading utilities' 'admin admin'}
 #main>.workspace-header:not(:has(.creation-actions>button:not([hidden]))):not(:has(.admin-link:not([hidden]))){grid-template-areas:'heading utilities'}
}

@media(max-width:700px){
 #main>.workspace-header{grid-template-columns:minmax(0,1fr) 96px;grid-template-areas:'heading utilities' 'subtitle subtitle' 'create create' 'admin admin';gap:12px 14px;padding:22px 0 20px;margin-bottom:22px}
 #main>.workspace-header .page-heading{display:contents}
 #main>.workspace-header h1{grid-area:heading;align-self:center;font-size:26px}
 #main>.workspace-header .page-heading>p{grid-area:subtitle;font-size:14px;margin:0}
 #main>.workspace-header .header-utilities{align-self:start}
 #main>.workspace-header .creation-actions{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);justify-self:stretch;width:100%;gap:10px;margin-top:4px}
 #main>.workspace-header .creation-actions>button{width:100%;min-width:0;padding:10px;font-size:13px}
 #main>.workspace-header .admin-link{justify-self:start;min-height:32px;padding:4px 0;border:0;border-radius:0;background:transparent;text-decoration:underline;text-underline-offset:4px;font-weight:600}
 #main>.workspace-header:not(:has(.creation-actions>button:not([hidden]))){grid-template-areas:'heading utilities' 'subtitle subtitle' 'admin admin'}
 #main>.workspace-header:not(:has(.creation-actions>button:not([hidden]))):not(:has(.admin-link:not([hidden]))){grid-template-areas:'heading utilities' 'subtitle subtitle'}
}

.account-review-links{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0;margin:8px 0;display:grid;gap:8px}.account-review-links[hidden]{display:none}.account-review-links>strong{font-size:12px;color:var(--muted);margin:0 0 4px}.dashboard-submissions{display:grid;gap:10px;margin-bottom:28px}.dashboard-submissions h2{margin-bottom:2px}.dashboard-submissions a{display:flex;align-items:center;min-height:32px;font-size:14px;line-height:1.5}

/* Reports keep their primary action beside the page heading as content scrolls. */
body[data-page=reports] #main>.workspace-header{position:sticky;top:0;z-index:80;background:var(--canvas,#f5f7fb)}
