.action-queue-card {
  cursor: pointer;
  gap: 10px;
  overflow: hidden;
  padding: 16px;
}

.action-queue-card:hover,
.action-queue-card:focus-visible,
.action-queue-card.is-selected {
  border-color: #bfcbd1;
  box-shadow: 0 16px 34px rgba(23, 33, 31, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  outline: none;
  transform: translateY(-1px);
}

.action-queue-card.is-selected {
  border-color: rgba(18, 106, 91, 0.35);
  box-shadow: 0 18px 38px rgba(18, 106, 91, 0.13), 0 0 0 3px rgba(18, 106, 91, 0.07), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.action-queue-card.is-resolved {
  background:
    linear-gradient(180deg, rgba(246, 248, 249, 0.98), rgba(250, 252, 253, 0.98));
}

.action-queue-card.is-resolved .action-queue-next-step,
.action-queue-card.is-resolved .action-title-row strong {
  color: var(--muted);
}

.action-queue-header {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.action-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
}

.action-title-row strong,
.action-detail-card .card-title-block strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.action-source-row {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 750;
  gap: 6px;
  line-height: 1.25;
  margin-top: 7px;
}

.action-source-row:first-child {
  margin-top: 0;
}

.action-queue-bottom-row {
  align-items: flex-end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.action-queue-next-step {
  color: #26343d;
  font-size: 16px;
  line-height: 1.42;
  margin: 0;
}

.action-queue-footer {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.resolve-button {
  align-items: center;
  background: #e8f4ef;
  border: 1px solid #b8d9ce;
  border-radius: 999px;
  box-shadow: none;
  color: #126a5b;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  gap: 7px;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  white-space: nowrap;
}

.resolve-button::before {
  align-items: center;
  background: rgba(18, 106, 91, 0.1);
  border: 1px solid rgba(18, 106, 91, 0.2);
  border-radius: 999px;
  content: "✓";
  display: inline-flex;
  height: 18px;
  justify-content: center;
  line-height: 1;
  width: 18px;
}

.resolve-button:hover,
.resolve-button:focus-visible {
  background: #dff1ea;
  border-color: #9ccbbd;
  box-shadow: 0 6px 14px rgba(18, 106, 91, 0.08);
  outline: none;
}

.action-detail-card {
  display: grid;
  gap: 12px;
}

.action-detail-card > p {
  color: #26343d;
  line-height: 1.5;
  margin: 0;
}

.action-kind-missed-call {
  background: #eef7ff;
  border-color: #cfe3f7;
  color: #185f9c;
}

.action-kind-estimate,
.action-kind-referral {
  background: #fff7df;
  border-color: #efd98e;
  color: #7b5a00;
}

.action-kind-review {
  background: #fff0ee;
  border-color: #f3c7c0;
  color: #9a3429;
}

.action-kind-payment {
  background: #e8f4ef;
  border-color: #b8d9ce;
  color: var(--accent-strong);
}

.action-kind-appointment,
.action-kind-reactivation {
  background: #eef3f4;
  border-color: #dce5e8;
  color: #40515d;
}

.action-detail-panel .back-review-button {
  display: none;
}

@media (max-width: 760px) {
  .actions-view.is-detail-open .action-list,
  .actions-view.is-detail-open .action-metrics {
    display: none;
  }

  .actions-view.is-detail-open .action-detail-panel {
    display: grid;
  }

  .action-detail-panel {
    display: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .action-detail-panel .back-review-button {
    display: inline-flex;
  }

  .action-queue-bottom-row {
    grid-template-columns: 1fr;
  }

  .action-queue-footer {
    justify-content: flex-end;
  }

  .action-queue-card .card-header-row,
  .action-detail-card .card-header-row {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .action-queue-card .card-meta-actions,
  .action-detail-card .card-meta-actions {
    justify-content: flex-end;
  }

  .action-title-row {
    margin-top: 9px;
  }
}
