.attachment-card-header { flex-wrap: wrap; gap: 12px; }
.attachment-header-actions, .attachment-actions, .attachment-preview-links, .attachment-zoom { display: flex; align-items: center; gap: 12px; }
.attachment-header-actions { flex-wrap: wrap; }
.certification-attachment > .attachment-actions { flex: 0 0 auto; }
.attachment-info a { display: block; text-decoration: none; }
.attachment-info a:hover strong { text-decoration: underline; }
.attachment-actions .text-action { white-space: nowrap; }
.attachment-preview { width: min(1100px, calc(100vw - 32px)); max-width: none; height: min(900px, calc(100dvh - 32px)); max-height: none; margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; }
.attachment-preview[open] { display: flex; flex-direction: column; }
.attachment-preview::backdrop { background: rgb(13 31 38 / .6); }
.attachment-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.attachment-preview-header h2 { margin: 0; font-size: 18px; }
.attachment-preview-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 10px 20px; }
.attachment-preview-links { margin-left: auto; }
.attachment-preview-content { flex: 1; min-height: 0; margin: 0 20px; overflow: auto; overscroll-behavior: contain; background: #f3f6f8; border: 1px solid var(--line); }
.attachment-preview-content img { display: block; max-width: none; margin: auto; object-fit: contain; }
.attachment-preview-content iframe { display: block; width: 100%; height: 100%; border: 0; }
.attachment-preview-status { flex: 0 0 auto; min-height: 20px; margin: 0; padding: 10px 20px; color: var(--muted); font-size: 12px; }
.attachment-preview [hidden] { display: none !important; }
@media (max-width: 600px) {
  .certification-attachment { gap: 8px; padding: 12px; }
  .attachment-actions { gap: 6px; }
  .attachment-preview { width: calc(100vw - 12px); height: calc(100dvh - 12px); border-radius: 6px; }
  .attachment-preview-header, .attachment-preview-toolbar { padding: 10px 12px; }
  .attachment-preview-content { margin: 0 12px; }
  .attachment-preview-status { padding: 10px 12px; }
}
