.custom-main { max-width:none; width:100%; padding:0; margin:0; }
.profile-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,310px); border-bottom:1px solid #cad6dd; color:#234450; font:14px/1.4 Arial,sans-serif; }
.profile-canvas { display:grid; place-items:center; align-content:center; position:relative; min-height:320px; padding:20px; background:white; }
#profile-drawing { width:100%; }
#profile-drawing svg { display:block; margin:auto; width:100%; height:clamp(310px,55vh,660px); }
#custom-error { padding:12px; color:#7b3b18; }
#profile-form { padding:14px; border-left:1px solid #cad6dd; background:#f6f9fb; }
#profile-form h1 { font-size:17px; margin:0 0 10px; }
#profile-form fieldset { border:0; padding:0; margin:14px 0; }
#profile-form legend { padding:0; margin-bottom:6px; font-weight:bold; }
.profile-fields { display:grid; grid-template-columns:1fr 1fr; gap:6px 10px; }
#profile-form label { display:grid; gap:3px; font-size:12px; }
#profile-form :is(input,select) { box-sizing:border-box; width:100%; min-width:0; font:14px Arial; color:#213c48; border:1px solid #b7c9d3; border-radius:4px; padding:5px; background:white; }
#profile-form button { border:0; padding:8px 18px; border-radius:4px; color:white; background:#146862; cursor:pointer; }
#estimate:not(:empty) { padding:12px; overflow:auto; }
@media(max-width:640px){.profile-layout{grid-template-columns:1fr}.profile-canvas{min-height:180px;padding:6px}#profile-drawing svg{height:30vh;min-height:180px}#profile-form{border-left:0;border-top:1px solid #cad6dd}}