.pending-hero {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.94));
  color: #f8fafc;
}

.pending-hero h2 {
  margin: 6px 0 4px;
  font-size: clamp(2.2rem, 11vw, 3.4rem);
  letter-spacing: -0.08em;
  line-height: 0.95;
}

.pending-hero p {
  color: rgba(248, 250, 252, 0.72);
}

.pending-hero .eyebrow {
  color: rgba(248, 250, 252, 0.64);
}

.pending-work-list,
.history-list {
  display: grid;
  gap: 12px;
}

.pending-work-card,
.history-card-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.74);
}

.pending-work-card.is-urgent {
  border-color: rgba(245, 158, 11, 0.34);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.09), rgba(248, 250, 252, 0.84));
}

.pending-main-row,
.history-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.pending-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.pending-title-line strong,
.history-card-top strong {
  display: block;
  min-width: 0;
  font-size: 1.02rem;
}

.pending-main-row span,
.history-card-top span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.pending-amount-box,
.history-amount {
  text-align: right;
  white-space: nowrap;
}

.pending-amount-box small,
.history-amount small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.pending-amount-box b,
.history-amount b {
  display: block;
  margin-top: 3px;
  font-size: 1.08rem;
  letter-spacing: -0.04em;
}

.pending-meta-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.status-chip,
.muted-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}

.status-neutral {
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
}

.status-info {
  background: rgba(56, 189, 248, 0.14);
  color: #0369a1;
}

.status-warn {
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
}

.status-good {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.status-danger {
  background: rgba(239, 68, 68, 0.13);
  color: #b91c1c;
}

.muted-chip {
  background: rgba(100, 116, 139, 0.1);
  color: var(--muted);
}

.pending-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
}

.soft-danger {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.18);
}

.tiny-icon-btn {
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.history-search-card {
  position: sticky;
  top: 8px;
  z-index: 10;
}

.compact-empty {
  padding: 20px;
}

@media (max-width: 560px) {
  .pending-main-row,
  .history-card-top {
    grid-template-columns: 1fr;
  }

  .pending-amount-box,
  .history-amount {
    text-align: left;
  }

  .pending-actions {
    grid-template-columns: 1fr;
  }

  .pending-actions button {
    width: 100%;
  }

  .history-search-card {
    position: static;
  }
}