.access-wizard {
    width: min(100%, 920px);
    display: grid;
    gap: var(--space-4);
}

.wizard-step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: var(--space-4);
    padding: var(--space-5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-panel);
    background: var(--surface-2);
}

.wizard-step__number {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--brand-red) 55%, var(--border-subtle));
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-red) 12%, var(--surface-1));
    color: var(--text-primary);
    font-weight: 800;
}

.wizard-step__content {
    min-width: 0;
}

.wizard-step__content h2 {
    margin-bottom: var(--space-4);
}

.wizard-selector {
    display: grid;
    gap: var(--space-2);
}

.wizard-selector label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 650;
}

.wizard-selector select,
.access-final-form select {
    width: 100%;
    min-height: 46px;
    padding: 0 var(--space-3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-control);
    background: var(--surface-1);
    color: var(--text-primary);
}

.wizard-selector select:focus,
.access-final-form select:focus {
    border-color: var(--brand-red);
    outline: 2px solid color-mix(in srgb, var(--brand-red) 35%, transparent);
    outline-offset: 1px;
}

.wizard-empty,
.wizard-context-summary,
.wizard-permissions-placeholder,
.wizard-existing {
    padding: var(--space-4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-control);
    background: var(--surface-1);
}

.wizard-empty p,
.wizard-context-summary p,
.wizard-permissions-placeholder p {
    margin: var(--space-2) 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.wizard-existing {
    display: grid;
    gap: var(--space-1);
    margin-top: var(--space-4);
}

.wizard-existing > span,
.wizard-context-summary > span,
.wizard-permissions-placeholder > span {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wizard-existing small {
    color: var(--text-secondary);
}

.wizard-context-summary strong {
    display: block;
    margin-top: var(--space-2);
    font-size: 1.05rem;
}

.access-final-form {
    margin-top: var(--space-4);
}

.access-final-form [hidden] {
    display: none !important;
}

.identity-action-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 920px;
}

.location-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 180px));
}

@media (max-width: 767px) {
    .wizard-step {
        grid-template-columns: 1fr;
    }

    .wizard-step__number {
        width: 32px;
        height: 32px;
    }

    .identity-action-grid--compact,
    .location-summary-grid {
        grid-template-columns: 1fr;
    }
}
