/* One camera/review surface; no second camera panel beneath the photo. */
.completion-photo-page{background:#090909;color:#f4f4f4;color-scheme:dark}.completion-photo-page .photo-page-header{padding:calc(12px + env(safe-area-inset-top)) 20px 12px}.completion-photo-page .photo-page-scroll{padding:0 16px}.completion-photo-page [hidden]{display:none!important}.completion-photo-page[data-photo-stage=capture] .photo-page-scroll{overflow:hidden;display:flex;flex-direction:column}.completion-photo-page[data-photo-stage=capture] .photo-review-stage canvas,.completion-photo-page[data-photo-stage=capture] [data-change],.completion-photo-page[data-photo-stage=capture] .photo-layout-controls,.completion-photo-page[data-photo-stage=capture] .photo-page-scroll>p,.completion-photo-page[data-photo-stage=capture] .photo-page-dock,.completion-photo-page[data-photo-stage=capture] .photo-review-choices{display:none}.completion-photo-page:not([data-photo-stage=capture]) .completion-photo{display:none}.completion-photo-page .completion-photo{margin:0;padding:0;background:none;border-radius:0;flex:1;min-height:0;display:flex;flex-direction:column}.photo-capture-tools{display:flex;align-items:center;gap:8px;padding:8px 0 12px;font-size:12px}.photo-saved-badge{color:#60dda3;margin-right:auto}.photo-capture-tools button,.photo-capture-tools select{font:inherit;background:#202020;border:0;border-radius:18px;color:#eee;padding:8px;min-height:36px;width:auto}.photo-capture-tools label{display:flex;align-items:center;gap:4px;white-space:nowrap;margin:0}.photo-camera-preview{min-height:0;flex:1;overflow:hidden;border-radius:16px;background:#151515;display:grid;place-items:center}.photo-camera-preview video{display:block;width:100%;height:100%;object-fit:contain;position:absolute;inset:0}.photo-camera-preview [data-open]{position:relative;z-index:1}.photo-countdown{pointer-events:none;font-weight:700;font-size:clamp(65px,20vw,115px)}.photo-screen-light{position:absolute;inset:0;z-index:3;background:white}.photo-captured{bottom:20px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:15px;border-radius:30px}.completion-photo [data-status]{text-align:center;font-size:13px;line-height:1.4;margin:10px 0;min-height:2.8em}.photo-capture-dock{display:flex;align-items:center;justify-content:space-around;gap:16px;padding:4px 16px calc(12px + env(safe-area-inset-bottom))}.photo-capture-dock>button{background:none;border:0;color:white;font-size:13px;min-width:64px}.photo-capture-dock .photo-shutter{width:64px;height:64px;min-width:64px;min-height:64px;border:4px solid #090909;outline:2px solid white;border-radius:50%;background:white;padding:0}.photo-capture-dock .photo-shutter:disabled{opacity:.35}.completion-photo>[data-return],.completion-photo>[data-frame]{font-size:12px;margin:0 auto 10px;min-height:30px}.completion-photo-page:not([data-photo-stage=capture]) .photo-review-stage canvas{width:auto;max-width:100%;height:auto;aspect-ratio:9/16;object-fit:contain}.photo-review-choices{display:flex;justify-content:center;gap:8px;margin:8px 0}.photo-review-choices:has(>button:only-child){display:none}.photo-review-choices button{padding:0;border:2px solid transparent;background:#181818;border-radius:7px;overflow:hidden}.photo-review-choices button[aria-pressed=true]{border-color:#24b5ff}.completion-photo-page .photo-review-choices canvas{width:38px;height:50px;max-height:50px;margin:0;border-radius:0;object-fit:cover}.photo-layout-controls{justify-content:center}.photo-page-dock{flex-shrink:0;max-height:46dvh;overflow:auto}.photo-page-dock>.primary{color:#071820}.photo-page-dock [data-save-done]{margin-top:10px}.photo-page-dock [role=status]{line-height:1.4}.photo-page-scroll>p{font-size:11px;margin:7px;text-align:center}.photo-posted .photo-review-choices{display:none}.completion-photo-page[data-photo-stage=posted] .photo-review-stage canvas{height:auto}.photo-page-header button{color:#eee}
.photo-social-actions{display:flex;align-items:center;gap:5px;margin:8px 0;flex-wrap:wrap}.photo-social-actions button{display:grid;place-items:center;padding:10px;background:none;border:0;color:var(--refresh-text,#eee);min-width:44px;min-height:44px}.photo-social-actions svg{width:24px;height:24px}.photo-social-actions [aria-pressed=true],.comment-heart[aria-pressed=true]{color:#ff6269}.photo-social-actions [aria-pressed=true] svg,.comment-heart[aria-pressed=true] svg{fill:currentColor}.photo-social-actions [data-like-count]{margin-right:14px}.photo-social-actions [data-social-status]{font-size:12px;flex-basis:100%;color:#aaa}.photo-liked [data-like-photo] svg{animation:photo-heart-pop .3s ease-out}.photo-comments-sheet{width:min(100%,600px)!important;max-width:600px!important;max-height:80dvh!important;height:80dvh;padding:20px 20px calc(14px + env(safe-area-inset-bottom))!important;margin:auto auto 0!important;inset:auto 0 0!important;border-radius:24px 24px 0 0!important}.photo-comments-sheet[open]{display:flex;flex-direction:column}.photo-comments-sheet>.spread{flex-shrink:0}.photo-comments-sheet h2{font-size:20px}.photo-comments-list{flex:1;overflow:auto;min-height:0;overscroll-behavior:contain}.photo-comment{display:flex;gap:12px;padding:16px 0;border-bottom:1px solid #292929}.photo-comment>div{flex:1;min-width:0}.photo-comment strong{font-size:14px}.photo-comment p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0;line-height:1.45;font-size:14px}.photo-comment small{color:#999;font-size:11px}.photo-comment [data-delete-comment]{font-size:11px;min-height:30px;padding:4px 10px}.comment-heart{border:0;background:none;padding:8px;min-width:44px;display:flex;flex-direction:column;align-items:center;gap:6px;align-self:flex-start}.comment-heart svg{width:19px;height:19px}.photo-comment-compose{display:flex;align-items:end;gap:10px;border-top:1px solid #292929;padding-top:12px;flex-shrink:0}.photo-comment-compose textarea{margin:0;flex:1;resize:vertical;min-height:44px;max-height:110px;border-radius:20px;font-size:16px;padding:12px 15px}.photo-comment-compose button{border:0;border-radius:50%;width:44px;height:44px;min-width:44px;display:grid;place-items:center;background:#eee;color:#111;padding:10px}.photo-comments-sheet [role=status]{font-size:12px;margin:7px 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes photo-heart-pop{50%{transform:scale(1.3)}}@media(prefers-reduced-motion:reduce){.photo-liked [data-like-photo] svg{animation:none}}@media(max-height:680px){.photo-capture-tools{padding-bottom:6px}.photo-capture-dock .photo-shutter{width:52px;height:52px;min-width:52px;min-height:52px}.completion-photo [data-status]{margin:6px 0;min-height:1.4em}.completion-photo-page:not([data-photo-stage=capture]) .photo-review-stage canvas{height:auto}.photo-page-dock{padding-top:8px}}
#profile-view .pa-photo-grid{display:block}.profile-photo-post{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--pa-line,#292929)}.profile-photo-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.profile-photo-heading small{color:var(--pa-muted,#aaa);font-size:12px}.profile-photo-heading button{padding:6px 10px;border:0;background:none;font-size:20px;min-height:44px}.profile-photo-post>img{width:100%;max-height:72dvh;object-fit:contain;display:block;background:#111;border-radius:10px}.profile-photo-post>p{font-size:14px;margin:6px 0;overflow-wrap:anywhere}

/* Approved camera layout: compact toolbar, uncropped view and centered shutter. */
#workout-card-dialog{box-sizing:border-box;max-height:100dvh;overflow:hidden}
#workout-card-dialog .photo-page-header{display:grid;grid-template-columns:64px minmax(0,1fr) 64px;align-items:center;gap:4px;flex-shrink:0;min-height:48px;padding:env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left))}
#workout-card-dialog .photo-page-header h2{text-align:center;line-height:1.25;font-size:17px;font-weight:600;letter-spacing:-.25px;margin:0;outline:none}
#workout-card-dialog .photo-page-header button{justify-self:start;text-align:center;min-height:44px;margin:0;padding:0 10px;font-size:15px}
#workout-card-dialog button:focus:not(:focus-visible){outline:none}
#workout-card-dialog .photo-page-scroll{padding:0;min-height:0;display:flex;flex-direction:column}
#workout-card-dialog[data-photo-stage=capture] .completion-photo{position:relative;isolation:isolate;min-height:0}
#workout-card-dialog[data-photo-stage=capture] .photo-camera-preview{position:relative;inset:auto;flex:1;min-height:0;border-radius:0;background:#111}
#workout-card-dialog .photo-camera-preview video{object-fit:contain;opacity:0}
#workout-card-dialog .photo-camera-preview .photo-live-preview{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;aspect-ratio:auto;object-fit:fill;transform:none;filter:none;border-radius:0;margin:0;pointer-events:none;background:#111}
#workout-card-dialog .completion-photo svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#workout-card-dialog .photo-capture-tools{position:relative;z-index:4;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:6px;height:44px;padding:0 max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left));background:#090909;flex-shrink:0}
#workout-card-dialog .photo-capture-tools>button{display:flex;align-items:center;gap:7px;justify-self:start;box-sizing:border-box;background:none;border:0;border-radius:8px;height:44px;min-height:44px;min-width:44px;width:auto;margin:0;line-height:normal;padding:0 4px;font-size:12px;font-weight:400;color:#d9d9d9}
#workout-card-dialog .photo-capture-tools>[data-timer-open]{justify-self:end}
#workout-card-dialog .photo-capture-tools>button svg{width:21px;height:21px}
#workout-card-dialog .photo-capture-tools>button[aria-pressed=true],#workout-card-dialog .photo-tool-on{color:#56dca4}
#workout-card-dialog .photo-saved-badge{display:flex;gap:4px;align-items:center;justify-content:center;white-space:nowrap;font-size:11px;color:#72c8a3;margin:0;text-shadow:none}
#workout-card-dialog .photo-saved-badge svg{width:13px;height:13px}
#workout-card-dialog .photo-timer-options{position:absolute;right:16px;top:42px;display:flex;gap:3px;background:#242424;border:1px solid #454545;padding:6px;border-radius:15px;box-shadow:0 8px 30px #0007}
#workout-card-dialog .photo-timer-options button{height:44px;min-width:44px;min-height:44px;width:auto;margin:0;padding:8px;border:0;border-radius:9px;background:none;font-size:13px}
#workout-card-dialog .photo-timer-options button[aria-pressed=true]{background:#eee;color:#111}
#workout-card-dialog .completion-photo [data-status]{position:absolute;bottom:0;left:0;right:0;z-index:2;margin:0;padding:14px 16px;min-height:0;background:linear-gradient(transparent,#000b);color:white;text-shadow:0 1px 3px #000;pointer-events:none;font-size:13px}
#workout-card-dialog .completion-photo [data-status]:empty{display:none}
#workout-card-dialog .photo-captured{left:50%;bottom:52px;transform:translateX(-50%)}
#workout-card-dialog .photo-capture-dock{display:grid;grid-template-columns:minmax(0,1fr) 80px minmax(0,1fr);align-items:center;justify-items:center;gap:12px;position:relative;z-index:2;background:#090909;padding:15px max(25px,env(safe-area-inset-right)) 5px max(25px,env(safe-area-inset-left));flex-shrink:0}
#workout-card-dialog .photo-capture-dock>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:none;border:0;min-width:64px;min-height:72px;width:auto;margin:0;padding:4px 10px;text-align:center;justify-self:center;font-size:11px;font-weight:400;line-height:1.3;color:#c6c6c6}
#workout-card-dialog .photo-action-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#212121;color:#eee}
#workout-card-dialog [data-upload] .photo-action-icon{border-radius:9px}
#workout-card-dialog .photo-capture-dock .photo-shutter{width:72px;height:72px;min-width:72px;min-height:72px;border-radius:50%;border:3px solid #f8f8f8;background:#fff;box-shadow:inset 0 0 0 4px #090909;outline:none;padding:0;transition:transform .15s}
#workout-card-dialog .photo-shutter:focus-visible{outline:2px solid #24b5ff;outline-offset:4px}
#workout-card-dialog .photo-shutter:active{transform:scale(.93)}
#workout-card-dialog .photo-capture-secondary{position:relative;z-index:2;display:flex;flex-wrap:wrap;justify-content:center;gap:4px;background:#090909;padding:0 max(16px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));flex-shrink:0}
#workout-card-dialog .photo-capture-secondary button{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;min-width:0;min-height:44px;padding:10px 12px;margin:0;background:none;border:0;font-size:12px;font-weight:400;line-height:1.4;text-align:center;white-space:normal;overflow-wrap:anywhere;color:#aaa}
#workout-card-dialog .photo-capture-secondary svg{width:16px;height:16px}
#workout-card-dialog .photo-review-stage{flex:1;min-height:0;display:grid;grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;overflow:hidden;background:#090909}
#workout-card-dialog:not([data-photo-stage=capture]) .photo-review-stage canvas{display:block;width:auto;height:auto;max-width:100%;max-height:100%;aspect-ratio:9/16;object-fit:contain;border-radius:0;margin:0}
#workout-card-dialog .photo-review-choices,#workout-card-dialog .photo-review-actions,#workout-card-dialog .photo-design-options{flex-shrink:0}
#workout-card-dialog[data-photo-stage=capture] .photo-review-stage{display:none}
#workout-card-dialog[data-photo-stage=review] .photo-page-scroll{overflow:hidden}
#workout-card-dialog .photo-design-options[open]{max-height:30dvh;overflow:auto}
@media(max-height:680px){#workout-card-dialog .photo-capture-dock{padding-top:10px}#workout-card-dialog .photo-capture-dock .photo-shutter{width:60px;height:60px;min-width:60px;min-height:60px}#workout-card-dialog .photo-capture-dock>button{min-height:60px}#workout-card-dialog .photo-capture-secondary{padding-bottom:calc(6px + env(safe-area-inset-bottom))}}
/* Review keeps editing, audience and copy actions distinct from the single Post action. */
#workout-card-dialog .photo-review-actions{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px max(12px,env(safe-area-inset-right)) 4px max(12px,env(safe-area-inset-left))}
#workout-card-dialog .photo-review-actions>button,#workout-card-dialog .photo-design-options>summary{display:flex;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;min-width:0;min-height:44px;margin:0;padding:8px 4px;border:0;border-radius:10px;background:none;color:#ddd;font-size:13px;font-weight:500;line-height:1.25;cursor:pointer;list-style:none}
#workout-card-dialog .photo-design-options{position:static;max-height:none;overflow:visible;padding:0;margin:0;border:0}
#workout-card-dialog .photo-design-options>summary::-webkit-details-marker{display:none}
#workout-card-dialog .photo-design-options[open]>summary{background:#202020;color:white}
#workout-card-dialog .photo-style-panel{position:absolute;z-index:5;bottom:calc(100% + 4px);left:16px;right:16px;padding:8px 12px 12px;border:1px solid #393939;border-radius:16px;background:#202020;box-shadow:0 8px 30px #0009}
#workout-card-dialog .photo-style-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;font-weight:600}
#workout-card-dialog .photo-style-heading button{display:grid;place-items:center;min-width:44px;min-height:44px;margin:0;padding:10px;border:0;background:none;color:#ccc}
#workout-card-dialog .photo-layout-controls{display:grid;gap:8px}
#workout-card-dialog .photo-layout-controls>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;background:#111;padding:3px}
#workout-card-dialog .photo-layout-controls button{min-height:44px;min-width:0;margin:0;font-size:13px}
#workout-card-dialog .photo-style-panel p{margin:10px 0 0;font-size:11px;text-align:center;color:#aaa}
#workout-card-dialog .photo-review-actions svg,#workout-card-dialog .photo-page-dock svg{display:block;width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#workout-card-dialog .photo-page-dock{padding:10px max(16px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));max-height:48dvh;background:#090909;border-top:1px solid #242424}
#workout-card-dialog .photo-audience{display:flex;align-items:center;gap:10px;position:relative;height:44px;box-sizing:border-box;margin:0 0 8px;padding:0 12px;border:1px solid #303030;border-radius:12px;color:#bbb;background:#171717}
#workout-card-dialog .photo-audience select{appearance:none;-webkit-appearance:none;flex:1;min-width:0;height:100%;margin:0;padding:0;border:0;border-radius:0;background:none;color:#eee;font-size:16px;line-height:1.2;cursor:pointer}
#workout-card-dialog .photo-audience svg{pointer-events:none}
#workout-card-dialog .photo-page-dock>.primary{display:block;min-height:48px;margin:0;padding:12px 16px;border:0;border-radius:12px;font-size:16px;font-weight:650;line-height:1.25;text-align:center;background:#19b0ee;color:#061820}
#workout-card-dialog .photo-copy-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0 0}
#workout-card-dialog .photo-copy-actions button{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:44px;margin:0;padding:10px;border:0;border-radius:12px;background:#1c1c1c;color:#e5e5e5;font-size:14px;font-weight:500;line-height:1.25}
#workout-card-dialog .photo-page-dock [role=status]{margin:8px 0 0;text-align:center;color:#bbb;font-size:12px;line-height:1.4}
#workout-card-dialog .photo-page-dock [role=status]:empty{display:none}
#workout-card-dialog .photo-publish-note:not(.sr-only){font-size:13px;line-height:1.4;margin:8px 0}
#workout-card-dialog .photo-post-success h3{font-size:19px;margin:0 0 8px;text-align:center}
#workout-card-dialog .photo-post-success p{font-size:13px;margin:8px 0;text-align:center;color:#bbb}
#workout-card-dialog .photo-post-success button{min-height:44px;margin:5px 0;border-radius:12px;text-align:center}
#workout-card-dialog[data-photo-stage=capture] .photo-review-actions,#workout-card-dialog[data-photo-stage=posted] .photo-review-actions [data-change],#workout-card-dialog[data-photo-stage=posted] .photo-design-options{display:none}
#workout-card-dialog[data-photo-stage=posted] .photo-review-actions{display:flex;justify-content:center}
.completion-photo-enlarged{box-sizing:border-box;position:fixed;inset:0;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:#090909;color:white;overflow:hidden}
.completion-photo-enlarged[open]{display:flex;flex-direction:column}
.completion-photo-enlarged header{display:flex;justify-content:space-between;flex-shrink:0;padding:calc(8px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));background:#090909}
.completion-photo-enlarged header button{min-height:44px;padding:8px 16px;border:0;background:#222;color:white}
.photo-zoom-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding-bottom:env(safe-area-inset-bottom)}
.completion-photo-enlarged canvas{display:block;width:100%;max-width:none;height:auto;margin:0 auto;border-radius:0;touch-action:pan-x pan-y pinch-zoom}
.completion-photo-enlarged.is-zoomed canvas{width:200%;margin:0}
@media(orientation:landscape){.completion-photo-enlarged:not(.is-zoomed) canvas{height:100%;width:auto;max-width:100%;object-fit:contain}}
