/* Original screens inside a single graphite device, without overlays. */
#app .app-phone { width:300px; height:auto; padding:6px; border:5px solid #303236; border-radius:36px; background:linear-gradient(120deg,#55585b,#141517 20%,#3b3d40 80%,#191a1c); cursor:zoom-in; }
#app .app-phone::after { display:none; }
#app .phone-display { display:block; height:auto; aspect-ratio:1320 / 2638; border-radius:25px; background:#000; padding:5px 2px; }
#app .phone-display>.app-real-image { display:block; position:static; width:100%; height:100%; object-fit:contain; }
#app #app-gallery { width:min(100%,650px); margin-inline:auto; }
#app-gallery .gallery-page { gap:28px; padding:3px; align-items:center; }
#app-gallery .app-shot { display:block; width:100%; height:auto; padding:6px; border:3px solid #37393d; border-radius:32px; background:linear-gradient(120deg,#54575b,#151618 18%,#393b3f 82%,#17181a); box-shadow:0 4px 10px #0003; cursor:zoom-in; }
#app-gallery .app-shot:hover { border-color:#73757a; }
#app-gallery .shot-scene { display:block; position:relative; width:100%; height:auto; max-height:none; aspect-ratio:1 / 2.08; border-radius:23px; background:#000; padding:7px 2px; overflow:hidden; }
#app-gallery .shot-scene>img { display:block; position:static; width:100%; height:100%; object-fit:contain; }
#app .app-phone:focus-visible,#app-gallery .app-shot:focus-visible { outline:2px solid var(--yellow); outline-offset:2px; }
/* Only the App viewer changes; the Results viewer retains its existing behavior. */
#visual-dialog.app-capture-dialog { width:min(94vw,850px); max-width:94vw; height:90dvh; max-height:90dvh; padding:0; overflow:hidden; }
.app-capture-dialog #dialog-close { z-index:2; top:10px; right:12px; width:42px; height:42px; border:1px solid #ffffff60; border-radius:50%; background:#161719; line-height:1; }
.app-capture-dialog #dialog-content { height:100%; display:flex; flex-direction:column; }
.capture-toolbar { flex:none; padding:12px 68px 12px 12px; min-height:66px; border-bottom:1px solid #ffffff25; }
.capture-toolbar button { background:#242629; color:#fff; border:1px solid #ffffff50; border-radius:6px; padding:10px 14px; font:inherit; font-size:13px; }
.capture-viewport { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; touch-action:pan-x pan-y pinch-zoom; background:#000; }
#visual-dialog .capture-viewport img { display:block; width:100%; height:auto; max-width:none; max-height:none; margin:0 auto; }
#visual-dialog .capture-viewport.is-zoomed img { width:auto; min-width:100%; }
@media(max-width:900px) and (min-width:701px) { #app .app-phone { width:255px; } }
@media(max-width:700px) {
  #app .app-phone { width:244px; border-radius:31px; padding:5px; }
  #app .phone-display { border-radius:21px; }
  #app-gallery .gallery-page { gap:12px; }
  #app-gallery .app-shot { padding:3px; border-width:2px; border-radius:20px; }
  #app-gallery .shot-scene { border-radius:14px; padding:5px 1px; }
}
