.vv-has-r3d{display:flex;flex-direction:column}
.vv-has-r3d .placeholder{min-height:0;padding:6px 0 0}
.vv-has-r3d .placeholder-icon{display:none}
.vv-r3d{flex:1;display:flex;flex-direction:column;margin-top:16px;min-height:0}
.vv-r3d-stage{position:relative;flex:1;min-height:300px;border-radius:16px;overflow:hidden;border:1px solid #ece4d8;background:radial-gradient(120% 90% at 50% 35%,#fffaf2,#f3ece2)}
.vv-r3d-stage .vv3d{position:absolute;inset:0}
.vv-r3d-stage canvas{display:block;width:100%!important;height:100%!important}
.vv-r3d-stage iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.vv-r3d-pic{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .4s}
.vv-r3d.live .vv-r3d-pic,.vv-r3d.live .vv-r3d-go{opacity:0;pointer-events:none}
.vv-r3d-go{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);border:0;border-radius:12px;padding:11px 18px;font:700 .9rem 'DM Sans',-apple-system,'Segoe UI',sans-serif;color:#fff;background:#14204a;cursor:pointer;box-shadow:0 8px 22px rgba(20,32,74,.28)}
.vv-r3d-go:hover{background:#ff7b00}
.vv-r3d-chip{position:absolute;left:12px;top:12px;display:flex;align-items:baseline;gap:6px;padding:7px 12px;border-radius:12px;background:rgba(255,255,255,.92);border:1px solid rgba(20,32,74,.1);box-shadow:0 4px 14px rgba(20,32,74,.1);font:600 .74rem 'DM Sans',-apple-system,sans-serif;color:#4a5263;pointer-events:none}
.vv-r3d-chip b{font:700 1.15rem 'DM Mono',monospace;color:#14204a;letter-spacing:-.5px}
.vv-r3d-chip[hidden],.vv-r3d.nolab .vv-r3d-chip{display:none}
.vv-r3d-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;font:500 .76rem 'DM Sans',-apple-system,sans-serif;color:#7a8190}
.vv-r3d-bar a{color:#c25a00;font-weight:700;text-decoration:none}
.vv-r3d-bar a:hover{text-decoration:underline}
.vv-r3d-lab{flex:none;display:inline-flex;align-items:center;gap:7px;border:1px solid #e3dccf;background:#fff;border-radius:999px;padding:5px 11px 5px 7px;font:600 .74rem 'DM Sans',-apple-system,sans-serif;color:#14204a;cursor:pointer}
.vv-r3d-lab[hidden]{display:none}
.vv-r3d-lab i{width:26px;height:15px;border-radius:999px;background:#ff7b00;position:relative;transition:background .2s}
.vv-r3d-lab i:after{content:"";position:absolute;top:2px;left:13px;width:11px;height:11px;border-radius:50%;background:#fff;transition:left .2s}
.vv-r3d-lab[aria-pressed=false] i{background:#c9ced8}
.vv-r3d-lab[aria-pressed=false] i:after{left:2px}
.vv-r3d .vv3d-off{display:none}
@media(max-width:640px){.vv-r3d-stage{min-height:260px}}
@media(orientation:landscape) and (max-height:500px){.vv-has-r3d{display:block}.vv-r3d{flex:none}.vv-r3d-stage{flex:none;min-height:0;height:250px}.vv-r3d-chip{font-size:.68rem}.vv-r3d-chip b{font-size:1rem}}
/* phone turned sideways: menu goes behind the button, inputs and result sit side by side at full width */
@media(min-width:641px) and (max-width:960px) and (max-height:500px) and (orientation:landscape){
.shell,.app{grid-template-columns:1fr!important}
.sidebar{position:fixed!important;left:0;top:var(--nav-h,60px);bottom:0;width:260px;transform:translateX(-100%);z-index:80;transition:transform .3s;box-shadow:4px 0 24px rgba(0,0,0,.15);overflow-y:auto;overflow-x:hidden;padding-bottom:80px}
.sidebar.open{transform:translateX(0)}
#sidebarPanel[data-vv-managed="grid"]{position:fixed!important;top:56px;left:0;bottom:0;width:272px;height:auto!important;transform:translateX(-100%);transition:transform .25s ease;z-index:80;overflow-y:auto;box-shadow:2px 0 16px #0000000a}
#sidebarPanel[data-vv-managed="grid"].open{transform:translateX(0);box-shadow:4px 0 32px #00000018}
.mob-overlay{display:none;position:fixed;inset:0;top:var(--nav-h,60px);background:rgba(0,0,0,.4);z-index:75}.mob-overlay.show{display:block}
.menu-btn-nav{display:flex!important;width:44px!important;height:44px!important}
.main{padding:14px 14px 40px!important}
.vv-has-r3d.mc .vv-r3d-stage{height:auto!important;min-height:0!important;flex:none;max-height:calc(100vh - 130px)}
}
.content-grid>*,.content-grid-3>*{min-width:0}.content-grid>*>.card{min-width:0}
/* simulator embeds: result plate on the 3D stage */
.vv-r3d.is-emb .vv-r3d-chip{z-index:3;align-items:center;gap:8px;max-width:calc(100% - 24px);pointer-events:none}
.vv-r3d-chip i{flex:none;width:9px;height:9px;border-radius:50%}
.vv-r3d-chip span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:uppercase;letter-spacing:.04em;font-size:.66rem;color:#5b6477}
.vv-r3d-chip b{white-space:nowrap}
.vv-r3d-chip.long b{font-size:.92rem;letter-spacing:-.3px}
/* once the live simulator is showing, it draws the result card itself */
.vv-r3d.live.world-res .vv-r3d-chip{display:none}
.vv-r3d.is-emb .vv-r3d-cap{display:block;line-height:1.45}
/* the lab picture stays on top until the simulator has settled on the right model */
.vv-r3d.loading .vv-r3d-go{pointer-events:none;background:#14204a;opacity:.85}
.vv-r3d.loading iframe{visibility:hidden}
