/* V192: one measured pair, independent of Safari flex/container sizing. */
html.nl-picture-fit,html.nl-picture-fit.portal-home,html.nl-picture-fit body,html.nl-picture-fit.portal-home body{overflow:hidden!important;overscroll-behavior:none!important;scroll-behavior:auto!important}
html.nl-picture-fit body{position:fixed!important;left:0!important;right:0!important;width:100%!important}
html.nl-picture-fit #modal.open.diff-mode{top:var(--nl-picture-top,0px)!important;left:0!important;right:0!important;bottom:auto!important;width:100%!important;height:var(--nl-picture-height,100vh)!important;max-height:var(--nl-picture-height,100vh)!important;overflow:hidden!important}
html.nl-picture-fit #modal.diff-mode>.box{position:relative!important;width:100%!important;max-width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;padding:0!important;overflow:hidden!important}
html.nl-picture-fit #modal.diff-mode .playarea{width:100%!important;height:100%!important;min-height:0!important;padding:0!important;overflow:hidden!important}
html.nl-picture-fit #modal #dg{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:100%!important}
html.nl-picture-fit #dg:not(.ho) .dg-stage{left:max(8px,env(safe-area-inset-left,0px))!important;right:max(8px,env(safe-area-inset-right,0px))!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;padding:0!important;min-height:0!important;min-width:0!important;overflow:hidden!important}
html.nl-picture-fit #dg:not(.ho) .dg-stage>.dg-panel{flex:0 0 auto!important;display:block!important;min-height:0!important;min-width:0!important;container-type:normal!important;overflow:visible!important}
html.nl-picture-fit #dg:not(.ho) .dg-box{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;aspect-ratio:auto!important;flex:none!important;margin:0!important}
html.nl-picture-fit #dg:not(.ho) .dg-hud{height:auto!important;min-height:var(--hud)!important;padding-left:max(8px,env(safe-area-inset-left,0px))!important;padding-right:max(8px,env(safe-area-inset-right,0px))!important}

html.nl-picture-fit #dg.ho .dg-stage{min-height:0!important;min-width:0!important;overflow:hidden!important}html.nl-picture-fit #dg.ho .dg-panel{flex:1 1 0!important;min-height:0!important;min-width:0!important;container-type:normal!important;overflow:hidden!important}html.nl-picture-fit #dg.ho .dg-box{max-width:100%!important;max-height:100%!important;flex:none!important}

/* V270 measured grid, compact controls and bounded result sheet. */
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell){display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;gap:6px!important;--hud:52px;--strip:70px;padding:0!important;box-sizing:border-box!important}
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-hud{position:relative!important;inset:auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:4px 8px!important;height:auto!important;min-height:52px!important;padding:6px 8px 8px!important}
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-hud-side{gap:5px!important;min-width:0!important;flex-wrap:nowrap!important}
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-hud .dg-center{flex:0 1 auto!important;min-width:0!important}
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-hud button{height:34px!important;min-height:34px!important;min-width:32px!important;padding:4px 8px!important;font-size:12px!important;white-space:nowrap!important}
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-hud .dg-icon{width:34px!important}
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-clock{height:34px!important;min-width:42px!important;font-size:21px!important;padding:0 7px!important;line-height:34px!important}
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-stage{position:relative!important;inset:auto!important;width:auto!important;height:100%!important;align-self:stretch!important;margin:0 8px!important;gap:8px!important}
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-footer{position:relative!important;inset:auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;height:auto!important;min-height:64px!important;max-height:none!important;padding:5px 10px!important;overflow:visible!important}
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-footer-progress{padding:0!important;gap:3px!important;max-width:55%!important;min-width:0!important}
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-footer .dg-strip{position:static!important;height:auto!important;min-height:44px!important;max-height:70px!important;padding:3px!important;overflow-x:auto!important;overflow-y:hidden!important}
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-zoomctl{display:flex!important;position:absolute!important;bottom:76px!important;right:12px!important;left:auto!important;z-index:28}
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-reset{min-width:72px!important;height:36px!important;font-size:12px!important;white-space:nowrap!important}
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-sheet{position:absolute!important;top:auto!important;bottom:0!important;left:50%!important;width:min(560px,100%)!important;max-height:calc(100% - 60px)!important;box-sizing:border-box!important;padding:6px 12px 12px!important;overflow:hidden!important;border-radius:18px 18px 0 0!important}
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-sheet:not(.open):not(.peek){visibility:hidden;pointer-events:none}
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-sheet.peek{transform:translate(-50%,calc(100% - 44px))!important}
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-grip{flex:0 0 28px!important;height:28px!important;min-height:28px!important;width:96px!important;margin:0 auto 6px!important;background:linear-gradient(#68748c,#68748c) center/44px 4px no-repeat!important}
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-sheet-body{overflow-y:auto!important;min-height:0!important;flex:1 1 auto!important}
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-sheet-foot{flex:0 0 auto!important}
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-miss-halo{stroke-width:6px!important;opacity:.16!important}
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-miss-ring{stroke-width:2.5px!important;filter:drop-shadow(0 0 4px #ffb300)!important}
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-miss-glint{stroke-width:1.5px!important;filter:none!important}
@media(pointer:coarse){html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-zoomctl [data-z]:not([data-z=reset]){display:none!important}}

/* Collapsed results must not scroll the fixed game when their focused button moves. */
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell){overflow:clip!important}
html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-sheet.peek .dg-sheet-body,html.nl-picture-fit #modal #dg:not(.ho):not(.draw-shell) .dg-sheet.peek .dg-sheet-foot{visibility:hidden;pointer-events:none}