@media screen {
 body.update-ui .review-main-nav{position:sticky;top:0;z-index:30;box-shadow:0 3px 10px #324f3020;background:#fff}
 body.update-ui .update-pager{display:flex;align-items:center;gap:15px;justify-content:flex-end;padding:12px 0;margin-bottom:16px}
 body.update-ui .update-page-label{font-size:13px;color:#53694e}
 body.update-ui .update-pager button:disabled{opacity:.45;cursor:default;filter:none}
 body.update-ui .update-off-page{display:none!important}
 body.update-ui #rows tr,body.update-ui #reviewStageRows tr{cursor:pointer}
 body.update-ui .update-stage-name{display:inline;padding:0;border:0;background:transparent;text-align:left;font-weight:600;color:#246846}
 body.update-ui .update-stage-name:hover{text-decoration:underline}
 body.update-ui #updateFormsClose{float:right;position:sticky;top:0;z-index:2}
 body.update-ui #updateFormsEmpty{padding:14px;border:1px solid #d9e3d1;background:#f1f6e9;border-radius:8px}
 body.update-ui #updateConnectionDiagnostics{padding:14px;margin-top:20px;border-top:1px solid #d5e0cf}
 body.update-ui #updateConnectionDiagnostics summary{cursor:pointer;font-weight:600}
 @media(max-width:600px){body.update-ui .update-pager{gap:8px;justify-content:space-between;flex-wrap:wrap}body.update-ui .update-page-label{font-size:12px}}
}
@media screen {
 body.update-ui #updateFormsStagedResults{padding:14px;border:1px solid #dfd3ad;border-radius:8px;background:#faf7e9;margin:14px 0}
 body.update-ui .update-staged-form-result{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #e7dec5}
 body.update-ui .update-staged-form-result span{font-size:13px;overflow-wrap:anywhere}
 body.update-ui .update-staged-form-result button{white-space:nowrap}
}
/* Responsive vehicle dialogs: constrain grid tracks, not field content. Screen only. */
@media screen {
 body.review-ui :is(#editor,#saleDialog){
  width:min(1120px,calc(100vw - 32px));max-width:calc(100vw - 32px);
  max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);
  box-sizing:border-box;overflow:auto;
 }
 body.review-ui :is(#editor,#saleDialog) .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.review-ui :is(#editor,#saleDialog) :is(form,.grid,.grid > *,label,.payrow,.payrow > *){min-width:0;max-width:100%}
 body.review-ui :is(#editor,#saleDialog) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){width:100%;min-width:0;box-sizing:border-box}
 body.review-ui :is(#editor,#saleDialog) :is(label,.note,small){overflow-wrap:anywhere}
 body.review-ui :is(#editor,#saleDialog) .actions{flex-wrap:wrap}
 body.review-ui :is(#editor,#saleDialog) .actions button{max-width:100%;white-space:normal}
 @media(max-width:900px){body.review-ui :is(#editor,#saleDialog) .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
 @media(max-width:600px){
  body.review-ui :is(#editor,#saleDialog){width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}
  body.review-ui :is(#editor,#saleDialog) .grid{grid-template-columns:minmax(0,1fr)}
 }
}
