:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #1c2434; background: #f3f6fb; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
.container { width: min(100% - 32px, 720px); margin: 0 auto; padding: 56px 0; }
.page-header { margin-bottom: 28px; }
.eyebrow { color: #596780; font-size: .78rem; font-weight: 700; letter-spacing: .09em; margin: 0 0 8px; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 6vw, 2.75rem); letter-spacing: -.04em; margin: 0; }
.subtitle { color: #596780; margin: 10px 0 0; }
.new-task-form { display: flex; gap: 10px; }
input { border: 1px solid #cbd5e1; border-radius: 10px; min-width: 0; padding: 12px 14px; }
.new-task-form input { flex: 1; }
button { border: 0; border-radius: 10px; cursor: pointer; font-weight: 650; padding: 12px 16px; }
.new-task-form button, .edit-form button:first-of-type { background: #2764e7; color: #fff; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #8eb5ff; outline-offset: 2px; }
.form-error { color: #b42318; font-size: .9rem; margin: 8px 2px 0; }
.filters { border-bottom: 1px solid #d9e0ec; display: flex; gap: 20px; margin: 32px 0 12px; }
.filters a { border-bottom: 2px solid transparent; color: #596780; padding: 10px 2px; text-decoration: none; }
.filters a.active { border-color: #2764e7; color: #1c2434; font-weight: 700; }
.task-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.task { align-items: flex-start; background: #fff; border: 1px solid #e1e7f0; border-radius: 14px; display: flex; gap: 12px; padding: 14px; box-shadow: 0 2px 5px rgb(28 36 52 / 3%); }
.check { align-items: center; background: #fff; border: 2px solid #93a4bd; border-radius: 50%; color: #fff; display: flex; height: 24px; justify-content: center; padding: 0; width: 24px; }
.completed .check { background: #2c9c68; border-color: #2c9c68; }
.task-body { flex: 1; min-width: 0; }
.task-title { font-weight: 600; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.completed .task-title { color: #728096; text-decoration: line-through; }
time { color: #748197; display: block; font-size: .78rem; margin-top: 5px; }
.actions { display: flex; gap: 4px; }
.actions button { background: transparent; color: #52627a; font-size: .82rem; padding: 6px 8px; }
.actions .delete-button { color: #b42318; }
.edit-form { align-items: center; display: flex; gap: 7px; margin-top: 8px; }
.edit-form[hidden] { display: none !important; }
.edit-form input { flex: 1; padding: 8px 10px; width: 100%; }
.edit-form button { font-size: .82rem; padding: 8px 10px; white-space: nowrap; }
.edit-form .cancel-edit { background: #eaf0fa; color: #43526a; }
.empty-state { background: #fff; border: 1px dashed #bdc9db; border-radius: 14px; color: #596780; padding: 38px 24px; text-align: center; }
.empty-state p { color: #1c2434; font-weight: 700; margin: 0 0 6px; }
.empty-state span { font-size: .9rem; }
.sr-only { height: 1px; margin: -1px; overflow: hidden; position: absolute; width: 1px; clip: rect(0, 0, 0, 0); }
@media (max-width: 520px) { .container { padding-top: 36px; } .new-task-form { align-items: stretch; flex-direction: column; } .task { gap: 9px; padding: 12px; } .actions { flex-direction: column; } .actions button { padding: 4px; } .edit-form { align-items: stretch; flex-wrap: wrap; } .edit-form input { flex-basis: 100%; } }
