/* Shared with the raw HTML footer: available even when the app cannot load. */
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
body > #root { flex: 1; display: flex; flex-direction: column; }
body > #root > .terra-route { min-height: 0; flex: 1; }
#site-footer { flex: none; color: #49423c; background: #f7f4ec; border-top: 1px solid #dfd5cb; font-family: 'MiSans Latin', 'MiSans', 'Microsoft YaHei', system-ui, sans-serif; font-size: 12px; line-height: 1.5; }
#site-footer[hidden] { display: none; }
#site-footer .site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; max-width: 1280px; margin: 0 auto; padding: 12px 24px; box-sizing: border-box; }
#site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
#site-footer a { display: inline-flex; align-items: center; min-height: 32px; color: inherit; text-decoration: none; }
#site-footer a:hover { color: #b8644b; }
#site-footer a:focus-visible { outline: 2px solid #748a67; outline-offset: 3px; border-radius: 2px; }
#site-footer .site-footer-credit { font-size: 11px; white-space: nowrap; }
body:has(.terra-site) > #site-footer { background: #eee8df; border-top: 0; }
body:has(.terra-site) > #site-footer .site-footer-inner { justify-content: flex-end; padding-top: 0; }
body:has(.terra-site) > #site-footer .site-footer-credit { display: none; }
/* The Creator and its loading screen use the full viewport. */
body:has(.creator-loading-stage) { overflow: hidden; }
body:has(.creator-loading-stage) > #root { flex: none; height: 100dvh; }
.creator-loading-stage .app-shell.cozy-creator { height: 100dvh; min-height: 0; }
@media (max-width: 680px) {
  #site-footer .site-footer-inner { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 20px; }
  #site-footer nav { gap: 4px 18px; }
  body:has(.terra-site) > #site-footer .site-footer-inner { align-items: flex-start; }
}
