.screen-editor { display:grid; gap:1rem; }
.screen-editor-bar,.screen-editor-tools { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.75rem; }
.screen-editor-bar h1,.screen-editor-bar p { margin:0; }
.screen-editor-tools { justify-content:flex-start; padding:.75rem; border:1px solid #dce4dd; border-radius:12px; background:#fff; }
.screen-editor-tools label { display:flex; align-items:center; gap:.5rem; margin:0; }
.screen-editor-tools a { margin-left:auto; }
.screen-editor [aria-pressed="true"] { outline:2px solid #497958; outline-offset:1px; }
.screen-editor-body { display:grid; grid-template-columns:minmax(0,1fr) minmax(250px,320px); gap:1rem; align-items:stretch; }
.screen-preview { background:#edf1ed; border:1px solid #dce4dd; border-radius:12px; padding:.5rem; overflow:hidden; }
.screen-preview iframe { display:block; width:100%; height:68vh; min-height:340px; border:0; border-radius:8px; margin:auto; background:white; }
.screen-preview iframe.screen-preview-mobile { width:min(100%,390px); }
.screen-fields { border:1px solid #dce4dd; border-radius:12px; background:white; padding:1rem; max-height:70vh; overflow:auto; }
.screen-fields h2 { margin:0 0 .75rem; font-size:1rem; }
.screen-fields label { display:grid; gap:.35rem; margin-bottom:.8rem; }
.screen-fields textarea { width:100%; resize:vertical; }
.screen-editor-expanded { position:fixed; z-index:50; inset:0; background:#f4f7f3; overflow:auto; padding:1rem; grid-template-rows:auto auto minmax(0,1fr); }
.screen-editor-expanded .screen-preview iframe,.screen-editor-expanded .screen-fields { height:100%; max-height:none; }
[data-landing-field][tabindex] { outline:1px dashed #4777d0; outline-offset:3px; cursor:pointer; }
[data-landing-field].screen-field-selected { outline:2px solid #245abe; }
@media (max-width:800px) {
 .screen-editor-body { grid-template-columns:minmax(0,1fr); }
 .screen-editor-expanded { grid-template-rows:auto auto auto; }
 .screen-editor-expanded .screen-preview iframe { height:50vh; }
 .screen-editor-expanded .screen-fields { height:auto; }
}
