html,
body {
  height: 100%;
  margin: 0;
  background: #f8f9fb;
}

/* Calendar / native control popovers may key off the root; keep light UI in the app shell. */
html:has(body.dashboard-mode) {
  color-scheme: light;
}

body.dashboard-mode {
  overflow: hidden;
  /* Native date/number pickers follow OS dark mode unless we force light UI. */
  color-scheme: light;
}

#root {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: #f8f9fb;
}
