/* Applied after V3 CSS; existing desktop and business views stay intact. */
:root { color-scheme: dark; }
#ercan-app-splash {
  position: fixed; inset: 0; z-index: 2147483647; pointer-events: none;
  display: grid; place-content: center; justify-items: center; gap: 16px;
  background: #10131e; color: #f8f5ef; text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: opacity .2s ease;
  animation: ercan-splash-failsafe .2s 6s forwards;
}
#ercan-app-splash img { width: 138px; height: 138px; border-radius: 28px; }
#ercan-app-splash strong { font-size: 24px; letter-spacing: 4px; }
#ercan-app-splash small { color: #d7b569; font-size: 11px; letter-spacing: 2px; }
#ercan-app-splash.finished { opacity: 0; }
@keyframes ercan-splash-failsafe { to { opacity: 0; visibility: hidden; } }
.ercan-standalone body {
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
.ercan-standalone .topbar { top: env(safe-area-inset-top, 0px); }
.ercan-standalone #eh-cloud-auth,
.ercan-standalone .eh-v3-overlay {
  padding-top: max(18px, env(safe-area-inset-top, 0px));
  padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
}
.ercan-standalone #invoice-overlay .invoice-tools {
  padding-top: max(10px, env(safe-area-inset-top, 0px));
}
.ercan-standalone #invoice-overlay { padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (prefers-reduced-motion: reduce) {
  #ercan-app-splash { transition: none; }
}
