/* v72.64: easier to-dos (js/todo-easy.js) */
/* the add box: a list in one go, then who and when */
.jjs-taskadd.te-add { display: flex; flex-direction: column; gap: 8px; }
.te-addrow { display: flex; gap: 8px; align-items: flex-end; }
.te-add textarea { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 14px; line-height: 20px; min-height: 42px; max-height: 240px; padding: 10px 16px; border: 1px solid var(--line2, rgba(0,0,0,.16)); border-radius: 21px; background: var(--surface, #fff); color: var(--ink); resize: none; overflow-y: auto; }
.te-add textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.te-add .te-addgo { border-radius: 999px; min-height: 42px; white-space: nowrap; }
.te-listbtn { flex: 0 0 auto; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line2, rgba(0,0,0,.16)); border-radius: 50%; background: var(--surface, #fff); color: var(--ink); cursor: pointer; }
.te-listbtn .jjs-ico { width: 18px; height: 18px; }
.te-listbtn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.te-hint { margin: -2px 0 0 52px; font-size: 12px; color: var(--muted); }
.te-opts { display: flex; flex-direction: column; gap: 6px; margin-left: 50px; }
.te-optrow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.te-optlab { flex: 0 0 34px; font-size: 12px; font-weight: 600; color: var(--muted); }
.te-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.te-chip { font: inherit; font-size: 12.5px; line-height: 1; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line2, rgba(0,0,0,.16)); background: var(--surface, #fff); color: var(--ink); cursor: pointer; white-space: nowrap; }
.te-chip:hover { border-color: var(--ink); }
.te-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.jjs-taskadd .te-date, .jjs-proto .jjs-taskadd .te-date, .v2-todo .v2-todocard .jjs-taskadd .te-date { flex: 0 0 auto !important; width: auto !important; font: inherit; font-size: 12.5px !important; padding: 5px 9px !important; border-radius: 999px !important; border: 1px solid var(--line2, rgba(0,0,0,.16)) !important; background: var(--surface, #fff) !important; color: var(--ink); min-height: 0; }
.jjs-taskadd .te-date.on { border-color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--ink); }
.te-proj { font: inherit; font-size: 12.5px; padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line2, rgba(0,0,0,.16)); background: var(--surface, #fff); color: var(--ink); max-width: 220px; margin-left: auto; }
@media (max-width: 760px){
  .te-opts, .te-hint { margin-left: 0; }
  .te-optrow { align-items: flex-start; }
  .te-optrow .te-optlab { padding-top: 7px; }
  .te-who .te-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .te-who .te-chips::-webkit-scrollbar { display: none; }
  .te-when { flex-wrap: wrap; }
  .te-when .te-chips { flex: 1 1 calc(100% - 42px); }
  .te-proj { margin-left: 42px; flex: 1 1 calc(100% - 42px); max-width: calc(100% - 42px); }
  .te-chip { padding: 9px 12px; }
  .te-add .te-addgo span { display: none; }
  .jjs-taskadd .te-date, .jjs-proto .jjs-taskadd .te-date, .v2-todo .v2-todocard .jjs-taskadd .te-date, .te-proj, .te-add textarea { font-size: 16px !important; } /* no zoom on tap (iPhone) */
}

/* notes: lists and a checklist on the task */
.jjs-itemnote.te-notes { white-space: normal; }
.jjs-itemnote.te-notes > div { white-space: pre-wrap; }
.te-list { margin: 2px 0; padding-left: 20px; }
.te-list li { margin: 1px 0; }
.te-list li.te-l1 { margin-left: 16px; } .te-list li.te-l2 { margin-left: 32px; } .te-list li.te-l3, .te-list li.te-l4 { margin-left: 48px; }
.te-check { list-style: none; padding-left: 0; }
.te-check label { display: inline-flex; align-items: flex-start; gap: 7px; cursor: pointer; }
.te-check input { margin: 2px 0 0; width: 15px; height: 15px; accent-color: var(--ink); flex: 0 0 auto; }
.te-check input:disabled { cursor: default; }
.te-check li.done span { text-decoration: line-through; color: var(--muted); }
.te-gap { height: 6px; }
.te-count { display: inline-flex; align-items: center; gap: 3px; }
.te-count .jjs-ico { width: 12px; height: 12px; }
.te-count.all { color: var(--good, #1b7f3b); }

/* the task form */
.te-bar { display: flex; gap: 6px; margin: 0 0 6px; flex-wrap: wrap; }
.te-barbtn { font: inherit; font-size: 12.5px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line2, rgba(0,0,0,.16)); background: var(--surface, #fff); color: var(--ink); cursor: pointer; }
.te-barbtn:hover { border-color: var(--ink); }
.te-formdue, .te-formwho { margin-top: 6px; }
.te-formwho { margin: 2px 0 6px; }
.te-whotext[hidden] { display: none !important; }
#fTkNotes { resize: vertical; }
.jjs-2col.te-one { grid-template-columns: 1fr !important; display: block; }
.te-dueline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.te-dueline input[type=date] { flex: 0 1 200px; min-width: 150px; }
.te-dueline .te-formdue { margin-top: 0; }

/* v72.65: the format is a choice (menu), not automatic */
.te-fmt { flex: 0 0 auto; }
.te-fmt > summary.te-listbtn { list-style: none; }
.te-fmt .jjs-menu-list { left: 0; right: auto; min-width: 230px; }
.jjs-menu-list button.te-fmtitem { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.jjs-menu-list button.te-fmtitem small { font-weight: 400; color: var(--muted); font-size: 12px; }
.jjs-menu-list button.te-fmtitem.on { background: rgba(22,22,26,.06); }
.te-num { font-size: 13px; font-weight: 700; }
.te-bar { display: inline-block; margin: 0 0 6px; }
.te-bar > summary.te-barbtn { list-style: none; display: inline-flex; gap: 4px; align-items: center; }
.te-bar .jjs-menu-list { left: 0; right: auto; }

/* v72.66: a task just ticked stays in its place, crossed out */
.jjs-task.tk-stay .jjs-tasktitle { text-decoration: line-through; text-decoration-thickness: 1.5px; opacity: .55; }
.jjs-task.tk-stay .jjs-taskmeta, .jjs-task.tk-stay .jjs-itemnote { opacity: .55; }
