"""Shared cabin construction choices; no owner/factory fitted coordinates."""
def layout(body):
    scale=body['published_reference_dimensions_mm']['wheelbase']/2.4
    former=-.84
    # IMG6341 puts the cushion rear near the B-post and its front in the
    # doorway. Retain the native cushion depth and existing aperture.
    bpost=body['body_side_reconstruction']['estimated_profile_stations_body_units']['door_rear']-.015
    half_depth=.56/2
    center=bpost+half_depth
    return dict(owner_photo='IMG_6341',owner_dimensions_applied=False,
        former_seat_center_z_units=former,seat_center_z_units=center,
        estimated_seat_translation_z_units=center-former,
        estimated_seat_translation_z_mm=(center-former)*scale,
        retained_native_cushion_half_depth_units=half_depth,
        estimated_cushion_rear_z_units=bpost,
        wheelhouse_inner_x_abs_units=.47,wheelhouse_axle_yz_units=[.39,-1.20],
        retained_wheelhouse_radius_units=.37,floor_y_units=.35,
        floor_rear_outer_x_abs_units=.47,floor_notch_front_z_units=-.82,
        wheelhouse_front_z_units=-.83,
        basis=f'An estimated{(center-former)*scale:.1f}mm forward translation replaces the former seat pose. IMG6341 shows seat cushions occupying the door aperture, with rear edges near the B-post. Retained native cushion depth and the existing estimated B-post set a coherent forward reference pose. Factory/manufacturer diagrams support separate runners, floor panels and inner wheelhouses, not these coordinates. Floor rear corners now meet the retained wheelhouse inner plane; wheelhouse lower webs extend to the held floor plane.',
        limits='Seat fore/aft shift, B-post target, floor corner plan and lower web sections are construction estimates, not photo-calibrated dimensions, fitted rail adjustment, factory hole maps, loaded clearance, body strength or replacement paths. No camera-derived dimensional accuracy is claimed. Other body/engine and rear structure frames remain independent.')
