/* Full viewport options workspace; existing controls, values and editor handlers stay intact. */
#menu-overlay:has(#swos-screen-options:not([hidden])){padding:12px 16px calc(var(--rai-identity-height,42px) + 20px);box-sizing:border-box;align-items:flex-start;overflow:hidden;}
#menu-overlay:has(#swos-screen-options:not([hidden])) .swos-shell{width:100%;max-width:none;height:calc(100dvh - var(--rai-identity-height,42px) - 36px);max-height:calc(100dvh - var(--rai-identity-height,42px) - 36px);min-height:0;overflow:hidden;}
#swos-screen-options:not([hidden]){display:grid;width:100%;height:100%;min-height:0;grid-template-columns:minmax(260px,.9fr) minmax(460px,1.65fr) minmax(260px,.85fr);grid-template-rows:auto minmax(0,1fr) auto;gap:12px;align-items:start;}
#swos-screen-options>*{box-sizing:border-box;min-width:0;}
#swos-screen-options>.swos-header-bar{grid-area:1/1/2/-1;width:100%;margin:0;padding:8px 12px;font-size:15px;min-height:36px;}
#swos-screen-options>.swos-options-list{grid-area:2/1/3/2;width:100%;max-height:100%;overflow:auto;gap:7px;padding:12px;border:1px solid #426988;border-radius:7px;background:#091b2de8;}
#swos-screen-options .swos-option-row{min-height:42px;padding:8px 10px;font-size:11px;line-height:1.5;gap:10px;}
#swos-screen-options .opt-key{min-width:0;}.opt-val{overflow-wrap:anywhere;}
#swos-screen-options>.rai-adboard-editor{grid-area:2/2/3/3;align-self:stretch;width:100%;max-width:none;min-height:0;max-height:none;margin:0;padding:12px;overflow:auto;scrollbar-gutter:stable;}
#swos-screen-options>.rai-stadium-settings{grid-area:2/3/3/4;align-self:start;width:100%;max-width:none;margin:0;padding:14px;display:grid;grid-template-columns:minmax(0,1fr);gap:14px;font-size:12px;background:#091b2de8;}
#swos-screen-options>.rai-stadium-settings h3{font-size:14px;line-height:1.5;margin:0 0 4px;grid-column:1/-1;}
#swos-screen-options>.rai-stadium-settings label{min-width:0;display:grid;gap:8px;line-height:1.5;}
#swos-screen-options>.rai-stadium-settings select,#swos-screen-options>.rai-stadium-settings button{width:100%;min-width:0;min-height:38px;padding:8px;font:11px/1.5 Orbitron,sans-serif;box-sizing:border-box;}
#swos-screen-options>.rai-stadium-settings .rai-flyover-check{display:flex;align-items:center;gap:10px;}
#swos-screen-options>.swos-bottom-action-row{grid-area:3/1/4/-1;margin:0;gap:12px;padding:8px 10px;background:#061427e8;border:1px solid #426988;border-radius:6px;justify-content:space-between;}
#swos-screen-options>.swos-bottom-action-row .swos-bar{min-height:36px;padding:6px 16px;font-size:12px;}
#swos-screen-options .rai-adboard-fields{gap:10px;}
#swos-screen-options .rai-adboard-editor label{font-size:10px;gap:5px;}
#swos-screen-options .rai-adboard-editor input:not([type=checkbox]),#swos-screen-options .rai-adboard-editor select,#swos-screen-options .rai-adboard-editor textarea{min-height:32px;padding:7px;font-size:11px;}
#swos-screen-options .rai-adboard-editor input[type=color]{padding:3px;height:32px;}
#swos-screen-options .rai-adboard-editor button{padding:7px 10px;min-height:32px;}
#swos-screen-options .rai-adboard-toolbar{margin:10px 0;}
#swos-screen-options .rai-adboard-preview{margin:10px 0;padding:12px 16px;min-height:68px;}
#swos-screen-options .rai-adboard-ai{margin:10px 0;padding:10px;}
#swos-screen-options .rai-adboard-ai textarea{height:145px;min-height:80px;}
#swos-screen-options *{scrollbar-width:thin;scrollbar-color:#5d89ac #071929;}
@media(max-width:1199px) and (min-width:901px){
 #swos-screen-options:not([hidden]){grid-template-columns:minmax(280px,.9fr) minmax(460px,1.5fr);grid-template-rows:auto minmax(0,1fr) auto;}
 #swos-screen-options>.swos-options-list{grid-area:2/1/3/2;align-self:start;max-height:calc(100% - 295px);}
 #swos-screen-options>.rai-stadium-settings{grid-area:2/1/3/2;align-self:end;grid-template-columns:1fr 1fr;gap:9px;padding:12px;}
 #swos-screen-options>.rai-stadium-settings button,#swos-screen-options>.rai-stadium-settings .rai-flyover-check{grid-column:1/-1;}
 #swos-screen-options>.rai-adboard-editor{grid-area:2/2/3/3;}
}
@media(max-width:900px){
 #menu-overlay:has(#swos-screen-options:not([hidden])){padding:8px 8px calc(var(--rai-identity-height,42px) + 14px);}
 #menu-overlay:has(#swos-screen-options:not([hidden])) .swos-shell{height:calc(100dvh - var(--rai-identity-height,42px) - 28px);max-height:calc(100dvh - var(--rai-identity-height,42px) - 28px);overflow:auto;}
 #swos-screen-options:not([hidden]){display:flex;flex-direction:column;height:auto;gap:10px;align-items:stretch;}
 #swos-screen-options>.swos-header-bar{position:sticky;top:0;z-index:3;min-height:36px;font-size:12px;}
 #swos-screen-options>.swos-options-list{max-height:none;overflow:visible;flex:none;}
 #swos-screen-options>.rai-adboard-editor{max-height:none;overflow:visible;flex:none;}
 #swos-screen-options>.rai-stadium-settings{grid-template-columns:1fr 1fr;flex:none;}
 #swos-screen-options>.rai-stadium-settings button,#swos-screen-options>.rai-stadium-settings .rai-flyover-check{grid-column:1/-1;}
 #swos-screen-options>.swos-bottom-action-row{order:10;position:sticky;bottom:0;z-index:3;flex-wrap:wrap;justify-content:center;flex:none;}
 #swos-screen-options>.swos-bottom-action-row .swos-bar{min-width:0;width:auto;font-size:10px;}
}
@media(max-width:480px){#swos-screen-options>.rai-stadium-settings{grid-template-columns:minmax(0,1fr);}#swos-screen-options .swos-option-row{font-size:10px;}}
