/* Site Studio R3: controls stay in the administrator; storefront CSS is unchanged. */
[hidden]{display:none!important}
body.editing-site .studio-layout{grid-template-columns:minmax(0,1fr)}
body.editing-site .studio-nav{display:none}
body.editing-site #workspace{padding:14px 18px 10px;min-width:0}
body.editing-site .studio-top{height:64px;padding:0 20px;gap:20px}
body.editing-site .studio-brand{min-width:150px}
body.editing-site .studio-brand span{font-size:18px}
body.editing-site .site-picker select{min-height:32px;padding:5px 9px}
.editor-toolbar{align-items:center;margin:0 0 12px;gap:14px;flex-wrap:wrap}
.editor-title-group{display:flex;gap:14px;align-items:center;min-width:180px;flex:1}
.editor-title-group h1{font-size:20px;line-height:1.2;margin:0 0 4px;letter-spacing:-.4px}
.editor-title-group #page-state{font-size:12px}
.editor-toolbar button,.editor-more summary{font-size:12px;line-height:1.25;padding:10px 12px;min-height:38px;border-radius:3px}
.editor-primary-actions{gap:7px;flex-wrap:wrap}
#back-manager{background:transparent;border-color:#c7d5d0;white-space:nowrap}
.editor-more{position:relative;z-index:30}
.editor-more>summary{cursor:pointer;list-style:none;border:1px solid #b8c8c4;background:white;font-weight:600}
.editor-more>summary::-webkit-details-marker{display:none}
.editor-more-menu{position:absolute;right:0;top:calc(100% + 7px);width:230px;padding:7px;border:1px solid #d1dfd9;background:white;box-shadow:0 10px 30px #132c2d22;display:flex;flex-direction:column;gap:3px}
.editor-more-menu button{text-align:left;border:0;background:white}
.editor-more-menu button:hover{background:#edf4f1}
.editor-shell{grid-template-columns:220px minmax(260px,1fr) 290px;height:calc(100dvh - 183px);min-height:490px;position:relative;overflow:hidden;border-color:#ccd9d4}
.editor-left,.editor-right{min-width:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;background:#fafcfb}
.editor-right{padding:14px;background:white}
.drawer-title{display:none}
.editor-tabs{position:sticky;top:0;z-index:4;display:flex;background:#f5f9f7;padding:6px;gap:3px;border-bottom:1px solid #dce5e0}
.editor-tabs button{flex:1;font-size:11px;padding:10px 3px;border:0;background:transparent;min-height:36px}
.editor-tabs button.active{background:#045f56;color:white}
.editor-pane{padding:12px}
.pane-help{font-size:12px;line-height:1.55;color:#5e7470;margin:4px 0 12px}
.page-node{padding:12px 10px;font-size:13px;line-height:1.4;min-height:48px}
.page-node small{font-size:11px;line-height:1.5}
.canvas-column{min-height:0;background:#e9eeeb;overflow:hidden}
.canvas-controls{min-height:44px;background:#f6f9f7;padding:6px 8px;flex-wrap:wrap;border-bottom:1px solid #d4e1da}
.canvas-controls button{min-height:31px;font-size:11px;padding:6px 8px;border-color:#ccd9d4;white-space:nowrap}
.canvas-button-group{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
.canvas-controls button.active{background:#045f56;color:white;border-color:#045f56}
.canvas-controls select{min-height:31px;padding:4px 6px;font-size:11px;width:66px}
.canvas-controls label{font-size:11px;font-weight:500;gap:4px}
.compact-check{display:flex;align-items:center;flex-direction:row;white-space:nowrap;margin:0 3px 0 0}
.compact-check input{width:14px;height:14px;min-height:0;margin:0}
#toggle-library,#toggle-inspector{display:none}
.easy-breadcrumbs{display:flex;align-items:center;gap:5px;min-height:37px;padding:5px 12px;overflow:auto;white-space:nowrap;background:white;border-bottom:1px solid #e1e9e5;font-size:11px;color:#58756c;flex-shrink:0}
.easy-breadcrumbs button{min-height:25px;padding:3px 6px;border:0;background:#eef5f1;font-size:11px;white-space:nowrap}
#gjs{flex:1;min-height:0;overflow:hidden;background:white}
.gjs-editor,.gjs-editor-cont{height:100%!important}
.gjs-cv-canvas{height:100%!important;top:0!important}
.gjs-toolbar{background:#045f56!important;box-shadow:0 3px 12px #002c2826}
.gjs-toolbar-item{padding:7px!important;min-width:30px}
.gjs-highlighter,.gjs-selected{outline-color:#087c6f!important}
.gjs-badge{background:#045f56!important;color:white!important;font-size:12px!important;padding:4px 7px!important}
.gjs-placeholder-int{background:#009b79!important;box-shadow:0 0 0 2px white}
.canvas-footer{padding:8px 12px;background:#f7faf8;border-top:1px solid #d6e3dc;display:flex;gap:12px;align-items:center;flex-wrap:wrap;flex-shrink:0}
.canvas-footer button{padding:7px 10px;min-height:32px;font-size:11px}
.canvas-footer span{font-size:10px;line-height:1.4;color:#6a7c75;flex:1}
.editor-savebar{display:flex;gap:16px;padding:8px 4px;font-size:12px;color:#536f64;min-height:32px;flex-wrap:wrap}
#save-error{color:#a12626;font-weight:600}
body.studio-focus .studio-top{display:none}
body.studio-focus #workspace{padding:10px}
body.studio-focus .editor-shell{height:calc(100dvh - 116px)}
.compact-label{font-size:12px;gap:6px;margin-bottom:10px}
.compact-label input,.compact-label select{font-size:12px;min-height:35px;padding:8px;width:100%}
.gjs-blocks-c{display:block!important}
.gjs-block-category{margin-bottom:6px}
.gjs-block-category .gjs-title{padding:10px 5px!important;font-size:12px!important;background:#edf3ef!important;color:#39584b!important;border:0!important}
.gjs-block{float:none!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;min-height:65px!important;margin:7px 0!important;padding:10px 8px!important;border:1px solid #d0dfd7!important;box-shadow:none!important;background:#fff!important;border-radius:3px!important;cursor:grab}
.gjs-block[hidden]{display:none!important}
.gjs-block:hover{border-color:#045f56!important;background:#eff7f2!important}
.gjs-block-label{display:flex!important;gap:10px;align-items:center;text-align:left!important;font-size:12px!important;line-height:1.35;width:100%}
.gjs-block__media{display:none}
.block-preview{display:grid;place-items:center;width:36px;height:38px;flex:0 0 36px;background:#e4f0e9;color:#045f56;font-size:25px;font-weight:500;border:1px solid #c1d8ca}
.block-copy b{display:block;font-size:12px;line-height:1.35;margin-bottom:4px;color:#213e33;white-space:normal}
.block-copy small{display:block;font-size:10px;line-height:1.35;color:#667a70;white-space:normal}
.section-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.section-list li{display:flex;gap:4px;align-items:center;padding:6px 4px;background:white;border:1px solid #cfddd5;min-height:64px;touch-action:pan-y}
.section-list button{padding:5px;border:0;background:transparent}
.section-handle{font-size:22px;color:#607b6a;cursor:grab!important;touch-action:none;flex:0 0 23px}
.section-select{flex:1;text-align:left;min-width:0}
.section-select b{display:block;font-size:12px;line-height:1.4;white-space:normal}
.section-select small{display:block;font-size:10px;color:#6a7d72;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:110px}
.section-actions{display:flex;flex-direction:column;gap:0}
.section-actions button{font-size:16px;min-height:25px;min-width:25px}
.section-drop-placeholder{background:#d7ecdf!important;border:2px dashed #045f56!important;opacity:.5}
.section-dragging{box-shadow:0 3px 12px #123d2520}
.technical-layers{font-size:12px;margin-top:16px;padding-top:12px;border-top:1px solid #d6e2db}
.technical-layers summary{cursor:pointer;padding:8px 0}
.inspector-heading{display:flex;align-items:flex-start;gap:7px;justify-content:space-between}
.inspector-heading .eyebrow{font-size:9px;margin-bottom:5px;letter-spacing:1.2px}
.inspector-heading h2{font-size:15px;line-height:1.35;margin:0;max-width:155px}
.inspector-heading select{min-height:31px;padding:6px;font-size:11px;width:90px;flex:0 0 90px}
.element-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:10px 0 12px}
.element-actions button{font-size:11px;padding:8px 6px;min-height:32px}
.inspector-empty{padding:16px 12px;background:#eff6f1;color:#3d5e4d;margin-top:18px;font-size:12px;line-height:1.6}
.inspector-empty p:last-child{margin-bottom:0}
.device-note{font-size:10px;line-height:1.45;color:#60776b;background:#f5f8f6;padding:8px;margin:0 0 12px}
.simple-group{border:0;border-top:1px solid #dce6df;padding:14px 0 8px;margin:0;display:block}
.simple-group>summary{font-weight:700;font-size:12px;cursor:pointer;margin-bottom:12px}
.simple-group:not([open]){padding-bottom:10px}
.simple-group:not([open])>summary{margin-bottom:0}
.simple-group label{font-size:11px;line-height:1.45;gap:6px;margin-bottom:10px;font-weight:600}
.simple-group input:not([type=range]):not([type=color]),.simple-group select,.simple-group textarea{font-size:12px;min-height:35px;padding:8px 9px;line-height:1.4;border-color:#bfcec4}
.simple-group button{font-size:11px;min-height:33px;padding:7px 9px;line-height:1.4;margin-bottom:7px}
.simple-group small{display:block;font-size:10px;line-height:1.45;color:#61786b;margin-bottom:8px}
.simple-group h3{font-size:13px;margin-bottom:9px}
.simple-group input[type=color]{padding:3px;min-height:35px;height:35px;width:100%;cursor:pointer}
.simple-group input[type=range]{min-height:25px;padding:0;accent-color:#045f56;cursor:pointer}
.two-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.corner-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.corner-presets button{padding:6px 2px;font-size:9px;display:flex;flex-direction:column;align-items:center;gap:5px;background:#f8fbf9}
.corner-demo{width:26px;height:21px;border:1.5px solid #045f56;background:#e1eee5;display:block}
.corner-demo.square{border-radius:0}.corner-demo.soft{border-radius:5px}.corner-demo.round{border-radius:9px}.corner-demo.pill{border-radius:99px}
.range-label{position:relative}.range-label output{position:absolute;right:0;font-size:10px;font-weight:500;color:#61786b}
.layout-presets{display:flex;flex-direction:column;gap:3px}.layout-presets button{text-align:left}
.subtle-button{background:#f5f8f6;border-color:transparent!important}
.inspector-note{font-size:10px;line-height:1.5;margin-top:12px;border-top:1px solid #d4dfd8;padding-top:12px;color:#63796c}
.editor-right #selectors{display:none}
.gjs-field input,.gjs-field select{font-size:12px!important;min-height:29px!important;padding:5px!important}
.gjs-sm-label{font-size:11px!important;line-height:1.45}
.easy-picker-dialog{width:min(800px,95vw);max-height:90vh;padding:24px}
.easy-picker-dialog .dialog-head p{font-size:13px;color:#647b6e;line-height:1.5}
.easy-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px;padding-top:20px}
.media-choice{padding:7px;background:#f6faf7;overflow:hidden;display:flex;flex-direction:column;gap:8px;align-items:stretch;text-align:left}
.media-choice img{width:100%;height:120px;object-fit:contain;background:white}
.media-choice span{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.easy-product-results{display:flex;flex-direction:column;gap:8px;max-height:55vh;overflow:auto}
.product-choice{text-align:left;padding:12px;display:flex;flex-direction:column;gap:5px}
.product-choice b{font-size:13px}.product-choice small{font-size:11px;color:#61766a}
button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.gjs-block:focus-visible{outline:2px solid #00866b;outline-offset:2px}
@media(min-width:1600px){.editor-shell{grid-template-columns:240px minmax(0,1fr) 310px}.editor-pane{padding:14px}.block-copy small{font-size:11px}.section-select small{max-width:130px}.editor-right{padding:17px}}
@media(max-width:1190px){.editor-shell{grid-template-columns:210px minmax(220px,1fr)}.editor-right{display:none;position:absolute;right:0;top:0;bottom:0;width:295px;z-index:16;box-shadow:-8px 0 24px #123b2220}.editor-inspector-open .editor-right{display:block}#toggle-inspector{display:inline-block}.editor-right .drawer-title{display:flex}.editor-toolbar{gap:8px}.editor-toolbar button,.editor-more summary{font-size:11px;padding:9px}.canvas-controls{gap:5px}.drawer-title{justify-content:space-between;align-items:center;border-bottom:1px solid #dbe6de;padding-bottom:10px;margin-bottom:12px;font-size:12px}.drawer-title button{font-size:20px;padding:0 9px;min-height:28px}}
@media(max-width:950px){body.editing-site #workspace{padding:10px}.editor-shell{grid-template-columns:minmax(0,1fr);height:calc(100dvh - 222px);min-height:410px}.editor-left{display:none;position:absolute;left:0;top:0;bottom:0;width:240px;z-index:16;box-shadow:8px 0 24px #123b2220}.editor-left-open .editor-left{display:block}.editor-left .drawer-title{display:flex;margin:10px 10px 0}#toggle-library{display:inline-block}.editor-toolbar{display:flex}.editor-title-group{min-width:0}.editor-primary-actions{justify-content:flex-start;margin:0!important}.top-actions #identity{display:none}.top-actions a{font-size:11px}.studio-top .status-chip{font-size:9px;padding:5px}.canvas-controls button{font-size:10px}.canvas-button-group{gap:4px}}
@media(max-width:620px){body.editing-site .studio-top{height:58px;padding:0 10px;gap:10px}.studio-top .studio-brand{min-width:90px;font-size:9px}.studio-top .studio-brand span{font-size:15px}.studio-top .site-picker{min-width:0;flex:1}.studio-top .site-picker select{max-width:185px;font-size:11px}.studio-top .top-actions{display:none}.studio-top .status-chip{display:none}.editor-toolbar{display:block}.editor-title-group{margin-bottom:8px}.editor-title-group h1{font-size:17px}.editor-primary-actions{gap:5px}.editor-toolbar button,.editor-more summary{font-size:10px;min-height:32px;padding:8px}.editor-title-group #page-state{font-size:10px}.editor-shell{height:calc(100dvh - 237px);min-height:350px}.editor-right{width:min(300px,calc(100vw - 24px))}.canvas-controls{padding:5px;align-items:flex-start}.canvas-controls button{font-size:9px;padding:5px;min-height:29px}.canvas-controls select{font-size:10px;width:60px}.canvas-footer span{display:none}.canvas-footer{padding:6px}.canvas-footer button{font-size:10px}.canvas-controls #focus-editor{font-size:9px}.editor-savebar{font-size:10px;line-height:1.5}.easy-breadcrumbs{padding:4px 6px;font-size:10px}.easy-breadcrumbs button{font-size:10px}.easy-picker-dialog{padding:16px}.easy-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.studio-focus .editor-shell{height:calc(100dvh - 177px)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* R4 direct writing: toolbar outside the canvas, without obscuring page content. */
.r4-writing-bar{padding:8px 12px;border-bottom:1px solid #dbe3e1;background:#fff;display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:space-between}
.r4-writing-bar>div{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.r4-writing-bar button{font-size:12px;padding:7px 9px}
#r4-interaction-hint{font-size:11px;color:#566d68;max-width:430px;line-height:1.4}#r4-format-tools{display:inline-flex;gap:3px}
#r4-child-text-list{display:grid;gap:6px}#r4-child-text-list button{text-align:left;line-height:1.4;font-size:12px;white-space:normal}
#r4-price-controls code{display:block;white-space:normal;overflow-wrap:anywhere;background:#edf5f1;padding:8px;font-size:12px}#r4-price-controls button{margin-top:6px;width:100%}
.gjs-resizer-h{width:12px!important;height:12px!important;background:#045f56!important;border:2px solid white!important;box-shadow:0 0 0 1px #045f56}
#r4-format-tools[hidden],.r4-writing-bar [hidden]{display:none!important}
@media(max-width:950px){#r4-interaction-hint{display:none}.r4-writing-bar{padding:6px}.r4-writing-bar button{font-size:11px}}
