/* Global Photo Studio result actions: reuse existing save/reset workflows.
   Display only after a completed image generation, not for PDFs/processing. */
@media(max-width:780px){
  #gpsMobile .gps-mobile-result-actions[hidden],
  #gpsMobile .gps-mobile-result-actions [hidden] {display:none!important}
  #gpsMobile .gps-mobile-result-actions {
    display:flex;
    flex-direction:column;
    gap:7px;
    margin-top:12px;
    flex:0 0 auto;
    min-width:0;
    padding:0 1px;
  }
  #gpsMobile .gps-result-action-pair {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    width:100%;
  }
  #gpsMobile .gps-result-action-pair > button {
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:nowrap;
    gap:7px;
    width:100%;
    min-width:0;
    height:auto;
    min-height:52px;
    padding:10px 8px;
    border:0;
    border-radius:14px;
    font:inherit;
    line-height:1.2;
    box-shadow:none;
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
  }
  #gpsMobile .gps-result-action-pair svg {
    display:block;
    flex:0 0 18px;
    width:18px;
    height:18px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.9;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
  #gpsMobile .gps-result-action-pair b {
    display:block;
    font-size:clamp(12px,3.35vw,14px);
    letter-spacing:-.1px;
    font-weight:800;
    white-space:normal;
    text-align:center;
  }
  #gpsMobile .gps-result-action-pair .gps-mobile-save-photo {
    color:#39275b;
    background:#f7f0ff;
    border:1px solid #e3d6f1;
  }
  #gpsMobile .gps-result-action-pair .gps-result-new-photo {
    color:#fff;
    background:linear-gradient(110deg,#7455d5,#986dea);
    box-shadow:0 5px 15px #5340b52b;
  }
  #gpsMobile .gps-result-action-pair .gps-mobile-save-photo:disabled {opacity:.55}
  #gpsMobile .gps-result-action-pair .gps-result-new-photo:active {filter:brightness(.91)}
  #gpsMobile .gps-result-action-pair > button:focus-visible {outline:3px solid #a48cf6;outline-offset:3px}
  #gpsMobile .gps-mobile-result-actions > small {margin:0 3px;text-align:center;font-size:11px;color:var(--muted,#aab4c9)}
}
/* Desktop: two clear actions beneath comparison, fullscreen remains optional. */
#gpsDesktopSavePhoto[hidden],#gpsDesktopNewPhoto[hidden] {display:none!important}
.gps-desktop-result-actions:has(> #gpsDesktopNewPhoto:not([hidden])) {
  display:flex!important;
  justify-content:stretch;
  align-items:stretch;
  gap:11px;
  min-height:50px;
  margin-top:7px;
}
.gps-desktop-result-actions > #gpsDesktopSavePhoto,
.gps-desktop-result-actions > #gpsDesktopNewPhoto {
  display:inline-flex;
  flex:1 1 0;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-width:0;
  min-height:50px;
  padding:11px;
  border:0;
  border-radius:13px;
  font:inherit;
  line-height:1.2;
  cursor:pointer;
}
.gps-desktop-result-actions > #gpsDesktopSavePhoto {
  color:#39275b;
  background:#f7f0ff;
  border:1px solid #e3d6f1;
}
.gps-desktop-result-actions > #gpsDesktopNewPhoto {
  color:#fff;
  background:linear-gradient(110deg,#7455d5,#986dea);
  box-shadow:0 5px 15px #5340b52b;
}
.gps-desktop-result-actions > #gpsDesktopSavePhoto:disabled {opacity:.58;cursor:wait}
.gps-desktop-result-actions > #gpsDesktopNewPhoto:hover {filter:brightness(1.08)}
.gps-desktop-result-actions > #gpsDesktopSavePhoto svg,
.gps-desktop-result-actions > #gpsDesktopNewPhoto svg {
  width:21px;height:21px;flex:none;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
}
.gps-desktop-result-actions > #gpsDesktopSavePhoto b,
.gps-desktop-result-actions > #gpsDesktopNewPhoto b {font-size:14px;font-weight:800;white-space:normal}
.gps-desktop-result-actions > #gpsDesktopFullscreen:not([hidden]) {
  flex:0 0 42px;
  width:42px;
  min-height:42px;
  align-self:center;
}
.gps-desktop-result-actions > button:focus-visible {outline:3px solid #a48cf6;outline-offset:3px}
@media(max-width:430px){
 .gps-desktop-result-actions > #gpsDesktopSavePhoto,
 .gps-desktop-result-actions > #gpsDesktopNewPhoto {gap:5px;padding:9px 6px;min-height:46px}
 .gps-desktop-result-actions > #gpsDesktopSavePhoto b,
 .gps-desktop-result-actions > #gpsDesktopNewPhoto b {font-size:12px}
}
