.v13-screen-viewer{padding:0;overflow:hidden;max-height:92dvh}
.v13-screen-viewer .s-dialog-bar{padding:16px 20px;gap:18px}
.v13-screen-viewer .s-dialog-bar>strong{font-size:14px;min-width:0;line-height:1.5}
.v13-screen-controls{display:flex;align-items:center;gap:16px;margin-left:auto;flex-shrink:0}
.v13-screen-controls button,.v13-screen-controls a{font:500 13px var(--rp-font);color:var(--rp-text);text-decoration:none}
.v13-screen-controls button{width:auto;height:36px;min-width:58px;padding:6px 10px;background:var(--rp-surface-hover);border:1px solid var(--rp-line);border-radius:6px}
.v13-screen-controls a{padding-block:9px;color:var(--rp-muted)}
.v13-screen-controls a:hover{color:var(--rp-text)}
.v13-screen-viewport{max-height:calc(92dvh - 90px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#797184 #121216;background:#08080b}
.v13-screen-viewport img{display:block;width:auto;max-width:100%;height:auto;max-height:calc(92dvh - 90px);object-fit:contain;margin-inline:auto}
.v13-screen-viewport.is-actual img{width:var(--image-width);max-width:none;max-height:none;margin:0;height:auto;object-fit:initial}
.v13-screen-viewport:focus-visible{outline:2px solid var(--rp-accent-text);outline-offset:-3px}
@media(max-width:600px){.v13-screen-viewer .s-dialog-bar{padding:14px;display:grid;grid-template-columns:minmax(0,1fr) 32px;gap:10px}.v13-screen-viewer .s-dialog-bar>strong{font-size:12px;grid-column:1;grid-row:1}.v13-screen-viewer .s-dialog-bar>[data-dialog-close]{grid-column:2;grid-row:1}.v13-screen-controls{grid-column:1/-1;margin:0;gap:20px}.v13-screen-viewport,.v13-screen-viewport img{max-height:calc(92dvh - 126px)}}
