:root{
  --ui-navy:#0b2345;
  --ui-blue:#1768c4;
  --ui-teal:#078477;
  --ui-paper:#f5f8fc;
  --ui-line:rgba(17,48,86,.14);
  --ui-radius:clamp(12px,1.6vw,24px);
  --ui-gap:clamp(10px,1.5vw,24px);
  --ui-pad:clamp(12px,2vw,28px);
  --ui-touch:clamp(46px,4.8vw,58px);
  --app-height:100dvh;
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box;min-width:0}
html{width:100%;min-height:100%;font-size:clamp(14px,13px + .18vw,18px);-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}
body{width:100%;min-height:100%;margin:0;overflow-x:clip;overscroll-behavior-x:none;-webkit-tap-highlight-color:transparent}
img,video,canvas,picture{max-width:100%;height:auto;object-fit:contain}
img,video{display:block}
video{width:100%;aspect-ratio:16/9;background:#000}
button,[role="button"],a{overflow-wrap:anywhere}
button,input,select,textarea{font:inherit}
button,.topbtn,.openBtn,.navbtn,.full,.homeBtn,.primary,.chip,[role="button"]{min-height:var(--ui-touch);touch-action:manipulation}
button,a{-webkit-user-select:none;user-select:none}
h1,h2,h3,h4,p{max-width:100%;overflow-wrap:break-word}
h1,.h1,.big{font-size:clamp(1.8rem,1.12rem + 2.45vw,4.35rem)!important;line-height:1.08!important}
h2,.title{font-size:clamp(1.4rem,1.08rem + 1.15vw,2.5rem)!important;line-height:1.18!important}
h3{font-size:clamp(1.05rem,.92rem + .55vw,1.55rem)!important;line-height:1.25}
p,.lead,.sub,.desc,.talk,.caption{font-size:clamp(.9rem,.83rem + .27vw,1.18rem);line-height:1.55}
table{max-width:100%}
:fullscreen video,:-webkit-full-screen video{width:100vw!important;height:100vh!important;object-fit:contain!important;background:#000}
.responsive-scroll{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}

/* 통합 홈 */
.app-home .home{width:min(100%,1320px);padding:clamp(20px,4vw,52px) clamp(14px,3vw,36px) max(30px,env(safe-area-inset-bottom))}
.app-home .hero{max-width:min(900px,100%);margin-inline:auto;margin-bottom:clamp(20px,3vw,38px)}
.app-home .choices{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))!important;gap:var(--ui-gap)}
.app-home .choice{min-height:clamp(340px,42vh,470px);padding:clamp(20px,3vw,34px);border-radius:var(--ui-radius)}
.app-home .features{display:flex;flex-wrap:wrap;gap:8px}
.app-home .openBtn{width:100%;white-space:normal;gap:12px}
.app-home .guide{border-radius:var(--ui-radius);padding:var(--ui-pad);align-items:flex-start}

/* 안경렌즈 메뉴 */
.glasses-home .app{min-height:var(--app-height);height:auto}
.glasses-home .top{padding:clamp(10px,2vw,18px) clamp(14px,3vw,40px);flex-wrap:wrap}
.glasses-home .topActions{display:flex;flex-wrap:wrap;gap:8px}
.glasses-home .main{width:min(100%,1240px);padding:clamp(18px,3vw,44px) clamp(12px,2.5vw,32px) max(30px,env(safe-area-inset-bottom))}
.glasses-home .hero{grid-template-columns:minmax(0,1fr) minmax(240px,32%)!important;gap:var(--ui-gap);align-items:end}
.glasses-home .grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))!important;gap:var(--ui-gap)}
.glasses-home .card{min-height:clamp(260px,34vh,360px);border-radius:var(--ui-radius)}

/* 눈 상태 / 근시 억제 공통 뷰어 */
.eye-page .app,.myopia-page .app{height:var(--app-height);min-height:0;overflow:hidden}
.eye-page .top,.myopia-page .top{height:auto;min-height:clamp(58px,7vh,76px);padding:clamp(8px,1.3vw,14px) clamp(12px,2vw,24px);flex-wrap:wrap}
.eye-page .actions,.myopia-page .actions{display:flex;flex-wrap:wrap;gap:8px}
.eye-page .wrap,.myopia-page .wrap{grid-template-columns:clamp(190px,19vw,250px) minmax(0,1fr);min-height:0}
.eye-page .side,.myopia-page .side{min-height:0;-webkit-overflow-scrolling:touch}
.eye-page .main,.myopia-page .main{padding:clamp(8px,1.4vw,16px);gap:clamp(7px,1vw,12px);min-height:0;overflow:hidden}
.eye-page .viewer,.myopia-page .viewer{min-height:0;border-radius:var(--ui-radius)}
.eye-page .viewer img,.myopia-page .viewer>img{width:100%;height:100%;max-height:100%;object-fit:contain}
.eye-page .bottom,.myopia-page .bottom{height:auto;min-height:var(--ui-touch);grid-template-columns:minmax(0,1fr) clamp(86px,13vw,160px) minmax(0,1fr);gap:clamp(6px,1vw,12px)}
.myopia-page .talk{height:auto;min-height:clamp(60px,8vh,86px);padding:clamp(9px,1.4vw,18px);flex-wrap:wrap}
.myopia-page .pricePair{padding:clamp(6px,1vw,14px);gap:clamp(6px,1vw,14px)}

/* 싱글렌즈 */
.single-page .wrap{width:min(100%,1180px);padding:clamp(12px,2vw,24px) clamp(10px,2vw,20px) clamp(80px,10vh,110px)}
.single-page header .top{flex-wrap:wrap;gap:10px;padding:clamp(9px,1.4vw,14px) clamp(10px,2vw,22px)}
.single-page .actions{display:flex;flex-wrap:wrap;gap:7px}
.single-page .hero{grid-template-columns:minmax(240px,.75fr) minmax(0,1.25fr);gap:var(--ui-gap)}
.single-page .menu{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))!important}
.single-page .viewer{height:var(--app-height);grid-template-rows:auto minmax(0,1fr) auto}
.single-page .viewerTop,.single-page .viewerBottom{min-height:0;flex-wrap:wrap}
.single-page .stage{grid-template-columns:minmax(0,1fr) clamp(235px,25vw,360px);grid-template-rows:minmax(0,1fr);min-height:0}
.single-page .imageBox{min-height:0}
.single-page .imageBox img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.single-page .side{max-height:none;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch}
.single-page .viewerBottom{max-height:min(34vh,260px);overflow:auto;-webkit-overflow-scrolling:touch}
.single-page .chips,.single-page .quickNav,.single-page .bottomNav{display:flex;flex-wrap:wrap;gap:7px}
.single-page .bottomNavWrap{max-width:calc(100% - 20px);bottom:max(10px,env(safe-area-inset-bottom));border-radius:18px}

/* 누진 사용법 */
.progressive-page{height:var(--app-height);overflow:hidden}
.progressive-page .app{width:100%;height:var(--app-height);min-height:0;grid-template-rows:auto minmax(0,1fr) auto!important}
.progressive-page .top{min-height:0;padding:clamp(7px,1.1vw,14px) clamp(10px,2vw,24px);flex-wrap:wrap}
.progressive-page .stage{min-height:0;padding:clamp(5px,.8vw,10px);overflow:hidden}
.progressive-page .slide{min-width:0;min-height:0;overflow:hidden}
.progressive-page .slide img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;transform:none!important}
.progressive-page .controls{min-height:0;height:auto;padding:clamp(6px,1vw,12px) clamp(8px,1.5vw,18px) max(clamp(6px,1vw,12px),env(safe-area-inset-bottom));gap:clamp(6px,1vw,12px)}
.progressive-page .buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(5px,.8vw,10px)}
.progressive-page .btn{height:auto;min-height:var(--ui-touch);white-space:normal;font-size:clamp(.76rem,.7rem + .25vw,1rem);line-height:1.2;padding:clamp(6px,.8vw,10px)}
.progressive-page .btn small{font-size:clamp(.65rem,.61rem + .18vw,.84rem)}
.progressive-page .arrow{flex:0 0 clamp(42px,5vw,64px);width:clamp(42px,5vw,64px);min-height:var(--ui-touch)}

/* 누진 상세 / 제품 비교 / 가격표 */
.lens-page{min-height:100%;overflow-x:clip}
.lens-page header{position:sticky;top:0;z-index:50}
.lens-page header .top{width:100%;padding:clamp(8px,1.2vw,14px) clamp(10px,2vw,22px);flex-wrap:wrap}
.lens-page header nav{display:flex;flex:1 1 600px;gap:7px;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.lens-page header nav button{flex:1 0 auto;min-height:var(--ui-touch);white-space:normal}
.lens-page .wrap{width:min(100%,1320px);padding:clamp(12px,2vw,24px) clamp(10px,2vw,22px) max(34px,env(safe-area-inset-bottom))}
.lens-page .hero,.lens-page .grid2{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ui-gap)}
.lens-page .cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:var(--ui-gap)}
.lens-page .panel{max-width:100%;overflow:hidden;border-radius:var(--ui-radius)}
.lens-page .scene{height:auto;min-height:clamp(230px,39vw,440px);aspect-ratio:16/10;border-radius:var(--ui-radius)}
.lens-page .scene.small{height:auto;min-height:clamp(210px,30vw,350px)}
.lens-page .controls,.lens-page .priceBtns{display:flex;flex-wrap:wrap;gap:8px}
.lens-page .thickCompare,.lens-page .refInfo,.lens-page .priceStage{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
.lens-page .profiles{grid-template-columns:repeat(8,minmax(100px,1fr));min-width:840px}
.lens-page .thickTable{min-width:720px}
.lens-page .priceStage{height:auto;min-height:clamp(300px,68vh,820px);padding:clamp(6px,1vw,14px)}
.lens-page .priceStage img{width:100%;height:auto;max-height:calc(var(--app-height) - 190px);object-fit:contain}

/* 콘택트렌즈 */
.contacts-page .app{width:100%;height:var(--app-height);min-height:0;grid-template-columns:clamp(220px,22vw,300px) minmax(0,1fr)}
.contacts-page .sidebar{padding:clamp(10px,1.5vw,24px);gap:clamp(8px,1.2vw,18px);min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}
.contacts-page .menu{min-height:0}
.contacts-page .navbox{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.contacts-page .stage{min-width:0;min-height:0;padding:clamp(9px,2vw,26px);gap:clamp(8px,1.3vw,18px);overflow:hidden}
.contacts-page .topbar{height:auto;min-height:clamp(54px,8vh,76px);gap:12px;flex-wrap:wrap}
.contacts-page .screen{min-width:0;min-height:0;padding:clamp(12px,2vw,30px);border-radius:var(--ui-radius);overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}
.contacts-page .page{min-height:0}
.contacts-page .grid2{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ui-gap)}
.contacts-page .grid3,.contacts-page .productGrid,.contacts-page .recommendGrid{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:var(--ui-gap)}
.contacts-page .grid4,.contacts-page .lensTypeGrid{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:var(--ui-gap)}
.contacts-page .card,.contacts-page .heroCard,.contacts-page .visual,.contacts-page .productCard{max-width:100%;border-radius:var(--ui-radius)}
.contacts-page .btnrow,.contacts-page .brandTabs,.contacts-page .colorTabs{display:flex;flex-wrap:wrap;gap:8px}
.contacts-page .modal{padding:clamp(8px,2vw,24px)}
.contacts-page .modalCard,.contacts-page .modalContent{width:min(96vw,1100px);max-height:calc(var(--app-height) - 24px);overflow:auto;border-radius:var(--ui-radius)}
.contacts-page .modal img{max-width:100%;max-height:calc(var(--app-height) - 130px);object-fit:contain}
.contacts-page .videoGrid{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:var(--ui-gap)}
.contacts-page .videoFrame{width:100%;max-width:100%;overflow:hidden;border-radius:var(--ui-radius)}
.contacts-page .videoFrame video{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}
.contacts-page .videoFullscreenBtn{width:100%;min-height:var(--ui-touch);white-space:normal}

/* 폭이 좁거나 세로형 태블릿 */
@media (max-width:900px),(orientation:portrait) and (max-width:1100px){
  .glasses-home .hero,.single-page .hero,.lens-page .hero,.lens-page .grid2,.contacts-page .grid2{grid-template-columns:1fr!important}
  .glasses-home .status{width:100%}
  .eye-page .wrap,.myopia-page .wrap{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}
  .eye-page .side,.myopia-page .side{display:flex;gap:7px;padding:8px;overflow-x:auto;overflow-y:hidden;border-right:0;border-bottom:1px solid var(--ui-line)}
  .eye-page .sideTitle,.myopia-page .sideTitle{display:none}
  .eye-page #menu,.myopia-page #menu{display:flex;gap:7px;min-width:max-content}
  .eye-page .menuBtn,.myopia-page .menuBtn{flex:0 0 auto;min-height:44px}
  .single-page .stage{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}
  .single-page .side{max-height:min(30vh,230px)}
  .single-page .viewerBottom{max-height:min(28vh,220px)}
  .progressive-page .buttons{grid-template-columns:repeat(2,minmax(0,1fr))}
  .contacts-page .app{height:auto;min-height:var(--app-height);display:block;overflow:visible}
  .contacts-page .sidebar{position:sticky;top:0;z-index:80;display:block;padding:8px 10px;overflow:visible;border-right:0;border-bottom:1px solid var(--ui-line)}
  .contacts-page .brand{display:none}
  .contacts-page .menu{display:flex;gap:6px;overflow-x:auto;padding-bottom:5px;-webkit-overflow-scrolling:touch}
  .contacts-page .menu button{flex:0 0 auto;min-height:44px}
  .contacts-page .navbox{display:flex;overflow-x:auto;gap:6px}
  .contacts-page .navbox button{flex:1 0 max-content;min-height:42px}
  .contacts-page .stage{height:auto;min-height:calc(var(--app-height) - 104px);overflow:visible}
  .contacts-page .screen{min-height:calc(var(--app-height) - 190px);overflow:visible}
}

/* 휴대폰 및 매우 좁은 창 */
@media (max-width:600px){
  :root{--ui-touch:46px}
  .app-home .guide{flex-direction:column}
  .glasses-home .top,.eye-page .top,.myopia-page .top{align-items:stretch}
  .glasses-home .topActions,.eye-page .actions,.myopia-page .actions{width:100%}
  .glasses-home .topActions>* ,.eye-page .actions>* ,.myopia-page .actions>*{flex:1 1 auto;text-align:center}
  .eye-page .bottom,.myopia-page .bottom{grid-template-columns:1fr 70px 1fr}
  .myopia-page .pricePair{grid-template-columns:1fr;overflow:auto}
  .myopia-page .pricePair img{height:auto}
  .single-page .viewerTop .vSub{display:none}
  .single-page .bottomNavWrap{display:none!important}
  .progressive-page .top .sub{display:none}
  .progressive-page .controls{grid-template-columns:auto minmax(0,1fr) auto}
  .progressive-page .btn small{display:none}
  .lens-page .homeCloseBar{flex-wrap:wrap}
  .contacts-page .topbar .pill{display:none}
  .contacts-page .screen{padding:10px}
}

/* 낮은 가로 화면 */
@media (orientation:landscape) and (max-height:650px){
  :root{--ui-touch:42px}
  .glasses-home .main{padding-top:14px}
  .glasses-home .hero{margin-bottom:12px}
  .glasses-home .card{min-height:240px}
  .eye-page .top,.myopia-page .top{min-height:52px;padding-block:6px}
  .eye-page .main,.myopia-page .main{padding:7px;gap:6px}
  .myopia-page .talk{min-height:48px;padding:7px 12px}
  .single-page .viewerBottom{max-height:32vh}
  .single-page .side{font-size:.86rem}
  .progressive-page .top{padding-block:5px}
  .progressive-page .controls{padding-block:5px}
  .progressive-page .btn small{display:none}
  .lens-page .scene{min-height:230px}
  .contacts-page .topbar{min-height:48px}
}

@supports not (height:100dvh){:root{--app-height:100vh}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* 기존 디자인을 유지하는 공통 이미지 크게 보기 */
.zoomableImage{cursor:zoom-in}
.imageZoomModal{position:fixed;inset:0;z-index:20000;display:none;align-items:center;justify-content:center;padding:clamp(10px,2vw,28px);background:rgba(0,0,0,.9);backdrop-filter:blur(4px)}
.imageZoomModal.open{display:flex}
.imageZoomDialog{position:relative;width:100%;height:100%;display:grid;place-items:center}
.imageZoomView{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;cursor:default;border-radius:clamp(6px,1vw,14px);box-shadow:0 22px 70px rgba(0,0,0,.45)}
.imageZoomClose{position:absolute;z-index:2;top:max(4px,env(safe-area-inset-top));right:max(4px,env(safe-area-inset-right));min-width:88px;min-height:48px;padding:8px 14px;border:1px solid rgba(255,255,255,.45);border-radius:14px;background:#fff;color:#102642;font-weight:950;box-shadow:0 8px 26px rgba(0,0,0,.35)}
html.image-zoom-open,html.image-zoom-open body{overflow:hidden!important}

/* 영상은 원본 비율을 유지하고 잘리지 않음 */
video,.videoCard video,.videoFrame video{width:100%!important;height:auto!important;object-fit:contain!important;background:#000}

/* 누진적응 마지막 화면의 불필요한 사각형·가림 요소 제거 */
.progressive-page .slide:last-child .motionLayer{display:none!important}

/* 기존 메인 카드 분위기를 그대로 사용하는 AI 추천 카드 */
.app-home .choice.ai{--accent:#6656c8;--soft:#f0edff;--glow:#d5ceff}
.app-home .choice.ai .choiceIcon{font-size:30px;font-weight:1000;color:#6656c8}

/* 스마트 맞춤 추천: 태블릿·아이패드 자동 맞춤 강화 */
.ai-recommend-page .shell{width:min(100%,1360px);margin-inline:auto;padding-inline:clamp(12px,2.4vw,36px);padding-bottom:max(28px,env(safe-area-inset-bottom));}
.ai-recommend-page .panel,.ai-recommend-page .resultCard,.ai-recommend-page .summaryCard{border-radius:clamp(18px,2vw,30px)}
.ai-recommend-page .priceLink{min-height:clamp(48px,5vw,60px);font-size:clamp(.92rem,.85rem + .25vw,1.08rem)}
@media (min-width:768px) and (max-width:1366px){
  .ai-recommend-page .topbar{padding-inline:clamp(14px,2.2vw,34px)}
  .ai-recommend-page .infoGrid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ai-recommend-page .eyeGrid fieldset{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (orientation:portrait) and (min-width:700px) and (max-width:1200px){
  .ai-recommend-page .intro{display:block!important}
  .ai-recommend-page .modeGrid{margin-top:16px;grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .ai-recommend-page .resultCards{grid-template-columns:1fr!important}
}

/* === 2026-06-29 final tablet safety patch: iPad/Galaxy/Android Pad 자동 맞춤 === */
html,body{max-width:100%!important;overflow-x:hidden!important;touch-action:manipulation}
.responsive-page,.app{max-width:100%!important;overflow-x:hidden!important}
*{min-width:0}

/* 콘택트렌즈 착용방법: WebView 전체화면 실패 시 큰 모달로 자동 표시 */
.videoFullscreenOverlay{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));background:rgba(0,0,0,.94)}
.videoFullscreenOverlay.open{display:flex}
.videoFullscreenOverlay .videoFullscreenBox{position:relative;width:100%;height:100%;display:grid;place-items:center}
.videoFullscreenOverlay video{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;background:#000!important;border-radius:0!important}
.videoFullscreenClose{position:absolute;top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));z-index:2;min-width:84px;min-height:46px;border:0;border-radius:999px;background:#fff;color:#111827;font-weight:950;font-size:15px;box-shadow:0 10px 30px rgba(0,0,0,.35)}
html.video-fullscreen-open,html.video-fullscreen-open body{overflow:hidden!important}
.contacts-page .videoGrid{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr))!important}
.contacts-page .videoFrame{position:relative;overflow:hidden;background:#000;border-radius:18px}
.contacts-page .videoCard video{width:100%!important;height:auto!important;max-height:min(56svh,520px)!important;object-fit:contain!important}
.contacts-page .videoFullscreenBtn{right:10px!important;bottom:10px!important;width:auto!important;min-height:44px!important;padding:10px 14px!important}

/* 단초점: 버튼은 한 줄 영역으로 정렬하고 좌우 밀림 방지 */
.single-page,.single-page body{overflow-x:hidden!important;max-width:100%!important}
.single-page .viewer{width:100%!important;max-width:100%!important;overflow:hidden!important;grid-template-rows:auto minmax(0,1fr) auto!important}
.single-page .stage,.single-page .viewerTop,.single-page .viewerBottom,.single-page .viewerBottomTop{max-width:100%!important;overflow:hidden!important}
.single-page .viewerBottom{gap:6px!important;padding:7px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;max-height:clamp(118px,20svh,160px)!important}
.single-page .viewerBottomTop{flex:0 0 auto!important;min-height:40px!important}
.single-page .chips,.single-page .quickNav,.single-page .bottomNav{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;gap:6px!important;max-width:100%!important;padding:2px!important;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.single-page .chips::-webkit-scrollbar,.single-page .quickNav::-webkit-scrollbar,.single-page .bottomNav::-webkit-scrollbar{display:none}
.single-page .chips button,.single-page .quickNav button,.single-page .bottomNav button{flex:0 0 auto!important;min-width:max-content!important;min-height:42px!important;height:42px!important;padding:0 12px!important;font-size:clamp(12px,1.35vw,15px)!important;line-height:1!important}
.single-page .imageBox,.single-page .imageBox img,.single-page .side{max-width:100%!important}
.single-page .imageBox img{transform:none!important}
.single-page .bottomNavWrap{max-width:calc(100% - 20px)!important;overflow:hidden!important}
@media (orientation:landscape){.single-page .viewerBottom{max-height:clamp(108px,22svh,148px)!important}.single-page .side{max-height:none!important}}
@media (max-width:900px){.single-page .stage{grid-template-columns:1fr!important}.single-page .side{max-height:min(26svh,190px)!important}.single-page .viewerBottom{max-height:clamp(112px,24svh,160px)!important}}

/* 누진다초점: 홈 버튼은 위로 올리고 겹침 제거, 하단 컨트롤은 태블릿 크기에 맞춰 작게 */
.progressive-page{width:100%!important;max-width:100%!important;height:var(--app-height)!important;overflow:hidden!important}
.progressive-page .app{height:var(--app-height)!important;grid-template-rows:auto minmax(0,1fr) auto!important;overflow:hidden!important}
.progressive-page .homeCloseBar{top:max(6px,env(safe-area-inset-top))!important;left:max(8px,env(safe-area-inset-left))!important;right:auto!important;z-index:100000!important}
.progressive-page .homeCloseBar .closeBtn{display:none!important}
.progressive-page .homeCloseBar .homeBtn{min-width:72px!important;height:38px!important;padding:0 13px!important;font-size:14px!important;background:rgba(25,118,255,.94)!important}
.progressive-page header{padding-left:max(94px,calc(env(safe-area-inset-left) + 94px))!important;padding-right:max(8px,env(safe-area-inset-right))!important;min-height:48px!important;gap:8px!important;overflow:hidden!important}
.progressive-page header .brand{font-size:clamp(15px,1.8vw,20px)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.progressive-page #motionBtn{min-height:34px!important;padding:6px 10px!important;font-size:clamp(11px,1.3vw,14px)!important;white-space:nowrap!important}
.progressive-page .count{font-size:clamp(11px,1.2vw,14px)!important;white-space:nowrap!important}
.progressive-page .stage{min-height:0!important;overflow:hidden!important;padding:clamp(4px,.7vw,10px)!important}
.progressive-page .slide{padding:0!important;overflow:hidden!important}
.progressive-page .slide img{max-width:100%!important;max-height:100%!important;width:100%!important;height:100%!important;object-fit:contain!important;transform:none!important}
.progressive-page .controls{height:auto!important;min-height:0!important;padding:5px max(6px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))!important;gap:5px!important;grid-template-columns:40px minmax(0,1fr) 40px!important;overflow:hidden!important}
.progressive-page .buttons{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;min-width:0!important}
.progressive-page .btn{min-width:0!important;min-height:42px!important;height:auto!important;padding:4px 4px!important;border-radius:12px!important;font-size:clamp(10px,1.05vw,13px)!important;line-height:1.12!important;white-space:normal!important;word-break:keep-all!important}
.progressive-page .btn small{display:none!important}
.progressive-page .arrow{min-width:0!important;width:40px!important;min-height:42px!important;border-radius:12px!important;font-size:24px!important}
@media (orientation:portrait) and (min-width:700px){.progressive-page .controls{grid-template-columns:38px minmax(0,1fr) 38px!important}.progressive-page .buttons{grid-template-columns:repeat(2,minmax(0,1fr))!important}.progressive-page .btn{min-height:40px!important}}
@media (orientation:landscape) and (max-height:760px){.progressive-page header{min-height:42px!important;padding-top:4px!important;padding-bottom:4px!important}.progressive-page .controls{padding-top:4px!important;padding-bottom:max(4px,env(safe-area-inset-bottom))!important}.progressive-page .btn,.progressive-page .arrow{min-height:36px!important}.progressive-page .homeCloseBar .homeBtn{height:34px!important;font-size:13px!important}}
