.app-viewport .mobile-header { margin-bottom: 4px; }
.app-viewport .progressive-header { display:block!important;position:relative;height:48px;min-height:48px; }
.progressive-header .header-layer { position:absolute;inset:0 48px 0 0;display:flex;align-items:center;opacity:0;pointer-events:none;transition:opacity 280ms ease,translate 280ms ease;translate:0 -3px; }
.progressive-header .header-layer.is-visible { opacity:1;pointer-events:auto;translate:0 0; }
.progressive-header .header-shoot { inset:0;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;column-gap:8px; }
.progressive-header .header-tools { position:absolute;right:0;top:2px;width:44px;height:44px; }
.progressive-header .shoot-heading { height:44px;width:100%;font-size:19px;font-weight:600;color:#eee5ce;position:relative; }
.daily-transition { flex:none;position:relative;opacity:1;translate:0 0;transition:opacity 240ms ease,translate 240ms ease;pointer-events:none; }
.daily-transition.is-shooting { height:0;opacity:0;translate:0 -3px; }
@media(prefers-reduced-motion:reduce){.progressive-header .header-layer,.daily-transition{transition:none;translate:none;}}
.daily-bar { position: relative; inset: auto; z-index: auto; flex: none; justify-content: flex-start; flex-wrap: wrap; gap: 3px 12px; margin: 0 4px 12px; font-size: 11px; line-height: 1.6; pointer-events: none; }
.collection-rim { gap: 9px; padding: 0 2px; }
.collection-rim h3,.collection-progress,.collection-allworks { font-size: 14px; line-height: 1.3; font-weight: 500; }
.collection-allworks { padding: 4px 0; min-height: 36px; }
.collection-sticker { touch-action: none; }
.collection-sticker img { filter: none; opacity: 1; }
.artwork-library .artwork-library-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); columns: auto; gap: 16px; align-items: start; }
.library-column { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.artwork-library .library-artwork { display: flex; width: 100%; height: auto; min-height: 0; max-height: none; flex: none; margin: 0; min-width: 0; flex-direction: column; align-items: stretch; text-align: left; }
.artwork-library .library-artwork > * { flex: none; }
.library-original { position: relative; display: block; }
.library-original > img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.library-locked .library-original > img { filter: grayscale(1); }
.library-original .library-lock { position: absolute; inset: 0; display: grid; place-items: center; }
.artwork-library .library-artwork strong { font-size: 13px; line-height: 1.5; white-space: normal; }
.artwork-library .library-painter { font-size: 11px; line-height: 1.5; }
.shooting-experience .camera-crop video { inset: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; object-position: center; }
.shooting-experience .crop-reveal { inset: 0; width: 100%; height: 100%; clip-path: none !important; transform: none !important; }
.shooting-experience .camera-square { position: relative; perspective: none; }
.camera-optical-plane { position: absolute; inset: 3px; display: flex; align-items: center; justify-content: center; z-index: 2; opacity: 0; transform: none; }
.is-waiting .camera-optical-plane,.is-exiting .camera-optical-plane { visibility: hidden; pointer-events: none; }
.camera-optical-plane .camera-crop { transform: none; overflow: hidden; isolation: isolate; }
/* Every optical layer uses the same viewport, including on first camera playback. */
.camera-optical-plane .camera-crop > video,
.camera-optical-plane .camera-crop > .camera-preview,
.camera-optical-plane .camera-crop > .demo-camera,
.camera-optical-plane .camera-crop > .reference-overlay,
.camera-optical-plane .camera-crop > .camera-guides {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  min-width: 0; min-height: 0; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; transform: none; clip-path: none;
  object-fit: cover; object-position: center;
}
.has-photo .camera-optical-plane .camera-crop > :not(.crop-corner) { visibility: hidden; }
.camera-optical-plane .camera-crop > video { opacity: .01; pointer-events: none; object-fit: fill; z-index: 0; }
.camera-optical-plane .camera-preview { pointer-events: none; z-index: 1; }
.camera-optical-plane .demo-camera { z-index: 1; }
.camera-optical-plane .reference-overlay { z-index: 2; }
.camera-optical-plane .camera-guides { z-index: 3; }
.camera-optical-plane .camera-empty,.camera-optical-plane .demo-label { z-index: 4; }
.camera-decoder { position: fixed; left: 0; top: 0; width: 1px; height: 1px; min-width: 0; min-height: 0; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; opacity: .01; pointer-events: none; z-index: -1; object-fit: fill; transform: none !important; clip-path: none !important; }
.camera-optical-plane .center-seed { display: none; }
.startup-guide path,.startup-guide ellipse,.startup-guide line,.startup-guide polyline,.startup-guide rect { stroke: #f4cf7a; stroke-dasharray: 32 64; animation: startup-guide-flow 4s linear infinite; }
@keyframes startup-guide-flow { to { stroke-dashoffset: -192; } }
@media(prefers-reduced-motion:reduce){.startup-guide * { animation: none !important; }}
.shooting-experience[data-preview-settled=true] .frame-flipper { transform: none !important; transform-style: flat; will-change: auto; }
.shooting-experience[data-preview-settled=true] .camera-square { perspective: none; }
.shooting-experience.is-entered:not(.is-exiting)[data-preview-settled=true] .camera-optical-plane { opacity: 1 !important; visibility: visible; }
.shooting-experience[data-preview-settled=true] .frame-front { backface-visibility: visible; -webkit-backface-visibility: visible; }
.shooting-experience[data-preview-settled=true] .frame-back { visibility: hidden; }
.study-gallery { background: #080906; }
.shoot-heading-static { display: grid; place-items: center; width: 100%; height: 100%; }
/* The reference bay is independent of the camera chassis and image intrinsic sizes. */
.shooting-experience.is-waiting { top: calc(-1 * var(--home-info-height,0px)); }
.shooting-experience .shoot-lessons { padding: 10px 8px 10px 15px; }
.shooting-experience .art-anchor { width: auto; height: auto; min-width: 0; min-height: 0; max-width: none; max-height: none; }
.welcome-film { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; border: 0; margin: 0; padding: max(18px,env(safe-area-inset-top)) 20px max(18px,env(safe-area-inset-bottom)); background: #0b0e0a; color: #eee9df; }
.welcome-film[open] { display: grid; place-items: center; }
.welcome-film::backdrop { background: #080906; }
.welcome-film-content { width: min(100%,340px); }
.welcome-film h2 { font-size: 20px; line-height: 1.4; margin: 0 0 12px; text-align: center; }
.welcome-film img { display: block; width: auto; max-width: 100%; height: auto; margin: auto; max-height: calc(100dvh - 190px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); aspect-ratio: 9 / 16; object-fit: contain; background: #f5f7f5; }
.welcome-film-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.welcome-film-actions button { min-height: 44px; padding: 8px 18px; border-radius: 4px; color: #eee9df; background: #2b3028; font-size: 15px; }
.welcome-film-actions button:last-child { background: #d8c397; color: #181c15; }
@media(max-width:360px){.collection-rim { gap: 5px; }.collection-rim h3,.collection-progress,.collection-allworks { font-size: 12px; }}
