body.layout-member .public-registration-page {
    width: 100%;
    min-width: 0;
}

body.layout-member .registration-form-header {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    margin-bottom: 14px;
    padding: 16px 18px;
    overflow: hidden;
    border: 1px solid rgba(214, 220, 230, 0.92);
    border-radius: var(--registration-header-radius, 20px);
    background: linear-gradient(var(--registration-header-angle, 135deg), var(--registration-header-start, #ffffff), var(--registration-header-end, #f8fafc));
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

body.layout-member .registration-form-header.has-solid-background {
    background: var(--registration-header-start, #ffffff);
}

body.layout-member .registration-form-header.is-inherited {
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
}

body.layout-member .registration-form-header::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--registration-side-accent-width, 5px);
    background: var(--registration-side-accent-color, #facc15);
}

body.layout-member .registration-form-header.has-legacy-side-accent::before {
    background: linear-gradient(180deg, var(--mg-color-brand, var(--accent, #2563eb)), #facc15);
}

body.layout-member .registration-form-header.has-no-side-accent::before,
body.layout-member .registration-form-header.has-no-side-accent::after {
    content: none;
    display: none;
    width: 0;
}

body.layout-member .registration-form-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

body.layout-member .registration-form-logo {
    display: grid;
    flex: 0 0 98px;
    place-items: center;
    width: 98px;
    height: 42px;
    padding: 3px;
    overflow: hidden;
    border: 1px solid var(--registration-logo-border, #fb923c);
    border-radius: 14px;
    background: var(--registration-logo-background, #fff7ed);
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
}

body.layout-member .registration-form-header.is-inherited .registration-form-logo {
    border-color: rgba(251, 146, 60, 0.28);
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

body.layout-member .registration-form-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

body.layout-member .registration-form-copy {
    flex: 1 1 auto;
    min-width: 0;
    text-align: var(--registration-header-text-alignment, left);
}

body.layout-member .registration-form-header.has-transparent-logo .registration-form-logo {
    background: transparent !important;
    box-shadow: none;
}

body.layout-member .registration-form-header.has-no-logo-border .registration-form-logo {
    border: 0 !important;
    outline: 0;
    box-shadow: none;
}

body.layout-member .registration-form-header.has-no-logo-container .registration-form-logo {
    padding: 0 !important;
    border: 0 !important;
    outline: 0;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none;
}

body.layout-member .registration-form-copy h1 {
    margin: 0;
    color: var(--registration-header-title, #0b1220);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

body.layout-member .registration-form-copy p {
    margin: 4px 0 0;
    color: var(--registration-header-description, #667085);
    font-size: 0.84rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

body.layout-member .registration-form-copy h1[hidden],
body.layout-member .registration-form-copy p[hidden] {
    display: none;
}

body.layout-member .registration-wizard {
    --wizard-accent: var(--accent, #2563eb);
    --wizard-border: var(--border, #dbe2ea);
    --wizard-surface: var(--card, #fff);
    --wizard-muted: var(--muted, #64748b);
    width: 100%;
    min-width: 0;
}

body.layout-member .registration-wizard [hidden] {
    display: none !important;
}

body.layout-member .wizard-progress {
    position: relative;
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid var(--wizard-border);
    border-radius: 18px;
    background: var(--wizard-surface);
    overflow: hidden;
}

body.layout-member .wizard-progress-copy {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text);
}

body.layout-member .wizard-progress-copy span {
    color: var(--wizard-muted);
    text-align: right;
}

body.layout-member .wizard-progress-track {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 7px;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.layout-member .wizard-progress-track li {
    position: relative;
    display: flex;
    justify-content: center;
    min-width: 0;
}

body.layout-member .wizard-progress-track li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(-50% - 4px);
    right: calc(50% + 14px);
    height: 3px;
    border-radius: 999px;
    background: #dbe2ea;
    transform: translateY(-50%);
}

body.layout-member .wizard-progress-track li:first-child::before {
    display: none;
}

body.layout-member .wizard-progress-track li span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    min-height: 28px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: var(--wizard-surface);
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
}

body.layout-member .wizard-progress-track li small {
    display: none;
}

body.layout-member .wizard-progress-track li.is-complete::before,
body.layout-member .wizard-progress-track li.is-complete span,
body.layout-member .wizard-progress-track li[aria-current="step"]::before {
    background: var(--wizard-accent);
    border-color: var(--wizard-accent);
    color: #fff;
}

body.layout-member .wizard-progress-track li[aria-current="step"] span {
    border-color: var(--wizard-accent);
    box-shadow: 0 0 0 4px rgba(var(--gym-accent-rgb, 37, 99, 235), 0.15);
    color: var(--wizard-accent);
}

body.layout-member .wizard-error-summary {
    margin-bottom: 14px;
}

body.layout-member .wizard-error-summary ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

body.layout-member .wizard-live-region {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.layout-member .registration-wizard.is-enhanced form {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

body.layout-member .registration-wizard.is-enhanced .wizard-panels {
    min-height: 0;
}

body.layout-member .registration-wizard.is-enhanced .wizard-step {
    display: none;
}

body.layout-member .registration-wizard.is-enhanced .wizard-step.is-active {
    display: block;
    animation: wizard-step-in 180ms ease-out;
}

body.layout-member .wizard-step {
    padding: 18px;
    border: 1px solid var(--wizard-border);
    border-radius: 18px;
    background: var(--wizard-surface);
}

body.layout-member .wizard-step + .wizard-step {
    margin-top: 16px;
}

body.layout-member .registration-wizard.is-enhanced .wizard-step + .wizard-step {
    margin-top: 0;
}

body.layout-member .wizard-step-header {
    margin-bottom: 18px;
}

body.layout-member .wizard-step-header p {
    margin: 0 0 3px;
    color: var(--wizard-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.layout-member .wizard-step-header h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

body.layout-member .wizard-step-header span {
    display: block;
    margin-top: 5px;
    color: var(--wizard-muted);
    line-height: 1.45;
}

body.layout-member .wizard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 18px;
}

body.layout-member .wizard-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

body.layout-member .wizard-field-full {
    grid-column: 1 / -1;
}

body.layout-member .wizard-field input:not([type="checkbox"]):not([type="radio"]),
body.layout-member .wizard-field select,
body.layout-member .wizard-field textarea {
    width: 100%;
}

body.layout-member .wizard-field textarea {
    min-height: 88px;
}

body.layout-member .wizard-help,
body.layout-member .wizard-policy-note {
    color: var(--wizard-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

body.layout-member .wizard-field-error {
    color: #b91c1c;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.35;
}

body.layout-member .wizard-field [aria-invalid="true"] {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.13) !important;
}

body.layout-member .phone-group {
    display: flex;
    align-items: stretch;
}

body.layout-member .phone-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--wizard-border);
    border-right: 0;
    border-radius: 14px 0 0 14px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 800;
}

body.layout-member .phone-group input {
    border-left: 0 !important;
    border-radius: 0 14px 14px 0 !important;
}

body.layout-member .password-toggle {
    font-size: 0.75rem;
    font-weight: 800;
}

body.layout-member .wizard-photo-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--wizard-border);
    border-radius: 14px;
    background: #f8fafc;
}

body.layout-member .wizard-photo-preview img {
    width: 62px;
    height: 62px;
    border-radius: 12px;
    object-fit: cover;
}

body.layout-member .wizard-selfie-field {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--wizard-border);
    border-radius: 18px;
    background: #f8fafc;
}

body.layout-member .wizard-selfie-intro h3 {
    margin: 0;
    color: var(--wizard-text);
    font-size: 1.05rem;
}

body.layout-member .wizard-selfie-intro p {
    margin: 5px 0 10px;
    color: var(--wizard-muted);
    line-height: 1.45;
}

body.layout-member .wizard-selfie-intro ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 18px;
    margin: 0;
    padding-left: 20px;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.4;
}

body.layout-member .wizard-selfie-status,
body.layout-member .wizard-selfie-return-notice {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 0.86rem;
    line-height: 1.4;
}

body.layout-member .wizard-selfie-status.is-error,
body.layout-member .wizard-selfie-return-notice {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

body.layout-member .wizard-selfie-stage {
    position: relative;
    width: min(100%, 520px);
    margin: 14px auto 0;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 4 / 3;
    background: #0f172a;
}

body.layout-member .wizard-selfie-stage video,
body.layout-member .wizard-selfie-stage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.layout-member .wizard-selfie-stage video {
    transform: scaleX(-1);
}

body.layout-member .wizard-selfie-stage img.wizard-selfie-guide {
    position: absolute;
    z-index: 1;
    inset: 11% auto auto 50% !important;
    width: min(60%, 240px) !important;
    height: auto !important;
    max-height: 78% !important;
    object-fit: contain;
    transform: translateX(-50%) !important;
    pointer-events: none;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.32));
}

body.layout-member .wizard-selfie-active {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(185, 28, 28, 0.9);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

body.layout-member .wizard-selfie-result {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    width: min(100%, 520px);
    margin: 10px auto 0;
    color: #166534;
}

body.layout-member .wizard-selfie-result strong {
    font-size: 0.94rem;
}

body.layout-member .wizard-selfie-result span,
body.layout-member .wizard-selfie-result small {
    font-size: 0.8rem;
}

body.layout-member .wizard-selfie-result small {
    flex-basis: 100%;
    color: #475569;
}

body.layout-member .wizard-selfie-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 13px;
}

body.layout-member .wizard-selfie-controls button {
    min-height: 44px;
}

/* Selfie v2: compact, camera-only card. */
body.layout-member .wizard-selfie-field {
    gap: 10px;
    padding: 14px;
    overflow: hidden;
    border-color: rgba(var(--gym-accent-rgb, 37, 99, 235), 0.22);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(var(--gym-accent-rgb, 37, 99, 235), 0.08), rgba(255, 255, 255, 0.92));
}

body.layout-member .wizard-selfie-intro {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

body.layout-member .wizard-selfie-camera-icon {
    display: grid;
    flex: 0 0 52px;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--wizard-accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(var(--gym-accent-rgb, 37, 99, 235), 0.2);
}

body.layout-member .wizard-selfie-camera-icon svg {
    width: 27px;
    height: 27px;
    fill: currentColor;
}

body.layout-member .wizard-selfie-copy {
    min-width: 0;
}

body.layout-member .wizard-selfie-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--wizard-accent);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.layout-member .wizard-selfie-intro h3 {
    font-size: 1rem;
    line-height: 1.25;
}

body.layout-member .wizard-selfie-intro small {
    display: block;
    margin-top: 7px;
    color: var(--wizard-muted);
    font-size: 0.76rem;
    line-height: 1.32;
}

body.layout-member .wizard-selfie-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

body.layout-member .wizard-selfie-tips span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 25px;
    padding: 3px 8px;
    border: 1px solid rgba(var(--gym-accent-rgb, 37, 99, 235), 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #334155;
    font-size: 0.73rem;
    font-weight: 750;
    white-space: nowrap;
}

body.layout-member .wizard-selfie-tips b {
    color: var(--wizard-accent);
    font-size: 0.7rem;
}

body.layout-member .wizard-selfie-status,
body.layout-member .wizard-selfie-error {
    margin-top: 0;
    padding: 9px 11px;
    font-size: 0.82rem;
}

body.layout-member .wizard-selfie-status {
    border-color: rgba(var(--gym-accent-rgb, 37, 99, 235), 0.25);
    background: rgba(255, 255, 255, 0.8);
    color: var(--wizard-text);
    text-align: center;
}

body.layout-member .wizard-selfie-error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fef2f2;
    color: #991b1b;
    line-height: 1.35;
}

body.layout-member .wizard-selfie-error:focus {
    outline: 3px solid rgba(220, 38, 38, 0.18);
    outline-offset: 2px;
}

body.layout-member .wizard-selfie-error button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 8px 11px;
    font-size: 0.78rem;
}

body.layout-member .wizard-selfie-stage {
    width: min(100%, 430px);
    max-height: min(55vh, 360px);
    margin-top: 0;
    border-radius: 20px;
    aspect-ratio: 4 / 3;
}

body.layout-member .wizard-selfie-stage-help {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    margin: 0;
    padding: 7px 9px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.3;
    text-align: center;
    pointer-events: none;
}

body.layout-member .wizard-selfie-result {
    justify-content: center;
    margin-top: 0;
    text-align: center;
}

body.layout-member .wizard-selfie-check {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
}

body.layout-member .wizard-selfie-controls {
    margin-top: 0;
}

body.layout-member .wizard-selfie-controls .wizard-selfie-primary {
    width: min(100%, 360px);
    min-height: 48px;
}

body.layout-member .wizard-selfie-field.is-processing .wizard-selfie-status::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 7px;
    vertical-align: -2px;
    border: 2px solid rgba(var(--gym-accent-rgb, 37, 99, 235), 0.24);
    border-top-color: var(--wizard-accent);
    border-radius: 50%;
    animation: wizard-selfie-spin 700ms linear infinite;
}

body.layout-member .wizard-selfie-field.is-confirmed .wizard-selfie-stage {
    width: 150px;
    height: 150px;
    aspect-ratio: 1;
}

body.layout-member .wizard-selfie-field.is-confirmed .wizard-selfie-stage-help,
body.layout-member .wizard-selfie-field.is-confirmed .wizard-selfie-active {
    display: none;
}

@keyframes wizard-selfie-spin {
    to { transform: rotate(360deg); }
}

body.layout-member .wizard-chip-fieldset {
    min-width: 0;
    padding: 0;
    border: 0;
}

body.layout-member .wizard-chip-fieldset legend {
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

body.layout-member .chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.layout-member .chip {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

body.layout-member .chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

body.layout-member .chip span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--wizard-border);
    border-radius: 999px;
    background: #f8fafc;
    color: #1f2937;
    font-size: 0.84rem;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

body.layout-member .chip input:checked + span {
    border-color: var(--wizard-accent);
    background: var(--wizard-accent);
    color: #fff;
}

body.layout-member .chip input:focus-visible + span {
    outline: 3px solid rgba(var(--gym-accent-rgb, 37, 99, 235), 0.24);
    outline-offset: 2px;
}

body.layout-member .wizard-policy-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-bottom: 8px;
}

body.layout-member .wizard-policy-message {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(var(--gym-accent-rgb, 37, 99, 235), 0.3);
    border-radius: 14px;
    background: rgba(var(--gym-accent-rgb, 37, 99, 235), 0.08);
    line-height: 1.45;
}

body.layout-member .wizard-guardian-fields {
    margin-top: 16px;
    padding: 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
}

body.layout-member .registration-wizard.is-enhanced .wizard-guardian-fields.is-collapsed {
    display: none;
}

body.layout-member .wizard-contact-group {
    display: block;
    padding: 14px;
    border: 1px solid var(--wizard-border);
    border-radius: 16px;
}

body.layout-member .wizard-contact-group + .wizard-contact-group {
    margin-top: 14px;
}

body.layout-member .wizard-contact-group h3,
body.layout-member .wizard-contact-group summary {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 800;
}

body.layout-member .wizard-contact-group summary {
    min-height: 32px;
    cursor: pointer;
}

body.layout-member .wizard-review {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.layout-member .wizard-review-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--wizard-border);
    border-radius: 15px;
    background: #f8fafc;
}

body.layout-member .wizard-review-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

body.layout-member .wizard-review-card h3 {
    margin: 0;
    font-size: 0.95rem;
}

body.layout-member .wizard-review-edit {
    border: 0;
    background: transparent;
    color: var(--wizard-accent);
    font-weight: 800;
    cursor: pointer;
}

body.layout-member .wizard-review-list {
    display: grid;
    gap: 6px;
    margin: 0;
}

body.layout-member .wizard-review-list div {
    display: grid;
    grid-template-columns: minmax(90px, 0.45fr) minmax(0, 1fr);
    gap: 8px;
}

body.layout-member .wizard-review-list dt {
    color: var(--wizard-muted);
    font-size: 0.79rem;
}

body.layout-member .wizard-review-list dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 0.84rem;
    font-weight: 700;
}

body.layout-member .wizard-review-photo {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
}

body.layout-member .wizard-terms-field {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--wizard-border);
    border-radius: 14px;
}

body.layout-member .wizard-terms-field label {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.layout-member .wizard-login-link {
    display: inline-flex;
    margin-top: 14px;
    color: var(--wizard-accent);
    font-weight: 750;
}

body.layout-member .wizard-actions {
    position: sticky;
    bottom: 0;
    z-index: 8;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 0 max(4px, env(safe-area-inset-bottom));
    background: linear-gradient(to bottom, transparent, var(--wizard-surface) 20%);
}

body.layout-member .wizard-actions button {
    min-width: 130px;
}

body.layout-member .wizard-actions button[disabled] {
    cursor: wait;
    opacity: 0.65;
}

@keyframes wizard-step-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 841px) {
    body.layout-member .registration-wizard.is-enhanced .wizard-step {
        max-height: max(430px, calc(100dvh - 310px));
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }
}

@media (max-width: 840px) {
    body.layout-member .registration-form-header {
        margin-bottom: 8px !important;
        padding: 10px 12px !important;
        border-radius: 16px !important;
    }

    body.layout-member .registration-form-header.is-inherited {
        border-radius: 16px !important;
    }

    body.layout-member .registration-form-logo {
        flex: 0 0 76px !important;
        width: 76px !important;
        height: 34px !important;
        padding: 2px !important;
        border-radius: 11px !important;
    }

    body.layout-member .registration-form-logo img {
        max-width: 70px !important;
        max-height: 30px !important;
    }

    body.layout-member .registration-form-copy h1 {
        font-size: 1rem !important;
    }

    body.layout-member .registration-form-copy p {
        margin-top: 2px !important;
        font-size: 0.76rem !important;
        line-height: 1.25 !important;
    }

    body.layout-member .wizard-progress {
        position: relative;
        top: auto;
        z-index: 1;
        margin-bottom: 8px;
        padding: 8px 10px;
        border-radius: 13px;
    }

    body.layout-member .wizard-progress-copy {
        margin-bottom: 6px;
        font-size: 0.82rem;
    }

    body.layout-member .wizard-progress-track {
        gap: 4px;
    }

    body.layout-member .wizard-progress-track li span {
        width: 22px;
        height: 22px;
        min-height: 22px;
        font-size: 0.68rem;
    }

    body.layout-member .registration-wizard.is-enhanced .wizard-step {
        max-height: none !important;
        overflow: visible !important;
        overscroll-behavior: auto;
        scrollbar-gutter: auto;
    }

    body.layout-member .wizard-step {
        padding: 10px 13px;
        border-radius: 15px;
    }

    body.layout-member .wizard-step-header {
        margin-bottom: 11px;
    }

    body.layout-member .wizard-step-header p {
        margin-bottom: 2px;
        font-size: 0.72rem;
    }

    body.layout-member .wizard-step-header h2 {
        font-size: 1.25rem;
    }

    body.layout-member .wizard-step-header span {
        margin-top: 3px;
        line-height: 1.32;
    }

    body.layout-member .wizard-grid,
    body.layout-member .wizard-review {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.layout-member .wizard-field-full {
        grid-column: auto;
    }

    body.layout-member .wizard-selfie-field {
        padding: 12px;
    }

    body.layout-member .wizard-selfie-intro ul {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    body.layout-member .wizard-selfie-stage {
        aspect-ratio: 3 / 4;
    }

    body.layout-member .wizard-selfie-stage img.wizard-selfie-guide {
        top: 13% !important;
        width: 55% !important;
        max-height: 75% !important;
    }

    body.layout-member .wizard-selfie-controls button {
        flex: 1 1 145px;
    }

    body.layout-member .wizard-grid-textareas textarea {
        min-height: 92px;
    }

    body.layout-member .wizard-actions {
        margin-top: 8px;
        margin-left: -4px;
        margin-right: -4px;
        padding: 8px 4px max(4px, env(safe-area-inset-bottom));
    }

    body.layout-member .wizard-actions button {
        flex: 1;
        min-width: 0;
    }

    body.layout-member .wizard-selfie-field {
        gap: 8px;
        padding: 12px;
        border-radius: 19px;
    }

    body.layout-member .wizard-selfie-intro {
        align-items: flex-start;
        gap: 10px;
    }

    body.layout-member .wizard-selfie-camera-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    body.layout-member .wizard-selfie-camera-icon svg {
        width: 23px;
        height: 23px;
    }

    body.layout-member .wizard-selfie-intro h3 {
        font-size: 0.93rem;
    }

    body.layout-member .wizard-selfie-tips {
        gap: 4px;
        margin-top: 6px;
    }

    body.layout-member .wizard-selfie-tips span {
        min-height: 23px;
        padding: 2px 7px;
        font-size: 0.68rem;
    }

    body.layout-member .wizard-selfie-intro small {
        margin-top: 6px;
        font-size: 0.71rem;
    }

    body.layout-member .wizard-selfie-controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    body.layout-member .wizard-selfie-controls button:only-child,
    body.layout-member .wizard-selfie-controls .wizard-selfie-primary {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 48px;
    }

    body.layout-member .wizard-selfie-error {
        align-items: stretch;
        flex-direction: column;
    }

    body.layout-member .wizard-selfie-error button {
        width: 100%;
    }
}

@media (max-width: 390px) {
    body.layout-member .registration-form-header {
        margin-bottom: 7px !important;
        padding: 9px 10px !important;
    }

    body.layout-member .registration-form-brand {
        gap: 9px;
    }

    body.layout-member .registration-form-logo {
        flex: 0 0 68px !important;
        width: 68px !important;
        height: 32px !important;
        border-radius: 10px !important;
    }

    body.layout-member .registration-form-copy h1 {
        font-size: 0.94rem !important;
    }

    body.layout-member .registration-form-copy p {
        font-size: 0.72rem !important;
    }

    body.layout-member .wizard-progress-copy {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    body.layout-member .wizard-progress-copy span {
        text-align: left;
    }

    body.layout-member .wizard-progress-track li span {
        width: 20px;
        height: 20px;
        min-height: 20px;
    }

    body.layout-member .wizard-review-list div {
        grid-template-columns: 1fr;
        gap: 1px;
    }
}

@media (max-width: 840px) and (max-height: 700px) {
    body.layout-member .wizard-step-header span {
        font-size: 0.86rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.layout-member .registration-wizard *,
    body.layout-member .registration-wizard *::before,
    body.layout-member .registration-wizard *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
