/* Activities: standing work without a target. Chips on Today, the live block, the picker sheet, the Activities page. */

/* Today: "Or just…" chips */
.act-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -10px 0 22px; }
.act-k { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; margin-right: 2px; }
.act-k .ic { width: 14px; height: 14px; }
.act-chips form { display: contents; }
.act-chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; transition: background .12s, border-color .12s, color .12s; white-space: nowrap; }
.act-chip .ic { width: 16px; height: 16px; color: var(--accent); }
.act-chip:hover { background: var(--surface-2); border-color: var(--border-2); }
.act-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.act-chip.on .ic { color: inherit; }
.act-chip.edit { padding: 0 10px; color: var(--muted); text-decoration: none; } .act-chip.edit .ic { color: inherit; }

/* Today: the live block when on an activity */
.now.act { border-color: var(--accent-line); background: linear-gradient(120deg, var(--accent-soft), var(--surface) 55%); }
.now.act .now-k { color: var(--accent); }
.now-t.as-link { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.act-stop { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.act-stop input { height: 36px; width: 240px; max-width: 100%; }
.now-a.act-stop { justify-content: flex-end; }

/* the picker sheet */
.act-grid { grid-template-columns: repeat(3, 1fr); }
.act-grid form { display: contents; }
.new-opt.act { font: inherit; }
.new-opt.act.on { background: var(--accent-soft); border-color: var(--accent-line); }
.new-opt.act.on b::after { content: ' · on it'; color: var(--accent); font-weight: 500; }
#act-dlg .act-stop { padding: 0 18px 18px; }
#act-dlg .act-stop input { flex: 1; }
#act-dlg .hint { margin: 0 18px 10px; }

/* Team now */
.w-task.act .ic { width: 16px; height: 16px; color: var(--accent); }
.w-task.act > span:first-of-type { font-weight: 500; }

/* My work: stacked bar (tasks + activities) */
.b-stack { background: var(--accent-soft); position: relative; overflow: hidden; }
.b-stack .b-task { position: absolute; left: 0; right: 0; bottom: 0; display: block; width: auto !important; max-width: none !important; border-radius: 0; }
.b-act { background: var(--accent-soft); }
.me-legend .b-act { border: 1px solid var(--accent-line); }

/* Activities page */
.act-entries .timer.running { color: var(--ok); }
.act-list td:first-child { width: 100%; }
.act-edit { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.act-edit .act-ic .ic { width: 18px; height: 18px; color: var(--accent); }
.act-edit input[name=name] { height: 30px; width: 220px; }
.act-edit select { height: 30px; width: auto; }
.act-edit input[name=note] { height: 30px; flex: 1; min-width: 160px; }
.act-plan { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; } .act-plan input { height: 30px; width: 64px; }
.act-order { display: inline-flex; }
.rot-up .ic { transform: rotate(-90deg); } .rot-down .ic { transform: rotate(90deg); }
.act-add { margin-top: 12px; }

@media (max-width: 720px) {
  .act-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: -8px -16px 18px; padding: 0 16px; }
  .act-chips::-webkit-scrollbar { display: none; }
  .act-k { display: none; }
  .act-chip { height: 40px; }
  .act-grid { grid-template-columns: repeat(2, 1fr); }
  .act-stop input { width: 100%; }
  .now-a.act-stop { justify-content: stretch; }
  .act-edit input[name=name] { width: 100%; }
}
