.editor-body {
  background: #faf7f3;
}
.editor-header {
  max-width: 1160px;
  margin: auto;
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}
.editor-header a {
  font-size: 13px;
}
.editor-main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 38px 30px 80px;
}
.editor-main > h1 {
  font-size: 51px;
  margin: 7px 0 20px;
}
.editor-intro {
  max-width: 890px;
  font-size: 14px;
}
.upload-budget-help {
  border: 1px solid #c8b8d3;
  border-left: 4px solid #684a83;
  border-radius: 6px;
  padding: 16px 18px;
  margin: 20px 0;
  background: #eee6f2;
  font-size: 14px;
  line-height: 1.55;
}
.upload-budget-help h2 {
  font-size: 20px;
  margin: 0 0 8px;
}
.upload-budget-help ul {
  margin: 0;
  padding-left: 20px;
}
.upload-budget-help li + li {
  margin-top: 6px;
}
.upload-budget-help p {
  margin: 10px 0 0;
  font-size: 13px;
}
.editor-steps {
  display: flex;
  gap: 35px;
  padding: 0;
  list-style: none;
  margin: 27px 0;
}
.editor-steps li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.editor-steps span {
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  background: #eee3f4;
  color: var(--purple);
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: sticky;
  top: 0;
  padding: 14px 0;
  background: #faf7f3f5;
  z-index: 15;
}
.editor-toolbar [aria-pressed="true"] {
  background: #ddcbe9;
  border-color: #9473aa;
}
.primary {
  background: #684a83;
  color: #fff;
  border-color: #684a83;
}
.primary:hover {
  color: #fff;
  background: #513766;
}
#editor-status {
  background: #eee6f2;
  border: 1px solid var(--border);
  padding: 14px 17px;
  font-size: 13px;
  border-radius: 6px;
  margin: 12px 0 25px;
  min-height: 54px;
}
.editor-main label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 12px 0 5px;
  color: #51425c;
}
.editor-main select,
.editor-main input:not([type="file"]),
.editor-main textarea {
  width: 100%;
  border: 1px solid #c8b8d3;
  border-radius: 5px;
  padding: 11px 13px;
  background: #fffdfb;
  min-height: 44px;
  color: var(--ink);
  font-size: 14px;
}
.editor-main textarea {
  resize: vertical;
}
#chapter-choice {
  max-width: 500px;
  margin-bottom: 20px;
}
#text-fields > h2 {
  margin: 15px 0 22px;
}
.edit-field {
  margin-bottom: 16px;
}
.edit-field small {
  display: block;
  font-size: 11px;
  color: #7b6a82;
  margin-top: 5px;
}
.editor-main fieldset {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 19px 0;
  padding: 15px 22px;
  background: #ffffff6b;
}
.editor-main fieldset fieldset {
  background: #f2eaf52b;
}
.editor-main legend {
  font-family: var(--serif);
  font-size: 24px;
  padding: 0 10px;
}
#picture-panel > h2 {
  margin-bottom: 13px;
}
#picture-panel > p {
  font-size: 13px;
}
.picture-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 7px;
  margin: 22px 0;
  background: #fffdfa;
}
.picture-card > img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #eee5f3;
  border: 1px solid var(--border);
}
.picture-card h3 {
  font-size: 27px;
}
.picture-source {
  font-size: 11px;
  color: #796681;
  overflow-wrap: anywhere;
  margin: 7px 0;
}
.picture-card input[type="file"] {
  max-width: 100%;
  font-size: 12px;
  padding: 9px 0;
  min-height: 44px;
}
.editor-file-tools,
.export-help {
  padding: 27px;
  margin-top: 30px;
  background: #f0e8f4;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.editor-file-tools h2,
.export-help h2 {
  margin-bottom: 14px;
}
.editor-file-tools p,
.export-help p {
  font-size: 13px;
}
.editor-file-tools input[type="file"] {
  display: block;
  margin: 10px 0 20px;
  max-width: 100%;
  min-height: 44px;
}
.editor-file-tools button {
  margin-bottom: 15px;
}
#publish-status {
  padding: 14px;
  background: #fffdfb;
  border-left: 4px solid #9473aa;
  overflow-wrap: anywhere;
}
#publishing .button {
  margin: 14px 8px 0 0;
}
.editor-main button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.editor-main input[type="password"] {
  max-width: 640px;
}
code {
  background: #e6dceb;
  font-size: 0.93em;
  padding: 2px 5px;
  border-radius: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  .editor-main {
    padding: 26px 20px 50px;
  }
  .editor-main > h1 {
    font-size: 38px;
  }
  .editor-header {
    padding: 19px 20px;
  }
  .editor-steps {
    flex-direction: column;
    gap: 5px;
  }
  .editor-toolbar .button {
    font-size: 11px;
    padding: 8px 12px;
  }
  .picture-card {
    grid-template-columns: 1fr;
    padding: 19px;
    gap: 17px;
  }
  .picture-card > img {
    height: 170px;
  }
  .editor-main fieldset {
    padding: 12px;
  }
  .editor-file-tools,
  .export-help {
    padding: 21px;
  }
  .editor-main input,
  .editor-main textarea {
    font-size: 16px !important;
  }
}
