/* Base reset & typography */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  height: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

h1, h2, h3, h4, p { margin: 0; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

button:disabled { cursor: not-allowed; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.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;
}

.mono { font-family: var(--font-mono); }

/* Prevent unstyled SVGs from blowing up the layout */
svg {
  display: block;
  flex-shrink: 0;
  max-width: 100%;
  max-height: 100%;
}

.app-sidebar svg,
.main-topbar svg,
.nav-btn svg,
.nav-item svg,
.icon-btn svg,
.omnibar svg,
.attach-menu svg,
.slide-panel svg,
.scroll-fab svg {
  width: 18px;
  height: 18px;
}

.sidebar-search svg {
  width: 16px;
  height: 16px;
}

.omnibar-btn svg {
  width: 20px;
  height: 20px;
}

.omnibar-send svg {
  width: 18px;
  height: 18px;
}

.omnibar-stop svg {
  width: 14px;
  height: 14px;
}

.attach-menu-item svg {
  width: 16px;
  height: 16px;
}

.upload-zone svg {
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
}
