/* Responsive layer. No application state, logic, data, or security changes. */
@media screen and (max-width:960px){
  header.up-header .up-top{padding:10px 16px!important;gap:8px!important}
  header.up-header .up-actions :is(button,a){min-height:44px!important;min-width:44px!important}
  header.up-header nav.up-nav{padding-inline:16px!important;align-items:start!important}
  header.up-header nav.up-nav.up-menu-open{max-height:60vh!important;max-height:60dvh!important;overflow-y:auto!important;overscroll-behavior-y:contain;scrollbar-width:thin}
  header.up-header .up-nav summary{min-height:44px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:5px!important;line-height:1.4!important}
  header.up-header .up-links a{min-height:44px!important;display:flex!important;flex-direction:column;justify-content:center!important;overflow-wrap:anywhere}
  header.up-header .up-links{max-height:none!important;overflow:visible!important}
  .up-foot-inner{padding-inline:16px!important}
  .up-foot-grid a{min-height:32px!important;overflow-wrap:anywhere}
  main :is(.table-wrap,.table-scroll,.yt-table-wrap,.lgs-table-wrap,.chart-box,.up-table-scroll){max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
  main :is(.upw-nav,.upw-top) button{min-height:44px}
  main :is(.upw-nav,.table-wrap,.table-scroll,.yt-table-wrap,.lgs-table-wrap):focus-visible{outline:2px solid #087b80;outline-offset:2px}
  main.up-workspace-main :is(.fields,.field-grid,.formgrid,.actions,.workbar,.tabs,.actionrow)>*{min-width:0;max-width:100%}
  main.up-workspace-main :is(.fields,.field-grid,.formgrid,.actions) label{min-width:0;max-width:100%;overflow-wrap:anywhere}
  main.up-workspace-main :is(.fields,.field-grid,.formgrid,.actions) input[type=file]{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
  main.up-workspace-main :is(.actions,.workbar,.tabs,.actionrow) :is(button,a.button,a.btn){min-height:44px;white-space:normal}
  main.up-workspace-main .upw-toolbar{max-width:100%;min-width:0}
  main.up-workspace-main .upw-nav{overscroll-behavior-x:contain}
  main.up-workspace-main #bulk .chart-box{max-width:100%}
  main :is(.yt-grid-4,.yt-grid-3)>*{min-width:0;max-width:100%}
  main :is(.yt-grid-4,.yt-grid-3) :is(input,select){min-width:0;max-width:100%;box-sizing:border-box}
  main .game :is(.option,.symbolgrid button,.toolbar button){min-height:48px;touch-action:manipulation}
  main .game .symbolgrid>*{min-width:0;overflow-wrap:anywhere}
  main :is(.game, .video-panel) video{max-width:100%;height:auto}
  .up-home-refresh .up591-tool button{width:44px;height:44px}
}
@media screen and (max-width:600px){
  header.up-header .up-brand{max-width:100%!important;min-width:0!important}
  header.up-header .up-actions{gap:5px!important;max-width:100%!important}
  header.up-header .up-actions :is(button,a){padding:6px 9px!important}
  header.up-header .up-nav{gap:7px!important}
  .up-path{overflow-wrap:anywhere}
  main :is(input:not([type]),input[type=text],input[type=search],input[type=email],input[type=number],input[type=password],input[type=date],input[type=month],select,textarea){font-size:16px}
  main.up-workspace-main :is(.fields,.field-grid,.formgrid) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){min-height:44px;width:100%;box-sizing:border-box}
  main.up-workspace-main .actions>label{flex:1 1 100%;width:100%}
  main.up-workspace-main .actions>button{min-width:0;max-width:100%;overflow-wrap:anywhere}
  main .game .budgetitem{flex-wrap:wrap;min-width:0}
  main .game .option{line-height:1.5}
  .up-home-refresh .up-home-search form{min-width:0}
  .up-home-refresh .up-home-search button{min-height:44px;padding-inline:12px}
}
@media screen and (max-width:360px){
  header.up-header .up-top{padding-inline:12px!important}
  header.up-header .up-actions{width:100%!important;justify-content:flex-start!important}
  header.up-header nav.up-nav{padding-inline:12px!important;grid-template-columns:1fr!important}
  nav.up-foot-grid{grid-template-columns:1fr!important}
  main.up-workspace-main :is(.panel,#bulk){padding-inline:11px}
  main.up-workspace-main .actions>button{flex:1 1 100%}
  main.up-workspace-main #bulk .chart-box{padding:7px}
  main.up-workspace-main .upw-top button{width:100%}
  main .game .symbolgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .up-home-refresh .up-home-wrap,.up-home-refresh>.up-home-groups{padding-inline:12px}
}
@media screen and (max-width:1100px) and (max-height:540px) and (orientation:landscape){
  header.up-header nav.up-nav.up-menu-open{max-height:52vh!important;max-height:52dvh!important}
  body.upw-focus .upw-toolbar{position:relative;top:auto}
  body.upw-focus .up-workspace-main [data-upw-target]{scroll-margin-top:18px}
}
