/* Scoped image switcher and full-size viewer for public MochiBot previews. */
.mg-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.home-page .mochibot-home-preview.mg-switcher{padding:18px 16px 12px;gap:0}
.mg-switcher .mg-slides{display:flex;flex-flow:row nowrap;width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.mg-switcher .mg-slides::-webkit-scrollbar{display:none}
.mg-switcher .mg-slide{flex:0 0 100%;min-width:0;margin:0;text-align:center;scroll-snap-align:center;scroll-snap-stop:always}
.mg-switcher .mg-tabs[hidden]{display:none!important}
.mg-switcher .mg-slide a{display:block;width:180px;max-width:100%;margin:0 auto;cursor:zoom-in;border-radius:20px}
body.home-page .mg-switcher .mg-slide img{width:100%;aspect-ratio:1080/2340;object-fit:contain;background:#f4f8fe}
body.home-page .mg-switcher .mg-slide figcaption{font-size:12px;line-height:1.6;margin:12px 0 0;color:#526781;min-height:20px}
.mg-switcher .mg-tabs.mg-dots{display:flex;justify-content:center;flex-wrap:nowrap;gap:0;margin-top:2px;width:100%;max-width:220px}
body.home-page .mg-switcher .mg-dots button{appearance:none;display:inline-flex;justify-content:center;align-items:center;flex:0 0 44px;min-height:44px;min-width:44px;width:44px;padding:0;border:0;border-radius:50%;box-shadow:none;background:transparent;cursor:pointer;margin:0}
.mg-switcher .mg-dot{display:block;width:8px;height:8px;border-radius:50%;background:#bccbdd;transition:background-color .18s ease,transform .18s ease}
body.home-page .mg-switcher .mg-dots button[aria-selected=true] .mg-dot{background:#0068ce;transform:scale(1.15)}
body.home-page .mg-switcher .mg-dots button:hover .mg-dot{background:#5e96cb}
.mg-enlarge-hint{font-size:12px;color:#65758b;line-height:1.6}
.brand-app-gallery [data-gallery-item]{display:block;max-width:300px;margin:0 auto;cursor:zoom-in;border-radius:20px}
[data-gallery-item]:focus-visible,.mg-switcher button:focus-visible,.mochi-image-dialog button:focus-visible,.mochi-image-dialog a:focus-visible,.mochi-viewer-stage:focus-visible{outline:3px solid #0068ce;outline-offset:4px}
.mochi-image-dialog{position:fixed;inset:0;width:min(1100px,96vw);height:min(1080px,94dvh);max-width:96vw;max-height:94dvh;margin:auto;padding:0;border:1px solid #cfdaea;border-radius:18px;overflow:hidden;background:#f4f7fc;color:#22314a;box-shadow:0 24px 90px #07162955;box-sizing:border-box}
.mochi-image-dialog[open]{display:flex;flex-direction:column}
.mochi-image-dialog::backdrop{background:#101b2cc9;backdrop-filter:blur(3px)}
.mochi-viewer-header{display:flex;align-items:center;gap:12px;flex:0 0 auto;padding:10px 16px;border-bottom:1px solid #dce5f0;background:#fff;min-width:0}
.mochi-viewer-title{font-size:14px;line-height:1.5;font-weight:600;margin:0;flex:1;min-width:0;overflow-wrap:anywhere}
.mochi-viewer-count{color:#65758b;font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
.mochi-image-dialog button{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;flex-shrink:0;border:1px solid #cbd9e9;border-radius:10px;background:#fff;color:#075eaf;font-family:inherit;font-size:14px;line-height:1.3;padding:8px 12px;cursor:pointer;box-sizing:border-box}
.mochi-image-dialog [data-viewer-close]{font-size:26px;border-color:transparent;padding:0;color:#3a4e68}
.mochi-image-dialog button:hover{background:#eaf3ff}
.mochi-image-dialog button:disabled{opacity:.5;cursor:default}
.mochi-viewer-stage{flex:1 1 0%;min-height:0;min-width:0;overflow:auto;display:flex;align-items:center;justify-content:center;padding:12px;background:#e6edf6;box-sizing:border-box;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;scrollbar-gutter:stable}
.mochi-image-dialog .mochi-viewer-image{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;flex:0 0 auto;margin:0;border:0;border-radius:14px;outline:1px solid #92a7c2;outline-offset:0;background:#fff;box-shadow:0 8px 22px #263f6126;cursor:zoom-in}
.mochi-image-dialog .mochi-viewer-image[hidden]{display:none}
.mochi-image-dialog.is-zoomed .mochi-viewer-stage{display:block}
.mochi-image-dialog.is-zoomed .mochi-viewer-image{max-width:none;max-height:none;border-radius:0;object-fit:initial;cursor:zoom-out}
.mochi-viewer-status{font-size:14px;line-height:1.7;margin:12px 20px;text-align:center;color:#526781}
.mochi-viewer-status[hidden]{display:none}
.mochi-viewer-footer{display:flex;justify-content:center;align-items:center;gap:10px;flex:0 0 auto;flex-wrap:wrap;padding:10px 16px;border-top:1px solid #dce5f0;background:#fff}
.mochi-viewer-full{display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-size:12px;line-height:1.4;color:#075eaf;padding:4px 8px;text-decoration:underline;text-underline-offset:3px}
@media(max-width:900px){.mg-switcher .mg-slide a{width:180px}}
@media(max-width:700px){body.home-page .mochibot-home-preview.mg-switcher{padding:18px 14px 14px;max-width:270px}.mg-switcher .mg-slide a{width:160px}.mochi-image-dialog{height:94dvh;border-radius:14px}.mochi-viewer-header{gap:8px;padding:8px 10px}.mochi-viewer-title{font-size:12px}.mochi-viewer-footer{gap:6px;padding:8px}.mochi-viewer-stage{padding:8px}.mochi-image-dialog button{font-size:13px}.mochi-viewer-full{padding:4px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.mochi-image-dialog,.mg-switcher *{scroll-behavior:auto}.mg-switcher .mg-dot{transition:none}}

/* Homepage-only square product showcase; real screenshots on the product page stay unchanged. */
body.home-page .web-main .mochibot-home-hero{grid-template-columns:minmax(0,1.25fr) minmax(300px,440px);gap:48px}
body.home-page .mochibot-home-preview.mg-switcher.mg-showcase{position:relative;isolation:isolate;display:grid;grid-template-rows:minmax(0,1fr) 44px;align-items:stretch;justify-items:center;justify-self:end;width:100%;max-width:440px;aspect-ratio:1/1;box-sizing:border-box;min-width:0;min-height:0;padding:16px 22px 10px;border:1px solid #dce5ee;border-radius:28px;overflow:hidden;background:#ffffff;box-shadow:0 16px 36px #25446412,inset 0 1px 0 #ffffff}
.mg-showcase:before,.mg-showcase:after{content:"";position:absolute;pointer-events:none;z-index:0}
.mg-showcase:before{display:none}
.mg-showcase:after{display:none}
.mg-showcase .mg-slides,.mg-showcase .mg-tabs{position:relative;z-index:1}
.mg-showcase .mg-slides{height:100%;min-height:0;align-self:stretch}
.mg-showcase .mg-slide{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:100%;padding:4px 0 0;box-sizing:border-box}
body.home-page .mg-showcase .mg-slide a{--phone-radius:clamp(16px,2vw,26px);position:relative;flex:0 0 auto;display:block;width:auto;height:calc(100% - 26px);max-width:64%;aspect-ratio:1160/2420;margin:0;padding:5px;box-sizing:border-box;border:1px solid #a7bad15c;border-radius:var(--phone-radius);background:linear-gradient(145deg,#31465d,#091322 58%,#263b53);box-shadow:0 16px 28px #28456329,0 0 0 1px #b6c5d5}
.mg-showcase .mg-slide a:before{content:"";position:absolute;top:2px;left:40%;width:20%;height:2px;border-radius:3px;background:#7d94a466;pointer-events:none}
body.home-page .mg-showcase .mg-slide img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;aspect-ratio:auto;object-fit:contain;margin:0;border:0;border-radius:calc(var(--phone-radius) - 5px);background:#fff;box-shadow:none}
body.home-page .mg-showcase .mg-slide figcaption{flex:0 0 auto;margin:0;min-height:18px;max-width:100%;font-size:11px;font-weight:400;line-height:18px;letter-spacing:.02em;color:#61738a;white-space:nowrap}
.mg-showcase .mg-tabs.mg-dots{align-self:end;margin:0;max-width:220px;height:44px}
.mg-showcase .mg-dot{background:#bbc8d7}
body.home-page .mg-showcase .mg-dots button[aria-selected=true] .mg-dot{background:#006bd6;transform:scale(1.12)}
body.home-page .mg-showcase .mg-dots button:hover .mg-dot{background:#5e96cb}
.mg-showcase [data-gallery-item]:focus-visible,.mg-showcase button:focus-visible{outline-color:#0068ce;outline-offset:3px}
@media(max-width:1050px){body.home-page .web-main .mochibot-home-hero{grid-template-columns:minmax(0,1fr) minmax(260px,.85fr);gap:28px}}
@media(max-width:980px){body.home-page .web-main .mochibot-home-hero{grid-template-columns:1fr;gap:30px}body.home-page .mochibot-home-preview.mg-switcher.mg-showcase{justify-self:center;max-width:440px}}
@media(max-width:700px){body.home-page .mochibot-home-preview.mg-switcher.mg-showcase{padding:12px 16px 6px;border-radius:24px}.mg-showcase .mg-slide{padding-top:0;gap:6px}body.home-page .mg-showcase .mg-slide a{height:calc(100% - 22px);padding:4px}body.home-page .mg-showcase .mg-slide img{border-radius:calc(var(--phone-radius) - 4px)}body.home-page .mg-showcase .mg-slide figcaption{font-size:10px;line-height:16px;min-height:16px}}
