/* Tasks surface (#tasksRoot) + Command Center task modules. Scoped tk-*/cc-task-*/
   cc-bd-* so nothing collides. Uses the EAP brand tokens (periwinkle/Cormorant). */

/* ── Tasks tab ─────────────────────────────────────────────────────────────── */
#tasksRoot .tk-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
#tasksRoot .tk-segs { display: inline-flex; background: #f1f2f8; border-radius: 999px; padding: 3px; gap: 2px; }
#tasksRoot .tk-seg { border: none; background: transparent; color: var(--muted); font-family: var(--font-sub); font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
#tasksRoot .tk-seg.is-active { background: #fff; color: var(--brand-dark); box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
#tasksRoot .tk-add-btn { background: var(--brand); color: var(--on-brand); border: none; border-radius: 999px; padding: 9px 18px; font-size: 13px; font-weight: 700; font-family: var(--font-sub); cursor: pointer; box-shadow: 0 4px 12px rgba(125,140,202,0.3); }
#tasksRoot .tk-add-btn:hover { filter: brightness(1.05); }

#tasksRoot .tk-quick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); }
#tasksRoot .tk-quick input[type="text"] { flex: 1; min-width: 200px; }
#tasksRoot .tk-quick input { background: var(--field-bg); border: 1.5px solid var(--field-border); border-radius: 8px; padding: 9px 11px; font-size: 14px; color: var(--ink); font-family: var(--font-body); }
#tasksRoot .tk-quick input:focus { outline: none; border-color: var(--brand); }
#tasksRoot .tk-save { background: var(--brand); color: #fff; border: none; border-radius: 999px; padding: 9px 18px; font-weight: 700; font-family: var(--font-sub); font-size: 13px; cursor: pointer; }
#tasksRoot .tk-cancel { background: transparent; border: 1.5px solid var(--field-border); color: var(--ink-soft); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-family: var(--font-sub); font-size: 13px; cursor: pointer; }

#tasksRoot .tk-group { margin-bottom: 18px; }
#tasksRoot .tk-group-head { font-family: var(--font-sub); font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
#tasksRoot .tk-group-head span { color: var(--brand-dark); }
#tasksRoot .tk-row { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; margin-bottom: 7px; box-shadow: var(--shadow); }
#tasksRoot .tk-row.done { opacity: .6; }
#tasksRoot .tk-mid { flex: 1; min-width: 0; }
#tasksRoot .tk-title { font-size: 14.5px; color: var(--ink); font-weight: 500; cursor: pointer; }
#tasksRoot .tk-title:hover { color: var(--brand-dark); }
#tasksRoot .tk-row.done .tk-title { text-decoration: line-through; }
#tasksRoot .tk-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
#tasksRoot .tk-del { background: none; border: none; color: var(--muted); font-size: 15px; cursor: pointer; padding: 2px 6px; line-height: 1; flex: 0 0 auto; }
#tasksRoot .tk-del:hover { color: var(--bad); }
#tasksRoot .tk-empty { text-align: center; color: var(--muted); font-size: 14px; padding: 40px 16px; }

/* shared check button (tab + command center) */
.tk-check { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 7px; border: 2px solid var(--field-border); background: var(--card); color: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.tk-check svg { width: 13px; height: 13px; }
.tk-check:hover { border-color: var(--ok); color: rgba(47,174,95,0.45); }
.tk-check.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.tk-due { display: inline-block; font-weight: 700; }
.tk-due.overdue { color: var(--bad); }
.tk-due.today { color: var(--brand-dark); }
.tk-contact { color: var(--ink-soft); }

/* ── Command Center: Tasks Due Today ─────────────────────────────────────────── */
.cc-task { display: flex; align-items: flex-start; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cc-task:last-child { border-bottom: none; }
.cc-task-mid { flex: 1; min-width: 0; }
.cc-task-t { font-size: 14px; color: var(--ink); font-weight: 500; }
.cc-task-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cc-task-sub .cc-over { color: var(--bad); font-weight: 700; }
.cc-task-empty { color: var(--muted); font-size: 13.5px; padding: 8px 0; }

/* ── Command Center: Brain Dump ──────────────────────────────────────────────── */
.cc-bd-lines { display: flex; flex-direction: column; gap: 8px; }
.cc-bd-line { display: flex; gap: 8px; }
.cc-bd-line .cc-bd-title { flex: 1; min-width: 0; }
.cc-bd-line input { background: var(--field-bg); border: 1.5px solid var(--field-border); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; color: var(--ink); font-family: var(--font-body); }
.cc-bd-line input:focus { outline: none; border-color: var(--brand); }
.cc-bd-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.cc-bd-add { background: transparent; border: 1.5px solid var(--field-border); color: var(--ink-soft); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-family: var(--font-sub); font-size: 12.5px; cursor: pointer; }
.cc-bd-save { background: var(--brand); color: #fff; border: none; border-radius: 999px; padding: 8px 18px; font-weight: 700; font-family: var(--font-sub); font-size: 13px; cursor: pointer; }
.cc-bd-note { font-size: 12.5px; color: var(--ok); font-weight: 600; }
