/* Mom & Calm — To-do & brain dump. */

.dump {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px;
  border-radius: var(--r-lg); border: 1.5px dashed var(--line-strong);
  background: linear-gradient(135deg, var(--surface), var(--blush));
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.dump:focus-within { border-style: solid; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.dump-ico { font-size: 1.3rem; }
.dump-input { border: 0; background: transparent; box-shadow: none !important; padding: 10px 0; min-height: 48px; font-size: var(--fs-lg); flex: 1; min-width: 0; }

.count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px;
  border-radius: var(--r-pill); background: var(--accent-wash); color: var(--accent-ink);
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; vertical-align: middle;
}
.subnav-link[aria-current="page"] .count { background: rgba(255, 246, 241, 0.22); color: inherit; }
.subnav-add { border-style: dashed; color: var(--ink-3); background: transparent; }

/* inbox */
.inbox-card { background: var(--gold-wash); border-color: transparent; }
.inbox-card .card-head h2 { display: flex; align-items: center; }
.inbox-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.inbox-row:first-child { border-top: 0; }
.inbox-title { flex: 1 1 180px; min-height: 36px; border: 0; background: transparent; color: var(--ink); text-align: left; font-weight: 450; padding: 0; }
.sort-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sort-chips .chip-pick { background: var(--surface); min-height: 36px; }
.sort-chips .chip-pick:hover { background: var(--accent-wash); color: var(--accent-ink); }

/* list */
.todo-card { padding-bottom: 14px; }
.todo-encourage { margin: -6px 0 8px; color: var(--ink-2); }
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-row { display: flex; align-items: flex-start; gap: 10px; padding: 4px 0; border-top: 1px solid var(--line); }
.todo-row:first-child { border-top: 0; }
.todo-row .check { flex: none; min-height: 48px; }
.todo-main {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 12px 0;
  border: 0; background: transparent; color: var(--ink); text-align: left;
}
.todo-title { font-weight: 400; line-height: 1.35; }
.todo-row[data-must] .todo-title { font-weight: 500; }
.must { font-size: 0.9em; }
.todo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--fs-xs); color: var(--ink-2); }
.todo-meta .dot { width: 8px; height: 8px; }
.tag-soft { padding: 1px 8px; border-radius: var(--r-pill); background: var(--sage); color: var(--ink-2); }
.todo-empty { padding: 10px 0 4px; }
.is-done .todo-title { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.done-tick { flex: none; width: 26px; height: 26px; margin: 13px 0; border-radius: 9px; display: grid; place-items: center; background: var(--m-sage); color: #fff; font-size: 0.8rem; font-weight: 700; }
.done-day { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); margin: 8px 0 2px; }

/* sort one by one */
.sorter { display: flex; flex-direction: column; gap: 14px; }
.sorter-title { font-size: var(--fs-2xl); line-height: 1.15; padding: 12px 0 4px; }
.sorter-dest { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.dest-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px; min-height: 84px;
  border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 450;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast) var(--ease);
}
.dest-btn .emoji { font-size: 1.5rem; }
.dest-btn:hover { border-color: var(--accent); background: var(--accent-wash); }
.dest-btn:active { transform: scale(0.97); }
.sorter-more summary { cursor: pointer; color: var(--ink-2); font-size: var(--fs-sm); min-height: 36px; display: flex; align-items: center; }
.sorter-more[open] summary { margin-bottom: 10px; }
.sorter-foot { display: flex; justify-content: space-between; }
.sorter-done { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 18px 0; }
.sorter-done .emoji { font-size: 2.6rem; }
.sorter-done h3 { font-size: var(--fs-2xl); }

/* pick one */
.pick { display: flex; flex-direction: column; gap: 16px; }
.pick-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px;
  border-radius: var(--r-lg); background: linear-gradient(160deg, var(--blush), var(--surface));
  border: 1px solid var(--line);
  animation: rise 420ms var(--ease) both;
}
.pick-card[data-must] { background: linear-gradient(160deg, var(--gold-wash), var(--surface)); }
.pick-must { background: var(--surface); }
.pick-title { font-size: var(--fs-2xl); line-height: 1.15; }
.pick-actions { display: flex; gap: 10px; align-items: center; }
