.admin-page {
  background: #f4f1ea;
}

.simple-nav {
  gap: 10px;
}

.editor-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 24px 80px;
}

.editor-hero {
  padding: 36px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(94, 33, 56, 0.96), rgba(28, 35, 49, 0.94)),
    url("assets/hero-quilt-extracted.png") center / cover no-repeat;
}

.editor-hero h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: 48px;
}

.editor-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.editor-status {
  min-height: 28px;
  margin: 18px 0 0;
  font-weight: 800;
}

.editor-workspace {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
}

.editor-tabs {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  align-self: start;
}

.editor-tabs button,
.icon-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.editor-tabs button {
  text-align: left;
  padding: 10px 12px;
}

.editor-tabs button.active,
.editor-tabs button:focus-visible,
.editor-tabs button:hover {
  border-color: var(--plum);
  color: var(--white);
  background: var(--plum);
  outline: none;
}

.editor-panel {
  display: grid;
  gap: 18px;
}

.editor-panel-header,
.directory-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.editor-panel-header h2 {
  margin: 0;
  font-size: 28px;
}

.editor-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(28, 35, 49, 0.06);
}

.editor-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.editor-card-head h3 {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 6px;
}

.field label,
.check-field {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 850;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cfc8bd;
  border-radius: 6px;
  color: var(--ink);
  background: #fffefa;
  font: inherit;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(23, 109, 107, 0.14);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0 12px;
}

.remove-button {
  color: #8c1d35;
}

.quilt-preview {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.directory-lock {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.directory-lock .field {
  max-width: 520px;
}

@media (max-width: 840px) {
  .editor-workspace {
    grid-template-columns: 1fr;
  }

  .editor-tabs {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 520px) {
  .editor-shell {
    padding: 26px 14px 62px;
  }

  .editor-hero {
    padding: 26px 20px;
  }

  .editor-hero h1 {
    max-width: 11ch;
    font-size: 36px;
  }

  .editor-hero p {
    max-width: 31ch;
  }

  .editor-tabs {
    grid-template-columns: 1fr;
  }

  .editor-actions,
  .editor-panel-header,
  .directory-tools {
    align-items: stretch;
    flex-direction: column;
  }
}
