#r7-preview .r7-organized-form{padding:20px}
#r7-preview .r7-form-section{border:1px solid var(--border);border-radius:11px;margin:16px 0;background:var(--panel)}
#r7-preview .r7-form-section>summary{padding:16px 18px;cursor:pointer;list-style:none;position:relative;padding-right:42px}
#r7-preview .r7-form-section>summary::-webkit-details-marker{display:none}#r7-preview .r7-form-section>summary:after{content:'+';position:absolute;right:18px;top:18px;color:var(--green);font-size:20px}#r7-preview .r7-form-section[open]>summary:after{content:'−'}
#r7-preview .r7-form-section>summary strong{display:block;font-size:16px}#r7-preview .r7-form-section>summary span{display:block;font-size:12px;color:var(--muted);margin-top:3px}
#r7-preview .r7-form-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:0 18px 20px;min-width:0}
#r7-preview .r7-form-fields>.admin-field,#r7-preview .r7-form-fields>label{min-width:0;margin:0}#r7-preview .r7-form-fields label{margin-top:0;font-size:13px}#r7-preview .r7-form-fields input:not([type=checkbox]):not([type=color]),#r7-preview .r7-form-fields textarea,#r7-preview .r7-form-fields select{width:100%;min-width:0}
#r7-preview .r7-field-wide,#r7-preview .r7-form-editor-section,#r7-preview .r7-form-fields>label:has([name=title]),#r7-preview .r7-form-fields>label:has([name=asset]){grid-column:1/-1}
#r7-preview .r7-form-editor-section{min-width:0;border-top:1px solid var(--border);padding-top:10px}#r7-preview .r7-form-editor-section>summary{cursor:pointer;font-weight:600;padding:8px 0;color:var(--text)}#r7-preview .r7-form-editor-section>.admin-field>label{display:none}
#r7-preview .r7-form-fields .small{font-size:12px;line-height:1.6;margin:7px 0 0}
#r7-preview .r7-form-savebar{position:sticky;bottom:12px;z-index:25;display:flex;justify-content:space-between;align-items:center;gap:12px;background:var(--panel);border:1px solid var(--border);border-top:2px solid var(--green);padding:13px 16px;border-radius:10px;margin-top:20px;box-shadow:0 4px 18px #0003}
#r7-preview .r7-form-change-status{font-size:12px;color:var(--muted)}#r7-preview .r7-form-save-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}#r7-preview .r7-form-save-actions .action{font-size:13px}
#r7-preview .r7-form-section[hidden],#r7-preview .r7-organized-form .admin-field[hidden]{display:none!important}
/* Keep every rich editor toolbar above its own bounded scrolling content. */
#r7-preview .editor-shell{min-width:0;max-width:100%}#r7-preview .editor-area{max-height:min(56vh,520px);min-height:220px;overflow:auto;scroll-padding:18px;overflow-wrap:anywhere;resize:vertical}
#r7-preview .editor-toolbar{position:relative;background:var(--panel);border-bottom:1px solid var(--border);gap:6px;padding:10px}#r7-preview .editor-toolbar button,#r7-preview .editor-toolbar select{padding:7px 10px;font-size:13px;min-height:36px;max-width:100%}
#r7-preview .r7-form-section summary:focus-visible,#r7-preview .r7-form-editor-section summary:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:6px}
@media(max-width:700px){#r7-preview .r7-organized-form{padding:12px}#r7-preview .r7-form-fields{grid-template-columns:minmax(0,1fr);gap:16px;padding:0 12px 16px}#r7-preview .r7-form-section>summary{padding-left:12px}#r7-preview .r7-form-savebar{bottom:6px;padding:10px;flex-wrap:wrap}#r7-preview .r7-form-save-actions{width:100%;gap:7px}#r7-preview .r7-form-save-actions button{flex:1}#r7-preview .r7-form-change-status{font-size:11px}#r7-preview .editor-area{min-height:200px;max-height:48vh}#r7-preview .editor-toolbar{padding:8px;gap:5px}#r7-preview .editor-toolbar button,#r7-preview .editor-toolbar select{font-size:12px;padding:7px;min-height:38px}}
