/* Shared fitted and original-size image viewer. Inline previews are unchanged. */
html.screenshot-open{overflow:hidden}
body .screenshot-dialog{position:fixed;inset:0;margin:auto;width:min(1200px,calc(100% - 32px));height:min(920px,92vh);height:min(920px,92dvh);max-width:none;max-height:92vh;max-height:92dvh;padding:0;overflow:hidden;border:1px solid #a5aab0;border-radius:3px;background:#fff;color:#20262b;box-shadow:0 16px 60px #0005}
body .screenshot-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
body .screenshot-dialog.is-portrait{width:min(688px,calc(100% - 32px))}
body .screenshot-dialog::backdrop{background:#11161ce6}
body .screenshot-dialog .screen-toolbar{display:flex;align-items:center;gap:10px;padding:12px;border-bottom:1px solid #ccd0d3;background:#fff;z-index:3}
body .screenshot-dialog .screen-size-controls{display:flex;gap:8px}
body .screenshot-dialog .screen-toolbar button{display:flex;align-items:center;justify-content:center;gap:10px;position:static;min-width:62px;min-height:44px;margin:0;padding:9px 16px;border:1px solid #8a9298;border-radius:3px;background:#fff;color:#20262b;box-shadow:none;font:700 14px/1.5 Manrope,Arial,sans-serif;cursor:pointer}
body .screenshot-dialog .screen-toolbar .screen-close{margin-left:auto}
body .screenshot-dialog .screen-toolbar button[aria-pressed="true"]{background:#22292f;color:#fff;border-color:#22292f}
body .screenshot-dialog .screen-toolbar button:hover:not(:disabled){border-color:#a52333;box-shadow:inset 0 -3px #a52333}
body .screenshot-dialog .screen-toolbar button:disabled{opacity:.55;cursor:wait}
body .screenshot-dialog :is(button,.screen-viewport,.screen-details):focus-visible{outline:3px solid #b32135;outline-offset:-4px}
body .screenshot-dialog .screen-viewport{min-width:0;min-height:0;padding:12px;overflow:auto;overscroll-behavior:contain;background:#e9ecee;scroll-behavior:auto;touch-action:pan-x pan-y pinch-zoom}
body .screenshot-dialog .screen-canvas{display:grid;place-items:center;width:max-content;min-width:100%;min-height:100%}
body .screenshot-dialog #screen-image{display:block;min-width:0;max-width:none!important;max-height:none;height:auto;aspect-ratio:auto;object-fit:contain;margin:0;background:#fff}
body .screenshot-dialog #screen-image[hidden]{display:none}
body .screenshot-dialog .screen-details{max-height:26vh;max-height:26dvh;overflow:auto;overscroll-behavior:contain;padding:12px 16px;border-top:1px solid #ccd0d3;background:#fff}
body .screenshot-dialog :is(#screen-caption,#screen-help){position:static;width:auto;min-width:0;max-width:none;margin:0;color:#353b40;font:400 14px/1.6 Manrope,Arial,sans-serif;overflow-wrap:anywhere}
body .screenshot-dialog #screen-help{margin-top:6px;color:#4e565d;font-size:13px}
@media(max-width:600px){
 body .screenshot-dialog,body .screenshot-dialog.is-portrait{width:calc(100% - 16px);height:94vh;height:94dvh;max-height:94vh;max-height:94dvh}
 body .screenshot-dialog .screen-toolbar{padding:8px;gap:8px}
 body .screenshot-dialog .screen-toolbar button{padding:8px 12px;min-width:56px}
 body .screenshot-dialog .screen-viewport{padding:8px}
 body .screenshot-dialog .screen-details{padding:10px 12px}
}
@media print{body .screenshot-dialog{display:none!important}}
