:root { color-scheme: light; font: 13px system-ui, sans-serif; color: #252525; background: #fff; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, .native-actions a:focus-visible { outline: 2px solid #14715a; outline-offset: 2px; }
.boot-screen, .full-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; }
.boot-screen { position: fixed; inset: 0; overflow-y: auto; padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
.native-actions { display: flex; flex-direction: column; gap: 10px; width: min(100%, 280px); }
.native-actions a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid #aaa; border-radius: 8px; color: inherit; text-decoration: none; font: inherit; }
.native-actions a:first-child { color: #fff; background: #252525; border-color: #252525; }
.boot-reload { color: inherit; padding: 12px; min-height: 44px; }
.boot-screen h1 { font-size: 20px; font-weight: 500; margin: 0; }
.boot-screen p, .full-loading p { margin: 0; max-width: 32em; overflow-wrap: anywhere; }
.boot-screen button, .full-loading button { border: 1px solid #aaa; border-radius: 4px; background: transparent; padding: 8px 12px; }
.full-spinner { width: 24px; height: 24px; flex: none; border: 2px solid #ddd; border-top-color: #555; border-radius: 50%; animation: spin 0.8s linear infinite; }
.full-shell { position: fixed; inset: 0; display: flex; flex-direction: column; background: #fff; }
.full-shell[data-controls="client"] { padding-top: env(safe-area-inset-top); }
.full-shell { padding-bottom: env(safe-area-inset-bottom); }
.full-bar { min-height: 36px; padding: max(4px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 4px max(8px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #ddd; font-size: 12px; }
.full-bar span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.full-bar button { flex: none; background: transparent; border: 0; padding: 6px; min-height: 32px; }
.full-bar button:disabled { cursor: default; opacity: 0.6; }
.full-content { position: relative; flex: 1; min-height: 0; }
.full-loading { position: absolute; inset: 0; background: #fff; z-index: 1; }
.full-content[data-state="failed"] .full-spinner { display: none; }
.full-diagnostic { margin: 0; width: 100%; max-width: 36em; max-height: 40vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; font: 11px/1.45 ui-monospace, monospace; user-select: text; }
.full-frame { position: absolute; inset: 0; border: 0; width: 100%; height: 100%; background: #fff; }
.full-content:not([data-state="ready"]) .full-frame { pointer-events: none; }
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; color: #eee; background: #191919; }
  .full-shell, .full-loading, .full-frame { background: #191919; }
  .full-bar { border-color: #555; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .full-spinner { animation-duration: 2s; } }
