/*
 * The page around the app. These rules reach outside #mailpuff-root on
 * purpose, scoped to the body class this screen alone carries
 * (`mailpuff-page`, added by includes/admin), so no other admin page
 * changes. The email editor page keeps its own chrome.
 */

/* WordPress prints admin notices above the app. The app is the page here,
   so hide them the way the block editor does. WordPress's update nag
   stays (includes/admin/class-assets.php prints the same rule inline). */
body.mailpuff-page #wpbody-content > .notice:not(.update-nag),
body.mailpuff-page #wpbody-content > .updated,
body.mailpuff-page #wpbody-content > .error {
	display: none;
}

/* Mailpuff sits inside wp-admin, beside WordPress's own menu and under its
   bar. The page it draws is the app's soft grey to its foot (theme.css
   `--page`), with no wp-admin grey around it or below a short screen;
   WordPress's footer stays. */
html:has(body.mailpuff-page),
body.mailpuff-page,
body.mailpuff-page #wpwrap {
	background: #f5f5f8;
}

#mailpuff-root {
	min-height: calc(100svh - var(--wp-admin--admin-bar--height, 32px) - 65px);
}
