/* Scoped overrides replace the former center-screen resident dialogs. */
#nb-dialog.head-bubble,#town-dialog.head-bubble{position:fixed;inset:auto;margin:0;transform:translate(-50%,-100%);z-index:54;box-sizing:border-box;width:min(290px,calc(100vw - 24px));max-height:min(310px,46dvh);overflow:auto;padding:12px 14px;border:1px solid #bcaa88;border-radius:16px 16px 5px 16px;background:#fff9eeed;color:#263747;box-shadow:0 5px 18px #11182726;pointer-events:auto;touch-action:pan-y;overscroll-behavior:contain}
#nb-dialog.head-bubble h2,#town-dialog.head-bubble h2{font-size:13px;line-height:1.4;margin:0 0 4px;padding:0}
#nb-dialog.head-bubble p,#town-dialog.head-bubble p{font-size:12px;line-height:1.55;margin:5px 0;white-space:pre-line}
#nb-dialog.head-bubble #nb-who{font-size:10px;margin:0 0 5px}
#nb-dialog.head-bubble button,#town-dialog.head-bubble button{min-height:36px;padding:7px 9px;margin:6px 5px 0 0;font-size:11px;line-height:1.35;border-radius:9px}
#nb-dialog.head-bubble[hidden],#town-dialog.head-bubble[hidden]{display:none!important}
@media(max-height:500px){#nb-dialog.head-bubble,#town-dialog.head-bubble{width:min(270px,45vw);max-height:54dvh;padding:9px 12px}#nb-dialog.head-bubble #nb-who{display:none}}
