.mc-card-body.mc-has-product-trigger {
  position: relative;
}

.mc-has-product-trigger .mc-card-title {
  padding-right: 36px;
}

.mc-product-trigger {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(45, 212, 191, 0.42);
  border-radius: 6px;
  background: rgba(45, 212, 191, 0.1);
  color: var(--accent-hi, #5eead4);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mc-product-trigger:hover,
.mc-product-trigger:focus-visible {
  border-color: rgba(94, 234, 212, 0.82);
  background: rgba(45, 212, 191, 0.2);
  color: #ccfbf1;
  outline: none;
}

.mc-product-trigger[data-selected-count]:not([data-selected-count="0"])::after {
  content: attr(data-selected-count);
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid var(--surface-1, #111722);
  border-radius: 9px;
  background: #f59e0b;
  color: #111827;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.mc-product-trigger[data-dispatch-status="queued"],
.mc-product-trigger[data-dispatch-status="running"] {
  border-color: rgba(245, 158, 11, 0.72);
  color: #fbbf24;
}

.mc-product-trigger[data-dispatch-status="complete"] {
  border-color: rgba(52, 211, 153, 0.72);
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

.mc-product-trigger[data-dispatch-status="failed"] {
  border-color: rgba(248, 113, 113, 0.72);
  color: #fca5a5;
}

.mc-product-mask {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 12, 0.78);
  backdrop-filter: blur(4px);
}

.mc-product-mask[hidden] {
  display: none;
}

.mc-product-dialog {
  display: flex;
  flex-direction: column;
  width: min(560px, 94vw);
  max-height: min(760px, 90vh);
  overflow: hidden;
  border: 1px solid var(--border-soft, rgba(148, 163, 184, 0.25));
  border-radius: 8px;
  background: var(--surface-1, #111722);
  color: var(--text-mid, #cbd5e1);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.mc-product-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.14));
}

.mc-product-heading {
  min-width: 0;
}

.mc-product-heading h3 {
  margin: 0;
  color: var(--text-hi, #f1f5f9);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0;
}

.mc-product-media-title {
  margin-top: 5px;
  overflow: hidden;
  color: var(--text-lo, #94a3b8);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-product-close {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-soft, rgba(148, 163, 184, 0.25));
  border-radius: 6px;
  color: var(--text-lo, #94a3b8);
  font-size: 20px;
  line-height: 1;
}

.mc-product-close:hover,
.mc-product-close:focus-visible {
  border-color: rgba(248, 113, 113, 0.58);
  color: #fca5a5;
  outline: none;
}

.mc-product-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.14));
  color: var(--text-lo, #94a3b8);
  font-size: 12px;
}

.mc-product-count {
  color: var(--accent-hi, #5eead4);
  font-weight: 750;
}

.mc-product-source-status {
  display: grid;
  gap: 3px;
  margin: 14px 22px 0;
  padding: 11px 12px;
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.14));
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.52);
  font-size: 12px;
  line-height: 1.45;
}

.mc-product-source-status strong {
  color: var(--text-mid, #cbd5e1);
  font-size: 13px;
}

.mc-product-source-status span {
  color: var(--text-lo, #94a3b8);
}

.mc-product-source-status.working {
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(14, 116, 144, 0.1);
}

.mc-product-source-status.pending {
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(146, 64, 14, 0.1);
}

.mc-product-source-status.ok {
  border-color: rgba(52, 211, 153, 0.38);
  background: rgba(6, 95, 70, 0.12);
}

.mc-product-source-status.ok strong { color: #6ee7b7; }
.mc-product-source-status.error {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(127, 29, 29, 0.13);
}
.mc-product-source-status.error strong { color: #fca5a5; }

.mc-product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 1 1 auto;
  gap: 8px;
  min-height: 0;
  max-height: min(430px, 50vh);
  padding: 16px 22px;
  overflow-y: auto;
}

.mc-product-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.14));
  border-radius: 6px;
  background: var(--surface-2, #151c27);
  color: var(--text-mid, #cbd5e1);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mc-product-option:hover {
  border-color: rgba(45, 212, 191, 0.38);
  background: rgba(45, 212, 191, 0.07);
}

.mc-product-option:has(input:checked) {
  border-color: rgba(45, 212, 191, 0.62);
  background: rgba(45, 212, 191, 0.12);
  color: var(--text-hi, #f1f5f9);
}

.mc-product-option input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  accent-color: #2dd4bf;
}

.mc-product-option span {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-product-option small {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--text-lo, #94a3b8);
  font-size: 10px;
  font-weight: 700;
}

.mc-product-option.enabled small {
  color: #5eead4;
}

.mc-product-option.pending small {
  color: #64748b;
}

.mc-product-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.14));
}

.mc-product-action {
  height: 34px;
  padding: 0 15px;
  border: 1px solid var(--border-soft, rgba(148, 163, 184, 0.25));
  border-radius: 6px;
  background: var(--surface-2, #151c27);
  color: var(--text-mid, #cbd5e1);
  font-size: 13px;
  font-weight: 700;
}

.mc-product-action:hover,
.mc-product-action:focus-visible {
  border-color: rgba(148, 163, 184, 0.46);
  color: var(--text-hi, #f1f5f9);
  outline: none;
}

.mc-product-action.primary {
  border-color: rgba(45, 212, 191, 0.55);
  background: #2dd4bf;
  color: #062421;
}

.mc-product-action.primary:hover,
.mc-product-action.primary:focus-visible {
  border-color: #5eead4;
  background: #5eead4;
  color: #041b19;
}

.mc-product-action:disabled {
  cursor: wait;
  opacity: 0.58;
}

.mc-product-foot-left {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.mc-product-queue-open {
  border-color: rgba(56, 189, 248, 0.42);
  color: #7dd3fc;
}

.mc-product-lsjhub-sync {
  border-color: rgba(45, 212, 191, 0.5);
  background: rgba(45, 212, 191, 0.1);
  color: #5eead4;
  white-space: nowrap;
}

.mc-product-lsjhub-sync:hover,
.mc-product-lsjhub-sync:focus-visible {
  border-color: rgba(94, 234, 212, 0.82);
  background: rgba(45, 212, 191, 0.18);
  color: #ccfbf1;
}

.mc-product-lsjhub-sync.complete:disabled {
  border-color: rgba(52, 211, 153, 0.48);
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  cursor: default;
  opacity: 1;
}

.mc-product-queue-mask {
  z-index: 2650;
}

.mc-product-queue-dialog {
  width: min(920px, 96vw);
  max-height: min(780px, 92vh);
}

.mc-product-queue-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.14));
}

.mc-product-queue-filters {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 3px;
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.14));
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.55);
}

.mc-product-queue-filter {
  min-width: 82px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-lo, #94a3b8);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.mc-product-queue-filter:hover,
.mc-product-queue-filter:focus-visible {
  color: var(--text-hi, #f1f5f9);
  outline: none;
}

.mc-product-queue-filter.active {
  background: rgba(45, 212, 191, 0.16);
  color: #5eead4;
}

.mc-product-queue-refresh {
  flex: 0 0 auto;
}

.mc-product-queue-count {
  padding: 10px 22px;
  border-bottom: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.14));
  color: var(--text-lo, #94a3b8);
  font-size: 12px;
}

.mc-product-queue-list {
  flex: 1 1 auto;
  min-height: 220px;
  overflow-y: auto;
}

.mc-product-queue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.9fr);
  gap: 24px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.12));
}

.mc-product-queue-row:last-child {
  border-bottom: 0;
}

.mc-product-queue-main,
.mc-product-queue-progress {
  min-width: 0;
}

.mc-product-queue-title {
  overflow: hidden;
  color: var(--text-hi, #f1f5f9);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-product-queue-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
  color: var(--text-lo, #94a3b8);
  font-size: 11px;
}

.mc-product-queue-meta time {
  margin-left: auto;
  white-space: nowrap;
}

.mc-product-queue-product {
  flex: 0 0 auto;
  padding: 2px 6px;
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 4px;
  color: #7dd3fc;
  font-weight: 700;
}

.mc-product-queue-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 5px 10px;
}

.mc-product-queue-status {
  min-width: 54px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(100, 116, 139, 0.14);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.mc-product-queue-status.queued {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}

.mc-product-queue-status.running {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
}

.mc-product-queue-status.complete {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
}

.mc-product-queue-status.failed {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
}

.mc-product-queue-phase {
  min-width: 0;
  overflow: hidden;
  color: var(--text-mid, #cbd5e1);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-product-queue-detail {
  grid-column: 2;
  overflow: hidden;
  color: var(--text-lo, #94a3b8);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-product-queue-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 30px;
  color: var(--text-lo, #94a3b8);
  font-size: 13px;
  text-align: center;
}

.mc-product-queue-empty.error {
  color: #fca5a5;
}

.mc-product-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 2700;
  transform: translateX(-50%);
  padding: 9px 14px;
  border: 1px solid rgba(45, 212, 191, 0.44);
  border-radius: 6px;
  background: #102522;
  color: #99f6e4;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.46);
  font-size: 13px;
  font-weight: 700;
}

body.mc-product-modal-open {
  overflow: hidden;
}

.lsj-page .lsj-bulk-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--border-soft, rgba(148, 163, 184, 0.22));
  border-radius: 8px;
  background: var(--surface-1, #111722);
}

.lsj-page .lsj-bulk-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: var(--text-mid, #cbd5e1);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.lsj-page .lsj-bulk-select-all input,
.lsj-page .lsj-bulk-checkbox {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #2dd4bf;
  cursor: pointer;
}

.lsj-page .lsj-bulk-checkbox:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.lsj-page .lsj-bulk-count {
  min-width: 86px;
  color: var(--accent-hi, #5eead4);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.lsj-page .lsj-bulk-spacer {
  flex: 1;
}

.lsj-page .lsj-bulk-action {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--border-soft, rgba(148, 163, 184, 0.25));
  border-radius: 6px;
  background: var(--surface-2, #171e29);
  color: var(--text-mid, #cbd5e1);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.lsj-page .lsj-bulk-action:hover,
.lsj-page .lsj-bulk-action:focus-visible {
  border-color: var(--accent-line, rgba(45, 212, 191, 0.56));
  color: var(--text-hi, #f1f5f9);
  outline: none;
}

.lsj-page .lsj-bulk-action.primary {
  border-color: rgba(45, 212, 191, 0.7);
  background: #25c9b7;
  color: #052e2b;
}

.lsj-page .lsj-bulk-action:disabled {
  border-color: var(--border-soft, rgba(148, 163, 184, 0.18));
  background: var(--surface-2, #171e29);
  color: var(--text-lo, #64748b);
  cursor: not-allowed;
  opacity: 0.7;
}

.lsj-page .lsj-bulk-head,
.lsj-page .lsj-bulk-cell {
  width: 58px;
  min-width: 58px;
  text-align: center;
}

.lsj-page .lsj-bulk-cell {
  vertical-align: middle;
}

.lsj-page .lsj-table tbody tr.lsj-bulk-selected {
  background: rgba(45, 212, 191, 0.065);
  box-shadow: inset 3px 0 0 rgba(45, 212, 191, 0.72);
}

.lsj-page .lsj-page-jump {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 4px;
  color: var(--text-lo, #94a3b8);
  font-size: 12px;
  white-space: nowrap;
}

.lsj-page .lsj-page-jump input {
  width: 68px;
  height: 34px;
  box-sizing: border-box;
  padding: 0 8px;
  border: 1px solid var(--border-soft, rgba(148, 163, 184, 0.25));
  border-radius: 6px;
  outline: 0;
  background: var(--surface-1, #111722);
  color: var(--text-hi, #f1f5f9);
  font: inherit;
  text-align: center;
}

.lsj-page .lsj-page-jump input:focus {
  border-color: var(--accent-line, rgba(45, 212, 191, 0.56));
  box-shadow: var(--ring-focus, 0 0 0 3px rgba(45, 212, 191, 0.14));
}

.lsj-page .lsj-page-jump button {
  min-width: 50px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--accent-line, rgba(45, 212, 191, 0.56));
  border-radius: 6px;
  background: rgba(45, 212, 191, 0.1);
  color: var(--accent-hi, #5eead4);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

@media (max-width: 620px) {
  .mc-product-mask { padding: 12px; }
  .mc-product-head { padding: 17px 16px 14px; }
  .mc-product-summary { padding: 11px 16px; }
  .mc-product-source-status { margin: 12px 16px 0; }
  .mc-product-list { grid-template-columns: 1fr; padding: 14px 16px; }
  .mc-product-foot { padding: 13px 16px 16px; }
  .mc-product-foot-left { width: 100%; margin-right: 0; }
  .mc-product-foot-left .mc-product-action { flex: 1 1 0; min-width: 0; padding-inline: 10px; }
  .mc-product-queue-toolbar { align-items: stretch; flex-direction: column; padding: 12px 16px; }
  .mc-product-queue-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-product-queue-filter { min-width: 0; }
  .mc-product-queue-refresh { align-self: flex-end; }
  .mc-product-queue-count { padding: 9px 16px; }
  .mc-product-queue-row { grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; }
  .mc-product-queue-detail { grid-column: 2; }
  .lsj-page .lsj-bulk-toolbar { align-items: stretch; flex-wrap: wrap; }
  .lsj-page .lsj-bulk-spacer { display: none; }
  .lsj-page .lsj-bulk-action { flex: 1 1 120px; }
  .lsj-page .lsj-page-jump { width: 100%; justify-content: center; order: 3; }
}
