#key-sync-conflict{position:fixed;z-index:500;left:50%;bottom:24px;transform:translateX(-50%);width:min(620px,calc(100% - 32px));box-sizing:border-box;background:#fffaf1;color:#263d34;border:1px solid #af9570;border-radius:20px;padding:20px;box-shadow:0 16px 64px #0006}#key-sync-conflict p{margin:8px 0 16px}#key-sync-conflict button{margin:4px;min-height:44px;white-space:normal}[data-sync=error],[data-sync=conflict]{color:#b14d25!important}.portal-studio #save-state{max-width:360px;white-space:normal}

.twin-embedded .key-return{display:none}
body.twin-embedded header.key-header{display:flex!important;height:54px!important;min-height:54px!important;padding:6px 12px!important;gap:12px!important}body.twin-embedded .key-header .project,body.twin-embedded .brand-family,body.twin-embedded #key-cart,body.twin-embedded #key-favorites{display:none!important}body.twin-embedded .key-uds b{font-size:26px}body.twin-embedded .key-header+nav+main{height:calc(100dvh - 132px)!important;min-height:0!important}body.twin-embedded .scene-heading{top:14px;left:16px;max-width:40%}body.twin-embedded .scene-heading h1,body.twin-embedded .scene-heading p{display:none}body.twin-embedded .view-tabs{top:12px;bottom:auto;right:12px;left:auto}body.twin-embedded:not(.chat-open) #companion{width:82px!important;bottom:88px!important;right:12px!important;top:auto!important;transform:none!important}body.twin-embedded:not(.chat-open) #companion iframe{height:110px!important}body.twin-embedded:not(.chat-open) #companion-chat{font-size:10px;min-height:36px;padding:6px}body.twin-embedded:not(.chat-open) #companion-options summary{font-size:9px;padding:5px}body.twin-embedded:not(.chat-open) #assistant-open{display:none}body.twin-embedded .scene-bottom{bottom:16px;right:104px;left:16px}body.twin-embedded .scene-bottom>span{display:none}body.twin-embedded #architecture-tools{top:auto;bottom:72px;left:16px;width:176px;max-height:55%}body.twin-embedded #architecture-tools>summary{min-height:28px}body.twin-embedded footer{padding-right:12px!important}
@media(max-width:740px){body.twin-embedded main{display:flex!important;flex-direction:column!important;overflow:auto!important}body.twin-embedded #viewport{order:-1;height:420px!important;min-height:420px!important;flex-shrink:0}body.twin-embedded #panel{overflow:visible;height:auto;flex-shrink:0}body.twin-embedded .view-tabs{top:40px;left:12px;right:12px;display:flex}body.twin-embedded .scene-heading{max-width:100%}body.twin-embedded .scene-bottom>div{max-width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:740px){body.twin-embedded #architecture-tools{bottom:132px;max-height:calc(100% - 240px)}}
