.author-main { max-width: 860px; }
.author-main h2 { margin: 0; color: var(--color-accent); font-family: Georgia, "Times New Roman", serif; }
.author-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.author-actions h2 { margin-right: auto; }
.author-main input:not([type="checkbox"]), .author-main textarea, .author-main select {
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-muted);
  border-radius: .45rem;
  padding: .45rem .7rem;
}
.author-main input:not([type="checkbox"]), .author-main textarea { display: block; width: 100%; margin-bottom: 1rem; }
.author-main input:focus-visible, .author-main textarea:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.author-main textarea { resize: vertical; }
.author-main label { display: block; font-weight: 700; }
.author-main label span { font-weight: 400; }
#post-fields { padding: 0; border: 0; margin: 0; min-width: 0; }
#native-posts { display: grid; gap: .75rem; list-style: none; padding: 0; }
#native-posts li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: .75rem;
  border-radius: .65rem;
  overflow-wrap: anywhere;
}
#native-posts p { margin: .3rem 0 .65rem; color: var(--color-muted); }
#error { color: var(--color-terracotta); margin-bottom: .75rem; }
#preview-frame { width: 100%; min-height: 28rem; margin-top: 1rem; background: var(--color-background); border: 1px solid var(--color-border); }

.author-main button {
  background: color-mix(in srgb, var(--color-accent) 13%, var(--color-subtle));
}
.author-main button:is(.author-primary, .form-primary) {
  background: var(--color-accent);
}
.author-main button.author-back {
  background: transparent;
  border-color: transparent;
  color: var(--color-accent);
  margin: 0 0 .3rem;
  padding-inline: 0;
}
.writing-actions { margin-bottom: .75rem; }
#post-sections { display: grid; gap: .8rem; }
.post-section { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: start; }
.post-section + .post-section { border-top: 1px solid var(--color-border); padding-top: .8rem; }
.section-content { min-width: 0; }
.section-content :is(textarea, input:not([type="checkbox"])) { margin-bottom: .45rem; }
.section-tools { display: grid; gap: .3rem; }
.post-section[data-type="text"] .section-tools { margin-top: 1.65rem; }
.author-main .section-tools button { padding: 0; font-size: 1.25rem; line-height: 1; }
.section-tools button:disabled { cursor: default; opacity: .55; }
.section-add { margin: .45rem 0 .85rem; }
.photo-file { max-width: 100%; }
.author-main .photo-cover-label { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; font-size: .95rem; font-weight: 600; }
.photo-cover-label:has(:disabled) { color: var(--color-muted); }
.photo-cover { margin: 0; accent-color: var(--color-accent); }
.photo-state { margin: .45rem 0; color: var(--color-muted); overflow-wrap: anywhere; }
.photo-state:empty { margin: 0; }
.author-options { margin-top: .65rem; padding: .65rem 0 0; border-top: 1px solid var(--color-border); }
#preview-heading { margin: 0 auto 0 0; color: var(--color-accent); }
@media (max-width: 640px), (max-height: 540px) {
  .author-header { position: static; }
  .author-main { padding-top: 1.25rem; }
}
#publication { margin-top: 1.75rem; padding-top: .9rem; border-top: 1px solid var(--color-border); }
#publication h3 { color: var(--color-accent); margin: 0; }
#post-state { margin: .4rem 0 .85rem; }
