/* Window containers do not paint a second mat over the authored frame. */
html body :is(#modal,.palace-sheet) :is(.court-officers,.court-grid,.crew-overview,.crew-picker,.crew-rules,.dossier-record,.dossier-skills,.choice-report,.choice-report-grid,.growth-report,.fixed-report,.experience-report,.personnel-review-roles,.promotion-offices,.trait-detail-section,.traits-catalog){
 background:transparent!important;border:0!important;border-image:none!important;border-radius:0!important;box-shadow:none!important;outline:none!important;
}
html body :is(#modal,.palace-sheet) :is(.court-officers,.crew-rules){padding:0!important;margin:14px 0 0!important;overflow:visible!important}
html body :is(#modal,.palace-sheet) :is(.court-officers,.crew-rules)>summary{padding:12px 4px!important;line-height:1.5!important;color:#e4c995!important;min-height:44px;box-sizing:border-box;background:transparent!important;border:0!important;border-image:none!important;box-shadow:none!important}
html body :is(#modal,.palace-sheet) .court-grid{gap:12px!important;padding:4px 2px 12px!important;margin:0!important;align-items:stretch}
html body :is(#modal,.palace-sheet) .court-person-button{
 display:flex!important;align-items:center!important;gap:14px!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;
 background:transparent!important;border:3px solid transparent!important;border-image:var(--group-frame) 180 fill / 7px / 0 stretch!important;
 border-radius:0!important;box-shadow:none!important;padding:16px!important;text-align:left!important;height:auto!important;min-height:112px!important;max-height:none!important;
}
html body :is(#modal,.palace-sheet) .court-person-button>span:last-child{flex:1;min-width:0;overflow-wrap:anywhere}
html body :is(#modal,.palace-sheet) .court-person-button strong{font-size:19px!important;color:#eed5a0!important;line-height:1.4}
html body :is(#modal,.palace-sheet) .court-person-button small{line-height:1.6!important;margin:5px 0!important;color:#cbc3b4!important}
html body :is(#modal,.palace-sheet) .court-person-button .historical-face{width:72px!important;height:72px!important;flex:0 0 72px!important;border-radius:0!important}
html body :is(#modal,.palace-sheet) .court-heading{padding:4px 2px 10px!important;gap:12px;flex-wrap:wrap;margin:0!important;color:#d3bd90!important}
html body :is(#modal,.palace-sheet) :is(.crew-slot,.crew-candidate,.province-item,.trait-card,.birth-option,.personnel-review-role){
 background:transparent!important;border:3px solid transparent!important;border-image:var(--group-frame) 180 fill / 7px / 0 stretch!important;
 box-shadow:none!important;border-radius:0!important;padding:16px!important;box-sizing:border-box!important;min-width:0;
}
html body :is(#modal,.palace-sheet) :is(.crew-rules,.trait-detail-section,.dossier-record) p{margin:12px 0!important;line-height:1.75!important}
html body :is(#modal,.palace-sheet) :is(.court-person-button,.crew-slot,.crew-candidate,.province-item,.trait-card,.birth-option,.personnel-review-role)::before,
html body :is(#modal,.palace-sheet) :is(.court-person-button,.crew-slot,.crew-candidate,.province-item,.trait-card,.birth-option,.personnel-review-role)::after{content:none!important}
@media(max-width:700px){
 html body :is(#modal,.palace-sheet) .court-grid{grid-template-columns:1fr!important;gap:10px!important}
 html body :is(#modal,.palace-sheet) .court-person-button{padding:14px!important;gap:12px!important;min-height:108px!important}
}

html body :is(#modal,.palace-sheet) :is(.trait-study-progress,.trait-rare-progress,.talent-badge,.policy-option){
 background:transparent!important;border:3px solid transparent!important;border-image:var(--group-frame) 180 fill / 7px / 0 stretch!important;
 border-radius:0!important;box-shadow:none!important;padding:18px!important;box-sizing:border-box;min-width:0;
}
html body :is(#modal,.palace-sheet) .campaign-method-missing{background:transparent!important;border:0!important;border-image:none!important;box-shadow:none!important;padding:10px 0!important;color:#e9ad97!important}
html body :is(#modal,.palace-sheet) .policy-options{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
html body :is(#modal,.palace-sheet) .policy-option-heading{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center!important}
html body :is(#modal,.palace-sheet) .policy-option-heading>span{flex:none;white-space:nowrap}
html body :is(#modal,.palace-sheet) .policy-option-heading h3{margin:0!important;white-space:normal!important;word-break:keep-all!important;font-size:20px!important}
html body :is(#modal,.palace-sheet) .policy-option-heading>strong{margin-left:auto;white-space:nowrap!important;font-size:24px!important}
@media(max-width:700px){html body :is(#modal,.palace-sheet) .policy-options{grid-template-columns:1fr!important}}
