#cardImage{display:flex;align-items:center;justify-content:center;gap:.6rem}
#cardImageDialog{width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 28px);margin:auto;padding:20px;background:var(--ui-surface,#fff);color:var(--ui-ink,#152d2b);border:1px solid var(--ui-border,#d7e0d9);border-radius:14px;overflow:auto}
#cardImageDialog::backdrop{background:#082d2bb3}
.image-heading,.image-actions,.image-sides{display:flex;align-items:center;gap:8px}
.image-heading{justify-content:space-between;margin-bottom:16px}.image-heading h2{margin:0;font-size:1.19rem}
.image-heading button{min-width:44px;font-size:22px}
.image-sides button,.image-actions button{flex:1}
.image-sides button[aria-pressed=true]{background:var(--ui-action,#006666);color:#fff;border-color:var(--ui-action,#006666)}
.image-preview{display:grid;place-items:center;min-height:125px;margin:12px 0;padding:12px;border-radius:8px;background:var(--ui-canvas,#e9eee9)}
.image-preview img{display:block;max-width:100%;max-height:42dvh;width:auto;height:auto}
.image-preview img[hidden]{display:none}
#cardImageDialog p{font-size:.85rem;line-height:1.5;margin:12px 0}
.capture-stage{position:fixed;top:0;left:-12000px;pointer-events:none;container-type:inline-size}
.capture-stage .card{max-width:none;margin:0;box-shadow:none}

#cardImageDialog [data-copy]:not([hidden]){display:block;margin:0 0 12px}
