:root {
  --bg: #F1F1F1;
  --bg-card: #f5f5f5;
  --bg-input: #fafafa;
  --border: #e0e0e0;
  --text: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --accent: #000000;
  --accent-text: #ffffff;
  --result-border: #e0e0e0;
  --copy-border: #cccccc;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 24px 16px;
  max-width: 680px;
  margin: 0 auto;
  transition: background 0.2s, color 0.2s;
}

#topbar {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.hidden {
  display: none;
}

#projectList div {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

#editor {
  padding: 12px;
  min-height: 80vh;
  outline: none;
}

/* dark mode */
.dark {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-input: #0f0f0f;
  --border: #2a2a2a;
  --text: #e5e5e5;
  --text-secondary: #a0a0a0;
  --text-muted: #525252;
  --accent: #ffffff;
  --accent-text: #000000;
  --result-border: #2a2a2a;
  --copy-border: #333333;
}

.dark #editor {
  color: #eee;
}
