.actions-group-callout {
  border-radius: 0.5rem;
}

/* Lucide icon sizing utilities — unscoped, drop-in replacement for
   `style="width: Npx; height: Npx"` on `<i data-lucide="...">` elements.
   Sizes used today in the template tree; add more here if needed. Phase
   2 of the inline-style cleanup item (backlog) — Phase 1 was the hex
   colour Jinja filter shipped in House Style (PR #407). */
.i-12 { width: 12px; height: 12px; }
.i-14 { width: 14px; height: 14px; }
.i-16 { width: 16px; height: 16px; }
.i-18 { width: 18px; height: 18px; }
.i-20 { width: 20px; height: 20px; }
.i-24 { width: 24px; height: 24px; }
.i-28 { width: 28px; height: 28px; }
.i-32 { width: 32px; height: 32px; }
.i-48 { width: 48px; height: 48px; }
.i-64 { width: 64px; height: 64px; }

/* Task list report */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.task-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.4rem;
  border: 1px solid #e0e0e0;
  background: #fff;
  text-decoration: none;
  color: #333;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.task-card:hover {
  border-color: #1779ba;
  box-shadow: 0 2px 6px rgba(23, 121, 186, 0.1);
  text-decoration: none;
  color: #333;
}

.task-card--action {
  border-left: 3px solid #1779ba;
}

.task-card--on-demand {
  border-left: 3px solid #e0e0e0;
}

.task-card__body {
  flex: 1;
  min-width: 0;
}

.task-card__name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.task-card__description {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-card__meta {
  font-size: 0.75rem;
  color: #888;
}

.task-card__env {
  margin-left: 0.4rem;
  font-size: 0.65rem;
}

.task-card__action {
  flex-shrink: 0;
}

.task-list__empty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  color: #888;
  font-size: 0.875rem;
  border: 1px dashed #ddd;
  border-radius: 0.4rem;
  margin-bottom: 1rem;
}

.task-list__empty-icon {
  width: 18px;
  height: 18px;
  color: #3adb76;
  flex-shrink: 0;
}

/* Task group (grouped-by-process view) */
.task-group {
  margin-bottom: 1rem;
}

.task-group__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.task-group__name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
}

.task-group__more {
  font-size: 0.75rem;
  color: #1779ba;
}

/* Compact task row (used inside task-group) */
.task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.3rem;
  border: 1px solid #e8e8e8;
  background: #fff;
  text-decoration: none;
  color: #333;
  transition: border-color 0.15s;
  margin-bottom: 0.25rem;
}

.task-row:hover {
  border-color: #1779ba;
  text-decoration: none;
  color: #333;
}

.task-row--action {
  border-left: 3px solid #1779ba;
}

.task-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.task-row__name {
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-row__detail {
  font-size: 0.78rem;
  color: #777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-row__action {
  flex-shrink: 0;
}

/* Action cards grid */
.action-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem 0.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.4rem;
  background: #fff;
  text-align: center;
  color: #333;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.action-card:hover {
  border-color: #1779ba;
  box-shadow: 0 2px 6px rgba(23, 121, 186, 0.12);
  background: #f6faff;
  color: #1779ba;
  text-decoration: none;
}

.action-card__icon {
  width: 28px;
  height: 28px;
  color: #555;
  transition: color 0.15s;
}

.action-card:hover .action-card__icon {
  color: #1779ba;
}

.action-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Toast notifications */
#tasker-toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.tasker-toast {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 0.4rem;
  font-size: 0.875rem;
  max-width: 22rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  pointer-events: all;
  opacity: 0;
  transform: translateX(1rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
  background: #fff;
  border-left: 4px solid #ccc;
  color: #333;
}

.tasker-toast--visible {
  opacity: 1;
  transform: translateX(0);
}

.tasker-toast--success { border-left-color: #3adb76; }
.tasker-toast--error   { border-left-color: #cc4b37; }
.tasker-toast--warning { border-left-color: #ffae00; }

.tasker-toast__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.tasker-toast--success .tasker-toast__icon { color: #3adb76; }
.tasker-toast--error   .tasker-toast__icon { color: #cc4b37; }
.tasker-toast--warning .tasker-toast__icon { color: #ffae00; }

.tasker-toast__message {
  flex: 1;
}

.tasker-toast__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: #999;
  padding: 0;
  flex-shrink: 0;
}

.tasker-toast__close:hover {
  color: #333;
}

/* button_select field type */
.button-select-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.button-select-group .button {
  margin: 0;
}
