:root {
  --bg: #f7f7f5;
  --text: #1f1d1a;
  --muted: #6c675f;
  --card: #ffffff;
  --line: #e2e0da;
  --accent: #2f46c8;
  --on-accent: #ffffff;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0f1218;
  --text: #e9ecf2;
  --muted: #9aa3b5;
  --card: #171b24;
  --line: #2a3140;
  --accent: #8fa2ff;
  --on-accent: #0f1218;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.bar h1 {
  margin: 0;
  font-size: 1.3rem;
}

.theme-toggle {
  padding: 0.5rem 0.95rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--on-accent);
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.note {
  padding: 1.1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.note p {
  margin: 0 0 0.6rem;
  line-height: 1.55;
}

.note p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

input {
  width: 100%;
  margin-top: 1rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}
