.add-card {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.add-card-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.add-card-heading .eyebrow {
  margin-bottom: 5px;
}

.add-card-heading h2 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.add-card-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.add-form {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.2fr) auto;
  align-items: end;
  gap: 12px;
}

.add-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.add-form label span {
  color: #4b5563;
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.add-form input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.add-form input:focus {
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .06);
}

.add-record-button {
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-weight: 750;
  white-space: nowrap;
}

.add-record-button:hover {
  background: #1f2937;
}

.add-record-button:disabled {
  opacity: .55;
  cursor: wait;
}

.form-message {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.form-message.is-error {
  color: var(--red);
}

.form-message.is-success {
  color: var(--green);
}

@media (max-width: 900px) {
  .add-form {
    grid-template-columns: 1fr 1fr;
  }

  .add-record-button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .add-card {
    padding: 16px;
  }

  .add-card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .add-form {
    grid-template-columns: 1fr;
  }
}
