:root { --fg:#1f2937; --muted:#6b7280; --bg:#f3f4f6; --card:#fff; --accent:#2563eb; --danger:#dc2626; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, sans-serif; color:var(--fg); background:var(--bg); }
header { display:flex; justify-content:space-between; align-items:center; padding:.8rem 1.5rem; background:#111827; }
header a, header .user, header button.link { color:#e5e7eb; margin-left:1rem; text-decoration:none; }
header .brand { margin-left:0; font-weight:700; font-size:1.2rem; color:#fff; }
main { max-width:860px; margin:2rem auto; padding:0 1rem; }
footer { text-align:center; color:var(--muted); font-size:.85rem; padding:2rem; }
.card { background:var(--card); border-radius:10px; padding:1.2rem 1.5rem; box-shadow:0 1px 3px rgba(0,0,0,.08); }
.narrow { max-width:420px; margin:0 auto; }
label { display:block; margin:.8rem 0; font-weight:600; }
input, textarea { width:100%; padding:.55rem; margin-top:.3rem; border:1px solid #d1d5db; border-radius:6px; font:inherit; }
button, .button { background:var(--accent); color:#fff; border:0; border-radius:6px; padding:.55rem 1rem; font:inherit; cursor:pointer; text-decoration:none; }
button.link { background:none; color:var(--accent); padding:0; }
.danger { color:var(--danger) !important; }
form.inline { display:inline; }
.muted { color:var(--muted); font-weight:normal; }
.toolbar { display:flex; justify-content:space-between; align-items:center; }
.tasks { list-style:none; padding:0; }
.tasks li { display:flex; gap:1rem; align-items:flex-start; margin-bottom:.8rem; }
.tasks li .body { flex:1; }
.tasks li .body p { margin:.3rem 0; white-space:pre-wrap; }
.tasks li.done strong { text-decoration:line-through; color:var(--muted); }
.tasks .actions a, .tasks .actions button { margin-left:.6rem; }
button.check { background:none; color:var(--fg); font-size:1.4rem; padding:0; }
.flash { padding:.7rem 1rem; border-radius:6px; margin-bottom:1rem; background:#dbeafe; }
.flash.error { background:#fee2e2; }
table { width:100%; border-collapse:collapse; background:var(--card); }
th, td { padding:.6rem; border-bottom:1px solid #e5e7eb; text-align:left; }
