.new-product-memo-form {
  margin-bottom: 28px;
}

.new-product-memo-form fieldset {
  display: grid;
  gap: 16px;
}

.new-product-memo-form textarea {
  min-height: 84px;
  resize: vertical;
}

.new-product-memo-saved {
  border-top: 1px solid var(--border-color, #d9e7e3);
  padding-top: 22px;
}

.new-product-memo-toolbar,
.new-product-memo-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.new-product-memo-toolbar {
  margin-bottom: 14px;
}

.new-product-memo-toolbar h3,
.new-product-memo-card h4 {
  margin: 0;
}

.new-product-memo-toolbar p {
  margin: 4px 0 0;
  color: var(--muted-text, #687b77);
}

.new-product-memo-toolbar label {
  min-width: min(340px, 100%);
}

.new-product-memo-list {
  display: grid;
  gap: 16px;
}

.new-product-memo-card {
  background: var(--card-color, #fff);
  border: 1px solid var(--border-color, #d9e7e3);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgb(40 85 76 / 8%);
  padding: 18px;
}

.new-product-memo-card h4 {
  font-size: 1.15rem;
  margin-top: 3px;
}

.new-product-memo-date {
  color: var(--muted-text, #687b77);
  font-size: .78rem;
}

.new-product-memo-tag {
  display: inline-block;
  background: var(--accent-soft, #e9f5f1);
  border-radius: 999px;
  color: var(--text-color, #29433e);
  font-size: .82rem;
  margin-top: 8px;
  padding: 4px 10px;
}

.new-product-memo-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.new-product-folder-row {
  align-items: center;
  background: var(--app-background, #f8fbfa);
  border: 1px dashed var(--border-color, #d9e7e3);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 14px 0 0;
  padding: 10px 12px;
}

.new-product-folder-row span {
  color: var(--muted-text, #687b77);
  font-size: .78rem;
  font-weight: 700;
}

.new-product-folder-row code {
  color: var(--text-color, #29433e);
  font-family: inherit;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.new-product-memo-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}

.new-product-memo-detail {
  background: var(--app-background, #f8fbfa);
  border-radius: 10px;
  padding: 11px 12px;
}

.new-product-memo-detail dt {
  color: var(--muted-text, #687b77);
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.new-product-memo-detail dd {
  line-height: 1.65;
  margin: 0;
  overflow-wrap: anywhere;
}

.new-product-handoff-notice {
  background: var(--accent-soft, #e9f5f1);
  border: 1px solid var(--border-color, #b9d8cf);
  border-radius: 12px;
  color: var(--text-color, #29433e);
  font-weight: 700;
  margin: 0 0 14px;
  padding: 12px 14px;
}

@media (max-width: 720px) {
  .new-product-memo-toolbar,
  .new-product-memo-card-heading {
    display: grid;
  }

  .new-product-memo-toolbar label {
    min-width: 0;
  }

  .new-product-memo-card-actions {
    justify-content: stretch;
  }

  .new-product-memo-card-actions button {
    flex: 1 1 auto;
  }

  .new-product-memo-details {
    grid-template-columns: 1fr;
  }
}
