:root { color-scheme: light dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html, body, #root, .app-shell, .editor { width: 100%; height: 100%; margin: 0; }
html, body { overflow: hidden; }
body { background: #fff; }
.app-shell { position: relative; }
.editor { position: absolute; inset: 0; }
.boot-screen { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; gap: 14px; color: #242424; background: #f7f7f8; }
.boot-logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 25px; color: white; background: #6965db; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.boot-subtitle { margin-top: 4px; font-size: 13px; opacity: .65; }
.save-status { position: fixed; right: 12px; bottom: 10px; z-index: 50; display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; font-size: 11px; line-height: 1; color: #5a5a63; background: rgba(255,255,255,.9); box-shadow: 0 1px 8px rgba(0,0,0,.08); backdrop-filter: blur(10px); pointer-events: none; }
.save-dot { width: 7px; height: 7px; border-radius: 50%; background: #32a852; }
.fatal-error { position: fixed; z-index: 99999; inset: 18px; max-width: 620px; height: max-content; margin: auto; padding: 22px; border: 1px solid #e2e2e7; border-radius: 16px; color: #242424; background: white; box-shadow: 0 20px 70px rgba(0,0,0,.18); }
.fatal-error strong { font-size: 18px; }
.fatal-error p { margin: 10px 0 16px; color: #666; overflow-wrap: anywhere; }
.fatal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fatal-actions button, .fatal-actions a { appearance: none; border: 0; border-radius: 9px; padding: 9px 12px; text-decoration: none; font: inherit; cursor: pointer; color: #fff; background: #6965db; }
.fatal-actions a { color: #333; background: #f0f0f3; }
@media (prefers-color-scheme: dark) {
  body, .boot-screen { background: #1b1b1f; color: #f5f5f5; }
  .save-status { color: #ddd; background: rgba(35,35,40,.88); }
  .fatal-error { color: #f5f5f5; background: #242429; border-color: #3a3a40; }
  .fatal-error p { color: #bdbdc7; }
  .fatal-actions a { color: #eee; background: #38383f; }
}
