/* XSUS App V3.2 — responsive & accessibility refinement. Design-only. */
:root{--xsus-focus:#67e8f9;--xsus-touch:44px;--xsus-radius:14px}
:where(button,a,input,textarea,select,[role="tab"]):focus-visible{outline:3px solid var(--xsus-focus);outline-offset:3px}
:where(button,a){-webkit-tap-highlight-color:transparent}
:where(.primary,.secondary,.icon-btn,.tab,.rail button){transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .18s ease}
:where(.primary,.secondary):active{transform:translateY(1px)}
:where(.chat-panel,.editor-panel,.dashboard-panel){min-width:0;min-height:0}
:where(.chat-messages,.editor-body){overscroll-behavior:contain}
:where(.panel-head,.editor-tools){min-width:0}
:where(.panel-head strong,.project-title){overflow-wrap:anywhere}
:where(.tabs,.device-tools){max-width:100%}
:where(.tabs){overflow-x:auto;scrollbar-width:thin}
:where(.tab){white-space:nowrap}
:where(.toast){max-width:min(400px,calc(100vw - 24px));overflow-wrap:anywhere}
:where(.composer textarea){max-width:100%;resize:vertical}
:where(.rail button){min-height:42px}
:where(.mobile-switch button){min-height:var(--xsus-touch);justify-content:center}
@media (min-width:701px) and (max-width:1180px){.work-main{grid-template-columns:65px minmax(300px,38%) minmax(0,1fr)}.editor-tools{gap:6px;flex-wrap:wrap}.device-tools{margin-left:auto}}
@media (max-width:700px){
  .work-main{min-height:0;flex:1}
  .chat-panel,.editor-panel{min-width:0;max-width:100%;overflow:hidden}
  .panel-head,.editor-tools{gap:8px}
  .composer{padding-bottom:max(10px,env(safe-area-inset-bottom))}
  .mobile-switch{height:auto;min-height:56px;padding:4px max(8px,env(safe-area-inset-right)) 4px max(8px,env(safe-area-inset-left));gap:6px}
  .mobile-switch button{flex:1;border-radius:9px;font-weight:650}
  .mobile-switch button.active{background:#16344a}
  .rail{max-height:100%;overflow-y:auto;padding-bottom:env(safe-area-inset-bottom)}
  .site-header{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}
  .site-mobile-nav:not(.hidden){max-height:65dvh;overflow-y:auto}
  .editor-tools{flex-wrap:wrap}
  .device-tools{margin-left:auto}
  .statusbar{padding-left:12px;padding-right:12px;gap:8px;flex-wrap:wrap}
}
@media(max-width:390px){.work-header .brand-mark{width:32px;height:32px;font-size:19px}.work-header .brand{gap:6px}.mobile-switch button{font-size:11px}.device-tools .icon-btn{padding:6px}}
@media(hover:none){:where(.primary,.secondary,.icon-btn,.tab):hover{filter:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media(forced-colors:active){:where(.tab.active,.mobile-switch button.active,.rail button.active){outline:2px solid Highlight;outline-offset:-2px}}
