@font-face {
  font-family: "Google Sans";
  src: url("/frontend/Shared/Fonts/google-sans-latin-v69.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/frontend/Shared/Fonts/jetbrains-mono-latin-v24.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

.material-symbols-rounded {
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
  overflow: visible;
  background: none !important;
  color: currentColor;
  font-family: sans-serif !important;
  font-size: 24px;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  text-indent: -9999px;
  -webkit-text-fill-color: transparent;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings:
    "FILL" 0,
    "wght" 430,
    "GRAD" 0,
    "opsz" 24;
}

/* The SVG mask inherits color, including destructive and dark-button states. */
html body .material-symbols-rounded[data-local-icon]::before {
  position: absolute;
  inset: 0;
  display: block;
  content: "";
  background: currentColor;
  mask: var(--zexirai-local-icon) center / contain no-repeat;
  -webkit-mask: var(--zexirai-local-icon) center / contain no-repeat;
  pointer-events: none;
}

:root {
  --zexirai-boot-bg: #fff;
}

html[data-zexir-logo-theme="dark"] {
  --zexirai-boot-bg: #000;
}

html[data-zexir-logo-theme="dark"] body .app-boot-overlay,
html[data-zexir-logo-theme="dark"] body .zexirai-boot-overlay {
  background: #000 !important;
}

html[data-zexir-logo-theme="dark"] .app-boot-spinner::before,
html[data-zexir-logo-theme="dark"] .zexirai-boot-mark::before {
  border-color: #333;
  border-top-color: #fff;
}

/* Theme variants contain their intended foreground and stay transparent. */
html body img[data-zexir-logo] {
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* Keep the square brand tile softly beveled wherever it appears in-product. */
html body img[src*="/frontend/ZexirFavcon"],
html body img[src*="/frontend/ZexirAIFavcon"] {
  border-radius: 22% !important;
  clip-path: inset(0 round 22%);
}

.zexirai-boot-overlay,
.app-boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  background: var(--zexirai-boot-bg);
  opacity: 1;
  visibility: visible;
}

.zexirai-boot-mark,
.app-boot-spinner {
  position: relative;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
}

.zexirai-boot-mark::before,
.app-boot-spinner::before {
  position: absolute;
  inset: 0;
  border: 3px solid #e4e4e4;
  border-top-color: #202020;
  border-radius: 50%;
  content: "";
  animation: zexirai-boot-spin 720ms linear infinite;
}

.zexirai-boot-mark img,
.app-boot-spinner img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: none;
}

html.zexirai-boot-active body:not(.app-ready) > :not(.zexirai-boot-overlay):not(.app-boot-overlay):not(script) {
  visibility: hidden;
  animation: zexirai-content-failsafe 0s 12s forwards;
}

html.zexirai-boot-active body:not(.app-ready) > .zexirai-boot-overlay,
html.zexirai-boot-active body:not(.app-ready) > .app-boot-overlay {
  animation: zexirai-overlay-failsafe 0s 12s forwards;
}

body.app-ready .zexirai-boot-overlay,
body.app-ready .app-boot-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes zexirai-boot-spin {
  to { transform: rotate(360deg); }
}

@keyframes zexirai-content-failsafe {
  to { visibility: visible; }
}

@keyframes zexirai-overlay-failsafe {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zexirai-boot-mark::before,
  .app-boot-spinner::before { animation-duration: 1.4s; }
}
