.outro-photo{margin:0 auto 8px;text-align:center}
#outro-photo{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;max-width:100%;padding:10px 20px;border:1px solid #aab6a0;border-radius:6px;background:#fffef9ed;color:#344238;font:inherit;font-size:14px;pointer-events:auto}
#outro-photo svg{flex-shrink:0}#outro-photo:disabled{opacity:.5;pointer-events:none}
#outro-photo:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.photo-caption{font-size:11px;color:#687462;margin:5px 0 0}
#outro-photo-status{position:absolute;left:0;right:0;bottom:100%;margin:0;font-size:12px;color:#344238;pointer-events:auto}
#outro-photo-status:not(:empty){background:#fffffff2;border-radius:6px;padding:6px}
#outro-photo-status button{min-height:44px}
.outro-action .outro-gesture{display:block;font-size:11px;line-height:1.5;margin:7px 0 0;letter-spacing:0}
.outro-action .outro-gesture.photo-rotate-large{font-size:15px;padding:9px 14px;background:#ffffffe0;color:#344238;border-radius:8px;max-width:460px;margin:7px auto 0}
.outro-night .photo-caption{color:#bac5b4}
@media(max-width:850px){.outro-active .outro-equipment{bottom:278px}.outro-active:has(.photo-rotate-large) .outro-equipment{bottom:305px}.outro-action .outro-gesture.photo-rotate-large{font-size:14px}#outro-photo{font-size:14px}.outro-photo{margin-bottom:7px}}
@media(max-height:600px) and (max-width:850px) and (orientation:landscape){.outro-photo{margin:0}.outro-action .outro-gesture{flex-basis:100%;margin:0}.photo-caption{margin:2px 0 0}.outro-active .outro-equipment{bottom:190px}}

/* Keep the photo beside the two actions on desktop, above them on phones. */
.outro-buttons{align-items:flex-start}
.outro-photo{position:relative;margin:0;flex:0 0 auto}
#outro-photo{min-height:48px;font-size:12px;padding:10px 16px;white-space:nowrap}
@media(min-width:851px){.outro-buttons{flex-wrap:nowrap}.outro-buttons>button,.outro-photo{min-width:0}.outro-action .outro-gesture.photo-rotate-large{font-size:11px;padding:0;background:none}}
@media(max-width:850px){
 .outro-buttons{display:grid;grid-template-columns:auto auto;justify-content:center}
 .outro-photo{grid-column:1 / -1;grid-row:1;justify-self:center;margin:0}
 #outro-photo{min-height:40px;height:40px;font-size:12px;padding:8px 12px}
 .photo-caption{display:none}
}

@media(min-width:851px) and (max-width:1100px){.outro-action{left:16px;right:16px}.outro-buttons .outro-contact{gap:14px;padding:10px 16px}}

/* Photo feedback is an overlay, never part of the exported canvas. */
.photo-flash{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none}
.photo-preview{position:fixed;left:20px;bottom:20px;width:22vw;margin:0;z-index:1000;pointer-events:none;animation:photo-preview-in 250ms ease-out both,photo-preview-out 200ms ease-in 2250ms forwards}
.photo-preview img{display:block;width:100%;height:auto;border:1px solid #fff;border-radius:8px;box-shadow:0 4px 18px #0003}
.photo-preview figcaption{width:max-content;max-width:90vw;margin:6px auto 0;padding:3px 7px;border-radius:4px;background:#fffffff0;color:#344238;text-align:center;font-size:11px;line-height:1.4}
@keyframes photo-preview-in{from{opacity:0;transform:translateY(12px) scale(1.12)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes photo-preview-out{to{opacity:0}}
@media(max-width:850px){.photo-preview{left:50%;translate:-50% 0;bottom:var(--photo-preview-bottom,180px)}}
@media(prefers-reduced-motion:reduce){.photo-flash{display:none}.photo-preview{animation:none}}

.photo-preview-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;width:max-content;max-width:min(440px,calc(100vw - 40px));position:relative;margin-top:8px;color:#727071}
.photo-preview-chip{border:1px solid currentColor;border-radius:7px;padding:4px 8px;font-size:12px;font-weight:300;line-height:1.4;letter-spacing:normal;background:transparent;animation:photo-chip-in 180ms ease-out var(--chip-delay) both}
.outro-night .photo-preview-chips{color:#fff}
@keyframes photo-chip-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.photo-preview-chip{animation:none}}
@media(max-width:850px){.photo-preview-chips{left:50%;transform:translateX(-50%);max-width:90vw}}
