/* ========
   BASE + RESET
   ======== */
/* Reset + system font stack (no externals) */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  margin: 0 !important;
  padding: 0 !important;
}

body,
#messages {
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

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

html, body {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  background-color: var(--bg-main) !important;
  overscroll-behavior: none;
}

body {
  margin: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: var(--background, #0b0b12);
  color: var(--text-main);
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-y: auto;
  position: relative;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}