/* Important shell rules live in a layer to override legacy unlayered modal themes. */
@layer card-detail-shell {
/* One shell for all full-card dialogs; card faces keep their own renderer. */
body .unified-card-dialog:not(dialog){position:fixed!important;inset:0!important;z-index:10000!important;display:grid!important;place-items:center!important;padding:16px!important;box-sizing:border-box;background:#0008!important}
body .unified-card-dialog::backdrop{background:#0008;backdrop-filter:blur(3px)}
body .unified-card-panel{position:relative!important;box-sizing:border-box!important;width:min(400px,100%)!important;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 32px)!important;overflow-y:auto!important;overscroll-behavior:contain;padding:52px 22px 22px!important;border:1px solid #505050!important;border-radius:18px!important;background:#292929!important;color:#f2f2f2!important;text-align:center!important;box-shadow:0 20px 70px #0004!important}
body .unified-card-panel>h2{margin:0 0 16px!important;font-size:18px!important;line-height:1.4;overflow-wrap:anywhere;color:#f2f2f2!important}
body .unified-card-panel>.card{margin:0 auto 16px!important;max-width:100%!important}
body .unified-card-panel :is(.eyebrow,.card-operation-note,small){color:#bdbdbd!important}
body .unified-card-panel .skill-full-note{background:#343434!important;color:#e5e5e5!important;border-color:#505050!important;border-left-color:#8799ad!important}
body .unified-card-panel .skill-full-note b{color:inherit!important}
body .unified-card-panel .skill-full-note.passive-attr{border-left-color:#3f8cff!important}
body .unified-card-panel .skill-full-note.reaction-attr{border-left-color:#e5484d!important}
body .unified-card-panel button:not(.physical-card-entry):not(.unified-card-close):not(.skill-full-note){color:#f2f2f2!important;background:#3c3c3c!important;border-color:#626262!important}
body .unified-card-panel button.unified-card-close{position:absolute!important;inset:8px 8px auto auto!important;z-index:5!important;display:grid!important;place-items:center!important;width:36px!important;height:36px!important;min-height:36px!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;color:#f2f2f2!important;font:26px/1 Arial,sans-serif!important;box-shadow:none!important;cursor:pointer}
body .unified-card-panel button.unified-card-close:hover{background:#ffffff14!important}
body .unified-card-panel button:focus-visible{outline:2px solid #fff!important;outline-offset:3px}
body .unified-card-panel .physical-card-entry{color:#ccc!important}
body .unified-card-panel .physical-card-entry:hover{color:#fff!important}
body .unified-card-panel .deck-detail-bottom{background:#292929!important;box-shadow:0 -8px 12px #292929cc!important}
body .unified-card-panel .deck-detail-quantity{background:#343434!important;border-color:#555!important}
body .unified-card-panel .deck-detail-count{color:#f2f2f2!important}
body .unified-card-panel button[hidden]{display:none!important}
@media(max-width:380px){body .unified-card-panel{padding:48px 14px 16px!important}}

}
