.product-stage{position:absolute;z-index:3;left:0;right:0;top:85px;bottom:calc(var(--product-dock-height,86px) + 12px);min-height:90px;touch-action:none;opacity:0;transition:opacity .9s ease}
.product-stage[data-state=ready]{opacity:1}.product-stage canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-5px}
.product-loading{position:absolute;z-index:4;inset:100px 20px calc(var(--product-dock-height,86px) + 12px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;pointer-events:none;font-size:12px;color:#f4eddf;text-shadow:0 1px 10px #031c17}
.product-loading.has-error .spinner{display:none}.product-loading button{pointer-events:auto;border:1px solid #f4eddf80;background:#092d26ed;color:#f4eddf;border-radius:24px;padding:10px 20px}
.product-dock.story-panel{--sheet-height:86px;position:absolute;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));width:min(calc(100% - 24px),440px);height:var(--sheet-height);max-height:60svh;margin:auto;padding:0 18px 12px;border:1px solid #ffffff65;background:#f4f0e8f7;color:#153d34;border-radius:27px;box-shadow:0 10px 45px #001d2238;overflow:hidden;transition:height .42s cubic-bezier(.22,1,.36,1)}
.product-dock[data-dragging=true]{transition:none}.sheet-grab-zone{position:relative;touch-action:none;user-select:none;cursor:grab;padding:34px 0 18px;min-height:84px;text-align:center}.sheet-grab-zone:active{cursor:grabbing}.sheet-grab-zone h2{margin:0;font:650 clamp(19px,5.2vw,24px)/1.25 Manrope,Arial,sans-serif;letter-spacing:-.7px}
.editor-handle{position:absolute;inset:0 0 auto;width:100%;height:35px;border:0;padding:12px 0;background:transparent;display:flex;justify-content:center;align-items:flex-start;color:inherit}.editor-handle span{width:36px;height:4px;border-radius:8px;background:#153d3440}
.product-editor{opacity:0;transition:opacity .22s;overflow-y:auto;overscroll-behavior:contain;max-height:calc(var(--sheet-height) - 91px);padding:0 1px 8px}.product-dock[data-expanded=true] .product-editor{opacity:1}
.rescan-button{display:flex;align-items:center;gap:7px;min-height:43px;padding:10px 14px;background:#f4f0e8eb;color:#173e34;border:1px solid #fff5;border-radius:24px;backdrop-filter:blur(12px);font:600 11px Manrope,Arial,sans-serif}.rescan-button svg{width:17px;height:17px;stroke-width:1.5}
.product-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;border-radius:14px;padding:4px;background:#153d340b}.product-tabs button{border:0;border-radius:10px;min-height:39px;background:none;color:#557166;font-size:12px;font-weight:600;transition:background .2s,color .2s,box-shadow .2s}.product-tabs button[aria-selected=true]{background:#fffdf7;color:#153d34;box-shadow:0 2px 7px #153d3410}
.product-panel{padding:18px 0 10px;min-height:104px}.product-shapes{display:grid;grid-template-columns:1fr 1fr;gap:10px}.product-choice{display:flex;align-items:center;gap:10px;min-height:65px;padding:12px;border:1px solid #153d341a;border-radius:17px;background:transparent;color:#547164;font-size:12px;font-weight:600}.product-choice>svg{width:29px;height:29px;stroke-width:1.3}.product-choice .choice-check{margin-left:auto;opacity:0;font-size:11px}.product-choice[aria-pressed=true]{border-color:#386c56;background:#dce7d9;color:#244f3f}.product-choice[aria-pressed=true] .choice-check{opacity:1}
.product-colors{display:flex;gap:16px;align-items:center;min-height:65px}.product-colors label{display:flex;flex-direction:column;gap:6px;align-items:center;font-size:11px;color:#587367}.product-colors input[type=color]{appearance:none;-webkit-appearance:none;width:42px;height:42px;padding:0;border:2px solid #fff;border-radius:50%;overflow:hidden;box-shadow:0 0 0 1px #153d3420;background:none;cursor:pointer}.product-colors input[type=color]::-webkit-color-swatch-wrapper{padding:0}.product-colors input[type=color]::-webkit-color-swatch{border:0;border-radius:50%}.product-colors input[type=color]::-moz-color-swatch{border:0;border-radius:50%}
.color-palettes{margin-left:auto;display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.color-palettes button{width:36px;height:36px;min-width:36px;border:3px solid #fff;border-radius:50%;background:linear-gradient(135deg,var(--swatch-a) 50%,var(--swatch-b) 50%);box-shadow:0 0 0 1px #153d3420}
.product-pattern{display:grid;grid-template-columns:1fr;gap:6px;padding-top:16px}.product-pattern label{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:600}.product-pattern output{font-variant-numeric:tabular-nums;color:#587367}.product-pattern input[type=range]{display:block;width:100%;height:27px;margin:0;accent-color:#34664f;cursor:pointer}
.product-shapes{display:flex;gap:9px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:none;touch-action:pan-x;overscroll-behavior-x:contain;padding-bottom:12px}.product-shapes::-webkit-scrollbar{display:none}.product-choice{position:relative;flex:0 0 104px;min-height:86px;flex-direction:column;justify-content:center;gap:8px;scroll-snap-align:start;font-size:11px;padding:12px 7px;white-space:nowrap}.product-choice .choice-check{position:absolute;top:6px;right:8px;margin:0}.product-choice>svg{width:30px;height:30px}
#ar-screen[data-product-open=true] #recognized-overlay,#ar-screen[data-product-open=true] .scan-status{display:none!important}#ar-screen[data-product-open=true] .camera-shade{background:linear-gradient(#001c2265,transparent 28%,transparent 76%,#001c2250)}
.narration-resume{position:absolute;z-index:6;right:20px;top:82px;width:43px;height:43px;border:1px solid #fff5;border-radius:50%;background:#f4f0e8eb;color:#173e34;display:grid;place-items:center}.narration-resume svg{width:18px;height:18px}
@media(max-width:360px){.product-dock.story-panel{left:9px;right:9px;width:calc(100% - 18px);padding-left:14px;padding-right:14px}.product-colors{gap:10px}.color-palettes{gap:5px}.color-palettes button{width:30px;height:34px;min-width:30px}.product-choice{font-size:11px}}
@media(max-height:500px) and (orientation:landscape){.product-dock.story-panel{left:auto;right:12px;width:300px;max-height:calc(100svh - 75px)}.product-stage{top:72px;right:320px;bottom:8px}.product-loading{inset:72px 325px 8px 15px}.sheet-grab-zone h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){.product-stage,.product-dock.story-panel,.product-editor,.product-tabs button{transition:none}}

.ar-logo{display:block;width:58px;height:40px;object-fit:contain;filter:drop-shadow(0 2px 5px #001d2260)}
.scan-guide p.scan-guide-title{margin:0 16px 16px;color:#f4f0e8;font:600 14px/1.5 Manrope,Arial,sans-serif;letter-spacing:.01em;text-shadow:0 1px 8px #001d22}
.ar-header-actions{display:flex;align-items:center;gap:12px}
.ar-header .narration-resume{position:static;display:grid;place-items:center;width:40px;height:40px;padding:9px;border:0;background:transparent;color:#f4f0e8;filter:drop-shadow(0 1px 3px #001d22)}
.ar-header .narration-resume svg{width:21px;height:21px}
.narration-caption{position:absolute;z-index:4;top:calc(94px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:min(310px,calc(100% - 64px));padding:0;margin:0;text-align:center;color:#fff9ed;pointer-events:none;background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;opacity:0}
.product-shapes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow:visible;scroll-snap-type:none;padding-bottom:12px;touch-action:pan-y}
.product-choice{min-width:0;min-height:84px;white-space:normal;text-align:center}
.narration-caption-copy{font:500 12px/1.65 Manrope,Arial,sans-serif;letter-spacing:.015em;text-shadow:0 1px 4px #001d22,0 2px 12px #001d22c0}
.narration-caption[data-typing=true] .narration-caption-copy:after{content:"";display:inline-block;height:1em;margin-left:2px;border-right:1px solid #f1d18e;vertical-align:-.15em;animation:narration-caret .72s steps(2,end) infinite}
#ar-screen[data-product-open=true] .product-stage{top:calc(178px + env(safe-area-inset-top))}
@keyframes narration-caret{50%{opacity:0}}
@media(max-width:360px){.narration-caption{width:calc(100% - 44px);top:calc(86px + env(safe-area-inset-top))}.narration-caption-copy{font-size:11px}.ar-header-actions{gap:6px}}
@media(max-height:500px) and (orientation:landscape){.narration-caption{top:calc(65px + env(safe-area-inset-top));left:calc((100% - 320px)/2);width:min(300px,calc(100% - 350px))}.narration-caption-copy{font-size:10px;line-height:1.5}#ar-screen[data-product-open=true] .product-stage{top:125px}}
@media(prefers-reduced-motion:reduce){.narration-caption[data-typing=true] .narration-caption-copy:after{animation:none}}
