.mobile-gallery-actions,.room-info-button{display:none}
.mobile-rooms-dialog,.mobile-room-info-dialog{padding:26px;width:520px;max-width:94vw;max-height:80dvh;overflow:auto;background:var(--paper);color:var(--ink)}
.mobile-rooms-dialog h2,.mobile-room-info-dialog h2{font-size:26px;padding-right:38px;margin:0 0 22px;overflow-wrap:anywhere}
.mobile-room-info-dialog p{font-size:15px;line-height:1.7;margin:18px 0;white-space:pre-line}
.mobile-sheet-muted{color:var(--muted)}
.mobile-room-list{display:flex;flex-direction:column;gap:8px}
.mobile-room-list button{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;text-align:left;padding:14px;border:1px solid #ccc8ba;background:#faf9f4}
.mobile-room-list strong{font-size:15px;font-weight:400;overflow-wrap:anywhere}.mobile-room-list span,.mobile-room-list small{font-size:11px;opacity:.7}.mobile-room-list button[aria-current=true]{background:var(--green);color:#fff}
@media(max-width:760px),(max-width:1000px) and (pointer:coarse){
 .in-gallery{overscroll-behavior:none}.museum{height:100dvh;min-height:0;-webkit-text-size-adjust:100%;text-size-adjust:100%}
 .museum #scene{top:calc(104px + env(safe-area-inset-top));bottom:calc(126px + env(safe-area-inset-bottom))}
 .museum.mobile-immersive #scene{inset:0}
 .museum-top{padding:calc(8px + env(safe-area-inset-top)) 12px 8px;gap:8px;align-items:center;background:linear-gradient(#f2efe8eb,#f2efe8c9,transparent);z-index:6}
 .museum-top .back-button{width:44px;min-width:44px;height:44px;padding:0;font-size:20px}.museum-top .back-button span{display:none}
 .museum-title{flex:1;min-width:0;max-width:none;justify-content:flex-start;margin-right:60px;gap:7px}
 .museum-title .brand-symbol{height:30px;width:30px;margin:0}.museum-title .brand-symbol img{width:53px!important;height:53px!important;left:-12px;top:-8px}
 .museum-title .museum-exhibition{display:none}.museum-title:after{content:'Галерея';font:12px Georgia,serif}
 .museum-top #catalogue{height:44px;min-height:44px;width:74px;padding:0 8px;font-size:12px;line-height:1;white-space:nowrap}.museum-top #catalogue span{display:none}
 .museum .presence-button{top:calc(8px + env(safe-area-inset-top));right:94px;width:52px;height:44px;max-width:none;min-height:44px;padding:0;font-size:0;z-index:8}
 .museum .presence-button:before{content:'Гости';font-size:11px}.museum .presence-button:after{content:attr(data-count);font-size:10px;margin-left:4px}
 .room-indicator{left:12px;right:12px;top:calc(62px + env(safe-area-inset-top));height:34px;display:flex;align-items:center;gap:8px;padding:0;z-index:4;text-shadow:0 1px 8px #fff;background:none}
 .room-indicator>span,.room-indicator p{display:none}.room-indicator h1{font:17px/1.3 Georgia,serif;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0;min-width:0;max-width:calc(100% - 44px)}
 .room-info-button{display:grid;place-items:center;pointer-events:auto;flex:0 0 44px;width:44px;height:44px;border:1px solid #ccc6b8;border-radius:50%;font-size:17px;background:#f6f3e9d9}
 .museum-bottom{display:none}.crosshair{opacity:.35}
 .guided-tour{position:absolute;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;grid-template-rows:44px;align-items:center;gap:4px;left:12px;right:12px;bottom:calc(64px + env(safe-area-inset-bottom));transform:none;width:auto;max-width:none;padding:3px;border-radius:10px;background:#f6f3e9ed;box-shadow:0 3px 14px #00000012;z-index:5}
 .guided-tour>#tour-status{grid-column:2;grid-row:1;order:0;flex-basis:auto;max-width:none;width:100%;font-size:12px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .guided-tour>#tour-prev,.guided-tour>#tour-next{min-height:44px;width:44px;padding:0;font-size:0;border-radius:7px;border:1px solid #d7d0c1;background:#fffaf0;grid-row:1}
 .guided-tour>#tour-prev{grid-column:1}.guided-tour>#tour-next{grid-column:3}.guided-tour>#tour-prev:before{content:'←';font-size:22px}.guided-tour>#tour-next:before{content:'→';font-size:22px}
 .mobile-gallery-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;position:absolute;left:12px;right:12px;bottom:calc(8px + env(safe-area-inset-bottom));z-index:7}
 .mobile-gallery-actions button{min-height:44px;padding:7px 5px;border:1px solid #c9c4b7;background:#f7f4ebed;border-radius:8px;backdrop-filter:blur(10px);font-size:12px;line-height:1.2;box-shadow:0 3px 14px #00000012}
 .mobile-gallery-actions button[aria-expanded=true]{background:var(--green);color:#fff}
 .museum .touch-controls{display:none;position:absolute;left:12px;bottom:calc(128px + env(safe-area-inset-bottom));grid-template-columns:repeat(3,44px);gap:5px;z-index:6}
 .museum.walk-open .touch-controls{display:grid}.museum .touch-controls button{width:44px;height:44px;font-size:21px;border-radius:8px;background:#f7f4ebef}
 .museum.mobile-immersive .museum-top,.museum.mobile-immersive .room-indicator,.museum.mobile-immersive .guided-tour,.museum.mobile-immersive .presence-button,.museum.mobile-immersive .touch-controls{display:none}
 .museum.mobile-immersive .mobile-gallery-actions{display:flex;justify-content:flex-end;pointer-events:none}.museum.mobile-immersive .mobile-gallery-actions>[data-rooms],.museum.mobile-immersive .mobile-gallery-actions>[data-walk]{display:none}.museum.mobile-immersive .mobile-gallery-actions>[data-clear]{pointer-events:auto;padding:10px 14px}
 .mobile-rooms-dialog,.mobile-room-info-dialog{position:fixed;inset:auto 8px calc(8px + env(safe-area-inset-bottom));margin:0;width:calc(100% - 16px);max-width:none;max-height:calc(85dvh - env(safe-area-inset-top));border-radius:14px;padding:22px 18px;box-shadow:0 12px 40px #0005}
 .mobile-rooms-dialog>.dialog-close,.mobile-room-info-dialog>.dialog-close{position:absolute;top:10px;right:10px;min-height:44px;min-width:44px}
 .art-dialog[open]{display:block;position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;padding:0;overflow:auto;border:0;border-radius:0;overscroll-behavior:contain}
 .art-dialog>.dialog-close{position:fixed;top:calc(8px + env(safe-area-inset-top));right:12px;min-height:44px;min-width:44px;z-index:20}
 .art-dialog .art-view{height:48dvh;padding:56px 18px 28px;min-height:210px}.art-dialog .art-info{display:block;height:auto;overflow:visible;padding:22px 20px calc(28px + env(safe-area-inset-bottom))}.art-dialog .museum-plaque{margin:18px 6px;padding:22px 16px}.art-dialog .museum-plaque h2{font-size:25px;line-height:1.2}.art-dialog .art-pagination{position:static;margin-top:20px;padding:16px 0 0}
 .catalogue-dialog[open]{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;padding:calc(18px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));border:0;overflow:auto}
 .catalogue-dialog .catalogue-head{gap:12px}.catalogue-dialog .catalogue-head .dialog-close{position:static;flex:0 0 44px;min-width:44px;min-height:44px}.catalogue-dialog .catalogue-tabs{overflow-x:auto;flex-wrap:nowrap;white-space:nowrap;padding:6px 0 10px;scrollbar-width:thin}.catalogue-dialog .catalogue-tabs button{flex-shrink:0;min-height:44px}
 .catalogue-dialog .catalogue-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}.catalogue-dialog .catalogue-art>div{height:170px;padding:10px}.catalogue-dialog .catalogue-art h3{font-size:15px;overflow-wrap:anywhere}
 .presence-dialog{width:calc(100% - 16px);max-width:560px;max-height:calc(100dvh - 24px);padding:22px 18px;overflow:auto}
 .voice-panel{bottom:calc(126px + env(safe-area-inset-bottom));right:12px;width:calc(100vw - 24px);max-height:65dvh}
}
@media(max-width:360px){.museum-title:after{display:none}}
@media(max-height:500px) and (pointer:coarse){.room-indicator{top:calc(54px + env(safe-area-inset-top))}.museum .touch-controls{left:auto;right:12px;bottom:calc(126px + env(safe-area-inset-bottom))}.art-dialog[open]{display:grid;grid-template-columns:1fr 1fr}.art-dialog .art-view{height:100dvh;position:sticky;top:0}.art-dialog .art-info{padding-top:54px}.catalogue-dialog .catalogue-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
