/* Add/Edit Listing page 107: BuddyBoss #primary has 30px of top padding.
   Removed only here after confirming the correction in live DevTools;
   leave global header clearance and other page layouts untouched. */
body.page-id-107 #primary { padding-top: 0; }

/* Magicians editor: structure and positioning only. UI Core owns component appearance. */
/* The shared card intentionally clips its corners; this editor card must
   allow its section selector to escape the shell. */
.cnjrly-section-card.cnjrly-form-nav { width:100%; margin-bottom:var(--cj-gap-card); overflow:visible; border:0; background:transparent; }
.cnjrly-form-nav .cnjrly-section-card__header { margin:0; padding:14px 18px 15px; border-radius:var(--cj-radius-card) var(--cj-radius-card) 0 0; }
.cnjrly-form-sticky-slot { position:relative; z-index:80; }
.cnjrly-form-toolbar { position:relative; box-sizing:border-box; display:flex; align-items:center; justify-content:space-between; gap:var(--cj-gap-card,12px); min-height:54px; padding:9px 14px; background:var(--cj-surface-primary); border:1px solid var(--cj-border-light); border-top:0; border-radius:0 0 var(--cj-radius-card) var(--cj-radius-card); box-shadow:var(--cj-shadow-card); }
.cnjrly-form-toolbar--fixed { position:fixed; z-index:1000; border-top:1px solid var(--cj-border-light); }
.cnjrly-form-menu-wrap { position:relative; min-width:0; }
.cnjrly-form-actions { display:flex; align-items:center; gap:var(--cj-gap-card,8px); margin-left:auto; }
.cnjrly-form-toolbar .cnjrly-form-button { display:inline-flex; align-items:center; justify-content:center; white-space:nowrap; width:auto; margin:0; cursor:pointer; }
.cnjrly-form-menu { position:absolute; z-index:1010; top:calc(100% + 5px); max-height:min(65vh,480px); overflow:auto; padding:6px; background:var(--cj-surface-primary); border:1px solid var(--cj-border-light); border-radius:var(--cj-radius-input); box-shadow:var(--cj-shadow-modal); }
.cnjrly-form-menu { left:0; width:min(320px,85vw); }
.cnjrly-form-menu[hidden],.cnjrly-form-help-panel[hidden] { display:none; }
.cnjrly-form-menu-item { display:flex; width:100%; justify-content:flex-start; text-align:left; }
.cnjrly-form-save-status { max-width:220px; font-size:var(--cj-btn-font-size-sm); }
/* Help follows the toolbar when the sticky behavior moves it into the body. */
.cnjrly-form-help-panel { position:absolute; top:calc(100% + 6px); right:0; z-index:1020; box-sizing:border-box; width:min(420px, calc(100vw - 32px)); padding:12px 16px; border:1px solid var(--cj-border-light); border-radius:var(--cj-radius-input); box-shadow:var(--cj-shadow-modal); background:var(--cj-surface-primary); }
.cnjrly-form-toolbar .cnjrly-form-action-icon { display:none; }

.cnjrly-form-old-title { display:none; }
@media(max-width:767px) {
 .cnjrly-form-nav .cnjrly-section-card__header { padding:14px 16px 15px; }
 .cnjrly-form-toolbar { display:flex; flex-flow:row nowrap; align-items:center; justify-content:space-between; gap:4px; min-height:48px; padding:6px 8px; }
 .cnjrly-form-actions { display:flex; flex-flow:row nowrap; align-items:center; gap:4px; flex-shrink:0; }
 .cnjrly-form-save-status { display:none; }
 .cnjrly-form-toolbar .cnjrly-form-button { min-width:0; flex:0 0 auto; }
 .cnjrly-form-toolbar .cnjrly-form-action-label { display:none; }
 .cnjrly-form-toolbar .cnjrly-form-action-icon { display:inline-block; width:19px; height:19px; }
 /* Contextual hit area for icon-only actions; their colors, focus and radius remain UI Core-owned. */
 .cnjrly-form-toolbar .cnjrly-form-icon-button { width:40px; min-width:40px; height:40px; min-height:40px; padding:0; }

}
