/* To-Do Lists, redesigned (Oct 30). Loaded after meals-redesign.css. */

.td-ico { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.td-coral { color: #b8441b !important; }
.td-teal { color: #1c6b67 !important; }
.td-navy, .td-light, .td-blue { border-radius: 999px; font: 700 15px 'DM Sans', sans-serif; padding: 0 18px; min-height: 44px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.td-navy { background: #0f3554 !important; color: #fff !important; border: 0 !important; }
.td-blue { background: #0a60a2 !important; color: #fff !important; border: 0 !important; min-height: 48px; padding: 0 22px; }
.td-light { background: #fff !important; color: #0f3554 !important; border: 1.5px solid #e5ddcf !important; }

/* Faces to filter, and search */
.td-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 22px; }
.td-whos { display: flex; flex-wrap: wrap; gap: 8px; }
.td-who { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #e5ddcf !important; background: #fff !important; color: #2e3238 !important; border-radius: 999px; min-height: 44px; padding: 0 16px 0 6px; font: 700 14px 'DM Sans', sans-serif; cursor: pointer; }
.td-who.on { background: #0f3554 !important; color: #fff !important; border-color: #0f3554 !important; }
.td-who .avatar, .td-allface { width: 32px !important; height: 32px !important; font-size: 13px !important; flex: none; }
.td-allface { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: #0f3554; font-weight: 700; font-size: 11px !important; border: 1px solid #e5ddcf; }
.td-who.on .td-allface { border-color: transparent; }
.td-noone { background: #efe8db; color: #4a4f57; }
.td-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #e5ddcf; border-radius: 999px; padding: 0 16px; min-height: 44px; width: 240px; margin: 0; }
.td-search svg { width: 18px; height: 18px; fill: none; stroke: #5b6068; stroke-width: 2; stroke-linecap: round; flex: none; }
.td-search input { border: 0 !important; outline: 0; background: transparent !important; font: 15px 'DM Sans', sans-serif; color: #2e3238; flex: 1; min-width: 0; margin: 0; padding: 0; min-height: 40px; box-shadow: none !important; }

/* Coming up + the side cards */
.td-top { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; margin-bottom: 30px; }
.td-soon { flex: 2 1 520px; background: #fff; border-radius: 30px; padding: 30px 32px; display: flex; flex-direction: column; gap: 14px; min-width: 0; box-sizing: border-box; }
.td-soon-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.td-soon-head .eyebrow { font-size: 12px; letter-spacing: .14em; }
.td-soon h2 { margin: 6px 0 0; font: 400 34px/1.1 'Young Serif', Georgia, serif; color: #2e3238; }
.td-soon-count { font-size: 15px; color: #4a4f57; }
.td-group { display: flex; flex-direction: column; }
.td-grouplabel { font-size: 12px; font-weight: 700; letter-spacing: .12em; padding: 6px 0; color: #4a4f57; }
.td-grouplabel.late, .td-due.late { color: #a8361a; }
.td-grouplabel.today, .td-due.today { color: #a8361a; }
.td-grouplabel.soon, .td-due.soon { color: #6e5310; }
.td-soonrow, .td-row { display: flex; align-items: center; gap: 13px; padding: 8px 0; border-top: 1px solid #f1eadd; }
.td-row { border-top: 0; border-bottom: 1px solid #f1eadd; }
.td-check { width: 30px; height: 30px; flex: none; border-radius: 9px; border: 2px solid #cfc6b6 !important; background: #fff !important; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; position: relative; }
.td-check::after { content: ''; position: absolute; inset: -8px; }
.td-check.on { background: #299492 !important; border-color: #299492 !important; }
.td-check svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.td-open { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; padding: 4px 0; text-align: left; font: inherit; color: #2e3238 !important; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-height: 44px; justify-content: center; }
.td-title { font-size: 16px; line-height: 1.3; }
.td-row.done .td-title { text-decoration: line-through; color: #6a6f77; }
.td-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: #5b6068; }
.td-dot { color: #b9b1a3; }
.td-due { font-weight: 700; color: #4a4f57; }
.td-imp { color: #a8361a; font-weight: 700; }
.td-notehint { color: #6a6f77; }
.td-listchip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px 2px 6px; font-weight: 700; font-size: 12.5px; }
.td-face { flex: none; display: inline-flex; }
.td-face .avatar { width: 32px; height: 32px; font-size: 13px; }
.td-none { margin: 0; font-size: 15px; color: #4a4f57; line-height: 1.5; padding: 4px 0; }

.td-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.td-thanks { background: #0f3554; color: #fff; border-radius: 30px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.td-thanks .eyebrow { color: #ebc35f !important; font-size: 12px; letter-spacing: .14em; }
.td-thanks-n { display: flex; align-items: baseline; gap: 14px; }
.td-thanks-n > span { font: 400 56px/1 'Young Serif', Georgia, serif; }
.td-thanks-n p { margin: 0; font-size: 16px; line-height: 1.45; color: #fff; }
.td-thanks ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #d6e0ea; }
.td-thanks ul b { color: #fff; }
.td-verse { margin: 0; border-top: 1px solid #2b5275; padding-top: 12px; font: 17px/1.45 'Young Serif', Georgia, serif; color: #fff; }
.td-verse span { display: block; font: 13px 'DM Sans', sans-serif; color: #ebc35f; margin-top: 4px; }
.td-asks { background: #fff; border: 1.5px dashed #d3c7b2; border-radius: 26px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.td-asks .eyebrow { font-size: 12px; letter-spacing: .14em; }
.td-ask { display: flex; flex-direction: column; gap: 10px; }
.td-ask + .td-ask { border-top: 1px solid #f1eadd; padding-top: 12px; }
.td-ask-who { display: flex; gap: 12px; align-items: flex-start; }
.td-ask-who .avatar { width: 36px; height: 36px; font-size: 14px; flex: none; }
.td-ask-who > span { display: flex; flex-direction: column; gap: 3px; }
.td-ask-what { font-size: 16px; color: #2e3238; }
.td-ask small { font-size: 13px; color: #5b6068; }
.td-ask-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* The lists */
.td-lists { display: flex; flex-direction: column; gap: 14px; }
.td-lists-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.td-lists-head h2 { margin: 0; font: 400 30px 'Young Serif', Georgia, serif; }
.td-cols { display: grid; gap: 18px; align-items: start; }
.td-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.td-list { background: #fff; border-radius: 26px; padding: 18px 20px 12px; display: flex; flex-direction: column; gap: 6px; }
.td-lhead { display: flex; align-items: center; gap: 8px; }
.td-fold { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; margin: 0; font: inherit; color: #2e3238; border: 0; background: transparent; padding: 0; text-align: left; }
button.td-fold { cursor: pointer; min-height: 56px; background: transparent !important; color: #2e3238 !important; }
.td-tile { width: 40px; height: 40px; flex: none; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; }
.td-lname { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.td-lh { font: 400 23px/1.2 'Young Serif', Georgia, serif; }
.td-count { font: 14px 'DM Sans', sans-serif; color: #5b6068; }
.td-peek { font-size: 13px; color: #5b6068; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-chev { width: 20px; height: 20px; flex: none; fill: none; stroke: #4a4f57; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.td-list.open .td-chev { transform: rotate(180deg); }
.td-more { width: 44px; height: 44px; flex: none; border: 0 !important; border-radius: 50%; background: transparent !important; color: #4a4f57 !important; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.td-more:hover { background: #f4efe6 !important; }
.td-more svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.td-lbody { display: flex; flex-direction: column; }
.td-lnote { margin: 0 0 6px; font-size: 14px; color: #5b6068; }
.td-add { display: flex; align-items: center; gap: 10px; border-radius: 14px; background: #fbf7f0; padding: 0 12px; min-height: 46px; margin: 4px 0 4px; }
.td-add svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #0a60a2; stroke-width: 2.2; stroke-linecap: round; }
.td-add input { border: 0 !important; outline: 0; background: transparent !important; font: 15.5px 'DM Sans', sans-serif; color: #2e3238; flex: 1; min-width: 0; margin: 0; padding: 0; min-height: 44px; box-shadow: none !important; }
.td-add:focus-within { box-shadow: 0 0 0 2px #0a60a2; }
.td-empty { margin: 6px 0; font-size: 14px; color: #5b6068; }
.td-donebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.td-showdone { border: 0 !important; background: transparent !important; color: #1c6b67 !important; font: 700 14px 'DM Sans', sans-serif; min-height: 44px; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.td-showdone svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.td-del { width: 40px; height: 40px; flex: none; border: 1.5px solid #e5ddcf !important; border-radius: 50%; background: #fff !important; color: #4a4f57 !important; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.td-del svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.td-newcard { border: 1.5px dashed #d3c7b2 !important; border-radius: 26px; background: transparent !important; min-height: 140px; font: inherit; color: #4a4f57 !important; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; }
.td-newcard span { font: 400 21px 'Young Serif', Georgia, serif; color: #2e3238; }
.td-newcard small { font-size: 14px; }
.td-newcard:hover { border-color: #0a60a2 !important; }
.td-fab { display: none; }

/* The to-do editor */
#todoForm.td-form h2 { margin-bottom: 14px; }
#todoForm .td-hidefield { display: none !important; }
#todoForm.td-form input[name="title"] { font: 400 22px 'Young Serif', Georgia, serif; min-height: 54px; }
.td-pickers { display: flex; flex-direction: column; gap: 16px; margin: 6px 0 10px; }
.td-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.td-fs legend { font-size: 15px; font-weight: 700; color: #2e3238; padding: 0 0 10px; }
.td-faces { display: flex; flex-wrap: wrap; gap: 10px; }
.td-facepick { border: 0 !important; background: transparent !important; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 56px; font: 13px 'DM Sans', sans-serif; color: #2e3238 !important; }
.td-facepick .avatar, .td-facepick .td-allface { width: 46px !important; height: 46px !important; font-size: 16px !important; border-radius: 50%; }
.td-facepick.on .avatar, .td-facepick.on .td-allface { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #0f3554; }
.td-facepick.on { font-weight: 700; }
.td-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.td-chip { border: 1.5px solid #e5ddcf !important; background: #fff !important; color: #2e3238 !important; border-radius: 999px; min-height: 44px; padding: 0 15px; font: 700 14px 'DM Sans', sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.td-chip.on { background: #0f3554 !important; color: #fff !important; border-color: #0f3554 !important; }
.td-listpick .td-ico { color: var(--lc); }
.td-listpick.on .td-ico { color: #fff; }
.td-switchrow { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0 !important; border-top: 1px solid #f1eadd !important; border-bottom: 1px solid #f1eadd !important; background: transparent !important; color: #2e3238 !important; padding: 0; min-height: 56px; font: 16px 'DM Sans', sans-serif; cursor: pointer; text-align: left; }
.td-switch { width: 50px; height: 30px; border-radius: 999px; background: #d9d1c3; position: relative; transition: background .15s; }
.td-switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; }
.td-switchrow.on .td-switch { background: #c2471c; }
.td-switchrow.on .td-switch span { left: 23px; }
.td-delete { border: 0 !important; background: transparent !important; color: #a8361a !important; font: 700 15px 'DM Sans', sans-serif; min-height: 48px; padding: 0; cursor: pointer; margin: 4px 0; }
.td-delete[hidden] { display: none; }

/* The list window */
#listIcons .td-iconpick span { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; color: #0f3554; }
.td-move { display: inline-flex; gap: 8px; flex-wrap: wrap; margin-right: auto; }

/* Phones: folding lists, a round add button, the editor as a sheet */
@media (max-width: 760px) {
  .td-toolbar { flex-direction: column; align-items: stretch; }
  .td-toolbar > * { min-width: 0; max-width: 100%; }
  .td-whos { flex-wrap: nowrap; overflow-x: auto; width: 100%; box-sizing: border-box; padding: 0 0 4px; scrollbar-width: none; }
  .td-who { flex: none; }
  .td-search { width: 100%; box-sizing: border-box; }
  .td-soon { padding: 20px 18px; border-radius: 24px; flex-basis: 100%; }
  .td-soon h2 { font-size: 26px; }
  .td-side { flex-basis: 100%; }
  .td-thanks { border-radius: 24px; padding: 22px; }
  .td-list { padding: 4px 16px 4px; border-radius: 22px; }
  .td-list.open { padding-bottom: 12px; }
  .td-lh { font-size: 19px; }
  .td-tile { width: 38px; height: 38px; border-radius: 12px; }
  .td-newcard { min-height: 96px; }
  .td-fab { display: flex; position: fixed; right: 18px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 30; width: 60px; height: 60px; border-radius: 50%; border: 0 !important; background: #0a60a2 !important; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(15, 53, 84, .28); cursor: pointer; padding: 0; }
  .td-fab svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
  .td-lists { padding-bottom: 80px; }
  html dialog#todoEditor { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92vh; border-radius: 28px 28px 0 0; box-sizing: border-box; }
}
#todoForm .td-titlelabel { font-size: 0; margin-top: 0; }
#todoForm .td-titlelabel input { font-size: 22px; }
#listIcons { display: flex !important; flex-wrap: wrap; gap: 8px; }
#listIcons .td-iconpick { margin: 0; }
