/* Facility3D Model Studio - local to #modelModal; does not affect map/nav */
#modelModal .model-sheet{width:min(1120px,98vw);max-height:96vh}
#modelModal .model-area{height:min(48vh,520px);min-height:285px}
#modelModal .fms-controls{margin-top:12px;padding:15px 16px;border:1px solid #cad9e8;border-radius:12px;background:#f5f9fd;display:grid;gap:10px}
#modelModal .fms-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
#modelModal .fms-heading strong{font-size:16px;color:#173858}
#modelModal #fmsStatus{color:#52748d;font-size:12px}
#modelModal .fms-source{display:grid;grid-template-columns:auto minmax(130px,1fr) auto;align-items:center;gap:8px}
#modelModal .fms-source label,#modelModal .fms-label{font-size:12px;color:#415e77;font-weight:800}
#modelModal .fms-source select{padding:8px;width:100%;min-width:0}
#modelModal .fms-source button,#modelModal .fms-buttons button,#modelModal .fms-other button,#modelModal .fms-manage button{border-radius:7px;border:1px solid #bdd1e3;background:white;padding:8px 11px;color:#18456e;font-size:12px;font-weight:750;cursor:pointer;white-space:nowrap;min-height:35px}
#modelModal .fms-buttons button:hover,#modelModal .fms-other button:hover,#modelModal .fms-source button:hover{background:#dfedfd;border-color:#5a9ed0}
#modelModal .fms-buttons button:focus-visible,#modelModal .fms-other button:focus-visible{outline:3px solid #64a7e5;outline-offset:1px}
#modelModal .fms-row{display:grid;grid-template-columns:106px 1fr;gap:10px;align-items:center}
#modelModal .fms-buttons{display:flex;flex-wrap:wrap;gap:5px}
#modelModal .fms-buttons button[aria-pressed="true"]{background:#135a98;color:white}
#modelModal .fms-other{display:flex;gap:8px;flex-wrap:wrap;padding-top:8px;border-top:1px solid #d5e2ee}
#modelModal .fms-other button{background:#e9f3ff;border-color:#b9d1ea}
#modelModal .fms-help{color:#637c91;font-size:11px;line-height:1.6;margin:2px 0}
#modelModal .fms-manage{border:1px solid #d6e2ef;border-radius:10px;padding:12px;margin-top:12px;background:#fff}
#modelModal .fms-manage summary{cursor:pointer;font-weight:750;color:#1c608e}
#modelModal .fms-manage-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
#modelModal .fms-manage-grid label{display:grid;gap:4px;font-size:12px;font-weight:750;color:#415e77}
#modelModal .fms-manage-grid input{min-width:0;width:100%;border:1px solid #c9dbea;border-radius:7px;padding:8px}
#modelModal .fms-manage-grid .fms-file{grid-column:span 2}
#modelModal .fms-manage-grid #fmsUpload{grid-column:span 2;background:#175dac;color:#fff}
#modelModal .fms-item{display:flex;gap:8px;align-items:center;border-top:1px solid #e2edf5;padding:8px 0;font-size:12px;flex-wrap:wrap}
#modelModal .fms-item span{flex:1;min-width:90px}
#modelModal .fms-item small{color:#758da2}
#modelModal .fms-item .fms-delete{color:#b63843;border-color:#ebc5cb}
#modelModal #fmsManageStatus{font-size:12px;color:#176f67;min-height:18px}
#modelModal #fmsManageStatus.error{color:#b53838}
#fmsAdminOpen{margin-top:12px;width:100%}
@media(max-width:650px){#modelModal .fms-row{grid-template-columns:1fr;gap:5px}#modelModal .fms-source{grid-template-columns:1fr}#modelModal .fms-manage-grid{grid-template-columns:1fr}#modelModal .fms-manage-grid .fms-file,#modelModal .fms-manage-grid #fmsUpload{grid-column:1}#modelModal .fms-buttons button{flex:1 0 auto}#modelModal .model-area{height:34vh;min-height:230px}}

#modelModal .fms-local-preview{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:8px 0;border-top:1px solid #dce9f2}#modelModal .fms-local-preview label{font-size:12px;font-weight:750;color:#415e77}#modelModal .fms-local-preview input{font-size:12px;max-width:250px}#modelModal .fms-local-preview span{font-size:11px;color:#7b90a2}

#modelModal .model-sheet:fullscreen{width:100vw;height:100vh;max-height:none;border-radius:0;overflow:auto;background:white}#modelModal .model-sheet:fullscreen .model-area{height:min(55vh,650px)}
