/* UI12: deliberately scoped to maintenance management dialogs. */
dialog.mm-dialog{width:min(920px,calc(100vw - 32px));max-width:none;}
.mm-form .mm-context{padding:16px 18px;border:1px solid #cbdbe4;border-radius:12px;background:#f4f8fb;margin:0 0 18px;}
.mm-form .mm-context h3{font-size:1.35rem;line-height:1.3;margin:8px 0;}
.mm-form .mm-context>p:not(.eyebrow){margin:6px 0 12px;overflow-wrap:anywhere;}
.mm-form .mm-facts{display:grid;grid-template-columns:minmax(130px,.65fr) minmax(0,1.5fr);gap:9px 16px;margin:12px 0;}
.mm-form .mm-facts dt{color:#475e70;font-size:.88rem;}
.mm-form .mm-facts dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45;}
.mm-form .mm-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.mm-form .mm-card{border:1px solid #d5e0e7;border-radius:12px;padding:16px;background:#fff;min-width:0;}
.mm-form .mm-card h4{margin:0 0 12px;font-size:1rem;}
.mm-form .mm-comparison .mm-facts{grid-template-columns:1fr;gap:5px;}
.mm-form .mm-comparison .mm-facts dd{margin-bottom:8px;}
.mm-form .mm-note,.mm-form .mm-effect{background:#eef5f8;border-left:3px solid #147883;border-radius:6px;padding:12px 14px;line-height:1.55;}
.mm-form .mm-warning{padding:12px 14px;border:1px solid #e4c289;border-left:4px solid #a36c1b;border-radius:6px;background:#fff7ea;color:#694815;line-height:1.55;}
.mm-form .mm-saved-summary h4{margin:4px 0 12px;}
.mm-form .mm-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0;}
.mm-form .mm-counts>div{border:1px solid #d5e0e7;border-radius:9px;padding:12px;background:#fff;min-width:0;}
.mm-form .mm-counts strong{display:block;font-size:1.45rem;margin-bottom:4px;}
.mm-form .mm-counts span{display:block;font-size:.8rem;color:#4d6373;overflow-wrap:anywhere;}
.mm-form .mm-disclosure{border:1px solid #d5e0e7;border-radius:8px;padding:10px 12px;margin:12px 0;}
.mm-form .mm-disclosure>summary{font-weight:650;cursor:pointer;min-height:26px;}
.mm-form .mm-saved-step{border-top:1px solid #d5e0e7;padding:14px 0 4px;}
.mm-form .mm-saved-step h5{font-size:.96rem;margin:0 0 5px;}
.mm-form .mm-saved-step .small{margin:5px 0;}
.mm-form label{margin:12px 0;}
.mm-form textarea{min-height:105px;}
.mm-form .maintenance-cycle-fields{border:1px solid #d5e0e7;border-radius:10px;padding:14px;margin:14px 0;}
.mm-form .maintenance-cycle-fields legend{font-weight:650;padding:0 6px;}
.mm-form .mm-confirm{padding:14px;background:#eaf5f4;border:1px solid #abcfc9;border-radius:8px;align-items:flex-start;}
.mm-form .mm-confirm input{margin-top:4px;}
.mm-form [hidden]{display:none!important;}
@media(max-width:600px){
 dialog.mm-dialog{width:calc(100vw - 12px);max-width:none;max-height:calc(100dvh - 12px);padding:12px;}
 .mm-form .mm-context{padding:12px;}
 .mm-form .mm-facts{grid-template-columns:1fr;gap:4px;}
 .mm-form .mm-facts dd{margin-bottom:8px;}
 .mm-form .mm-comparison{grid-template-columns:1fr;}
 .mm-form .mm-counts{grid-template-columns:repeat(2,minmax(0,1fr));}
 .mm-form .mm-card{padding:12px;}
 .mm-form .mm-context h3{font-size:1.15rem;}
 .mm-dialog #fw-local-state{font-size:.78rem;line-height:1.4;}
}
#fw-form.mm-form label.checkline{display:flex;flex-direction:row;align-items:flex-start;gap:10px;line-height:1.5;}
.mm-form .checkline input{width:20px!important;min-height:20px!important;height:20px;flex:none;margin:2px 0 0;}
.mm-form .checkline span{flex:1;min-width:0;}
.mm-form .mm-page>label:not(.checkline){display:flex;flex-direction:column;gap:8px;}

/* UI14: same scoped review language for pending release and saved-step review. */
#maint-approval.mm-form label.checkline{display:flex;flex-direction:row;align-items:flex-start;gap:10px;line-height:1.5;}
.mm-approval-form{display:flex;flex-direction:column;min-height:0;overflow:hidden;}
.mm-approval-body{overflow:auto;min-height:0;max-height:calc(100dvh - 240px);padding:2px 4px 10px;overscroll-behavior:contain;}
.mm-approval-footer{flex-shrink:0;padding:12px 0 2px;border-top:1px solid #d5e0e7;display:flex;gap:8px;flex-wrap:wrap;background:#fff;}
.mm-approval-footer #fw-error{flex-basis:100%;}
.mm-approval-form .mm-page{min-width:0;overflow-wrap:anywhere;}
.mm-approval-form .log-values{overflow-wrap:anywhere;}
@media(max-width:600px){.mm-approval-body{max-height:calc(100dvh - 220px);}.mm-approval-footer .btn{flex:1;white-space:normal;min-height:44px;}.mm-approval-form .evidence-view-card{min-width:0;}}
