/* Visual editor — single scroll surface per pane, independent from the page. */
html:has(body.is-admin){height:100%;overflow:hidden;scroll-behavior:auto}
body.is-admin{height:100dvh;overflow:hidden;background:#f5f6f3}
body.is-admin #main{height:100dvh;overflow:hidden;padding:0}
body.is-admin .admin-layout{height:100%;padding:12px 16px 14px;max-width:1920px}
body.is-admin #admin-root:has(.editor-head){display:grid;grid-template-rows:45px 44px minmax(0,1fr);gap:7px;min-height:0;height:100%}
body.is-admin .editor-head{height:45px;padding:0 4px;display:flex;align-items:center;gap:15px;margin:0;min-height:0}
body.is-admin .editor-title{align-items:baseline;gap:12px}
body.is-admin .editor-title .eyebrow{font-size:10px;color:#87928a}
body.is-admin .editor-title h1{font-size:21px;font-weight:770;letter-spacing:-.05em}
body.is-admin .editor-head-note{font-size:11px;color:#88918a}
body.is-admin .editor-tabs{margin:0;gap:4px;min-height:0;height:44px;display:flex;align-items:end;overflow:visible}
body.is-admin .editor-tab{height:38px;border-radius:10px 10px 0 0;font-size:12px;font-weight:650;padding:8px 17px}
body.is-admin .editor-workspace{min-height:0;height:100%;display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:12px;align-items:stretch}
body.is-admin .editor-sidebar{height:100%;min-height:0;max-height:none;display:flex;flex-direction:column;overflow:hidden;border:1px solid #dfe5de;border-radius:16px;box-shadow:0 6px 26px rgba(20,42,25,.025)}
body.is-admin .editor-sidebar-head{min-height:58px;flex:none;align-items:center;padding:11px 16px}
body.is-admin .editor-sidebar-head h2{font-size:18px;font-weight:760}
body.is-admin .save-indicator{font-size:10px;color:#718177}
body.is-admin .save-indicator.dirty{color:#a86c32}
body.is-admin .editor-fields{min-height:0;flex:1;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c8d4c9 transparent;padding:15px 16px 20px;display:flex;flex-direction:column;gap:14px}
body.is-admin .editor-fields .field-section-title{margin:4px 0 0;padding:11px 0 0}
body.is-admin .editor-fields .field-section-title strong{font-size:13px}
body.is-admin .editor-fields .field-section-title p{font-size:11px;line-height:1.45}
body.is-admin .editor-fields .field label{font-size:11px;color:#535f55;font-weight:700}
body.is-admin .editor-fields .field input:not([type=file]),body.is-admin .editor-fields .field textarea{font-size:13px;padding:11px 12px;border-radius:10px;border-color:#dce3db;min-height:38px}
body.is-admin .editor-fields .field textarea{min-height:80px;resize:vertical}
body.is-admin .feature-detail{background:#f7faf6;border-color:#dde9dd;padding:13px;border-radius:14px}
body.is-admin .feature-detail .range-field{margin:1px 0 4px}
body.is-admin .editor-savebar{flex:none;position:relative;z-index:1;padding:12px 14px;background:#fff;border-top:1px solid #eef1ed;box-shadow:0 -4px 20px rgba(30,45,28,.03);grid-template-columns:.9fr 1.1fr;gap:9px}
body.is-admin .editor-savebar .button{min-height:39px;height:39px;font-size:12px;border-radius:10px}
body.is-admin .editor-sidebar>.admin-error{flex:none}
body.is-admin .preview-column{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;border-radius:16px;border:1px solid #dfe5de;background:#f0f2ef}
body.is-admin .preview-toolbar{height:51px;min-height:51px;flex:none;border:0;border-bottom:1px solid #e2e7df;padding:9px 14px;background:#fff;border-radius:15px 15px 0 0}
body.is-admin .preview-heading{gap:9px}
body.is-admin .preview-heading strong{font-size:12px}
body.is-admin .preview-heading>span:last-child{font-size:10px}
body.is-admin .preview-stage{height:100%;min-height:0;flex:1;display:flex;align-items:flex-start;justify-content:center;overflow:hidden!important;padding:14px 14px;background:repeating-linear-gradient(45deg,#f6f8f4,#f6f8f4 16px,#f0f3ee 16px,#f0f3ee 32px);border:0;border-radius:0}
body.is-admin .preview-screen{flex:none;overflow:hidden;max-width:none;box-shadow:0 10px 42px rgba(25,40,30,.13);border:1px solid #dfe3dc;border-radius:13px;position:relative;background:white}
body.is-admin .preview-screen iframe{display:block;position:absolute;left:0;top:0;border:0;transform-origin:top left;background:#fff;overflow:auto}
body.is-admin .preview-screen.mobile{border-radius:24px 24px 8px 8px;border:6px solid #303732}
body.is-admin .preview-hint{display:none!important}
body.is-admin .preview-devices button{width:32px;height:30px}
body.is-admin .feature-list-item{min-height:53px;border-radius:10px}
body.is-admin .feature-list-item.active{border-color:#aac9b3;background:#eff7f0}
body.is-admin .feature-open{font-size:12px}
body.is-admin .feature-open small{font-size:10px}
body.is-admin .crop-open{background:#e9f3ec;border-color:#d1e5d6;font-size:12px;padding:12px;border-radius:11px}
body.is-admin .selected-text-editor{border-color:#c2daca;background:#f3faf5}
body.is-admin .choice-trigger{min-height:40px;font-size:12px}
body.is-admin .choice-menu{z-index:9999}
body.is-admin .range-field output{min-width:66px;color:#38694b;font-size:12px}
body.is-admin .range-field input{accent-color:#447b57}
body.is-admin .range-field input.is-syncing{animation:slider-confirm .65s ease}
@keyframes slider-confirm{20%{filter:drop-shadow(0 0 6px #55af75)}60%{filter:drop-shadow(0 0 4px #9fd4ad)}}
body.is-admin .copy-details{border-top:1px solid #e4eae3;margin-top:3px;padding-top:12px}
body.is-admin .copy-details summary{list-style:none;display:flex;align-items:center;justify-content:space-between;font-weight:750;font-size:12px;color:#334a3a;cursor:pointer;padding:10px;border-radius:10px;background:#f5f8f3}
body.is-admin .copy-details summary::-webkit-details-marker{display:none}
body.is-admin .copy-details[open] summary{background:#eaf3eb}
body.is-admin .copy-details summary .ui-icon{transition:transform .2s}
body.is-admin .copy-details[open] summary .ui-icon{transform:rotate(180deg)}
body.is-admin .copy-details-fields{display:flex;flex-direction:column;gap:13px;padding:13px 0}
