.detail-editor {
  display: grid;
  gap: 22px;
}

.detail-editor .detail-header {
  grid-template-columns: 1fr;
  align-items: start;
}

.editor-grid {
  display: grid;
  min-width: 0;
  border-top: 1px solid var(--control-border);
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 18px 0;
  border-bottom: 1px solid var(--control-border);
}

.editor-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.editor-grid span {
  color: var(--gold);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editor-grid input,
.editor-grid select,
.editor-grid textarea {
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--control-border);
  border-radius: var(--radius);
  outline: none;
  background: var(--control-bg-strong);
}

.editor-grid input,
.editor-grid select {
  height: 38px;
  padding: 0 10px;
}

.editor-grid textarea {
  resize: vertical;
  min-height: 76px;
  padding: 9px 10px;
}

.editor-grid input:focus,
.editor-grid select:focus,
.editor-grid textarea:focus {
  border-color: rgba(240, 201, 90, 0.78);
  box-shadow: 0 0 0 3px rgba(240, 201, 90, 0.12);
}

.detail-editor .actions {
  margin-top: 18px;
}

.detail-editor .action-button {
  gap: 7px;
}

.button-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

@media (max-width: 720px) {
  .detail-editor .detail-header,
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}
