/* checklist card */
.cl { --good: #3fb27f; margin-top: 6px; max-width: 580px; padding: 14px 14px 10px; border-radius: var(--r-md); background: var(--panel-2); border: 1px solid var(--line-2); }
.cl.is-done { border-color: rgba(63, 178, 127, .45); }
.cl-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.cl-tag { font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 2px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); }
.cl-tag.is-ok { background: rgba(63, 178, 127, .15); color: var(--good); }
.cl-lock, .cl-pinned { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.cl-lock svg, .cl-pinned svg { width: 13px; height: 13px; }
.cl-t { font-size: 16px; font-weight: 600; margin: 6px 0 8px; color: var(--ink); text-wrap: balance; overflow-wrap: anywhere; unicode-bidi: plaintext; text-align: start; }
.cl-prog { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cl-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--panel-3); overflow: hidden; }
.cl-bar i { display: block; height: 100%; background: var(--good); border-radius: 3px; transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.cl-items { display: flex; flex-direction: column; margin-top: 8px; }
.cl-it { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 7px 6px; border-radius: var(--r-sm); }
.cl-it:hover { background: rgba(255, 255, 255, .03); }
.cl-it.is-drag { opacity: .4; }
.cl-it.is-over-top { box-shadow: inset 0 2px 0 var(--accent); }
.cl-it.is-over-bottom { box-shadow: inset 0 -2px 0 var(--accent); }
.cl-it--empty .cl-tx { color: var(--ink-4); }
.cl-handle { width: 14px; flex: none; margin-top: 2px; margin-left: -4px; color: var(--ink-4); cursor: grab; opacity: 0; transition: opacity .12s; }
.cl-handle svg { width: 14px; height: 18px; fill: currentColor; stroke: none; }
.cl-it:hover .cl-handle { opacity: 1; }
.cl-box { width: 20px; height: 20px; flex: none; margin-top: 1px; padding: 0; border-radius: 6px; border: 2px solid var(--line-3); background: none; color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .12s, border-color .12s; }
.cl-box svg { width: 13px; height: 13px; stroke-width: 3; }
.cl-box:hover:not(:disabled) { border-color: var(--good); }
.cl-box.is-on { background: var(--good); border-color: var(--good); }
.cl-box:disabled { cursor: not-allowed; opacity: .55; }
.cl-itx { flex: 1; min-width: 0; }
.cl-tx { color: var(--ink); overflow-wrap: anywhere; unicode-bidi: plaintext; text-align: start; }
.cl-it.is-on .cl-tx { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(138, 143, 156, .6); }
.cl-by { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }
.cl-by .av--xs { width: 18px; height: 18px; font-size: 9px; }
.cl-ia { display: flex; gap: 2px; flex: none; opacity: 0; transition: opacity .12s; }
.cl-it:hover .cl-ia, .cl-ia:focus-within { opacity: 1; }
.cl-ia button { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.cl-ia button svg { width: 15px; height: 15px; }
.cl-ia button:hover { background: var(--panel-3); color: var(--ink); }
.cl-ia button.is-danger:hover { color: var(--bad); }
.cl-edit { width: 100%; height: 30px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--accent); background: var(--bg-2); color: var(--ink); outline: none; font: inherit; unicode-bidi: plaintext; }
.cl-add { display: flex; align-items: center; gap: 10px; padding: 6px 6px 2px; color: var(--ink-4); }
.cl-add svg { width: 18px; height: 18px; flex: none; margin-left: 1px; }
.cl-addin { flex: 1; min-width: 0; padding: 6px 2px; border: 0; border-bottom: 1px dashed var(--line-3); background: none; color: var(--ink); outline: none; font: inherit; unicode-bidi: plaintext; }
.cl-addin:focus { border-bottom-color: var(--accent); }
.cl-addin:disabled { opacity: .6; }
.cl-alldone { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: var(--r-sm); background: rgba(63, 178, 127, .1); color: var(--good); font-weight: 500; font-size: 13px; }
.cl-alldone svg { width: 16px; height: 16px; stroke-width: 2.6; }
.cl-act { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--panel); font-size: 12px; color: var(--ink-3); }
.cl-act__row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cl-act__row .av--xs { width: 18px; height: 18px; font-size: 9px; }
.cl-act__row b { color: var(--ink-2); font-weight: 500; }
.cl-act__row > span { min-width: 0; overflow-wrap: anywhere; }
.cl-act__note { padding: 4px 0; }
.cl-act__note.is-bad { color: var(--bad); }
.cl-act__note .spinner { width: 16px; height: 16px; }
.cl-act .cl-lnk { align-self: flex-start; }
.cl-f { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--ink-3); }
.cl-sp { flex: 1; }
.cl-lnk { border: 0; background: none; color: var(--accent); padding: 4px 2px; font-size: 12px; cursor: pointer; }
.cl-lnk:hover { text-decoration: underline; }
.cl-more { width: 32px; height: 30px; padding: 0; }

/* checklist complete row */
.cl-endrow .msg__gutter { color: #3fb27f; }
.cl-endrow .msg__body { color: var(--ink-3); }
.cl-endrow .msg__body b { color: var(--ink); font-weight: 600; }
.cl-endrow.is-link { cursor: pointer; }
.cl-endrow.is-link:hover .msg__body b { text-decoration: underline; }

/* pinned checklist bar */
.cl-pinbar { flex: none; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 18px; border-bottom: 1px solid var(--line); background: var(--panel); color: var(--ink-2); font-size: 12.5px; cursor: pointer; }
.cl-pinbar:hover { background: var(--panel-2); }
.cl-pinbar svg { width: 15px; height: 15px; color: var(--ink-3); }
.cl-pinbar b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.cl-pinbar__n { flex: none; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.cl-pinbar__bar { flex: none; width: 80px; height: 5px; border-radius: 3px; background: var(--panel-3); overflow: hidden; }
.cl-pinbar__bar i { display: block; height: 100%; background: #3fb27f; }
.cl-pinbar.is-done .cl-pinbar__n { color: #3fb27f; }

/* dialogs */
.cl-bulk { height: auto; min-height: 104px; padding: 9px 11px; line-height: 1.6; resize: vertical; }
.cl-prev { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.cl-prev > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cl-prev > div > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-box--sm { width: 16px; height: 16px; border-radius: 5px; cursor: default; }
.cl-prev__more { color: var(--ink-4); padding-left: 24px; }
.cl-accrow .pl-chips { flex: none; }
.cl-who { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.cl-who__row { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-who__row button { display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel-2); color: var(--ink-2); font-size: 12.5px; cursor: pointer; }
.cl-who__row button.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.cl-who__row button svg { width: 12px; height: 12px; }
.cl-who > button { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel-2); color: var(--ink-2); font-size: 12.5px; cursor: pointer; }
.cl-who > button.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.cl-who > button svg { width: 12px; height: 12px; }
.cl-role { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; }
.cl-who__search { position: relative; }
.cl-search { height: 36px; }
.cl-results { display: flex; flex-direction: column; margin-top: 4px; max-height: 220px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--panel); padding: 4px; }
.cl-result { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: none; color: var(--ink); text-align: start; cursor: pointer; font: inherit; }
.cl-result:hover, .cl-result:focus-visible { background: var(--panel-2); }
.cl-result > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-result small { margin-left: 6px; color: var(--ink-4); font-size: 12px; }
.cl-results__none { padding: 8px; color: var(--ink-4); font-size: 12.5px; }
.pl-dlg.cl-ad { width: 480px; }

@media (hover: none) {
  .cl-ia { opacity: 1; }
  .cl-handle { display: none; }
}
@media (max-width: 820px) {
  .cl { padding: 12px 12px 8px; max-width: none; }
  .cl-box { width: 24px; height: 24px; }
  .cl-it { padding: 8px 4px; }
  .cl-ia button { width: 32px; height: 32px; }
  .cl-addin { font-size: 16px; }
  .cl-edit { height: 36px; font-size: 16px; }
  .cl-more { height: 36px; }
  .cl-pinbar { padding: 8px 12px; }
  .cl-pinbar__bar { width: 56px; }
  .pl-dlg.cl-cd { height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top); }
  .pl-dlg.cl-ad { width: 100%; }
  .cl-bulk { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .cl-bar i { transition: none; }
}
