/* List and selected person retain one stable, readable layout. */
.people-layout{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.4fr);height:100%;min-height:0;gap:14px}
.people-layout>.card{min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain}
.people-layout .people-back{display:none}.people-search-label{display:block;font-size:12px;margin:8px 0 4px}
.people-layout .row .text{min-width:0}.people-layout .row strong,.people-layout .row .muted{overflow-wrap:anywhere;white-space:normal}
.people-layout .row .badge{flex:none;font-size:10px}.people-layout .actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:700px),(pointer:coarse){
 body[data-page=users] .workspace{overflow:hidden!important;min-height:0}
 .people-layout{display:block;height:100%;min-height:0}
 .people-layout>.card{height:100%;box-sizing:border-box;padding:12px;overflow:auto!important;-webkit-overflow-scrolling:touch}
 .people-layout[data-people-detail=false] .people-detail,.people-layout[data-people-detail=true] .people-list{display:none}
 .people-layout .people-back{display:flex;align-items:center;gap:8px;margin-bottom:12px;min-height:44px}
 .people-layout .search{min-height:44px;font-size:16px}.people-layout .row{min-height:68px;gap:8px;padding:10px}
 .people-layout .actions{display:grid;grid-template-columns:1fr 1fr}.people-layout .actions button{min-height:44px;font-size:13px;padding:8px}
 #editor:has(#user-form){max-height:calc(100dvh - 16px);width:calc(100% - 16px);padding:12px;box-sizing:border-box;overflow:auto!important}
 #user-form .form-grid{display:grid;grid-template-columns:1fr;gap:10px}#user-form .form-grid .wide{grid-column:auto}
 #user-form input:not([type=checkbox]),#user-form select,#user-form textarea{font-size:16px;min-height:44px;width:100%;box-sizing:border-box}
 #user-form label{margin:0 0 4px;line-height:1.3}#user-form .checkbox{display:flex;align-items:center;gap:8px;min-height:44px}
 #user-form input[type=checkbox]{width:22px;height:22px;min-height:22px;flex:none}#user-form fieldset{min-width:0}#user-form legend{white-space:normal}
}
