#appearance{color:var(--light);background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:7px 4px;font:600 .82rem system-ui;min-height:36px}
.header .nav{margin-left:auto}
@media(max-width:960px){.header .nav{gap:12px}}
@media(max-width:850px){.header .nav a:not(.button){display:none}}
@media(max-width:450px){.header{gap:6px}.header .nav .button{font-size:.78rem;padding:8px}.header .company-logo{width:100px}}
html[data-theme=dark]{color-scheme:dark;--ink:#1a1716;--panel:#28221f;--light:#fff3e6;--soft:#dcc8b7;--line:#514238;--accent:#efb894}
[data-theme=dark] body{background:radial-gradient(ellipse at 88% 34%,#30251e,transparent 47%),var(--ink)}
[data-theme=dark] .company-logo{filter:brightness(0) invert(.94)}
[data-theme=dark] :is(.room-info,.uni-shell,.room-demo .patch-demo,.contact,dialog,.rack-connections,.patch-wifi-view){background:#2b2420;color:var(--light);border-color:var(--line)}
[data-theme=dark] :is(.service-open,.icon,.room-status){color:#ffc59e}
[data-theme=dark] :is(.room-layout:has(.home-preview) #smart-tablet[open],.room-layout:has(.home-preview) #smart-tablet:modal){background:#302722ed;color:#fff3e6}
[data-theme=dark] :is(#smart-tablet .tablet-grid button,.close-dialog,.rack-palette label,.rack-palette button,.uni-tabs button,.uni-switch button){background:#40342c;color:#fff2e4;border-color:#79604e}
[data-theme=dark] .tablet-grid small{color:#eacbb4}
[data-theme=dark] :is(.rack-palette,.uni-tabs,.uni-switch) button[aria-pressed=true],[data-theme=dark] .header .button{background:#eeb48c;color:#271c15}
@media(prefers-reduced-motion:no-preference){
  .hero,.room-scene,.hall-scene,.rack-photo{transform:perspective(1150px) rotateX(var(--depth-angle,0deg));transform-origin:50% 55%;backface-visibility:hidden}
}
