#sc6-macro-viewer { margin-top: 20px; padding-top: 16px; border-top: 1px solid #dfe3e8; }
#sc6-macro-viewer[hidden], #sc6-macro-viewer [hidden] { display: none !important; }
#sc6-macro-viewer .macro-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
#sc6-macro-viewer h3 { margin: 0; font-size: 1rem; color: #263b54; }
#sc6-macro-viewer .macro-heading span { font-size: .72rem; background: #edf0f5; color: #586575; border-radius: 12px; padding: 4px 9px; }
#sc6-macro-viewer button, #sc6-macro-dialog button { border: 1px solid #c9d1db; border-radius: 6px; background: #f4f7fa; color: #203a59; padding: 8px 12px; cursor: pointer; font-size: .85rem; }
#sc6-macro-viewer button:disabled { opacity: .6; cursor: wait; }
#sc6-macro-viewer .macro-note { font-size: .76rem; line-height: 1.5; color: #59697b; margin: 10px 0; overflow-wrap: anywhere; }
#sc6-macro-viewer .macro-picture { display: block; width: 100%; height: auto; max-height: 280px; object-fit: contain; background: #142032; border-radius: 6px; margin-bottom: 10px; }
#sc6-macro-dialog { max-width: min(1280px, 94vw); max-height: 94vh; padding: 12px; border: 0; border-radius: 10px; }
#sc6-macro-dialog::backdrop { background: #09172ab5; }
#sc6-macro-dialog img { display: block; max-width: 100%; max-height: 82vh; object-fit: contain; margin-top: 10px; }
