.post-shell {
  max-width: 700px;
  padding-block: 12px 32px;
}
.post-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 20px;
}
.post-header h1 { margin: 0; }
#postProgress { color: #574e65; font-size: 16px; }
#postForm {
  --post-line: #cfc7bc;
  padding: clamp(18px, 4vw, 32px);
  font-size: 18px;
  line-height: 1.45;
}
#postForm .form-grid { gap: 18px; }
#postForm .field { gap: 6px; }
#postForm :is(label, legend, input, textarea, select, button, summary) { font-size: 18px; }
#postForm :is(input:not([type=checkbox],[type=radio],[type=hidden]), textarea, select) {
  min-height: 48px;
  margin: 0;
  background-color: #fffdfa;
  border-color: #b6adbd;
}
#postForm :is(input,textarea)::placeholder { color: #665e70; opacity: 1; }
#postForm textarea { min-height: 92px; }
#postForm .hint, #postForm small, #postForm .form-error, #postForm .muted, #postForm .spec span { font-size: 16px; }
#postForm :is(.checkline, .type-toggle label) { min-height: 44px; align-items: center; }
#postForm :is([type=checkbox],[type=radio]) { width: 20px; height: 20px; flex: none; margin: 0; accent-color: #6543df; }
#postForm .type-toggle label:has(:checked) { background: #f0ebff; border-color: #8062dc; }
#postForm button { min-height: 44px; }
#postForm .drop {
  width: 100%;
  min-height: 56px;
  margin: 18px 0 0;
  padding: 12px;
  border: 1px dashed #846bc5;
  border-radius: 12px;
  color: #5031b3;
  font-weight: 700;
}
#postForm .drop span, #postForm summary span { font-size: 16px; font-weight: 400; }
#photoPreparation { margin: 12px 0; }
.photo-progress {
  display: block;
  margin-top: 6px;
  height: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: #e3dcf1;
}
.photo-progress::after {
  content: "";
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: #6543df;
  animation: photo-preparation 950ms ease-in-out infinite alternate;
}
@keyframes photo-preparation {
  from { transform: translateX(0); }
  to { transform: translateX(300%); }
}
@media (prefers-reduced-motion: reduce) {
  .photo-progress::after { animation: none; transform: translateX(150%); }
}
#preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
  gap: 16px 10px;
}
.upload-picture {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: #eae5df;
}
.upload-picture img { display: block; width: 100%; height: 100%; object-fit: contain; }
.upload-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 4px;
}
#postForm .upload-actions button, .upload-actions .cover {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 650;
}
#postForm .upload-actions button { padding: 4px 8px; min-width: 44px; }
.upload-actions .cover { padding: 5px 8px; color: #355641; background: #e1ece3; border-radius: 6px; }
.upload-actions .makecover { color: #5031b3; background: #eee9f8; }
.upload-actions .remove-photo { display: grid; place-items: center; color: #87354a; background: transparent; }
.upload-actions button:focus-visible { outline: 2px solid #6543df; outline-offset: 1px; }
#postForm .uploads:not(:empty) { margin-top: 12px; }
#postForm #uploadStatus:empty { margin: 0; }
.post-options { border-bottom: 1px solid var(--post-line); }
.post-options summary { cursor: pointer; padding: 15px 0; font-weight: 650; color: #43325f; }
.post-options[open] { padding-bottom: 16px; }
.post-options summary:focus-visible { outline: 2px solid #6543df; outline-offset: 3px; }
#postForm .post-location-tools { justify-content: flex-start; }
#postForm .post-location-tools p:empty { display: none; }
#contactSummary, #areaSummary { display: block; margin-inline-start: 20px; overflow-wrap: anywhere; }
#postForm .post-fee { margin: 22px 0 8px; }
#postForm .rules-confirm { margin: 8px 0; }
#postForm .form-nav { margin-top: 20px; padding-top: 0; border-top: 0; align-items: center; }
#postForm #prev { border: 0; background: transparent; padding-inline: 5px; }
#postForm #next { min-height: 50px; min-width: 44%; }
#postForm .form-nav button:disabled { opacity: .55; cursor: wait; filter: none; }
@media (max-width: 620px) {
  .post-shell { padding-top: 8px; }
  .post-header { margin-bottom: 14px; }
  #postForm .form-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #postForm .type-toggle label { font-size: 16px; }
  #postForm .form-nav { gap: 8px; }
  #postForm #next { flex: 1; min-width: 0; }
}
