:root { color-scheme: light; --text: #203e33; --mobile-panel: 306px; }
html, body { background: #e7ece7; }
body .mirror-shell { width: 100%; max-width: 540px; height: 100dvh; inset: 0; margin: auto; background: #e7ece7; }
.experience-header, .experience-footer, .storefront-invitation, .gesture-guides, .mirror-hint, .hand-cursor { display: none !important; }
body .mirror-shell .viewer-stage { inset: 0 0 var(--mobile-panel); width: 100%; height: auto; transform: none; border-radius: 0; background: #e7ece7; }
.mobile-logo { position: absolute; z-index: 20; top: max(16px, env(safe-area-inset-top)); left: 18px; width: 94px; height: auto; opacity: .65; pointer-events: none; }
.mobile-dock { position: absolute; z-index: 25; bottom: 0; left: 0; right: 0; height: var(--mobile-panel); padding: 20px 16px max(12px, env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: #fff; box-shadow: 0 -6px 28px #183b2810; display: flex; flex-direction: column; gap: 10px; }
.mobile-dock h1 { font-size: 18px; line-height: 1.25; letter-spacing: -.5px; font-weight: 600; margin: 0; }
.mobile-selection { position: relative; flex: 1; min-height: 0; padding: 0 28px; }
body .mobile-dock .carousel-panel { position: static; width: 100%; height: 100%; padding: 0; transform: none; gap: 6px; }
.mobile-dock .carousel-caption { font-size: 11px; line-height: 16px; padding: 0; background: none; flex-basis: 16px; color: #61756a; }
.mobile-dock #modelLoop { font-size: 10px; letter-spacing: 0; }
body .mobile-dock .lens-card:not(.is-active) .lens-name { font-size: 10px; line-height: 1.25; }
body .mobile-dock .carousel-track { grid-template-columns: 1fr 1.35fr 1fr; gap: 6px; align-items: start; }
body .mobile-dock .lens-card, body .mobile-dock .lens-card:not(.is-active), body .mobile-dock .lens-card.is-active { height: 100%; padding: 4px; border: 1px solid transparent; border-radius: 12px; transform: none; background: #f3f5f2; box-shadow: none; gap: 4px; }
body .mobile-dock .lens-card.is-active { border-color: #809d89; background: #edf2ec; }
body .mobile-dock .lens-card, body .mobile-dock .lens-card.is-active { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
body .mobile-dock .lens-card .lens-meta { display: block; min-width: 0; padding: 0 2px; text-align: center; }
body .mobile-dock .lens-card .lens-meta > div { min-width: 0; }
body .mobile-dock .lens-card .lens-name { font-size: 11px; line-height: 1.25; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
body .mobile-dock .lens-card.is-active .lens-name { font-size: 13px; font-weight: 650; }
body .mobile-dock .lens-variant, .mobile-dock .gallery-badge, .mobile-dock .gallery-controls { display: none; }
body .mobile-dock .gesture-zone { position: absolute; top: 48px; bottom: auto; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid #e0e7e1; border-radius: 50%; background: #fff; color: #203e33; transform: none; box-shadow: none; display: grid; place-items: center; z-index: 5; }
body .mobile-dock .gesture-left { left: -12px; right: auto; }
body .mobile-dock .gesture-right { right: -12px; left: auto; }
.mobile-dock .gesture-copy, .mobile-dock .gesture-progress { display: none; }
body .mobile-dock .gesture-icon { width: 18px; height: 18px; }
body .mobile-dock .gesture-icon img { width: 18px; height: 18px; }
.mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-link { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 8px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid #234738; border-radius: 30px; color: #234738; }
.mobile-link:first-child { background: #234738; color: white; }
.mobile-link[aria-disabled="true"] { opacity: .45; cursor: default; }
.mobile-link img, .mobile-link .qr-fallback { display: none !important; }
body .mobile-dock .status-pill { position: static; transform: none; margin: 0; min-height: 16px; padding: 0; max-width: 100%; background: none; border: 0; font-size: 10px; line-height: 16px; text-align: center; color: #61756a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: none; }
body .camera-zoom-controls { top: max(12px, env(safe-area-inset-top)); right: 12px; left: auto; }
body .camera-zoom-controls > summary { width: 44px; height: 44px; background: #ffffffb3; }
body .look-photo-hint { top: auto; bottom: calc(var(--mobile-panel) + 10px); padding: 8px 12px; gap: 8px; transform: translateX(-50%); font-size: 12px; max-width: 88%; border-radius: 14px; }
.look-photo-hint svg { width: 20px; height: 20px; }
.look-photo-hint-copy { gap: 3px; }
.look-photo-hint-status { font-size: 10px; }
.look-photo-hold-progress { height: 3px; }
.look-photo-link canvas, .look-photo-network { display: none !important; }
.look-photo-link { width: auto; padding: 12px 20px; background: #234738; color: #fff; text-decoration: none; border-radius: 24px; }
.look-photo-result { z-index: 40; }
body .look-photo-result { width: 90%; grid-template-columns: 1fr; top: 44%; max-height: 78%; }
body .look-photo-image { max-height: 32dvh; }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible { outline: 3px solid #748e45; outline-offset: 3px; }
@media (max-height: 700px) { :root { --mobile-panel: 270px; } .mobile-dock { padding-top: 14px; gap: 7px; } }
@media (orientation: landscape) and (max-height: 540px) { body .mirror-shell { max-width: none; } body .mirror-shell .viewer-stage { inset: 0 320px 0 0; width: auto; } .mobile-dock { left: auto; width: 320px; height: 100%; border-radius: 22px 0 0 22px; } .mobile-logo { width: 75px; } body .camera-zoom-controls { right: 332px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Mobile refinement: the same violet palette and curved carousel as the TV. */
:root { --text: #2c3029; --mobile-panel: 222px; }
html, body, body .mirror-shell, body .mirror-shell .viewer-stage { background: #f7f5f9; }
.mobile-dock { padding: 10px 14px max(8px, env(safe-area-inset-bottom)); gap: 6px; background: #f7f5f9; box-shadow: 0 -6px 24px #65509a10; border-radius: 22px 22px 0 0; }
.mobile-selection { padding: 0; }
.mobile-selection .carousel-track { touch-action: pan-y; user-select: none; }
.mobile-selection .lens-card { cursor: pointer; }
body .mobile-dock .gesture-zone, .camera-zoom-controls { display: none !important; }
.mobile-dock .carousel-caption { color: #65509a; }
body .mobile-dock .carousel-track { grid-template-columns: 1fr 2.25fr 1fr; gap: 6px; align-items: center; perspective: 700px; }
body .mobile-dock .lens-card { background: white; border-color: #d8cce4; border-radius: 10px; }
body .mobile-dock .lens-card.is-active { background: white; border: 2px solid #65509a; box-shadow: 0 6px 16px #4c268e20; }
body .mobile-dock .lens-card:not(.is-active) { background: white; border-color: #d8cce4; height: 82%; }
body .mobile-dock .lens-card.is-prev { transform: perspective(70cqw) scale(.94) rotateY(-26deg); transform-origin: right center; }
body .mobile-dock .lens-card.is-next { transform: perspective(70cqw) scale(.94) rotateY(26deg); transform-origin: left center; }
.mobile-link { min-height: 44px; padding: 8px; font-size: 13px; border-color: #65509a; color: #65509a; }
.mobile-link:first-child { background: #65509a; color: white; }
body .mobile-dock .status-pill { display: none; }
.mobile-photo-button { position: absolute; z-index: 26; left: 50%; bottom: calc(var(--mobile-panel) + 12px); transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 16px; border: 1px solid #fff9; border-radius: 28px; background: #65509acc; color: white; font-size: 13px; box-shadow: 0 2px 12px #2c163326; cursor: pointer; }
.mobile-photo-button:disabled { background: #453a5280; cursor: default; color: #ffffffc9; }
@media (max-width: 360px) { .mobile-photo-button { left: auto; right: 12px; transform: none; } }
.mobile-photo-notice { position: absolute; z-index: 26; bottom: calc(var(--mobile-panel) + 60px); left: 12px; right: 12px; margin: 0; text-align: center; color: white; text-shadow: 0 1px 5px #000; font-size: 12px; pointer-events: none; }
.mobile-photo-dialog { width: min(92vw, 430px); max-height: 94dvh; padding: 12px; border: 1px solid #dfd4e9; border-radius: 20px; background: #f7f5f9; color: #2c3029; }
.mobile-photo-dialog::backdrop { background: #23152bbb; }
.mobile-share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.mobile-share-actions button, .mobile-share-actions a { display: flex; justify-content: center; align-items: center; min-height: 44px; padding: 8px; border: 1px solid #d8cce4; border-radius: 22px; color: #65509a; background: white; font: 13px "Segoe UI",sans-serif; text-decoration: none; cursor: pointer; }
.mobile-photo-share [hidden] { display: none !important; }
.mobile-photo-share p { font-size: 12px; line-height: 1.4; color: #70617c; margin: 10px 0 0; }
.mobile-photo-share input { width: 100%; margin-top: 8px; }
.mobile-photo-share button:disabled { opacity: .5; }
.mobile-photo-dialog img { display: block; width: 100%; height: auto; max-height: 69dvh; object-fit: contain; border-radius: 10px; margin-bottom: 8px; }
.mobile-photo-close { display: block; margin-left: auto; margin-bottom: 4px; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; color: #65509a; background: #ede6f5; cursor: pointer; }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible { outline-color: #65509a; }
@media (max-height: 700px) { :root { --mobile-panel: 200px; } .mobile-dock { padding-top: 8px; gap: 5px; } }
@media (orientation: landscape) and (max-height: 540px) { .mobile-photo-button { left: calc((100% - 320px) / 2); bottom: 12px; } .mobile-photo-notice { right: 332px; bottom: 64px; } }
