.push-codex-audit-action {
  min-width: 245px;
  display: grid;
  justify-items: stretch;
  gap: 6px;
}

.push-codex-audit-action button {
  min-height: 44px;
  white-space: nowrap;
}

.push-codex-audit-action button.is-active {
  background: linear-gradient(135deg, #7184a6, #596a89);
}

.push-codex-audit-action small {
  max-width: 300px;
  color: #7b8aa3;
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
  white-space: normal;
}

.push-page-tabs .push-codex-audit-action {
  min-width: 230px;
  margin-left: auto;
}

@media (max-width: 760px) {
  .push-codex-audit-action {
    width: 100%;
    min-width: 0;
  }

  .push-codex-audit-action small {
    max-width: none;
    text-align: left;
  }

  .push-page-tabs .push-codex-audit-action {
    width: 100%;
    margin-left: 0;
  }
}

.push-reference-uploader {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1fr) minmax(180px, 0.7fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #cbdcff;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff, #f3f7ff);
}

.push-reference-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.push-reference-copy b {
  color: #173767;
  font-size: 16px;
}

.push-reference-copy span,
.push-reference-actions span,
.push-reference-card span {
  color: #7183a1;
  font-size: 12px;
  line-height: 1.45;
}

.push-reference-paste-zone {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  overflow: hidden;
  border: 2px dashed #9ebbf2;
  border-radius: 12px;
  background: #fff;
  color: #2e65d5;
  text-align: center;
  cursor: pointer;
}

.push-reference-paste-zone:focus {
  outline: 3px solid rgba(47, 101, 218, 0.18);
  border-color: #2f65da;
}

.push-reference-paste-zone img {
  width: 100%;
  height: 84px;
  object-fit: contain;
}

.push-reference-actions {
  display: grid;
  grid-template-columns: .8fr 1fr 1.25fr;
  gap: 8px;
  align-content: center;
}

.push-reference-actions span {
  grid-column: 1 / -1;
  text-align: center;
}

.push-reference-list {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-top: 2px;
}

.push-reference-list > .empty {
  width: 100%;
  padding: 10px;
  text-align: center;
}

.push-reference-card {
  flex: 0 0 230px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 1px solid #d7e2f6;
  border-radius: 10px;
  background: #fff;
}

.push-reference-card > a,
.push-reference-card img {
  display: block;
  width: 76px;
  height: 58px;
  object-fit: cover;
  border-radius: 7px;
}

.push-reference-card > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.push-reference-card > div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.push-reference-card > div small {
  color: #7a879b;
  font-size: 11px;
  line-height: 1.35;
}

.push-reference-card.is-pending {
  border-color: #f1bd5b;
  background: #fffaf0;
}

.push-reference-card.is-complete {
  border-color: #8fd5b2;
  background: #f1fbf6;
}

.push-reference-card button {
  grid-column: 1 / -1;
  min-height: 30px;
  padding: 5px 10px;
}

@media (max-width: 900px) {
  .push-reference-uploader {
    grid-template-columns: 1fr;
  }

  .push-reference-list {
    grid-column: 1;
  }

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

  .push-reference-actions span {
    grid-column: 1;
  }
}
