/* Editor dialogs: loaded after portal-controls, before skins. */
.portal-rule-validation-error { text-align:left !important; color:#f07057 !important; border:1px solid #735046; background:#302522; padding:12px 16px !important; border-radius:6px; margin:12px 0; font-weight:400 !important; }
.portal-rule-discard-dialog h2 { margin:0 0 12px; font:600 28px/1.25 "Barlow Condensed","Segoe UI",sans-serif; }
.portal-service-message { padding:16px !important; color:inherit; }
.portal-settings-search-inherited { display:block; font-size:12px; font-weight:400; color:#aaa; margin-top:4px; }
.portal-rule-editor-dialog { box-sizing:border-box; width:calc(var(--portal-form-width, 1200px) + 52px); max-width:calc(100% - 32px); height:calc(100dvh - 64px); max-height:900px; padding:0; border:1px solid #d5d9df; border-radius:10px; background:#fafafa; color:#464b51; overflow:hidden; }
.portal-rule-editor-dialog[open] { display:flex; flex-direction:column; }
.portal-rule-editor-dialog.portal-tray-editor-dialog { width:calc(var(--portal-form-width, 1200px) + 52px); height:calc(100dvh - 64px); max-height:900px; }
.portal-rule-editor-frame .portal-rule-single-tab-strip { display:none !important; }
.portal-tray-editor-dialog h2 { overflow-wrap:anywhere; }
.portal-rss-subscribe-dialog { box-sizing:border-box; width:560px; max-width:calc(100% - 32px); max-height:calc(100dvh - 32px); overflow:auto; padding:24px; border:1px solid #d5d9df; border-radius:10px; background:#fafafa; color:#464b51; font:400 16px/1.5 "Source Sans 3","Segoe UI",sans-serif; }
.portal-rss-subscribe-dialog::backdrop { background:rgba(0,0,0,.65); }
.portal-rss-subscribe-dialog header { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.portal-rss-subscribe-dialog h2 { margin:0; font:600 28px/1.25 "Barlow Condensed","Segoe UI",sans-serif; }
.portal-rss-subscribe-dialog [data-close] { border:0; background:transparent; color:inherit; padding:0 4px; font-size:28px; }
.portal-rss-subscribe-dialog label { display:block; margin:16px 0; }
.portal-rss-subscribe-dialog :is(select,input) { box-sizing:border-box; display:block; width:100%; margin-top:6px; padding:8px 10px; border:1px solid #aaa; border-radius:5px; background:#fff; color:inherit; font:inherit; }
.portal-rss-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:12px; }
.portal-rss-subscribe-dialog [role="status"] { margin:12px 0 0; min-height:24px; }
html[data-portal-skin="dark"] .portal-rss-subscribe-dialog { background:#222; color:#e0e0e0; border-color:#444; }
html[data-portal-skin="dark"] .portal-rss-subscribe-dialog :is(select,input) { background:#1c1c1c; border-color:#555; }
.portal-rule-editor-dialog::backdrop { background:rgba(0,0,0,.65); }
.portal-rule-editor-dialog > header { display:flex; flex:none; align-items:center; justify-content:space-between; gap:16px; padding:16px 22px; border-bottom:1px solid #d5d9df; }
.portal-rule-editor-dialog h2 { margin:0; min-width:0; overflow-wrap:anywhere; font:600 28px/1.25 "Barlow Condensed","Segoe UI",sans-serif; color:inherit; }
.portal-rule-editor-dialog > header button { padding:0 8px; border:0; background:transparent; color:inherit; font:400 28px/1.2 "Source Sans 3",sans-serif; cursor:pointer; }
.portal-rule-editor-body { position:relative; flex:1; min-height:0; background:inherit; }
.portal-rule-editor-dialog iframe { display:block; height:100%; width:100%; border:0; background:#fafafa; }
.portal-rule-editor-loading { position:absolute; inset:0; z-index:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:20px; padding:24px; background:inherit; text-align:center; font:400 16px/1.5 "Source Sans 3",sans-serif; }
.portal-rule-editor-loading[hidden] { display:none; }
.portal-rule-editor-frame :is(#topHead,#topNav,footer,#page-title,.portal-sidebar,.portal-global-sidebar,.portal-page-heading,.portal-settings-search,.portal-customer-brand-row,.portal-page-customer-logo) { display:none !important; }
.portal-rule-editor-frame { margin:0 !important; padding-top:0 !important; padding-bottom:0 !important; min-height:0 !important; }
.portal-rule-editor-frame #wrapper { min-height:0 !important; margin:0 !important; padding-bottom:0 !important; }
.portal-shell.portal-rule-editor-frame #wrapper.portal-workspace { padding-top:0 !important; min-height:0 !important; }
.portal-rule-editor-frame :is(.portal-shell-row,.portal-dual-navigation) { display:block !important; min-height:0 !important; }
.portal-rule-editor-frame .portal-main { margin:0 auto !important; width:100% !important; min-height:0 !important; padding:16px !important; }
.portal-rule-editor-frame .portal-main > section.container { padding-bottom:0 !important; }
.portal-rule-editor-frame .settingspage > .row > .col-lg-2 { display:none !important; }
.portal-rule-editor-frame .settingspage > .row > .col-lg-10 { width:100% !important; max-width:100% !important; padding-inline:0 !important; }
.portal-rule-editor-frame .portal-all-settings > section.container { padding-top:0 !important; padding-bottom:0 !important; }
.portal-rule-editor-frame .portal-main .portal-section { padding-top:12px; padding-bottom:16px; }
.portal-rule-editor-frame .portal-section:has(.portal-card) > .portal-section-heading { display:none !important; }
html[data-portal-skin="dark"] .portal-rule-editor-dialog { background:#181818; color:#e0e0e0; border-color:#444; }
html[data-portal-skin="dark"] .portal-rule-editor-dialog > header { border-color:#444; }
html[data-portal-skin="dark"] .portal-rule-editor-dialog iframe { background:#181818; }
@media(max-width:600px) { .portal-rule-editor-dialog { max-width:calc(100% - 16px); height:calc(100dvh - 16px); } .portal-rule-editor-dialog > header { padding:12px 14px; } .portal-rule-editor-dialog h2 { font-size:24px; } }
