@media (max-width:760px){
  .inventory-healer-modal,
  .history-edit-modal-shell{
    align-items:stretch !important;
    padding:10px !important;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }

  .inventory-healer-modal-card,
  .history-edit-modal-card{
    width:100% !important;
    min-height:calc(100dvh - 20px);
    max-height:none !important;
    margin:auto 0;
    border-radius:20px !important;
  }

  .inventory-healer-modal-head,
  .history-edit-modal-head{
    align-items:flex-start !important;
    flex-wrap:wrap;
    padding:18px !important;
  }

  .inventory-healer-modal-head > div,
  .history-edit-modal-head > div{
    flex:1 1 180px;
    min-width:0;
  }

  .inventory-healer-modal-head > button,
  .history-edit-modal-head > button{
    flex:0 0 auto;
  }

  .inventory-healer-modal-head > div > div:first-child,
  .history-edit-modal-head > div > div:first-child{
    font-size:clamp(25px, 8vw, 30px) !important;
    line-height:1.08 !important;
  }

  .inventory-healer-modal-body,
  .history-edit-modal-body{
    padding:16px !important;
  }

  .inventory-info-layout,
  .history-edit-layout{
    grid-template-columns:minmax(0, 1fr) !important;
    gap:14px !important;
  }

  .inventory-info-media > img,
  .inventory-info-media > div{
    height:min(62vw, 300px) !important;
  }

  .inventory-info-content{
    gap:14px !important;
  }

  .inventory-info-content > div:first-child > div:first-child{
    font-size:clamp(28px, 9vw, 36px) !important;
    overflow-wrap:anywhere;
  }

  .inventory-info-fields,
  .history-edit-fields{
    grid-template-columns:minmax(0, 1fr) !important;
  }

  .inventory-info-fields > div,
  .history-edit-form-panel,
  .history-edit-band-panel{
    min-width:0;
  }

  .inventory-info-fields > div > div:last-child{
    overflow-wrap:anywhere;
  }

  .history-edit-band-preview{
    height:min(66vw, 300px) !important;
  }

  .history-edit-band-actions,
  .history-edit-footer{
    display:grid !important;
    grid-template-columns:minmax(0, 1fr) !important;
    width:100%;
  }

  .history-edit-band-actions .btn,
  .history-edit-footer .btn{
    width:100%;
  }
}
