/* ==========================================================================
   Defensive global base — prevents raw browser chrome if a class is missing
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fa-bg, var(--navy, #0A1628));
  color: var(--fa-text-secondary, rgba(255, 255, 255, 0.88));
  font-family: var(--fa-font-body, var(--font-body, 'Inter', system-ui, sans-serif));
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

img,
svg {
  max-width: 100%;
}

svg:not([width]):not([height]) {
  width: 1em;
  height: 1em;
}

.fa-icon,
.tnav-install-icon,
button svg:not([width]),
a svg:not([width]) {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

#root button:not([class]),
#root input:not([class]),
#root textarea:not([class]),
#root select:not([class]) {
  font: inherit;
}

#root button:not([class]) {
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
}

#root input:not([class]),
#root textarea:not([class]),
#root select:not([class]) {
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--fa-input-bg, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--fa-input-border, rgba(255, 255, 255, 0.14));
  color: var(--fa-input-text, rgba(255, 255, 255, 0.9));
}
