/* MOOSSO3D visual system. Model handlers, storage and command contracts are unchanged. */
:root{--font:Inter,"Segoe UI","Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",sans-serif;--horn-bar-height:48px}
body:not(.ws-blender){--chrome:#f3f3f1;--chrome-2:#e9e9e6;--chrome-3:#fafaf9;--paper:#fff;--edge:#d9d9d6;--edge-2:#b8b8b3;--ink:#151515;--ink-2:#5c5c58;--ink-3:#787873;--accent:#222;--hover:#ecece9;--press:#deded9;--prompt-bg:#fff;--prompt-ink:#151515;--prompt-link:#343430;--cur-layer-bg:#eaeae6;--vp-title-active:#ffffffdf}
body.ws-blender{--accent:#d9d9d6;--hover:#454543;--press:#52524e}
html body #webbar{height:calc(48px + env(safe-area-inset-top));background:#fff;color:#151515;border-bottom:1px solid #d9d9d6;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:48px;padding:env(safe-area-inset-top) 14px 0;gap:10px;font-family:var(--font)}
html body #webbar strong{font-size:21px;letter-spacing:-.8px;font-weight:750;margin-right:18px}
html body #webbar button,html body #webbar select{background:#fff;color:#151515;border:1px solid #d9d9d6;min-height:34px;border-radius:3px;font-family:var(--font)}
html body #webbar button:hover{background:#f1f1ee}
html body .web-actions{gap:7px;align-items:center}
html body #web-status{font-size:11px;color:#64645f}
html body #horn-project-name{border:1px solid #d9d9d6;min-height:34px;border-radius:3px;background:#fff;color:#151515;padding:4px 8px}
body:not(.ws-blender) #titlebar{background:#fff;color:#151515}
body:not(.ws-blender) #ws-switch{border-color:#d9d9d6;border-radius:3px}
body:not(.ws-blender) #ws-switch button{background:#f7f7f5;color:#454541;border-color:#d9d9d6}
body:not(.ws-blender) #ws-switch button.on{background:#151515;color:#fff}
body:not(.ws-blender) .hp-title{background:#efefec;border-color:#d9d9d6;color:#151515}
body:not(.ws-blender) .hp-floating{border-color:#c5c5c0;box-shadow:0 8px 28px #00000018}
body:not(.ws-blender) .hp-floating .hp-body{background:#fff}
body:not(.ws-blender) .hp-actions button:hover{background:#deded9}
body:not(.ws-blender) .ib:hover,body:not(.ws-blender) .ib.on{border-color:#aaa9a3;background:#e9e9e5}
body:not(.ws-blender) :is(.rk-tabs button[aria-selected=true],.suite-tabs button[aria-selected=true]){background:#151515;color:#fff;border-color:#151515}
body:not(.ws-blender) #horn-shortcut-mode,body:not(.ws-blender) #horn-more-actions :is(button,a,select,input){border-color:#d9d9d6;border-radius:3px}
body:not(.ws-blender) :is(.pbtn,.menu,.menu-top,.tbtab,.rptab,.hp-web-controls button){font-family:var(--font)}
body:not(.ws-blender) :is(button,input,select,a):focus-visible{outline:2px solid #363632;outline-offset:2px}
body.ws-blender #ws-switch button.on{background:#e3e3df;color:#151515}
body.ws-blender .rk-tabs button[aria-selected=true]{background:#dededa;color:#151515;border-color:#dededa}
body #web-help{box-shadow:0 12px 40px #0002;border-color:#d9d9d6;font-family:var(--font)}
body #web-help h2{font-weight:650;letter-spacing:-.04em}
body #web-help button{min-width:44px;min-height:44px}
#moosso-home-link{font-weight:700;letter-spacing:-.04em}
@media(max-width:800px),(pointer:coarse){
html.horn-mobile-ui{--horn-bar-height:52px;--hm-bottom:calc(64px + env(safe-area-inset-bottom))}
html.horn-mobile-ui body #webbar{height:calc(52px + env(safe-area-inset-top))!important;grid-template-rows:52px!important;padding:env(safe-area-inset-top) max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left))!important;grid-template-columns:minmax(0,1fr)}
html.horn-mobile-ui body #webbar strong{font-size:19px!important;letter-spacing:-.75px;margin-right:auto!important}
html.horn-mobile-ui body #webbar button,html.horn-mobile-ui body #horn-mobile-mode{height:44px;min-height:44px!important;border:1px solid #dededa;border-radius:4px;background:#fff;color:#151515;font-size:14px;padding:4px 9px}
html.horn-mobile-ui body #app{height:calc(var(--horn-viewport-height) - 52px - env(safe-area-inset-top) - var(--hm-bottom))!important}
html.horn-mobile-ui body #horn-mobile-nav{background:#fff;color:#60605b;border-top:1px solid #d9d9d6;padding:4px max(5px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(5px,env(safe-area-inset-left))}
html.horn-mobile-ui body #horn-mobile-nav button{border-radius:4px;min-height:52px;font:11px var(--font);gap:4px}
html.horn-mobile-ui body #horn-mobile-nav button[aria-current=page]{background:#efefec;color:#151515;font-weight:650}
html.horn-mobile-ui body #horn-mobile-nav button:focus-visible{outline-color:#151515}
html.horn-mobile-ui body #horn-mobile-nav svg{width:22px;height:22px;stroke-width:1.6}
html.horn-mobile-ui body #horn-sheet-backdrop:not([hidden]){inset:calc(52px + env(safe-area-inset-top)) 0 var(--hm-bottom);background:#1515152b}
html.horn-mobile-ui body .hp-shell.hp-floating:not([hidden]){border-color:#d3d3ce!important;border-radius:12px 12px 0 0!important;box-shadow:0 -5px 24px #00000015!important;background:#fff;color:#151515;height:min(68dvh,calc(var(--horn-viewport-height) - 128px - env(safe-area-inset-top) - env(safe-area-inset-bottom)))!important}
html.horn-mobile-ui body .hp-shell.hp-floating>.hp-title{height:52px!important;min-height:52px!important;padding:0 12px 0 18px!important;background:#fff;color:#151515;border-bottom:1px solid #dededa;font:600 16px var(--font)}
html.horn-mobile-ui body .hm-panel-close{color:#151515;background:none;min-width:48px;height:48px;font-size:28px;font-weight:350}
html.horn-mobile-ui body .hp-floating>.hp-body{background:#fff;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
html.horn-mobile-ui body .hp-floating :is(button,select,input:not([type=checkbox]):not([type=color])){min-height:48px;font-size:16px}
html.horn-mobile-ui body #horn-mobile-tools{background:#fff;color:#151515;font-family:var(--font);padding:12px 16px}
html.horn-mobile-ui body #horn-mobile-tools button{border:1px solid #d9d9d6;border-radius:4px;padding:11px 14px;background:#fff;color:#151515;font-size:15px;min-height:48px}
html.horn-mobile-ui body #horn-mobile-tools h3{color:#676762;letter-spacing:.03em}
html.horn-mobile-ui body .hm-tool-grid{gap:9px}
html.horn-mobile-ui body .hm-snaps label{border-color:#dededa;border-radius:4px;min-height:48px}
html.horn-mobile-ui body #vptabs{min-height:38px;height:38px;gap:2px;align-items:center;padding:3px;background:#fff;border-top:1px solid #d9d9d6}
html.horn-mobile-ui body #vptabs>*{min-height:32px;font-size:11px;color:#55554f;padding:3px 8px;border-radius:3px;border:1px solid transparent}
html.horn-mobile-ui body #vptabs>.on{background:#151515;color:#fff;border-color:#151515}
html.horn-mobile-ui body #workspace-task,html.horn-mobile-ui body #cmdarea{background:#fff;color:#151515}
html.horn-mobile-ui body :is(#cmdinput,#workspace-measurements){font:16px var(--font);min-height:44px}
html.horn-mobile-ui body .render-kit,html.horn-mobile-ui body #horn-more-actions{--paper:#fff;--chrome-3:#f7f7f5;--ink:#151515;--ink-2:#64645f;--edge:#d9d9d6;--accent:#151515}
html.horn-mobile-ui[data-moosso-keyboard] {--hm-bottom:0px}
html.horn-mobile-ui[data-moosso-keyboard] #horn-mobile-nav,html.horn-mobile-ui[data-moosso-keyboard] #vptabs{display:none!important}
html.horn-mobile-ui[data-moosso-keyboard] #app{padding-bottom:env(safe-area-inset-bottom)}
html.horn-mobile-ui body #web-help{top:calc(62px + env(safe-area-inset-top));max-height:calc(var(--horn-viewport-height) - 126px)}
}
@media(max-width:359px){html.horn-mobile-ui body #webbar strong{font-size:16px!important}html.horn-mobile-ui body .web-actions{gap:4px}html.horn-mobile-ui body #horn-mobile-mode{max-width:82px;font-size:12px;padding:4px}}
@media(max-height:500px) and (pointer:coarse){html.horn-mobile-ui{--hm-bottom:calc(48px + env(safe-area-inset-bottom))}html.horn-mobile-ui body #horn-mobile-nav button{min-height:40px}html.horn-mobile-ui body .hp-shell.hp-floating:not([hidden]){height:calc(var(--horn-viewport-height) - 110px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important}html.horn-mobile-ui body #app>#osnapbar,html.horn-mobile-ui body #app>#statusbar{display:none!important}}
@media(prefers-reduced-motion:reduce){html body *{scroll-behavior:auto!important}}
/* The legacy workspaces define class-specific chrome; keep the visual layer authoritative. */
html body[class] #webbar{background:#fff!important;color:#151515!important;border-color:#d9d9d6!important;padding-right:64px!important}
html body[class] #webbar :is(button,select){background:#fff!important;color:#151515!important;border-color:#d9d9d6!important}
html body[class] #web-status{color:#64645f!important}
html body.horn-integrated:not(.ws-blender) #titlebar{background:#f7f7f5!important;color:#151515!important}
html body:not(.ws-blender) #titlebar .sub{color:#64645f}
html body:not(.ws-blender) .horn-workspace-symbol{filter:none!important}
html body:not(.ws-blender) :is(#horn-quick-tools,#menubar,#toolbar,#tb-tabs){background:#f7f7f5!important;color:#151515!important;border-color:#d9d9d6!important}
html body:not(.ws-blender) :is(.hqt-btn.on,.hqt-btn[aria-pressed=true],.horn-workbench button.active){background:#222!important;color:#fff!important;border-color:#222!important}
html body:not(.ws-blender) #ws-switch button.on{background:#222!important;color:#fff!important;border-color:#222!important}
@media(max-width:800px),(pointer:coarse){
html.horn-mobile-ui body[class] #webbar{padding-right:52px!important}
html.horn-mobile-ui body[class] #webbar .web-actions{gap:4px}
html.horn-mobile-ui body[class] #webbar strong{font-size:18px!important;margin-right:2px!important;flex-shrink:0}
html.horn-mobile-ui body[class] #webbar button{padding:4px 7px;font-size:12px}
html.horn-mobile-ui body[class] #horn-mobile-mode{font-size:12px;max-width:90px;padding:4px}
}

