body[data-studio=model3d],body[data-studio=model3d] *,body[data-studio=model3d] *::before,body[data-studio=model3d] *::after{box-sizing:border-box}
body[data-studio=model3d] .ig-quick-toolbar{align-items:center;justify-content:space-between}
.m3-toolbar-end{display:flex;align-items:center;gap:9px;margin-left:auto}
.m3-photos,.m3-turn-photos{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.m3-photos[hidden]{display:none}
.m3-photo{position:relative;min-width:58px;max-width:128px}
.m3-photo img,.m3-turn-photos img{display:block;width:76px;height:61px;object-fit:cover;border:1px solid #e1e7db;border-radius:9px;background:#f3f5ef}
.m3-photo button{position:absolute;right:2px;top:2px;background:#fff;color:#38543c;border:1px solid #dbe6d8;border-radius:50%;font-size:16px;line-height:1;width:23px;height:23px;padding:0}
.m3-turn-photos{margin:6px 0 2px;justify-content:flex-end}
.m3-turn-photos:empty{display:none}
.m3-turn-photos img{width:104px;height:82px}
.m3-message-text{white-space:pre-wrap;overflow-wrap:anywhere}
.m3-turn .msg.bot .content{width:min(100%,620px);max-width:100%;min-width:0}
.m3-turn .msg.bot .content:empty{display:none}
.m3-turn .msg.bot .m3-message-text{margin:2px 0 8px}
.m3-turn .ig-consult-progress{margin:5px 0 4px}
.m3-dots{display:inline-flex;gap:4px}
.m3-dots i{display:block;width:5px;height:5px;border-radius:50%;background:currentColor;animation:m3-dot 1.1s ease-in-out infinite alternate}
.m3-dots i:nth-child(2){animation-delay:.17s}.m3-dots i:nth-child(3){animation-delay:.34s}
@keyframes m3-dot{from{opacity:.28;transform:translateY(1px)}to{opacity:1;transform:translateY(-1px)}}
@media(prefers-reduced-motion:reduce){.m3-dots i{animation:none}}
.m3-card{width:100%;border:1px solid #dce5d5;background:#fff;border-radius:14px;margin:8px 0 12px;overflow:hidden}
.m3-card-header,.m3-card-tools,.m3-downloads{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.m3-card-header{justify-content:space-between;padding:11px 13px;color:#294f38}
.m3-card-header strong{font-size:14px}.m3-card-header small{color:#53644d;font-size:12px}
.m3-viewport{position:relative;min-height:185px;aspect-ratio:2.65;background:radial-gradient(ellipse at 46% 62%,#305745,#142f28);color:white;overflow:hidden}
.m3-viewport::before{content:'';position:absolute;inset:0;background-image:linear-gradient(#e2f5e819 1px,transparent 1px),linear-gradient(90deg,#e2f5e819 1px,transparent 1px);background-size:22px 22px}
.m3-viewport canvas{display:block;position:absolute;inset:0;width:100%;height:100%;cursor:grab;touch-action:pan-y}
.m3-viewport canvas:active{cursor:grabbing}.m3-viewport canvas:focus-visible{outline:2px solid #acd9bd;outline-offset:-3px}
.m3-viewport img{position:absolute;inset:0;width:75%;height:90%;margin:auto;object-fit:contain;pointer-events:none}
.m3-viewport [hidden]{display:none}
.m3-view-note{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:16px;font-size:13px;color:#e0ede5;pointer-events:none}
.m3-card-tools{position:absolute;right:8px;bottom:8px;gap:5px}
.m3-card-tools button{width:35px;height:35px;border:1px solid #779281;border-radius:7px;background:#203e32;color:white;font-size:17px;cursor:pointer}
.m3-card-tools button:hover{background:#375d48}.m3-card-tools button:disabled{opacity:.5}
.m3-downloads{padding:9px 12px}
.m3-downloads .ig-button{min-height:35px;font-size:12px!important;padding:6px 12px}
.m3-assumptions{font-size:12px;color:#52634d;margin:0 12px 12px}.m3-assumptions summary{cursor:pointer}.m3-assumptions ul{margin:6px 0 0;padding-left:17px}
.m3-example-dialog{max-width:min(680px,calc(100vw - 28px))}
#m3Main .ig-feed-image{aspect-ratio:1.6;background:#e7efe5}#m3Main .ig-feed-image img{object-fit:contain;padding:8px}
#m3Main .ig-feed-preview{cursor:pointer;padding:0}
#m3History button.item{width:100%;background:transparent;border:0;text-align:left;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#m3History button.item:hover,#m3History button.item.active{background:#e1e8d8}
.ig-studio.has-conversation #m3Main .ig-create{display:flex;flex-direction:column;height:calc(100dvh - var(--m3-head-height,145px));min-height:405px}
.ig-studio.has-conversation #m3Main .ig-studio-thread{flex:1;min-height:115px;overflow:hidden}
.ig-studio.has-conversation #m3Main .ig-studio-thread .chat{height:100%;min-height:0}
.ig-studio.has-conversation #m3Main .ig-conversation-bar,.ig-studio.has-conversation #m3Main .ig-compose-dock{flex-shrink:0}
@media(max-width:600px){
  body[data-studio=model3d] .ig-studio.has-conversation .ig-promo-ozonradar{display:none}
  body[data-studio=model3d] .ig-studio.has-conversation .ig-studio-head{position:sticky;top:0}
  .m3-turn .msg.bot .content{width:100%}.m3-viewport{min-height:175px}.m3-turn-photos img{width:74px;height:63px}.m3-photos{margin-bottom:5px}
}
