
/* Approved endpoint screenshots: stable framing and image-only enlargement. */
.portal-workspace .portal-settings-screenshot { display:block; max-width:100%; height:auto; margin:12px auto; }
.portal-workspace button.portal-screenshot-trigger { display:block; position:relative; box-sizing:border-box; width:fit-content; max-width:100%; margin:12px auto; padding:12px; border:0; border-radius:6px; background:transparent; color:inherit; cursor:zoom-in; }
.portal-workspace button.portal-screenshot-trigger > img { display:block; float:none; width:auto; max-width:100%; height:auto; max-height:540px; margin:0; border-radius:0; }
.portal-screenshot-frame { display:block; position:relative; max-width:100%; overflow:hidden; margin:0 auto; }
.portal-screenshot-frame > img { position:absolute !important; max-width:none !important; max-height:none !important; margin:0 !important; border:0; border-radius:0 !important; }
.portal-screenshot-frame-invalid { aspect-ratio:auto !important; }
.portal-screenshot-frame-invalid > img { position:static !important; width:100% !important; height:auto !important; }
.portal-screenshot-dialog > .portal-screenshot-frame { max-width:min(100%, 88vw); }
.portal-workspace .portal-uac-preview .portal-screenshot-frame { width:100% !important; }
.portal-workspace .portal-skin-comparison .portal-screenshot-frame { aspect-ratio:3 / 2 !important; }
.portal-workspace .portal-skin-comparison { margin-top:16px; }
.portal-workspace .portal-skin-comparison button.portal-screenshot-trigger { margin-top:0; padding-top:0; }
.portal-workspace .portal-session-ending-example { position:relative; width:360px; max-width:100%; margin:12px auto 0; }
.portal-workspace .portal-mac-session-example { width:540px; max-width:100%; margin:12px auto; }
.portal-workspace .portal-mac-session-example > button.portal-screenshot-trigger { width:100%; margin:0; padding:0; }
.portal-workspace .portal-session-ending-example > button.portal-screenshot-trigger { width:100%; margin:0; padding:0; }
.portal-workspace .portal-session-ending-example .portal-screenshot-frame { width:100% !important; }
.portal-workspace .portal-session-ending-example::after { content:""; position:absolute; inset:0; background:rgba(0,0,0,.15); pointer-events:none; }
.portal-workspace .portal-preapproval-explanation { display:grid; grid-template-columns:minmax(0,1fr) minmax(80px,min(30%,320px)); gap:20px; }
.portal-workspace .portal-preapproval-points { min-width:0; }
.portal-workspace .portal-blocked-example { float:right; width:min(35%,320px); margin:0 0 12px 20px; }
.portal-workspace .portal-blocked-example > button.portal-screenshot-trigger { margin:0; padding:0; }
.portal-workspace .portal-preapproval-points ul { margin-bottom:0; }
.portal-workspace .portal-preapproval-example { position:relative; min-width:0; container-type:size; }
.portal-workspace .portal-preapproval-example > :is(img,button.portal-screenshot-trigger) { position:absolute; inset:0; width:100%; height:100%; margin:0; padding:0; display:flex; align-items:center; justify-content:flex-end; }
.portal-workspace .portal-preapproval-example .portal-screenshot-frame { width:min(100cqw,150cqh) !important; height:auto; max-width:100%; max-height:100%; aspect-ratio:3 / 2; }
/* Screenshot framing owns its spacing; legacy line breaks must not add another gap. */
.portal-workspace .simplepanelhelper br:has(+ :is(img.portal-settings-screenshot, button.portal-screenshot-trigger)),
.portal-workspace .simplepanelhelper br:has(+ br + :is(img.portal-settings-screenshot, button.portal-screenshot-trigger)),
.portal-workspace .simplepanelhelper :is(img.portal-settings-screenshot, button.portal-screenshot-trigger) + br,
.portal-workspace .simplepanelhelper :is(img.portal-settings-screenshot, button.portal-screenshot-trigger) + br + br { display:none; }
.portal-workspace .portal-context-about-body:has(.portal-settings-screenshot) { padding-bottom:0; }
.portal-workspace .portal-context-about-body button.portal-screenshot-trigger:last-child { margin-bottom:0; padding-bottom:0; }
.portal-workspace button.portal-screenshot-trigger:focus-visible { outline:2px solid var(--portal-action,#f07057); outline-offset:2px; }
.portal-workspace .portal-uac-choice { position:relative; }
.portal-workspace .portal-uac-choice .portal-uac-option-title { padding-right:26px; }
.portal-workspace .portal-uac-windows .portal-uac-preview > img { width:100%; height:auto; max-height:none; aspect-ratio:3 / 2; object-fit:contain; object-position:center; border-radius:0; }
.portal-workspace .portal-uac-zoom { position:absolute; top:6px; right:6px; z-index:2; display:grid; place-items:center; width:30px; height:30px; min-width:0; padding:6px; border:0; border-radius:4px; background:transparent; color:var(--portal-muted,#aaa); line-height:1; cursor:zoom-in; }
.portal-workspace .portal-uac-zoom svg { display:block; width:18px; height:18px; pointer-events:none; }
.portal-workspace .portal-uac-zoom:hover { color:var(--portal-text,#eee); background:rgba(128,128,128,.12); }
.portal-workspace .portal-uac-zoom:focus-visible { outline:2px solid var(--portal-action,#f07057); outline-offset:1px; }
.portal-screenshot-dialog { box-sizing:border-box; width:fit-content; max-width:94vw; max-height:94vh; max-height:94dvh; margin:auto; padding:42px 16px 16px; border:1px solid var(--portal-box-border,#555); border-radius:8px; background:var(--portal-box-background,#222); color:var(--portal-text,#eee); }
.portal-screenshot-dialog::backdrop { background:rgba(0,0,0,.75); }
.portal-screenshot-dialog > img { display:block; width:auto; height:auto; max-width:100%; max-height:calc(94vh - 64px); max-height:calc(94dvh - 64px); margin:auto; object-fit:contain; }
.portal-screenshot-dialog > .portal-screenshot-close { position:absolute; top:4px; right:4px; display:grid; place-items:center; width:36px; height:36px; padding:0; border:0; border-radius:4px; background:transparent; color:inherit; font:24px/1 sans-serif; cursor:pointer; }
.portal-screenshot-dialog > .portal-screenshot-close:focus-visible { outline:2px solid var(--portal-action,#f07057); }

