/* Общий просмотр сайта и админки; размеры ограничены обеими осями окна. */
.support-image-viewer { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; box-sizing: border-box; margin: 0; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); border: 0; background: rgb(28 25 23 / 90%); color: #292524; font-family: inherit; }
.support-image-viewer[open] { display: grid; place-items: center; }
.support-image-viewer::backdrop { background: rgb(28 25 23 / 90%); }
.support-image-viewer [hidden] { display: none !important; }
.support-image-panel { width: 100%; max-width: 1200px; height: 100%; min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; border-radius: 16px; background: #1C1917; }
.support-image-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; background: #FAFAF9; color: #292524; }
.support-image-toolbar h2 { flex: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; font: inherit; font-size: 14px; font-weight: 600; color: inherit; }
.support-image-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.support-image-viewer button, .support-image-viewer a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 8px 12px; box-sizing: border-box; border: 1.5px solid #E8E6E3; border-radius: 10px; background: #fff; color: #292524; font: inherit; font-size: 14px; line-height: 1.3; text-decoration: none; cursor: pointer; }
.support-image-viewer button:focus-visible, .support-image-viewer a:focus-visible { outline: 2px solid #F98E0A; outline-offset: 2px; }
.support-image-viewer button:disabled { opacity: .5; cursor: wait; }
.support-image-stage { min-height: 0; min-width: 0; display: flex; overflow: auto; overscroll-behavior: contain; }
.support-image-stage img { display: block; flex: none; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; margin: auto; cursor: zoom-in; }
.support-image-stage.is-zoomed img { max-width: none; max-height: none; cursor: zoom-out; }
.support-image-state { max-width: 420px; margin: auto; padding: 24px; text-align: center; color: #fff; font-size: 16px; line-height: 1.6; }
.support-image-state p { color: inherit; }
.support-image-attachment { display: flex; min-width: 0; align-items: center; border: 1px solid #E8E6E3; border-radius: 6px; background: #fff; }
.support-image-attachment .support-attachment { flex: 1; min-width: 0; border: 0; background: transparent; cursor: zoom-in; }
.support-attachment-download { flex: none; display: inline-flex; gap: 4px; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px; color: #2C5280; font-size: 13px; text-decoration: underline; }
.support-image-attachment .support-attachment:focus-visible, .support-attachment-download:focus-visible { outline: 2px solid #F98E0A; outline-offset: -2px; }
.support-admin .support-image-attachment { background: var(--body-bg); border-color: var(--hairline-color); }
.support-admin .support-attachment-download { color: var(--link-fg); }
@media (max-width: 600px) {
  .support-image-toolbar { padding: 8px; }
  .support-image-toolbar h2 { flex-basis: 100%; max-height: 3em; overflow: auto; }
  .support-image-controls { width: 100%; }
  .support-image-controls [data-image-close] { margin-left: auto; }
  .support-image-attachment img { width: 56px; }
  .support-attachment-download span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
