:root {
  --bg: #f3f3f1;
  --surface: #ffffff;
  --surface-2: #fafaf9;
  --text: #111312;
  --text-2: #6b6f6d;
  --text-3: #9aa09d;
  --line: rgba(17, 19, 18, 0.09);
  --line-strong: rgba(17, 19, 18, 0.16);
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --on-accent: #ffffff;
  --in-bubble: #ffffff;
  --danger: #c0392b;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "PingFang SC",
    "Hiragino Sans", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d0f;
    --surface: #121518;
    --surface-2: #171a1e;
    --text: #e9eceb;
    --text-2: #9aa3a0;
    --text-3: #6b7472;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.16);
    --on-accent: #ffffff;
    --in-bubble: #1b1f24;
    --danger: #e06b5e;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea {
  font-family: inherit;
}

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