.admin-page {
  min-height: 100vh;
}

.admin-header {
  position: static;
}

.admin-main {
  width: min(620px, calc(100% - 32px));
  margin: 56px auto 80px;
}

.admin-panel {
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid var(--line);
  background: #101010;
}

.admin-panel[hidden] {
  display: none;
}

.admin-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 7vw, 42px);
  letter-spacing: -0.055em;
}

.admin-intro {
  margin: 0 0 28px;
  color: #b7b7b7;
  font-size: 13px;
  line-height: 1.65;
}

.admin-panel form {
  display: grid;
  gap: 12px;
}

.admin-panel label {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
}

.admin-panel input,
.admin-panel textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #444;
  border-radius: 0;
  background: #090909;
  color: var(--white);
}

.admin-panel textarea {
  min-height: 124px;
  resize: vertical;
  line-height: 1.5;
}

.admin-panel input[type="file"] {
  padding: 8px;
  font-size: 12px;
}

.admin-panel input:focus-visible,
.admin-panel textarea:focus-visible {
  outline: 2px solid #aec4ff;
  outline-offset: 2px;
}

.admin-panel .button {
  justify-self: start;
  margin-top: 12px;
  cursor: pointer;
}

.admin-panel .button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.field-help {
  margin: -5px 0 5px;
  color: #969696;
  font-size: 11px;
  line-height: 1.6;
}

.photo-preview {
  display: block;
  width: min(100%, 340px);
  max-height: 320px;
  margin: 4px 0 10px;
  border: 1px solid var(--line);
  object-fit: contain;
  object-position: left center;
}

.photo-preview[hidden] {
  display: none;
}

.form-status {
  min-height: 1.5em;
  margin: 16px 0 12px;
  color: #d3d3d3;
  font-size: 12px;
  line-height: 1.6;
}

.form-status[data-state="error"] {
  color: #ffaaa4;
}

.form-status[data-state="success"] {
  color: #b8d5ff;
}

.editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.editor-heading .eyebrow {
  margin-bottom: 10px;
}

.editor-heading h1 {
  margin-bottom: 0;
}

.editor-heading .button {
  min-height: 38px;
  white-space: nowrap;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

@media (max-width: 480px) {
  .admin-main {
    margin-top: 32px;
  }

  .editor-heading {
    align-items: flex-start;
  }

  .editor-heading .button {
    padding: 0 10px;
  }
}
