:root {
  --bg: #1b1c20;
  --panel: #24262c;
  --text: #e8e8ea;
  --muted: #9a9ba2;
  --accent: #6cb6ff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 32px 20px 64px;
  max-width: 1000px;
  margin-inline: auto;
}
header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
h1 { font-size: 1.7rem; margin: 0; }
.sub { color: var(--muted); font-size: 0.85rem; }
form {
  background: var(--panel);
  border: 1px solid #34363d;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 26px;
}
textarea {
  width: 100%;
  resize: vertical;
  background: #1b1c20;
  color: var(--text);
  border: 1px solid #34363d;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}
.row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 12px; }
.colors { display: flex; gap: 8px; }
.swatch {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
}
.swatch[aria-pressed="true"] { border-color: var(--text); transform: scale(1.12); }
button {
  background: var(--accent);
  color: #08203a;
  border: 0;
  border-radius: 8px;
  padding: 9px 18px;
  font-weight: 700;
  cursor: pointer;
}
button:hover { filter: brightness(1.07); }
.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.note {
  color: #1a1a1a;
  border-radius: 10px;
  padding: 14px;
  min-height: 120px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  position: relative;
  white-space: pre-wrap;
  word-break: break-word;
}
.note time { margin-top: auto; font-size: 0.7rem; opacity: 0.65; }
.note .del {
  position: absolute; top: 6px; right: 8px;
  background: transparent; color: #1a1a1a; padding: 2px 6px;
  font-weight: 800; opacity: 0.55; border-radius: 6px;
}
.note .del:hover { opacity: 1; background: rgba(0,0,0,0.1); }
.empty { color: var(--muted); text-align: center; margin-top: 30px; }
