* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: #f4f5f7; color: #1d2433; }
.app { max-width: 560px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.6rem; }
.label { display: block; margin-bottom: 4px; font-weight: 600; }
.add-row { display: flex; gap: 8px; }
.add-row input { flex: 1; min-width: 0; padding: 10px; font-size: 1rem; border: 1px solid #aab; border-radius: 6px; }
button { padding: 10px 14px; font-size: 1rem; border: 0; border-radius: 6px; background: #2457d6; color: #fff; cursor: pointer; }
button.delete { background: #b3261e; padding: 6px 10px; flex-shrink: 0; }
.error { color: #b3261e; background: #fdecea; padding: 8px 10px; border-radius: 6px; }
.empty { color: #55607a; }
.count { color: #55607a; }
.list-error { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 480px) {
  .add-row { flex-direction: column; }
  .list th:nth-child(3), .list td:nth-child(3) { display: none; }
  .list td.actions button { padding: 6px 8px; font-size: 0.85rem; }
}
.title-field { flex: 1; min-width: 0; display: flex; }
.title-field input { flex: 1; min-width: 0; }
table.list { margin-top: 16px; width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; }
.list th, .list td { text-align: left; padding: 8px; vertical-align: middle; }
.list td.actions { white-space: nowrap; }
.list td.actions button { margin-left: 4px; }
.list td label { overflow-wrap: anywhere; }
.list tr.done label { text-decoration: line-through; color: #78829a; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skeleton { margin-top: 16px; }
.skel-row { height: 40px; margin-bottom: 6px; border-radius: 6px; background: #e1e4ea; }
.empty-title { font-weight: 600; margin-bottom: 0; }
