/**
 * Meesho Label Cropper — hub-side handoff banner.
 * Used by /meesho-label-tool when the extension delivers a dropped batch.
 */
.sah-handoff {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid var(--c-border, rgba(164, 179, 255, 0.14));
  border-left: 3px solid var(--c-accent, #7c83ff);
  border-radius: var(--radius-md, 14px);
  background: var(--c-surface, rgba(8, 20, 32, 0.84));
  box-shadow: var(--shadow-lg, 0 20px 40px -15px rgba(2, 6, 12, 0.6));
}

.sah-handoff[data-state="done"] { border-left-color: var(--c-success, #10b981); }
.sah-handoff[data-state="error"] { border-left-color: var(--c-danger, #ef4444); }

.sah-handoff-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(124, 131, 255, 0.14);
  color: var(--c-accent-light, #a5b4fc);
  font-size: 16px;
}

.sah-handoff[data-state="done"] .sah-handoff-icon { background: rgba(16, 185, 129, 0.16); color: var(--c-success, #10b981); }
.sah-handoff[data-state="error"] .sah-handoff-icon { background: rgba(239, 68, 68, 0.16); color: var(--c-danger, #ef4444); }

.sah-handoff-body { flex: 1 1 auto; min-width: 0; }
.sah-handoff-body strong { display: block; font-size: 14.5px; font-weight: 800; color: var(--c-text, #edf3ff); line-height: 1.4; }
.sah-handoff-body p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--c-text-faint, #8ea0b8); }

.sah-handoff-bar { height: 6px; margin-top: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.sah-handoff-bar span { display: block; height: 100%; width: 0; background: var(--c-gradient, linear-gradient(135deg, #6366f1 0%, #8b5cf6 56%, #ec4899 100%)); transition: width 0.25s ease; }

.sah-handoff-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 10px; }
.sah-handoff-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--c-gradient, linear-gradient(135deg, #6366f1 0%, #8b5cf6 56%, #ec4899 100%));
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
}
.sah-handoff-link { font-size: 12.5px; font-weight: 700; color: var(--c-accent-light, #a5b4fc); text-decoration: none; }
.sah-handoff-link:hover { text-decoration: underline; }

.sah-handoff-close {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--c-border, rgba(164, 179, 255, 0.14));
  background: transparent;
  color: var(--c-text-faint, #8ea0b8);
  cursor: pointer;
  line-height: 1;
}
.sah-handoff-close:hover { color: #fff; border-color: var(--c-border-hover, rgba(129, 140, 248, 0.3)); }

@media (max-width: 640px) {
  .sah-handoff { padding: 14px; }
  .sah-handoff-icon { width: 34px; height: 34px; border-radius: 10px; }
}
