/* Today list (Home), dispatcher screen, outreach settings — static/today.js.
   Same soft language as the rest: rounded surfaces, hairlines, one blue. */

/* ---------- Today block ---------- */
.today { gap: 10px; padding: 16px; }
.td-h { display: flex; align-items: center; gap: 10px; }
.td-h h2 { margin: 0; font-size: 20px; flex: 1; min-width: 0; }
.td-count { color: var(--ink-3); font-weight: 600; }
.td-disp svg { width: 16px; height: 16px; }
.td-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.td-bar span { display: block; height: 100%; border-radius: 999px; background: var(--success); transition: width .4s ease; }
.td-bar.sm { height: 6px; }
.td-hint { margin: 0; }
.td-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.td-row { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--r-sm); background: var(--surface-alt); border: 1px solid var(--line); }
.td-row.done { background: transparent; padding: 8px 12px; gap: 0; }
.td-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.td-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line-2); }
.td-n.ok { background: var(--success); color: #fff; border-color: transparent; }
.td-n svg { width: 14px; height: 14px; }
.td-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; border: 0; background: none; padding: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.td-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-sub { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-row.done .td-name { font-weight: 600; color: var(--ink-2); }
.td-donel { font-size: 13px; font-weight: 600; color: color-mix(in srgb, var(--success) 75%, var(--ink)); flex: none; }
.pill.td-b { padding: 1px 8px; font-size: 11px; flex: none; }
.pill.td-lock { background: var(--brand-soft); color: var(--brand-text); }
.td-chs { display: flex; gap: 4px; flex: none; }
.td-ch { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
a.td-ch:hover { color: var(--brand-text); border-color: var(--line-2); }
.td-ch svg { width: 16px; height: 16px; }
.td-msg { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.td-msg-h { font-weight: 600; margin-bottom: 2px; }
.td-msg-t { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.td-msg:hover .td-msg-t, .td-msg:focus-within .td-msg-t { -webkit-line-clamp: unset; }
.td-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.td-acts .btn { gap: 6px; }
.td-acts .btn svg { width: 16px; height: 16px; }
.td-acts .td-log { margin-left: auto; }
.td-copy.ok { color: color-mix(in srgb, var(--success) 75%, var(--ink)); }
.td-short { display: none; }
.td-open { text-decoration: none; color: var(--ink); background: var(--surface); }
.td-empty, .td-alldone { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--r-sm); background: var(--surface-alt); }
.td-alldone { flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; background: color-mix(in srgb, var(--success) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--success) 22%, transparent); }
.td-alldone > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 200px; }
.td-party { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: #fff; flex: none; }
.td-party svg { width: 22px; height: 22px; }
.td-mailfull { color: color-mix(in srgb, var(--warning) 70%, var(--ink)); }

/* team progress line */
.tline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 0 4px; font-size: 14px; color: var(--ink-2); }
.tl-h { font-weight: 600; margin-right: 2px; }
.tl-p b { color: var(--ink); font-weight: 700; }
.tl-p.me b { color: var(--brand-text); }
.tl-p.full b { color: color-mix(in srgb, var(--success) 75%, var(--ink)); }
.tl-p i { display: inline-flex; vertical-align: -2px; color: var(--success); }
.tl-p i svg { width: 14px; height: 14px; }
.tl-sep { color: var(--ink-3); }

/* collapsed Overview on Home: a quiet header, the old dashboard below */
.home-ov { display: flex; flex-direction: column; gap: 12px; }
.home-ov > .csec-h { padding: 0 4px; margin: 0; }
.home-ov > .csec-h .csec-t { font-weight: 700; font-size: 16px; }
.home-ov > .csec-b { display: flex; flex-direction: column; gap: 16px; }

/* ---------- dispatcher ---------- */
.dispatch { display: flex; flex-direction: column; gap: 16px; max-width: 1100px; margin: 0 auto; }
.dp-cc .chip { min-height: 38px; }
.dp-cc .chip svg { width: 20px; height: 14px; border-radius: 3px; }
.dp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: start; }
.dp-person.off { opacity: .72; }
.dp-ph { display: flex; align-items: center; gap: 10px; }
.dp-ph .who-av { width: 34px; height: 34px; font-size: 13px; cursor: default; }
.dp-pt { display: flex; flex-direction: column; min-width: 0; }
.dp-ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dp-q { display: flex; align-items: center; gap: 6px; }
.dp-q .input { width: 70px; min-height: 36px; padding: 4px 10px; }
.tgl.dp-act, .tgl.om-tgl { border-top: 0; min-height: 40px; padding: 0; gap: 8px; font-size: 14px; }
.tgl.dp-act > span { flex: none; }
.dp-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dp-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); min-width: 0; }
.dp-item:first-child { border-top: 0; }
.dp-item .td-n { width: 22px; height: 22px; }
.dp-item.done .td-name { color: var(--ink-3); }
.dp-name { flex: 1; min-width: 0; display: flex; flex-direction: column; border: 0; background: none; padding: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.dp-name .td-name { font-size: 14px; font-weight: 600; }
.dp-move { width: auto; max-width: 140px; min-height: 34px; padding: 4px 28px 4px 10px; font-size: 13px; flex: none; }
.dp-pool .search { margin-top: 4px; }
.dp-pool .td-chs { width: 66px; justify-content: flex-start; }
.dp-pool .td-ch { width: 20px; height: 20px; border: 0; background: none; }
.dp-pool .td-ch svg { width: 14px; height: 14px; }

/* ---------- team settings ---------- */
.member-w { display: flex; flex-direction: column; }
.om-sum { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.om-sum svg { width: 13px; height: 13px; flex: none; }
.om { margin: -4px 0 8px 52px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.om-form { width: 100%; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--r-sm); background: var(--surface-alt); border: 1px solid var(--line); }
.om-form .chip { min-height: 36px; padding: 0 12px; }
.om-form .chip svg { width: 20px; height: 14px; border-radius: 3px; }
.om-form .row-actions { justify-content: flex-end; }

@media (max-width: 760px) {
  .today { padding: 12px; }
  .td-row { padding: 10px; }
  .td-acts .btn { flex: 1; justify-content: center; min-height: 42px; }
  .td-acts .td-log { margin-left: 0; }
  .td-open .td-long { display: none; }
  .td-open .td-short { display: inline; }
  .td-open { white-space: nowrap; }
  .td-chs .td-ch { width: 28px; height: 28px; }
  .dp-grid { grid-template-columns: 1fr; }
  .om { margin-left: 0; }
}
@media (max-width: 380px) { .td-acts .td-copy span { display: none; } }

/* "Choose where you work first" (no outreach countries yet) */
.td-nocc .btn { align-self: flex-start; margin-top: 6px; }
