dialog.chat-image-fullscreen {
  position:fixed; inset:0; box-sizing:border-box; width:100vw; height:100vh; width:100dvw; height:100dvh;
  max-width:none; max-height:none; margin:0; padding:0; border:0; border-radius:0; overflow:hidden;
  background:#0b0d13; color:#fff; overscroll-behavior:contain;
}
dialog.chat-image-fullscreen::backdrop { background:#0b0d13; }
.chat-image-fullscreen-photo {
  display:block; width:100%; height:100%; max-width:none; max-height:none; padding:0;
  object-fit:contain; object-position:center; -webkit-touch-callout:default;
}
.chat-image-fullscreen-close {
  position:absolute; top:max(10px,env(safe-area-inset-top)); right:max(10px,env(safe-area-inset-right));
  display:grid; place-items:center; width:44px; height:44px; border:1px solid #ffffff58;
  border-radius:50%; background:#0b0d13b8; color:#fff; font:26px/1 sans-serif; padding:0;
}
.chat-image-fullscreen-actions {
  position:absolute; right:12px; bottom:max(12px,env(safe-area-inset-bottom)); left:12px;
  display:grid; gap:5px; width:min(calc(100% - 24px),380px); margin:auto; padding:8px;
  background:#20232f; border:1px solid #ffffff35; border-radius:12px;
}
.chat-image-fullscreen-actions[hidden], .chat-image-fullscreen-status:empty { display:none; }
.chat-image-fullscreen-actions button {
  min-height:48px; border:0; border-radius:8px; background:#343948; color:#fff; font:inherit; touch-action:manipulation;
}
.chat-image-fullscreen-status {
  position:absolute; bottom:max(14px,env(safe-area-inset-bottom)); left:50%;
  width:max-content; max-width:calc(100% - 24px); transform:translateX(-50%);
  padding:8px 12px; margin:0; border-radius:8px; background:#141821e8; color:#fff; font-size:14px;
}
