/* Existing save controls, presented at the bottom on small screens. */
.mobile-save-bar{display:contents}
.mobile-save-hint{display:none}
@media(max-width:700px){
  #formView,#detailView{padding-bottom:var(--mobile-save-space,164px)}
  .mobile-save-bar{display:block;position:fixed;inset:auto 0 0;z-index:80;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));border-top:1px solid #aaa39a;background:#fff;box-shadow:0 -3px 14px #27272415;color:#272724}
  .mobile-save-bar .actionend{margin:0;gap:8px}
  .mobile-save-bar .btn{min-height:48px;font-size:14px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
  .mobile-save-bar #saveBtn{flex:1}
  .mobile-save-bar #save{width:100%;margin:0}
  .mobile-save-hint{display:block;font-size:12px;line-height:1.5;margin:0 0 6px}
  #detailView:has(#officePage.hidden) .mobile-save-hint{display:none}
  .mobile-save-bar #saveResult:empty{display:none}
  .mobile-save-bar #saveResult:not(:empty){max-height:24vh;overflow:auto;overflow-wrap:anywhere;margin-top:8px;padding:8px 10px;font-size:13px;line-height:1.5}
  .mobile-save-bar.mobile-save-inline{position:static;box-shadow:none;border:1px solid #aaa39a;border-radius:10px;margin:10px 0;width:100%}
}
