:root { color-scheme: light dark; }
* { box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0; padding: 2rem;
  background: #f4f5f7; color: #1a1a1a;
  display: flex; justify-content: center;
}
@media (prefers-color-scheme: dark) {
  body { background: #16181d; color: #e8e8e8; }
  .card { background: #20232a !important; }
  textarea, .note { background: #2a2e37 !important; color: inherit; border-color: #3a3f4b !important; }
}
.card {
  background: #fff; border-radius: 12px; padding: 1.5rem 2rem;
  width: 100%; max-width: 560px; box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
h1 { margin: 0 0 .25rem; font-size: 1.4rem; }
.subtitle { margin: 0 0 1.25rem; color: #6b7280; font-size: .9rem; }
button {
  background: #2563eb; color: #fff; border: 0; border-radius: 8px;
  padding: .55rem .9rem; font-size: .95rem; cursor: pointer;
}
button:hover { background: #1d4ed8; }
button.secondary { background: transparent; color: #2563eb; }
.userbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
#note-form { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
textarea { width: 100%; padding: .6rem; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; resize: vertical; }
.notes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.note { border: 1px solid #e5e7eb; border-radius: 8px; padding: .6rem .75rem; display: flex; justify-content: space-between; gap: .75rem; }
.note time { color: #9ca3af; font-size: .75rem; white-space: nowrap; }
.note .del { background: transparent; color: #ef4444; padding: 0 .25rem; }
.status { padding: .6rem .75rem; border-radius: 8px; margin-bottom: 1rem; font-size: .9rem; }
.status.error { background: #fee2e2; color: #991b1b; }
.status.info { background: #dbeafe; color: #1e40af; }
