/* SwiftWorksheets v1.6.4 — reserved, NOT overlay, editor ad in Properties.
   Only show if script activates an approved placement or ?ad-preview=1.
   300x250 fixed dimensions; never scale/clip live ad. */
#editorAdArea[hidden]{display:none!important}
#editorAdArea{box-sizing:border-box;flex:0 0 auto;min-width:0;padding:13px 13px 14px;
  border-top:1px solid #e1e8f2;background:#fff;display:flex;align-items:center;
  flex-direction:column;gap:6px;z-index:0;position:relative}
#editorAdArea .editor-ad-label{font:500 10px/12px Arial,sans-serif;color:#718099;letter-spacing:.02em}
#editorAdArea .editor-ad-slot{box-sizing:border-box;width:300px;height:250px;
  flex:0 0 250px;display:flex;align-items:center;justify-content:center;background:transparent}
#editorAdArea .editor-ad-preview{box-sizing:border-box;width:300px;height:250px;
  border:1px dashed #b7c7db;border-radius:7px;background:#f6f9ff;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;
  color:#5c7193;font:600 12px/16px Arial,sans-serif;pointer-events:none;user-select:none}
#editorAdArea .editor-ad-preview small{font:400 10px/14px Arial,sans-serif}
/* Change to 328px only when ad is shown: free the width otherwise. */
@media(min-width:1366px) and (min-height:800px){
 body.sw-editor-banner-active .app-shell{grid-template-columns:266px minmax(0,1fr) 328px}
 body.sw-editor-banner-active .right-sidebar .settings-scroll{flex:1 1 auto;min-height:0;overflow-y:auto}
}
/* Real ad requests are prevented by JS at small viewports, not CSS alone. */
@media(max-width:1365px), (max-height:799px){#editorAdArea{display:none!important}}
@media print{#editorAdArea{display:none!important}}
