.support-attachment-link {
  display: flex; align-items: center; gap: 12px; min-height: 48px; min-width: 0;
  max-width: 100%; padding: 10px 12px; border: 1px solid #dbe6ee; border-radius: 12px;
  background: #f7fafb; color: #003056; text-decoration: none; font: inherit; text-align: left;
}
.support-attachment-link:hover { border-color: #59a362; background: #eff7f2; }
.support-attachment-link:focus-visible, .support-gallery-button:focus-visible { outline: 3px solid #59a362; outline-offset: 3px; }
.support-attachment-label { display: grid; gap: 3px; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.support-attachment-label > span { font-size: .86rem; font-weight: 600; }
.support-attachment-label small { font-size: .75rem; color: #567083; }
.support-attachment-thumb { display: grid; place-items: center; flex: 0 0 96px; width: 96px; height: 72px; border-radius: 8px; overflow: hidden; background: #e6edf2; }
.support-attachment-thumb img { width: 100%; height: 100%; object-fit: cover; }
.support-attachment-thumb img[hidden], .support-attachment-link--loaded .support-attachment-thumb svg { display: none; }
.support-gallery-open { overflow: hidden; }
.support-gallery {
  box-sizing: border-box; width: min(1120px, 96vw); max-width: 96vw; height: min(860px, 94dvh);
  max-height: 94dvh; margin: auto; padding: 0; border: 1px solid #dbe6ee; border-radius: 18px;
  background: #fff; color: #003056; box-shadow: 0 20px 90px #00192c55; font-family: Roboto, Arial, sans-serif;
}
.support-gallery[open] { display: flex; flex-direction: column; }
.support-gallery::backdrop { background: #00192cc9; backdrop-filter: blur(3px); }
.support-gallery-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #dbe6ee; }
.support-gallery-heading { min-width: 0; }
.support-gallery-heading h2 { margin: 0; font-size: 1rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-gallery-count, .support-gallery-page-count { color: #567083; font-size: .8rem; white-space: nowrap; }
.support-gallery-actions, .support-gallery-tools, .support-gallery-pages { display: flex; align-items: center; gap: 8px; }
.support-gallery-pages[hidden] { display: none; }
.support-gallery-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 8px 12px; border: 1px solid #dbe6ee; border-radius: 10px; background: #fff; color: #003056; text-decoration: none; font: inherit; font-size: .83rem; cursor: pointer; white-space: nowrap; }
.support-gallery-button:hover:not(:disabled) { background: #eff7f2; border-color: #59a362; }
.support-gallery-button:disabled { opacity: .38; cursor: default; }
.support-gallery-button[hidden] { display: none; }
.support-gallery-close { font-size: 1.6rem; line-height: 1; }
.support-gallery-status { margin: 0; padding: 12px 20px; background: #f7fafb; color: #567083; font-size: .9rem; }
.support-gallery-status[hidden] { display: none; }
.support-gallery > .support-gallery-button { align-self: center; margin: 10px; }
.support-gallery-stage { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 0; min-width: 0; overflow: auto; padding: 16px; background: #edf2f5; overscroll-behavior: contain; }
.support-gallery-stage--zoomed { align-items: flex-start; justify-content: flex-start; }
.support-gallery-image, .support-gallery-pdf { display: block; flex: none; max-width: none; max-height: none; object-fit: contain; border-radius: 3px; box-shadow: 0 2px 12px #00305618; }
.support-gallery-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid #dbe6ee; }
.support-gallery-accessible-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 650px) {
  .support-gallery { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
  .support-gallery-header { padding: max(10px, env(safe-area-inset-top)) 12px 10px; gap: 8px; }
  .support-gallery-actions { gap: 6px; }
  .support-gallery-footer { padding: 10px 10px max(10px, env(safe-area-inset-bottom)); gap: 8px; flex-wrap: wrap; }
  .support-gallery-pages { order: 2; justify-content: center; flex-basis: 100%; }
  .support-gallery-button { padding: 8px 9px; }
  .support-attachment-thumb { flex-basis: 76px; width: 76px; height: 60px; }
  .support-gallery-stage { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { .support-gallery::backdrop { backdrop-filter: none; } }
