/* ── 回收桶：沉浸式 Studio／Flow 分類檢視 ── */
.trash-modal {
  width: min(100%, 840px);
  max-height: min(88vh, 760px);
}

.trash-modal-head {
  margin-bottom: 8px;
}

.trash-modal .trash-kicker {
  color: var(--danger);
}

.trash-status {
  min-height: 20px;
  margin-bottom: 14px;
  color: rgba(58, 58, 61, .68);
  font-size: 13px;
}

.trash-sections {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 2px 4px 4px;
  overflow-y: auto;
}

.trash-section {
  min-width: 0;
}

.trash-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.trash-section-head h4 {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.trash-count {
  min-width: 25px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(248, 248, 246, .72);
  color: rgba(58, 58, 61, .62);
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

.trash-list {
  display: grid;
  gap: 10px;
}

.trash-item {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 18px;
  background: rgba(248, 248, 246, .88);
  box-shadow: var(--shadow-xs);
}

.trash-item-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.trash-item-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--pastel-blush);
  font-size: 15px;
}

.trash-item-copy {
  min-width: 0;
  flex: 1;
}

.trash-item-title {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trash-item-parent,
.trash-item-expiry,
.trash-item-permission {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.trash-item-expiry {
  color: var(--stamp-rejected-text);
  font-weight: 650;
}

.trash-item-actions {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}

.trash-action-btn {
  min-width: 0;
  flex: 1;
  padding: 8px 10px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 750;
  transition: var(--tr);
}

.trash-action-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}

.trash-action-btn:disabled {
  cursor: wait;
  opacity: .55;
}

.trash-restore-btn {
  background: var(--pastel-mint);
  color: var(--stamp-approved-text);
}

.trash-delete-btn {
  border: 1px solid rgba(229, 140, 126, .28);
  background: rgba(248, 248, 246, .55);
  color: var(--danger);
}

.trash-delete-btn:hover:not(:disabled) {
  background: var(--danger);
  color: #fff;
}

.trash-empty {
  padding: 26px 16px;
  border: 1px dashed rgba(58, 58, 61, .22);
  border-radius: 18px;
  background: rgba(248, 248, 246, .32);
  color: rgba(58, 58, 61, .62);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.trash-modal .focus-dialog-actions {
  margin-top: 18px;
}

@media (max-width: 680px) {
  .trash-modal {
    max-height: none;
  }

  .trash-sections {
    grid-template-columns: 1fr;
    overflow: visible;
  }
}

@media (max-width: 420px) {
  .trash-item-actions {
    flex-direction: column;
  }
}
