:root {
  --bg: #f5f1e8;
  --paper: #fffdf8;
  --text: #2c2a28;
  --muted: #6e6a64;
  --line: #ddd3c4;
  --accent: #45543d;
  --danger: #8a3a32;
  --success: #3e6b47;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 24px; }
.container.narrow { max-width: 700px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.toplinks { display: flex; gap: 14px; flex-wrap: wrap; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
textarea, input {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
button {
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  background: var(--accent);
  color: white;
  cursor: pointer;
}
button:hover { opacity: 0.93; }
.notice {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.notice.error { background: #f7e1dd; color: var(--danger); }
.notice.success { background: #e0efe2; color: var(--success); }
.muted, .meta { color: var(--muted); }
.task-row, .entry-row, .task-card {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.task-row.wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.task-row:last-child, .entry-row:last-child, .task-card:last-child { border-bottom: 0; }
.pill {
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ece7dc;
}
.prewrap { white-space: pre-wrap; }
@media (max-width: 800px) {
  .grid-2 { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; }
}
