* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: #f4f6f8; color: #222; }
header { display: flex; justify-content: space-between; align-items: center;
         padding: 1rem 1.5rem; background: #1f4e79; color: #fff; }
header h1 { margin: 0; font-size: 1.3rem; }
header a { color: #fff; }
main { max-width: 680px; margin: 1.5rem auto; padding: 0 1rem; }
.card { background: #fff; border-radius: 8px; padding: 1rem; margin-bottom: .75rem;
        box-shadow: 0 1px 3px rgba(0,0,0,.08); }
form.card input, form.card textarea { width: 100%; padding: .6rem; margin-bottom: .5rem;
        border: 1px solid #ccc; border-radius: 6px; font: inherit; }
button { padding: .45rem .9rem; border: 0; border-radius: 6px; background: #1f4e79;
         color: #fff; cursor: pointer; }
button.danger { background: #b03a2e; }
.notes { list-style: none; padding: 0; }
.notes li { display: flex; justify-content: space-between; gap: 1rem; }
.notes li p { margin: .3rem 0; }
.notes li small { color: #777; }
.notes li.done strong { text-decoration: line-through; color: #888; }
.actions { display: flex; gap: .4rem; align-items: start; }
.msg { padding: .6rem 1rem; border-radius: 6px; margin-bottom: .75rem; background: #e3f1e6; }
.msg.error { background: #fbe3e1; }
.empty { color: #777; text-align: center; padding: 2rem; }
footer { text-align: center; color: #999; font-size: .85rem; padding: 2rem; }
