/* Full-window visual editor */
body.is-admin{height:100dvh;overflow:hidden}
body.is-admin #main{height:100dvh;min-height:0;overflow:hidden}
body.is-admin .admin-layout{height:100%;max-width:none;padding:10px 14px 12px}
body.is-admin #admin-root{height:100%;min-height:0}
body.is-admin #admin-root:has(.editor-head){display:grid;grid-template-rows:42px 38px minmax(0,1fr);gap:8px}
body.is-admin .editor-head{min-height:0;margin:0;gap:16px}
body.is-admin .editor-title{display:flex;align-items:center;gap:12px;min-width:max-content}
body.is-admin .editor-title .eyebrow{margin:0;font-size:9px;letter-spacing:.13em}
body.is-admin .editor-title h1{font-size:19px;letter-spacing:-.04em;margin:0}
body.is-admin .editor-head-note{font-size:11px;color:#879087;margin-right:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.is-admin .editor-head .button{height:34px;min-height:34px;padding:7px 12px}
body.is-admin .editor-tabs{height:38px;min-height:0;margin:0;gap:5px;border-bottom:1px solid #e5e9e3}
body.is-admin .editor-tab{height:36px;padding:8px 15px;border-radius:11px 11px 0 0;font-size:12px}
body.is-admin .editor-workspace{height:100%;min-height:0;grid-template-columns:minmax(285px,355px) minmax(0,1fr);gap:12px;align-items:stretch}
body.is-admin .editor-sidebar{height:100%;max-height:none;min-height:0;overflow:hidden;border-radius:17px}
body.is-admin .editor-sidebar-head{flex:none;min-height:57px;padding:11px 15px;align-items:center}
body.is-admin .editor-sidebar-head h2{font-size:17px;margin:2px 0 0}
body.is-admin .editor-sidebar-head .mini-label{font-size:8px}
body.is-admin .save-indicator{font-size:9px;max-width:120px;padding:0}
body.is-admin .editor-fields{min-height:0;padding:13px 15px 16px;gap:13px;overscroll-behavior:contain}
body.is-admin .editor-fields .field-section-title{padding-top:10px;margin-top:2px}
body.is-admin .editor-fields .field-section-title strong{font-size:12px}
body.is-admin .editor-fields .field-section-title p{font-size:10px;margin-top:3px}
body.is-admin .editor-fields .field>input:not([type=file]),body.is-admin .editor-fields .field>textarea,body.is-admin .editor-fields .contact-editor input{padding:9px 10px;font-size:12px}
body.is-admin .editor-fields .field>textarea{min-height:76px}
body.is-admin .editor-fields .field>label{font-size:11px}
body.is-admin .field-hint{font-size:10px}
body.is-admin .editor-savebar{flex:none;position:relative;z-index:2;padding:10px 13px calc(10px + env(safe-area-inset-bottom));grid-template-columns:.9fr 1.1fr;gap:8px;border-radius:0;background:rgba(255,255,255,.97);box-shadow:0 -6px 16px rgba(25,40,27,.035)}
body.is-admin .editor-savebar button{height:38px;min-height:38px;padding:8px 10px;font-size:11px;border-radius:11px}
body.is-admin .editor-sidebar>.admin-error{flex:none;margin:0;padding:0 14px 5px;font-size:10px}
body.is-admin .editor-sidebar>.admin-error:empty{display:none}
body.is-admin .preview-column{height:100%;min-height:0;overflow:hidden}
body.is-admin .preview-toolbar{flex:none;min-height:48px;padding:8px 12px;border-radius:15px 15px 0 0}
body.is-admin .preview-heading{gap:8px}
body.is-admin .preview-heading strong{font-size:11px}
body.is-admin .preview-heading>span:last-child{font-size:9px}
body.is-admin .preview-devices button{width:32px;height:29px}
body.is-admin .preview-stage{flex:1;min-height:0;padding:15px 10px;overscroll-behavior:contain}
body.is-admin .preview-screen{max-width:none}
body.is-admin .preview-hint{flex:none;margin:7px 3px 0;font-size:9px;line-height:1.4}
body.is-admin .feature-detail{gap:11px;padding:11px;border-radius:14px}
body.is-admin .range-field{gap:10px}
body.is-admin .range-field output{min-width:48px;font-size:11px}
body.is-admin .range-field input.is-syncing{animation:sync-glow .8s ease}
body.is-admin .feature-resize-handle{animation:sync-glow .8s ease}
.selected-text-editor{padding:11px;background:#f1f6f0;border:1px solid #dfeade;border-radius:14px}
.selected-text-editor .field-section-title{padding:0!important;margin:0!important;border:0!important}
.selected-text-editor .field-section-title p{margin-bottom:9px!important}
.crop-open{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;border:1px solid #cfe0d0;border-radius:11px;background:#eff6ed;color:#346544;padding:10px;font-size:11px;font-weight:750}
.crop-open:hover{background:#e4f0e2;border-color:#a8c8aa}
.crop-overlay{position:fixed;z-index:10000;inset:0;background:rgba(14,20,16,.72);backdrop-filter:blur(8px);display:grid;place-items:center;padding:18px}
.crop-dialog{width:min(1120px,100%);height:min(760px,94dvh);display:grid;grid-template-rows:auto minmax(0,1fr);background:#f8faf7;border:1px solid rgba(255,255,255,.2);border-radius:21px;overflow:hidden;box-shadow:0 30px 100px rgba(0,0,0,.35)}
.crop-header{display:flex;align-items:center;gap:12px;padding:14px 17px;background:#fff;border-bottom:1px solid #e6ebe4}
.crop-header-copy{margin-right:auto;min-width:0}.crop-header h2{font-size:16px;margin:0;letter-spacing:-.03em}.crop-header p{font-size:10px;color:#7c877e;margin:3px 0 0}
.crop-lock{display:flex;align-items:center;gap:7px;border:1px solid #dce5da;border-radius:10px;background:#f7faf6;padding:8px 10px;color:#46554a;font-size:10px;font-weight:700;white-space:nowrap}
.crop-lock[aria-pressed=true]{background:#e7f1e7;color:#356743;border-color:#c1d9c2}
.crop-close{width:34px;height:34px;display:grid;place-items:center;border:0;background:#f0f3ef;border-radius:10px;color:#657067}
.crop-content{display:grid;grid-template-columns:minmax(0,1fr) 245px;min-height:0}
.crop-visual{position:relative;display:grid;place-items:center;min-width:0;min-height:0;padding:24px;background:radial-gradient(ellipse at center,#59645c 0,#29312b 65%,#202722 100%);overflow:hidden;touch-action:none}
.crop-artboard{position:relative;width:min(100%,760px);height:min(100%,560px);min-height:200px;display:grid;place-items:center;overflow:visible}
.crop-source{position:absolute;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;user-select:none;-webkit-user-drag:none;pointer-events:none;filter:drop-shadow(0 10px 30px rgba(0,0,0,.32))}
.crop-image-bounds{position:absolute;border:1px dashed rgba(255,255,255,.52);pointer-events:none}
.crop-window{position:absolute;z-index:3;min-width:70px;min-height:55px;border:2px solid #c4f4ce;box-shadow:0 0 0 9999px rgba(7,13,9,.56),0 0 0 1px rgba(15,37,21,.8),0 0 28px rgba(124,207,143,.25);cursor:move;touch-action:none}
.crop-window:before,.crop-window:after{content:'';position:absolute;pointer-events:none}
.crop-window:before{inset:33.333% 0;border-top:1px solid rgba(226,255,230,.38);border-bottom:1px solid rgba(226,255,230,.38)}
.crop-window:after{inset:0 33.333%;border-left:1px solid rgba(226,255,230,.38);border-right:1px solid rgba(226,255,230,.38)}
.crop-handle{position:absolute;z-index:4;width:13px;height:13px;border:2px solid white;border-radius:4px;background:#65a875;box-shadow:0 2px 6px #17231a;touch-action:none}
.crop-handle[data-corner=br]{right:-7px;bottom:-7px;cursor:nwse-resize}.crop-handle[data-corner=bl]{left:-7px;bottom:-7px;cursor:nesw-resize}.crop-handle[data-corner=tr]{right:-7px;top:-7px;cursor:nesw-resize}.crop-handle[data-corner=tl]{left:-7px;top:-7px;cursor:nwse-resize}
.crop-controls{display:flex;flex-direction:column;gap:15px;padding:18px;background:#fff;border-left:1px solid #e8ece7;overflow:auto}
.crop-control-title{font-size:10px;font-weight:800;color:#414b43}.crop-controls .field{gap:8px}.crop-controls .field label{font-size:10px}.crop-controls input[type=range]{width:100%;accent-color:#568a63}.crop-controls output{display:block;text-align:right;color:#4f7658;font-size:10px;font-weight:800}
.crop-note{font-size:10px;line-height:1.55;color:#89938a;margin:0}
.crop-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:auto}.crop-actions .button{min-height:39px;padding:9px 8px;font-size:10px;border-radius:10px}
@keyframes sync-glow{0%,100%{box-shadow:0 0 0 0 rgba(93,163,107,0)}35%{box-shadow:0 0 0 6px rgba(93,163,107,.28)}}
@media(max-width:900px){body.is-admin .editor-workspace{grid-template-columns:minmax(265px,330px) minmax(0,1fr);gap:9px}body.is-admin .editor-fields{padding:11px 12px}}
@media(max-width:700px){body.is-admin .admin-layout{padding:7px 8px 8px}body.is-admin #admin-root:has(.editor-head){grid-template-rows:38px 36px minmax(0,1fr);gap:5px}body.is-admin .editor-title{gap:8px}body.is-admin .editor-title .eyebrow{display:none}body.is-admin .editor-title h1{font-size:16px}body.is-admin .editor-head-note{display:none}body.is-admin .editor-tab{padding:7px 11px;font-size:11px}body.is-admin .editor-workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(250px,.86fr) minmax(260px,1.14fr);gap:7px}body.is-admin .editor-sidebar{border-radius:14px}body.is-admin .editor-sidebar-head{min-height:45px;padding:8px 11px}body.is-admin .editor-sidebar-head h2{font-size:14px}body.is-admin .editor-fields{padding:9px 11px;gap:10px}body.is-admin .preview-toolbar{min-height:40px;padding:5px 9px}body.is-admin .preview-heading>span:last-child{display:none}body.is-admin .preview-stage{padding:8px 4px}.crop-overlay{padding:6px}.crop-dialog{height:97dvh;border-radius:14px;grid-template-rows:auto minmax(0,1fr)}.crop-header{gap:7px;padding:10px}.crop-header h2{font-size:13px}.crop-header p{font-size:9px}.crop-lock{padding:7px;font-size:9px}.crop-content{grid-template-columns:1fr;grid-template-rows:minmax(240px,1fr) auto}.crop-visual{padding:12px}.crop-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px;border-left:0;border-top:1px solid #e8ece7}.crop-control-title,.crop-note{grid-column:1/-1}.crop-controls .field{gap:3px}.crop-actions{grid-column:1/-1;margin-top:0}.crop-actions .button{min-height:35px}}
@media(max-height:650px) and (min-width:701px){body.is-admin #admin-root:has(.editor-head){grid-template-rows:36px 34px minmax(0,1fr);gap:5px}body.is-admin .editor-workspace{grid-template-columns:minmax(265px,325px) minmax(0,1fr)}body.is-admin .editor-fields{gap:9px;padding-top:8px;padding-bottom:8px}body.is-admin .editor-sidebar-head{min-height:45px}body.is-admin .editor-savebar{padding-block:6px}}
