/* Pantalla de carga del host, visible hasta que Avalonia arranca. Colores iguales a Background/TextMuted de Colors.axaml. */
html {
  background: #f3f5f4;
  color-scheme: light;
}

html[data-theme="dark"] {
  background: #0f1412;
  color-scheme: dark;
}

.avalonia-splash {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
  background: #f3f5f4;
  color: #5e6e65;
}

html[data-theme="dark"] .avalonia-splash {
  background: #0f1412;
  color: #86958c;
}

/* Marca gráfica provisional (sin logotipo oficial en el repositorio): cuadrado con el acento, como Border.brand-badge */
.splash-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #1d7853;
  background: #e0f2e9;
}

html[data-theme="dark"] .splash-mark {
  border-color: #4fc48b;
  background: #163327;
}

.splash-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.avalonia-splash.splash-close {
  transition: opacity 200ms;
  opacity: 0;
  display: none;
}

/* Sonda de la zona segura inferior: Avalonia no puede leer env(); la app mide este elemento (aurienSafeAreaInsetBottom en main.js).
   Necesita viewport-fit=cover en la etiqueta viewport de index.html. */
.safe-area-probe {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 0;
  height: env(safe-area-inset-bottom, 0px);
  visibility: hidden;
  pointer-events: none;
}

/* Campo nativo que recoge el texto en pantallas táctiles (ver aurienTextInput en main.js): se coloca encima del TextBox de Avalonia
   y es transparente; el texto visible lo pinta Avalonia. */
.aurien-input-proxy {
  position: absolute;
  margin: 0;
  padding: 0 12px;
  border: 0;
  outline: none;
  background: transparent;
  color: transparent;
  caret-color: #1d7853;
  font: 14px/1 Inter, system-ui, sans-serif;
  box-sizing: border-box;
  z-index: 10;
  resize: none;
}

html[data-theme="dark"] .aurien-input-proxy {
  caret-color: #4fc48b;
}

.aurien-input-proxy::selection {
  background: rgba(29, 120, 83, 0.25);
}
