* {
  box-sizing: border-box;
}

:root {
  --bg-page: #f4f7fb;
  --bg-white: #ffffff;
  --bg-soft: #f8fafc;
  --bg-dark: #08111f;
  --line: #e2e8f0;
  --line-soft: #edf2f7;
  --text-1: #0f172a;
  --text-2: #334155;
  --text-3: #64748b;
  --text-4: #94a3b8;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --cyan: #06b6d4;
  --red: #ef4444;
  --green: #10b981;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 28px 80px rgba(2, 6, 23, 0.18);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family:
    "Inter",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%);
  color: var(--text-1);
}

body {
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

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

input,
textarea {
  outline: none;
}

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

.app-shell {
  min-height: 100vh;
}

.chat-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.chat-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
}

.chat-scroll::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 768px) {
  html,
  body {
    font-size: 14px;
  }
}