:root{--serif:'Noto Serif KR','바탕',Batang,serif;--sans:var(--serif)}
html body,html body *,html body *::before,html body *::after{font-family:var(--serif)!important}
/* Copy stays inside the frame's carved corners; controls keep their hit boxes. */
html body :is(.palace-sheet-body,#modal-content,.person-dossier,.room-guide-panel,.faction-details,.modal-copy){box-sizing:border-box;padding-inline:18px!important;min-width:0}
html body :is(.palace-sheet-body,#modal-content)>:is(p,h3,h4,small,details,dl,ul,ol){margin-inline:4px!important;max-width:calc(100% - 8px);box-sizing:border-box}
html body :is(.person-dossier,.modal-copy,.room-guide-panel) :is(p,h4){padding-inline:2px;overflow-wrap:anywhere}
html body :is(.choice-detail-intro,.career-management-guide,.personnel-review-guide,.recruitment-review-guide,.career-progress-note,.dossier-caption){padding-inline:12px!important;box-sizing:border-box}
html body .dossier-record{font-size:14px;line-height:1.85;margin:12px 0!important;padding:8px 12px!important;background:#11253866}
@media(max-width:700px){html body :is(.palace-sheet-body,#modal-content,.person-dossier,.room-guide-panel,.faction-details,.modal-copy){padding-inline:12px!important}html body .dossier-record{font-size:13px;line-height:1.75}}
