/* Dedicated assets occupy reserved boxes. Painted corners never grow with content. */
html body :is(dialog#modal,.palace-sheet,.conquest-target-dialog,.castle-city-sheet){border-image-source:url('assets/ui-frame-window-1115.webp')!important;border-image-slice:12% 6%!important;border-image-width:14px!important;border-image-outset:0!important;border-image-repeat:stretch!important}
html body :is(dialog#modal,.palace-sheet)[open] :is(.policy-option,.policy-current,.crew-slot,.crew-candidate,.court-person-button,.personnel-review-role,.trait-card,.birth-option,.talent-badge,.trait-study-progress,.trait-rare-progress,.command-authority-catalog article,.scouting-receipt,.dossier-skill,.mobilization-ledger,.recruitment-summary,.frontier-odds>div,.dossier-stats>div){border-image-source:url('assets/ui-frame-compact-1115.webp')!important;border-image-slice:12% fill!important;border-image-width:12px!important}
html body dialog#modal[open] .affairs-panel :is(.affairs-grid>article,.ruler-worker,.workforce-advice>article,.affairs-promise,.dynasty-business-row,.dynasty-event,.dynasty-proposal,.ruler-assignment-preview,.ruler-office-row,.affairs-news,.spouse-counsel){border-image-source:url('assets/ui-frame-horizontal-1115.webp')!important;border-image-slice:18% 6% fill!important;border-image-width:12px!important}
html body .work-status-art{display:block;width:24px!important;height:24px!important;object-fit:contain;flex:0 0 24px;align-self:center;border:0;background:none;pointer-events:none}
html body .affairs-task-heading>span:not(.affairs-task-art){min-width:0;flex:1;overflow-wrap:anywhere}
html body .work-result-seal .work-status-art{width:30px!important;height:30px!important;margin:auto}
html body .work-result-seal{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
html body :is(dialog#modal,.palace-sheet)[open] :is(.empty-art-notice,.empty-state,.alternate-empty,.dynasty-empty){background:url('assets/ui-empty-scroll-1115.webp') 0 center/48px 24px no-repeat!important;padding:12px 0 12px 60px!important;min-height:48px;box-sizing:border-box}
html body .room-experience .palace-command:not([data-management]) .palace-command-art>i.command-availability,
html body .mobile-hud-layout.mobile-hud-layout .palace-command:not([data-management]) .palace-command-art>i.command-availability{width:74px!important;min-width:74px!important;max-width:74px!important;padding:5px 7px 5px 30px!important;background:url('assets/ui-state-ready-1115.webp') 5px center/22px 22px no-repeat,url('assets/ui-frame-horizontal-1115.webp') center/100% 100% no-repeat!important}
html body .room-experience .palace-command:not([data-management]) .palace-command-art>i.command-availability[data-state='locked'],
html body .mobile-hud-layout.mobile-hud-layout .palace-command:not([data-management]) .palace-command-art>i.command-availability[data-state='locked']{background-image:url('assets/ui-state-locked-1115.webp'),url('assets/ui-frame-horizontal-1115.webp')!important}
html body .room-experience .palace-command:not([data-management]) .palace-command-art>i.command-availability[data-state='complete'],
html body .mobile-hud-layout.mobile-hud-layout .palace-command:not([data-management]) .palace-command-art>i.command-availability[data-state='complete']{background-image:url('assets/ui-state-complete-1115.webp'),url('assets/ui-frame-horizontal-1115.webp')!important}
html body .room-experience .palace-command:not([data-management]):is(:active,:focus-visible,.is-selected) .palace-command-art>i.command-availability{background-image:url('assets/ui-state-selected-1115.webp'),url('assets/ui-frame-horizontal-1115.webp')!important}
html body .room-experience .empty-action-pennant{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;aspect-ratio:auto;min-height:220px;padding:24px;box-sizing:border-box;border:3px solid transparent;border-image:url('assets/ui-frame-compact-1115.webp') 12% fill / 12px / 0 stretch}
html body .room-experience .empty-action-pennant-art{position:static;width:130px;max-width:100%;height:auto;aspect-ratio:2/1;object-fit:contain;flex:none}
html body .room-experience .empty-action-pennant-copy{position:static;display:flex;gap:12px;min-width:0;width:100%;height:auto;flex:none}
@media(max-width:600px){html body :is(dialog#modal,.palace-sheet,.conquest-target-dialog,.castle-city-sheet){border-image-width:10px!important}html body .room-experience .empty-action-pennant{padding:20px;gap:12px}html body .room-experience .empty-action-pennant-copy>strong{font-size:16px!important}}
