/* Early paint / Tauri shell — loaded from index.html before the app bundle */

.login-brand-name {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-display: optional;
}

/*
 * Anonymous /login first paint: tint #root before the JS bundle runs so a cold
 * restart does not flash a blank white page for several seconds (dev Vite).
 */
html:not([data-tauri]) body:not([data-tauri]) #root:empty {
  min-height: 100dvh;
  background-color: #f4f4f5;
}

@media (prefers-color-scheme: dark) {
  html:not([data-tauri]) body:not([data-tauri]) #root:empty {
    background-color: #18181b;
  }
}

body {
  font-display: optional;
}

html[data-tauri],
body[data-tauri],
html[data-tauri] #root,
body[data-tauri] #root {
  background: transparent !important;
  background-color: transparent !important;
}

html.tauri-transparent,
body.tauri-transparent,
html.desktop-app,
body.desktop-app {
  background: transparent !important;
  background-color: transparent !important;
  min-height: 100vh;
}

#tauri-loading {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 9999;
}
