/* Shared by homepage registration and profile editing. */
.my-dialog:has(.editor-steps) { height: fit-content; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box; }
.my-dialog:has(.editor-steps) .my-dialog__head { flex-shrink: 0; }
.my-form.editor-steps { flex: 0 1 auto; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 12px; }
.editor-progress { display: flex; list-style: none; gap: 10px; margin: 4px 0 8px; padding: 0; }
.editor-progress li { flex: 1; padding: 9px 0; border-bottom: 3px solid #d4ccd9; color: #84758d; font-size: 12px; }
.editor-progress li[aria-current] { border-color: #6c5590; color: #59466f; font-weight: 800; }
.editor-progress li.is-complete { border-color: #9c8aad; }
.editor-stage { min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.editor-stage [hidden], .editor-steps .my-form__actions [hidden] { display: none !important; }
.editor-stage .registration-group { margin: 0; }
.editor-stage .registration-group__title:focus { outline: none; }
.editor-steps .my-form__actions { margin: 0; flex-wrap: wrap; align-items: center; }
.editor-steps .my-form__actions .my-btn { margin-top: 0; }
.my-dialog .editor-steps .my-form__actions .my-btn--primary,
.my-dialog .editor-steps .my-form__actions .my-btn--primary:hover { background: var(--accent, #6c5590); color: #fff; }
.editor-steps .my-form__actions .my-btn:first-child { margin-right: auto; }
.editor-steps .my-form__error { margin: 0; position: static; }
.editor-steps .my-form__error:empty { display: none; }
.editor-steps .my-form__actions { grid-row: 4; }
.editor-steps .extra-intro summary { cursor: pointer; padding: 8px 0; font-size: 14px; font-weight: 700; }
.editor-steps .extra-intro[open] { display: grid; gap: 10px; }
@media (max-width: 700px) {
  .my-dialog:has(.editor-steps) { padding: 20px; }
  .editor-progress { gap: 7px; }
  .editor-progress li { font-size: 11px; }
  .editor-steps .upload-grid { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .editor-steps .upload:first-child { grid-column: 1 / -1; justify-items: center; }
  .editor-steps .upload:first-child > .my-btn { min-width: 96px; }
  .editor-steps .upload strong { font-size: 11px; }
  .editor-steps .registration-group__body { padding: 0 12px 14px; }
  .editor-steps .my-form__actions .my-btn { padding: 0 12px; }
}
