html[data-client=mobile] #dialogue-box.npc-dialogue{
 width:min(460px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;
 max-height:calc(var(--mobile-height,100dvh) - 120px)!important;overflow-y:auto!important;
 bottom:calc(100px + env(safe-area-inset-bottom))!important;padding:14px!important;
}
html[data-client=mobile] #dialogue-box .npc-actions{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;align-items:stretch;
}
html[data-client=mobile] #dialogue-box .npc-actions>button{
 width:100%!important;min-width:0!important;height:auto!important;min-height:44px;
 padding:9px 7px!important;white-space:normal!important;word-break:keep-all;overflow-wrap:break-word;
 line-height:1.45;box-sizing:border-box;text-align:center;
}
html[data-client=mobile] #dialogue-box .npc-actions>button:only-child{grid-column:1/-1}
html[data-client=mobile] :is(dialog,.job-class-dialog,.party-dialog,.window-panel,#dialogue-box,.mobile-info-dialog){
 word-break:keep-all;overflow-wrap:break-word;text-wrap:pretty;
}
html[data-client=mobile] :is(dialog,.job-class-dialog,.party-dialog,.window-panel,#dialogue-box,.mobile-info-dialog) :is(p,li,label,.npc-text,.trade-note,.job-note){
 line-height:1.65;word-break:keep-all;overflow-wrap:break-word;
}
html[data-client=mobile] :is(dialog,.party-dialog,.job-class-dialog) :is(.party-actions,.delete-character-actions,.job-choice){
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
}
html[data-client=mobile] :is(dialog,.party-dialog,.job-class-dialog) button{
 white-space:normal;word-break:keep-all;overflow-wrap:break-word;line-height:1.45;min-height:44px;
}
html[data-client=mobile] .job-cast{width:max-content;max-width:calc(100vw - 28px);box-sizing:border-box;white-space:normal;word-break:keep-all;overflow-wrap:break-word;text-align:center;line-height:1.5;padding:9px 12px}
html[data-client=mobile] :is(.party-dialog,.job-class-dialog){max-width:calc(100vw - 24px)!important;box-sizing:border-box;max-height:calc(var(--mobile-height,100dvh) - 24px)!important;overflow-y:auto}
