:root {
  color-scheme: light dark;
  font-family: system-ui, sans-serif;
}

body {
  margin: 0;
  background: #f7f7f8;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 1.5rem;
  margin: 0;
}

#auth-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

button {
  cursor: pointer;
  border: 1px solid #d0d0d5;
  background: white;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
}

button:hover {
  background: #eee;
}

#note-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

textarea {
  flex: 1;
  resize: vertical;
  min-height: 2.5rem;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #d0d0d5;
  font-family: inherit;
}

#notes-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#notes-list li {
  background: white;
  border: 1px solid #e2e2e5;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

#user-email {
  font-size: 0.85rem;
  color: #666;
}

#status {
  color: #b91c1c;
  font-size: 0.9rem;
  min-height: 1.2rem;
}
