/* 机器档案沿用ERP绿白配色，资料分区；移动端触摸按钮与表单不挤成一行。 */
#machine-profile-dialog{width:min(980px,calc(100vw - 24px));max-width:980px;max-height:92dvh;padding:0;border:1px solid #d8e6e0;border-radius:20px;color:#17392c;background:#fff;box-sizing:border-box}
#machine-profile-dialog::backdrop{background:rgba(5,28,22,.55)}
#machine-profile-dialog *{box-sizing:border-box}
#machine-profile-dialog .mp-form{display:flex;flex-direction:column;padding:0;max-height:92dvh;margin:0}
#machine-profile-dialog .mp-header{padding:20px 24px;display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid #deebe5;flex-shrink:0}
#machine-profile-dialog h2{font-size:22px;margin:4px 0}#machine-profile-dialog h3{font-size:18px;margin:0 0 16px}
#machine-profile-dialog .mp-kicker{font-size:14px;color:#0e8058}#machine-profile-dialog small{font-size:14px;font-weight:400;color:#60796d;margin-left:8px}
#machine-profile-dialog .mp-body{overflow:auto;padding:20px 24px;overscroll-behavior:contain;font-size:16px}
#machine-profile-dialog .mp-section{padding:20px 0;border-bottom:1px solid #e0e9e4;margin-bottom:12px}
#machine-profile-dialog .mp-private{background:#f1f5f3;padding:18px;border-radius:12px}
#machine-profile-dialog .mp-help{color:#61736a;font-size:14px;line-height:1.7}
#machine-profile-dialog .mp-identity{display:flex;gap:16px;justify-content:space-between;flex-wrap:wrap;font-size:15px;overflow-wrap:anywhere}
#machine-profile-dialog .mp-identity b{background:#e6f4ee;padding:5px 10px;border-radius:8px;color:#117852}
#machine-profile-dialog fieldset{border:0;margin:0;padding:0;min-width:0}
#machine-profile-dialog .mp-grid,#machine-profile-dialog .mp-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#machine-profile-dialog label{display:flex;flex-direction:column;gap:7px;font-size:15px;margin:10px 0;color:#405d4e}
#machine-profile-dialog input:not([type=checkbox]):not([type=radio]),#machine-profile-dialog select,#machine-profile-dialog textarea{width:100%;padding:11px 12px;border:1px solid #cbdcd2;background:#fff;border-radius:9px;font-size:16px;color:#17392c;min-height:44px}
#machine-profile-dialog textarea{resize:vertical}#machine-profile-dialog input[type=checkbox],#machine-profile-dialog input[type=radio]{width:18px;height:18px;flex-shrink:0;accent-color:#087b52;margin:0}
#machine-profile-dialog .mp-checkbox,#machine-profile-dialog .mp-checks label{flex-direction:row;align-items:flex-start;line-height:1.5}
#machine-profile-dialog .mp-checks{display:flex;gap:8px 20px;flex-wrap:wrap}
#machine-profile-dialog button{min-height:42px;padding:10px 14px;border-radius:9px;border:1px solid #cbdcd2;background:#fff;color:#165b3f;font-size:15px;cursor:pointer}
#machine-profile-dialog button:disabled{opacity:.55;cursor:wait}#machine-profile-dialog button:hover{background:#ecf6f0}
#machine-profile-dialog .mp-primary{background:#07825a;color:#fff;border-color:#07825a}
#machine-profile-dialog :focus-visible{outline:3px solid #42b88b;outline-offset:2px}
#machine-profile-dialog .mp-drop{border:2px dashed #b9d4c7;background:#f4faf7;padding:22px;border-radius:14px;text-align:center}
#machine-profile-dialog .mp-upload-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
#machine-profile-dialog .mp-media-editor,#machine-profile-dialog .mp-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#machine-profile-dialog .mp-asset,#machine-profile-dialog .mp-gallery article{border:1px solid #d9e6df;padding:12px;border-radius:12px;min-width:0}
#machine-profile-dialog img,#machine-profile-dialog video{display:block;width:100%;height:220px;object-fit:contain;background:#edf2ef;border-radius:8px}
#machine-profile-dialog .mp-facts>div{padding:12px;background:#f5f8f6;border-radius:9px;min-width:0}
#machine-profile-dialog .mp-facts span{font-size:14px;color:#65776d}#machine-profile-dialog p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
#machine-profile-dialog .mp-facts p{margin:8px 0 0}#machine-profile-dialog .mp-price{font-size:23px;font-weight:700;color:#07825a}
#machine-profile-dialog .mp-footer{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;padding:14px 24px;border-top:1px solid #deebe5;background:#fff;flex-shrink:0}
#machine-profile-dialog .mp-message{margin:0;padding:12px 24px;font-size:15px;color:#126b49;background:#edf8f2;flex-shrink:0;max-height:110px;overflow:auto;line-height:1.6}
#machine-profile-dialog .mp-message:empty{display:none}#machine-profile-dialog .mp-error{color:#9b2d1c;background:#fff0eb}
#machine-profile-dialog .mp-history{margin:18px 0;font-size:14px}#machine-profile-dialog summary{cursor:pointer;padding:12px;font-size:15px}
#machine-profile-dialog .mp-preview{padding:16px;border:2px solid #94c7ae;border-radius:12px;margin-top:18px}
.profile-pool-cover{width:100%;height:190px;object-fit:contain;background:#eff5f2;display:block}.profile-filters{display:flex;gap:12px;flex-wrap:wrap;margin:10px 0 20px}.profile-filters label{font-size:14px;display:flex;align-items:center;gap:6px}.profile-filters select,.profile-filters input[type=number]{padding:9px;border:1px solid #cddfd4;border-radius:8px;max-width:130px;font-size:15px}.profile-filters input[type=checkbox]{width:18px;height:18px}.profile-badges{font-size:14px;color:#365e49;line-height:1.8}
@media(max-width:600px){#machine-profile-dialog .mp-header,#machine-profile-dialog .mp-body{padding:14px}#machine-profile-dialog .mp-grid,#machine-profile-dialog .mp-facts,#machine-profile-dialog .mp-media-editor,#machine-profile-dialog .mp-gallery{grid-template-columns:1fr}#machine-profile-dialog h2{font-size:20px}#machine-profile-dialog .mp-footer{padding:12px}#machine-profile-dialog .mp-footer button{flex:1 1 auto}#machine-profile-dialog .mp-message{padding:10px 14px}#machine-profile-dialog .mp-drop{padding:14px}}
