:root {
  --paper: #faf7ef; --cream: #f1ead9; --ink: #26201a; --ink-soft: #5a4f42;
  --forest: #2e4a2b; --forest-deep: #1d301c; --amber: #a9803f; --red: #a03123;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; }
body { font-family: system-ui, 'Anuphan', sans-serif; background: var(--paper); color: var(--ink); line-height: 1.6; padding-bottom: 4.5rem; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 1rem; background: var(--forest-deep); color: var(--cream); position: sticky; top: 0; z-index: 10; }
.brand { font-weight: 700; }
.me { color: var(--cream); font-size: 0.85rem; text-decoration: none; }
main { padding: 1rem; max-width: 60rem; margin-inline: auto; }
.card { background: #fff; border: 1px solid var(--cream); border-radius: var(--radius); padding: 1rem; margin-bottom: 0.8rem; }
.btn { display: inline-block; min-height: 44px; padding: 0.6rem 1.2rem; border-radius: 999px; background: var(--forest); color: #fff; border: none; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-danger { background: var(--red); }
.btn.ghost { background: transparent; color: var(--forest); border: 1px solid var(--forest); }
.tabs { position: fixed; bottom: 0; inset-inline: 0; display: flex; background: #fff; border-top: 1px solid var(--cream); z-index: 10; }
.tabs a { flex: 1; text-align: center; padding: 0.8rem 0.2rem; min-height: 48px; color: var(--ink-soft); text-decoration: none; font-size: 0.85rem; }
.tabs a.on { color: var(--forest); font-weight: 700; border-top: 2px solid var(--forest); }
.list { display: grid; gap: 0.6rem; }
.tag { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; font-size: 0.78rem; background: var(--cream); }
.tag-done { background: #dcecd8; color: var(--forest-deep); }
.tag-todo { background: #f3e3c8; color: var(--amber); }
.grid2 { display: grid; gap: 0.8rem; }
@media (min-width: 700px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.25rem; margin-bottom: 0.7rem; font-size: 0.9rem; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; min-height: 44px; padding: 0.5rem 0.7rem; border: 1px solid var(--cream); border-radius: 8px; background: var(--paper); }
.flash { background: #dcecd8; color: var(--forest-deep); padding: 0.6rem 1rem; text-align: center; }
.warn { color: var(--red); font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--cream); font-size: 0.92rem; }
@media (max-width: 699px) { .desktop-only { display: none; } }
@media (min-width: 700px) { .mobile-only { display: none; } }
