html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overscroll-behavior: none;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
  background: var(--app-bg);
  color: var(--app-text);
}

:root {
  --app-bg: #ffffff;
  --app-text: #111111;
  --app-primary: #317EFB;
  --app-muted: #6b7280;
}

body.dark {
  --app-bg: #0f172a;
  --app-text: #e5e7eb;
}

#app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#app-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.15s ease;
}

#app-content.loading {
  opacity: 0.4;
}

#bottom-nav {
  height: 56px;
  display: flex;
  border-top: 1px solid rgba(0,0,0,0.1);
  background: var(--app-bg);
}

#bottom-nav a {
  flex: 1;
  text-align: center;
  font-size: 12px;
  padding-top: 6px;
  text-decoration: none;
  color: var(--app-muted);
}

#bottom-nav a.active {
  color: var(--app-primary);
  font-weight: 600;
}
