.wrap { max-width: 640px; margin: 0 auto; padding: 8px 16px 24px; }
.title { font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -0.04em; line-height: 1; margin: 12px 0 24px; }
.add { display: flex; gap: 8px; align-items: center; padding: 8px; }
.new { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 6px; font-size: 1.1rem; }
.new:focus { outline: none; }
.add:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.list-card { margin-top: 16px; overflow: hidden; }
.list { list-style: none; margin: 0; padding: 0; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); animation: pop .22s ease; }
.item input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.item .label { flex: 1; min-width: 0; overflow-wrap: anywhere; cursor: text; }
.item.done .label { color: var(--muted); text-decoration: line-through; }
.item .edit { flex: 1; }
.item .del { opacity: 0; }
.item:hover .del, .item:focus-within .del { opacity: 1; }
@media (hover: none) { .item .del { opacity: 1; } }
.empty { padding: 24px 16px; text-align: center; margin: 0; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; font-size: .92rem; }
.bar[hidden], .empty[hidden], [hidden] { display: none !important; }
.filters { display: flex; gap: 4px; }
.hint { text-align: center; font-size: .88rem; margin-top: 18px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
