/* Foto 3x4 para imprimir (iPhotos web route). Everything scoped under .gs-foto-3x4 and painted with the page tokens
   (build.py writes them from content/_apps/iphotos.json), so the tool never repaints the page and follows any change of
   the app identity. Mobile first: photo, frame, light, sheet, download stacked. >= 1024 px: the frame editor on the left
   below the photo panel (steps 1-2 on the left, 3-4 and the download on the right). Shadows are black only. */
.gs-foto-3x4{--f34-bg:var(--surface,#14141c);--f34-bg2:var(--surface-2,#0e0e15);--f34-raised:var(--raised,#1b1b25);--f34-line:var(--line,rgba(255,255,255,.09));
  --f34-line2:var(--line-2,rgba(255,255,255,.17));--f34-ink:var(--ink,#ececf2);--f34-ink2:var(--ink-2,#c9c9d6);--f34-muted:var(--muted,#9a9aae);--f34-title:var(--title,#f6f6fa);
  --f34-acc:var(--accent,#ff6079);--f34-acc-rgb:var(--accent-rgb,255,96,121);--f34-on:var(--on-accent,#0b0b10);
  position:relative;box-sizing:border-box;width:100%;min-width:0;margin:0 0 24px;color:var(--f34-ink);font:16px/1.45 var(--sans,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif)}
.gs-foto-3x4 *{box-sizing:border-box}
.gs-foto-3x4 [hidden]{display:none!important}
.gs-foto-3x4 p{margin:0}
.gs-foto-3x4 .f34-loading,.gs-foto-3x4 .f34-noscript{color:var(--f34-muted);padding:18px 4px}
.gs-foto-3x4 button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.gs-foto-3x4 button:disabled,.gs-foto-3x4 input:disabled{opacity:.45;cursor:default}
.gs-foto-3x4 :focus-visible{outline:3px solid var(--f34-acc);outline-offset:2px}
.gs-foto-3x4 .f34-file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.gs-foto-3x4 .f34-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* layout: one column, in task order */
.gs-foto-3x4 .f34-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;grid-template-areas:"photo" "frame" "adj" "sheet" "exp"}
.gs-foto-3x4 .f34-a-photo{grid-area:photo}
.gs-foto-3x4 .f34-a-frame{grid-area:frame}
.gs-foto-3x4 .f34-a-adj{grid-area:adj}
.gs-foto-3x4 .f34-a-sheet{grid-area:sheet}
.gs-foto-3x4 .f34-a-exp{grid-area:exp}
.gs-foto-3x4 .f34-panel{background:var(--f34-bg);border:1px solid var(--f34-line);border-radius:18px;padding:14px;min-width:0}
.gs-foto-3x4 .f34-h{margin:0 0 10px;font:800 15px/1.25 var(--head,inherit);letter-spacing:.01em;color:var(--f34-title)}

/* buttons */
.gs-foto-3x4 .f34-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 10px}
.gs-foto-3x4 .f34-row-tight{margin:4px 0 0}
.gs-foto-3x4 .f34-btn{min-height:48px;padding:0 18px;border-radius:13px;border:1px solid transparent;font-weight:800;font-size:15.5px;line-height:1.2}
.gs-foto-3x4 .f34-primary{background:var(--f34-acc);color:var(--f34-on);box-shadow:0 6px 18px rgba(0,0,0,.4)}
.gs-foto-3x4 .f34-primary:hover:not(:disabled){filter:brightness(1.06)}
.gs-foto-3x4 .f34-sec{background:var(--f34-raised);border-color:var(--f34-line2);color:var(--f34-ink)}
.gs-foto-3x4 .f34-ghost{background:transparent;border-color:var(--f34-line2);color:var(--f34-ink2)}
.gs-foto-3x4 .f34-sm{min-height:44px;font-size:14px;padding:0 14px;font-weight:700}
.gs-foto-3x4 .f34-wide{flex:1 1 170px}
.gs-foto-3x4 .f34-status{font-size:14px;color:var(--f34-ink2);min-height:1.3em;margin:2px 2px 8px}
.gs-foto-3x4 .f34-status:empty{display:none}
.gs-foto-3x4 .f34-tip,.gs-foto-3x4 .f34-note{font-size:13.5px;color:var(--f34-muted);margin-top:8px}
.gs-foto-3x4 .f34-privacy{font-size:13.5px;color:var(--f34-ink2);margin-top:8px;padding-left:10px;border-left:3px solid var(--f34-acc)}
.gs-foto-3x4 .f34-official{font-size:13px;color:var(--f34-muted);margin-top:10px;padding:10px 12px;border-radius:12px;background:var(--f34-bg2);border:1px solid var(--f34-line)}

/* editor */
.gs-foto-3x4 .f34-stage{position:relative;width:100%;max-width:520px;margin:0 auto;min-height:250px;border-radius:14px;overflow:hidden;background:var(--f34-bg2);border:1px solid var(--f34-line)}
.gs-foto-3x4 .f34-stage.f34-dropping{border-color:var(--f34-acc);border-style:dashed}
.gs-foto-3x4 .f34-cv{position:absolute;left:50%;top:0;transform:translateX(-50%);display:block}
.gs-foto-3x4 .f34-stage.f34-live .f34-ov{cursor:grab;touch-action:none}
.gs-foto-3x4 .f34-stage.f34-live .f34-ov:active{cursor:grabbing}
.gs-foto-3x4 .f34-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;border:0;
  background:radial-gradient(110% 80% at 50% 0%,rgba(var(--f34-acc-rgb),.14),transparent 62%),var(--f34-bg2);color:var(--f34-ink);font-weight:800;font-size:16px;padding:16px;text-align:center}
.gs-foto-3x4 .f34-empty::before{content:"";width:42%;max-width:170px;aspect-ratio:3/4;border:2px dashed var(--f34-line2);border-radius:8px;margin-bottom:6px}
.gs-foto-3x4 .f34-plus{font-size:30px;line-height:1;color:var(--f34-acc)}
.gs-foto-3x4 .f34-drop{font-size:13px;font-weight:600;color:var(--f34-muted)}
.gs-foto-3x4 .f34-help{font-size:13.5px;color:var(--f34-ink2);margin:10px 2px 6px;text-align:center}

/* sliders + checks */
.gs-foto-3x4 .f34-slider{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 10px;align-items:center;margin-top:6px}
.gs-foto-3x4 .f34-label{font-size:14px;font-weight:700;color:var(--f34-ink2)}
.gs-foto-3x4 .f34-val{font-size:13.5px;font-weight:700;color:var(--f34-title);font-variant-numeric:tabular-nums}
.gs-foto-3x4 .f34-range{grid-column:1 / -1;width:100%;min-height:40px;accent-color:var(--f34-acc);margin:0}
.gs-foto-3x4 .f34-check{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:14px;font-weight:700;color:var(--f34-ink2);cursor:pointer}
.gs-foto-3x4 .f34-check input{width:20px;height:20px;accent-color:var(--f34-acc);margin:0}

/* light + result */
.gs-foto-3x4 .f34-adj{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}
.gs-foto-3x4 .f34-adjctl{min-width:0}
.gs-foto-3x4 .f34-adjctl .f34-btn{margin-top:8px}
.gs-foto-3x4 .f34-result{margin:4px 0 0;display:grid;gap:6px;justify-items:center;width:112px}
.gs-foto-3x4 .f34-resultcv{display:block;width:100px;height:auto;aspect-ratio:3/4;border-radius:3px;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.45)}
.gs-foto-3x4 .f34-result figcaption{display:grid;text-align:center;line-height:1.25}
.gs-foto-3x4 .f34-result strong{font-size:12.5px;color:var(--f34-title)}
.gs-foto-3x4 .f34-result span{font-size:11px;color:var(--f34-muted)}

/* sheets */
.gs-foto-3x4 .f34-sheets{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.gs-foto-3x4 .f34-chip{display:grid;gap:2px;min-height:52px;padding:8px 12px;border-radius:12px;border:1px solid var(--f34-line2);background:var(--f34-bg2);color:var(--f34-ink);text-align:left}
.gs-foto-3x4 .f34-chip strong{font-size:14.5px}
.gs-foto-3x4 .f34-chip span{font-size:12px;font-weight:600;color:var(--f34-muted)}
.gs-foto-3x4 .f34-chip.on{border-color:var(--f34-acc);background:rgba(var(--f34-acc-rgb),.14);box-shadow:inset 0 0 0 1px var(--f34-acc)}
.gs-foto-3x4 .f34-sheetwrap{display:flex;justify-content:center;padding:12px;border-radius:14px;background:var(--f34-bg2);border:1px solid var(--f34-line);margin-top:4px}
.gs-foto-3x4 .f34-sheetcv{display:block;max-width:100%;height:auto;background:#fff;border-radius:2px;box-shadow:0 8px 24px rgba(0,0,0,.5)}

@media (max-width:420px){
  .gs-foto-3x4 .f34-panel{padding:12px}
  .gs-foto-3x4 .f34-result{width:96px}
  .gs-foto-3x4 .f34-resultcv{width:86px}
}
/* desktop: photo + frame editor on the left, light / sheet / download on the right */
@media (min-width:1024px){
  .gs-foto-3x4 .f34-grid{grid-template-columns:minmax(0,1.05fr) minmax(320px,1fr);grid-template-areas:"photo adj" "frame sheet" "frame exp";gap:16px 22px;align-items:start}
}
@media (prefers-reduced-motion:reduce){.gs-foto-3x4 *{transition:none!important}}
