* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

*:focus {
  outline: none;
}

*:focus-visible {
  outline: none;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  /* Reserve scrollbar space at all times so content never shifts
     when scroll is locked (modals, settings panel).
     Used by GitHub, Linear, Vercel — the clean industry solution. */
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--space-md);
  padding-top: 80px;
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Push footer to bottom */
body > main {
  flex: 1;
}

/* Custom scrollbar — thin, matches modal scrollbar style */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-scrollbar); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-scrollbar-hover); }
/* Firefox */
* { scrollbar-width: thin; scrollbar-color: var(--color-scrollbar) transparent; }

@supports (-webkit-touch-callout: none) {
  body { padding-top: 80px; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}