.publishing-head {
  margin-bottom: 24px;
}

.publishing-head h1 {
  margin-bottom: 8px;
}

.publishing-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  align-items: start;
}

.target-form,
.target-library {
  padding: 24px;
}

.target-form {
  display: grid;
  gap: 15px;
}

.target-form > div:first-child {
  margin-bottom: 4px;
}

.target-form label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
}

.target-form label input,
.target-form label select {
  width: 100%;
}

.target-form button[type="submit"] {
  border: 0;
  background: linear-gradient(135deg, #6B35E8 0%, #5224B5 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 20px -4px rgba(107, 53, 232, 0.42);
}

.target-form small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 6px;
  line-height: 1.45;
}

.target-library-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
}

.target-library-head select {
  height: 38px;
}

.target-rows {
  display: grid;
  gap: 12px;
}

.target-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  transition: all 0.16s ease;
}

.target-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.platform-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1A103C, #6B35E8);
  color: #F5B731;
  border: 1px solid rgba(245, 183, 49, 0.35);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

.target-row h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.target-row p {
  font-size: 12.5px;
}

.target-meta {
  text-align: right;
}

.target-meta span,
.target-meta small {
  display: block;
}

.target-meta span {
  font-size: 11px;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
}

.target-meta span.setup-required {
  color: var(--amber);
}

.target-meta small {
  font-size: 11.5px;
  color: var(--muted);
}

.target-empty {
  text-align: center;
  padding: 52px;
  color: var(--muted);
}

.default-option {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: center;
  gap: 9px !important;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--purple-soft);
  color: var(--primary) !important;
  cursor: pointer;
}

.default-option input {
  width: 17px !important;
  height: 17px;
  accent-color: var(--primary);
}

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

.target-row h3 em {
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--purple-soft);
  color: var(--primary);
  font-size: 10.5px;
  font-style: normal;
  text-transform: uppercase;
}

.check-message {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
}

.target-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
}

.target-actions button {
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 11.5px;
  border-radius: 8px;
}

.target-meta span.ready {
  color: var(--green);
}

@media (max-width: 920px) {
  .publishing-layout {
    grid-template-columns: 1fr;
  }
}
