.photo-local-note { font-size: 10px; color: var(--muted); padding: 8px 12px; border: 1px solid var(--line); border-radius: 30px; }
.studio-layout { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #244c3c66; border-radius: 12px; overflow: hidden; }
.photo-stage { position: relative; padding: 52px 48px 24px; background: #dde7e1; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
#photo-preview { display: block; width: min(100%, 330px); height: auto; background: #fff9e8; box-shadow: 6px 9px 0 #244c3c16; transform: rotate(-3deg); touch-action: pan-y; transition: transform .25s; }
#photo-preview.has-photo { transform: none; cursor: grab; touch-action: none; }
#photo-preview.is-dragging { cursor: grabbing; }
#photo-preview:focus-visible { outline: 3px solid #d5653e; outline-offset: 8px; }
.studio-stamp { position: absolute; top: 24px; right: 23px; font-size: 8px; line-height: 1.6; letter-spacing: 1.2px; padding: 11px 12px; border: 1px solid #244c3c77; border-radius: 50%; transform: rotate(12deg); text-align: center; z-index: 1; pointer-events: none; }
.studio-stamp b { font-size: 16px; font-family: Georgia, serif; font-weight: 400; }
.studio-spark { font-size: 58px; color: #bb7350; position: absolute; bottom: 55px; left: 22px; pointer-events: none; }
.photo-stage-note { margin: 24px 0 0; font-size: 11px; color: var(--muted); letter-spacing: 1px; text-align: center; }
.photo-controls { padding: 43px 38px 30px; background: #fcfaf1; }
.photo-controls > .eyebrow { font-size: 9px; letter-spacing: 1.2px; margin-bottom: 12px; }
.photo-controls h3 { margin: 0 0 14px; font-size: 28px; letter-spacing: -.8px; }
.studio-description { font-size: 12px; line-height: 1.9; color: var(--muted); margin: 0 0 22px; }
.photo-pick { gap: 24px; cursor: pointer; position: relative; }
.photo-pick:focus-within { outline: 3px solid #d5653e; outline-offset: 5px; }
.photo-file-input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; opacity: 0; cursor: pointer; }
.photo-pick:has(.photo-file-input:focus-visible) { outline: 3px solid #d5653e; outline-offset: 5px; }
.photo-pick:has(.photo-file-input:disabled) { opacity: .6; cursor: wait; }
.photo-privacy { font-size: 10px; line-height: 1.8; color: var(--muted); margin: 12px 0 24px; }
.photo-frame-options { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.photo-frame-options legend, .photo-adjust > label, .photo-caption-label { display: block; font-size: 11px; letter-spacing: .3px; margin-bottom: 11px; font-weight: 600; }
.frame-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.frame-option { position: relative; cursor: pointer; display: flex; align-items: center; gap: 5px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 5px; font-size: 10px; min-height: 42px; }
.frame-option:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.frame-option:has(input:focus-visible) { outline: 3px solid #d5653e; outline-offset: 3px; }
.frame-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.frame-swatch { width: 14px; height: 18px; border: 1px solid #244c3c50; box-shadow: inset 0 -5px #fff7e1; }
.swatch-cream { background: #e7dfc8; }
.swatch-sea { background: #b7d0e7; }
.swatch-sunset { background: #e7a48b; }
.photo-adjust { margin-bottom: 22px; }
.photo-adjust > label { display: flex; justify-content: space-between; }
#photo-zoom { width: 100%; accent-color: var(--ink); min-height: 36px; margin: 0; cursor: pointer; }
.photo-adjust-note { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--muted); }
.photo-adjust-note button { background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; font-size: 10px; padding: 10px 0 10px 8px; min-height: 40px; }
.photo-caption-input { font: inherit; font-size: 16px; width: 100%; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: transparent; padding: 12px; min-height: 45px; }
.photo-caption-input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.photo-actions { display: flex; align-items: center; gap: 14px; margin-top: 23px; flex-wrap: wrap; }
.photo-actions .button { gap: 22px; }
.photo-clear { background: none; border: 0; font-size: 11px; color: var(--muted); padding: 10px 0; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.photo-status { font-size: 10px; color: var(--muted); line-height: 1.8; margin: 13px 0 0; min-height: 18px; }
.photo-result { margin-top: 25px; border: 1px solid #244c3c66; border-radius: 12px; padding: 35px 40px; background: #f1e8c6; display: grid; grid-template-columns: 1fr 240px; gap: 40px; align-items: center; }
.photo-result[hidden], .photo-share[hidden] { display: none; }
.photo-result .eyebrow { font-size: 9px; margin-bottom: 12px; }
.photo-result h3 { font-size: 28px; margin: 0 0 14px; }
.photo-result p { font-size: 12px; line-height: 1.9; color: var(--muted); }
.photo-result img { width: 100%; height: auto; display: block; box-shadow: 4px 6px 0 #244c3c16; -webkit-touch-callout: default; user-select: auto; }
.photo-result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.photo-result-actions .button { gap: 10px; }
.photo-share { background: transparent; }
@media (max-width: 1050px) {
  .photo-controls { padding: 34px 25px 25px; }
  .photo-controls h3 { font-size: 25px; }
  .photo-stage { padding: 65px 32px 30px; }
  .studio-spark { left: 10px; font-size: 43px; }
}
@media (max-width: 740px) {
  .photo-studio > .section-heading { display: block; }
  .photo-local-note { display: inline-block; margin-top: 15px; font-size: 9px; }
  .studio-layout { grid-template-columns: 1fr; }
  .photo-stage { padding: 50px 39px 23px; }
  #photo-preview { width: min(100%, 300px); }
  .studio-stamp { top: 15px; right: 13px; padding: 8px; font-size: 7px; }
  .studio-stamp b { font-size: 14px; }
  .studio-spark { bottom: 48px; font-size: 41px; }
  .photo-stage-note { font-size: 10px; margin-top: 22px; }
  .photo-controls { padding: 30px 24px 25px; }
  .photo-controls h3 { font-size: 26px; }
  .studio-description { font-size: 11px; }
  .photo-pick { display: flex; width: 100%; justify-content: space-between; min-height: 48px; }
  .photo-privacy { font-size: 9px; }
  .frame-choices { gap: 7px; }
  .frame-option { padding: 9px 8px; font-size: 10px; }
  .photo-actions .button { flex: 1; justify-content: space-between; min-height: 48px; }
  .photo-result { padding: 25px 24px; grid-template-columns: 1fr; gap: 22px; }
  .photo-result h3 { font-size: 25px; }
  .photo-result img { max-width: 300px; margin: 0 auto; grid-row: 2; }
  .photo-result p { font-size: 11px; }
}
