
:root {
  --sai-bg: #fafafa;
  --sai-bg-2: #ffffff;
  --sai-page-bg: #fafafa;
  --sai-text: #111111;
  --sai-muted: rgba(17, 17, 17, .62);
  --sai-soft: rgba(17, 17, 17, .46);
  --sai-line: rgba(17, 17, 17, .10);
  --sai-input: #ffffff;
  --sai-card: #ffffff;
  --sai-card-2: #ffffff;
  --sai-card-3: #ffffff;
  --sai-modal: #ffffff;
  --sai-orange: #000000;
  --sai-green: #128a50;
  --sai-blue: #2563eb;
  --sai-red: #d92d20;
  --sai-radius: 10px;
  --sai-grid-line: transparent;
  --sai-grid-size: 40px;
  --sai-glass-tint: #ffffff;
  --sai-glass-tint-soft: #ffffff;
  --sai-glass-bg: #ffffff;
  --sai-glass-blur: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sai-text);
  background-color: var(--sai-page-bg);
  background-image:
    linear-gradient(var(--sai-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--sai-grid-line) 1px, transparent 1px);
  background-size: var(--sai-grid-size) var(--sai-grid-size);
  background-position: center top;
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

@keyframes saiSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes saiFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Global native select style: matches sdStreamFilter with visible arrow */
select,
.sd-native-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  min-height: 38px !important;
  padding-right: 42px !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath fill='rgba(17,17,17,.62)' d='M297.4 438.6C309.9 451.1 330.2 451.1 342.7 438.6L502.7 278.6C515.2 266.1 515.2 245.8 502.7 233.3C490.2 220.8 469.9 220.8 457.4 233.3L320 370.7L182.6 233.4C170.1 220.9 149.8 220.9 137.3 233.4C124.8 245.9 124.8 266.2 137.3 278.7L297.3 438.7z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px 16px !important;
}


.sai-spinner {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 4px solid rgba(255, 255, 255, .16);
  border-top-color: currentColor;
  animation: saiSpin .75s linear infinite;
}
