:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #f5f7fb; color: #172033; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.shell { width: min(100%, 720px); }
header { margin-bottom: 22px; }
.eyebrow { color: #5c4dc5; font-size: .82rem; font-weight: 800; letter-spacing: .1em; margin: 0 0 6px; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 7vw, 3.6rem); letter-spacing: -.06em; margin: 0; }
h2 { font-size: 1.1rem; margin: 0; }
.lead { color: #526078; margin: 8px 0 0; }
.card { background: #fff; border: 1px solid #e2e7f0; border-radius: 16px; box-shadow: 0 8px 28px #1720330d; margin: 14px 0; padding: 22px; }
form { display: grid; gap: 9px; margin-top: 15px; }
label { font-weight: 700; font-size: .9rem; }
input { border: 1px solid #abb7ca; border-radius: 9px; font: inherit; padding: 11px 12px; }
input:focus-visible, button:focus-visible { outline: 3px solid #806ef9; outline-offset: 2px; }
button { background: #5342c8; border: 0; border-radius: 9px; color: white; cursor: pointer; font: inherit; font-weight: 750; padding: 11px 15px; width: fit-content; }
button:hover { background: #4132a8; }
button.secondary { background: #eef0f6; color: #24314a; font-size: .86rem; padding: 8px 10px; }
.section-heading { align-items: center; display: flex; justify-content: space-between; gap: 12px; }
.task-list { display: grid; gap: 9px; list-style: none; margin: 18px 0 0; padding: 0; }
.task { align-items: center; background: #f8f9fc; border-radius: 10px; display: flex; gap: 10px; padding: 11px; }
.task label { flex: 1; overflow-wrap: anywhere; }
.task.done label { color: #637089; text-decoration: line-through; }
.delete { background: transparent; color: #a8334d; padding: 6px 8px; }
.delete:hover { background: #ffe9ed; }
.empty, .message { color: #637089; margin: 15px 0 0; }
.message.error { color: #b4233e; }
@media (max-width: 450px) { .card { padding: 17px; } .section-heading { align-items: flex-start; flex-direction: column; } }
