.share-image-callout { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-top: 24px; padding: 20px 0 0; border-top: 1px solid var(--border); }
.share-image-callout h3 { margin-bottom: 4px; }
.share-image-callout .ghost-btn { flex-shrink: 0; }
.image-dialog { width: min(1000px, calc(100vw - 32px)); }
.image-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.image-dialog .dialog-header, .image-export-footer { flex-shrink: 0; }
.image-export-body { min-height: 0; overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; }
.image-preview-panel { min-width: 0; position: sticky; top: 0; align-self: start; }
.image-preview-area { position: relative; display: grid; place-items: center; height: clamp(280px, 50dvh, 520px); min-width: 0; padding: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.image-stage { position: relative; flex-shrink: 0; overflow: hidden; }
.image-stage.is-transparent { background-image: conic-gradient(#e0ded9 25%, #fff 0 50%, #e0ded9 0 75%, #fff 0); background-size: 20px 20px; }
.image-viewer { position: absolute; inset: 0; }
.image-viewer canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.image-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.image-decoration-choices { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--border); }
.image-placeholder { position: absolute; inset: 0; display: grid; place-content: center; padding: 24px; text-align: center; background: var(--surface-2); }
.image-preview-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; }
.image-preview-tools p { font-size: 11px; }
.image-size-label { text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.image-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: start; gap: 14px 12px; }
.image-field { display: grid; gap: 6px; }
.image-options label { font-size: 12px; font-weight: 600; }
.image-options select, .image-options input[type="text"] { font-size: 12px; font-weight: 400; min-height: 39px; }
.image-measurement-options { display: grid; gap: 12px; padding: 6px 0; }
.image-heading-field { margin: 4px 0 10px; }
.image-heading-field input { width: 100%; min-width: 0; padding: 9px; }
.image-heading-field input:disabled { opacity: 0.55; }
.image-full { grid-column: 1 / -1; }
.image-options .image-option-note { margin: -6px 0 0; font-size: 11px; line-height: 1.6; }
.image-options .image-brand-choice { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 400; min-height: 28px; }
.image-brand-choice input { margin: 0; accent-color: var(--accent); }
.image-export-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.image-export-footer > div { min-width: 0; }
.image-export-footer .primary-btn { min-height: 44px; flex-shrink: 0; }
#image-status { overflow-wrap: anywhere; }
#image-status.error { color: var(--error); }
#image-retry { margin-top: 8px; }
@media (max-width: 720px) {
  .image-dialog { padding: 20px; }
  .image-preview-panel { position: static; }
  .image-options input[type="text"] { font-size: 16px; }
  .image-export-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .image-preview-area { height: clamp(250px, 40dvh, 340px); }
  .image-export-footer { margin-top: 16px; padding-top: 16px; }
  .image-export-footer .primary-btn { padding-inline: 14px; }
  .share-image-callout { flex-wrap: wrap; gap: 12px; }
}
